Packaging: clean spec file
[platform/upstream/ibus-libpinyin.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ibus-libpinyin 1.6.92.
4 #
5 # Report bugs to <https://github.com/libpinyin/ibus-libpinyin/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/libpinyin/ibus-libpinyin/issues/new
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='ibus-libpinyin'
593 PACKAGE_TARNAME='ibus-libpinyin'
594 PACKAGE_VERSION='1.6.92'
595 PACKAGE_STRING='ibus-libpinyin 1.6.92'
596 PACKAGE_BUGREPORT='https://github.com/libpinyin/ibus-libpinyin/issues/new'
597 PACKAGE_URL=''
598
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 IBUS_BUILD_STROKE_INPUT_MODE_FALSE
640 IBUS_BUILD_STROKE_INPUT_MODE_TRUE
641 IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE
642 IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE
643 IBUS_BUILD_LUA_EXTENSION_FALSE
644 IBUS_BUILD_LUA_EXTENSION_TRUE
645 LUA_LIBS
646 LUA_CFLAGS
647 MKINSTALLDIRS
648 POSUB
649 POFILES
650 PO_IN_DATADIR_FALSE
651 PO_IN_DATADIR_TRUE
652 INTLLIBS
653 INSTOBJEXT
654 GMOFILES
655 CATOBJEXT
656 CATALOGS
657 MSGFMT_OPTS
658 GETTEXT_PACKAGE
659 OPENCC_LIBS
660 OPENCC_CFLAGS
661 HAVE_BOOST_FALSE
662 HAVE_BOOST_TRUE
663 BOOST_CPPFLAGS
664 DISTCHECK_CONFIGURE_FLAGS
665 BOOST_ROOT
666 pkgpyexecdir
667 pyexecdir
668 pkgpythondir
669 pythondir
670 PYTHON_PLATFORM
671 PYTHON_EXEC_PREFIX
672 PYTHON_PREFIX
673 PYTHON_VERSION
674 PYTHON
675 ENV
676 HAVE_LIBUUID_FALSE
677 HAVE_LIBUUID_TRUE
678 LIBUUID_LIBS
679 LIBUUID_CFLAGS
680 LIBPINYIN_DATADIR
681 IBUS_BUILD_LIBPINYIN_FALSE
682 IBUS_BUILD_LIBPINYIN_TRUE
683 LIBPINYIN_LIBS
684 LIBPINYIN_CFLAGS
685 SQLITE3
686 SQLITE_LIBS
687 SQLITE_CFLAGS
688 IBUS_LIBS
689 IBUS_CFLAGS
690 PKG_CONFIG_LIBDIR
691 PKG_CONFIG_PATH
692 PKG_CONFIG
693 CXXCPP
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 MANIFEST_TOOL
700 RANLIB
701 ac_ct_AR
702 AR
703 DLLTOOL
704 OBJDUMP
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 SED
712 host_os
713 host_vendor
714 host_cpu
715 host
716 build_os
717 build_vendor
718 build_cpu
719 build
720 LIBTOOL
721 DATADIRNAME
722 ALL_LINGUAS
723 INTLTOOL_PERL
724 GMSGFMT
725 MSGFMT
726 MSGMERGE
727 XGETTEXT
728 INTLTOOL_POLICY_RULE
729 INTLTOOL_SERVICE_RULE
730 INTLTOOL_THEME_RULE
731 INTLTOOL_SCHEMAS_RULE
732 INTLTOOL_CAVES_RULE
733 INTLTOOL_XML_NOMERGE_RULE
734 INTLTOOL_XML_RULE
735 INTLTOOL_KBD_RULE
736 INTLTOOL_XAM_RULE
737 INTLTOOL_UI_RULE
738 INTLTOOL_SOUNDLIST_RULE
739 INTLTOOL_SHEET_RULE
740 INTLTOOL_SERVER_RULE
741 INTLTOOL_PONG_RULE
742 INTLTOOL_OAF_RULE
743 INTLTOOL_PROP_RULE
744 INTLTOOL_KEYS_RULE
745 INTLTOOL_DIRECTORY_RULE
746 INTLTOOL_DESKTOP_RULE
747 intltool__v_merge_options_0
748 intltool__v_merge_options_
749 INTLTOOL_V_MERGE_OPTIONS
750 INTLTOOL__v_MERGE_0
751 INTLTOOL__v_MERGE_
752 INTLTOOL_V_MERGE
753 INTLTOOL_EXTRACT
754 INTLTOOL_MERGE
755 INTLTOOL_UPDATE
756 USE_NLS
757 am__fastdepCXX_FALSE
758 am__fastdepCXX_TRUE
759 CXXDEPMODE
760 ac_ct_CXX
761 CXXFLAGS
762 CXX
763 MAINT
764 MAINTAINER_MODE_FALSE
765 MAINTAINER_MODE_TRUE
766 PACKAGE_VERSION_RELEASE
767 PACKAGE_VERSION_NANO
768 PACKAGE_VERSION_MICRO
769 PACKAGE_VERSION_MINOR
770 PACKAGE_VERSION_MAJOR
771 EGREP
772 GREP
773 CPP
774 am__fastdepCC_FALSE
775 am__fastdepCC_TRUE
776 CCDEPMODE
777 am__nodep
778 AMDEPBACKSLASH
779 AMDEP_FALSE
780 AMDEP_TRUE
781 am__quote
782 am__include
783 DEPDIR
784 OBJEXT
785 EXEEXT
786 ac_ct_CC
787 CPPFLAGS
788 LDFLAGS
789 CFLAGS
790 CC
791 AM_BACKSLASH
792 AM_DEFAULT_VERBOSITY
793 AM_DEFAULT_V
794 AM_V
795 am__untar
796 am__tar
797 AMTAR
798 am__leading_dot
799 SET_MAKE
800 AWK
801 mkdir_p
802 MKDIR_P
803 INSTALL_STRIP_PROGRAM
804 STRIP
805 install_sh
806 MAKEINFO
807 AUTOHEADER
808 AUTOMAKE
809 AUTOCONF
810 ACLOCAL
811 VERSION
812 PACKAGE
813 CYGPATH_W
814 am__isrc
815 INSTALL_DATA
816 INSTALL_SCRIPT
817 INSTALL_PROGRAM
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files=''
857 ac_user_opts='
858 enable_option_checking
859 enable_silent_rules
860 enable_dependency_tracking
861 enable_maintainer_mode
862 enable_static
863 enable_nls
864 enable_shared
865 with_pic
866 enable_fast_install
867 with_gnu_ld
868 with_sysroot
869 enable_libtool_lock
870 enable_boost
871 with_boost
872 enable_opencc
873 enable_lua_extension
874 enable_english_input_mode
875 enable_stroke_input_mode
876 '
877       ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CC
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
885 CPP
886 CXX
887 CXXFLAGS
888 CCC
889 CXXCPP
890 PKG_CONFIG
891 PKG_CONFIG_PATH
892 PKG_CONFIG_LIBDIR
893 IBUS_CFLAGS
894 IBUS_LIBS
895 SQLITE_CFLAGS
896 SQLITE_LIBS
897 LIBPINYIN_CFLAGS
898 LIBPINYIN_LIBS
899 LIBUUID_CFLAGS
900 LIBUUID_LIBS
901 PYTHON
902 BOOST_ROOT
903 OPENCC_CFLAGS
904 OPENCC_LIBS
905 LUA_CFLAGS
906 LUA_LIBS'
907
908
909 # Initialize some variables set by options.
910 ac_init_help=
911 ac_init_version=false
912 ac_unrecognized_opts=
913 ac_unrecognized_sep=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
930
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
956
957 ac_prev=
958 ac_dashdash=
959 for ac_option
960 do
961   # If the previous option needs an argument, assign it.
962   if test -n "$ac_prev"; then
963     eval $ac_prev=\$ac_option
964     ac_prev=
965     continue
966   fi
967
968   case $ac_option in
969   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970   *=)   ac_optarg= ;;
971   *)    ac_optarg=yes ;;
972   esac
973
974   # Accept the important Cygnus configure options, so we can diagnose typos.
975
976   case $ac_dashdash$ac_option in
977   --)
978     ac_dashdash=yes ;;
979
980   -bindir | --bindir | --bindi | --bind | --bin | --bi)
981     ac_prev=bindir ;;
982   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983     bindir=$ac_optarg ;;
984
985   -build | --build | --buil | --bui | --bu)
986     ac_prev=build_alias ;;
987   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
988     build_alias=$ac_optarg ;;
989
990   -cache-file | --cache-file | --cache-fil | --cache-fi \
991   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992     ac_prev=cache_file ;;
993   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
995     cache_file=$ac_optarg ;;
996
997   --config-cache | -C)
998     cache_file=config.cache ;;
999
1000   -datadir | --datadir | --datadi | --datad)
1001     ac_prev=datadir ;;
1002   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1003     datadir=$ac_optarg ;;
1004
1005   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006   | --dataroo | --dataro | --datar)
1007     ac_prev=datarootdir ;;
1008   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010     datarootdir=$ac_optarg ;;
1011
1012   -disable-* | --disable-*)
1013     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014     # Reject names that are not valid shell variable names.
1015     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016       as_fn_error $? "invalid feature name: $ac_useropt"
1017     ac_useropt_orig=$ac_useropt
1018     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019     case $ac_user_opts in
1020       *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024          ac_unrecognized_sep=', ';;
1025     esac
1026     eval enable_$ac_useropt=no ;;
1027
1028   -docdir | --docdir | --docdi | --doc | --do)
1029     ac_prev=docdir ;;
1030   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031     docdir=$ac_optarg ;;
1032
1033   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034     ac_prev=dvidir ;;
1035   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036     dvidir=$ac_optarg ;;
1037
1038   -enable-* | --enable-*)
1039     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040     # Reject names that are not valid shell variable names.
1041     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042       as_fn_error $? "invalid feature name: $ac_useropt"
1043     ac_useropt_orig=$ac_useropt
1044     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045     case $ac_user_opts in
1046       *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050          ac_unrecognized_sep=', ';;
1051     esac
1052     eval enable_$ac_useropt=\$ac_optarg ;;
1053
1054   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056   | --exec | --exe | --ex)
1057     ac_prev=exec_prefix ;;
1058   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060   | --exec=* | --exe=* | --ex=*)
1061     exec_prefix=$ac_optarg ;;
1062
1063   -gas | --gas | --ga | --g)
1064     # Obsolete; use --with-gas.
1065     with_gas=yes ;;
1066
1067   -help | --help | --hel | --he | -h)
1068     ac_init_help=long ;;
1069   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070     ac_init_help=recursive ;;
1071   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072     ac_init_help=short ;;
1073
1074   -host | --host | --hos | --ho)
1075     ac_prev=host_alias ;;
1076   -host=* | --host=* | --hos=* | --ho=*)
1077     host_alias=$ac_optarg ;;
1078
1079   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080     ac_prev=htmldir ;;
1081   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082   | --ht=*)
1083     htmldir=$ac_optarg ;;
1084
1085   -includedir | --includedir | --includedi | --included | --include \
1086   | --includ | --inclu | --incl | --inc)
1087     ac_prev=includedir ;;
1088   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089   | --includ=* | --inclu=* | --incl=* | --inc=*)
1090     includedir=$ac_optarg ;;
1091
1092   -infodir | --infodir | --infodi | --infod | --info | --inf)
1093     ac_prev=infodir ;;
1094   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095     infodir=$ac_optarg ;;
1096
1097   -libdir | --libdir | --libdi | --libd)
1098     ac_prev=libdir ;;
1099   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100     libdir=$ac_optarg ;;
1101
1102   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103   | --libexe | --libex | --libe)
1104     ac_prev=libexecdir ;;
1105   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106   | --libexe=* | --libex=* | --libe=*)
1107     libexecdir=$ac_optarg ;;
1108
1109   -localedir | --localedir | --localedi | --localed | --locale)
1110     ac_prev=localedir ;;
1111   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112     localedir=$ac_optarg ;;
1113
1114   -localstatedir | --localstatedir | --localstatedi | --localstated \
1115   | --localstate | --localstat | --localsta | --localst | --locals)
1116     ac_prev=localstatedir ;;
1117   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119     localstatedir=$ac_optarg ;;
1120
1121   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122     ac_prev=mandir ;;
1123   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124     mandir=$ac_optarg ;;
1125
1126   -nfp | --nfp | --nf)
1127     # Obsolete; use --without-fp.
1128     with_fp=no ;;
1129
1130   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131   | --no-cr | --no-c | -n)
1132     no_create=yes ;;
1133
1134   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136     no_recursion=yes ;;
1137
1138   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140   | --oldin | --oldi | --old | --ol | --o)
1141     ac_prev=oldincludedir ;;
1142   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145     oldincludedir=$ac_optarg ;;
1146
1147   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148     ac_prev=prefix ;;
1149   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150     prefix=$ac_optarg ;;
1151
1152   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153   | --program-pre | --program-pr | --program-p)
1154     ac_prev=program_prefix ;;
1155   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157     program_prefix=$ac_optarg ;;
1158
1159   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160   | --program-suf | --program-su | --program-s)
1161     ac_prev=program_suffix ;;
1162   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164     program_suffix=$ac_optarg ;;
1165
1166   -program-transform-name | --program-transform-name \
1167   | --program-transform-nam | --program-transform-na \
1168   | --program-transform-n | --program-transform- \
1169   | --program-transform | --program-transfor \
1170   | --program-transfo | --program-transf \
1171   | --program-trans | --program-tran \
1172   | --progr-tra | --program-tr | --program-t)
1173     ac_prev=program_transform_name ;;
1174   -program-transform-name=* | --program-transform-name=* \
1175   | --program-transform-nam=* | --program-transform-na=* \
1176   | --program-transform-n=* | --program-transform-=* \
1177   | --program-transform=* | --program-transfor=* \
1178   | --program-transfo=* | --program-transf=* \
1179   | --program-trans=* | --program-tran=* \
1180   | --progr-tra=* | --program-tr=* | --program-t=*)
1181     program_transform_name=$ac_optarg ;;
1182
1183   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184     ac_prev=pdfdir ;;
1185   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186     pdfdir=$ac_optarg ;;
1187
1188   -psdir | --psdir | --psdi | --psd | --ps)
1189     ac_prev=psdir ;;
1190   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191     psdir=$ac_optarg ;;
1192
1193   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194   | -silent | --silent | --silen | --sile | --sil)
1195     silent=yes ;;
1196
1197   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198     ac_prev=sbindir ;;
1199   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200   | --sbi=* | --sb=*)
1201     sbindir=$ac_optarg ;;
1202
1203   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205   | --sharedst | --shareds | --shared | --share | --shar \
1206   | --sha | --sh)
1207     ac_prev=sharedstatedir ;;
1208   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211   | --sha=* | --sh=*)
1212     sharedstatedir=$ac_optarg ;;
1213
1214   -site | --site | --sit)
1215     ac_prev=site ;;
1216   -site=* | --site=* | --sit=*)
1217     site=$ac_optarg ;;
1218
1219   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220     ac_prev=srcdir ;;
1221   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222     srcdir=$ac_optarg ;;
1223
1224   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225   | --syscon | --sysco | --sysc | --sys | --sy)
1226     ac_prev=sysconfdir ;;
1227   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229     sysconfdir=$ac_optarg ;;
1230
1231   -target | --target | --targe | --targ | --tar | --ta | --t)
1232     ac_prev=target_alias ;;
1233   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234     target_alias=$ac_optarg ;;
1235
1236   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237     verbose=yes ;;
1238
1239   -version | --version | --versio | --versi | --vers | -V)
1240     ac_init_version=: ;;
1241
1242   -with-* | --with-*)
1243     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244     # Reject names that are not valid shell variable names.
1245     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246       as_fn_error $? "invalid package name: $ac_useropt"
1247     ac_useropt_orig=$ac_useropt
1248     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249     case $ac_user_opts in
1250       *"
1251 "with_$ac_useropt"
1252 "*) ;;
1253       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254          ac_unrecognized_sep=', ';;
1255     esac
1256     eval with_$ac_useropt=\$ac_optarg ;;
1257
1258   -without-* | --without-*)
1259     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260     # Reject names that are not valid shell variable names.
1261     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262       as_fn_error $? "invalid package name: $ac_useropt"
1263     ac_useropt_orig=$ac_useropt
1264     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265     case $ac_user_opts in
1266       *"
1267 "with_$ac_useropt"
1268 "*) ;;
1269       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270          ac_unrecognized_sep=', ';;
1271     esac
1272     eval with_$ac_useropt=no ;;
1273
1274   --x)
1275     # Obsolete; use --with-x.
1276     with_x=yes ;;
1277
1278   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279   | --x-incl | --x-inc | --x-in | --x-i)
1280     ac_prev=x_includes ;;
1281   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1283     x_includes=$ac_optarg ;;
1284
1285   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287     ac_prev=x_libraries ;;
1288   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1290     x_libraries=$ac_optarg ;;
1291
1292   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information"
1294     ;;
1295
1296   *=*)
1297     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298     # Reject names that are not valid shell variable names.
1299     case $ac_envvar in #(
1300       '' | [0-9]* | *[!_$as_cr_alnum]* )
1301       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1302     esac
1303     eval $ac_envvar=\$ac_optarg
1304     export $ac_envvar ;;
1305
1306   *)
1307     # FIXME: should be removed in autoconf 3.0.
1308     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1312     ;;
1313
1314   esac
1315 done
1316
1317 if test -n "$ac_prev"; then
1318   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1319   as_fn_error $? "missing argument to $ac_option"
1320 fi
1321
1322 if test -n "$ac_unrecognized_opts"; then
1323   case $enable_option_checking in
1324     no) ;;
1325     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1326     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327   esac
1328 fi
1329
1330 # Check all directory arguments for consistency.
1331 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332                 datadir sysconfdir sharedstatedir localstatedir includedir \
1333                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334                 libdir localedir mandir
1335 do
1336   eval ac_val=\$$ac_var
1337   # Remove trailing slashes.
1338   case $ac_val in
1339     */ )
1340       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341       eval $ac_var=\$ac_val;;
1342   esac
1343   # Be sure to have absolute directory names.
1344   case $ac_val in
1345     [\\/$]* | ?:[\\/]* )  continue;;
1346     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347   esac
1348   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1349 done
1350
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1354 build=$build_alias
1355 host=$host_alias
1356 target=$target_alias
1357
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360   if test "x$build_alias" = x; then
1361     cross_compiling=maybe
1362   elif test "x$build_alias" != "x$host_alias"; then
1363     cross_compiling=yes
1364   fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376   as_fn_error $? "working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378   as_fn_error $? "pwd does not report name of working directory"
1379
1380
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383   ac_srcdir_defaulted=yes
1384   # Try the directory containing this script, then the parent directory.
1385   ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387          X"$as_myself" : 'X\(//\)[^/]' \| \
1388          X"$as_myself" : 'X\(//\)$' \| \
1389          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\/\)[^/].*/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\/\)$/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\).*/{
1404             s//\1/
1405             q
1406           }
1407           s/.*/./; q'`
1408   srcdir=$ac_confdir
1409   if test ! -r "$srcdir/$ac_unique_file"; then
1410     srcdir=..
1411   fi
1412 else
1413   ac_srcdir_defaulted=no
1414 fi
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1418 fi
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422         pwd)`
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425   srcdir=.
1426 fi
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1430 case $srcdir in
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 esac
1433 for ac_var in $ac_precious_vars; do
1434   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435   eval ac_env_${ac_var}_value=\$${ac_var}
1436   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438 done
1439
1440 #
1441 # Report the --help message.
1442 #
1443 if test "$ac_init_help" = "long"; then
1444   # Omit some internal or obsolete options to make the list less imposing.
1445   # This message is too long to be a string in the A/UX 3.1 sh.
1446   cat <<_ACEOF
1447 \`configure' configures ibus-libpinyin 1.6.92 to adapt to many kinds of systems.
1448
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE.  See below for descriptions of some of the useful variables.
1453
1454 Defaults for the options are specified in brackets.
1455
1456 Configuration:
1457   -h, --help              display this help and exit
1458       --help=short        display options specific to this package
1459       --help=recursive    display the short help of all the included packages
1460   -V, --version           display version information and exit
1461   -q, --quiet, --silent   do not print \`checking ...' messages
1462       --cache-file=FILE   cache test results in FILE [disabled]
1463   -C, --config-cache      alias for \`--cache-file=config.cache'
1464   -n, --no-create         do not create output files
1465       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1466
1467 Installation directories:
1468   --prefix=PREFIX         install architecture-independent files in PREFIX
1469                           [$ac_default_prefix]
1470   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1471                           [PREFIX]
1472
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1477
1478 For better control, use the options below.
1479
1480 Fine tuning of the installation directories:
1481   --bindir=DIR            user executables [EPREFIX/bin]
1482   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1483   --libexecdir=DIR        program executables [EPREFIX/libexec]
1484   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1485   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1486   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1487   --libdir=DIR            object code libraries [EPREFIX/lib]
1488   --includedir=DIR        C header files [PREFIX/include]
1489   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1490   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1491   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1492   --infodir=DIR           info documentation [DATAROOTDIR/info]
1493   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1494   --mandir=DIR            man documentation [DATAROOTDIR/man]
1495   --docdir=DIR            documentation root [DATAROOTDIR/doc/ibus-libpinyin]
1496   --htmldir=DIR           html documentation [DOCDIR]
1497   --dvidir=DIR            dvi documentation [DOCDIR]
1498   --pdfdir=DIR            pdf documentation [DOCDIR]
1499   --psdir=DIR             ps documentation [DOCDIR]
1500 _ACEOF
1501
1502   cat <<\_ACEOF
1503
1504 Program names:
1505   --program-prefix=PREFIX            prepend PREFIX to installed program names
1506   --program-suffix=SUFFIX            append SUFFIX to installed program names
1507   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1508
1509 System types:
1510   --build=BUILD     configure for building on BUILD [guessed]
1511   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1512 _ACEOF
1513 fi
1514
1515 if test -n "$ac_init_help"; then
1516   case $ac_init_help in
1517      short | recursive ) echo "Configuration of ibus-libpinyin 1.6.92:";;
1518    esac
1519   cat <<\_ACEOF
1520
1521 Optional Features:
1522   --disable-option-checking  ignore unrecognized --enable/--with options
1523   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1524   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1525   --enable-silent-rules   less verbose build output (undo: "make V=1")
1526   --disable-silent-rules  verbose build output (undo: "make V=0")
1527   --enable-dependency-tracking
1528                           do not reject slow dependency extractors
1529   --disable-dependency-tracking
1530                           speeds up one-time build
1531   --enable-maintainer-mode
1532                           enable make rules and dependencies not useful (and
1533                           sometimes confusing) to the casual installer
1534   --enable-static[=PKGS]  build static libraries [default=no]
1535   --disable-nls           do not use Native Language Support
1536   --enable-shared[=PKGS]  build shared libraries [default=yes]
1537   --enable-fast-install[=PKGS]
1538                           optimize for fast installation [default=yes]
1539   --disable-libtool-lock  avoid locking (might break parallel builds)
1540   --enable-boost          Use boost to replace stdc++0x.
1541   --enable-opencc         Use opencc for simplified and traditional Chinese
1542                           conversion
1543   --disable-lua-extension do not build lua extension
1544   --disable-english-input-mode
1545                           do not build english input mode
1546   --disable-stroke-input-mode
1547                           do not build stroke input mode
1548
1549 Optional Packages:
1550   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1551   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1552   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1553                           both]
1554   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1555   --with-sysroot=DIR Search for dependent libraries within DIR
1556                         (or the compiler's sysroot if not specified).
1557   --with-boost=DIR        prefix of Boost 1.39 [guess]
1558
1559 Some influential environment variables:
1560   CC          C compiler command
1561   CFLAGS      C compiler flags
1562   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1563               nonstandard directory <lib dir>
1564   LIBS        libraries to pass to the linker, e.g. -l<library>
1565   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1566               you have headers in a nonstandard directory <include dir>
1567   CPP         C preprocessor
1568   CXX         C++ compiler command
1569   CXXFLAGS    C++ compiler flags
1570   CXXCPP      C++ preprocessor
1571   PKG_CONFIG  path to pkg-config utility
1572   PKG_CONFIG_PATH
1573               directories to add to pkg-config's search path
1574   PKG_CONFIG_LIBDIR
1575               path overriding pkg-config's built-in search path
1576   IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
1577   IBUS_LIBS   linker flags for IBUS, overriding pkg-config
1578   SQLITE_CFLAGS
1579               C compiler flags for SQLITE, overriding pkg-config
1580   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1581   LIBPINYIN_CFLAGS
1582               C compiler flags for LIBPINYIN, overriding pkg-config
1583   LIBPINYIN_LIBS
1584               linker flags for LIBPINYIN, overriding pkg-config
1585   LIBUUID_CFLAGS
1586               C compiler flags for LIBUUID, overriding pkg-config
1587   LIBUUID_LIBS
1588               linker flags for LIBUUID, overriding pkg-config
1589   PYTHON      the Python interpreter
1590   BOOST_ROOT  Location of Boost installation
1591   OPENCC_CFLAGS
1592               C compiler flags for OPENCC, overriding pkg-config
1593   OPENCC_LIBS linker flags for OPENCC, overriding pkg-config
1594   LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
1595   LUA_LIBS    linker flags for LUA, overriding pkg-config
1596
1597 Use these variables to override the choices made by `configure' or to help
1598 it to find libraries and programs with nonstandard names/locations.
1599
1600 Report bugs to <https://github.com/libpinyin/ibus-libpinyin/issues/new>.
1601 _ACEOF
1602 ac_status=$?
1603 fi
1604
1605 if test "$ac_init_help" = "recursive"; then
1606   # If there are subdirs, report their specific --help.
1607   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608     test -d "$ac_dir" ||
1609       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610       continue
1611     ac_builddir=.
1612
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617   # A ".." for each directory in $ac_dir_suffix.
1618   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619   case $ac_top_builddir_sub in
1620   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622   esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1628
1629 case $srcdir in
1630   .)  # We are building in place.
1631     ac_srcdir=.
1632     ac_top_srcdir=$ac_top_builddir_sub
1633     ac_abs_top_srcdir=$ac_pwd ;;
1634   [\\/]* | ?:[\\/]* )  # Absolute name.
1635     ac_srcdir=$srcdir$ac_dir_suffix;
1636     ac_top_srcdir=$srcdir
1637     ac_abs_top_srcdir=$srcdir ;;
1638   *) # Relative name.
1639     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640     ac_top_srcdir=$ac_top_build_prefix$srcdir
1641     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645     cd "$ac_dir" || { ac_status=$?; continue; }
1646     # Check for guested configure.
1647     if test -f "$ac_srcdir/configure.gnu"; then
1648       echo &&
1649       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650     elif test -f "$ac_srcdir/configure"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure" --help=recursive
1653     else
1654       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655     fi || ac_status=$?
1656     cd "$ac_pwd" || { ac_status=$?; break; }
1657   done
1658 fi
1659
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1662   cat <<\_ACEOF
1663 ibus-libpinyin configure 1.6.92
1664 generated by GNU Autoconf 2.69
1665
1666 Copyright (C) 2012 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1669 _ACEOF
1670   exit
1671 fi
1672
1673 ## ------------------------ ##
1674 ## Autoconf initialization. ##
1675 ## ------------------------ ##
1676
1677 # ac_fn_c_try_compile LINENO
1678 # --------------------------
1679 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_compile ()
1681 {
1682   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683   rm -f conftest.$ac_objext
1684   if { { ac_try="$ac_compile"
1685 case "(($ac_try" in
1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687   *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691   (eval "$ac_compile") 2>conftest.err
1692   ac_status=$?
1693   if test -s conftest.err; then
1694     grep -v '^ *+' conftest.err >conftest.er1
1695     cat conftest.er1 >&5
1696     mv -f conftest.er1 conftest.err
1697   fi
1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; } && {
1700          test -z "$ac_c_werror_flag" ||
1701          test ! -s conftest.err
1702        } && test -s conftest.$ac_objext; then :
1703   ac_retval=0
1704 else
1705   $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708         ac_retval=1
1709 fi
1710   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711   as_fn_set_status $ac_retval
1712
1713 } # ac_fn_c_try_compile
1714
1715 # ac_fn_c_try_cpp LINENO
1716 # ----------------------
1717 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_cpp ()
1719 {
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   if { { ac_try="$ac_cpp conftest.$ac_ext"
1722 case "(($ac_try" in
1723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724   *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729   ac_status=$?
1730   if test -s conftest.err; then
1731     grep -v '^ *+' conftest.err >conftest.er1
1732     cat conftest.er1 >&5
1733     mv -f conftest.er1 conftest.err
1734   fi
1735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736   test $ac_status = 0; } > conftest.i && {
1737          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738          test ! -s conftest.err
1739        }; then :
1740   ac_retval=0
1741 else
1742   $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745     ac_retval=1
1746 fi
1747   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748   as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_cpp
1751
1752 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755 # the include files in INCLUDES and setting the cache variable VAR
1756 # accordingly.
1757 ac_fn_c_check_header_mongrel ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   if eval \${$3+:} false; then :
1761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764   $as_echo_n "(cached) " >&6
1765 fi
1766 eval ac_res=\$$3
1767                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 else
1770   # Is the header compilable?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772 $as_echo_n "checking $2 usability... " >&6; }
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h.  */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779   ac_header_compiler=yes
1780 else
1781   ac_header_compiler=no
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785 $as_echo "$ac_header_compiler" >&6; }
1786
1787 # Is the header present?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789 $as_echo_n "checking $2 presence... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h.  */
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_cpp "$LINENO"; then :
1795   ac_header_preproc=yes
1796 else
1797   ac_header_preproc=no
1798 fi
1799 rm -f conftest.err conftest.i conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801 $as_echo "$ac_header_preproc" >&6; }
1802
1803 # So?  What about this header?
1804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805   yes:no: )
1806     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810     ;;
1811   no:yes:* )
1812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1815 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1819 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ( $as_echo "## --------------------------------------------------------------------- ##
1823 ## Report this to https://github.com/libpinyin/ibus-libpinyin/issues/new ##
1824 ## --------------------------------------------------------------------- ##"
1825      ) | sed "s/^/$as_me: WARNING:     /" >&2
1826     ;;
1827 esac
1828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831   $as_echo_n "(cached) " >&6
1832 else
1833   eval "$3=\$ac_header_compiler"
1834 fi
1835 eval ac_res=\$$3
1836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 fi
1839   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_header_mongrel
1842
1843 # ac_fn_c_try_run LINENO
1844 # ----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846 # that executables *can* be run.
1847 ac_fn_c_try_run ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853   *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857   (eval "$ac_link") 2>&5
1858   ac_status=$?
1859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861   { { case "(($ac_try" in
1862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863   *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867   (eval "$ac_try") 2>&5
1868   ac_status=$?
1869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870   test $ac_status = 0; }; }; then :
1871   ac_retval=0
1872 else
1873   $as_echo "$as_me: program exited with status $ac_status" >&5
1874        $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877        ac_retval=$ac_status
1878 fi
1879   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881   as_fn_set_status $ac_retval
1882
1883 } # ac_fn_c_try_run
1884
1885 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists and can be compiled using the include files in
1888 # INCLUDES, setting the cache variable VAR accordingly.
1889 ac_fn_c_check_header_compile ()
1890 {
1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895   $as_echo_n "(cached) " >&6
1896 else
1897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h.  */
1899 $4
1900 #include <$2>
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903   eval "$3=yes"
1904 else
1905   eval "$3=no"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_c_check_header_compile
1915
1916 # ac_fn_cxx_try_compile LINENO
1917 # ----------------------------
1918 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_compile ()
1920 {
1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922   rm -f conftest.$ac_objext
1923   if { { ac_try="$ac_compile"
1924 case "(($ac_try" in
1925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926   *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930   (eval "$ac_compile") 2>conftest.err
1931   ac_status=$?
1932   if test -s conftest.err; then
1933     grep -v '^ *+' conftest.err >conftest.er1
1934     cat conftest.er1 >&5
1935     mv -f conftest.er1 conftest.err
1936   fi
1937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938   test $ac_status = 0; } && {
1939          test -z "$ac_cxx_werror_flag" ||
1940          test ! -s conftest.err
1941        } && test -s conftest.$ac_objext; then :
1942   ac_retval=0
1943 else
1944   $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1946
1947         ac_retval=1
1948 fi
1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950   as_fn_set_status $ac_retval
1951
1952 } # ac_fn_cxx_try_compile
1953
1954 # ac_fn_c_try_link LINENO
1955 # -----------------------
1956 # Try to link conftest.$ac_ext, and return whether this succeeded.
1957 ac_fn_c_try_link ()
1958 {
1959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960   rm -f conftest.$ac_objext conftest$ac_exeext
1961   if { { ac_try="$ac_link"
1962 case "(($ac_try" in
1963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964   *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968   (eval "$ac_link") 2>conftest.err
1969   ac_status=$?
1970   if test -s conftest.err; then
1971     grep -v '^ *+' conftest.err >conftest.er1
1972     cat conftest.er1 >&5
1973     mv -f conftest.er1 conftest.err
1974   fi
1975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976   test $ac_status = 0; } && {
1977          test -z "$ac_c_werror_flag" ||
1978          test ! -s conftest.err
1979        } && test -s conftest$ac_exeext && {
1980          test "$cross_compiling" = yes ||
1981          test -x conftest$ac_exeext
1982        }; then :
1983   ac_retval=0
1984 else
1985   $as_echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1987
1988         ac_retval=1
1989 fi
1990   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1991   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1992   # interfere with the next link command; also delete a directory that is
1993   # left behind by Apple's compiler.  We do this before executing the actions.
1994   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996   as_fn_set_status $ac_retval
1997
1998 } # ac_fn_c_try_link
1999
2000 # ac_fn_c_check_func LINENO FUNC VAR
2001 # ----------------------------------
2002 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2003 ac_fn_c_check_func ()
2004 {
2005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009   $as_echo_n "(cached) " >&6
2010 else
2011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h.  */
2013 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2015 #define $2 innocuous_$2
2016
2017 /* System header to define __stub macros and hopefully few prototypes,
2018     which can conflict with char $2 (); below.
2019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2020     <limits.h> exists even on freestanding compilers.  */
2021
2022 #ifdef __STDC__
2023 # include <limits.h>
2024 #else
2025 # include <assert.h>
2026 #endif
2027
2028 #undef $2
2029
2030 /* Override any GCC internal prototype to avoid an error.
2031    Use char because int might match the return type of a GCC
2032    builtin and then its argument prototype would still apply.  */
2033 #ifdef __cplusplus
2034 extern "C"
2035 #endif
2036 char $2 ();
2037 /* The GNU C library defines this for functions which it implements
2038     to always fail with ENOSYS.  Some functions are actually named
2039     something starting with __ and the normal name is an alias.  */
2040 #if defined __stub_$2 || defined __stub___$2
2041 choke me
2042 #endif
2043
2044 int
2045 main ()
2046 {
2047 return $2 ();
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_link "$LINENO"; then :
2053   eval "$3=yes"
2054 else
2055   eval "$3=no"
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext \
2058     conftest$ac_exeext conftest.$ac_ext
2059 fi
2060 eval ac_res=\$$3
2061                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064
2065 } # ac_fn_c_check_func
2066
2067 # ac_fn_cxx_try_cpp LINENO
2068 # ------------------------
2069 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2070 ac_fn_cxx_try_cpp ()
2071 {
2072   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073   if { { ac_try="$ac_cpp conftest.$ac_ext"
2074 case "(($ac_try" in
2075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076   *) ac_try_echo=$ac_try;;
2077 esac
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2081   ac_status=$?
2082   if test -s conftest.err; then
2083     grep -v '^ *+' conftest.err >conftest.er1
2084     cat conftest.er1 >&5
2085     mv -f conftest.er1 conftest.err
2086   fi
2087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088   test $ac_status = 0; } > conftest.i && {
2089          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2090          test ! -s conftest.err
2091        }; then :
2092   ac_retval=0
2093 else
2094   $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097     ac_retval=1
2098 fi
2099   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100   as_fn_set_status $ac_retval
2101
2102 } # ac_fn_cxx_try_cpp
2103
2104 # ac_fn_cxx_try_link LINENO
2105 # -------------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded.
2107 ac_fn_cxx_try_link ()
2108 {
2109   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110   rm -f conftest.$ac_objext conftest$ac_exeext
2111   if { { ac_try="$ac_link"
2112 case "(($ac_try" in
2113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114   *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118   (eval "$ac_link") 2>conftest.err
2119   ac_status=$?
2120   if test -s conftest.err; then
2121     grep -v '^ *+' conftest.err >conftest.er1
2122     cat conftest.er1 >&5
2123     mv -f conftest.er1 conftest.err
2124   fi
2125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126   test $ac_status = 0; } && {
2127          test -z "$ac_cxx_werror_flag" ||
2128          test ! -s conftest.err
2129        } && test -s conftest$ac_exeext && {
2130          test "$cross_compiling" = yes ||
2131          test -x conftest$ac_exeext
2132        }; then :
2133   ac_retval=0
2134 else
2135   $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2137
2138         ac_retval=1
2139 fi
2140   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2141   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2142   # interfere with the next link command; also delete a directory that is
2143   # left behind by Apple's compiler.  We do this before executing the actions.
2144   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146   as_fn_set_status $ac_retval
2147
2148 } # ac_fn_cxx_try_link
2149
2150 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2151 # ---------------------------------------------------------
2152 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2153 # the include files in INCLUDES and setting the cache variable VAR
2154 # accordingly.
2155 ac_fn_cxx_check_header_mongrel ()
2156 {
2157   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158   if eval \${$3+:} false; then :
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162   $as_echo_n "(cached) " >&6
2163 fi
2164 eval ac_res=\$$3
2165                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 else
2168   # Is the header compilable?
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2170 $as_echo_n "checking $2 usability... " >&6; }
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h.  */
2173 $4
2174 #include <$2>
2175 _ACEOF
2176 if ac_fn_cxx_try_compile "$LINENO"; then :
2177   ac_header_compiler=yes
2178 else
2179   ac_header_compiler=no
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2183 $as_echo "$ac_header_compiler" >&6; }
2184
2185 # Is the header present?
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2187 $as_echo_n "checking $2 presence... " >&6; }
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h.  */
2190 #include <$2>
2191 _ACEOF
2192 if ac_fn_cxx_try_cpp "$LINENO"; then :
2193   ac_header_preproc=yes
2194 else
2195   ac_header_preproc=no
2196 fi
2197 rm -f conftest.err conftest.i conftest.$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2199 $as_echo "$ac_header_preproc" >&6; }
2200
2201 # So?  What about this header?
2202 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2203   yes:no: )
2204     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2205 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2206     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2207 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2208     ;;
2209   no:yes:* )
2210     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2211 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2212     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2213 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2214     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2215 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2216     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2217 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2218     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2219 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2220 ( $as_echo "## --------------------------------------------------------------------- ##
2221 ## Report this to https://github.com/libpinyin/ibus-libpinyin/issues/new ##
2222 ## --------------------------------------------------------------------- ##"
2223      ) | sed "s/^/$as_me: WARNING:     /" >&2
2224     ;;
2225 esac
2226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229   $as_echo_n "(cached) " >&6
2230 else
2231   eval "$3=\$ac_header_compiler"
2232 fi
2233 eval ac_res=\$$3
2234                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 fi
2237   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238
2239 } # ac_fn_cxx_check_header_mongrel
2240 cat >config.log <<_ACEOF
2241 This file contains any messages produced by compilers while
2242 running configure, to aid debugging if configure makes a mistake.
2243
2244 It was created by ibus-libpinyin $as_me 1.6.92, which was
2245 generated by GNU Autoconf 2.69.  Invocation command line was
2246
2247   $ $0 $@
2248
2249 _ACEOF
2250 exec 5>>config.log
2251 {
2252 cat <<_ASUNAME
2253 ## --------- ##
2254 ## Platform. ##
2255 ## --------- ##
2256
2257 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2258 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2259 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2260 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2261 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2262
2263 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2264 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2265
2266 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2267 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2268 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2269 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2270 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2271 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2272 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2273
2274 _ASUNAME
2275
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279   IFS=$as_save_IFS
2280   test -z "$as_dir" && as_dir=.
2281     $as_echo "PATH: $as_dir"
2282   done
2283 IFS=$as_save_IFS
2284
2285 } >&5
2286
2287 cat >&5 <<_ACEOF
2288
2289
2290 ## ----------- ##
2291 ## Core tests. ##
2292 ## ----------- ##
2293
2294 _ACEOF
2295
2296
2297 # Keep a trace of the command line.
2298 # Strip out --no-create and --no-recursion so they do not pile up.
2299 # Strip out --silent because we don't want to record it for future runs.
2300 # Also quote any args containing shell meta-characters.
2301 # Make two passes to allow for proper duplicate-argument suppression.
2302 ac_configure_args=
2303 ac_configure_args0=
2304 ac_configure_args1=
2305 ac_must_keep_next=false
2306 for ac_pass in 1 2
2307 do
2308   for ac_arg
2309   do
2310     case $ac_arg in
2311     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2312     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2313     | -silent | --silent | --silen | --sile | --sil)
2314       continue ;;
2315     *\'*)
2316       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2317     esac
2318     case $ac_pass in
2319     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2320     2)
2321       as_fn_append ac_configure_args1 " '$ac_arg'"
2322       if test $ac_must_keep_next = true; then
2323         ac_must_keep_next=false # Got value, back to normal.
2324       else
2325         case $ac_arg in
2326           *=* | --config-cache | -C | -disable-* | --disable-* \
2327           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2328           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2329           | -with-* | --with-* | -without-* | --without-* | --x)
2330             case "$ac_configure_args0 " in
2331               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2332             esac
2333             ;;
2334           -* ) ac_must_keep_next=true ;;
2335         esac
2336       fi
2337       as_fn_append ac_configure_args " '$ac_arg'"
2338       ;;
2339     esac
2340   done
2341 done
2342 { ac_configure_args0=; unset ac_configure_args0;}
2343 { ac_configure_args1=; unset ac_configure_args1;}
2344
2345 # When interrupted or exit'd, cleanup temporary files, and complete
2346 # config.log.  We remove comments because anyway the quotes in there
2347 # would cause problems or look ugly.
2348 # WARNING: Use '\'' to represent an apostrophe within the trap.
2349 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2350 trap 'exit_status=$?
2351   # Save into config.log some information that might help in debugging.
2352   {
2353     echo
2354
2355     $as_echo "## ---------------- ##
2356 ## Cache variables. ##
2357 ## ---------------- ##"
2358     echo
2359     # The following way of writing the cache mishandles newlines in values,
2360 (
2361   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2362     eval ac_val=\$$ac_var
2363     case $ac_val in #(
2364     *${as_nl}*)
2365       case $ac_var in #(
2366       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2368       esac
2369       case $ac_var in #(
2370       _ | IFS | as_nl) ;; #(
2371       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2372       *) { eval $ac_var=; unset $ac_var;} ;;
2373       esac ;;
2374     esac
2375   done
2376   (set) 2>&1 |
2377     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2378     *${as_nl}ac_space=\ *)
2379       sed -n \
2380         "s/'\''/'\''\\\\'\'''\''/g;
2381           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2382       ;; #(
2383     *)
2384       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385       ;;
2386     esac |
2387     sort
2388 )
2389     echo
2390
2391     $as_echo "## ----------------- ##
2392 ## Output variables. ##
2393 ## ----------------- ##"
2394     echo
2395     for ac_var in $ac_subst_vars
2396     do
2397       eval ac_val=\$$ac_var
2398       case $ac_val in
2399       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400       esac
2401       $as_echo "$ac_var='\''$ac_val'\''"
2402     done | sort
2403     echo
2404
2405     if test -n "$ac_subst_files"; then
2406       $as_echo "## ------------------- ##
2407 ## File substitutions. ##
2408 ## ------------------- ##"
2409       echo
2410       for ac_var in $ac_subst_files
2411       do
2412         eval ac_val=\$$ac_var
2413         case $ac_val in
2414         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415         esac
2416         $as_echo "$ac_var='\''$ac_val'\''"
2417       done | sort
2418       echo
2419     fi
2420
2421     if test -s confdefs.h; then
2422       $as_echo "## ----------- ##
2423 ## confdefs.h. ##
2424 ## ----------- ##"
2425       echo
2426       cat confdefs.h
2427       echo
2428     fi
2429     test "$ac_signal" != 0 &&
2430       $as_echo "$as_me: caught signal $ac_signal"
2431     $as_echo "$as_me: exit $exit_status"
2432   } >&5
2433   rm -f core *.core core.conftest.* &&
2434     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2435     exit $exit_status
2436 ' 0
2437 for ac_signal in 1 2 13 15; do
2438   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2439 done
2440 ac_signal=0
2441
2442 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2443 rm -f -r conftest* confdefs.h
2444
2445 $as_echo "/* confdefs.h */" > confdefs.h
2446
2447 # Predefined preprocessor variables.
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_NAME "$PACKAGE_NAME"
2451 _ACEOF
2452
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2455 _ACEOF
2456
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2459 _ACEOF
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_STRING "$PACKAGE_STRING"
2463 _ACEOF
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2467 _ACEOF
2468
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_URL "$PACKAGE_URL"
2471 _ACEOF
2472
2473
2474 # Let the site file select an alternate cache file if it wants to.
2475 # Prefer an explicitly selected file to automatically selected ones.
2476 ac_site_file1=NONE
2477 ac_site_file2=NONE
2478 if test -n "$CONFIG_SITE"; then
2479   # We do not want a PATH search for config.site.
2480   case $CONFIG_SITE in #((
2481     -*)  ac_site_file1=./$CONFIG_SITE;;
2482     */*) ac_site_file1=$CONFIG_SITE;;
2483     *)   ac_site_file1=./$CONFIG_SITE;;
2484   esac
2485 elif test "x$prefix" != xNONE; then
2486   ac_site_file1=$prefix/share/config.site
2487   ac_site_file2=$prefix/etc/config.site
2488 else
2489   ac_site_file1=$ac_default_prefix/share/config.site
2490   ac_site_file2=$ac_default_prefix/etc/config.site
2491 fi
2492 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2493 do
2494   test "x$ac_site_file" = xNONE && continue
2495   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2496     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2498     sed 's/^/| /' "$ac_site_file" >&5
2499     . "$ac_site_file" \
2500       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502 as_fn_error $? "failed to load site script $ac_site_file
2503 See \`config.log' for more details" "$LINENO" 5; }
2504   fi
2505 done
2506
2507 if test -r "$cache_file"; then
2508   # Some versions of bash will fail to source /dev/null (special files
2509   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2510   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2511     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2512 $as_echo "$as_me: loading cache $cache_file" >&6;}
2513     case $cache_file in
2514       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2515       *)                      . "./$cache_file";;
2516     esac
2517   fi
2518 else
2519   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2520 $as_echo "$as_me: creating cache $cache_file" >&6;}
2521   >$cache_file
2522 fi
2523
2524 # Check that the precious variables saved in the cache have kept the same
2525 # value.
2526 ac_cache_corrupted=false
2527 for ac_var in $ac_precious_vars; do
2528   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2529   eval ac_new_set=\$ac_env_${ac_var}_set
2530   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2531   eval ac_new_val=\$ac_env_${ac_var}_value
2532   case $ac_old_set,$ac_new_set in
2533     set,)
2534       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2536       ac_cache_corrupted=: ;;
2537     ,set)
2538       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2540       ac_cache_corrupted=: ;;
2541     ,);;
2542     *)
2543       if test "x$ac_old_val" != "x$ac_new_val"; then
2544         # differences in whitespace do not lead to failure.
2545         ac_old_val_w=`echo x $ac_old_val`
2546         ac_new_val_w=`echo x $ac_new_val`
2547         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2548           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2549 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2550           ac_cache_corrupted=:
2551         else
2552           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2553 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2554           eval $ac_var=\$ac_old_val
2555         fi
2556         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2557 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2558         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2559 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2560       fi;;
2561   esac
2562   # Pass precious variables to config.status.
2563   if test "$ac_new_set" = set; then
2564     case $ac_new_val in
2565     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2566     *) ac_arg=$ac_var=$ac_new_val ;;
2567     esac
2568     case " $ac_configure_args " in
2569       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2570       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2571     esac
2572   fi
2573 done
2574 if $ac_cache_corrupted; then
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2578 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2579   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2580 fi
2581 ## -------------------- ##
2582 ## Main body of script. ##
2583 ## -------------------- ##
2584
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590
2591
2592 am__api_version='1.13'
2593
2594 ac_aux_dir=
2595 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2596   if test -f "$ac_dir/install-sh"; then
2597     ac_aux_dir=$ac_dir
2598     ac_install_sh="$ac_aux_dir/install-sh -c"
2599     break
2600   elif test -f "$ac_dir/install.sh"; then
2601     ac_aux_dir=$ac_dir
2602     ac_install_sh="$ac_aux_dir/install.sh -c"
2603     break
2604   elif test -f "$ac_dir/shtool"; then
2605     ac_aux_dir=$ac_dir
2606     ac_install_sh="$ac_aux_dir/shtool install -c"
2607     break
2608   fi
2609 done
2610 if test -z "$ac_aux_dir"; then
2611   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2612 fi
2613
2614 # These three variables are undocumented and unsupported,
2615 # and are intended to be withdrawn in a future Autoconf release.
2616 # They can cause serious problems if a builder's source tree is in a directory
2617 # whose full name contains unusual characters.
2618 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2619 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2620 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2621
2622
2623 # Find a good install program.  We prefer a C program (faster),
2624 # so one script is as good as another.  But avoid the broken or
2625 # incompatible versions:
2626 # SysV /etc/install, /usr/sbin/install
2627 # SunOS /usr/etc/install
2628 # IRIX /sbin/install
2629 # AIX /bin/install
2630 # AmigaOS /C/install, which installs bootblocks on floppy discs
2631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2634 # OS/2's system install, which has a completely different semantic
2635 # ./install, which can be erroneously created by make from ./install.sh.
2636 # Reject install programs that cannot install multiple files.
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2638 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2639 if test -z "$INSTALL"; then
2640 if ${ac_cv_path_install+:} false; then :
2641   $as_echo_n "(cached) " >&6
2642 else
2643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646   IFS=$as_save_IFS
2647   test -z "$as_dir" && as_dir=.
2648     # Account for people who put trailing slashes in PATH elements.
2649 case $as_dir/ in #((
2650   ./ | .// | /[cC]/* | \
2651   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2652   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2653   /usr/ucb/* ) ;;
2654   *)
2655     # OSF1 and SCO ODT 3.0 have their own names for install.
2656     # Don't use installbsd from OSF since it installs stuff as root
2657     # by default.
2658     for ac_prog in ginstall scoinst install; do
2659       for ac_exec_ext in '' $ac_executable_extensions; do
2660         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2661           if test $ac_prog = install &&
2662             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663             # AIX install.  It has an incompatible calling convention.
2664             :
2665           elif test $ac_prog = install &&
2666             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2667             # program-specific install script used by HP pwplus--don't use.
2668             :
2669           else
2670             rm -rf conftest.one conftest.two conftest.dir
2671             echo one > conftest.one
2672             echo two > conftest.two
2673             mkdir conftest.dir
2674             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2675               test -s conftest.one && test -s conftest.two &&
2676               test -s conftest.dir/conftest.one &&
2677               test -s conftest.dir/conftest.two
2678             then
2679               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2680               break 3
2681             fi
2682           fi
2683         fi
2684       done
2685     done
2686     ;;
2687 esac
2688
2689   done
2690 IFS=$as_save_IFS
2691
2692 rm -rf conftest.one conftest.two conftest.dir
2693
2694 fi
2695   if test "${ac_cv_path_install+set}" = set; then
2696     INSTALL=$ac_cv_path_install
2697   else
2698     # As a last resort, use the slow shell script.  Don't cache a
2699     # value for INSTALL within a source directory, because that will
2700     # break other packages using the cache if that directory is
2701     # removed, or if the value is a relative name.
2702     INSTALL=$ac_install_sh
2703   fi
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2706 $as_echo "$INSTALL" >&6; }
2707
2708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2709 # It thinks the first close brace ends the variable substitution.
2710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2711
2712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2713
2714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2717 $as_echo_n "checking whether build environment is sane... " >&6; }
2718 # Reject unsafe characters in $srcdir or the absolute working directory
2719 # name.  Accept space and tab only in the latter.
2720 am_lf='
2721 '
2722 case `pwd` in
2723   *[\\\"\#\$\&\'\`$am_lf]*)
2724     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2725 esac
2726 case $srcdir in
2727   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2728     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2729 esac
2730
2731 # Do 'set' in a subshell so we don't clobber the current shell's
2732 # arguments.  Must try -L first in case configure is actually a
2733 # symlink; some systems play weird games with the mod time of symlinks
2734 # (eg FreeBSD returns the mod time of the symlink's containing
2735 # directory).
2736 if (
2737    am_has_slept=no
2738    for am_try in 1 2; do
2739      echo "timestamp, slept: $am_has_slept" > conftest.file
2740      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2741      if test "$*" = "X"; then
2742         # -L didn't work.
2743         set X `ls -t "$srcdir/configure" conftest.file`
2744      fi
2745      if test "$*" != "X $srcdir/configure conftest.file" \
2746         && test "$*" != "X conftest.file $srcdir/configure"; then
2747
2748         # If neither matched, then we have a broken ls.  This can happen
2749         # if, for instance, CONFIG_SHELL is bash and it inherits a
2750         # broken ls alias from the environment.  This has actually
2751         # happened.  Such a system could not be considered "sane".
2752         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2753   alias in your environment" "$LINENO" 5
2754      fi
2755      if test "$2" = conftest.file || test $am_try -eq 2; then
2756        break
2757      fi
2758      # Just in case.
2759      sleep 1
2760      am_has_slept=yes
2761    done
2762    test "$2" = conftest.file
2763    )
2764 then
2765    # Ok.
2766    :
2767 else
2768    as_fn_error $? "newly created file is older than distributed files!
2769 Check your system clock" "$LINENO" 5
2770 fi
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 $as_echo "yes" >&6; }
2773 # If we didn't sleep, we still need to ensure time stamps of config.status and
2774 # generated files are strictly newer.
2775 am_sleep_pid=
2776 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2777   ( sleep 1 ) &
2778   am_sleep_pid=$!
2779 fi
2780
2781 rm -f conftest.file
2782
2783 test "$program_prefix" != NONE &&
2784   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2785 # Use a double $ so make ignores it.
2786 test "$program_suffix" != NONE &&
2787   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2788 # Double any \ or $.
2789 # By default was `s,x,x', remove it if useless.
2790 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2791 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2792
2793 # expand $ac_aux_dir to an absolute path
2794 am_aux_dir=`cd $ac_aux_dir && pwd`
2795
2796 if test x"${MISSING+set}" != xset; then
2797   case $am_aux_dir in
2798   *\ * | *\     *)
2799     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2800   *)
2801     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2802   esac
2803 fi
2804 # Use eval to expand $SHELL
2805 if eval "$MISSING --is-lightweight"; then
2806   am_missing_run="$MISSING "
2807 else
2808   am_missing_run=
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2810 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2811 fi
2812
2813 if test x"${install_sh}" != xset; then
2814   case $am_aux_dir in
2815   *\ * | *\     *)
2816     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2817   *)
2818     install_sh="\${SHELL} $am_aux_dir/install-sh"
2819   esac
2820 fi
2821
2822 # Installed binaries are usually stripped using 'strip' when the user
2823 # run "make install-strip".  However 'strip' might not be the right
2824 # tool to use in cross-compilation environments, therefore Automake
2825 # will honor the 'STRIP' environment variable to overrule this program.
2826 if test "$cross_compiling" != no; then
2827   if test -n "$ac_tool_prefix"; then
2828   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2829 set dummy ${ac_tool_prefix}strip; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_STRIP+:} false; then :
2833   $as_echo_n "(cached) " >&6
2834 else
2835   if test -n "$STRIP"; then
2836   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841   IFS=$as_save_IFS
2842   test -z "$as_dir" && as_dir=.
2843     for ac_exec_ext in '' $ac_executable_extensions; do
2844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847     break 2
2848   fi
2849 done
2850   done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 STRIP=$ac_cv_prog_STRIP
2856 if test -n "$STRIP"; then
2857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2858 $as_echo "$STRIP" >&6; }
2859 else
2860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864
2865 fi
2866 if test -z "$ac_cv_prog_STRIP"; then
2867   ac_ct_STRIP=$STRIP
2868   # Extract the first word of "strip", so it can be a program name with args.
2869 set dummy strip; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   if test -n "$ac_ct_STRIP"; then
2876   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     for ac_exec_ext in '' $ac_executable_extensions; do
2884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885     ac_cv_prog_ac_ct_STRIP="strip"
2886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887     break 2
2888   fi
2889 done
2890   done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2896 if test -n "$ac_ct_STRIP"; then
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2898 $as_echo "$ac_ct_STRIP" >&6; }
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904   if test "x$ac_ct_STRIP" = x; then
2905     STRIP=":"
2906   else
2907     case $cross_compiling:$ac_tool_warned in
2908 yes:)
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911 ac_tool_warned=yes ;;
2912 esac
2913     STRIP=$ac_ct_STRIP
2914   fi
2915 else
2916   STRIP="$ac_cv_prog_STRIP"
2917 fi
2918
2919 fi
2920 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2921
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2923 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2924 if test -z "$MKDIR_P"; then
2925   if ${ac_cv_path_mkdir+:} false; then :
2926   $as_echo_n "(cached) " >&6
2927 else
2928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2930 do
2931   IFS=$as_save_IFS
2932   test -z "$as_dir" && as_dir=.
2933     for ac_prog in mkdir gmkdir; do
2934          for ac_exec_ext in '' $ac_executable_extensions; do
2935            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2936            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2937              'mkdir (GNU coreutils) '* | \
2938              'mkdir (coreutils) '* | \
2939              'mkdir (fileutils) '4.1*)
2940                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2941                break 3;;
2942            esac
2943          done
2944        done
2945   done
2946 IFS=$as_save_IFS
2947
2948 fi
2949
2950   test -d ./--version && rmdir ./--version
2951   if test "${ac_cv_path_mkdir+set}" = set; then
2952     MKDIR_P="$ac_cv_path_mkdir -p"
2953   else
2954     # As a last resort, use the slow shell script.  Don't cache a
2955     # value for MKDIR_P within a source directory, because that will
2956     # break other packages using the cache if that directory is
2957     # removed, or if the value is a relative name.
2958     MKDIR_P="$ac_install_sh -d"
2959   fi
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2962 $as_echo "$MKDIR_P" >&6; }
2963
2964 for ac_prog in gawk mawk nawk awk
2965 do
2966   # Extract the first word of "$ac_prog", so it can be a program name with args.
2967 set dummy $ac_prog; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_AWK+:} false; then :
2971   $as_echo_n "(cached) " >&6
2972 else
2973   if test -n "$AWK"; then
2974   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979   IFS=$as_save_IFS
2980   test -z "$as_dir" && as_dir=.
2981     for ac_exec_ext in '' $ac_executable_extensions; do
2982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983     ac_cv_prog_AWK="$ac_prog"
2984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985     break 2
2986   fi
2987 done
2988   done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 AWK=$ac_cv_prog_AWK
2994 if test -n "$AWK"; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2996 $as_echo "$AWK" >&6; }
2997 else
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003   test -n "$AWK" && break
3004 done
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3007 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3008 set x ${MAKE-make}
3009 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3010 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   cat >conftest.make <<\_ACEOF
3014 SHELL = /bin/sh
3015 all:
3016         @echo '@@@%%%=$(MAKE)=@@@%%%'
3017 _ACEOF
3018 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3019 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3020   *@@@%%%=?*=@@@%%%*)
3021     eval ac_cv_prog_make_${ac_make}_set=yes;;
3022   *)
3023     eval ac_cv_prog_make_${ac_make}_set=no;;
3024 esac
3025 rm -f conftest.make
3026 fi
3027 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3029 $as_echo "yes" >&6; }
3030   SET_MAKE=
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034   SET_MAKE="MAKE=${MAKE-make}"
3035 fi
3036
3037 rm -rf .tst 2>/dev/null
3038 mkdir .tst 2>/dev/null
3039 if test -d .tst; then
3040   am__leading_dot=.
3041 else
3042   am__leading_dot=_
3043 fi
3044 rmdir .tst 2>/dev/null
3045
3046 # Check whether --enable-silent-rules was given.
3047 if test "${enable_silent_rules+set}" = set; then :
3048   enableval=$enable_silent_rules;
3049 fi
3050
3051 case $enable_silent_rules in # (((
3052   yes) AM_DEFAULT_VERBOSITY=0;;
3053    no) AM_DEFAULT_VERBOSITY=1;;
3054     *) AM_DEFAULT_VERBOSITY=1;;
3055 esac
3056 am_make=${MAKE-make}
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3058 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3059 if ${am_cv_make_support_nested_variables+:} false; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   if $as_echo 'TRUE=$(BAR$(V))
3063 BAR0=false
3064 BAR1=true
3065 V=1
3066 am__doit:
3067         @$(TRUE)
3068 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3069   am_cv_make_support_nested_variables=yes
3070 else
3071   am_cv_make_support_nested_variables=no
3072 fi
3073 fi
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3075 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3076 if test $am_cv_make_support_nested_variables = yes; then
3077     AM_V='$(V)'
3078   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3079 else
3080   AM_V=$AM_DEFAULT_VERBOSITY
3081   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3082 fi
3083 AM_BACKSLASH='\'
3084
3085 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3086   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3087   # is not polluted with repeated "-I."
3088   am__isrc=' -I$(srcdir)'
3089   # test to see if srcdir already configured
3090   if test -f $srcdir/config.status; then
3091     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3092   fi
3093 fi
3094
3095 # test whether we have cygpath
3096 if test -z "$CYGPATH_W"; then
3097   if (cygpath --version) >/dev/null 2>/dev/null; then
3098     CYGPATH_W='cygpath -w'
3099   else
3100     CYGPATH_W=echo
3101   fi
3102 fi
3103
3104
3105 # Define the identity of the package.
3106  PACKAGE='ibus-libpinyin'
3107  VERSION='1.6.92'
3108
3109
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE "$PACKAGE"
3112 _ACEOF
3113
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define VERSION "$VERSION"
3117 _ACEOF
3118
3119 # Some tools Automake needs.
3120
3121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3122
3123
3124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3125
3126
3127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3128
3129
3130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3131
3132
3133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3134
3135 # For better backward compatibility.  To be removed once Automake 1.9.x
3136 # dies out for good.  For more background, see:
3137 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3138 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3139 mkdir_p='$(MKDIR_P)'
3140
3141 # We need awk for the "check" target.  The system "awk" is bad on
3142 # some platforms.
3143 # Always define AMTAR for backward compatibility.  Yes, it's still used
3144 # in the wild :-(  We should find a proper way to deprecate it ...
3145 AMTAR='$${TAR-tar}'
3146
3147
3148 # We'll loop over all known methods to create a tar archive until one works.
3149 _am_tools='gnutar  pax cpio none'
3150
3151 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3152
3153
3154
3155
3156
3157
3158 DEPDIR="${am__leading_dot}deps"
3159
3160 ac_config_commands="$ac_config_commands depfiles"
3161
3162
3163 am_make=${MAKE-make}
3164 cat > confinc << 'END'
3165 am__doit:
3166         @echo this is the am__doit target
3167 .PHONY: am__doit
3168 END
3169 # If we don't find an include directive, just comment out the code.
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3171 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3172 am__include="#"
3173 am__quote=
3174 _am_result=none
3175 # First try GNU make style include.
3176 echo "include confinc" > confmf
3177 # Ignore all kinds of additional output from 'make'.
3178 case `$am_make -s -f confmf 2> /dev/null` in #(
3179 *the\ am__doit\ target*)
3180   am__include=include
3181   am__quote=
3182   _am_result=GNU
3183   ;;
3184 esac
3185 # Now try BSD make style include.
3186 if test "$am__include" = "#"; then
3187    echo '.include "confinc"' > confmf
3188    case `$am_make -s -f confmf 2> /dev/null` in #(
3189    *the\ am__doit\ target*)
3190      am__include=.include
3191      am__quote="\""
3192      _am_result=BSD
3193      ;;
3194    esac
3195 fi
3196
3197
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3199 $as_echo "$_am_result" >&6; }
3200 rm -f confinc confmf
3201
3202 # Check whether --enable-dependency-tracking was given.
3203 if test "${enable_dependency_tracking+set}" = set; then :
3204   enableval=$enable_dependency_tracking;
3205 fi
3206
3207 if test "x$enable_dependency_tracking" != xno; then
3208   am_depcomp="$ac_aux_dir/depcomp"
3209   AMDEPBACKSLASH='\'
3210   am__nodep='_no'
3211 fi
3212  if test "x$enable_dependency_tracking" != xno; then
3213   AMDEP_TRUE=
3214   AMDEP_FALSE='#'
3215 else
3216   AMDEP_TRUE='#'
3217   AMDEP_FALSE=
3218 fi
3219
3220
3221 ac_ext=c
3222 ac_cpp='$CPP $CPPFLAGS'
3223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226 if test -n "$ac_tool_prefix"; then
3227   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3228 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_CC+:} false; then :
3232   $as_echo_n "(cached) " >&6
3233 else
3234   if test -n "$CC"; then
3235   ac_cv_prog_CC="$CC" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242     for ac_exec_ext in '' $ac_executable_extensions; do
3243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246     break 2
3247   fi
3248 done
3249   done
3250 IFS=$as_save_IFS
3251
3252 fi
3253 fi
3254 CC=$ac_cv_prog_CC
3255 if test -n "$CC"; then
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 $as_echo "$CC" >&6; }
3258 else
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 fi
3262
3263
3264 fi
3265 if test -z "$ac_cv_prog_CC"; then
3266   ac_ct_CC=$CC
3267   # Extract the first word of "gcc", so it can be a program name with args.
3268 set dummy gcc; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3272   $as_echo_n "(cached) " >&6
3273 else
3274   if test -n "$ac_ct_CC"; then
3275   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280   IFS=$as_save_IFS
3281   test -z "$as_dir" && as_dir=.
3282     for ac_exec_ext in '' $ac_executable_extensions; do
3283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284     ac_cv_prog_ac_ct_CC="gcc"
3285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286     break 2
3287   fi
3288 done
3289   done
3290 IFS=$as_save_IFS
3291
3292 fi
3293 fi
3294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295 if test -n "$ac_ct_CC"; then
3296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297 $as_echo "$ac_ct_CC" >&6; }
3298 else
3299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 fi
3302
3303   if test "x$ac_ct_CC" = x; then
3304     CC=""
3305   else
3306     case $cross_compiling:$ac_tool_warned in
3307 yes:)
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310 ac_tool_warned=yes ;;
3311 esac
3312     CC=$ac_ct_CC
3313   fi
3314 else
3315   CC="$ac_cv_prog_CC"
3316 fi
3317
3318 if test -z "$CC"; then
3319           if test -n "$ac_tool_prefix"; then
3320     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}cc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   if test -n "$CC"; then
3328   ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335     for ac_exec_ext in '' $ac_executable_extensions; do
3336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337     ac_cv_prog_CC="${ac_tool_prefix}cc"
3338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342   done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357   fi
3358 fi
3359 if test -z "$CC"; then
3360   # Extract the first word of "cc", so it can be a program name with args.
3361 set dummy cc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_CC+:} false; then :
3365   $as_echo_n "(cached) " >&6
3366 else
3367   if test -n "$CC"; then
3368   ac_cv_prog_CC="$CC" # Let the user override the test.
3369 else
3370   ac_prog_rejected=no
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3373 do
3374   IFS=$as_save_IFS
3375   test -z "$as_dir" && as_dir=.
3376     for ac_exec_ext in '' $ac_executable_extensions; do
3377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379        ac_prog_rejected=yes
3380        continue
3381      fi
3382     ac_cv_prog_CC="cc"
3383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387   done
3388 IFS=$as_save_IFS
3389
3390 if test $ac_prog_rejected = yes; then
3391   # We found a bogon in the path, so make sure we never use it.
3392   set dummy $ac_cv_prog_CC
3393   shift
3394   if test $# != 0; then
3395     # We chose a different compiler from the bogus one.
3396     # However, it has the same basename, so the bogon will be chosen
3397     # first if we set CC to just the basename; use the full file name.
3398     shift
3399     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3400   fi
3401 fi
3402 fi
3403 fi
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3408 else
3409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413
3414 fi
3415 if test -z "$CC"; then
3416   if test -n "$ac_tool_prefix"; then
3417   for ac_prog in cl.exe
3418   do
3419     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_CC+:} false; then :
3424   $as_echo_n "(cached) " >&6
3425 else
3426   if test -n "$CC"; then
3427   ac_cv_prog_CC="$CC" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
3433   test -z "$as_dir" && as_dir=.
3434     for ac_exec_ext in '' $ac_executable_extensions; do
3435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438     break 2
3439   fi
3440 done
3441   done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 CC=$ac_cv_prog_CC
3447 if test -n "$CC"; then
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3450 else
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456     test -n "$CC" && break
3457   done
3458 fi
3459 if test -z "$CC"; then
3460   ac_ct_CC=$CC
3461   for ac_prog in cl.exe
3462 do
3463   # Extract the first word of "$ac_prog", so it can be a program name with args.
3464 set dummy $ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   if test -n "$ac_ct_CC"; then
3471   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478     for ac_exec_ext in '' $ac_executable_extensions; do
3479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480     ac_cv_prog_ac_ct_CC="$ac_prog"
3481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485   done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491 if test -n "$ac_ct_CC"; then
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493 $as_echo "$ac_ct_CC" >&6; }
3494 else
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499
3500   test -n "$ac_ct_CC" && break
3501 done
3502
3503   if test "x$ac_ct_CC" = x; then
3504     CC=""
3505   else
3506     case $cross_compiling:$ac_tool_warned in
3507 yes:)
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510 ac_tool_warned=yes ;;
3511 esac
3512     CC=$ac_ct_CC
3513   fi
3514 fi
3515
3516 fi
3517
3518
3519 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error $? "no acceptable C compiler found in \$PATH
3522 See \`config.log' for more details" "$LINENO" 5; }
3523
3524 # Provide some information about the compiler.
3525 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3526 set X $ac_compile
3527 ac_compiler=$2
3528 for ac_option in --version -v -V -qversion; do
3529   { { ac_try="$ac_compiler $ac_option >&5"
3530 case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3537   ac_status=$?
3538   if test -s conftest.err; then
3539     sed '10a\
3540 ... rest of stderr output deleted ...
3541          10q' conftest.err >conftest.er1
3542     cat conftest.er1 >&5
3543   fi
3544   rm -f conftest.er1 conftest.err
3545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546   test $ac_status = 0; }
3547 done
3548
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h.  */
3551
3552 int
3553 main ()
3554 {
3555
3556   ;
3557   return 0;
3558 }
3559 _ACEOF
3560 ac_clean_files_save=$ac_clean_files
3561 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3562 # Try to create an executable without -o first, disregard a.out.
3563 # It will help us diagnose broken compilers, and finding out an intuition
3564 # of exeext.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3566 $as_echo_n "checking whether the C compiler works... " >&6; }
3567 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3568
3569 # The possible output files:
3570 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3571
3572 ac_rmfiles=
3573 for ac_file in $ac_files
3574 do
3575   case $ac_file in
3576     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3578   esac
3579 done
3580 rm -f $ac_rmfiles
3581
3582 if { { ac_try="$ac_link_default"
3583 case "(($ac_try" in
3584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585   *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589   (eval "$ac_link_default") 2>&5
3590   ac_status=$?
3591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592   test $ac_status = 0; }; then :
3593   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3594 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3595 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3596 # so that the user can short-circuit this test for compilers unknown to
3597 # Autoconf.
3598 for ac_file in $ac_files ''
3599 do
3600   test -f "$ac_file" || continue
3601   case $ac_file in
3602     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3603         ;;
3604     [ab].out )
3605         # We found the default executable, but exeext='' is most
3606         # certainly right.
3607         break;;
3608     *.* )
3609         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3610         then :; else
3611            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612         fi
3613         # We set ac_cv_exeext here because the later test for it is not
3614         # safe: cross compilers may not add the suffix if given an `-o'
3615         # argument, so we may need to know it at that point already.
3616         # Even if this section looks crufty: it has the advantage of
3617         # actually working.
3618         break;;
3619     * )
3620         break;;
3621   esac
3622 done
3623 test "$ac_cv_exeext" = no && ac_cv_exeext=
3624
3625 else
3626   ac_file=''
3627 fi
3628 if test -z "$ac_file"; then :
3629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3631 $as_echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error 77 "C compiler cannot create executables
3637 See \`config.log' for more details" "$LINENO" 5; }
3638 else
3639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3640 $as_echo "yes" >&6; }
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3643 $as_echo_n "checking for C compiler default output file name... " >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3645 $as_echo "$ac_file" >&6; }
3646 ac_exeext=$ac_cv_exeext
3647
3648 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3649 ac_clean_files=$ac_clean_files_save
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3651 $as_echo_n "checking for suffix of executables... " >&6; }
3652 if { { ac_try="$ac_link"
3653 case "(($ac_try" in
3654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655   *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659   (eval "$ac_link") 2>&5
3660   ac_status=$?
3661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662   test $ac_status = 0; }; then :
3663   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3664 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3665 # work properly (i.e., refer to `conftest.exe'), while it won't with
3666 # `rm'.
3667 for ac_file in conftest.exe conftest conftest.*; do
3668   test -f "$ac_file" || continue
3669   case $ac_file in
3670     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3671     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3672           break;;
3673     * ) break;;
3674   esac
3675 done
3676 else
3677   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3680 See \`config.log' for more details" "$LINENO" 5; }
3681 fi
3682 rm -f conftest conftest$ac_cv_exeext
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3684 $as_echo "$ac_cv_exeext" >&6; }
3685
3686 rm -f conftest.$ac_ext
3687 EXEEXT=$ac_cv_exeext
3688 ac_exeext=$EXEEXT
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h.  */
3691 #include <stdio.h>
3692 int
3693 main ()
3694 {
3695 FILE *f = fopen ("conftest.out", "w");
3696  return ferror (f) || fclose (f) != 0;
3697
3698   ;
3699   return 0;
3700 }
3701 _ACEOF
3702 ac_clean_files="$ac_clean_files conftest.out"
3703 # Check that the compiler produces executables we can run.  If not, either
3704 # the compiler is broken, or we cross compile.
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3706 $as_echo_n "checking whether we are cross compiling... " >&6; }
3707 if test "$cross_compiling" != yes; then
3708   { { ac_try="$ac_link"
3709 case "(($ac_try" in
3710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711   *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715   (eval "$ac_link") 2>&5
3716   ac_status=$?
3717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718   test $ac_status = 0; }
3719   if { ac_try='./conftest$ac_cv_exeext'
3720   { { case "(($ac_try" in
3721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722   *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726   (eval "$ac_try") 2>&5
3727   ac_status=$?
3728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729   test $ac_status = 0; }; }; then
3730     cross_compiling=no
3731   else
3732     if test "$cross_compiling" = maybe; then
3733         cross_compiling=yes
3734     else
3735         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "cannot run C compiled programs.
3738 If you meant to cross compile, use \`--host'.
3739 See \`config.log' for more details" "$LINENO" 5; }
3740     fi
3741   fi
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3744 $as_echo "$cross_compiling" >&6; }
3745
3746 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3747 ac_clean_files=$ac_clean_files_save
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3749 $as_echo_n "checking for suffix of object files... " >&6; }
3750 if ${ac_cv_objext+:} false; then :
3751   $as_echo_n "(cached) " >&6
3752 else
3753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h.  */
3755
3756 int
3757 main ()
3758 {
3759
3760   ;
3761   return 0;
3762 }
3763 _ACEOF
3764 rm -f conftest.o conftest.obj
3765 if { { ac_try="$ac_compile"
3766 case "(($ac_try" in
3767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768   *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772   (eval "$ac_compile") 2>&5
3773   ac_status=$?
3774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775   test $ac_status = 0; }; then :
3776   for ac_file in conftest.o conftest.obj conftest.*; do
3777   test -f "$ac_file" || continue;
3778   case $ac_file in
3779     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3780     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3781        break;;
3782   esac
3783 done
3784 else
3785   $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error $? "cannot compute suffix of object files: cannot compile
3791 See \`config.log' for more details" "$LINENO" 5; }
3792 fi
3793 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3796 $as_echo "$ac_cv_objext" >&6; }
3797 OBJEXT=$ac_cv_objext
3798 ac_objext=$OBJEXT
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3801 if ${ac_cv_c_compiler_gnu+:} false; then :
3802   $as_echo_n "(cached) " >&6
3803 else
3804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h.  */
3806
3807 int
3808 main ()
3809 {
3810 #ifndef __GNUC__
3811        choke me
3812 #endif
3813
3814   ;
3815   return 0;
3816 }
3817 _ACEOF
3818 if ac_fn_c_try_compile "$LINENO"; then :
3819   ac_compiler_gnu=yes
3820 else
3821   ac_compiler_gnu=no
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3825
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3829 if test $ac_compiler_gnu = yes; then
3830   GCC=yes
3831 else
3832   GCC=
3833 fi
3834 ac_test_CFLAGS=${CFLAGS+set}
3835 ac_save_CFLAGS=$CFLAGS
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3838 if ${ac_cv_prog_cc_g+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   ac_save_c_werror_flag=$ac_c_werror_flag
3842    ac_c_werror_flag=yes
3843    ac_cv_prog_cc_g=no
3844    CFLAGS="-g"
3845    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h.  */
3847
3848 int
3849 main ()
3850 {
3851
3852   ;
3853   return 0;
3854 }
3855 _ACEOF
3856 if ac_fn_c_try_compile "$LINENO"; then :
3857   ac_cv_prog_cc_g=yes
3858 else
3859   CFLAGS=""
3860       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h.  */
3862
3863 int
3864 main ()
3865 {
3866
3867   ;
3868   return 0;
3869 }
3870 _ACEOF
3871 if ac_fn_c_try_compile "$LINENO"; then :
3872
3873 else
3874   ac_c_werror_flag=$ac_save_c_werror_flag
3875          CFLAGS="-g"
3876          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888   ac_cv_prog_cc_g=yes
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 fi
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 fi
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895    ac_c_werror_flag=$ac_save_c_werror_flag
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3898 $as_echo "$ac_cv_prog_cc_g" >&6; }
3899 if test "$ac_test_CFLAGS" = set; then
3900   CFLAGS=$ac_save_CFLAGS
3901 elif test $ac_cv_prog_cc_g = yes; then
3902   if test "$GCC" = yes; then
3903     CFLAGS="-g -O2"
3904   else
3905     CFLAGS="-g"
3906   fi
3907 else
3908   if test "$GCC" = yes; then
3909     CFLAGS="-O2"
3910   else
3911     CFLAGS=
3912   fi
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3916 if ${ac_cv_prog_cc_c89+:} false; then :
3917   $as_echo_n "(cached) " >&6
3918 else
3919   ac_cv_prog_cc_c89=no
3920 ac_save_CC=$CC
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h.  */
3923 #include <stdarg.h>
3924 #include <stdio.h>
3925 struct stat;
3926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3927 struct buf { int x; };
3928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929 static char *e (p, i)
3930      char **p;
3931      int i;
3932 {
3933   return p[i];
3934 }
3935 static char *f (char * (*g) (char **, int), char **p, ...)
3936 {
3937   char *s;
3938   va_list v;
3939   va_start (v,p);
3940   s = g (p, va_arg (v,int));
3941   va_end (v);
3942   return s;
3943 }
3944
3945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3946    function prototypes and stuff, but not '\xHH' hex character constants.
3947    These don't provoke an error unfortunately, instead are silently treated
3948    as 'x'.  The following induces an error, until -std is added to get
3949    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3950    array size at least.  It's necessary to write '\x00'==0 to get something
3951    that's true only with -std.  */
3952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953
3954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955    inside strings and character constants.  */
3956 #define FOO(x) 'x'
3957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958
3959 int test (int i, double x);
3960 struct s1 {int (*f) (int a);};
3961 struct s2 {int (*f) (double a);};
3962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963 int argc;
3964 char **argv;
3965 int
3966 main ()
3967 {
3968 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3969   ;
3970   return 0;
3971 }
3972 _ACEOF
3973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975 do
3976   CC="$ac_save_CC $ac_arg"
3977   if ac_fn_c_try_compile "$LINENO"; then :
3978   ac_cv_prog_cc_c89=$ac_arg
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext
3981   test "x$ac_cv_prog_cc_c89" != "xno" && break
3982 done
3983 rm -f conftest.$ac_ext
3984 CC=$ac_save_CC
3985
3986 fi
3987 # AC_CACHE_VAL
3988 case "x$ac_cv_prog_cc_c89" in
3989   x)
3990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991 $as_echo "none needed" >&6; } ;;
3992   xno)
3993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994 $as_echo "unsupported" >&6; } ;;
3995   *)
3996     CC="$CC $ac_cv_prog_cc_c89"
3997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3999 esac
4000 if test "x$ac_cv_prog_cc_c89" != xno; then :
4001
4002 fi
4003
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010 depcc="$CC"   am_compiler_list=
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4013 $as_echo_n "checking dependency style of $depcc... " >&6; }
4014 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4015   $as_echo_n "(cached) " >&6
4016 else
4017   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4018   # We make a subdir and do the tests there.  Otherwise we can end up
4019   # making bogus files that we don't know about and never remove.  For
4020   # instance it was reported that on HP-UX the gcc test will end up
4021   # making a dummy file named 'D' -- because '-MD' means "put the output
4022   # in D".
4023   rm -rf conftest.dir
4024   mkdir conftest.dir
4025   # Copy depcomp to subdir because otherwise we won't find it if we're
4026   # using a relative directory.
4027   cp "$am_depcomp" conftest.dir
4028   cd conftest.dir
4029   # We will build objects and dependencies in a subdirectory because
4030   # it helps to detect inapplicable dependency modes.  For instance
4031   # both Tru64's cc and ICC support -MD to output dependencies as a
4032   # side effect of compilation, but ICC will put the dependencies in
4033   # the current directory while Tru64 will put them in the object
4034   # directory.
4035   mkdir sub
4036
4037   am_cv_CC_dependencies_compiler_type=none
4038   if test "$am_compiler_list" = ""; then
4039      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4040   fi
4041   am__universal=false
4042   case " $depcc " in #(
4043      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4044      esac
4045
4046   for depmode in $am_compiler_list; do
4047     # Setup a source with many dependencies, because some compilers
4048     # like to wrap large dependency lists on column 80 (with \), and
4049     # we should not choose a depcomp mode which is confused by this.
4050     #
4051     # We need to recreate these files for each test, as the compiler may
4052     # overwrite some of them when testing with obscure command lines.
4053     # This happens at least with the AIX C compiler.
4054     : > sub/conftest.c
4055     for i in 1 2 3 4 5 6; do
4056       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4057       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4058       # Solaris 10 /bin/sh.
4059       echo '/* dummy */' > sub/conftst$i.h
4060     done
4061     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4062
4063     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4064     # mode.  It turns out that the SunPro C++ compiler does not properly
4065     # handle '-M -o', and we need to detect this.  Also, some Intel
4066     # versions had trouble with output in subdirs.
4067     am__obj=sub/conftest.${OBJEXT-o}
4068     am__minus_obj="-o $am__obj"
4069     case $depmode in
4070     gcc)
4071       # This depmode causes a compiler race in universal mode.
4072       test "$am__universal" = false || continue
4073       ;;
4074     nosideeffect)
4075       # After this tag, mechanisms are not by side-effect, so they'll
4076       # only be used when explicitly requested.
4077       if test "x$enable_dependency_tracking" = xyes; then
4078         continue
4079       else
4080         break
4081       fi
4082       ;;
4083     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4084       # This compiler won't grok '-c -o', but also, the minuso test has
4085       # not run yet.  These depmodes are late enough in the game, and
4086       # so weak that their functioning should not be impacted.
4087       am__obj=conftest.${OBJEXT-o}
4088       am__minus_obj=
4089       ;;
4090     none) break ;;
4091     esac
4092     if depmode=$depmode \
4093        source=sub/conftest.c object=$am__obj \
4094        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4095        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4096          >/dev/null 2>conftest.err &&
4097        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4098        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4099        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4100        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4101       # icc doesn't choke on unknown options, it will just issue warnings
4102       # or remarks (even with -Werror).  So we grep stderr for any message
4103       # that says an option was ignored or not supported.
4104       # When given -MP, icc 7.0 and 7.1 complain thusly:
4105       #   icc: Command line warning: ignoring option '-M'; no argument required
4106       # The diagnosis changed in icc 8.0:
4107       #   icc: Command line remark: option '-MP' not supported
4108       if (grep 'ignoring option' conftest.err ||
4109           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4110         am_cv_CC_dependencies_compiler_type=$depmode
4111         break
4112       fi
4113     fi
4114   done
4115
4116   cd ..
4117   rm -rf conftest.dir
4118 else
4119   am_cv_CC_dependencies_compiler_type=none
4120 fi
4121
4122 fi
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4124 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4125 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4126
4127  if
4128   test "x$enable_dependency_tracking" != xno \
4129   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4130   am__fastdepCC_TRUE=
4131   am__fastdepCC_FALSE='#'
4132 else
4133   am__fastdepCC_TRUE='#'
4134   am__fastdepCC_FALSE=
4135 fi
4136
4137
4138
4139 ac_ext=c
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4145 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4146 # On Suns, sometimes $CPP names a directory.
4147 if test -n "$CPP" && test -d "$CPP"; then
4148   CPP=
4149 fi
4150 if test -z "$CPP"; then
4151   if ${ac_cv_prog_CPP+:} false; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154       # Double quotes because CPP needs to be expanded
4155     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4156     do
4157       ac_preproc_ok=false
4158 for ac_c_preproc_warn_flag in '' yes
4159 do
4160   # Use a header file that comes with gcc, so configuring glibc
4161   # with a fresh cross-compiler works.
4162   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4163   # <limits.h> exists even on freestanding compilers.
4164   # On the NeXT, cc -E runs the code through the compiler's parser,
4165   # not just through cpp. "Syntax error" is here to catch this case.
4166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h.  */
4168 #ifdef __STDC__
4169 # include <limits.h>
4170 #else
4171 # include <assert.h>
4172 #endif
4173                      Syntax error
4174 _ACEOF
4175 if ac_fn_c_try_cpp "$LINENO"; then :
4176
4177 else
4178   # Broken: fails on valid input.
4179 continue
4180 fi
4181 rm -f conftest.err conftest.i conftest.$ac_ext
4182
4183   # OK, works on sane cases.  Now check whether nonexistent headers
4184   # can be detected and how.
4185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h.  */
4187 #include <ac_nonexistent.h>
4188 _ACEOF
4189 if ac_fn_c_try_cpp "$LINENO"; then :
4190   # Broken: success on invalid input.
4191 continue
4192 else
4193   # Passes both tests.
4194 ac_preproc_ok=:
4195 break
4196 fi
4197 rm -f conftest.err conftest.i conftest.$ac_ext
4198
4199 done
4200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4201 rm -f conftest.i conftest.err conftest.$ac_ext
4202 if $ac_preproc_ok; then :
4203   break
4204 fi
4205
4206     done
4207     ac_cv_prog_CPP=$CPP
4208
4209 fi
4210   CPP=$ac_cv_prog_CPP
4211 else
4212   ac_cv_prog_CPP=$CPP
4213 fi
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4215 $as_echo "$CPP" >&6; }
4216 ac_preproc_ok=false
4217 for ac_c_preproc_warn_flag in '' yes
4218 do
4219   # Use a header file that comes with gcc, so configuring glibc
4220   # with a fresh cross-compiler works.
4221   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4222   # <limits.h> exists even on freestanding compilers.
4223   # On the NeXT, cc -E runs the code through the compiler's parser,
4224   # not just through cpp. "Syntax error" is here to catch this case.
4225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h.  */
4227 #ifdef __STDC__
4228 # include <limits.h>
4229 #else
4230 # include <assert.h>
4231 #endif
4232                      Syntax error
4233 _ACEOF
4234 if ac_fn_c_try_cpp "$LINENO"; then :
4235
4236 else
4237   # Broken: fails on valid input.
4238 continue
4239 fi
4240 rm -f conftest.err conftest.i conftest.$ac_ext
4241
4242   # OK, works on sane cases.  Now check whether nonexistent headers
4243   # can be detected and how.
4244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h.  */
4246 #include <ac_nonexistent.h>
4247 _ACEOF
4248 if ac_fn_c_try_cpp "$LINENO"; then :
4249   # Broken: success on invalid input.
4250 continue
4251 else
4252   # Passes both tests.
4253 ac_preproc_ok=:
4254 break
4255 fi
4256 rm -f conftest.err conftest.i conftest.$ac_ext
4257
4258 done
4259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4260 rm -f conftest.i conftest.err conftest.$ac_ext
4261 if $ac_preproc_ok; then :
4262
4263 else
4264   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4267 See \`config.log' for more details" "$LINENO" 5; }
4268 fi
4269
4270 ac_ext=c
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4278 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4279 if ${ac_cv_path_GREP+:} false; then :
4280   $as_echo_n "(cached) " >&6
4281 else
4282   if test -z "$GREP"; then
4283   ac_path_GREP_found=false
4284   # Loop through the user's path and test for each of PROGNAME-LIST
4285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4287 do
4288   IFS=$as_save_IFS
4289   test -z "$as_dir" && as_dir=.
4290     for ac_prog in grep ggrep; do
4291     for ac_exec_ext in '' $ac_executable_extensions; do
4292       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4293       as_fn_executable_p "$ac_path_GREP" || continue
4294 # Check for GNU ac_path_GREP and select it if it is found.
4295   # Check for GNU $ac_path_GREP
4296 case `"$ac_path_GREP" --version 2>&1` in
4297 *GNU*)
4298   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4299 *)
4300   ac_count=0
4301   $as_echo_n 0123456789 >"conftest.in"
4302   while :
4303   do
4304     cat "conftest.in" "conftest.in" >"conftest.tmp"
4305     mv "conftest.tmp" "conftest.in"
4306     cp "conftest.in" "conftest.nl"
4307     $as_echo 'GREP' >> "conftest.nl"
4308     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4309     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4310     as_fn_arith $ac_count + 1 && ac_count=$as_val
4311     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4312       # Best one so far, save it but keep looking for a better one
4313       ac_cv_path_GREP="$ac_path_GREP"
4314       ac_path_GREP_max=$ac_count
4315     fi
4316     # 10*(2^10) chars as input seems more than enough
4317     test $ac_count -gt 10 && break
4318   done
4319   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4320 esac
4321
4322       $ac_path_GREP_found && break 3
4323     done
4324   done
4325   done
4326 IFS=$as_save_IFS
4327   if test -z "$ac_cv_path_GREP"; then
4328     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4329   fi
4330 else
4331   ac_cv_path_GREP=$GREP
4332 fi
4333
4334 fi
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4336 $as_echo "$ac_cv_path_GREP" >&6; }
4337  GREP="$ac_cv_path_GREP"
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4341 $as_echo_n "checking for egrep... " >&6; }
4342 if ${ac_cv_path_EGREP+:} false; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4346    then ac_cv_path_EGREP="$GREP -E"
4347    else
4348      if test -z "$EGREP"; then
4349   ac_path_EGREP_found=false
4350   # Loop through the user's path and test for each of PROGNAME-LIST
4351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356     for ac_prog in egrep; do
4357     for ac_exec_ext in '' $ac_executable_extensions; do
4358       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4359       as_fn_executable_p "$ac_path_EGREP" || continue
4360 # Check for GNU ac_path_EGREP and select it if it is found.
4361   # Check for GNU $ac_path_EGREP
4362 case `"$ac_path_EGREP" --version 2>&1` in
4363 *GNU*)
4364   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4365 *)
4366   ac_count=0
4367   $as_echo_n 0123456789 >"conftest.in"
4368   while :
4369   do
4370     cat "conftest.in" "conftest.in" >"conftest.tmp"
4371     mv "conftest.tmp" "conftest.in"
4372     cp "conftest.in" "conftest.nl"
4373     $as_echo 'EGREP' >> "conftest.nl"
4374     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376     as_fn_arith $ac_count + 1 && ac_count=$as_val
4377     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4378       # Best one so far, save it but keep looking for a better one
4379       ac_cv_path_EGREP="$ac_path_EGREP"
4380       ac_path_EGREP_max=$ac_count
4381     fi
4382     # 10*(2^10) chars as input seems more than enough
4383     test $ac_count -gt 10 && break
4384   done
4385   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4386 esac
4387
4388       $ac_path_EGREP_found && break 3
4389     done
4390   done
4391   done
4392 IFS=$as_save_IFS
4393   if test -z "$ac_cv_path_EGREP"; then
4394     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4395   fi
4396 else
4397   ac_cv_path_EGREP=$EGREP
4398 fi
4399
4400    fi
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4403 $as_echo "$ac_cv_path_EGREP" >&6; }
4404  EGREP="$ac_cv_path_EGREP"
4405
4406
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4408 $as_echo_n "checking for ANSI C header files... " >&6; }
4409 if ${ac_cv_header_stdc+:} false; then :
4410   $as_echo_n "(cached) " >&6
4411 else
4412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h.  */
4414 #include <stdlib.h>
4415 #include <stdarg.h>
4416 #include <string.h>
4417 #include <float.h>
4418
4419 int
4420 main ()
4421 {
4422
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 if ac_fn_c_try_compile "$LINENO"; then :
4428   ac_cv_header_stdc=yes
4429 else
4430   ac_cv_header_stdc=no
4431 fi
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433
4434 if test $ac_cv_header_stdc = yes; then
4435   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h.  */
4438 #include <string.h>
4439
4440 _ACEOF
4441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4442   $EGREP "memchr" >/dev/null 2>&1; then :
4443
4444 else
4445   ac_cv_header_stdc=no
4446 fi
4447 rm -f conftest*
4448
4449 fi
4450
4451 if test $ac_cv_header_stdc = yes; then
4452   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h.  */
4455 #include <stdlib.h>
4456
4457 _ACEOF
4458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4459   $EGREP "free" >/dev/null 2>&1; then :
4460
4461 else
4462   ac_cv_header_stdc=no
4463 fi
4464 rm -f conftest*
4465
4466 fi
4467
4468 if test $ac_cv_header_stdc = yes; then
4469   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4470   if test "$cross_compiling" = yes; then :
4471   :
4472 else
4473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h.  */
4475 #include <ctype.h>
4476 #include <stdlib.h>
4477 #if ((' ' & 0x0FF) == 0x020)
4478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4480 #else
4481 # define ISLOWER(c) \
4482                    (('a' <= (c) && (c) <= 'i') \
4483                      || ('j' <= (c) && (c) <= 'r') \
4484                      || ('s' <= (c) && (c) <= 'z'))
4485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4486 #endif
4487
4488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4489 int
4490 main ()
4491 {
4492   int i;
4493   for (i = 0; i < 256; i++)
4494     if (XOR (islower (i), ISLOWER (i))
4495         || toupper (i) != TOUPPER (i))
4496       return 2;
4497   return 0;
4498 }
4499 _ACEOF
4500 if ac_fn_c_try_run "$LINENO"; then :
4501
4502 else
4503   ac_cv_header_stdc=no
4504 fi
4505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4506   conftest.$ac_objext conftest.beam conftest.$ac_ext
4507 fi
4508
4509 fi
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4512 $as_echo "$ac_cv_header_stdc" >&6; }
4513 if test $ac_cv_header_stdc = yes; then
4514
4515 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4516
4517 fi
4518
4519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4520 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4521                   inttypes.h stdint.h unistd.h
4522 do :
4523   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4524 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4525 "
4526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4527   cat >>confdefs.h <<_ACEOF
4528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4529 _ACEOF
4530
4531 fi
4532
4533 done
4534
4535
4536
4537   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4538 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4539   MINIX=yes
4540 else
4541   MINIX=
4542 fi
4543
4544
4545   if test "$MINIX" = yes; then
4546
4547 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4548
4549
4550 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4551
4552
4553 $as_echo "#define _MINIX 1" >>confdefs.h
4554
4555   fi
4556
4557
4558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4559 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4560 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4561   $as_echo_n "(cached) " >&6
4562 else
4563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h.  */
4565
4566 #         define __EXTENSIONS__ 1
4567           $ac_includes_default
4568 int
4569 main ()
4570 {
4571
4572   ;
4573   return 0;
4574 }
4575 _ACEOF
4576 if ac_fn_c_try_compile "$LINENO"; then :
4577   ac_cv_safe_to_define___extensions__=yes
4578 else
4579   ac_cv_safe_to_define___extensions__=no
4580 fi
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4584 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4585   test $ac_cv_safe_to_define___extensions__ = yes &&
4586     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4587
4588   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4589
4590   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4591
4592   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4593
4594   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4595
4596
4597
4598
4599 ac_config_headers="$ac_config_headers config.h"
4600
4601
4602 # Check whether --enable-silent-rules was given.
4603 if test "${enable_silent_rules+set}" = set; then :
4604   enableval=$enable_silent_rules;
4605 fi
4606
4607 case $enable_silent_rules in # (((
4608   yes) AM_DEFAULT_VERBOSITY=0;;
4609    no) AM_DEFAULT_VERBOSITY=1;;
4610     *) AM_DEFAULT_VERBOSITY=0;;
4611 esac
4612 am_make=${MAKE-make}
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4614 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4615 if ${am_cv_make_support_nested_variables+:} false; then :
4616   $as_echo_n "(cached) " >&6
4617 else
4618   if $as_echo 'TRUE=$(BAR$(V))
4619 BAR0=false
4620 BAR1=true
4621 V=1
4622 am__doit:
4623         @$(TRUE)
4624 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4625   am_cv_make_support_nested_variables=yes
4626 else
4627   am_cv_make_support_nested_variables=no
4628 fi
4629 fi
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4631 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4632 if test $am_cv_make_support_nested_variables = yes; then
4633     AM_V='$(V)'
4634   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4635 else
4636   AM_V=$AM_DEFAULT_VERBOSITY
4637   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4638 fi
4639 AM_BACKSLASH='\'
4640
4641
4642 # define PACKAGE_VERSION_* variables
4643
4644   PACKAGE_VERSION_MAJOR=$(echo 1.6.92 | cut -d'.' -f1)
4645   PACKAGE_VERSION_MINOR=$(echo 1.6.92 | cut -d'.' -f2)
4646   PACKAGE_VERSION_MICRO=$(echo 1.6.92 | cut -d'.' -f3)
4647
4648
4649
4650
4651
4652
4653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking nano version" >&5
4654 $as_echo_n "checking nano version... " >&6; }
4655
4656   NANO=$(echo 1.6.92 | cut -d'.' -f4)
4657
4658   if test x"$NANO" = x || test "x$NANO" = "x0" ; then
4659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0 (release)" >&5
4660 $as_echo "0 (release)" >&6; }
4661     NANO=0
4662     PACKAGE_VERSION_RELEASE=1
4663     :
4664   else
4665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NANO" >&5
4666 $as_echo "$NANO" >&6; }
4667     PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
4668     :
4669   fi
4670   PACKAGE_VERSION_NANO=$NANO
4671
4672
4673
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4675 $as_echo_n "checking whether build environment is sane... " >&6; }
4676 # Reject unsafe characters in $srcdir or the absolute working directory
4677 # name.  Accept space and tab only in the latter.
4678 am_lf='
4679 '
4680 case `pwd` in
4681   *[\\\"\#\$\&\'\`$am_lf]*)
4682     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4683 esac
4684 case $srcdir in
4685   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4686     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4687 esac
4688
4689 # Do 'set' in a subshell so we don't clobber the current shell's
4690 # arguments.  Must try -L first in case configure is actually a
4691 # symlink; some systems play weird games with the mod time of symlinks
4692 # (eg FreeBSD returns the mod time of the symlink's containing
4693 # directory).
4694 if (
4695    am_has_slept=no
4696    for am_try in 1 2; do
4697      echo "timestamp, slept: $am_has_slept" > conftest.file
4698      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4699      if test "$*" = "X"; then
4700         # -L didn't work.
4701         set X `ls -t "$srcdir/configure" conftest.file`
4702      fi
4703      if test "$*" != "X $srcdir/configure conftest.file" \
4704         && test "$*" != "X conftest.file $srcdir/configure"; then
4705
4706         # If neither matched, then we have a broken ls.  This can happen
4707         # if, for instance, CONFIG_SHELL is bash and it inherits a
4708         # broken ls alias from the environment.  This has actually
4709         # happened.  Such a system could not be considered "sane".
4710         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4711   alias in your environment" "$LINENO" 5
4712      fi
4713      if test "$2" = conftest.file || test $am_try -eq 2; then
4714        break
4715      fi
4716      # Just in case.
4717      sleep 1
4718      am_has_slept=yes
4719    done
4720    test "$2" = conftest.file
4721    )
4722 then
4723    # Ok.
4724    :
4725 else
4726    as_fn_error $? "newly created file is older than distributed files!
4727 Check your system clock" "$LINENO" 5
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4730 $as_echo "yes" >&6; }
4731 # If we didn't sleep, we still need to ensure time stamps of config.status and
4732 # generated files are strictly newer.
4733 am_sleep_pid=
4734 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4735   ( sleep 1 ) &
4736   am_sleep_pid=$!
4737 fi
4738
4739 rm -f conftest.file
4740
4741
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4743 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4744     # Check whether --enable-maintainer-mode was given.
4745 if test "${enable_maintainer_mode+set}" = set; then :
4746   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4747 else
4748   USE_MAINTAINER_MODE=no
4749 fi
4750
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4752 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4753    if test $USE_MAINTAINER_MODE = yes; then
4754   MAINTAINER_MODE_TRUE=
4755   MAINTAINER_MODE_FALSE='#'
4756 else
4757   MAINTAINER_MODE_TRUE='#'
4758   MAINTAINER_MODE_FALSE=
4759 fi
4760
4761   MAINT=$MAINTAINER_MODE_TRUE
4762
4763
4764 # Check whether --enable-static was given.
4765 if test "${enable_static+set}" = set; then :
4766   enableval=$enable_static; p=${PACKAGE-default}
4767     case $enableval in
4768     yes) enable_static=yes ;;
4769     no) enable_static=no ;;
4770     *)
4771      enable_static=no
4772       # Look at the argument we got.  We use all the common list separators.
4773       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4774       for pkg in $enableval; do
4775         IFS="$lt_save_ifs"
4776         if test "X$pkg" = "X$p"; then
4777           enable_static=yes
4778         fi
4779       done
4780       IFS="$lt_save_ifs"
4781       ;;
4782     esac
4783 else
4784   enable_static=no
4785 fi
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795 ac_ext=c
4796 ac_cpp='$CPP $CPPFLAGS'
4797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800 if test -n "$ac_tool_prefix"; then
4801   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_CC+:} false; then :
4806   $as_echo_n "(cached) " >&6
4807 else
4808   if test -n "$CC"; then
4809   ac_cv_prog_CC="$CC" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814   IFS=$as_save_IFS
4815   test -z "$as_dir" && as_dir=.
4816     for ac_exec_ext in '' $ac_executable_extensions; do
4817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820     break 2
4821   fi
4822 done
4823   done
4824 IFS=$as_save_IFS
4825
4826 fi
4827 fi
4828 CC=$ac_cv_prog_CC
4829 if test -n "$CC"; then
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4831 $as_echo "$CC" >&6; }
4832 else
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4835 fi
4836
4837
4838 fi
4839 if test -z "$ac_cv_prog_CC"; then
4840   ac_ct_CC=$CC
4841   # Extract the first word of "gcc", so it can be a program name with args.
4842 set dummy gcc; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   if test -n "$ac_ct_CC"; then
4849   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854   IFS=$as_save_IFS
4855   test -z "$as_dir" && as_dir=.
4856     for ac_exec_ext in '' $ac_executable_extensions; do
4857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858     ac_cv_prog_ac_ct_CC="gcc"
4859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860     break 2
4861   fi
4862 done
4863   done
4864 IFS=$as_save_IFS
4865
4866 fi
4867 fi
4868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4869 if test -n "$ac_ct_CC"; then
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4871 $as_echo "$ac_ct_CC" >&6; }
4872 else
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876
4877   if test "x$ac_ct_CC" = x; then
4878     CC=""
4879   else
4880     case $cross_compiling:$ac_tool_warned in
4881 yes:)
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4884 ac_tool_warned=yes ;;
4885 esac
4886     CC=$ac_ct_CC
4887   fi
4888 else
4889   CC="$ac_cv_prog_CC"
4890 fi
4891
4892 if test -z "$CC"; then
4893           if test -n "$ac_tool_prefix"; then
4894     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4895 set dummy ${ac_tool_prefix}cc; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_CC+:} false; then :
4899   $as_echo_n "(cached) " >&6
4900 else
4901   if test -n "$CC"; then
4902   ac_cv_prog_CC="$CC" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907   IFS=$as_save_IFS
4908   test -z "$as_dir" && as_dir=.
4909     for ac_exec_ext in '' $ac_executable_extensions; do
4910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911     ac_cv_prog_CC="${ac_tool_prefix}cc"
4912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916   done
4917 IFS=$as_save_IFS
4918
4919 fi
4920 fi
4921 CC=$ac_cv_prog_CC
4922 if test -n "$CC"; then
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4924 $as_echo "$CC" >&6; }
4925 else
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4928 fi
4929
4930
4931   fi
4932 fi
4933 if test -z "$CC"; then
4934   # Extract the first word of "cc", so it can be a program name with args.
4935 set dummy cc; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_prog_CC+:} false; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   if test -n "$CC"; then
4942   ac_cv_prog_CC="$CC" # Let the user override the test.
4943 else
4944   ac_prog_rejected=no
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948   IFS=$as_save_IFS
4949   test -z "$as_dir" && as_dir=.
4950     for ac_exec_ext in '' $ac_executable_extensions; do
4951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4953        ac_prog_rejected=yes
4954        continue
4955      fi
4956     ac_cv_prog_CC="cc"
4957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961   done
4962 IFS=$as_save_IFS
4963
4964 if test $ac_prog_rejected = yes; then
4965   # We found a bogon in the path, so make sure we never use it.
4966   set dummy $ac_cv_prog_CC
4967   shift
4968   if test $# != 0; then
4969     # We chose a different compiler from the bogus one.
4970     # However, it has the same basename, so the bogon will be chosen
4971     # first if we set CC to just the basename; use the full file name.
4972     shift
4973     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4974   fi
4975 fi
4976 fi
4977 fi
4978 CC=$ac_cv_prog_CC
4979 if test -n "$CC"; then
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4981 $as_echo "$CC" >&6; }
4982 else
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987
4988 fi
4989 if test -z "$CC"; then
4990   if test -n "$ac_tool_prefix"; then
4991   for ac_prog in cl.exe
4992   do
4993     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_prog_CC+:} false; then :
4998   $as_echo_n "(cached) " >&6
4999 else
5000   if test -n "$CC"; then
5001   ac_cv_prog_CC="$CC" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006   IFS=$as_save_IFS
5007   test -z "$as_dir" && as_dir=.
5008     for ac_exec_ext in '' $ac_executable_extensions; do
5009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012     break 2
5013   fi
5014 done
5015   done
5016 IFS=$as_save_IFS
5017
5018 fi
5019 fi
5020 CC=$ac_cv_prog_CC
5021 if test -n "$CC"; then
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5023 $as_echo "$CC" >&6; }
5024 else
5025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5027 fi
5028
5029
5030     test -n "$CC" && break
5031   done
5032 fi
5033 if test -z "$CC"; then
5034   ac_ct_CC=$CC
5035   for ac_prog in cl.exe
5036 do
5037   # Extract the first word of "$ac_prog", so it can be a program name with args.
5038 set dummy $ac_prog; ac_word=$2
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5042   $as_echo_n "(cached) " >&6
5043 else
5044   if test -n "$ac_ct_CC"; then
5045   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050   IFS=$as_save_IFS
5051   test -z "$as_dir" && as_dir=.
5052     for ac_exec_ext in '' $ac_executable_extensions; do
5053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054     ac_cv_prog_ac_ct_CC="$ac_prog"
5055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056     break 2
5057   fi
5058 done
5059   done
5060 IFS=$as_save_IFS
5061
5062 fi
5063 fi
5064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5065 if test -n "$ac_ct_CC"; then
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5067 $as_echo "$ac_ct_CC" >&6; }
5068 else
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072
5073
5074   test -n "$ac_ct_CC" && break
5075 done
5076
5077   if test "x$ac_ct_CC" = x; then
5078     CC=""
5079   else
5080     case $cross_compiling:$ac_tool_warned in
5081 yes:)
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5084 ac_tool_warned=yes ;;
5085 esac
5086     CC=$ac_ct_CC
5087   fi
5088 fi
5089
5090 fi
5091
5092
5093 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5095 as_fn_error $? "no acceptable C compiler found in \$PATH
5096 See \`config.log' for more details" "$LINENO" 5; }
5097
5098 # Provide some information about the compiler.
5099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5100 set X $ac_compile
5101 ac_compiler=$2
5102 for ac_option in --version -v -V -qversion; do
5103   { { ac_try="$ac_compiler $ac_option >&5"
5104 case "(($ac_try" in
5105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106   *) ac_try_echo=$ac_try;;
5107 esac
5108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5109 $as_echo "$ac_try_echo"; } >&5
5110   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5111   ac_status=$?
5112   if test -s conftest.err; then
5113     sed '10a\
5114 ... rest of stderr output deleted ...
5115          10q' conftest.err >conftest.er1
5116     cat conftest.er1 >&5
5117   fi
5118   rm -f conftest.er1 conftest.err
5119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120   test $ac_status = 0; }
5121 done
5122
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5124 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5125 if ${ac_cv_c_compiler_gnu+:} false; then :
5126   $as_echo_n "(cached) " >&6
5127 else
5128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h.  */
5130
5131 int
5132 main ()
5133 {
5134 #ifndef __GNUC__
5135        choke me
5136 #endif
5137
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 if ac_fn_c_try_compile "$LINENO"; then :
5143   ac_compiler_gnu=yes
5144 else
5145   ac_compiler_gnu=no
5146 fi
5147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5149
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5152 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5153 if test $ac_compiler_gnu = yes; then
5154   GCC=yes
5155 else
5156   GCC=
5157 fi
5158 ac_test_CFLAGS=${CFLAGS+set}
5159 ac_save_CFLAGS=$CFLAGS
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5161 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5162 if ${ac_cv_prog_cc_g+:} false; then :
5163   $as_echo_n "(cached) " >&6
5164 else
5165   ac_save_c_werror_flag=$ac_c_werror_flag
5166    ac_c_werror_flag=yes
5167    ac_cv_prog_cc_g=no
5168    CFLAGS="-g"
5169    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h.  */
5171
5172 int
5173 main ()
5174 {
5175
5176   ;
5177   return 0;
5178 }
5179 _ACEOF
5180 if ac_fn_c_try_compile "$LINENO"; then :
5181   ac_cv_prog_cc_g=yes
5182 else
5183   CFLAGS=""
5184       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h.  */
5186
5187 int
5188 main ()
5189 {
5190
5191   ;
5192   return 0;
5193 }
5194 _ACEOF
5195 if ac_fn_c_try_compile "$LINENO"; then :
5196
5197 else
5198   ac_c_werror_flag=$ac_save_c_werror_flag
5199          CFLAGS="-g"
5200          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h.  */
5202
5203 int
5204 main ()
5205 {
5206
5207   ;
5208   return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_c_try_compile "$LINENO"; then :
5212   ac_cv_prog_cc_g=yes
5213 fi
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 fi
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219    ac_c_werror_flag=$ac_save_c_werror_flag
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5222 $as_echo "$ac_cv_prog_cc_g" >&6; }
5223 if test "$ac_test_CFLAGS" = set; then
5224   CFLAGS=$ac_save_CFLAGS
5225 elif test $ac_cv_prog_cc_g = yes; then
5226   if test "$GCC" = yes; then
5227     CFLAGS="-g -O2"
5228   else
5229     CFLAGS="-g"
5230   fi
5231 else
5232   if test "$GCC" = yes; then
5233     CFLAGS="-O2"
5234   else
5235     CFLAGS=
5236   fi
5237 fi
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5239 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5240 if ${ac_cv_prog_cc_c89+:} false; then :
5241   $as_echo_n "(cached) " >&6
5242 else
5243   ac_cv_prog_cc_c89=no
5244 ac_save_CC=$CC
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h.  */
5247 #include <stdarg.h>
5248 #include <stdio.h>
5249 struct stat;
5250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5251 struct buf { int x; };
5252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5253 static char *e (p, i)
5254      char **p;
5255      int i;
5256 {
5257   return p[i];
5258 }
5259 static char *f (char * (*g) (char **, int), char **p, ...)
5260 {
5261   char *s;
5262   va_list v;
5263   va_start (v,p);
5264   s = g (p, va_arg (v,int));
5265   va_end (v);
5266   return s;
5267 }
5268
5269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5270    function prototypes and stuff, but not '\xHH' hex character constants.
5271    These don't provoke an error unfortunately, instead are silently treated
5272    as 'x'.  The following induces an error, until -std is added to get
5273    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5274    array size at least.  It's necessary to write '\x00'==0 to get something
5275    that's true only with -std.  */
5276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5277
5278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5279    inside strings and character constants.  */
5280 #define FOO(x) 'x'
5281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5282
5283 int test (int i, double x);
5284 struct s1 {int (*f) (int a);};
5285 struct s2 {int (*f) (double a);};
5286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5287 int argc;
5288 char **argv;
5289 int
5290 main ()
5291 {
5292 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5293   ;
5294   return 0;
5295 }
5296 _ACEOF
5297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5298         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5299 do
5300   CC="$ac_save_CC $ac_arg"
5301   if ac_fn_c_try_compile "$LINENO"; then :
5302   ac_cv_prog_cc_c89=$ac_arg
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext
5305   test "x$ac_cv_prog_cc_c89" != "xno" && break
5306 done
5307 rm -f conftest.$ac_ext
5308 CC=$ac_save_CC
5309
5310 fi
5311 # AC_CACHE_VAL
5312 case "x$ac_cv_prog_cc_c89" in
5313   x)
5314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5315 $as_echo "none needed" >&6; } ;;
5316   xno)
5317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5318 $as_echo "unsupported" >&6; } ;;
5319   *)
5320     CC="$CC $ac_cv_prog_cc_c89"
5321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5323 esac
5324 if test "x$ac_cv_prog_cc_c89" != xno; then :
5325
5326 fi
5327
5328 ac_ext=c
5329 ac_cpp='$CPP $CPPFLAGS'
5330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333
5334 depcc="$CC"   am_compiler_list=
5335
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5337 $as_echo_n "checking dependency style of $depcc... " >&6; }
5338 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5342   # We make a subdir and do the tests there.  Otherwise we can end up
5343   # making bogus files that we don't know about and never remove.  For
5344   # instance it was reported that on HP-UX the gcc test will end up
5345   # making a dummy file named 'D' -- because '-MD' means "put the output
5346   # in D".
5347   rm -rf conftest.dir
5348   mkdir conftest.dir
5349   # Copy depcomp to subdir because otherwise we won't find it if we're
5350   # using a relative directory.
5351   cp "$am_depcomp" conftest.dir
5352   cd conftest.dir
5353   # We will build objects and dependencies in a subdirectory because
5354   # it helps to detect inapplicable dependency modes.  For instance
5355   # both Tru64's cc and ICC support -MD to output dependencies as a
5356   # side effect of compilation, but ICC will put the dependencies in
5357   # the current directory while Tru64 will put them in the object
5358   # directory.
5359   mkdir sub
5360
5361   am_cv_CC_dependencies_compiler_type=none
5362   if test "$am_compiler_list" = ""; then
5363      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5364   fi
5365   am__universal=false
5366   case " $depcc " in #(
5367      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5368      esac
5369
5370   for depmode in $am_compiler_list; do
5371     # Setup a source with many dependencies, because some compilers
5372     # like to wrap large dependency lists on column 80 (with \), and
5373     # we should not choose a depcomp mode which is confused by this.
5374     #
5375     # We need to recreate these files for each test, as the compiler may
5376     # overwrite some of them when testing with obscure command lines.
5377     # This happens at least with the AIX C compiler.
5378     : > sub/conftest.c
5379     for i in 1 2 3 4 5 6; do
5380       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5381       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5382       # Solaris 10 /bin/sh.
5383       echo '/* dummy */' > sub/conftst$i.h
5384     done
5385     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5386
5387     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5388     # mode.  It turns out that the SunPro C++ compiler does not properly
5389     # handle '-M -o', and we need to detect this.  Also, some Intel
5390     # versions had trouble with output in subdirs.
5391     am__obj=sub/conftest.${OBJEXT-o}
5392     am__minus_obj="-o $am__obj"
5393     case $depmode in
5394     gcc)
5395       # This depmode causes a compiler race in universal mode.
5396       test "$am__universal" = false || continue
5397       ;;
5398     nosideeffect)
5399       # After this tag, mechanisms are not by side-effect, so they'll
5400       # only be used when explicitly requested.
5401       if test "x$enable_dependency_tracking" = xyes; then
5402         continue
5403       else
5404         break
5405       fi
5406       ;;
5407     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5408       # This compiler won't grok '-c -o', but also, the minuso test has
5409       # not run yet.  These depmodes are late enough in the game, and
5410       # so weak that their functioning should not be impacted.
5411       am__obj=conftest.${OBJEXT-o}
5412       am__minus_obj=
5413       ;;
5414     none) break ;;
5415     esac
5416     if depmode=$depmode \
5417        source=sub/conftest.c object=$am__obj \
5418        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5419        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5420          >/dev/null 2>conftest.err &&
5421        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5422        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5423        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5424        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5425       # icc doesn't choke on unknown options, it will just issue warnings
5426       # or remarks (even with -Werror).  So we grep stderr for any message
5427       # that says an option was ignored or not supported.
5428       # When given -MP, icc 7.0 and 7.1 complain thusly:
5429       #   icc: Command line warning: ignoring option '-M'; no argument required
5430       # The diagnosis changed in icc 8.0:
5431       #   icc: Command line remark: option '-MP' not supported
5432       if (grep 'ignoring option' conftest.err ||
5433           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5434         am_cv_CC_dependencies_compiler_type=$depmode
5435         break
5436       fi
5437     fi
5438   done
5439
5440   cd ..
5441   rm -rf conftest.dir
5442 else
5443   am_cv_CC_dependencies_compiler_type=none
5444 fi
5445
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5448 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5449 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5450
5451  if
5452   test "x$enable_dependency_tracking" != xno \
5453   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5454   am__fastdepCC_TRUE=
5455   am__fastdepCC_FALSE='#'
5456 else
5457   am__fastdepCC_TRUE='#'
5458   am__fastdepCC_FALSE=
5459 fi
5460
5461
5462 ac_ext=cpp
5463 ac_cpp='$CXXCPP $CPPFLAGS'
5464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5467 if test -z "$CXX"; then
5468   if test -n "$CCC"; then
5469     CXX=$CCC
5470   else
5471     if test -n "$ac_tool_prefix"; then
5472   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5473   do
5474     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_CXX+:} false; then :
5479   $as_echo_n "(cached) " >&6
5480 else
5481   if test -n "$CXX"; then
5482   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487   IFS=$as_save_IFS
5488   test -z "$as_dir" && as_dir=.
5489     for ac_exec_ext in '' $ac_executable_extensions; do
5490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493     break 2
5494   fi
5495 done
5496   done
5497 IFS=$as_save_IFS
5498
5499 fi
5500 fi
5501 CXX=$ac_cv_prog_CXX
5502 if test -n "$CXX"; then
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5504 $as_echo "$CXX" >&6; }
5505 else
5506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510
5511     test -n "$CXX" && break
5512   done
5513 fi
5514 if test -z "$CXX"; then
5515   ac_ct_CXX=$CXX
5516   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5517 do
5518   # Extract the first word of "$ac_prog", so it can be a program name with args.
5519 set dummy $ac_prog; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   if test -n "$ac_ct_CXX"; then
5526   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531   IFS=$as_save_IFS
5532   test -z "$as_dir" && as_dir=.
5533     for ac_exec_ext in '' $ac_executable_extensions; do
5534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535     ac_cv_prog_ac_ct_CXX="$ac_prog"
5536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537     break 2
5538   fi
5539 done
5540   done
5541 IFS=$as_save_IFS
5542
5543 fi
5544 fi
5545 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5546 if test -n "$ac_ct_CXX"; then
5547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5548 $as_echo "$ac_ct_CXX" >&6; }
5549 else
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 fi
5553
5554
5555   test -n "$ac_ct_CXX" && break
5556 done
5557
5558   if test "x$ac_ct_CXX" = x; then
5559     CXX="g++"
5560   else
5561     case $cross_compiling:$ac_tool_warned in
5562 yes:)
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned=yes ;;
5566 esac
5567     CXX=$ac_ct_CXX
5568   fi
5569 fi
5570
5571   fi
5572 fi
5573 # Provide some information about the compiler.
5574 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5575 set X $ac_compile
5576 ac_compiler=$2
5577 for ac_option in --version -v -V -qversion; do
5578   { { ac_try="$ac_compiler $ac_option >&5"
5579 case "(($ac_try" in
5580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581   *) ac_try_echo=$ac_try;;
5582 esac
5583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5584 $as_echo "$ac_try_echo"; } >&5
5585   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5586   ac_status=$?
5587   if test -s conftest.err; then
5588     sed '10a\
5589 ... rest of stderr output deleted ...
5590          10q' conftest.err >conftest.er1
5591     cat conftest.er1 >&5
5592   fi
5593   rm -f conftest.er1 conftest.err
5594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5595   test $ac_status = 0; }
5596 done
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5599 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5600 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5601   $as_echo_n "(cached) " >&6
5602 else
5603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h.  */
5605
5606 int
5607 main ()
5608 {
5609 #ifndef __GNUC__
5610        choke me
5611 #endif
5612
5613   ;
5614   return 0;
5615 }
5616 _ACEOF
5617 if ac_fn_cxx_try_compile "$LINENO"; then :
5618   ac_compiler_gnu=yes
5619 else
5620   ac_compiler_gnu=no
5621 fi
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5624
5625 fi
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5627 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5628 if test $ac_compiler_gnu = yes; then
5629   GXX=yes
5630 else
5631   GXX=
5632 fi
5633 ac_test_CXXFLAGS=${CXXFLAGS+set}
5634 ac_save_CXXFLAGS=$CXXFLAGS
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5636 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5637 if ${ac_cv_prog_cxx_g+:} false; then :
5638   $as_echo_n "(cached) " >&6
5639 else
5640   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5641    ac_cxx_werror_flag=yes
5642    ac_cv_prog_cxx_g=no
5643    CXXFLAGS="-g"
5644    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h.  */
5646
5647 int
5648 main ()
5649 {
5650
5651   ;
5652   return 0;
5653 }
5654 _ACEOF
5655 if ac_fn_cxx_try_compile "$LINENO"; then :
5656   ac_cv_prog_cxx_g=yes
5657 else
5658   CXXFLAGS=""
5659       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h.  */
5661
5662 int
5663 main ()
5664 {
5665
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 if ac_fn_cxx_try_compile "$LINENO"; then :
5671
5672 else
5673   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5674          CXXFLAGS="-g"
5675          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h.  */
5677
5678 int
5679 main ()
5680 {
5681
5682   ;
5683   return 0;
5684 }
5685 _ACEOF
5686 if ac_fn_cxx_try_compile "$LINENO"; then :
5687   ac_cv_prog_cxx_g=yes
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5695 fi
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5697 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5698 if test "$ac_test_CXXFLAGS" = set; then
5699   CXXFLAGS=$ac_save_CXXFLAGS
5700 elif test $ac_cv_prog_cxx_g = yes; then
5701   if test "$GXX" = yes; then
5702     CXXFLAGS="-g -O2"
5703   else
5704     CXXFLAGS="-g"
5705   fi
5706 else
5707   if test "$GXX" = yes; then
5708     CXXFLAGS="-O2"
5709   else
5710     CXXFLAGS=
5711   fi
5712 fi
5713 ac_ext=c
5714 ac_cpp='$CPP $CPPFLAGS'
5715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5718
5719 depcc="$CXX"  am_compiler_list=
5720
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5722 $as_echo_n "checking dependency style of $depcc... " >&6; }
5723 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5727   # We make a subdir and do the tests there.  Otherwise we can end up
5728   # making bogus files that we don't know about and never remove.  For
5729   # instance it was reported that on HP-UX the gcc test will end up
5730   # making a dummy file named 'D' -- because '-MD' means "put the output
5731   # in D".
5732   rm -rf conftest.dir
5733   mkdir conftest.dir
5734   # Copy depcomp to subdir because otherwise we won't find it if we're
5735   # using a relative directory.
5736   cp "$am_depcomp" conftest.dir
5737   cd conftest.dir
5738   # We will build objects and dependencies in a subdirectory because
5739   # it helps to detect inapplicable dependency modes.  For instance
5740   # both Tru64's cc and ICC support -MD to output dependencies as a
5741   # side effect of compilation, but ICC will put the dependencies in
5742   # the current directory while Tru64 will put them in the object
5743   # directory.
5744   mkdir sub
5745
5746   am_cv_CXX_dependencies_compiler_type=none
5747   if test "$am_compiler_list" = ""; then
5748      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5749   fi
5750   am__universal=false
5751   case " $depcc " in #(
5752      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5753      esac
5754
5755   for depmode in $am_compiler_list; do
5756     # Setup a source with many dependencies, because some compilers
5757     # like to wrap large dependency lists on column 80 (with \), and
5758     # we should not choose a depcomp mode which is confused by this.
5759     #
5760     # We need to recreate these files for each test, as the compiler may
5761     # overwrite some of them when testing with obscure command lines.
5762     # This happens at least with the AIX C compiler.
5763     : > sub/conftest.c
5764     for i in 1 2 3 4 5 6; do
5765       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5766       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5767       # Solaris 10 /bin/sh.
5768       echo '/* dummy */' > sub/conftst$i.h
5769     done
5770     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5771
5772     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5773     # mode.  It turns out that the SunPro C++ compiler does not properly
5774     # handle '-M -o', and we need to detect this.  Also, some Intel
5775     # versions had trouble with output in subdirs.
5776     am__obj=sub/conftest.${OBJEXT-o}
5777     am__minus_obj="-o $am__obj"
5778     case $depmode in
5779     gcc)
5780       # This depmode causes a compiler race in universal mode.
5781       test "$am__universal" = false || continue
5782       ;;
5783     nosideeffect)
5784       # After this tag, mechanisms are not by side-effect, so they'll
5785       # only be used when explicitly requested.
5786       if test "x$enable_dependency_tracking" = xyes; then
5787         continue
5788       else
5789         break
5790       fi
5791       ;;
5792     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5793       # This compiler won't grok '-c -o', but also, the minuso test has
5794       # not run yet.  These depmodes are late enough in the game, and
5795       # so weak that their functioning should not be impacted.
5796       am__obj=conftest.${OBJEXT-o}
5797       am__minus_obj=
5798       ;;
5799     none) break ;;
5800     esac
5801     if depmode=$depmode \
5802        source=sub/conftest.c object=$am__obj \
5803        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5804        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5805          >/dev/null 2>conftest.err &&
5806        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5807        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5808        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5809        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5810       # icc doesn't choke on unknown options, it will just issue warnings
5811       # or remarks (even with -Werror).  So we grep stderr for any message
5812       # that says an option was ignored or not supported.
5813       # When given -MP, icc 7.0 and 7.1 complain thusly:
5814       #   icc: Command line warning: ignoring option '-M'; no argument required
5815       # The diagnosis changed in icc 8.0:
5816       #   icc: Command line remark: option '-MP' not supported
5817       if (grep 'ignoring option' conftest.err ||
5818           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5819         am_cv_CXX_dependencies_compiler_type=$depmode
5820         break
5821       fi
5822     fi
5823   done
5824
5825   cd ..
5826   rm -rf conftest.dir
5827 else
5828   am_cv_CXX_dependencies_compiler_type=none
5829 fi
5830
5831 fi
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5833 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5834 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5835
5836  if
5837   test "x$enable_dependency_tracking" != xno \
5838   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5839   am__fastdepCXX_TRUE=
5840   am__fastdepCXX_FALSE='#'
5841 else
5842   am__fastdepCXX_TRUE='#'
5843   am__fastdepCXX_FALSE=
5844 fi
5845
5846
5847 if test "x$CC" != xcc; then
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5849 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5850 else
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5852 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5853 fi
5854 set dummy $CC; ac_cc=`$as_echo "$2" |
5855                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5856 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5857   $as_echo_n "(cached) " >&6
5858 else
5859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h.  */
5861
5862 int
5863 main ()
5864 {
5865
5866   ;
5867   return 0;
5868 }
5869 _ACEOF
5870 # Make sure it works both with $CC and with simple cc.
5871 # We do the test twice because some compilers refuse to overwrite an
5872 # existing .o file with -o, though they will create one.
5873 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5874 rm -f conftest2.*
5875 if { { case "(($ac_try" in
5876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877   *) ac_try_echo=$ac_try;;
5878 esac
5879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5880 $as_echo "$ac_try_echo"; } >&5
5881   (eval "$ac_try") 2>&5
5882   ac_status=$?
5883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884   test $ac_status = 0; } &&
5885    test -f conftest2.$ac_objext && { { case "(($ac_try" in
5886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887   *) ac_try_echo=$ac_try;;
5888 esac
5889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5890 $as_echo "$ac_try_echo"; } >&5
5891   (eval "$ac_try") 2>&5
5892   ac_status=$?
5893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5894   test $ac_status = 0; };
5895 then
5896   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5897   if test "x$CC" != xcc; then
5898     # Test first that cc exists at all.
5899     if { ac_try='cc -c conftest.$ac_ext >&5'
5900   { { case "(($ac_try" in
5901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902   *) ac_try_echo=$ac_try;;
5903 esac
5904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5905 $as_echo "$ac_try_echo"; } >&5
5906   (eval "$ac_try") 2>&5
5907   ac_status=$?
5908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5909   test $ac_status = 0; }; }; then
5910       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5911       rm -f conftest2.*
5912       if { { case "(($ac_try" in
5913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914   *) ac_try_echo=$ac_try;;
5915 esac
5916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5917 $as_echo "$ac_try_echo"; } >&5
5918   (eval "$ac_try") 2>&5
5919   ac_status=$?
5920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921   test $ac_status = 0; } &&
5922          test -f conftest2.$ac_objext && { { case "(($ac_try" in
5923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924   *) ac_try_echo=$ac_try;;
5925 esac
5926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5927 $as_echo "$ac_try_echo"; } >&5
5928   (eval "$ac_try") 2>&5
5929   ac_status=$?
5930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931   test $ac_status = 0; };
5932       then
5933         # cc works too.
5934         :
5935       else
5936         # cc exists but doesn't like -o.
5937         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5938       fi
5939     fi
5940   fi
5941 else
5942   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5943 fi
5944 rm -f core conftest*
5945
5946 fi
5947 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5949 $as_echo "yes" >&6; }
5950 else
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5953
5954 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5955
5956 fi
5957
5958 # FIXME: we rely on the cache variable name because
5959 # there is no other way.
5960 set dummy $CC
5961 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5962 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5963 if test "$am_t" != yes; then
5964    # Losing compiler, so override with the script.
5965    # FIXME: It is wrong to rewrite CC.
5966    # But if we don't then we get into trouble of one sort or another.
5967    # A longer-term fix would be to have automake use am__CC in this case,
5968    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5969    CC="$am_aux_dir/compile $CC"
5970 fi
5971
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5974 $as_echo_n "checking for library containing strerror... " >&6; }
5975 if ${ac_cv_search_strerror+:} false; then :
5976   $as_echo_n "(cached) " >&6
5977 else
5978   ac_func_search_save_LIBS=$LIBS
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h.  */
5981
5982 /* Override any GCC internal prototype to avoid an error.
5983    Use char because int might match the return type of a GCC
5984    builtin and then its argument prototype would still apply.  */
5985 #ifdef __cplusplus
5986 extern "C"
5987 #endif
5988 char strerror ();
5989 int
5990 main ()
5991 {
5992 return strerror ();
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 for ac_lib in '' cposix; do
5998   if test -z "$ac_lib"; then
5999     ac_res="none required"
6000   else
6001     ac_res=-l$ac_lib
6002     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6003   fi
6004   if ac_fn_c_try_link "$LINENO"; then :
6005   ac_cv_search_strerror=$ac_res
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext \
6008     conftest$ac_exeext
6009   if ${ac_cv_search_strerror+:} false; then :
6010   break
6011 fi
6012 done
6013 if ${ac_cv_search_strerror+:} false; then :
6014
6015 else
6016   ac_cv_search_strerror=no
6017 fi
6018 rm conftest.$ac_ext
6019 LIBS=$ac_func_search_save_LIBS
6020 fi
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6022 $as_echo "$ac_cv_search_strerror" >&6; }
6023 ac_res=$ac_cv_search_strerror
6024 if test "$ac_res" != no; then :
6025   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6026
6027 fi
6028
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6030 $as_echo_n "checking for ANSI C header files... " >&6; }
6031 if ${ac_cv_header_stdc+:} false; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h.  */
6036 #include <stdlib.h>
6037 #include <stdarg.h>
6038 #include <string.h>
6039 #include <float.h>
6040
6041 int
6042 main ()
6043 {
6044
6045   ;
6046   return 0;
6047 }
6048 _ACEOF
6049 if ac_fn_c_try_compile "$LINENO"; then :
6050   ac_cv_header_stdc=yes
6051 else
6052   ac_cv_header_stdc=no
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055
6056 if test $ac_cv_header_stdc = yes; then
6057   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h.  */
6060 #include <string.h>
6061
6062 _ACEOF
6063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6064   $EGREP "memchr" >/dev/null 2>&1; then :
6065
6066 else
6067   ac_cv_header_stdc=no
6068 fi
6069 rm -f conftest*
6070
6071 fi
6072
6073 if test $ac_cv_header_stdc = yes; then
6074   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h.  */
6077 #include <stdlib.h>
6078
6079 _ACEOF
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081   $EGREP "free" >/dev/null 2>&1; then :
6082
6083 else
6084   ac_cv_header_stdc=no
6085 fi
6086 rm -f conftest*
6087
6088 fi
6089
6090 if test $ac_cv_header_stdc = yes; then
6091   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6092   if test "$cross_compiling" = yes; then :
6093   :
6094 else
6095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h.  */
6097 #include <ctype.h>
6098 #include <stdlib.h>
6099 #if ((' ' & 0x0FF) == 0x020)
6100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6102 #else
6103 # define ISLOWER(c) \
6104                    (('a' <= (c) && (c) <= 'i') \
6105                      || ('j' <= (c) && (c) <= 'r') \
6106                      || ('s' <= (c) && (c) <= 'z'))
6107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6108 #endif
6109
6110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6111 int
6112 main ()
6113 {
6114   int i;
6115   for (i = 0; i < 256; i++)
6116     if (XOR (islower (i), ISLOWER (i))
6117         || toupper (i) != TOUPPER (i))
6118       return 2;
6119   return 0;
6120 }
6121 _ACEOF
6122 if ac_fn_c_try_run "$LINENO"; then :
6123
6124 else
6125   ac_cv_header_stdc=no
6126 fi
6127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6128   conftest.$ac_objext conftest.beam conftest.$ac_ext
6129 fi
6130
6131 fi
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6134 $as_echo "$ac_cv_header_stdc" >&6; }
6135 if test $ac_cv_header_stdc = yes; then
6136
6137 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6138
6139 fi
6140
6141
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6143 $as_echo_n "checking whether NLS is requested... " >&6; }
6144     # Check whether --enable-nls was given.
6145 if test "${enable_nls+set}" = set; then :
6146   enableval=$enable_nls; USE_NLS=$enableval
6147 else
6148   USE_NLS=yes
6149 fi
6150
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6152 $as_echo "$USE_NLS" >&6; }
6153
6154
6155
6156
6157 case "$am__api_version" in
6158     1.01234)
6159         as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
6160     ;;
6161     *)
6162     ;;
6163 esac
6164
6165 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6166 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
6167 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6168 if test -n "0.35.0"; then
6169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
6170 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
6171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
6172 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
6173     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
6174         as_fn_error $? "Your intltool is too old.  You need intltool 0.35.0 or later." "$LINENO" 5
6175 fi
6176
6177 # Extract the first word of "intltool-update", so it can be a program name with args.
6178 set dummy intltool-update; ac_word=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   case $INTLTOOL_UPDATE in
6185   [\\/]* | ?:[\\/]*)
6186   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
6187   ;;
6188   *)
6189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192   IFS=$as_save_IFS
6193   test -z "$as_dir" && as_dir=.
6194     for ac_exec_ext in '' $ac_executable_extensions; do
6195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
6197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198     break 2
6199   fi
6200 done
6201   done
6202 IFS=$as_save_IFS
6203
6204   ;;
6205 esac
6206 fi
6207 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
6208 if test -n "$INTLTOOL_UPDATE"; then
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
6210 $as_echo "$INTLTOOL_UPDATE" >&6; }
6211 else
6212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6214 fi
6215
6216
6217 # Extract the first word of "intltool-merge", so it can be a program name with args.
6218 set dummy intltool-merge; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
6222   $as_echo_n "(cached) " >&6
6223 else
6224   case $INTLTOOL_MERGE in
6225   [\\/]* | ?:[\\/]*)
6226   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
6227   ;;
6228   *)
6229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232   IFS=$as_save_IFS
6233   test -z "$as_dir" && as_dir=.
6234     for ac_exec_ext in '' $ac_executable_extensions; do
6235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
6237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238     break 2
6239   fi
6240 done
6241   done
6242 IFS=$as_save_IFS
6243
6244   ;;
6245 esac
6246 fi
6247 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
6248 if test -n "$INTLTOOL_MERGE"; then
6249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
6250 $as_echo "$INTLTOOL_MERGE" >&6; }
6251 else
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253 $as_echo "no" >&6; }
6254 fi
6255
6256
6257 # Extract the first word of "intltool-extract", so it can be a program name with args.
6258 set dummy intltool-extract; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
6262   $as_echo_n "(cached) " >&6
6263 else
6264   case $INTLTOOL_EXTRACT in
6265   [\\/]* | ?:[\\/]*)
6266   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
6267   ;;
6268   *)
6269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274     for ac_exec_ext in '' $ac_executable_extensions; do
6275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
6277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281   done
6282 IFS=$as_save_IFS
6283
6284   ;;
6285 esac
6286 fi
6287 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
6288 if test -n "$INTLTOOL_EXTRACT"; then
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
6290 $as_echo "$INTLTOOL_EXTRACT" >&6; }
6291 else
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295
6296
6297 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
6298     as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
6299 fi
6300
6301 if test -z "$AM_DEFAULT_VERBOSITY"; then
6302   AM_DEFAULT_VERBOSITY=1
6303 fi
6304
6305
6306 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
6307 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
6308 INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
6309
6310
6311
6312
6313 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
6314 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
6315 intltool__v_merge_options_0='-q'
6316
6317
6318
6319
6320   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6321 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6322      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6323      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6324       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
6325      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6326    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6327     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6328 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6329        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6330       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6331 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
6332       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
6333 else
6334       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
6335 fi
6336       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6337       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6338     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6339   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6340     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6341     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6342    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440 # Check the gettext tools to make sure they are GNU
6441 # Extract the first word of "xgettext", so it can be a program name with args.
6442 set dummy xgettext; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_path_XGETTEXT+:} false; then :
6446   $as_echo_n "(cached) " >&6
6447 else
6448   case $XGETTEXT in
6449   [\\/]* | ?:[\\/]*)
6450   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6451   ;;
6452   *)
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_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
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   ;;
6469 esac
6470 fi
6471 XGETTEXT=$ac_cv_path_XGETTEXT
6472 if test -n "$XGETTEXT"; then
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6474 $as_echo "$XGETTEXT" >&6; }
6475 else
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480
6481 # Extract the first word of "msgmerge", so it can be a program name with args.
6482 set dummy msgmerge; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if ${ac_cv_path_MSGMERGE+:} false; then :
6486   $as_echo_n "(cached) " >&6
6487 else
6488   case $MSGMERGE in
6489   [\\/]* | ?:[\\/]*)
6490   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6491   ;;
6492   *)
6493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496   IFS=$as_save_IFS
6497   test -z "$as_dir" && as_dir=.
6498     for ac_exec_ext in '' $ac_executable_extensions; do
6499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
6501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502     break 2
6503   fi
6504 done
6505   done
6506 IFS=$as_save_IFS
6507
6508   ;;
6509 esac
6510 fi
6511 MSGMERGE=$ac_cv_path_MSGMERGE
6512 if test -n "$MSGMERGE"; then
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6514 $as_echo "$MSGMERGE" >&6; }
6515 else
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6518 fi
6519
6520
6521 # Extract the first word of "msgfmt", so it can be a program name with args.
6522 set dummy msgfmt; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if ${ac_cv_path_MSGFMT+:} false; then :
6526   $as_echo_n "(cached) " >&6
6527 else
6528   case $MSGFMT in
6529   [\\/]* | ?:[\\/]*)
6530   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6531   ;;
6532   *)
6533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536   IFS=$as_save_IFS
6537   test -z "$as_dir" && as_dir=.
6538     for ac_exec_ext in '' $ac_executable_extensions; do
6539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542     break 2
6543   fi
6544 done
6545   done
6546 IFS=$as_save_IFS
6547
6548   ;;
6549 esac
6550 fi
6551 MSGFMT=$ac_cv_path_MSGFMT
6552 if test -n "$MSGFMT"; then
6553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6554 $as_echo "$MSGFMT" >&6; }
6555 else
6556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6558 fi
6559
6560
6561 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6562 set dummy gmsgfmt; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_path_GMSGFMT+:} false; then :
6566   $as_echo_n "(cached) " >&6
6567 else
6568   case $GMSGFMT in
6569   [\\/]* | ?:[\\/]*)
6570   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6571   ;;
6572   *)
6573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576   IFS=$as_save_IFS
6577   test -z "$as_dir" && as_dir=.
6578     for ac_exec_ext in '' $ac_executable_extensions; do
6579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6580     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582     break 2
6583   fi
6584 done
6585   done
6586 IFS=$as_save_IFS
6587
6588   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6589   ;;
6590 esac
6591 fi
6592 GMSGFMT=$ac_cv_path_GMSGFMT
6593 if test -n "$GMSGFMT"; then
6594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6595 $as_echo "$GMSGFMT" >&6; }
6596 else
6597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6599 fi
6600
6601
6602 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
6603     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
6604 fi
6605 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
6606 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
6607 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
6608 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
6609     as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
6610 fi
6611
6612 # Extract the first word of "perl", so it can be a program name with args.
6613 set dummy perl; 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_path_INTLTOOL_PERL+:} false; then :
6617   $as_echo_n "(cached) " >&6
6618 else
6619   case $INTLTOOL_PERL in
6620   [\\/]* | ?:[\\/]*)
6621   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6622   ;;
6623   *)
6624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629     for ac_exec_ext in '' $ac_executable_extensions; do
6630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636   done
6637 IFS=$as_save_IFS
6638
6639   ;;
6640 esac
6641 fi
6642 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6643 if test -n "$INTLTOOL_PERL"; then
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
6645 $as_echo "$INTLTOOL_PERL" >&6; }
6646 else
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651
6652 if test -z "$INTLTOOL_PERL"; then
6653    as_fn_error $? "perl not found" "$LINENO" 5
6654 fi
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
6656 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
6657 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
6658 if test $? -ne 0; then
6659    as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
6660 else
6661    IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
6662    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
6663 $as_echo "$IT_PERL_VERSION" >&6; }
6664 fi
6665 if test "x" != "xno-xml"; then
6666    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
6667 $as_echo_n "checking for XML::Parser... " >&6; }
6668    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
6669        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6670 $as_echo "ok" >&6; }
6671    else
6672        as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
6673    fi
6674 fi
6675
6676 # Substitute ALL_LINGUAS so we can use it in po/Makefile
6677
6678
6679 # Set DATADIRNAME correctly if it is not set yet
6680 # (copied from glib-gettext.m4)
6681 if test -z "$DATADIRNAME"; then
6682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h.  */
6684
6685 int
6686 main ()
6687 {
6688 extern int _nl_msg_cat_cntr;
6689                        return _nl_msg_cat_cntr
6690   ;
6691   return 0;
6692 }
6693 _ACEOF
6694 if ac_fn_c_try_link "$LINENO"; then :
6695   DATADIRNAME=share
6696 else
6697   case $host in
6698     *-*-solaris*)
6699                         ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
6700 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
6701   DATADIRNAME=share
6702 else
6703   DATADIRNAME=lib
6704 fi
6705
6706     ;;
6707     *)
6708     DATADIRNAME=lib
6709     ;;
6710     esac
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext \
6713     conftest$ac_exeext conftest.$ac_ext
6714 fi
6715
6716
6717
6718
6719
6720 case `pwd` in
6721   *\ * | *\     *)
6722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6723 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6724 esac
6725
6726
6727
6728 macro_version='2.4.2'
6729 macro_revision='1.3337'
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743 ltmain="$ac_aux_dir/ltmain.sh"
6744
6745 # Make sure we can run config.sub.
6746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6747   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6748
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6750 $as_echo_n "checking build system type... " >&6; }
6751 if ${ac_cv_build+:} false; then :
6752   $as_echo_n "(cached) " >&6
6753 else
6754   ac_build_alias=$build_alias
6755 test "x$ac_build_alias" = x &&
6756   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6757 test "x$ac_build_alias" = x &&
6758   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6759 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6760   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6761
6762 fi
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6764 $as_echo "$ac_cv_build" >&6; }
6765 case $ac_cv_build in
6766 *-*-*) ;;
6767 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6768 esac
6769 build=$ac_cv_build
6770 ac_save_IFS=$IFS; IFS='-'
6771 set x $ac_cv_build
6772 shift
6773 build_cpu=$1
6774 build_vendor=$2
6775 shift; shift
6776 # Remember, the first character of IFS is used to create $*,
6777 # except with old shells:
6778 build_os=$*
6779 IFS=$ac_save_IFS
6780 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6781
6782
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6784 $as_echo_n "checking host system type... " >&6; }
6785 if ${ac_cv_host+:} false; then :
6786   $as_echo_n "(cached) " >&6
6787 else
6788   if test "x$host_alias" = x; then
6789   ac_cv_host=$ac_cv_build
6790 else
6791   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6792     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6793 fi
6794
6795 fi
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6797 $as_echo "$ac_cv_host" >&6; }
6798 case $ac_cv_host in
6799 *-*-*) ;;
6800 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6801 esac
6802 host=$ac_cv_host
6803 ac_save_IFS=$IFS; IFS='-'
6804 set x $ac_cv_host
6805 shift
6806 host_cpu=$1
6807 host_vendor=$2
6808 shift; shift
6809 # Remember, the first character of IFS is used to create $*,
6810 # except with old shells:
6811 host_os=$*
6812 IFS=$ac_save_IFS
6813 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6814
6815
6816 # Backslashify metacharacters that are still active within
6817 # double-quoted strings.
6818 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6819
6820 # Same as above, but do not quote variable references.
6821 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6822
6823 # Sed substitution to delay expansion of an escaped shell variable in a
6824 # double_quote_subst'ed string.
6825 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6826
6827 # Sed substitution to delay expansion of an escaped single quote.
6828 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6829
6830 # Sed substitution to avoid accidental globbing in evaled expressions
6831 no_glob_subst='s/\*/\\\*/g'
6832
6833 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6834 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6835 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6836
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6838 $as_echo_n "checking how to print strings... " >&6; }
6839 # Test print first, because it will be a builtin if present.
6840 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6841    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6842   ECHO='print -r --'
6843 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6844   ECHO='printf %s\n'
6845 else
6846   # Use this function as a fallback that always works.
6847   func_fallback_echo ()
6848   {
6849     eval 'cat <<_LTECHO_EOF
6850 $1
6851 _LTECHO_EOF'
6852   }
6853   ECHO='func_fallback_echo'
6854 fi
6855
6856 # func_echo_all arg...
6857 # Invoke $ECHO with all args, space-separated.
6858 func_echo_all ()
6859 {
6860     $ECHO ""
6861 }
6862
6863 case "$ECHO" in
6864   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6865 $as_echo "printf" >&6; } ;;
6866   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6867 $as_echo "print -r" >&6; } ;;
6868   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6869 $as_echo "cat" >&6; } ;;
6870 esac
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6886 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6887 if ${ac_cv_path_SED+:} false; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6891      for ac_i in 1 2 3 4 5 6 7; do
6892        ac_script="$ac_script$as_nl$ac_script"
6893      done
6894      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6895      { ac_script=; unset ac_script;}
6896      if test -z "$SED"; then
6897   ac_path_SED_found=false
6898   # Loop through the user's path and test for each of PROGNAME-LIST
6899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904     for ac_prog in sed gsed; do
6905     for ac_exec_ext in '' $ac_executable_extensions; do
6906       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6907       as_fn_executable_p "$ac_path_SED" || continue
6908 # Check for GNU ac_path_SED and select it if it is found.
6909   # Check for GNU $ac_path_SED
6910 case `"$ac_path_SED" --version 2>&1` in
6911 *GNU*)
6912   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6913 *)
6914   ac_count=0
6915   $as_echo_n 0123456789 >"conftest.in"
6916   while :
6917   do
6918     cat "conftest.in" "conftest.in" >"conftest.tmp"
6919     mv "conftest.tmp" "conftest.in"
6920     cp "conftest.in" "conftest.nl"
6921     $as_echo '' >> "conftest.nl"
6922     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6923     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6924     as_fn_arith $ac_count + 1 && ac_count=$as_val
6925     if test $ac_count -gt ${ac_path_SED_max-0}; then
6926       # Best one so far, save it but keep looking for a better one
6927       ac_cv_path_SED="$ac_path_SED"
6928       ac_path_SED_max=$ac_count
6929     fi
6930     # 10*(2^10) chars as input seems more than enough
6931     test $ac_count -gt 10 && break
6932   done
6933   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6934 esac
6935
6936       $ac_path_SED_found && break 3
6937     done
6938   done
6939   done
6940 IFS=$as_save_IFS
6941   if test -z "$ac_cv_path_SED"; then
6942     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6943   fi
6944 else
6945   ac_cv_path_SED=$SED
6946 fi
6947
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6950 $as_echo "$ac_cv_path_SED" >&6; }
6951  SED="$ac_cv_path_SED"
6952   rm -f conftest.sed
6953
6954 test -z "$SED" && SED=sed
6955 Xsed="$SED -e 1s/^X//"
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6968 $as_echo_n "checking for fgrep... " >&6; }
6969 if ${ac_cv_path_FGREP+:} false; then :
6970   $as_echo_n "(cached) " >&6
6971 else
6972   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6973    then ac_cv_path_FGREP="$GREP -F"
6974    else
6975      if test -z "$FGREP"; then
6976   ac_path_FGREP_found=false
6977   # Loop through the user's path and test for each of PROGNAME-LIST
6978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6980 do
6981   IFS=$as_save_IFS
6982   test -z "$as_dir" && as_dir=.
6983     for ac_prog in fgrep; do
6984     for ac_exec_ext in '' $ac_executable_extensions; do
6985       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6986       as_fn_executable_p "$ac_path_FGREP" || continue
6987 # Check for GNU ac_path_FGREP and select it if it is found.
6988   # Check for GNU $ac_path_FGREP
6989 case `"$ac_path_FGREP" --version 2>&1` in
6990 *GNU*)
6991   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6992 *)
6993   ac_count=0
6994   $as_echo_n 0123456789 >"conftest.in"
6995   while :
6996   do
6997     cat "conftest.in" "conftest.in" >"conftest.tmp"
6998     mv "conftest.tmp" "conftest.in"
6999     cp "conftest.in" "conftest.nl"
7000     $as_echo 'FGREP' >> "conftest.nl"
7001     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7002     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7003     as_fn_arith $ac_count + 1 && ac_count=$as_val
7004     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7005       # Best one so far, save it but keep looking for a better one
7006       ac_cv_path_FGREP="$ac_path_FGREP"
7007       ac_path_FGREP_max=$ac_count
7008     fi
7009     # 10*(2^10) chars as input seems more than enough
7010     test $ac_count -gt 10 && break
7011   done
7012   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7013 esac
7014
7015       $ac_path_FGREP_found && break 3
7016     done
7017   done
7018   done
7019 IFS=$as_save_IFS
7020   if test -z "$ac_cv_path_FGREP"; then
7021     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7022   fi
7023 else
7024   ac_cv_path_FGREP=$FGREP
7025 fi
7026
7027    fi
7028 fi
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7030 $as_echo "$ac_cv_path_FGREP" >&6; }
7031  FGREP="$ac_cv_path_FGREP"
7032
7033
7034 test -z "$GREP" && GREP=grep
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054 # Check whether --with-gnu-ld was given.
7055 if test "${with_gnu_ld+set}" = set; then :
7056   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7057 else
7058   with_gnu_ld=no
7059 fi
7060
7061 ac_prog=ld
7062 if test "$GCC" = yes; then
7063   # Check if gcc -print-prog-name=ld gives a path.
7064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7065 $as_echo_n "checking for ld used by $CC... " >&6; }
7066   case $host in
7067   *-*-mingw*)
7068     # gcc leaves a trailing carriage return which upsets mingw
7069     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7070   *)
7071     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7072   esac
7073   case $ac_prog in
7074     # Accept absolute paths.
7075     [\\/]* | ?:[\\/]*)
7076       re_direlt='/[^/][^/]*/\.\./'
7077       # Canonicalize the pathname of ld
7078       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7079       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7080         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7081       done
7082       test -z "$LD" && LD="$ac_prog"
7083       ;;
7084   "")
7085     # If it fails, then pretend we aren't using GCC.
7086     ac_prog=ld
7087     ;;
7088   *)
7089     # If it is relative, then search for the first ld in PATH.
7090     with_gnu_ld=unknown
7091     ;;
7092   esac
7093 elif test "$with_gnu_ld" = yes; then
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7095 $as_echo_n "checking for GNU ld... " >&6; }
7096 else
7097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7098 $as_echo_n "checking for non-GNU ld... " >&6; }
7099 fi
7100 if ${lt_cv_path_LD+:} false; then :
7101   $as_echo_n "(cached) " >&6
7102 else
7103   if test -z "$LD"; then
7104   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7105   for ac_dir in $PATH; do
7106     IFS="$lt_save_ifs"
7107     test -z "$ac_dir" && ac_dir=.
7108     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7109       lt_cv_path_LD="$ac_dir/$ac_prog"
7110       # Check to see if the program is GNU ld.  I'd rather use --version,
7111       # but apparently some variants of GNU ld only accept -v.
7112       # Break only if it was the GNU/non-GNU ld that we prefer.
7113       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7114       *GNU* | *'with BFD'*)
7115         test "$with_gnu_ld" != no && break
7116         ;;
7117       *)
7118         test "$with_gnu_ld" != yes && break
7119         ;;
7120       esac
7121     fi
7122   done
7123   IFS="$lt_save_ifs"
7124 else
7125   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7126 fi
7127 fi
7128
7129 LD="$lt_cv_path_LD"
7130 if test -n "$LD"; then
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7132 $as_echo "$LD" >&6; }
7133 else
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7140 if ${lt_cv_prog_gnu_ld+:} false; then :
7141   $as_echo_n "(cached) " >&6
7142 else
7143   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7144 case `$LD -v 2>&1 </dev/null` in
7145 *GNU* | *'with BFD'*)
7146   lt_cv_prog_gnu_ld=yes
7147   ;;
7148 *)
7149   lt_cv_prog_gnu_ld=no
7150   ;;
7151 esac
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7154 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7155 with_gnu_ld=$lt_cv_prog_gnu_ld
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7166 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7167 if ${lt_cv_path_NM+:} false; then :
7168   $as_echo_n "(cached) " >&6
7169 else
7170   if test -n "$NM"; then
7171   # Let the user override the test.
7172   lt_cv_path_NM="$NM"
7173 else
7174   lt_nm_to_check="${ac_tool_prefix}nm"
7175   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7176     lt_nm_to_check="$lt_nm_to_check nm"
7177   fi
7178   for lt_tmp_nm in $lt_nm_to_check; do
7179     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7180     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7181       IFS="$lt_save_ifs"
7182       test -z "$ac_dir" && ac_dir=.
7183       tmp_nm="$ac_dir/$lt_tmp_nm"
7184       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7185         # Check to see if the nm accepts a BSD-compat flag.
7186         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7187         #   nm: unknown option "B" ignored
7188         # Tru64's nm complains that /dev/null is an invalid object file
7189         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7190         */dev/null* | *'Invalid file or object type'*)
7191           lt_cv_path_NM="$tmp_nm -B"
7192           break
7193           ;;
7194         *)
7195           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7196           */dev/null*)
7197             lt_cv_path_NM="$tmp_nm -p"
7198             break
7199             ;;
7200           *)
7201             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7202             continue # so that we can try to find one that supports BSD flags
7203             ;;
7204           esac
7205           ;;
7206         esac
7207       fi
7208     done
7209     IFS="$lt_save_ifs"
7210   done
7211   : ${lt_cv_path_NM=no}
7212 fi
7213 fi
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7215 $as_echo "$lt_cv_path_NM" >&6; }
7216 if test "$lt_cv_path_NM" != "no"; then
7217   NM="$lt_cv_path_NM"
7218 else
7219   # Didn't find any BSD compatible name lister, look for dumpbin.
7220   if test -n "$DUMPBIN"; then :
7221     # Let the user override the test.
7222   else
7223     if test -n "$ac_tool_prefix"; then
7224   for ac_prog in dumpbin "link -dump"
7225   do
7226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if ${ac_cv_prog_DUMPBIN+:} false; then :
7231   $as_echo_n "(cached) " >&6
7232 else
7233   if test -n "$DUMPBIN"; then
7234   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241     for ac_exec_ext in '' $ac_executable_extensions; do
7242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248   done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 DUMPBIN=$ac_cv_prog_DUMPBIN
7254 if test -n "$DUMPBIN"; then
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7256 $as_echo "$DUMPBIN" >&6; }
7257 else
7258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262
7263     test -n "$DUMPBIN" && break
7264   done
7265 fi
7266 if test -z "$DUMPBIN"; then
7267   ac_ct_DUMPBIN=$DUMPBIN
7268   for ac_prog in dumpbin "link -dump"
7269 do
7270   # Extract the first word of "$ac_prog", so it can be a program name with args.
7271 set dummy $ac_prog; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   if test -n "$ac_ct_DUMPBIN"; then
7278   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283   IFS=$as_save_IFS
7284   test -z "$as_dir" && as_dir=.
7285     for ac_exec_ext in '' $ac_executable_extensions; do
7286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289     break 2
7290   fi
7291 done
7292   done
7293 IFS=$as_save_IFS
7294
7295 fi
7296 fi
7297 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7298 if test -n "$ac_ct_DUMPBIN"; then
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7300 $as_echo "$ac_ct_DUMPBIN" >&6; }
7301 else
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305
7306
7307   test -n "$ac_ct_DUMPBIN" && break
7308 done
7309
7310   if test "x$ac_ct_DUMPBIN" = x; then
7311     DUMPBIN=":"
7312   else
7313     case $cross_compiling:$ac_tool_warned in
7314 yes:)
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7317 ac_tool_warned=yes ;;
7318 esac
7319     DUMPBIN=$ac_ct_DUMPBIN
7320   fi
7321 fi
7322
7323     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7324     *COFF*)
7325       DUMPBIN="$DUMPBIN -symbols"
7326       ;;
7327     *)
7328       DUMPBIN=:
7329       ;;
7330     esac
7331   fi
7332
7333   if test "$DUMPBIN" != ":"; then
7334     NM="$DUMPBIN"
7335   fi
7336 fi
7337 test -z "$NM" && NM=nm
7338
7339
7340
7341
7342
7343
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7345 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7346 if ${lt_cv_nm_interface+:} false; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349   lt_cv_nm_interface="BSD nm"
7350   echo "int some_variable = 0;" > conftest.$ac_ext
7351   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7352   (eval "$ac_compile" 2>conftest.err)
7353   cat conftest.err >&5
7354   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7355   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7356   cat conftest.err >&5
7357   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7358   cat conftest.out >&5
7359   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7360     lt_cv_nm_interface="MS dumpbin"
7361   fi
7362   rm -f conftest*
7363 fi
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7365 $as_echo "$lt_cv_nm_interface" >&6; }
7366
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7368 $as_echo_n "checking whether ln -s works... " >&6; }
7369 LN_S=$as_ln_s
7370 if test "$LN_S" = "ln -s"; then
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7372 $as_echo "yes" >&6; }
7373 else
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7375 $as_echo "no, using $LN_S" >&6; }
7376 fi
7377
7378 # find the maximum length of command line arguments
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7380 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7381 if ${lt_cv_sys_max_cmd_len+:} false; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384     i=0
7385   teststring="ABCD"
7386
7387   case $build_os in
7388   msdosdjgpp*)
7389     # On DJGPP, this test can blow up pretty badly due to problems in libc
7390     # (any single argument exceeding 2000 bytes causes a buffer overrun
7391     # during glob expansion).  Even if it were fixed, the result of this
7392     # check would be larger than it should be.
7393     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7394     ;;
7395
7396   gnu*)
7397     # Under GNU Hurd, this test is not required because there is
7398     # no limit to the length of command line arguments.
7399     # Libtool will interpret -1 as no limit whatsoever
7400     lt_cv_sys_max_cmd_len=-1;
7401     ;;
7402
7403   cygwin* | mingw* | cegcc*)
7404     # On Win9x/ME, this test blows up -- it succeeds, but takes
7405     # about 5 minutes as the teststring grows exponentially.
7406     # Worse, since 9x/ME are not pre-emptively multitasking,
7407     # you end up with a "frozen" computer, even though with patience
7408     # the test eventually succeeds (with a max line length of 256k).
7409     # Instead, let's just punt: use the minimum linelength reported by
7410     # all of the supported platforms: 8192 (on NT/2K/XP).
7411     lt_cv_sys_max_cmd_len=8192;
7412     ;;
7413
7414   mint*)
7415     # On MiNT this can take a long time and run out of memory.
7416     lt_cv_sys_max_cmd_len=8192;
7417     ;;
7418
7419   amigaos*)
7420     # On AmigaOS with pdksh, this test takes hours, literally.
7421     # So we just punt and use a minimum line length of 8192.
7422     lt_cv_sys_max_cmd_len=8192;
7423     ;;
7424
7425   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7426     # This has been around since 386BSD, at least.  Likely further.
7427     if test -x /sbin/sysctl; then
7428       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7429     elif test -x /usr/sbin/sysctl; then
7430       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7431     else
7432       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7433     fi
7434     # And add a safety zone
7435     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7436     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7437     ;;
7438
7439   interix*)
7440     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7441     lt_cv_sys_max_cmd_len=196608
7442     ;;
7443
7444   os2*)
7445     # The test takes a long time on OS/2.
7446     lt_cv_sys_max_cmd_len=8192
7447     ;;
7448
7449   osf*)
7450     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7451     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7452     # nice to cause kernel panics so lets avoid the loop below.
7453     # First set a reasonable default.
7454     lt_cv_sys_max_cmd_len=16384
7455     #
7456     if test -x /sbin/sysconfig; then
7457       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7458         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7459       esac
7460     fi
7461     ;;
7462   sco3.2v5*)
7463     lt_cv_sys_max_cmd_len=102400
7464     ;;
7465   sysv5* | sco5v6* | sysv4.2uw2*)
7466     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7467     if test -n "$kargmax"; then
7468       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7469     else
7470       lt_cv_sys_max_cmd_len=32768
7471     fi
7472     ;;
7473   *)
7474     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7475     if test -n "$lt_cv_sys_max_cmd_len"; then
7476       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7477       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7478     else
7479       # Make teststring a little bigger before we do anything with it.
7480       # a 1K string should be a reasonable start.
7481       for i in 1 2 3 4 5 6 7 8 ; do
7482         teststring=$teststring$teststring
7483       done
7484       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7485       # If test is not a shell built-in, we'll probably end up computing a
7486       # maximum length that is only half of the actual maximum length, but
7487       # we can't tell.
7488       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7489                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7490               test $i != 17 # 1/2 MB should be enough
7491       do
7492         i=`expr $i + 1`
7493         teststring=$teststring$teststring
7494       done
7495       # Only check the string length outside the loop.
7496       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7497       teststring=
7498       # Add a significant safety factor because C++ compilers can tack on
7499       # massive amounts of additional arguments before passing them to the
7500       # linker.  It appears as though 1/2 is a usable value.
7501       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7502     fi
7503     ;;
7504   esac
7505
7506 fi
7507
7508 if test -n $lt_cv_sys_max_cmd_len ; then
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7510 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7511 else
7512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7513 $as_echo "none" >&6; }
7514 fi
7515 max_cmd_len=$lt_cv_sys_max_cmd_len
7516
7517
7518
7519
7520
7521
7522 : ${CP="cp -f"}
7523 : ${MV="mv -f"}
7524 : ${RM="rm -f"}
7525
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7527 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7528 # Try some XSI features
7529 xsi_shell=no
7530 ( _lt_dummy="a/b/c"
7531   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7532       = c,a/b,b/c, \
7533     && eval 'test $(( 1 + 1 )) -eq 2 \
7534     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7535   && xsi_shell=yes
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7537 $as_echo "$xsi_shell" >&6; }
7538
7539
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7541 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7542 lt_shell_append=no
7543 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7544     >/dev/null 2>&1 \
7545   && lt_shell_append=yes
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7547 $as_echo "$lt_shell_append" >&6; }
7548
7549
7550 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7551   lt_unset=unset
7552 else
7553   lt_unset=false
7554 fi
7555
7556
7557
7558
7559
7560 # test EBCDIC or ASCII
7561 case `echo X|tr X '\101'` in
7562  A) # ASCII based system
7563     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7564   lt_SP2NL='tr \040 \012'
7565   lt_NL2SP='tr \015\012 \040\040'
7566   ;;
7567  *) # EBCDIC based system
7568   lt_SP2NL='tr \100 \n'
7569   lt_NL2SP='tr \r\n \100\100'
7570   ;;
7571 esac
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7582 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7583 if ${lt_cv_to_host_file_cmd+:} false; then :
7584   $as_echo_n "(cached) " >&6
7585 else
7586   case $host in
7587   *-*-mingw* )
7588     case $build in
7589       *-*-mingw* ) # actually msys
7590         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7591         ;;
7592       *-*-cygwin* )
7593         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7594         ;;
7595       * ) # otherwise, assume *nix
7596         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7597         ;;
7598     esac
7599     ;;
7600   *-*-cygwin* )
7601     case $build in
7602       *-*-mingw* ) # actually msys
7603         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7604         ;;
7605       *-*-cygwin* )
7606         lt_cv_to_host_file_cmd=func_convert_file_noop
7607         ;;
7608       * ) # otherwise, assume *nix
7609         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7610         ;;
7611     esac
7612     ;;
7613   * ) # unhandled hosts (and "normal" native builds)
7614     lt_cv_to_host_file_cmd=func_convert_file_noop
7615     ;;
7616 esac
7617
7618 fi
7619
7620 to_host_file_cmd=$lt_cv_to_host_file_cmd
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7622 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7623
7624
7625
7626
7627
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7629 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7630 if ${lt_cv_to_tool_file_cmd+:} false; then :
7631   $as_echo_n "(cached) " >&6
7632 else
7633   #assume ordinary cross tools, or native build.
7634 lt_cv_to_tool_file_cmd=func_convert_file_noop
7635 case $host in
7636   *-*-mingw* )
7637     case $build in
7638       *-*-mingw* ) # actually msys
7639         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7640         ;;
7641     esac
7642     ;;
7643 esac
7644
7645 fi
7646
7647 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7649 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7650
7651
7652
7653
7654
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7656 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7657 if ${lt_cv_ld_reload_flag+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   lt_cv_ld_reload_flag='-r'
7661 fi
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7663 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7664 reload_flag=$lt_cv_ld_reload_flag
7665 case $reload_flag in
7666 "" | " "*) ;;
7667 *) reload_flag=" $reload_flag" ;;
7668 esac
7669 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7670 case $host_os in
7671   cygwin* | mingw* | pw32* | cegcc*)
7672     if test "$GCC" != yes; then
7673       reload_cmds=false
7674     fi
7675     ;;
7676   darwin*)
7677     if test "$GCC" = yes; then
7678       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7679     else
7680       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7681     fi
7682     ;;
7683 esac
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693 if test -n "$ac_tool_prefix"; then
7694   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7695 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_prog_OBJDUMP+:} false; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701   if test -n "$OBJDUMP"; then
7702   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707   IFS=$as_save_IFS
7708   test -z "$as_dir" && as_dir=.
7709     for ac_exec_ext in '' $ac_executable_extensions; do
7710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713     break 2
7714   fi
7715 done
7716   done
7717 IFS=$as_save_IFS
7718
7719 fi
7720 fi
7721 OBJDUMP=$ac_cv_prog_OBJDUMP
7722 if test -n "$OBJDUMP"; then
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7724 $as_echo "$OBJDUMP" >&6; }
7725 else
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7728 fi
7729
7730
7731 fi
7732 if test -z "$ac_cv_prog_OBJDUMP"; then
7733   ac_ct_OBJDUMP=$OBJDUMP
7734   # Extract the first word of "objdump", so it can be a program name with args.
7735 set dummy objdump; ac_word=$2
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737 $as_echo_n "checking for $ac_word... " >&6; }
7738 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7739   $as_echo_n "(cached) " >&6
7740 else
7741   if test -n "$ac_ct_OBJDUMP"; then
7742   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747   IFS=$as_save_IFS
7748   test -z "$as_dir" && as_dir=.
7749     for ac_exec_ext in '' $ac_executable_extensions; do
7750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753     break 2
7754   fi
7755 done
7756   done
7757 IFS=$as_save_IFS
7758
7759 fi
7760 fi
7761 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7762 if test -n "$ac_ct_OBJDUMP"; then
7763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7764 $as_echo "$ac_ct_OBJDUMP" >&6; }
7765 else
7766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 $as_echo "no" >&6; }
7768 fi
7769
7770   if test "x$ac_ct_OBJDUMP" = x; then
7771     OBJDUMP="false"
7772   else
7773     case $cross_compiling:$ac_tool_warned in
7774 yes:)
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777 ac_tool_warned=yes ;;
7778 esac
7779     OBJDUMP=$ac_ct_OBJDUMP
7780   fi
7781 else
7782   OBJDUMP="$ac_cv_prog_OBJDUMP"
7783 fi
7784
7785 test -z "$OBJDUMP" && OBJDUMP=objdump
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7796 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7797 if ${lt_cv_deplibs_check_method+:} false; then :
7798   $as_echo_n "(cached) " >&6
7799 else
7800   lt_cv_file_magic_cmd='$MAGIC_CMD'
7801 lt_cv_file_magic_test_file=
7802 lt_cv_deplibs_check_method='unknown'
7803 # Need to set the preceding variable on all platforms that support
7804 # interlibrary dependencies.
7805 # 'none' -- dependencies not supported.
7806 # `unknown' -- same as none, but documents that we really don't know.
7807 # 'pass_all' -- all dependencies passed with no checks.
7808 # 'test_compile' -- check by making test program.
7809 # 'file_magic [[regex]]' -- check by looking for files in library path
7810 # which responds to the $file_magic_cmd with a given extended regex.
7811 # If you have `file' or equivalent on your system and you're not sure
7812 # whether `pass_all' will *always* work, you probably want this one.
7813
7814 case $host_os in
7815 aix[4-9]*)
7816   lt_cv_deplibs_check_method=pass_all
7817   ;;
7818
7819 beos*)
7820   lt_cv_deplibs_check_method=pass_all
7821   ;;
7822
7823 bsdi[45]*)
7824   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7825   lt_cv_file_magic_cmd='/usr/bin/file -L'
7826   lt_cv_file_magic_test_file=/shlib/libc.so
7827   ;;
7828
7829 cygwin*)
7830   # func_win32_libid is a shell function defined in ltmain.sh
7831   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7832   lt_cv_file_magic_cmd='func_win32_libid'
7833   ;;
7834
7835 mingw* | pw32*)
7836   # Base MSYS/MinGW do not provide the 'file' command needed by
7837   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7838   # unless we find 'file', for example because we are cross-compiling.
7839   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7840   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7841     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7842     lt_cv_file_magic_cmd='func_win32_libid'
7843   else
7844     # Keep this pattern in sync with the one in func_win32_libid.
7845     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7846     lt_cv_file_magic_cmd='$OBJDUMP -f'
7847   fi
7848   ;;
7849
7850 cegcc*)
7851   # use the weaker test based on 'objdump'. See mingw*.
7852   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7853   lt_cv_file_magic_cmd='$OBJDUMP -f'
7854   ;;
7855
7856 darwin* | rhapsody*)
7857   lt_cv_deplibs_check_method=pass_all
7858   ;;
7859
7860 freebsd* | dragonfly*)
7861   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7862     case $host_cpu in
7863     i*86 )
7864       # Not sure whether the presence of OpenBSD here was a mistake.
7865       # Let's accept both of them until this is cleared up.
7866       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7867       lt_cv_file_magic_cmd=/usr/bin/file
7868       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7869       ;;
7870     esac
7871   else
7872     lt_cv_deplibs_check_method=pass_all
7873   fi
7874   ;;
7875
7876 gnu*)
7877   lt_cv_deplibs_check_method=pass_all
7878   ;;
7879
7880 haiku*)
7881   lt_cv_deplibs_check_method=pass_all
7882   ;;
7883
7884 hpux10.20* | hpux11*)
7885   lt_cv_file_magic_cmd=/usr/bin/file
7886   case $host_cpu in
7887   ia64*)
7888     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7889     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7890     ;;
7891   hppa*64*)
7892     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]'
7893     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7894     ;;
7895   *)
7896     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7897     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7898     ;;
7899   esac
7900   ;;
7901
7902 interix[3-9]*)
7903   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7904   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7905   ;;
7906
7907 irix5* | irix6* | nonstopux*)
7908   case $LD in
7909   *-32|*"-32 ") libmagic=32-bit;;
7910   *-n32|*"-n32 ") libmagic=N32;;
7911   *-64|*"-64 ") libmagic=64-bit;;
7912   *) libmagic=never-match;;
7913   esac
7914   lt_cv_deplibs_check_method=pass_all
7915   ;;
7916
7917 # This must be glibc/ELF.
7918 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7919   lt_cv_deplibs_check_method=pass_all
7920   ;;
7921
7922 netbsd*)
7923   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7924     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7925   else
7926     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7927   fi
7928   ;;
7929
7930 newos6*)
7931   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7932   lt_cv_file_magic_cmd=/usr/bin/file
7933   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7934   ;;
7935
7936 *nto* | *qnx*)
7937   lt_cv_deplibs_check_method=pass_all
7938   ;;
7939
7940 openbsd*)
7941   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7942     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7943   else
7944     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7945   fi
7946   ;;
7947
7948 osf3* | osf4* | osf5*)
7949   lt_cv_deplibs_check_method=pass_all
7950   ;;
7951
7952 rdos*)
7953   lt_cv_deplibs_check_method=pass_all
7954   ;;
7955
7956 solaris*)
7957   lt_cv_deplibs_check_method=pass_all
7958   ;;
7959
7960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7961   lt_cv_deplibs_check_method=pass_all
7962   ;;
7963
7964 sysv4 | sysv4.3*)
7965   case $host_vendor in
7966   motorola)
7967     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]'
7968     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7969     ;;
7970   ncr)
7971     lt_cv_deplibs_check_method=pass_all
7972     ;;
7973   sequent)
7974     lt_cv_file_magic_cmd='/bin/file'
7975     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7976     ;;
7977   sni)
7978     lt_cv_file_magic_cmd='/bin/file'
7979     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7980     lt_cv_file_magic_test_file=/lib/libc.so
7981     ;;
7982   siemens)
7983     lt_cv_deplibs_check_method=pass_all
7984     ;;
7985   pc)
7986     lt_cv_deplibs_check_method=pass_all
7987     ;;
7988   esac
7989   ;;
7990
7991 tpf*)
7992   lt_cv_deplibs_check_method=pass_all
7993   ;;
7994 esac
7995
7996 fi
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7998 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7999
8000 file_magic_glob=
8001 want_nocaseglob=no
8002 if test "$build" = "$host"; then
8003   case $host_os in
8004   mingw* | pw32*)
8005     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8006       want_nocaseglob=yes
8007     else
8008       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8009     fi
8010     ;;
8011   esac
8012 fi
8013
8014 file_magic_cmd=$lt_cv_file_magic_cmd
8015 deplibs_check_method=$lt_cv_deplibs_check_method
8016 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039 if test -n "$ac_tool_prefix"; then
8040   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_prog_DLLTOOL+:} false; then :
8045   $as_echo_n "(cached) " >&6
8046 else
8047   if test -n "$DLLTOOL"; then
8048   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053   IFS=$as_save_IFS
8054   test -z "$as_dir" && as_dir=.
8055     for ac_exec_ext in '' $ac_executable_extensions; do
8056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059     break 2
8060   fi
8061 done
8062   done
8063 IFS=$as_save_IFS
8064
8065 fi
8066 fi
8067 DLLTOOL=$ac_cv_prog_DLLTOOL
8068 if test -n "$DLLTOOL"; then
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8070 $as_echo "$DLLTOOL" >&6; }
8071 else
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075
8076
8077 fi
8078 if test -z "$ac_cv_prog_DLLTOOL"; then
8079   ac_ct_DLLTOOL=$DLLTOOL
8080   # Extract the first word of "dlltool", so it can be a program name with args.
8081 set dummy dlltool; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8085   $as_echo_n "(cached) " >&6
8086 else
8087   if test -n "$ac_ct_DLLTOOL"; then
8088   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093   IFS=$as_save_IFS
8094   test -z "$as_dir" && as_dir=.
8095     for ac_exec_ext in '' $ac_executable_extensions; do
8096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099     break 2
8100   fi
8101 done
8102   done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8108 if test -n "$ac_ct_DLLTOOL"; then
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8110 $as_echo "$ac_ct_DLLTOOL" >&6; }
8111 else
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115
8116   if test "x$ac_ct_DLLTOOL" = x; then
8117     DLLTOOL="false"
8118   else
8119     case $cross_compiling:$ac_tool_warned in
8120 yes:)
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123 ac_tool_warned=yes ;;
8124 esac
8125     DLLTOOL=$ac_ct_DLLTOOL
8126   fi
8127 else
8128   DLLTOOL="$ac_cv_prog_DLLTOOL"
8129 fi
8130
8131 test -z "$DLLTOOL" && DLLTOOL=dlltool
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8143 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8144 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8145   $as_echo_n "(cached) " >&6
8146 else
8147   lt_cv_sharedlib_from_linklib_cmd='unknown'
8148
8149 case $host_os in
8150 cygwin* | mingw* | pw32* | cegcc*)
8151   # two different shell functions defined in ltmain.sh
8152   # decide which to use based on capabilities of $DLLTOOL
8153   case `$DLLTOOL --help 2>&1` in
8154   *--identify-strict*)
8155     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8156     ;;
8157   *)
8158     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8159     ;;
8160   esac
8161   ;;
8162 *)
8163   # fallback: assume linklib IS sharedlib
8164   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8165   ;;
8166 esac
8167
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8170 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8171 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8172 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8173
8174
8175
8176
8177
8178
8179
8180 if test -n "$ac_tool_prefix"; then
8181   for ac_prog in ar
8182   do
8183     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_prog_AR+:} false; then :
8188   $as_echo_n "(cached) " >&6
8189 else
8190   if test -n "$AR"; then
8191   ac_cv_prog_AR="$AR" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196   IFS=$as_save_IFS
8197   test -z "$as_dir" && as_dir=.
8198     for ac_exec_ext in '' $ac_executable_extensions; do
8199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202     break 2
8203   fi
8204 done
8205   done
8206 IFS=$as_save_IFS
8207
8208 fi
8209 fi
8210 AR=$ac_cv_prog_AR
8211 if test -n "$AR"; then
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8213 $as_echo "$AR" >&6; }
8214 else
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 fi
8218
8219
8220     test -n "$AR" && break
8221   done
8222 fi
8223 if test -z "$AR"; then
8224   ac_ct_AR=$AR
8225   for ac_prog in ar
8226 do
8227   # Extract the first word of "$ac_prog", so it can be a program name with args.
8228 set dummy $ac_prog; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8232   $as_echo_n "(cached) " >&6
8233 else
8234   if test -n "$ac_ct_AR"; then
8235   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8239 do
8240   IFS=$as_save_IFS
8241   test -z "$as_dir" && as_dir=.
8242     for ac_exec_ext in '' $ac_executable_extensions; do
8243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244     ac_cv_prog_ac_ct_AR="$ac_prog"
8245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246     break 2
8247   fi
8248 done
8249   done
8250 IFS=$as_save_IFS
8251
8252 fi
8253 fi
8254 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8255 if test -n "$ac_ct_AR"; then
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8257 $as_echo "$ac_ct_AR" >&6; }
8258 else
8259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 fi
8262
8263
8264   test -n "$ac_ct_AR" && break
8265 done
8266
8267   if test "x$ac_ct_AR" = x; then
8268     AR="false"
8269   else
8270     case $cross_compiling:$ac_tool_warned in
8271 yes:)
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8274 ac_tool_warned=yes ;;
8275 esac
8276     AR=$ac_ct_AR
8277   fi
8278 fi
8279
8280 : ${AR=ar}
8281 : ${AR_FLAGS=cru}
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8294 $as_echo_n "checking for archiver @FILE support... " >&6; }
8295 if ${lt_cv_ar_at_file+:} false; then :
8296   $as_echo_n "(cached) " >&6
8297 else
8298   lt_cv_ar_at_file=no
8299    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h.  */
8301
8302 int
8303 main ()
8304 {
8305
8306   ;
8307   return 0;
8308 }
8309 _ACEOF
8310 if ac_fn_c_try_compile "$LINENO"; then :
8311   echo conftest.$ac_objext > conftest.lst
8312       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8313       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8314   (eval $lt_ar_try) 2>&5
8315   ac_status=$?
8316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8317   test $ac_status = 0; }
8318       if test "$ac_status" -eq 0; then
8319         # Ensure the archiver fails upon bogus file names.
8320         rm -f conftest.$ac_objext libconftest.a
8321         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8322   (eval $lt_ar_try) 2>&5
8323   ac_status=$?
8324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8325   test $ac_status = 0; }
8326         if test "$ac_status" -ne 0; then
8327           lt_cv_ar_at_file=@
8328         fi
8329       fi
8330       rm -f conftest.* libconftest.a
8331
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334
8335 fi
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8337 $as_echo "$lt_cv_ar_at_file" >&6; }
8338
8339 if test "x$lt_cv_ar_at_file" = xno; then
8340   archiver_list_spec=
8341 else
8342   archiver_list_spec=$lt_cv_ar_at_file
8343 fi
8344
8345
8346
8347
8348
8349
8350
8351 if test -n "$ac_tool_prefix"; then
8352   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8353 set dummy ${ac_tool_prefix}strip; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if ${ac_cv_prog_STRIP+:} false; then :
8357   $as_echo_n "(cached) " >&6
8358 else
8359   if test -n "$STRIP"; then
8360   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8364 do
8365   IFS=$as_save_IFS
8366   test -z "$as_dir" && as_dir=.
8367     for ac_exec_ext in '' $ac_executable_extensions; do
8368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371     break 2
8372   fi
8373 done
8374   done
8375 IFS=$as_save_IFS
8376
8377 fi
8378 fi
8379 STRIP=$ac_cv_prog_STRIP
8380 if test -n "$STRIP"; then
8381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8382 $as_echo "$STRIP" >&6; }
8383 else
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8386 fi
8387
8388
8389 fi
8390 if test -z "$ac_cv_prog_STRIP"; then
8391   ac_ct_STRIP=$STRIP
8392   # Extract the first word of "strip", so it can be a program name with args.
8393 set dummy strip; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8397   $as_echo_n "(cached) " >&6
8398 else
8399   if test -n "$ac_ct_STRIP"; then
8400   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8404 do
8405   IFS=$as_save_IFS
8406   test -z "$as_dir" && as_dir=.
8407     for ac_exec_ext in '' $ac_executable_extensions; do
8408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409     ac_cv_prog_ac_ct_STRIP="strip"
8410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411     break 2
8412   fi
8413 done
8414   done
8415 IFS=$as_save_IFS
8416
8417 fi
8418 fi
8419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8420 if test -n "$ac_ct_STRIP"; then
8421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8422 $as_echo "$ac_ct_STRIP" >&6; }
8423 else
8424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8426 fi
8427
8428   if test "x$ac_ct_STRIP" = x; then
8429     STRIP=":"
8430   else
8431     case $cross_compiling:$ac_tool_warned in
8432 yes:)
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8435 ac_tool_warned=yes ;;
8436 esac
8437     STRIP=$ac_ct_STRIP
8438   fi
8439 else
8440   STRIP="$ac_cv_prog_STRIP"
8441 fi
8442
8443 test -z "$STRIP" && STRIP=:
8444
8445
8446
8447
8448
8449
8450 if test -n "$ac_tool_prefix"; then
8451   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8452 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if ${ac_cv_prog_RANLIB+:} false; then :
8456   $as_echo_n "(cached) " >&6
8457 else
8458   if test -n "$RANLIB"; then
8459   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8463 do
8464   IFS=$as_save_IFS
8465   test -z "$as_dir" && as_dir=.
8466     for ac_exec_ext in '' $ac_executable_extensions; do
8467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8468     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470     break 2
8471   fi
8472 done
8473   done
8474 IFS=$as_save_IFS
8475
8476 fi
8477 fi
8478 RANLIB=$ac_cv_prog_RANLIB
8479 if test -n "$RANLIB"; then
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8481 $as_echo "$RANLIB" >&6; }
8482 else
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485 fi
8486
8487
8488 fi
8489 if test -z "$ac_cv_prog_RANLIB"; then
8490   ac_ct_RANLIB=$RANLIB
8491   # Extract the first word of "ranlib", so it can be a program name with args.
8492 set dummy ranlib; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498   if test -n "$ac_ct_RANLIB"; then
8499   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8500 else
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8503 do
8504   IFS=$as_save_IFS
8505   test -z "$as_dir" && as_dir=.
8506     for ac_exec_ext in '' $ac_executable_extensions; do
8507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508     ac_cv_prog_ac_ct_RANLIB="ranlib"
8509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510     break 2
8511   fi
8512 done
8513   done
8514 IFS=$as_save_IFS
8515
8516 fi
8517 fi
8518 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8519 if test -n "$ac_ct_RANLIB"; then
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8521 $as_echo "$ac_ct_RANLIB" >&6; }
8522 else
8523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8525 fi
8526
8527   if test "x$ac_ct_RANLIB" = x; then
8528     RANLIB=":"
8529   else
8530     case $cross_compiling:$ac_tool_warned in
8531 yes:)
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8534 ac_tool_warned=yes ;;
8535 esac
8536     RANLIB=$ac_ct_RANLIB
8537   fi
8538 else
8539   RANLIB="$ac_cv_prog_RANLIB"
8540 fi
8541
8542 test -z "$RANLIB" && RANLIB=:
8543
8544
8545
8546
8547
8548
8549 # Determine commands to create old-style static archives.
8550 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8551 old_postinstall_cmds='chmod 644 $oldlib'
8552 old_postuninstall_cmds=
8553
8554 if test -n "$RANLIB"; then
8555   case $host_os in
8556   openbsd*)
8557     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8558     ;;
8559   *)
8560     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8561     ;;
8562   esac
8563   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8564 fi
8565
8566 case $host_os in
8567   darwin*)
8568     lock_old_archive_extraction=yes ;;
8569   *)
8570     lock_old_archive_extraction=no ;;
8571 esac
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611 # If no C compiler was specified, use CC.
8612 LTCC=${LTCC-"$CC"}
8613
8614 # If no C compiler flags were specified, use CFLAGS.
8615 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8616
8617 # Allow CC to be a program name with arguments.
8618 compiler=$CC
8619
8620
8621 # Check for command to grab the raw symbol name followed by C symbol from nm.
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8623 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8624 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8625   $as_echo_n "(cached) " >&6
8626 else
8627
8628 # These are sane defaults that work on at least a few old systems.
8629 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8630
8631 # Character class describing NM global symbol codes.
8632 symcode='[BCDEGRST]'
8633
8634 # Regexp to match symbols that can be accessed directly from C.
8635 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8636
8637 # Define system-specific variables.
8638 case $host_os in
8639 aix*)
8640   symcode='[BCDT]'
8641   ;;
8642 cygwin* | mingw* | pw32* | cegcc*)
8643   symcode='[ABCDGISTW]'
8644   ;;
8645 hpux*)
8646   if test "$host_cpu" = ia64; then
8647     symcode='[ABCDEGRST]'
8648   fi
8649   ;;
8650 irix* | nonstopux*)
8651   symcode='[BCDEGRST]'
8652   ;;
8653 osf*)
8654   symcode='[BCDEGQRST]'
8655   ;;
8656 solaris*)
8657   symcode='[BDRT]'
8658   ;;
8659 sco3.2v5*)
8660   symcode='[DT]'
8661   ;;
8662 sysv4.2uw2*)
8663   symcode='[DT]'
8664   ;;
8665 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8666   symcode='[ABDT]'
8667   ;;
8668 sysv4)
8669   symcode='[DFNSTU]'
8670   ;;
8671 esac
8672
8673 # If we're using GNU nm, then use its standard symbol codes.
8674 case `$NM -V 2>&1` in
8675 *GNU* | *'with BFD'*)
8676   symcode='[ABCDGIRSTW]' ;;
8677 esac
8678
8679 # Transform an extracted symbol line into a proper C declaration.
8680 # Some systems (esp. on ia64) link data and code symbols differently,
8681 # so use this general approach.
8682 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8683
8684 # Transform an extracted symbol line into symbol name and symbol address
8685 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8686 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'"
8687
8688 # Handle CRLF in mingw tool chain
8689 opt_cr=
8690 case $build_os in
8691 mingw*)
8692   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8693   ;;
8694 esac
8695
8696 # Try without a prefix underscore, then with it.
8697 for ac_symprfx in "" "_"; do
8698
8699   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8700   symxfrm="\\1 $ac_symprfx\\2 \\2"
8701
8702   # Write the raw and C identifiers.
8703   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8704     # Fake it for dumpbin and say T for any non-static function
8705     # and D for any global variable.
8706     # Also find C++ and __fastcall symbols from MSVC++,
8707     # which start with @ or ?.
8708     lt_cv_sys_global_symbol_pipe="$AWK '"\
8709 "     {last_section=section; section=\$ 3};"\
8710 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8711 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8712 "     \$ 0!~/External *\|/{next};"\
8713 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8714 "     {if(hide[section]) next};"\
8715 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8716 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8717 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8718 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8719 "     ' prfx=^$ac_symprfx"
8720   else
8721     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8722   fi
8723   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8724
8725   # Check to see that the pipe works correctly.
8726   pipe_works=no
8727
8728   rm -f conftest*
8729   cat > conftest.$ac_ext <<_LT_EOF
8730 #ifdef __cplusplus
8731 extern "C" {
8732 #endif
8733 char nm_test_var;
8734 void nm_test_func(void);
8735 void nm_test_func(void){}
8736 #ifdef __cplusplus
8737 }
8738 #endif
8739 int main(){nm_test_var='a';nm_test_func();return(0);}
8740 _LT_EOF
8741
8742   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8743   (eval $ac_compile) 2>&5
8744   ac_status=$?
8745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8746   test $ac_status = 0; }; then
8747     # Now try to grab the symbols.
8748     nlist=conftest.nm
8749     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8750   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8751   ac_status=$?
8752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8753   test $ac_status = 0; } && test -s "$nlist"; then
8754       # Try sorting and uniquifying the output.
8755       if sort "$nlist" | uniq > "$nlist"T; then
8756         mv -f "$nlist"T "$nlist"
8757       else
8758         rm -f "$nlist"T
8759       fi
8760
8761       # Make sure that we snagged all the symbols we need.
8762       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8763         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8764           cat <<_LT_EOF > conftest.$ac_ext
8765 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8766 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8767 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8768    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8769 # define LT_DLSYM_CONST
8770 #elif defined(__osf__)
8771 /* This system does not cope well with relocations in const data.  */
8772 # define LT_DLSYM_CONST
8773 #else
8774 # define LT_DLSYM_CONST const
8775 #endif
8776
8777 #ifdef __cplusplus
8778 extern "C" {
8779 #endif
8780
8781 _LT_EOF
8782           # Now generate the symbol file.
8783           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8784
8785           cat <<_LT_EOF >> conftest.$ac_ext
8786
8787 /* The mapping between symbol names and symbols.  */
8788 LT_DLSYM_CONST struct {
8789   const char *name;
8790   void       *address;
8791 }
8792 lt__PROGRAM__LTX_preloaded_symbols[] =
8793 {
8794   { "@PROGRAM@", (void *) 0 },
8795 _LT_EOF
8796           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8797           cat <<\_LT_EOF >> conftest.$ac_ext
8798   {0, (void *) 0}
8799 };
8800
8801 /* This works around a problem in FreeBSD linker */
8802 #ifdef FREEBSD_WORKAROUND
8803 static const void *lt_preloaded_setup() {
8804   return lt__PROGRAM__LTX_preloaded_symbols;
8805 }
8806 #endif
8807
8808 #ifdef __cplusplus
8809 }
8810 #endif
8811 _LT_EOF
8812           # Now try linking the two files.
8813           mv conftest.$ac_objext conftstm.$ac_objext
8814           lt_globsym_save_LIBS=$LIBS
8815           lt_globsym_save_CFLAGS=$CFLAGS
8816           LIBS="conftstm.$ac_objext"
8817           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8818           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8819   (eval $ac_link) 2>&5
8820   ac_status=$?
8821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8822   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8823             pipe_works=yes
8824           fi
8825           LIBS=$lt_globsym_save_LIBS
8826           CFLAGS=$lt_globsym_save_CFLAGS
8827         else
8828           echo "cannot find nm_test_func in $nlist" >&5
8829         fi
8830       else
8831         echo "cannot find nm_test_var in $nlist" >&5
8832       fi
8833     else
8834       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8835     fi
8836   else
8837     echo "$progname: failed program was:" >&5
8838     cat conftest.$ac_ext >&5
8839   fi
8840   rm -rf conftest* conftst*
8841
8842   # Do not use the global_symbol_pipe unless it works.
8843   if test "$pipe_works" = yes; then
8844     break
8845   else
8846     lt_cv_sys_global_symbol_pipe=
8847   fi
8848 done
8849
8850 fi
8851
8852 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8853   lt_cv_sys_global_symbol_to_cdecl=
8854 fi
8855 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8857 $as_echo "failed" >&6; }
8858 else
8859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8860 $as_echo "ok" >&6; }
8861 fi
8862
8863 # Response file support.
8864 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8865   nm_file_list_spec='@'
8866 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8867   nm_file_list_spec='@'
8868 fi
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8897 $as_echo_n "checking for sysroot... " >&6; }
8898
8899 # Check whether --with-sysroot was given.
8900 if test "${with_sysroot+set}" = set; then :
8901   withval=$with_sysroot;
8902 else
8903   with_sysroot=no
8904 fi
8905
8906
8907 lt_sysroot=
8908 case ${with_sysroot} in #(
8909  yes)
8910    if test "$GCC" = yes; then
8911      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8912    fi
8913    ;; #(
8914  /*)
8915    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8916    ;; #(
8917  no|'')
8918    ;; #(
8919  *)
8920    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8921 $as_echo "${with_sysroot}" >&6; }
8922    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8923    ;;
8924 esac
8925
8926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8927 $as_echo "${lt_sysroot:-no}" >&6; }
8928
8929
8930
8931
8932
8933 # Check whether --enable-libtool-lock was given.
8934 if test "${enable_libtool_lock+set}" = set; then :
8935   enableval=$enable_libtool_lock;
8936 fi
8937
8938 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8939
8940 # Some flags need to be propagated to the compiler or linker for good
8941 # libtool support.
8942 case $host in
8943 ia64-*-hpux*)
8944   # Find out which ABI we are using.
8945   echo 'int i;' > conftest.$ac_ext
8946   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8947   (eval $ac_compile) 2>&5
8948   ac_status=$?
8949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8950   test $ac_status = 0; }; then
8951     case `/usr/bin/file conftest.$ac_objext` in
8952       *ELF-32*)
8953         HPUX_IA64_MODE="32"
8954         ;;
8955       *ELF-64*)
8956         HPUX_IA64_MODE="64"
8957         ;;
8958     esac
8959   fi
8960   rm -rf conftest*
8961   ;;
8962 *-*-irix6*)
8963   # Find out which ABI we are using.
8964   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8965   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8966   (eval $ac_compile) 2>&5
8967   ac_status=$?
8968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8969   test $ac_status = 0; }; then
8970     if test "$lt_cv_prog_gnu_ld" = yes; then
8971       case `/usr/bin/file conftest.$ac_objext` in
8972         *32-bit*)
8973           LD="${LD-ld} -melf32bsmip"
8974           ;;
8975         *N32*)
8976           LD="${LD-ld} -melf32bmipn32"
8977           ;;
8978         *64-bit*)
8979           LD="${LD-ld} -melf64bmip"
8980         ;;
8981       esac
8982     else
8983       case `/usr/bin/file conftest.$ac_objext` in
8984         *32-bit*)
8985           LD="${LD-ld} -32"
8986           ;;
8987         *N32*)
8988           LD="${LD-ld} -n32"
8989           ;;
8990         *64-bit*)
8991           LD="${LD-ld} -64"
8992           ;;
8993       esac
8994     fi
8995   fi
8996   rm -rf conftest*
8997   ;;
8998
8999 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9000 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9001   # Find out which ABI we are using.
9002   echo 'int i;' > conftest.$ac_ext
9003   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9004   (eval $ac_compile) 2>&5
9005   ac_status=$?
9006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9007   test $ac_status = 0; }; then
9008     case `/usr/bin/file conftest.o` in
9009       *32-bit*)
9010         case $host in
9011           x86_64-*kfreebsd*-gnu)
9012             LD="${LD-ld} -m elf_i386_fbsd"
9013             ;;
9014           x86_64-*linux*)
9015             LD="${LD-ld} -m elf_i386"
9016             ;;
9017           powerpcle-*linux*)
9018             LD="${LD-ld} -m elf32lppclinux"
9019             ;;
9020           powerpc-*linux*)
9021             LD="${LD-ld} -m elf32ppclinux"
9022             ;;
9023           s390x-*linux*)
9024             LD="${LD-ld} -m elf_s390"
9025             ;;
9026           sparc64-*linux*)
9027             LD="${LD-ld} -m elf32_sparc"
9028             ;;
9029         esac
9030         ;;
9031       *64-bit*)
9032         case $host in
9033           x86_64-*kfreebsd*-gnu)
9034             LD="${LD-ld} -m elf_x86_64_fbsd"
9035             ;;
9036           x86_64-*linux*)
9037             LD="${LD-ld} -m elf_x86_64"
9038             ;;
9039           powerpcle-*linux*)
9040             LD="${LD-ld} -m elf64lppc"
9041             ;;
9042           powerpc-*linux*)
9043             LD="${LD-ld} -m elf64ppc"
9044             ;;
9045           s390*-*linux*|s390*-*tpf*)
9046             LD="${LD-ld} -m elf64_s390"
9047             ;;
9048           sparc*-*linux*)
9049             LD="${LD-ld} -m elf64_sparc"
9050             ;;
9051         esac
9052         ;;
9053     esac
9054   fi
9055   rm -rf conftest*
9056   ;;
9057
9058 *-*-sco3.2v5*)
9059   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9060   SAVE_CFLAGS="$CFLAGS"
9061   CFLAGS="$CFLAGS -belf"
9062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9063 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9064 if ${lt_cv_cc_needs_belf+:} false; then :
9065   $as_echo_n "(cached) " >&6
9066 else
9067   ac_ext=c
9068 ac_cpp='$CPP $CPPFLAGS'
9069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9072
9073      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h.  */
9075
9076 int
9077 main ()
9078 {
9079
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 if ac_fn_c_try_link "$LINENO"; then :
9085   lt_cv_cc_needs_belf=yes
9086 else
9087   lt_cv_cc_needs_belf=no
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext \
9090     conftest$ac_exeext conftest.$ac_ext
9091      ac_ext=c
9092 ac_cpp='$CPP $CPPFLAGS'
9093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9096
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9099 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9100   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9101     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9102     CFLAGS="$SAVE_CFLAGS"
9103   fi
9104   ;;
9105 *-*solaris*)
9106   # Find out which ABI we are using.
9107   echo 'int i;' > conftest.$ac_ext
9108   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9109   (eval $ac_compile) 2>&5
9110   ac_status=$?
9111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9112   test $ac_status = 0; }; then
9113     case `/usr/bin/file conftest.o` in
9114     *64-bit*)
9115       case $lt_cv_prog_gnu_ld in
9116       yes*)
9117         case $host in
9118         i?86-*-solaris*)
9119           LD="${LD-ld} -m elf_x86_64"
9120           ;;
9121         sparc*-*-solaris*)
9122           LD="${LD-ld} -m elf64_sparc"
9123           ;;
9124         esac
9125         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9126         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9127           LD="${LD-ld}_sol2"
9128         fi
9129         ;;
9130       *)
9131         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9132           LD="${LD-ld} -64"
9133         fi
9134         ;;
9135       esac
9136       ;;
9137     esac
9138   fi
9139   rm -rf conftest*
9140   ;;
9141 esac
9142
9143 need_locks="$enable_libtool_lock"
9144
9145 if test -n "$ac_tool_prefix"; then
9146   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9147 set dummy ${ac_tool_prefix}mt; ac_word=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9151   $as_echo_n "(cached) " >&6
9152 else
9153   if test -n "$MANIFEST_TOOL"; then
9154   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9155 else
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 for as_dir in $PATH
9158 do
9159   IFS=$as_save_IFS
9160   test -z "$as_dir" && as_dir=.
9161     for ac_exec_ext in '' $ac_executable_extensions; do
9162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9163     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9165     break 2
9166   fi
9167 done
9168   done
9169 IFS=$as_save_IFS
9170
9171 fi
9172 fi
9173 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9174 if test -n "$MANIFEST_TOOL"; then
9175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9176 $as_echo "$MANIFEST_TOOL" >&6; }
9177 else
9178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9180 fi
9181
9182
9183 fi
9184 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9185   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9186   # Extract the first word of "mt", so it can be a program name with args.
9187 set dummy mt; ac_word=$2
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189 $as_echo_n "checking for $ac_word... " >&6; }
9190 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9191   $as_echo_n "(cached) " >&6
9192 else
9193   if test -n "$ac_ct_MANIFEST_TOOL"; then
9194   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9195 else
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9198 do
9199   IFS=$as_save_IFS
9200   test -z "$as_dir" && as_dir=.
9201     for ac_exec_ext in '' $ac_executable_extensions; do
9202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205     break 2
9206   fi
9207 done
9208   done
9209 IFS=$as_save_IFS
9210
9211 fi
9212 fi
9213 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9214 if test -n "$ac_ct_MANIFEST_TOOL"; then
9215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9216 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9217 else
9218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9220 fi
9221
9222   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9223     MANIFEST_TOOL=":"
9224   else
9225     case $cross_compiling:$ac_tool_warned in
9226 yes:)
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9229 ac_tool_warned=yes ;;
9230 esac
9231     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9232   fi
9233 else
9234   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9235 fi
9236
9237 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9239 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9240 if ${lt_cv_path_mainfest_tool+:} false; then :
9241   $as_echo_n "(cached) " >&6
9242 else
9243   lt_cv_path_mainfest_tool=no
9244   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9245   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9246   cat conftest.err >&5
9247   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9248     lt_cv_path_mainfest_tool=yes
9249   fi
9250   rm -f conftest*
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9253 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9254 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9255   MANIFEST_TOOL=:
9256 fi
9257
9258
9259
9260
9261
9262
9263   case $host_os in
9264     rhapsody* | darwin*)
9265     if test -n "$ac_tool_prefix"; then
9266   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9267 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9271   $as_echo_n "(cached) " >&6
9272 else
9273   if test -n "$DSYMUTIL"; then
9274   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9275 else
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 for as_dir in $PATH
9278 do
9279   IFS=$as_save_IFS
9280   test -z "$as_dir" && as_dir=.
9281     for ac_exec_ext in '' $ac_executable_extensions; do
9282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9285     break 2
9286   fi
9287 done
9288   done
9289 IFS=$as_save_IFS
9290
9291 fi
9292 fi
9293 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9294 if test -n "$DSYMUTIL"; then
9295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9296 $as_echo "$DSYMUTIL" >&6; }
9297 else
9298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9300 fi
9301
9302
9303 fi
9304 if test -z "$ac_cv_prog_DSYMUTIL"; then
9305   ac_ct_DSYMUTIL=$DSYMUTIL
9306   # Extract the first word of "dsymutil", so it can be a program name with args.
9307 set dummy dsymutil; ac_word=$2
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 $as_echo_n "checking for $ac_word... " >&6; }
9310 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9311   $as_echo_n "(cached) " >&6
9312 else
9313   if test -n "$ac_ct_DSYMUTIL"; then
9314   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9315 else
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in $PATH
9318 do
9319   IFS=$as_save_IFS
9320   test -z "$as_dir" && as_dir=.
9321     for ac_exec_ext in '' $ac_executable_extensions; do
9322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9325     break 2
9326   fi
9327 done
9328   done
9329 IFS=$as_save_IFS
9330
9331 fi
9332 fi
9333 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9334 if test -n "$ac_ct_DSYMUTIL"; then
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9336 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9337 else
9338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9340 fi
9341
9342   if test "x$ac_ct_DSYMUTIL" = x; then
9343     DSYMUTIL=":"
9344   else
9345     case $cross_compiling:$ac_tool_warned in
9346 yes:)
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9349 ac_tool_warned=yes ;;
9350 esac
9351     DSYMUTIL=$ac_ct_DSYMUTIL
9352   fi
9353 else
9354   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9355 fi
9356
9357     if test -n "$ac_tool_prefix"; then
9358   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9359 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361 $as_echo_n "checking for $ac_word... " >&6; }
9362 if ${ac_cv_prog_NMEDIT+:} false; then :
9363   $as_echo_n "(cached) " >&6
9364 else
9365   if test -n "$NMEDIT"; then
9366   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9367 else
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369 for as_dir in $PATH
9370 do
9371   IFS=$as_save_IFS
9372   test -z "$as_dir" && as_dir=.
9373     for ac_exec_ext in '' $ac_executable_extensions; do
9374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9375     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377     break 2
9378   fi
9379 done
9380   done
9381 IFS=$as_save_IFS
9382
9383 fi
9384 fi
9385 NMEDIT=$ac_cv_prog_NMEDIT
9386 if test -n "$NMEDIT"; then
9387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9388 $as_echo "$NMEDIT" >&6; }
9389 else
9390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9392 fi
9393
9394
9395 fi
9396 if test -z "$ac_cv_prog_NMEDIT"; then
9397   ac_ct_NMEDIT=$NMEDIT
9398   # Extract the first word of "nmedit", so it can be a program name with args.
9399 set dummy nmedit; ac_word=$2
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401 $as_echo_n "checking for $ac_word... " >&6; }
9402 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9403   $as_echo_n "(cached) " >&6
9404 else
9405   if test -n "$ac_ct_NMEDIT"; then
9406   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9407 else
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9410 do
9411   IFS=$as_save_IFS
9412   test -z "$as_dir" && as_dir=.
9413     for ac_exec_ext in '' $ac_executable_extensions; do
9414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417     break 2
9418   fi
9419 done
9420   done
9421 IFS=$as_save_IFS
9422
9423 fi
9424 fi
9425 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9426 if test -n "$ac_ct_NMEDIT"; then
9427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9428 $as_echo "$ac_ct_NMEDIT" >&6; }
9429 else
9430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 $as_echo "no" >&6; }
9432 fi
9433
9434   if test "x$ac_ct_NMEDIT" = x; then
9435     NMEDIT=":"
9436   else
9437     case $cross_compiling:$ac_tool_warned in
9438 yes:)
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9441 ac_tool_warned=yes ;;
9442 esac
9443     NMEDIT=$ac_ct_NMEDIT
9444   fi
9445 else
9446   NMEDIT="$ac_cv_prog_NMEDIT"
9447 fi
9448
9449     if test -n "$ac_tool_prefix"; then
9450   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9451 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 $as_echo_n "checking for $ac_word... " >&6; }
9454 if ${ac_cv_prog_LIPO+:} false; then :
9455   $as_echo_n "(cached) " >&6
9456 else
9457   if test -n "$LIPO"; then
9458   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9459 else
9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461 for as_dir in $PATH
9462 do
9463   IFS=$as_save_IFS
9464   test -z "$as_dir" && as_dir=.
9465     for ac_exec_ext in '' $ac_executable_extensions; do
9466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469     break 2
9470   fi
9471 done
9472   done
9473 IFS=$as_save_IFS
9474
9475 fi
9476 fi
9477 LIPO=$ac_cv_prog_LIPO
9478 if test -n "$LIPO"; then
9479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9480 $as_echo "$LIPO" >&6; }
9481 else
9482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9484 fi
9485
9486
9487 fi
9488 if test -z "$ac_cv_prog_LIPO"; then
9489   ac_ct_LIPO=$LIPO
9490   # Extract the first word of "lipo", so it can be a program name with args.
9491 set dummy lipo; ac_word=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9495   $as_echo_n "(cached) " >&6
9496 else
9497   if test -n "$ac_ct_LIPO"; then
9498   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9499 else
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9502 do
9503   IFS=$as_save_IFS
9504   test -z "$as_dir" && as_dir=.
9505     for ac_exec_ext in '' $ac_executable_extensions; do
9506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9507     ac_cv_prog_ac_ct_LIPO="lipo"
9508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509     break 2
9510   fi
9511 done
9512   done
9513 IFS=$as_save_IFS
9514
9515 fi
9516 fi
9517 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9518 if test -n "$ac_ct_LIPO"; then
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9520 $as_echo "$ac_ct_LIPO" >&6; }
9521 else
9522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9524 fi
9525
9526   if test "x$ac_ct_LIPO" = x; then
9527     LIPO=":"
9528   else
9529     case $cross_compiling:$ac_tool_warned in
9530 yes:)
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9533 ac_tool_warned=yes ;;
9534 esac
9535     LIPO=$ac_ct_LIPO
9536   fi
9537 else
9538   LIPO="$ac_cv_prog_LIPO"
9539 fi
9540
9541     if test -n "$ac_tool_prefix"; then
9542   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9543 set dummy ${ac_tool_prefix}otool; ac_word=$2
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9545 $as_echo_n "checking for $ac_word... " >&6; }
9546 if ${ac_cv_prog_OTOOL+:} false; then :
9547   $as_echo_n "(cached) " >&6
9548 else
9549   if test -n "$OTOOL"; then
9550   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9551 else
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553 for as_dir in $PATH
9554 do
9555   IFS=$as_save_IFS
9556   test -z "$as_dir" && as_dir=.
9557     for ac_exec_ext in '' $ac_executable_extensions; do
9558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9559     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9561     break 2
9562   fi
9563 done
9564   done
9565 IFS=$as_save_IFS
9566
9567 fi
9568 fi
9569 OTOOL=$ac_cv_prog_OTOOL
9570 if test -n "$OTOOL"; then
9571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9572 $as_echo "$OTOOL" >&6; }
9573 else
9574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9576 fi
9577
9578
9579 fi
9580 if test -z "$ac_cv_prog_OTOOL"; then
9581   ac_ct_OTOOL=$OTOOL
9582   # Extract the first word of "otool", so it can be a program name with args.
9583 set dummy otool; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9587   $as_echo_n "(cached) " >&6
9588 else
9589   if test -n "$ac_ct_OTOOL"; then
9590   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9591 else
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 for as_dir in $PATH
9594 do
9595   IFS=$as_save_IFS
9596   test -z "$as_dir" && as_dir=.
9597     for ac_exec_ext in '' $ac_executable_extensions; do
9598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9599     ac_cv_prog_ac_ct_OTOOL="otool"
9600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601     break 2
9602   fi
9603 done
9604   done
9605 IFS=$as_save_IFS
9606
9607 fi
9608 fi
9609 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9610 if test -n "$ac_ct_OTOOL"; then
9611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9612 $as_echo "$ac_ct_OTOOL" >&6; }
9613 else
9614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9616 fi
9617
9618   if test "x$ac_ct_OTOOL" = x; then
9619     OTOOL=":"
9620   else
9621     case $cross_compiling:$ac_tool_warned in
9622 yes:)
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9625 ac_tool_warned=yes ;;
9626 esac
9627     OTOOL=$ac_ct_OTOOL
9628   fi
9629 else
9630   OTOOL="$ac_cv_prog_OTOOL"
9631 fi
9632
9633     if test -n "$ac_tool_prefix"; then
9634   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9635 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637 $as_echo_n "checking for $ac_word... " >&6; }
9638 if ${ac_cv_prog_OTOOL64+:} false; then :
9639   $as_echo_n "(cached) " >&6
9640 else
9641   if test -n "$OTOOL64"; then
9642   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9643 else
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 for as_dir in $PATH
9646 do
9647   IFS=$as_save_IFS
9648   test -z "$as_dir" && as_dir=.
9649     for ac_exec_ext in '' $ac_executable_extensions; do
9650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653     break 2
9654   fi
9655 done
9656   done
9657 IFS=$as_save_IFS
9658
9659 fi
9660 fi
9661 OTOOL64=$ac_cv_prog_OTOOL64
9662 if test -n "$OTOOL64"; then
9663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9664 $as_echo "$OTOOL64" >&6; }
9665 else
9666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9668 fi
9669
9670
9671 fi
9672 if test -z "$ac_cv_prog_OTOOL64"; then
9673   ac_ct_OTOOL64=$OTOOL64
9674   # Extract the first word of "otool64", so it can be a program name with args.
9675 set dummy otool64; ac_word=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9679   $as_echo_n "(cached) " >&6
9680 else
9681   if test -n "$ac_ct_OTOOL64"; then
9682   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9683 else
9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685 for as_dir in $PATH
9686 do
9687   IFS=$as_save_IFS
9688   test -z "$as_dir" && as_dir=.
9689     for ac_exec_ext in '' $ac_executable_extensions; do
9690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9691     ac_cv_prog_ac_ct_OTOOL64="otool64"
9692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9693     break 2
9694   fi
9695 done
9696   done
9697 IFS=$as_save_IFS
9698
9699 fi
9700 fi
9701 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9702 if test -n "$ac_ct_OTOOL64"; then
9703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9704 $as_echo "$ac_ct_OTOOL64" >&6; }
9705 else
9706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 $as_echo "no" >&6; }
9708 fi
9709
9710   if test "x$ac_ct_OTOOL64" = x; then
9711     OTOOL64=":"
9712   else
9713     case $cross_compiling:$ac_tool_warned in
9714 yes:)
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9717 ac_tool_warned=yes ;;
9718 esac
9719     OTOOL64=$ac_ct_OTOOL64
9720   fi
9721 else
9722   OTOOL64="$ac_cv_prog_OTOOL64"
9723 fi
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9752 $as_echo_n "checking for -single_module linker flag... " >&6; }
9753 if ${lt_cv_apple_cc_single_mod+:} false; then :
9754   $as_echo_n "(cached) " >&6
9755 else
9756   lt_cv_apple_cc_single_mod=no
9757       if test -z "${LT_MULTI_MODULE}"; then
9758         # By default we will add the -single_module flag. You can override
9759         # by either setting the environment variable LT_MULTI_MODULE
9760         # non-empty at configure time, or by adding -multi_module to the
9761         # link flags.
9762         rm -rf libconftest.dylib*
9763         echo "int foo(void){return 1;}" > conftest.c
9764         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9765 -dynamiclib -Wl,-single_module conftest.c" >&5
9766         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9767           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9768         _lt_result=$?
9769         # If there is a non-empty error log, and "single_module"
9770         # appears in it, assume the flag caused a linker warning
9771         if test -s conftest.err && $GREP single_module conftest.err; then
9772           cat conftest.err >&5
9773         # Otherwise, if the output was created with a 0 exit code from
9774         # the compiler, it worked.
9775         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9776           lt_cv_apple_cc_single_mod=yes
9777         else
9778           cat conftest.err >&5
9779         fi
9780         rm -rf libconftest.dylib*
9781         rm -f conftest.*
9782       fi
9783 fi
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9785 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9786
9787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9788 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9789 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9790   $as_echo_n "(cached) " >&6
9791 else
9792   lt_cv_ld_exported_symbols_list=no
9793       save_LDFLAGS=$LDFLAGS
9794       echo "_main" > conftest.sym
9795       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9796       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h.  */
9798
9799 int
9800 main ()
9801 {
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 if ac_fn_c_try_link "$LINENO"; then :
9808   lt_cv_ld_exported_symbols_list=yes
9809 else
9810   lt_cv_ld_exported_symbols_list=no
9811 fi
9812 rm -f core conftest.err conftest.$ac_objext \
9813     conftest$ac_exeext conftest.$ac_ext
9814         LDFLAGS="$save_LDFLAGS"
9815
9816 fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9818 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9819
9820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9821 $as_echo_n "checking for -force_load linker flag... " >&6; }
9822 if ${lt_cv_ld_force_load+:} false; then :
9823   $as_echo_n "(cached) " >&6
9824 else
9825   lt_cv_ld_force_load=no
9826       cat > conftest.c << _LT_EOF
9827 int forced_loaded() { return 2;}
9828 _LT_EOF
9829       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9830       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9831       echo "$AR cru libconftest.a conftest.o" >&5
9832       $AR cru libconftest.a conftest.o 2>&5
9833       echo "$RANLIB libconftest.a" >&5
9834       $RANLIB libconftest.a 2>&5
9835       cat > conftest.c << _LT_EOF
9836 int main() { return 0;}
9837 _LT_EOF
9838       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9839       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9840       _lt_result=$?
9841       if test -s conftest.err && $GREP force_load conftest.err; then
9842         cat conftest.err >&5
9843       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9844         lt_cv_ld_force_load=yes
9845       else
9846         cat conftest.err >&5
9847       fi
9848         rm -f conftest.err libconftest.a conftest conftest.c
9849         rm -rf conftest.dSYM
9850
9851 fi
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9853 $as_echo "$lt_cv_ld_force_load" >&6; }
9854     case $host_os in
9855     rhapsody* | darwin1.[012])
9856       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9857     darwin1.*)
9858       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9859     darwin*) # darwin 5.x on
9860       # if running on 10.5 or later, the deployment target defaults
9861       # to the OS version, if on x86, and 10.4, the deployment
9862       # target defaults to 10.4. Don't you love it?
9863       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9864         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9865           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9866         10.[012]*)
9867           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9868         10.*)
9869           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9870       esac
9871     ;;
9872   esac
9873     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9874       _lt_dar_single_mod='$single_module'
9875     fi
9876     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9877       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9878     else
9879       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9880     fi
9881     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9882       _lt_dsymutil='~$DSYMUTIL $lib || :'
9883     else
9884       _lt_dsymutil=
9885     fi
9886     ;;
9887   esac
9888
9889 for ac_header in dlfcn.h
9890 do :
9891   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9892 "
9893 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9894   cat >>confdefs.h <<_ACEOF
9895 #define HAVE_DLFCN_H 1
9896 _ACEOF
9897
9898 fi
9899
9900 done
9901
9902
9903
9904
9905 func_stripname_cnf ()
9906 {
9907   case ${2} in
9908   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9909   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9910   esac
9911 } # func_stripname_cnf
9912
9913
9914
9915
9916
9917 # Set options
9918
9919
9920
9921         enable_dlopen=no
9922
9923
9924   enable_win32_dll=no
9925
9926
9927             # Check whether --enable-shared was given.
9928 if test "${enable_shared+set}" = set; then :
9929   enableval=$enable_shared; p=${PACKAGE-default}
9930     case $enableval in
9931     yes) enable_shared=yes ;;
9932     no) enable_shared=no ;;
9933     *)
9934       enable_shared=no
9935       # Look at the argument we got.  We use all the common list separators.
9936       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9937       for pkg in $enableval; do
9938         IFS="$lt_save_ifs"
9939         if test "X$pkg" = "X$p"; then
9940           enable_shared=yes
9941         fi
9942       done
9943       IFS="$lt_save_ifs"
9944       ;;
9945     esac
9946 else
9947   enable_shared=yes
9948 fi
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960 # Check whether --with-pic was given.
9961 if test "${with_pic+set}" = set; then :
9962   withval=$with_pic; lt_p=${PACKAGE-default}
9963     case $withval in
9964     yes|no) pic_mode=$withval ;;
9965     *)
9966       pic_mode=default
9967       # Look at the argument we got.  We use all the common list separators.
9968       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9969       for lt_pkg in $withval; do
9970         IFS="$lt_save_ifs"
9971         if test "X$lt_pkg" = "X$lt_p"; then
9972           pic_mode=yes
9973         fi
9974       done
9975       IFS="$lt_save_ifs"
9976       ;;
9977     esac
9978 else
9979   pic_mode=default
9980 fi
9981
9982
9983 test -z "$pic_mode" && pic_mode=default
9984
9985
9986
9987
9988
9989
9990
9991   # Check whether --enable-fast-install was given.
9992 if test "${enable_fast_install+set}" = set; then :
9993   enableval=$enable_fast_install; p=${PACKAGE-default}
9994     case $enableval in
9995     yes) enable_fast_install=yes ;;
9996     no) enable_fast_install=no ;;
9997     *)
9998       enable_fast_install=no
9999       # Look at the argument we got.  We use all the common list separators.
10000       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10001       for pkg in $enableval; do
10002         IFS="$lt_save_ifs"
10003         if test "X$pkg" = "X$p"; then
10004           enable_fast_install=yes
10005         fi
10006       done
10007       IFS="$lt_save_ifs"
10008       ;;
10009     esac
10010 else
10011   enable_fast_install=yes
10012 fi
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024 # This can be used to rebuild libtool when needed
10025 LIBTOOL_DEPS="$ltmain"
10026
10027 # Always use our own libtool.
10028 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059 test -z "$LN_S" && LN_S="ln -s"
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074 if test -n "${ZSH_VERSION+set}" ; then
10075    setopt NO_GLOB_SUBST
10076 fi
10077
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10079 $as_echo_n "checking for objdir... " >&6; }
10080 if ${lt_cv_objdir+:} false; then :
10081   $as_echo_n "(cached) " >&6
10082 else
10083   rm -f .libs 2>/dev/null
10084 mkdir .libs 2>/dev/null
10085 if test -d .libs; then
10086   lt_cv_objdir=.libs
10087 else
10088   # MS-DOS does not allow filenames that begin with a dot.
10089   lt_cv_objdir=_libs
10090 fi
10091 rmdir .libs 2>/dev/null
10092 fi
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10094 $as_echo "$lt_cv_objdir" >&6; }
10095 objdir=$lt_cv_objdir
10096
10097
10098
10099
10100
10101 cat >>confdefs.h <<_ACEOF
10102 #define LT_OBJDIR "$lt_cv_objdir/"
10103 _ACEOF
10104
10105
10106
10107
10108 case $host_os in
10109 aix3*)
10110   # AIX sometimes has problems with the GCC collect2 program.  For some
10111   # reason, if we set the COLLECT_NAMES environment variable, the problems
10112   # vanish in a puff of smoke.
10113   if test "X${COLLECT_NAMES+set}" != Xset; then
10114     COLLECT_NAMES=
10115     export COLLECT_NAMES
10116   fi
10117   ;;
10118 esac
10119
10120 # Global variables:
10121 ofile=libtool
10122 can_build_shared=yes
10123
10124 # All known linkers require a `.a' archive for static linking (except MSVC,
10125 # which needs '.lib').
10126 libext=a
10127
10128 with_gnu_ld="$lt_cv_prog_gnu_ld"
10129
10130 old_CC="$CC"
10131 old_CFLAGS="$CFLAGS"
10132
10133 # Set sane defaults for various variables
10134 test -z "$CC" && CC=cc
10135 test -z "$LTCC" && LTCC=$CC
10136 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10137 test -z "$LD" && LD=ld
10138 test -z "$ac_objext" && ac_objext=o
10139
10140 for cc_temp in $compiler""; do
10141   case $cc_temp in
10142     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10143     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10144     \-*) ;;
10145     *) break;;
10146   esac
10147 done
10148 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10149
10150
10151 # Only perform the check for file, if the check method requires it
10152 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10153 case $deplibs_check_method in
10154 file_magic*)
10155   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10157 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10158 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10159   $as_echo_n "(cached) " >&6
10160 else
10161   case $MAGIC_CMD in
10162 [\\/*] |  ?:[\\/]*)
10163   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10164   ;;
10165 *)
10166   lt_save_MAGIC_CMD="$MAGIC_CMD"
10167   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10168   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10169   for ac_dir in $ac_dummy; do
10170     IFS="$lt_save_ifs"
10171     test -z "$ac_dir" && ac_dir=.
10172     if test -f $ac_dir/${ac_tool_prefix}file; then
10173       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10174       if test -n "$file_magic_test_file"; then
10175         case $deplibs_check_method in
10176         "file_magic "*)
10177           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10178           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10179           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10180             $EGREP "$file_magic_regex" > /dev/null; then
10181             :
10182           else
10183             cat <<_LT_EOF 1>&2
10184
10185 *** Warning: the command libtool uses to detect shared libraries,
10186 *** $file_magic_cmd, produces output that libtool cannot recognize.
10187 *** The result is that libtool may fail to recognize shared libraries
10188 *** as such.  This will affect the creation of libtool libraries that
10189 *** depend on shared libraries, but programs linked with such libtool
10190 *** libraries will work regardless of this problem.  Nevertheless, you
10191 *** may want to report the problem to your system manager and/or to
10192 *** bug-libtool@gnu.org
10193
10194 _LT_EOF
10195           fi ;;
10196         esac
10197       fi
10198       break
10199     fi
10200   done
10201   IFS="$lt_save_ifs"
10202   MAGIC_CMD="$lt_save_MAGIC_CMD"
10203   ;;
10204 esac
10205 fi
10206
10207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10208 if test -n "$MAGIC_CMD"; then
10209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10210 $as_echo "$MAGIC_CMD" >&6; }
10211 else
10212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10214 fi
10215
10216
10217
10218
10219
10220 if test -z "$lt_cv_path_MAGIC_CMD"; then
10221   if test -n "$ac_tool_prefix"; then
10222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10223 $as_echo_n "checking for file... " >&6; }
10224 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10225   $as_echo_n "(cached) " >&6
10226 else
10227   case $MAGIC_CMD in
10228 [\\/*] |  ?:[\\/]*)
10229   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10230   ;;
10231 *)
10232   lt_save_MAGIC_CMD="$MAGIC_CMD"
10233   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10234   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10235   for ac_dir in $ac_dummy; do
10236     IFS="$lt_save_ifs"
10237     test -z "$ac_dir" && ac_dir=.
10238     if test -f $ac_dir/file; then
10239       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10240       if test -n "$file_magic_test_file"; then
10241         case $deplibs_check_method in
10242         "file_magic "*)
10243           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10244           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10245           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10246             $EGREP "$file_magic_regex" > /dev/null; then
10247             :
10248           else
10249             cat <<_LT_EOF 1>&2
10250
10251 *** Warning: the command libtool uses to detect shared libraries,
10252 *** $file_magic_cmd, produces output that libtool cannot recognize.
10253 *** The result is that libtool may fail to recognize shared libraries
10254 *** as such.  This will affect the creation of libtool libraries that
10255 *** depend on shared libraries, but programs linked with such libtool
10256 *** libraries will work regardless of this problem.  Nevertheless, you
10257 *** may want to report the problem to your system manager and/or to
10258 *** bug-libtool@gnu.org
10259
10260 _LT_EOF
10261           fi ;;
10262         esac
10263       fi
10264       break
10265     fi
10266   done
10267   IFS="$lt_save_ifs"
10268   MAGIC_CMD="$lt_save_MAGIC_CMD"
10269   ;;
10270 esac
10271 fi
10272
10273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10274 if test -n "$MAGIC_CMD"; then
10275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10276 $as_echo "$MAGIC_CMD" >&6; }
10277 else
10278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10280 fi
10281
10282
10283   else
10284     MAGIC_CMD=:
10285   fi
10286 fi
10287
10288   fi
10289   ;;
10290 esac
10291
10292 # Use C for the default configuration in the libtool script
10293
10294 lt_save_CC="$CC"
10295 ac_ext=c
10296 ac_cpp='$CPP $CPPFLAGS'
10297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10300
10301
10302 # Source file extension for C test sources.
10303 ac_ext=c
10304
10305 # Object file extension for compiled C test sources.
10306 objext=o
10307 objext=$objext
10308
10309 # Code to be used in simple compile tests
10310 lt_simple_compile_test_code="int some_variable = 0;"
10311
10312 # Code to be used in simple link tests
10313 lt_simple_link_test_code='int main(){return(0);}'
10314
10315
10316
10317
10318
10319
10320
10321 # If no C compiler was specified, use CC.
10322 LTCC=${LTCC-"$CC"}
10323
10324 # If no C compiler flags were specified, use CFLAGS.
10325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10326
10327 # Allow CC to be a program name with arguments.
10328 compiler=$CC
10329
10330 # Save the default compiler, since it gets overwritten when the other
10331 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10332 compiler_DEFAULT=$CC
10333
10334 # save warnings/boilerplate of simple test code
10335 ac_outfile=conftest.$ac_objext
10336 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10338 _lt_compiler_boilerplate=`cat conftest.err`
10339 $RM conftest*
10340
10341 ac_outfile=conftest.$ac_objext
10342 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10344 _lt_linker_boilerplate=`cat conftest.err`
10345 $RM -r conftest*
10346
10347
10348 ## CAVEAT EMPTOR:
10349 ## There is no encapsulation within the following macros, do not change
10350 ## the running order or otherwise move them around unless you know exactly
10351 ## what you are doing...
10352 if test -n "$compiler"; then
10353
10354 lt_prog_compiler_no_builtin_flag=
10355
10356 if test "$GCC" = yes; then
10357   case $cc_basename in
10358   nvcc*)
10359     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10360   *)
10361     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10362   esac
10363
10364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10365 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10366 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10367   $as_echo_n "(cached) " >&6
10368 else
10369   lt_cv_prog_compiler_rtti_exceptions=no
10370    ac_outfile=conftest.$ac_objext
10371    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10372    lt_compiler_flag="-fno-rtti -fno-exceptions"
10373    # Insert the option either (1) after the last *FLAGS variable, or
10374    # (2) before a word containing "conftest.", or (3) at the end.
10375    # Note that $ac_compile itself does not contain backslashes and begins
10376    # with a dollar sign (not a hyphen), so the echo should work correctly.
10377    # The option is referenced via a variable to avoid confusing sed.
10378    lt_compile=`echo "$ac_compile" | $SED \
10379    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10380    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10381    -e 's:$: $lt_compiler_flag:'`
10382    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10383    (eval "$lt_compile" 2>conftest.err)
10384    ac_status=$?
10385    cat conftest.err >&5
10386    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387    if (exit $ac_status) && test -s "$ac_outfile"; then
10388      # The compiler can only warn and ignore the option if not recognized
10389      # So say no if there are warnings other than the usual output.
10390      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10391      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10392      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10393        lt_cv_prog_compiler_rtti_exceptions=yes
10394      fi
10395    fi
10396    $RM conftest*
10397
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10400 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10401
10402 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10403     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10404 else
10405     :
10406 fi
10407
10408 fi
10409
10410
10411
10412
10413
10414
10415   lt_prog_compiler_wl=
10416 lt_prog_compiler_pic=
10417 lt_prog_compiler_static=
10418
10419
10420   if test "$GCC" = yes; then
10421     lt_prog_compiler_wl='-Wl,'
10422     lt_prog_compiler_static='-static'
10423
10424     case $host_os in
10425       aix*)
10426       # All AIX code is PIC.
10427       if test "$host_cpu" = ia64; then
10428         # AIX 5 now supports IA64 processor
10429         lt_prog_compiler_static='-Bstatic'
10430       fi
10431       ;;
10432
10433     amigaos*)
10434       case $host_cpu in
10435       powerpc)
10436             # see comment about AmigaOS4 .so support
10437             lt_prog_compiler_pic='-fPIC'
10438         ;;
10439       m68k)
10440             # FIXME: we need at least 68020 code to build shared libraries, but
10441             # adding the `-m68020' flag to GCC prevents building anything better,
10442             # like `-m68040'.
10443             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10444         ;;
10445       esac
10446       ;;
10447
10448     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10449       # PIC is the default for these OSes.
10450       ;;
10451
10452     mingw* | cygwin* | pw32* | os2* | cegcc*)
10453       # This hack is so that the source file can tell whether it is being
10454       # built for inclusion in a dll (and should export symbols for example).
10455       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10456       # (--disable-auto-import) libraries
10457       lt_prog_compiler_pic='-DDLL_EXPORT'
10458       ;;
10459
10460     darwin* | rhapsody*)
10461       # PIC is the default on this platform
10462       # Common symbols not allowed in MH_DYLIB files
10463       lt_prog_compiler_pic='-fno-common'
10464       ;;
10465
10466     haiku*)
10467       # PIC is the default for Haiku.
10468       # The "-static" flag exists, but is broken.
10469       lt_prog_compiler_static=
10470       ;;
10471
10472     hpux*)
10473       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10474       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10475       # sets the default TLS model and affects inlining.
10476       case $host_cpu in
10477       hppa*64*)
10478         # +Z the default
10479         ;;
10480       *)
10481         lt_prog_compiler_pic='-fPIC'
10482         ;;
10483       esac
10484       ;;
10485
10486     interix[3-9]*)
10487       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10488       # Instead, we relocate shared libraries at runtime.
10489       ;;
10490
10491     msdosdjgpp*)
10492       # Just because we use GCC doesn't mean we suddenly get shared libraries
10493       # on systems that don't support them.
10494       lt_prog_compiler_can_build_shared=no
10495       enable_shared=no
10496       ;;
10497
10498     *nto* | *qnx*)
10499       # QNX uses GNU C++, but need to define -shared option too, otherwise
10500       # it will coredump.
10501       lt_prog_compiler_pic='-fPIC -shared'
10502       ;;
10503
10504     sysv4*MP*)
10505       if test -d /usr/nec; then
10506         lt_prog_compiler_pic=-Kconform_pic
10507       fi
10508       ;;
10509
10510     *)
10511       lt_prog_compiler_pic='-fPIC'
10512       ;;
10513     esac
10514
10515     case $cc_basename in
10516     nvcc*) # Cuda Compiler Driver 2.2
10517       lt_prog_compiler_wl='-Xlinker '
10518       if test -n "$lt_prog_compiler_pic"; then
10519         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10520       fi
10521       ;;
10522     esac
10523   else
10524     # PORTME Check for flag to pass linker flags through the system compiler.
10525     case $host_os in
10526     aix*)
10527       lt_prog_compiler_wl='-Wl,'
10528       if test "$host_cpu" = ia64; then
10529         # AIX 5 now supports IA64 processor
10530         lt_prog_compiler_static='-Bstatic'
10531       else
10532         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10533       fi
10534       ;;
10535
10536     mingw* | cygwin* | pw32* | os2* | cegcc*)
10537       # This hack is so that the source file can tell whether it is being
10538       # built for inclusion in a dll (and should export symbols for example).
10539       lt_prog_compiler_pic='-DDLL_EXPORT'
10540       ;;
10541
10542     hpux9* | hpux10* | hpux11*)
10543       lt_prog_compiler_wl='-Wl,'
10544       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10545       # not for PA HP-UX.
10546       case $host_cpu in
10547       hppa*64*|ia64*)
10548         # +Z the default
10549         ;;
10550       *)
10551         lt_prog_compiler_pic='+Z'
10552         ;;
10553       esac
10554       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10555       lt_prog_compiler_static='${wl}-a ${wl}archive'
10556       ;;
10557
10558     irix5* | irix6* | nonstopux*)
10559       lt_prog_compiler_wl='-Wl,'
10560       # PIC (with -KPIC) is the default.
10561       lt_prog_compiler_static='-non_shared'
10562       ;;
10563
10564     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10565       case $cc_basename in
10566       # old Intel for x86_64 which still supported -KPIC.
10567       ecc*)
10568         lt_prog_compiler_wl='-Wl,'
10569         lt_prog_compiler_pic='-KPIC'
10570         lt_prog_compiler_static='-static'
10571         ;;
10572       # icc used to be incompatible with GCC.
10573       # ICC 10 doesn't accept -KPIC any more.
10574       icc* | ifort*)
10575         lt_prog_compiler_wl='-Wl,'
10576         lt_prog_compiler_pic='-fPIC'
10577         lt_prog_compiler_static='-static'
10578         ;;
10579       # Lahey Fortran 8.1.
10580       lf95*)
10581         lt_prog_compiler_wl='-Wl,'
10582         lt_prog_compiler_pic='--shared'
10583         lt_prog_compiler_static='--static'
10584         ;;
10585       nagfor*)
10586         # NAG Fortran compiler
10587         lt_prog_compiler_wl='-Wl,-Wl,,'
10588         lt_prog_compiler_pic='-PIC'
10589         lt_prog_compiler_static='-Bstatic'
10590         ;;
10591       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10592         # Portland Group compilers (*not* the Pentium gcc compiler,
10593         # which looks to be a dead project)
10594         lt_prog_compiler_wl='-Wl,'
10595         lt_prog_compiler_pic='-fpic'
10596         lt_prog_compiler_static='-Bstatic'
10597         ;;
10598       ccc*)
10599         lt_prog_compiler_wl='-Wl,'
10600         # All Alpha code is PIC.
10601         lt_prog_compiler_static='-non_shared'
10602         ;;
10603       xl* | bgxl* | bgf* | mpixl*)
10604         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10605         lt_prog_compiler_wl='-Wl,'
10606         lt_prog_compiler_pic='-qpic'
10607         lt_prog_compiler_static='-qstaticlink'
10608         ;;
10609       *)
10610         case `$CC -V 2>&1 | sed 5q` in
10611         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10612           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10613           lt_prog_compiler_pic='-KPIC'
10614           lt_prog_compiler_static='-Bstatic'
10615           lt_prog_compiler_wl=''
10616           ;;
10617         *Sun\ F* | *Sun*Fortran*)
10618           lt_prog_compiler_pic='-KPIC'
10619           lt_prog_compiler_static='-Bstatic'
10620           lt_prog_compiler_wl='-Qoption ld '
10621           ;;
10622         *Sun\ C*)
10623           # Sun C 5.9
10624           lt_prog_compiler_pic='-KPIC'
10625           lt_prog_compiler_static='-Bstatic'
10626           lt_prog_compiler_wl='-Wl,'
10627           ;;
10628         *Intel*\ [CF]*Compiler*)
10629           lt_prog_compiler_wl='-Wl,'
10630           lt_prog_compiler_pic='-fPIC'
10631           lt_prog_compiler_static='-static'
10632           ;;
10633         *Portland\ Group*)
10634           lt_prog_compiler_wl='-Wl,'
10635           lt_prog_compiler_pic='-fpic'
10636           lt_prog_compiler_static='-Bstatic'
10637           ;;
10638         esac
10639         ;;
10640       esac
10641       ;;
10642
10643     newsos6)
10644       lt_prog_compiler_pic='-KPIC'
10645       lt_prog_compiler_static='-Bstatic'
10646       ;;
10647
10648     *nto* | *qnx*)
10649       # QNX uses GNU C++, but need to define -shared option too, otherwise
10650       # it will coredump.
10651       lt_prog_compiler_pic='-fPIC -shared'
10652       ;;
10653
10654     osf3* | osf4* | osf5*)
10655       lt_prog_compiler_wl='-Wl,'
10656       # All OSF/1 code is PIC.
10657       lt_prog_compiler_static='-non_shared'
10658       ;;
10659
10660     rdos*)
10661       lt_prog_compiler_static='-non_shared'
10662       ;;
10663
10664     solaris*)
10665       lt_prog_compiler_pic='-KPIC'
10666       lt_prog_compiler_static='-Bstatic'
10667       case $cc_basename in
10668       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10669         lt_prog_compiler_wl='-Qoption ld ';;
10670       *)
10671         lt_prog_compiler_wl='-Wl,';;
10672       esac
10673       ;;
10674
10675     sunos4*)
10676       lt_prog_compiler_wl='-Qoption ld '
10677       lt_prog_compiler_pic='-PIC'
10678       lt_prog_compiler_static='-Bstatic'
10679       ;;
10680
10681     sysv4 | sysv4.2uw2* | sysv4.3*)
10682       lt_prog_compiler_wl='-Wl,'
10683       lt_prog_compiler_pic='-KPIC'
10684       lt_prog_compiler_static='-Bstatic'
10685       ;;
10686
10687     sysv4*MP*)
10688       if test -d /usr/nec ;then
10689         lt_prog_compiler_pic='-Kconform_pic'
10690         lt_prog_compiler_static='-Bstatic'
10691       fi
10692       ;;
10693
10694     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10695       lt_prog_compiler_wl='-Wl,'
10696       lt_prog_compiler_pic='-KPIC'
10697       lt_prog_compiler_static='-Bstatic'
10698       ;;
10699
10700     unicos*)
10701       lt_prog_compiler_wl='-Wl,'
10702       lt_prog_compiler_can_build_shared=no
10703       ;;
10704
10705     uts4*)
10706       lt_prog_compiler_pic='-pic'
10707       lt_prog_compiler_static='-Bstatic'
10708       ;;
10709
10710     *)
10711       lt_prog_compiler_can_build_shared=no
10712       ;;
10713     esac
10714   fi
10715
10716 case $host_os in
10717   # For platforms which do not support PIC, -DPIC is meaningless:
10718   *djgpp*)
10719     lt_prog_compiler_pic=
10720     ;;
10721   *)
10722     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10723     ;;
10724 esac
10725
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10727 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10728 if ${lt_cv_prog_compiler_pic+:} false; then :
10729   $as_echo_n "(cached) " >&6
10730 else
10731   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10732 fi
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10734 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10735 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10736
10737 #
10738 # Check to make sure the PIC flag actually works.
10739 #
10740 if test -n "$lt_prog_compiler_pic"; then
10741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10742 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10743 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10744   $as_echo_n "(cached) " >&6
10745 else
10746   lt_cv_prog_compiler_pic_works=no
10747    ac_outfile=conftest.$ac_objext
10748    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10749    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10750    # Insert the option either (1) after the last *FLAGS variable, or
10751    # (2) before a word containing "conftest.", or (3) at the end.
10752    # Note that $ac_compile itself does not contain backslashes and begins
10753    # with a dollar sign (not a hyphen), so the echo should work correctly.
10754    # The option is referenced via a variable to avoid confusing sed.
10755    lt_compile=`echo "$ac_compile" | $SED \
10756    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10757    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10758    -e 's:$: $lt_compiler_flag:'`
10759    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10760    (eval "$lt_compile" 2>conftest.err)
10761    ac_status=$?
10762    cat conftest.err >&5
10763    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764    if (exit $ac_status) && test -s "$ac_outfile"; then
10765      # The compiler can only warn and ignore the option if not recognized
10766      # So say no if there are warnings other than the usual output.
10767      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10768      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10769      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10770        lt_cv_prog_compiler_pic_works=yes
10771      fi
10772    fi
10773    $RM conftest*
10774
10775 fi
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10777 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10778
10779 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10780     case $lt_prog_compiler_pic in
10781      "" | " "*) ;;
10782      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10783      esac
10784 else
10785     lt_prog_compiler_pic=
10786      lt_prog_compiler_can_build_shared=no
10787 fi
10788
10789 fi
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801 #
10802 # Check to make sure the static flag actually works.
10803 #
10804 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10806 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10807 if ${lt_cv_prog_compiler_static_works+:} false; then :
10808   $as_echo_n "(cached) " >&6
10809 else
10810   lt_cv_prog_compiler_static_works=no
10811    save_LDFLAGS="$LDFLAGS"
10812    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10813    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10814    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10815      # The linker can only warn and ignore the option if not recognized
10816      # So say no if there are warnings
10817      if test -s conftest.err; then
10818        # Append any errors to the config.log.
10819        cat conftest.err 1>&5
10820        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10821        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10822        if diff conftest.exp conftest.er2 >/dev/null; then
10823          lt_cv_prog_compiler_static_works=yes
10824        fi
10825      else
10826        lt_cv_prog_compiler_static_works=yes
10827      fi
10828    fi
10829    $RM -r conftest*
10830    LDFLAGS="$save_LDFLAGS"
10831
10832 fi
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10834 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10835
10836 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10837     :
10838 else
10839     lt_prog_compiler_static=
10840 fi
10841
10842
10843
10844
10845
10846
10847
10848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10850 if ${lt_cv_prog_compiler_c_o+:} false; then :
10851   $as_echo_n "(cached) " >&6
10852 else
10853   lt_cv_prog_compiler_c_o=no
10854    $RM -r conftest 2>/dev/null
10855    mkdir conftest
10856    cd conftest
10857    mkdir out
10858    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10859
10860    lt_compiler_flag="-o out/conftest2.$ac_objext"
10861    # Insert the option either (1) after the last *FLAGS variable, or
10862    # (2) before a word containing "conftest.", or (3) at the end.
10863    # Note that $ac_compile itself does not contain backslashes and begins
10864    # with a dollar sign (not a hyphen), so the echo should work correctly.
10865    lt_compile=`echo "$ac_compile" | $SED \
10866    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10868    -e 's:$: $lt_compiler_flag:'`
10869    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10870    (eval "$lt_compile" 2>out/conftest.err)
10871    ac_status=$?
10872    cat out/conftest.err >&5
10873    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10875    then
10876      # The compiler can only warn and ignore the option if not recognized
10877      # So say no if there are warnings
10878      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10879      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10880      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10881        lt_cv_prog_compiler_c_o=yes
10882      fi
10883    fi
10884    chmod u+w . 2>&5
10885    $RM conftest*
10886    # SGI C++ compiler will create directory out/ii_files/ for
10887    # template instantiation
10888    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10889    $RM out/* && rmdir out
10890    cd ..
10891    $RM -r conftest
10892    $RM conftest*
10893
10894 fi
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10896 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10897
10898
10899
10900
10901
10902
10903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10905 if ${lt_cv_prog_compiler_c_o+:} false; then :
10906   $as_echo_n "(cached) " >&6
10907 else
10908   lt_cv_prog_compiler_c_o=no
10909    $RM -r conftest 2>/dev/null
10910    mkdir conftest
10911    cd conftest
10912    mkdir out
10913    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10914
10915    lt_compiler_flag="-o out/conftest2.$ac_objext"
10916    # Insert the option either (1) after the last *FLAGS variable, or
10917    # (2) before a word containing "conftest.", or (3) at the end.
10918    # Note that $ac_compile itself does not contain backslashes and begins
10919    # with a dollar sign (not a hyphen), so the echo should work correctly.
10920    lt_compile=`echo "$ac_compile" | $SED \
10921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10923    -e 's:$: $lt_compiler_flag:'`
10924    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10925    (eval "$lt_compile" 2>out/conftest.err)
10926    ac_status=$?
10927    cat out/conftest.err >&5
10928    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10930    then
10931      # The compiler can only warn and ignore the option if not recognized
10932      # So say no if there are warnings
10933      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10934      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10935      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10936        lt_cv_prog_compiler_c_o=yes
10937      fi
10938    fi
10939    chmod u+w . 2>&5
10940    $RM conftest*
10941    # SGI C++ compiler will create directory out/ii_files/ for
10942    # template instantiation
10943    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10944    $RM out/* && rmdir out
10945    cd ..
10946    $RM -r conftest
10947    $RM conftest*
10948
10949 fi
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10952
10953
10954
10955
10956 hard_links="nottested"
10957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10958   # do not overwrite the value of need_locks provided by the user
10959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10960 $as_echo_n "checking if we can lock with hard links... " >&6; }
10961   hard_links=yes
10962   $RM conftest*
10963   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10964   touch conftest.a
10965   ln conftest.a conftest.b 2>&5 || hard_links=no
10966   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10968 $as_echo "$hard_links" >&6; }
10969   if test "$hard_links" = no; then
10970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10971 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10972     need_locks=warn
10973   fi
10974 else
10975   need_locks=no
10976 fi
10977
10978
10979
10980
10981
10982
10983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10984 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10985
10986   runpath_var=
10987   allow_undefined_flag=
10988   always_export_symbols=no
10989   archive_cmds=
10990   archive_expsym_cmds=
10991   compiler_needs_object=no
10992   enable_shared_with_static_runtimes=no
10993   export_dynamic_flag_spec=
10994   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10995   hardcode_automatic=no
10996   hardcode_direct=no
10997   hardcode_direct_absolute=no
10998   hardcode_libdir_flag_spec=
10999   hardcode_libdir_separator=
11000   hardcode_minus_L=no
11001   hardcode_shlibpath_var=unsupported
11002   inherit_rpath=no
11003   link_all_deplibs=unknown
11004   module_cmds=
11005   module_expsym_cmds=
11006   old_archive_from_new_cmds=
11007   old_archive_from_expsyms_cmds=
11008   thread_safe_flag_spec=
11009   whole_archive_flag_spec=
11010   # include_expsyms should be a list of space-separated symbols to be *always*
11011   # included in the symbol list
11012   include_expsyms=
11013   # exclude_expsyms can be an extended regexp of symbols to exclude
11014   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11015   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11016   # as well as any symbol that contains `d'.
11017   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11018   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11019   # platforms (ab)use it in PIC code, but their linkers get confused if
11020   # the symbol is explicitly referenced.  Since portable code cannot
11021   # rely on this symbol name, it's probably fine to never include it in
11022   # preloaded symbol tables.
11023   # Exclude shared library initialization/finalization symbols.
11024   extract_expsyms_cmds=
11025
11026   case $host_os in
11027   cygwin* | mingw* | pw32* | cegcc*)
11028     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11029     # When not using gcc, we currently assume that we are using
11030     # Microsoft Visual C++.
11031     if test "$GCC" != yes; then
11032       with_gnu_ld=no
11033     fi
11034     ;;
11035   interix*)
11036     # we just hope/assume this is gcc and not c89 (= MSVC++)
11037     with_gnu_ld=yes
11038     ;;
11039   openbsd*)
11040     with_gnu_ld=no
11041     ;;
11042   esac
11043
11044   ld_shlibs=yes
11045
11046   # On some targets, GNU ld is compatible enough with the native linker
11047   # that we're better off using the native interface for both.
11048   lt_use_gnu_ld_interface=no
11049   if test "$with_gnu_ld" = yes; then
11050     case $host_os in
11051       aix*)
11052         # The AIX port of GNU ld has always aspired to compatibility
11053         # with the native linker.  However, as the warning in the GNU ld
11054         # block says, versions before 2.19.5* couldn't really create working
11055         # shared libraries, regardless of the interface used.
11056         case `$LD -v 2>&1` in
11057           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11058           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11059           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11060           *)
11061             lt_use_gnu_ld_interface=yes
11062             ;;
11063         esac
11064         ;;
11065       *)
11066         lt_use_gnu_ld_interface=yes
11067         ;;
11068     esac
11069   fi
11070
11071   if test "$lt_use_gnu_ld_interface" = yes; then
11072     # If archive_cmds runs LD, not CC, wlarc should be empty
11073     wlarc='${wl}'
11074
11075     # Set some defaults for GNU ld with shared library support. These
11076     # are reset later if shared libraries are not supported. Putting them
11077     # here allows them to be overridden if necessary.
11078     runpath_var=LD_RUN_PATH
11079     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11080     export_dynamic_flag_spec='${wl}--export-dynamic'
11081     # ancient GNU ld didn't support --whole-archive et. al.
11082     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11083       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11084     else
11085       whole_archive_flag_spec=
11086     fi
11087     supports_anon_versioning=no
11088     case `$LD -v 2>&1` in
11089       *GNU\ gold*) supports_anon_versioning=yes ;;
11090       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11091       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11092       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11093       *\ 2.11.*) ;; # other 2.11 versions
11094       *) supports_anon_versioning=yes ;;
11095     esac
11096
11097     # See if GNU ld supports shared libraries.
11098     case $host_os in
11099     aix[3-9]*)
11100       # On AIX/PPC, the GNU linker is very broken
11101       if test "$host_cpu" != ia64; then
11102         ld_shlibs=no
11103         cat <<_LT_EOF 1>&2
11104
11105 *** Warning: the GNU linker, at least up to release 2.19, is reported
11106 *** to be unable to reliably create shared libraries on AIX.
11107 *** Therefore, libtool is disabling shared libraries support.  If you
11108 *** really care for shared libraries, you may want to install binutils
11109 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11110 *** You will then need to restart the configuration process.
11111
11112 _LT_EOF
11113       fi
11114       ;;
11115
11116     amigaos*)
11117       case $host_cpu in
11118       powerpc)
11119             # see comment about AmigaOS4 .so support
11120             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11121             archive_expsym_cmds=''
11122         ;;
11123       m68k)
11124             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)'
11125             hardcode_libdir_flag_spec='-L$libdir'
11126             hardcode_minus_L=yes
11127         ;;
11128       esac
11129       ;;
11130
11131     beos*)
11132       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11133         allow_undefined_flag=unsupported
11134         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11135         # support --undefined.  This deserves some investigation.  FIXME
11136         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11137       else
11138         ld_shlibs=no
11139       fi
11140       ;;
11141
11142     cygwin* | mingw* | pw32* | cegcc*)
11143       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11144       # as there is no search path for DLLs.
11145       hardcode_libdir_flag_spec='-L$libdir'
11146       export_dynamic_flag_spec='${wl}--export-all-symbols'
11147       allow_undefined_flag=unsupported
11148       always_export_symbols=no
11149       enable_shared_with_static_runtimes=yes
11150       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'
11151       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11152
11153       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11154         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11155         # If the export-symbols file already is a .def file (1st line
11156         # is EXPORTS), use it as is; otherwise, prepend...
11157         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11158           cp $export_symbols $output_objdir/$soname.def;
11159         else
11160           echo EXPORTS > $output_objdir/$soname.def;
11161           cat $export_symbols >> $output_objdir/$soname.def;
11162         fi~
11163         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11164       else
11165         ld_shlibs=no
11166       fi
11167       ;;
11168
11169     haiku*)
11170       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11171       link_all_deplibs=yes
11172       ;;
11173
11174     interix[3-9]*)
11175       hardcode_direct=no
11176       hardcode_shlibpath_var=no
11177       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11178       export_dynamic_flag_spec='${wl}-E'
11179       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11180       # Instead, shared libraries are loaded at an image base (0x10000000 by
11181       # default) and relocated if they conflict, which is a slow very memory
11182       # consuming and fragmenting process.  To avoid this, we pick a random,
11183       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11184       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11185       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11186       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'
11187       ;;
11188
11189     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11190       tmp_diet=no
11191       if test "$host_os" = linux-dietlibc; then
11192         case $cc_basename in
11193           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11194         esac
11195       fi
11196       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11197          && test "$tmp_diet" = no
11198       then
11199         tmp_addflag=' $pic_flag'
11200         tmp_sharedflag='-shared'
11201         case $cc_basename,$host_cpu in
11202         pgcc*)                          # Portland Group C compiler
11203           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'
11204           tmp_addflag=' $pic_flag'
11205           ;;
11206         pgf77* | pgf90* | pgf95* | pgfortran*)
11207                                         # Portland Group f77 and f90 compilers
11208           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'
11209           tmp_addflag=' $pic_flag -Mnomain' ;;
11210         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11211           tmp_addflag=' -i_dynamic' ;;
11212         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11213           tmp_addflag=' -i_dynamic -nofor_main' ;;
11214         ifc* | ifort*)                  # Intel Fortran compiler
11215           tmp_addflag=' -nofor_main' ;;
11216         lf95*)                          # Lahey Fortran 8.1
11217           whole_archive_flag_spec=
11218           tmp_sharedflag='--shared' ;;
11219         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11220           tmp_sharedflag='-qmkshrobj'
11221           tmp_addflag= ;;
11222         nvcc*)  # Cuda Compiler Driver 2.2
11223           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'
11224           compiler_needs_object=yes
11225           ;;
11226         esac
11227         case `$CC -V 2>&1 | sed 5q` in
11228         *Sun\ C*)                       # Sun C 5.9
11229           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'
11230           compiler_needs_object=yes
11231           tmp_sharedflag='-G' ;;
11232         *Sun\ F*)                       # Sun Fortran 8.3
11233           tmp_sharedflag='-G' ;;
11234         esac
11235         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11236
11237         if test "x$supports_anon_versioning" = xyes; then
11238           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11239             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11240             echo "local: *; };" >> $output_objdir/$libname.ver~
11241             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11242         fi
11243
11244         case $cc_basename in
11245         xlf* | bgf* | bgxlf* | mpixlf*)
11246           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11247           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11248           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11249           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11250           if test "x$supports_anon_versioning" = xyes; then
11251             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11252               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11253               echo "local: *; };" >> $output_objdir/$libname.ver~
11254               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11255           fi
11256           ;;
11257         esac
11258       else
11259         ld_shlibs=no
11260       fi
11261       ;;
11262
11263     netbsd*)
11264       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11265         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11266         wlarc=
11267       else
11268         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11269         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11270       fi
11271       ;;
11272
11273     solaris*)
11274       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11275         ld_shlibs=no
11276         cat <<_LT_EOF 1>&2
11277
11278 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11279 *** create shared libraries on Solaris systems.  Therefore, libtool
11280 *** is disabling shared libraries support.  We urge you to upgrade GNU
11281 *** binutils to release 2.9.1 or newer.  Another option is to modify
11282 *** your PATH or compiler configuration so that the native linker is
11283 *** used, and then restart.
11284
11285 _LT_EOF
11286       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11287         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11288         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11289       else
11290         ld_shlibs=no
11291       fi
11292       ;;
11293
11294     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11295       case `$LD -v 2>&1` in
11296         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11297         ld_shlibs=no
11298         cat <<_LT_EOF 1>&2
11299
11300 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11301 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11302 *** is disabling shared libraries support.  We urge you to upgrade GNU
11303 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11304 *** your PATH or compiler configuration so that the native linker is
11305 *** used, and then restart.
11306
11307 _LT_EOF
11308         ;;
11309         *)
11310           # For security reasons, it is highly recommended that you always
11311           # use absolute paths for naming shared libraries, and exclude the
11312           # DT_RUNPATH tag from executables and libraries.  But doing so
11313           # requires that you compile everything twice, which is a pain.
11314           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11315             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11316             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11317             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11318           else
11319             ld_shlibs=no
11320           fi
11321         ;;
11322       esac
11323       ;;
11324
11325     sunos4*)
11326       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11327       wlarc=
11328       hardcode_direct=yes
11329       hardcode_shlibpath_var=no
11330       ;;
11331
11332     *)
11333       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11334         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11335         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11336       else
11337         ld_shlibs=no
11338       fi
11339       ;;
11340     esac
11341
11342     if test "$ld_shlibs" = no; then
11343       runpath_var=
11344       hardcode_libdir_flag_spec=
11345       export_dynamic_flag_spec=
11346       whole_archive_flag_spec=
11347     fi
11348   else
11349     # PORTME fill in a description of your system's linker (not GNU ld)
11350     case $host_os in
11351     aix3*)
11352       allow_undefined_flag=unsupported
11353       always_export_symbols=yes
11354       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'
11355       # Note: this linker hardcodes the directories in LIBPATH if there
11356       # are no directories specified by -L.
11357       hardcode_minus_L=yes
11358       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11359         # Neither direct hardcoding nor static linking is supported with a
11360         # broken collect2.
11361         hardcode_direct=unsupported
11362       fi
11363       ;;
11364
11365     aix[4-9]*)
11366       if test "$host_cpu" = ia64; then
11367         # On IA64, the linker does run time linking by default, so we don't
11368         # have to do anything special.
11369         aix_use_runtimelinking=no
11370         exp_sym_flag='-Bexport'
11371         no_entry_flag=""
11372       else
11373         # If we're using GNU nm, then we don't want the "-C" option.
11374         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11375         # Also, AIX nm treats weak defined symbols like other global
11376         # defined symbols, whereas GNU nm marks them as "W".
11377         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11378           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'
11379         else
11380           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'
11381         fi
11382         aix_use_runtimelinking=no
11383
11384         # Test if we are trying to use run time linking or normal
11385         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11386         # need to do runtime linking.
11387         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11388           for ld_flag in $LDFLAGS; do
11389           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11390             aix_use_runtimelinking=yes
11391             break
11392           fi
11393           done
11394           ;;
11395         esac
11396
11397         exp_sym_flag='-bexport'
11398         no_entry_flag='-bnoentry'
11399       fi
11400
11401       # When large executables or shared objects are built, AIX ld can
11402       # have problems creating the table of contents.  If linking a library
11403       # or program results in "error TOC overflow" add -mminimal-toc to
11404       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11405       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11406
11407       archive_cmds=''
11408       hardcode_direct=yes
11409       hardcode_direct_absolute=yes
11410       hardcode_libdir_separator=':'
11411       link_all_deplibs=yes
11412       file_list_spec='${wl}-f,'
11413
11414       if test "$GCC" = yes; then
11415         case $host_os in aix4.[012]|aix4.[012].*)
11416         # We only want to do this on AIX 4.2 and lower, the check
11417         # below for broken collect2 doesn't work under 4.3+
11418           collect2name=`${CC} -print-prog-name=collect2`
11419           if test -f "$collect2name" &&
11420            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11421           then
11422           # We have reworked collect2
11423           :
11424           else
11425           # We have old collect2
11426           hardcode_direct=unsupported
11427           # It fails to find uninstalled libraries when the uninstalled
11428           # path is not listed in the libpath.  Setting hardcode_minus_L
11429           # to unsupported forces relinking
11430           hardcode_minus_L=yes
11431           hardcode_libdir_flag_spec='-L$libdir'
11432           hardcode_libdir_separator=
11433           fi
11434           ;;
11435         esac
11436         shared_flag='-shared'
11437         if test "$aix_use_runtimelinking" = yes; then
11438           shared_flag="$shared_flag "'${wl}-G'
11439         fi
11440       else
11441         # not using gcc
11442         if test "$host_cpu" = ia64; then
11443         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11444         # chokes on -Wl,-G. The following line is correct:
11445           shared_flag='-G'
11446         else
11447           if test "$aix_use_runtimelinking" = yes; then
11448             shared_flag='${wl}-G'
11449           else
11450             shared_flag='${wl}-bM:SRE'
11451           fi
11452         fi
11453       fi
11454
11455       export_dynamic_flag_spec='${wl}-bexpall'
11456       # It seems that -bexpall does not export symbols beginning with
11457       # underscore (_), so it is better to generate a list of symbols to export.
11458       always_export_symbols=yes
11459       if test "$aix_use_runtimelinking" = yes; then
11460         # Warning - without using the other runtime loading flags (-brtl),
11461         # -berok will link without error, but may produce a broken library.
11462         allow_undefined_flag='-berok'
11463         # Determine the default libpath from the value encoded in an
11464         # empty executable.
11465         if test "${lt_cv_aix_libpath+set}" = set; then
11466   aix_libpath=$lt_cv_aix_libpath
11467 else
11468   if ${lt_cv_aix_libpath_+:} false; then :
11469   $as_echo_n "(cached) " >&6
11470 else
11471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h.  */
11473
11474 int
11475 main ()
11476 {
11477
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483
11484   lt_aix_libpath_sed='
11485       /Import File Strings/,/^$/ {
11486           /^0/ {
11487               s/^0  *\([^ ]*\) *$/\1/
11488               p
11489           }
11490       }'
11491   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11492   # Check for a 64-bit object if we didn't find anything.
11493   if test -z "$lt_cv_aix_libpath_"; then
11494     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11495   fi
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext \
11498     conftest$ac_exeext conftest.$ac_ext
11499   if test -z "$lt_cv_aix_libpath_"; then
11500     lt_cv_aix_libpath_="/usr/lib:/lib"
11501   fi
11502
11503 fi
11504
11505   aix_libpath=$lt_cv_aix_libpath_
11506 fi
11507
11508         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11509         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"
11510       else
11511         if test "$host_cpu" = ia64; then
11512           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11513           allow_undefined_flag="-z nodefs"
11514           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"
11515         else
11516          # Determine the default libpath from the value encoded in an
11517          # empty executable.
11518          if test "${lt_cv_aix_libpath+set}" = set; then
11519   aix_libpath=$lt_cv_aix_libpath
11520 else
11521   if ${lt_cv_aix_libpath_+:} false; then :
11522   $as_echo_n "(cached) " >&6
11523 else
11524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h.  */
11526
11527 int
11528 main ()
11529 {
11530
11531   ;
11532   return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536
11537   lt_aix_libpath_sed='
11538       /Import File Strings/,/^$/ {
11539           /^0/ {
11540               s/^0  *\([^ ]*\) *$/\1/
11541               p
11542           }
11543       }'
11544   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11545   # Check for a 64-bit object if we didn't find anything.
11546   if test -z "$lt_cv_aix_libpath_"; then
11547     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11548   fi
11549 fi
11550 rm -f core conftest.err conftest.$ac_objext \
11551     conftest$ac_exeext conftest.$ac_ext
11552   if test -z "$lt_cv_aix_libpath_"; then
11553     lt_cv_aix_libpath_="/usr/lib:/lib"
11554   fi
11555
11556 fi
11557
11558   aix_libpath=$lt_cv_aix_libpath_
11559 fi
11560
11561          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11562           # Warning - without using the other run time loading flags,
11563           # -berok will link without error, but may produce a broken library.
11564           no_undefined_flag=' ${wl}-bernotok'
11565           allow_undefined_flag=' ${wl}-berok'
11566           if test "$with_gnu_ld" = yes; then
11567             # We only use this code for GNU lds that support --whole-archive.
11568             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11569           else
11570             # Exported symbols can be pulled into shared objects from archives
11571             whole_archive_flag_spec='$convenience'
11572           fi
11573           archive_cmds_need_lc=yes
11574           # This is similar to how AIX traditionally builds its shared libraries.
11575           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'
11576         fi
11577       fi
11578       ;;
11579
11580     amigaos*)
11581       case $host_cpu in
11582       powerpc)
11583             # see comment about AmigaOS4 .so support
11584             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585             archive_expsym_cmds=''
11586         ;;
11587       m68k)
11588             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)'
11589             hardcode_libdir_flag_spec='-L$libdir'
11590             hardcode_minus_L=yes
11591         ;;
11592       esac
11593       ;;
11594
11595     bsdi[45]*)
11596       export_dynamic_flag_spec=-rdynamic
11597       ;;
11598
11599     cygwin* | mingw* | pw32* | cegcc*)
11600       # When not using gcc, we currently assume that we are using
11601       # Microsoft Visual C++.
11602       # hardcode_libdir_flag_spec is actually meaningless, as there is
11603       # no search path for DLLs.
11604       case $cc_basename in
11605       cl*)
11606         # Native MSVC
11607         hardcode_libdir_flag_spec=' '
11608         allow_undefined_flag=unsupported
11609         always_export_symbols=yes
11610         file_list_spec='@'
11611         # Tell ltmain to make .lib files, not .a files.
11612         libext=lib
11613         # Tell ltmain to make .dll files, not .so files.
11614         shrext_cmds=".dll"
11615         # FIXME: Setting linknames here is a bad hack.
11616         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11617         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11618             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11619           else
11620             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11621           fi~
11622           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11623           linknames='
11624         # The linker will not automatically build a static lib if we build a DLL.
11625         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11626         enable_shared_with_static_runtimes=yes
11627         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11628         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11629         # Don't use ranlib
11630         old_postinstall_cmds='chmod 644 $oldlib'
11631         postlink_cmds='lt_outputfile="@OUTPUT@"~
11632           lt_tool_outputfile="@TOOL_OUTPUT@"~
11633           case $lt_outputfile in
11634             *.exe|*.EXE) ;;
11635             *)
11636               lt_outputfile="$lt_outputfile.exe"
11637               lt_tool_outputfile="$lt_tool_outputfile.exe"
11638               ;;
11639           esac~
11640           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11641             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11642             $RM "$lt_outputfile.manifest";
11643           fi'
11644         ;;
11645       *)
11646         # Assume MSVC wrapper
11647         hardcode_libdir_flag_spec=' '
11648         allow_undefined_flag=unsupported
11649         # Tell ltmain to make .lib files, not .a files.
11650         libext=lib
11651         # Tell ltmain to make .dll files, not .so files.
11652         shrext_cmds=".dll"
11653         # FIXME: Setting linknames here is a bad hack.
11654         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11655         # The linker will automatically build a .lib file if we build a DLL.
11656         old_archive_from_new_cmds='true'
11657         # FIXME: Should let the user specify the lib program.
11658         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11659         enable_shared_with_static_runtimes=yes
11660         ;;
11661       esac
11662       ;;
11663
11664     darwin* | rhapsody*)
11665
11666
11667   archive_cmds_need_lc=no
11668   hardcode_direct=no
11669   hardcode_automatic=yes
11670   hardcode_shlibpath_var=unsupported
11671   if test "$lt_cv_ld_force_load" = "yes"; then
11672     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\"`'
11673
11674   else
11675     whole_archive_flag_spec=''
11676   fi
11677   link_all_deplibs=yes
11678   allow_undefined_flag="$_lt_dar_allow_undefined"
11679   case $cc_basename in
11680      ifort*) _lt_dar_can_shared=yes ;;
11681      *) _lt_dar_can_shared=$GCC ;;
11682   esac
11683   if test "$_lt_dar_can_shared" = "yes"; then
11684     output_verbose_link_cmd=func_echo_all
11685     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11686     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11687     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}"
11688     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}"
11689
11690   else
11691   ld_shlibs=no
11692   fi
11693
11694       ;;
11695
11696     dgux*)
11697       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11698       hardcode_libdir_flag_spec='-L$libdir'
11699       hardcode_shlibpath_var=no
11700       ;;
11701
11702     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11703     # support.  Future versions do this automatically, but an explicit c++rt0.o
11704     # does not break anything, and helps significantly (at the cost of a little
11705     # extra space).
11706     freebsd2.2*)
11707       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11708       hardcode_libdir_flag_spec='-R$libdir'
11709       hardcode_direct=yes
11710       hardcode_shlibpath_var=no
11711       ;;
11712
11713     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11714     freebsd2.*)
11715       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11716       hardcode_direct=yes
11717       hardcode_minus_L=yes
11718       hardcode_shlibpath_var=no
11719       ;;
11720
11721     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11722     freebsd* | dragonfly*)
11723       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11724       hardcode_libdir_flag_spec='-R$libdir'
11725       hardcode_direct=yes
11726       hardcode_shlibpath_var=no
11727       ;;
11728
11729     hpux9*)
11730       if test "$GCC" = yes; then
11731         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'
11732       else
11733         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'
11734       fi
11735       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11736       hardcode_libdir_separator=:
11737       hardcode_direct=yes
11738
11739       # hardcode_minus_L: Not really in the search PATH,
11740       # but as the default location of the library.
11741       hardcode_minus_L=yes
11742       export_dynamic_flag_spec='${wl}-E'
11743       ;;
11744
11745     hpux10*)
11746       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11747         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11748       else
11749         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11750       fi
11751       if test "$with_gnu_ld" = no; then
11752         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11753         hardcode_libdir_separator=:
11754         hardcode_direct=yes
11755         hardcode_direct_absolute=yes
11756         export_dynamic_flag_spec='${wl}-E'
11757         # hardcode_minus_L: Not really in the search PATH,
11758         # but as the default location of the library.
11759         hardcode_minus_L=yes
11760       fi
11761       ;;
11762
11763     hpux11*)
11764       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11765         case $host_cpu in
11766         hppa*64*)
11767           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11768           ;;
11769         ia64*)
11770           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11771           ;;
11772         *)
11773           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11774           ;;
11775         esac
11776       else
11777         case $host_cpu in
11778         hppa*64*)
11779           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11780           ;;
11781         ia64*)
11782           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11783           ;;
11784         *)
11785
11786           # Older versions of the 11.00 compiler do not understand -b yet
11787           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11788           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11789 $as_echo_n "checking if $CC understands -b... " >&6; }
11790 if ${lt_cv_prog_compiler__b+:} false; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793   lt_cv_prog_compiler__b=no
11794    save_LDFLAGS="$LDFLAGS"
11795    LDFLAGS="$LDFLAGS -b"
11796    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11797    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11798      # The linker can only warn and ignore the option if not recognized
11799      # So say no if there are warnings
11800      if test -s conftest.err; then
11801        # Append any errors to the config.log.
11802        cat conftest.err 1>&5
11803        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11804        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11805        if diff conftest.exp conftest.er2 >/dev/null; then
11806          lt_cv_prog_compiler__b=yes
11807        fi
11808      else
11809        lt_cv_prog_compiler__b=yes
11810      fi
11811    fi
11812    $RM -r conftest*
11813    LDFLAGS="$save_LDFLAGS"
11814
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11817 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11818
11819 if test x"$lt_cv_prog_compiler__b" = xyes; then
11820     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11821 else
11822     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11823 fi
11824
11825           ;;
11826         esac
11827       fi
11828       if test "$with_gnu_ld" = no; then
11829         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11830         hardcode_libdir_separator=:
11831
11832         case $host_cpu in
11833         hppa*64*|ia64*)
11834           hardcode_direct=no
11835           hardcode_shlibpath_var=no
11836           ;;
11837         *)
11838           hardcode_direct=yes
11839           hardcode_direct_absolute=yes
11840           export_dynamic_flag_spec='${wl}-E'
11841
11842           # hardcode_minus_L: Not really in the search PATH,
11843           # but as the default location of the library.
11844           hardcode_minus_L=yes
11845           ;;
11846         esac
11847       fi
11848       ;;
11849
11850     irix5* | irix6* | nonstopux*)
11851       if test "$GCC" = yes; then
11852         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'
11853         # Try to use the -exported_symbol ld option, if it does not
11854         # work, assume that -exports_file does not work either and
11855         # implicitly export all symbols.
11856         # This should be the same for all languages, so no per-tag cache variable.
11857         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11858 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11859 if ${lt_cv_irix_exported_symbol+:} false; then :
11860   $as_echo_n "(cached) " >&6
11861 else
11862   save_LDFLAGS="$LDFLAGS"
11863            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11864            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h.  */
11866 int foo (void) { return 0; }
11867 _ACEOF
11868 if ac_fn_c_try_link "$LINENO"; then :
11869   lt_cv_irix_exported_symbol=yes
11870 else
11871   lt_cv_irix_exported_symbol=no
11872 fi
11873 rm -f core conftest.err conftest.$ac_objext \
11874     conftest$ac_exeext conftest.$ac_ext
11875            LDFLAGS="$save_LDFLAGS"
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11878 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11879         if test "$lt_cv_irix_exported_symbol" = yes; then
11880           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'
11881         fi
11882       else
11883         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'
11884         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'
11885       fi
11886       archive_cmds_need_lc='no'
11887       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11888       hardcode_libdir_separator=:
11889       inherit_rpath=yes
11890       link_all_deplibs=yes
11891       ;;
11892
11893     netbsd*)
11894       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11895         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11896       else
11897         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11898       fi
11899       hardcode_libdir_flag_spec='-R$libdir'
11900       hardcode_direct=yes
11901       hardcode_shlibpath_var=no
11902       ;;
11903
11904     newsos6)
11905       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11906       hardcode_direct=yes
11907       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11908       hardcode_libdir_separator=:
11909       hardcode_shlibpath_var=no
11910       ;;
11911
11912     *nto* | *qnx*)
11913       ;;
11914
11915     openbsd*)
11916       if test -f /usr/libexec/ld.so; then
11917         hardcode_direct=yes
11918         hardcode_shlibpath_var=no
11919         hardcode_direct_absolute=yes
11920         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11921           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11922           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11923           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11924           export_dynamic_flag_spec='${wl}-E'
11925         else
11926           case $host_os in
11927            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11928              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11929              hardcode_libdir_flag_spec='-R$libdir'
11930              ;;
11931            *)
11932              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11933              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11934              ;;
11935           esac
11936         fi
11937       else
11938         ld_shlibs=no
11939       fi
11940       ;;
11941
11942     os2*)
11943       hardcode_libdir_flag_spec='-L$libdir'
11944       hardcode_minus_L=yes
11945       allow_undefined_flag=unsupported
11946       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'
11947       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11948       ;;
11949
11950     osf3*)
11951       if test "$GCC" = yes; then
11952         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11953         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'
11954       else
11955         allow_undefined_flag=' -expect_unresolved \*'
11956         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'
11957       fi
11958       archive_cmds_need_lc='no'
11959       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11960       hardcode_libdir_separator=:
11961       ;;
11962
11963     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11964       if test "$GCC" = yes; then
11965         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11966         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'
11967         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11968       else
11969         allow_undefined_flag=' -expect_unresolved \*'
11970         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'
11971         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~
11972         $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'
11973
11974         # Both c and cxx compiler support -rpath directly
11975         hardcode_libdir_flag_spec='-rpath $libdir'
11976       fi
11977       archive_cmds_need_lc='no'
11978       hardcode_libdir_separator=:
11979       ;;
11980
11981     solaris*)
11982       no_undefined_flag=' -z defs'
11983       if test "$GCC" = yes; then
11984         wlarc='${wl}'
11985         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11986         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11987           $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'
11988       else
11989         case `$CC -V 2>&1` in
11990         *"Compilers 5.0"*)
11991           wlarc=''
11992           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11993           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11994           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11995           ;;
11996         *)
11997           wlarc='${wl}'
11998           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11999           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12000           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12001           ;;
12002         esac
12003       fi
12004       hardcode_libdir_flag_spec='-R$libdir'
12005       hardcode_shlibpath_var=no
12006       case $host_os in
12007       solaris2.[0-5] | solaris2.[0-5].*) ;;
12008       *)
12009         # The compiler driver will combine and reorder linker options,
12010         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12011         # but is careful enough not to reorder.
12012         # Supported since Solaris 2.6 (maybe 2.5.1?)
12013         if test "$GCC" = yes; then
12014           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12015         else
12016           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12017         fi
12018         ;;
12019       esac
12020       link_all_deplibs=yes
12021       ;;
12022
12023     sunos4*)
12024       if test "x$host_vendor" = xsequent; then
12025         # Use $CC to link under sequent, because it throws in some extra .o
12026         # files that make .init and .fini sections work.
12027         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12028       else
12029         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12030       fi
12031       hardcode_libdir_flag_spec='-L$libdir'
12032       hardcode_direct=yes
12033       hardcode_minus_L=yes
12034       hardcode_shlibpath_var=no
12035       ;;
12036
12037     sysv4)
12038       case $host_vendor in
12039         sni)
12040           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12041           hardcode_direct=yes # is this really true???
12042         ;;
12043         siemens)
12044           ## LD is ld it makes a PLAMLIB
12045           ## CC just makes a GrossModule.
12046           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12047           reload_cmds='$CC -r -o $output$reload_objs'
12048           hardcode_direct=no
12049         ;;
12050         motorola)
12051           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12052           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12053         ;;
12054       esac
12055       runpath_var='LD_RUN_PATH'
12056       hardcode_shlibpath_var=no
12057       ;;
12058
12059     sysv4.3*)
12060       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12061       hardcode_shlibpath_var=no
12062       export_dynamic_flag_spec='-Bexport'
12063       ;;
12064
12065     sysv4*MP*)
12066       if test -d /usr/nec; then
12067         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12068         hardcode_shlibpath_var=no
12069         runpath_var=LD_RUN_PATH
12070         hardcode_runpath_var=yes
12071         ld_shlibs=yes
12072       fi
12073       ;;
12074
12075     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12076       no_undefined_flag='${wl}-z,text'
12077       archive_cmds_need_lc=no
12078       hardcode_shlibpath_var=no
12079       runpath_var='LD_RUN_PATH'
12080
12081       if test "$GCC" = yes; then
12082         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12083         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12084       else
12085         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12086         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12087       fi
12088       ;;
12089
12090     sysv5* | sco3.2v5* | sco5v6*)
12091       # Note: We can NOT use -z defs as we might desire, because we do not
12092       # link with -lc, and that would cause any symbols used from libc to
12093       # always be unresolved, which means just about no library would
12094       # ever link correctly.  If we're not using GNU ld we use -z text
12095       # though, which does catch some bad symbols but isn't as heavy-handed
12096       # as -z defs.
12097       no_undefined_flag='${wl}-z,text'
12098       allow_undefined_flag='${wl}-z,nodefs'
12099       archive_cmds_need_lc=no
12100       hardcode_shlibpath_var=no
12101       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12102       hardcode_libdir_separator=':'
12103       link_all_deplibs=yes
12104       export_dynamic_flag_spec='${wl}-Bexport'
12105       runpath_var='LD_RUN_PATH'
12106
12107       if test "$GCC" = yes; then
12108         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12109         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12110       else
12111         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12112         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12113       fi
12114       ;;
12115
12116     uts4*)
12117       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12118       hardcode_libdir_flag_spec='-L$libdir'
12119       hardcode_shlibpath_var=no
12120       ;;
12121
12122     *)
12123       ld_shlibs=no
12124       ;;
12125     esac
12126
12127     if test x$host_vendor = xsni; then
12128       case $host in
12129       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12130         export_dynamic_flag_spec='${wl}-Blargedynsym'
12131         ;;
12132       esac
12133     fi
12134   fi
12135
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12137 $as_echo "$ld_shlibs" >&6; }
12138 test "$ld_shlibs" = no && can_build_shared=no
12139
12140 with_gnu_ld=$with_gnu_ld
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156 #
12157 # Do we need to explicitly link libc?
12158 #
12159 case "x$archive_cmds_need_lc" in
12160 x|xyes)
12161   # Assume -lc should be added
12162   archive_cmds_need_lc=yes
12163
12164   if test "$enable_shared" = yes && test "$GCC" = yes; then
12165     case $archive_cmds in
12166     *'~'*)
12167       # FIXME: we may have to deal with multi-command sequences.
12168       ;;
12169     '$CC '*)
12170       # Test whether the compiler implicitly links with -lc since on some
12171       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12172       # to ld, don't add -lc before -lgcc.
12173       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12174 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12175 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12176   $as_echo_n "(cached) " >&6
12177 else
12178   $RM conftest*
12179         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12180
12181         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12182   (eval $ac_compile) 2>&5
12183   ac_status=$?
12184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12185   test $ac_status = 0; } 2>conftest.err; then
12186           soname=conftest
12187           lib=conftest
12188           libobjs=conftest.$ac_objext
12189           deplibs=
12190           wl=$lt_prog_compiler_wl
12191           pic_flag=$lt_prog_compiler_pic
12192           compiler_flags=-v
12193           linker_flags=-v
12194           verstring=
12195           output_objdir=.
12196           libname=conftest
12197           lt_save_allow_undefined_flag=$allow_undefined_flag
12198           allow_undefined_flag=
12199           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12200   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12201   ac_status=$?
12202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203   test $ac_status = 0; }
12204           then
12205             lt_cv_archive_cmds_need_lc=no
12206           else
12207             lt_cv_archive_cmds_need_lc=yes
12208           fi
12209           allow_undefined_flag=$lt_save_allow_undefined_flag
12210         else
12211           cat conftest.err 1>&5
12212         fi
12213         $RM conftest*
12214
12215 fi
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12217 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12218       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12219       ;;
12220     esac
12221   fi
12222   ;;
12223 esac
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12377 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12378
12379 if test "$GCC" = yes; then
12380   case $host_os in
12381     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12382     *) lt_awk_arg="/^libraries:/" ;;
12383   esac
12384   case $host_os in
12385     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12386     *) lt_sed_strip_eq="s,=/,/,g" ;;
12387   esac
12388   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12389   case $lt_search_path_spec in
12390   *\;*)
12391     # if the path contains ";" then we assume it to be the separator
12392     # otherwise default to the standard path separator (i.e. ":") - it is
12393     # assumed that no part of a normal pathname contains ";" but that should
12394     # okay in the real world where ";" in dirpaths is itself problematic.
12395     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12396     ;;
12397   *)
12398     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12399     ;;
12400   esac
12401   # Ok, now we have the path, separated by spaces, we can step through it
12402   # and add multilib dir if necessary.
12403   lt_tmp_lt_search_path_spec=
12404   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12405   for lt_sys_path in $lt_search_path_spec; do
12406     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12407       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12408     else
12409       test -d "$lt_sys_path" && \
12410         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12411     fi
12412   done
12413   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12414 BEGIN {RS=" "; FS="/|\n";} {
12415   lt_foo="";
12416   lt_count=0;
12417   for (lt_i = NF; lt_i > 0; lt_i--) {
12418     if ($lt_i != "" && $lt_i != ".") {
12419       if ($lt_i == "..") {
12420         lt_count++;
12421       } else {
12422         if (lt_count == 0) {
12423           lt_foo="/" $lt_i lt_foo;
12424         } else {
12425           lt_count--;
12426         }
12427       }
12428     }
12429   }
12430   if (lt_foo != "") { lt_freq[lt_foo]++; }
12431   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12432 }'`
12433   # AWK program above erroneously prepends '/' to C:/dos/paths
12434   # for these hosts.
12435   case $host_os in
12436     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12437       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12438   esac
12439   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12440 else
12441   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12442 fi
12443 library_names_spec=
12444 libname_spec='lib$name'
12445 soname_spec=
12446 shrext_cmds=".so"
12447 postinstall_cmds=
12448 postuninstall_cmds=
12449 finish_cmds=
12450 finish_eval=
12451 shlibpath_var=
12452 shlibpath_overrides_runpath=unknown
12453 version_type=none
12454 dynamic_linker="$host_os ld.so"
12455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12456 need_lib_prefix=unknown
12457 hardcode_into_libs=no
12458
12459 # when you set need_version to no, make sure it does not cause -set_version
12460 # flags to be left without arguments
12461 need_version=unknown
12462
12463 case $host_os in
12464 aix3*)
12465   version_type=linux # correct to gnu/linux during the next big refactor
12466   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12467   shlibpath_var=LIBPATH
12468
12469   # AIX 3 has no versioning support, so we append a major version to the name.
12470   soname_spec='${libname}${release}${shared_ext}$major'
12471   ;;
12472
12473 aix[4-9]*)
12474   version_type=linux # correct to gnu/linux during the next big refactor
12475   need_lib_prefix=no
12476   need_version=no
12477   hardcode_into_libs=yes
12478   if test "$host_cpu" = ia64; then
12479     # AIX 5 supports IA64
12480     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12481     shlibpath_var=LD_LIBRARY_PATH
12482   else
12483     # With GCC up to 2.95.x, collect2 would create an import file
12484     # for dependence libraries.  The import file would start with
12485     # the line `#! .'.  This would cause the generated library to
12486     # depend on `.', always an invalid library.  This was fixed in
12487     # development snapshots of GCC prior to 3.0.
12488     case $host_os in
12489       aix4 | aix4.[01] | aix4.[01].*)
12490       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12491            echo ' yes '
12492            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12493         :
12494       else
12495         can_build_shared=no
12496       fi
12497       ;;
12498     esac
12499     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12500     # soname into executable. Probably we can add versioning support to
12501     # collect2, so additional links can be useful in future.
12502     if test "$aix_use_runtimelinking" = yes; then
12503       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12504       # instead of lib<name>.a to let people know that these are not
12505       # typical AIX shared libraries.
12506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507     else
12508       # We preserve .a as extension for shared libraries through AIX4.2
12509       # and later when we are not doing run time linking.
12510       library_names_spec='${libname}${release}.a $libname.a'
12511       soname_spec='${libname}${release}${shared_ext}$major'
12512     fi
12513     shlibpath_var=LIBPATH
12514   fi
12515   ;;
12516
12517 amigaos*)
12518   case $host_cpu in
12519   powerpc)
12520     # Since July 2007 AmigaOS4 officially supports .so libraries.
12521     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12523     ;;
12524   m68k)
12525     library_names_spec='$libname.ixlibrary $libname.a'
12526     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12527     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'
12528     ;;
12529   esac
12530   ;;
12531
12532 beos*)
12533   library_names_spec='${libname}${shared_ext}'
12534   dynamic_linker="$host_os ld.so"
12535   shlibpath_var=LIBRARY_PATH
12536   ;;
12537
12538 bsdi[45]*)
12539   version_type=linux # correct to gnu/linux during the next big refactor
12540   need_version=no
12541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12542   soname_spec='${libname}${release}${shared_ext}$major'
12543   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12544   shlibpath_var=LD_LIBRARY_PATH
12545   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12546   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12547   # the default ld.so.conf also contains /usr/contrib/lib and
12548   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12549   # libtool to hard-code these into programs
12550   ;;
12551
12552 cygwin* | mingw* | pw32* | cegcc*)
12553   version_type=windows
12554   shrext_cmds=".dll"
12555   need_version=no
12556   need_lib_prefix=no
12557
12558   case $GCC,$cc_basename in
12559   yes,*)
12560     # gcc
12561     library_names_spec='$libname.dll.a'
12562     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12563     postinstall_cmds='base_file=`basename \${file}`~
12564       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12565       dldir=$destdir/`dirname \$dlpath`~
12566       test -d \$dldir || mkdir -p \$dldir~
12567       $install_prog $dir/$dlname \$dldir/$dlname~
12568       chmod a+x \$dldir/$dlname~
12569       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12570         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12571       fi'
12572     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12573       dlpath=$dir/\$dldll~
12574        $RM \$dlpath'
12575     shlibpath_overrides_runpath=yes
12576
12577     case $host_os in
12578     cygwin*)
12579       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12580       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12581
12582       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12583       ;;
12584     mingw* | cegcc*)
12585       # MinGW DLLs use traditional 'lib' prefix
12586       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12587       ;;
12588     pw32*)
12589       # pw32 DLLs use 'pw' prefix rather than 'lib'
12590       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12591       ;;
12592     esac
12593     dynamic_linker='Win32 ld.exe'
12594     ;;
12595
12596   *,cl*)
12597     # Native MSVC
12598     libname_spec='$name'
12599     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12600     library_names_spec='${libname}.dll.lib'
12601
12602     case $build_os in
12603     mingw*)
12604       sys_lib_search_path_spec=
12605       lt_save_ifs=$IFS
12606       IFS=';'
12607       for lt_path in $LIB
12608       do
12609         IFS=$lt_save_ifs
12610         # Let DOS variable expansion print the short 8.3 style file name.
12611         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12612         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12613       done
12614       IFS=$lt_save_ifs
12615       # Convert to MSYS style.
12616       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12617       ;;
12618     cygwin*)
12619       # Convert to unix form, then to dos form, then back to unix form
12620       # but this time dos style (no spaces!) so that the unix form looks
12621       # like /cygdrive/c/PROGRA~1:/cygdr...
12622       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12623       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12624       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12625       ;;
12626     *)
12627       sys_lib_search_path_spec="$LIB"
12628       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12629         # It is most probably a Windows format PATH.
12630         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12631       else
12632         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12633       fi
12634       # FIXME: find the short name or the path components, as spaces are
12635       # common. (e.g. "Program Files" -> "PROGRA~1")
12636       ;;
12637     esac
12638
12639     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12640     postinstall_cmds='base_file=`basename \${file}`~
12641       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12642       dldir=$destdir/`dirname \$dlpath`~
12643       test -d \$dldir || mkdir -p \$dldir~
12644       $install_prog $dir/$dlname \$dldir/$dlname'
12645     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12646       dlpath=$dir/\$dldll~
12647        $RM \$dlpath'
12648     shlibpath_overrides_runpath=yes
12649     dynamic_linker='Win32 link.exe'
12650     ;;
12651
12652   *)
12653     # Assume MSVC wrapper
12654     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12655     dynamic_linker='Win32 ld.exe'
12656     ;;
12657   esac
12658   # FIXME: first we should search . and the directory the executable is in
12659   shlibpath_var=PATH
12660   ;;
12661
12662 darwin* | rhapsody*)
12663   dynamic_linker="$host_os dyld"
12664   version_type=darwin
12665   need_lib_prefix=no
12666   need_version=no
12667   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12668   soname_spec='${libname}${release}${major}$shared_ext'
12669   shlibpath_overrides_runpath=yes
12670   shlibpath_var=DYLD_LIBRARY_PATH
12671   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12672
12673   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12674   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12675   ;;
12676
12677 dgux*)
12678   version_type=linux # correct to gnu/linux during the next big refactor
12679   need_lib_prefix=no
12680   need_version=no
12681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12682   soname_spec='${libname}${release}${shared_ext}$major'
12683   shlibpath_var=LD_LIBRARY_PATH
12684   ;;
12685
12686 freebsd* | dragonfly*)
12687   # DragonFly does not have aout.  When/if they implement a new
12688   # versioning mechanism, adjust this.
12689   if test -x /usr/bin/objformat; then
12690     objformat=`/usr/bin/objformat`
12691   else
12692     case $host_os in
12693     freebsd[23].*) objformat=aout ;;
12694     *) objformat=elf ;;
12695     esac
12696   fi
12697   version_type=freebsd-$objformat
12698   case $version_type in
12699     freebsd-elf*)
12700       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12701       need_version=no
12702       need_lib_prefix=no
12703       ;;
12704     freebsd-*)
12705       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12706       need_version=yes
12707       ;;
12708   esac
12709   shlibpath_var=LD_LIBRARY_PATH
12710   case $host_os in
12711   freebsd2.*)
12712     shlibpath_overrides_runpath=yes
12713     ;;
12714   freebsd3.[01]* | freebsdelf3.[01]*)
12715     shlibpath_overrides_runpath=yes
12716     hardcode_into_libs=yes
12717     ;;
12718   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12719   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12720     shlibpath_overrides_runpath=no
12721     hardcode_into_libs=yes
12722     ;;
12723   *) # from 4.6 on, and DragonFly
12724     shlibpath_overrides_runpath=yes
12725     hardcode_into_libs=yes
12726     ;;
12727   esac
12728   ;;
12729
12730 gnu*)
12731   version_type=linux # correct to gnu/linux during the next big refactor
12732   need_lib_prefix=no
12733   need_version=no
12734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12735   soname_spec='${libname}${release}${shared_ext}$major'
12736   shlibpath_var=LD_LIBRARY_PATH
12737   shlibpath_overrides_runpath=no
12738   hardcode_into_libs=yes
12739   ;;
12740
12741 haiku*)
12742   version_type=linux # correct to gnu/linux during the next big refactor
12743   need_lib_prefix=no
12744   need_version=no
12745   dynamic_linker="$host_os runtime_loader"
12746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12747   soname_spec='${libname}${release}${shared_ext}$major'
12748   shlibpath_var=LIBRARY_PATH
12749   shlibpath_overrides_runpath=yes
12750   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12751   hardcode_into_libs=yes
12752   ;;
12753
12754 hpux9* | hpux10* | hpux11*)
12755   # Give a soname corresponding to the major version so that dld.sl refuses to
12756   # link against other versions.
12757   version_type=sunos
12758   need_lib_prefix=no
12759   need_version=no
12760   case $host_cpu in
12761   ia64*)
12762     shrext_cmds='.so'
12763     hardcode_into_libs=yes
12764     dynamic_linker="$host_os dld.so"
12765     shlibpath_var=LD_LIBRARY_PATH
12766     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12768     soname_spec='${libname}${release}${shared_ext}$major'
12769     if test "X$HPUX_IA64_MODE" = X32; then
12770       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12771     else
12772       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12773     fi
12774     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12775     ;;
12776   hppa*64*)
12777     shrext_cmds='.sl'
12778     hardcode_into_libs=yes
12779     dynamic_linker="$host_os dld.sl"
12780     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12781     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12783     soname_spec='${libname}${release}${shared_ext}$major'
12784     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12785     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12786     ;;
12787   *)
12788     shrext_cmds='.sl'
12789     dynamic_linker="$host_os dld.sl"
12790     shlibpath_var=SHLIB_PATH
12791     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793     soname_spec='${libname}${release}${shared_ext}$major'
12794     ;;
12795   esac
12796   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12797   postinstall_cmds='chmod 555 $lib'
12798   # or fails outright, so override atomically:
12799   install_override_mode=555
12800   ;;
12801
12802 interix[3-9]*)
12803   version_type=linux # correct to gnu/linux during the next big refactor
12804   need_lib_prefix=no
12805   need_version=no
12806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12807   soname_spec='${libname}${release}${shared_ext}$major'
12808   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12809   shlibpath_var=LD_LIBRARY_PATH
12810   shlibpath_overrides_runpath=no
12811   hardcode_into_libs=yes
12812   ;;
12813
12814 irix5* | irix6* | nonstopux*)
12815   case $host_os in
12816     nonstopux*) version_type=nonstopux ;;
12817     *)
12818         if test "$lt_cv_prog_gnu_ld" = yes; then
12819                 version_type=linux # correct to gnu/linux during the next big refactor
12820         else
12821                 version_type=irix
12822         fi ;;
12823   esac
12824   need_lib_prefix=no
12825   need_version=no
12826   soname_spec='${libname}${release}${shared_ext}$major'
12827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12828   case $host_os in
12829   irix5* | nonstopux*)
12830     libsuff= shlibsuff=
12831     ;;
12832   *)
12833     case $LD in # libtool.m4 will add one of these switches to LD
12834     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12835       libsuff= shlibsuff= libmagic=32-bit;;
12836     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12837       libsuff=32 shlibsuff=N32 libmagic=N32;;
12838     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12839       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12840     *) libsuff= shlibsuff= libmagic=never-match;;
12841     esac
12842     ;;
12843   esac
12844   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12845   shlibpath_overrides_runpath=no
12846   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12847   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12848   hardcode_into_libs=yes
12849   ;;
12850
12851 # No shared lib support for Linux oldld, aout, or coff.
12852 linux*oldld* | linux*aout* | linux*coff*)
12853   dynamic_linker=no
12854   ;;
12855
12856 # This must be glibc/ELF.
12857 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12858   version_type=linux # correct to gnu/linux during the next big refactor
12859   need_lib_prefix=no
12860   need_version=no
12861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12862   soname_spec='${libname}${release}${shared_ext}$major'
12863   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12864   shlibpath_var=LD_LIBRARY_PATH
12865   shlibpath_overrides_runpath=no
12866
12867   # Some binutils ld are patched to set DT_RUNPATH
12868   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12869   $as_echo_n "(cached) " >&6
12870 else
12871   lt_cv_shlibpath_overrides_runpath=no
12872     save_LDFLAGS=$LDFLAGS
12873     save_libdir=$libdir
12874     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12875          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12876     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h.  */
12878
12879 int
12880 main ()
12881 {
12882
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 if ac_fn_c_try_link "$LINENO"; then :
12888   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12889   lt_cv_shlibpath_overrides_runpath=yes
12890 fi
12891 fi
12892 rm -f core conftest.err conftest.$ac_objext \
12893     conftest$ac_exeext conftest.$ac_ext
12894     LDFLAGS=$save_LDFLAGS
12895     libdir=$save_libdir
12896
12897 fi
12898
12899   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12900
12901   # This implies no fast_install, which is unacceptable.
12902   # Some rework will be needed to allow for fast_install
12903   # before this can be enabled.
12904   hardcode_into_libs=yes
12905
12906   # Add ABI-specific directories to the system library path.
12907   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12908
12909   # Append ld.so.conf contents to the search path
12910   if test -f /etc/ld.so.conf; then
12911     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' ' '`
12912     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12913
12914   fi
12915
12916   # We used to test for /lib/ld.so.1 and disable shared libraries on
12917   # powerpc, because MkLinux only supported shared libraries with the
12918   # GNU dynamic linker.  Since this was broken with cross compilers,
12919   # most powerpc-linux boxes support dynamic linking these days and
12920   # people can always --disable-shared, the test was removed, and we
12921   # assume the GNU/Linux dynamic linker is in use.
12922   dynamic_linker='GNU/Linux ld.so'
12923   ;;
12924
12925 netbsd*)
12926   version_type=sunos
12927   need_lib_prefix=no
12928   need_version=no
12929   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12931     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12932     dynamic_linker='NetBSD (a.out) ld.so'
12933   else
12934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12935     soname_spec='${libname}${release}${shared_ext}$major'
12936     dynamic_linker='NetBSD ld.elf_so'
12937   fi
12938   shlibpath_var=LD_LIBRARY_PATH
12939   shlibpath_overrides_runpath=yes
12940   hardcode_into_libs=yes
12941   ;;
12942
12943 newsos6)
12944   version_type=linux # correct to gnu/linux during the next big refactor
12945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946   shlibpath_var=LD_LIBRARY_PATH
12947   shlibpath_overrides_runpath=yes
12948   ;;
12949
12950 *nto* | *qnx*)
12951   version_type=qnx
12952   need_lib_prefix=no
12953   need_version=no
12954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955   soname_spec='${libname}${release}${shared_ext}$major'
12956   shlibpath_var=LD_LIBRARY_PATH
12957   shlibpath_overrides_runpath=no
12958   hardcode_into_libs=yes
12959   dynamic_linker='ldqnx.so'
12960   ;;
12961
12962 openbsd*)
12963   version_type=sunos
12964   sys_lib_dlsearch_path_spec="/usr/lib"
12965   need_lib_prefix=no
12966   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12967   case $host_os in
12968     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12969     *)                          need_version=no  ;;
12970   esac
12971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12972   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12973   shlibpath_var=LD_LIBRARY_PATH
12974   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12975     case $host_os in
12976       openbsd2.[89] | openbsd2.[89].*)
12977         shlibpath_overrides_runpath=no
12978         ;;
12979       *)
12980         shlibpath_overrides_runpath=yes
12981         ;;
12982       esac
12983   else
12984     shlibpath_overrides_runpath=yes
12985   fi
12986   ;;
12987
12988 os2*)
12989   libname_spec='$name'
12990   shrext_cmds=".dll"
12991   need_lib_prefix=no
12992   library_names_spec='$libname${shared_ext} $libname.a'
12993   dynamic_linker='OS/2 ld.exe'
12994   shlibpath_var=LIBPATH
12995   ;;
12996
12997 osf3* | osf4* | osf5*)
12998   version_type=osf
12999   need_lib_prefix=no
13000   need_version=no
13001   soname_spec='${libname}${release}${shared_ext}$major'
13002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13003   shlibpath_var=LD_LIBRARY_PATH
13004   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13005   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13006   ;;
13007
13008 rdos*)
13009   dynamic_linker=no
13010   ;;
13011
13012 solaris*)
13013   version_type=linux # correct to gnu/linux during the next big refactor
13014   need_lib_prefix=no
13015   need_version=no
13016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13017   soname_spec='${libname}${release}${shared_ext}$major'
13018   shlibpath_var=LD_LIBRARY_PATH
13019   shlibpath_overrides_runpath=yes
13020   hardcode_into_libs=yes
13021   # ldd complains unless libraries are executable
13022   postinstall_cmds='chmod +x $lib'
13023   ;;
13024
13025 sunos4*)
13026   version_type=sunos
13027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13028   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13029   shlibpath_var=LD_LIBRARY_PATH
13030   shlibpath_overrides_runpath=yes
13031   if test "$with_gnu_ld" = yes; then
13032     need_lib_prefix=no
13033   fi
13034   need_version=yes
13035   ;;
13036
13037 sysv4 | sysv4.3*)
13038   version_type=linux # correct to gnu/linux during the next big refactor
13039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040   soname_spec='${libname}${release}${shared_ext}$major'
13041   shlibpath_var=LD_LIBRARY_PATH
13042   case $host_vendor in
13043     sni)
13044       shlibpath_overrides_runpath=no
13045       need_lib_prefix=no
13046       runpath_var=LD_RUN_PATH
13047       ;;
13048     siemens)
13049       need_lib_prefix=no
13050       ;;
13051     motorola)
13052       need_lib_prefix=no
13053       need_version=no
13054       shlibpath_overrides_runpath=no
13055       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13056       ;;
13057   esac
13058   ;;
13059
13060 sysv4*MP*)
13061   if test -d /usr/nec ;then
13062     version_type=linux # correct to gnu/linux during the next big refactor
13063     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13064     soname_spec='$libname${shared_ext}.$major'
13065     shlibpath_var=LD_LIBRARY_PATH
13066   fi
13067   ;;
13068
13069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13070   version_type=freebsd-elf
13071   need_lib_prefix=no
13072   need_version=no
13073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13074   soname_spec='${libname}${release}${shared_ext}$major'
13075   shlibpath_var=LD_LIBRARY_PATH
13076   shlibpath_overrides_runpath=yes
13077   hardcode_into_libs=yes
13078   if test "$with_gnu_ld" = yes; then
13079     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13080   else
13081     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13082     case $host_os in
13083       sco3.2v5*)
13084         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13085         ;;
13086     esac
13087   fi
13088   sys_lib_dlsearch_path_spec='/usr/lib'
13089   ;;
13090
13091 tpf*)
13092   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13093   version_type=linux # correct to gnu/linux during the next big refactor
13094   need_lib_prefix=no
13095   need_version=no
13096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097   shlibpath_var=LD_LIBRARY_PATH
13098   shlibpath_overrides_runpath=no
13099   hardcode_into_libs=yes
13100   ;;
13101
13102 uts4*)
13103   version_type=linux # correct to gnu/linux during the next big refactor
13104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105   soname_spec='${libname}${release}${shared_ext}$major'
13106   shlibpath_var=LD_LIBRARY_PATH
13107   ;;
13108
13109 *)
13110   dynamic_linker=no
13111   ;;
13112 esac
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13114 $as_echo "$dynamic_linker" >&6; }
13115 test "$dynamic_linker" = no && can_build_shared=no
13116
13117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13118 if test "$GCC" = yes; then
13119   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13120 fi
13121
13122 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13123   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13124 fi
13125 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13126   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13127 fi
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13221 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13222 hardcode_action=
13223 if test -n "$hardcode_libdir_flag_spec" ||
13224    test -n "$runpath_var" ||
13225    test "X$hardcode_automatic" = "Xyes" ; then
13226
13227   # We can hardcode non-existent directories.
13228   if test "$hardcode_direct" != no &&
13229      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13230      # have to relink, otherwise we might link with an installed library
13231      # when we should be linking with a yet-to-be-installed one
13232      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13233      test "$hardcode_minus_L" != no; then
13234     # Linking always hardcodes the temporary library directory.
13235     hardcode_action=relink
13236   else
13237     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13238     hardcode_action=immediate
13239   fi
13240 else
13241   # We cannot hardcode anything, or else we can only hardcode existing
13242   # directories.
13243   hardcode_action=unsupported
13244 fi
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13246 $as_echo "$hardcode_action" >&6; }
13247
13248 if test "$hardcode_action" = relink ||
13249    test "$inherit_rpath" = yes; then
13250   # Fast installation is not supported
13251   enable_fast_install=no
13252 elif test "$shlibpath_overrides_runpath" = yes ||
13253      test "$enable_shared" = no; then
13254   # Fast installation is not necessary
13255   enable_fast_install=needless
13256 fi
13257
13258
13259
13260
13261
13262
13263   if test "x$enable_dlopen" != xyes; then
13264   enable_dlopen=unknown
13265   enable_dlopen_self=unknown
13266   enable_dlopen_self_static=unknown
13267 else
13268   lt_cv_dlopen=no
13269   lt_cv_dlopen_libs=
13270
13271   case $host_os in
13272   beos*)
13273     lt_cv_dlopen="load_add_on"
13274     lt_cv_dlopen_libs=
13275     lt_cv_dlopen_self=yes
13276     ;;
13277
13278   mingw* | pw32* | cegcc*)
13279     lt_cv_dlopen="LoadLibrary"
13280     lt_cv_dlopen_libs=
13281     ;;
13282
13283   cygwin*)
13284     lt_cv_dlopen="dlopen"
13285     lt_cv_dlopen_libs=
13286     ;;
13287
13288   darwin*)
13289   # if libdl is installed we need to link against it
13290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13291 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13292 if ${ac_cv_lib_dl_dlopen+:} false; then :
13293   $as_echo_n "(cached) " >&6
13294 else
13295   ac_check_lib_save_LIBS=$LIBS
13296 LIBS="-ldl  $LIBS"
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h.  */
13299
13300 /* Override any GCC internal prototype to avoid an error.
13301    Use char because int might match the return type of a GCC
13302    builtin and then its argument prototype would still apply.  */
13303 #ifdef __cplusplus
13304 extern "C"
13305 #endif
13306 char dlopen ();
13307 int
13308 main ()
13309 {
13310 return dlopen ();
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 if ac_fn_c_try_link "$LINENO"; then :
13316   ac_cv_lib_dl_dlopen=yes
13317 else
13318   ac_cv_lib_dl_dlopen=no
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext \
13321     conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13323 fi
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13325 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13326 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13327   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13328 else
13329
13330     lt_cv_dlopen="dyld"
13331     lt_cv_dlopen_libs=
13332     lt_cv_dlopen_self=yes
13333
13334 fi
13335
13336     ;;
13337
13338   *)
13339     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13340 if test "x$ac_cv_func_shl_load" = xyes; then :
13341   lt_cv_dlopen="shl_load"
13342 else
13343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13344 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13345 if ${ac_cv_lib_dld_shl_load+:} false; then :
13346   $as_echo_n "(cached) " >&6
13347 else
13348   ac_check_lib_save_LIBS=$LIBS
13349 LIBS="-ldld  $LIBS"
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h.  */
13352
13353 /* Override any GCC internal prototype to avoid an error.
13354    Use char because int might match the return type of a GCC
13355    builtin and then its argument prototype would still apply.  */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 char shl_load ();
13360 int
13361 main ()
13362 {
13363 return shl_load ();
13364   ;
13365   return 0;
13366 }
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then :
13369   ac_cv_lib_dld_shl_load=yes
13370 else
13371   ac_cv_lib_dld_shl_load=no
13372 fi
13373 rm -f core conftest.err conftest.$ac_objext \
13374     conftest$ac_exeext conftest.$ac_ext
13375 LIBS=$ac_check_lib_save_LIBS
13376 fi
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13378 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13379 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13380   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13381 else
13382   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13383 if test "x$ac_cv_func_dlopen" = xyes; then :
13384   lt_cv_dlopen="dlopen"
13385 else
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13387 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13388 if ${ac_cv_lib_dl_dlopen+:} false; then :
13389   $as_echo_n "(cached) " >&6
13390 else
13391   ac_check_lib_save_LIBS=$LIBS
13392 LIBS="-ldl  $LIBS"
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h.  */
13395
13396 /* Override any GCC internal prototype to avoid an error.
13397    Use char because int might match the return type of a GCC
13398    builtin and then its argument prototype would still apply.  */
13399 #ifdef __cplusplus
13400 extern "C"
13401 #endif
13402 char dlopen ();
13403 int
13404 main ()
13405 {
13406 return dlopen ();
13407   ;
13408   return 0;
13409 }
13410 _ACEOF
13411 if ac_fn_c_try_link "$LINENO"; then :
13412   ac_cv_lib_dl_dlopen=yes
13413 else
13414   ac_cv_lib_dl_dlopen=no
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext \
13417     conftest$ac_exeext conftest.$ac_ext
13418 LIBS=$ac_check_lib_save_LIBS
13419 fi
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13421 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13422 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13423   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13424 else
13425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13426 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13427 if ${ac_cv_lib_svld_dlopen+:} false; then :
13428   $as_echo_n "(cached) " >&6
13429 else
13430   ac_check_lib_save_LIBS=$LIBS
13431 LIBS="-lsvld  $LIBS"
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h.  */
13434
13435 /* Override any GCC internal prototype to avoid an error.
13436    Use char because int might match the return type of a GCC
13437    builtin and then its argument prototype would still apply.  */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 char dlopen ();
13442 int
13443 main ()
13444 {
13445 return dlopen ();
13446   ;
13447   return 0;
13448 }
13449 _ACEOF
13450 if ac_fn_c_try_link "$LINENO"; then :
13451   ac_cv_lib_svld_dlopen=yes
13452 else
13453   ac_cv_lib_svld_dlopen=no
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext \
13456     conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_lib_save_LIBS
13458 fi
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13460 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13461 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13462   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13463 else
13464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13465 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13466 if ${ac_cv_lib_dld_dld_link+:} false; then :
13467   $as_echo_n "(cached) " >&6
13468 else
13469   ac_check_lib_save_LIBS=$LIBS
13470 LIBS="-ldld  $LIBS"
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h.  */
13473
13474 /* Override any GCC internal prototype to avoid an error.
13475    Use char because int might match the return type of a GCC
13476    builtin and then its argument prototype would still apply.  */
13477 #ifdef __cplusplus
13478 extern "C"
13479 #endif
13480 char dld_link ();
13481 int
13482 main ()
13483 {
13484 return dld_link ();
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 if ac_fn_c_try_link "$LINENO"; then :
13490   ac_cv_lib_dld_dld_link=yes
13491 else
13492   ac_cv_lib_dld_dld_link=no
13493 fi
13494 rm -f core conftest.err conftest.$ac_objext \
13495     conftest$ac_exeext conftest.$ac_ext
13496 LIBS=$ac_check_lib_save_LIBS
13497 fi
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13499 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13500 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13501   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13502 fi
13503
13504
13505 fi
13506
13507
13508 fi
13509
13510
13511 fi
13512
13513
13514 fi
13515
13516
13517 fi
13518
13519     ;;
13520   esac
13521
13522   if test "x$lt_cv_dlopen" != xno; then
13523     enable_dlopen=yes
13524   else
13525     enable_dlopen=no
13526   fi
13527
13528   case $lt_cv_dlopen in
13529   dlopen)
13530     save_CPPFLAGS="$CPPFLAGS"
13531     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13532
13533     save_LDFLAGS="$LDFLAGS"
13534     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13535
13536     save_LIBS="$LIBS"
13537     LIBS="$lt_cv_dlopen_libs $LIBS"
13538
13539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13540 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13541 if ${lt_cv_dlopen_self+:} false; then :
13542   $as_echo_n "(cached) " >&6
13543 else
13544           if test "$cross_compiling" = yes; then :
13545   lt_cv_dlopen_self=cross
13546 else
13547   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13548   lt_status=$lt_dlunknown
13549   cat > conftest.$ac_ext <<_LT_EOF
13550 #line $LINENO "configure"
13551 #include "confdefs.h"
13552
13553 #if HAVE_DLFCN_H
13554 #include <dlfcn.h>
13555 #endif
13556
13557 #include <stdio.h>
13558
13559 #ifdef RTLD_GLOBAL
13560 #  define LT_DLGLOBAL           RTLD_GLOBAL
13561 #else
13562 #  ifdef DL_GLOBAL
13563 #    define LT_DLGLOBAL         DL_GLOBAL
13564 #  else
13565 #    define LT_DLGLOBAL         0
13566 #  endif
13567 #endif
13568
13569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13570    find out it does not work in some platform. */
13571 #ifndef LT_DLLAZY_OR_NOW
13572 #  ifdef RTLD_LAZY
13573 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13574 #  else
13575 #    ifdef DL_LAZY
13576 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13577 #    else
13578 #      ifdef RTLD_NOW
13579 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13580 #      else
13581 #        ifdef DL_NOW
13582 #          define LT_DLLAZY_OR_NOW      DL_NOW
13583 #        else
13584 #          define LT_DLLAZY_OR_NOW      0
13585 #        endif
13586 #      endif
13587 #    endif
13588 #  endif
13589 #endif
13590
13591 /* When -fvisbility=hidden is used, assume the code has been annotated
13592    correspondingly for the symbols needed.  */
13593 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13594 int fnord () __attribute__((visibility("default")));
13595 #endif
13596
13597 int fnord () { return 42; }
13598 int main ()
13599 {
13600   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13601   int status = $lt_dlunknown;
13602
13603   if (self)
13604     {
13605       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13606       else
13607         {
13608           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13609           else puts (dlerror ());
13610         }
13611       /* dlclose (self); */
13612     }
13613   else
13614     puts (dlerror ());
13615
13616   return status;
13617 }
13618 _LT_EOF
13619   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13620   (eval $ac_link) 2>&5
13621   ac_status=$?
13622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13624     (./conftest; exit; ) >&5 2>/dev/null
13625     lt_status=$?
13626     case x$lt_status in
13627       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13628       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13629       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13630     esac
13631   else :
13632     # compilation failed
13633     lt_cv_dlopen_self=no
13634   fi
13635 fi
13636 rm -fr conftest*
13637
13638
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13641 $as_echo "$lt_cv_dlopen_self" >&6; }
13642
13643     if test "x$lt_cv_dlopen_self" = xyes; then
13644       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13645       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13646 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13647 if ${lt_cv_dlopen_self_static+:} false; then :
13648   $as_echo_n "(cached) " >&6
13649 else
13650           if test "$cross_compiling" = yes; then :
13651   lt_cv_dlopen_self_static=cross
13652 else
13653   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13654   lt_status=$lt_dlunknown
13655   cat > conftest.$ac_ext <<_LT_EOF
13656 #line $LINENO "configure"
13657 #include "confdefs.h"
13658
13659 #if HAVE_DLFCN_H
13660 #include <dlfcn.h>
13661 #endif
13662
13663 #include <stdio.h>
13664
13665 #ifdef RTLD_GLOBAL
13666 #  define LT_DLGLOBAL           RTLD_GLOBAL
13667 #else
13668 #  ifdef DL_GLOBAL
13669 #    define LT_DLGLOBAL         DL_GLOBAL
13670 #  else
13671 #    define LT_DLGLOBAL         0
13672 #  endif
13673 #endif
13674
13675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13676    find out it does not work in some platform. */
13677 #ifndef LT_DLLAZY_OR_NOW
13678 #  ifdef RTLD_LAZY
13679 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13680 #  else
13681 #    ifdef DL_LAZY
13682 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13683 #    else
13684 #      ifdef RTLD_NOW
13685 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13686 #      else
13687 #        ifdef DL_NOW
13688 #          define LT_DLLAZY_OR_NOW      DL_NOW
13689 #        else
13690 #          define LT_DLLAZY_OR_NOW      0
13691 #        endif
13692 #      endif
13693 #    endif
13694 #  endif
13695 #endif
13696
13697 /* When -fvisbility=hidden is used, assume the code has been annotated
13698    correspondingly for the symbols needed.  */
13699 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13700 int fnord () __attribute__((visibility("default")));
13701 #endif
13702
13703 int fnord () { return 42; }
13704 int main ()
13705 {
13706   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13707   int status = $lt_dlunknown;
13708
13709   if (self)
13710     {
13711       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13712       else
13713         {
13714           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13715           else puts (dlerror ());
13716         }
13717       /* dlclose (self); */
13718     }
13719   else
13720     puts (dlerror ());
13721
13722   return status;
13723 }
13724 _LT_EOF
13725   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13726   (eval $ac_link) 2>&5
13727   ac_status=$?
13728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13729   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13730     (./conftest; exit; ) >&5 2>/dev/null
13731     lt_status=$?
13732     case x$lt_status in
13733       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13734       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13735       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13736     esac
13737   else :
13738     # compilation failed
13739     lt_cv_dlopen_self_static=no
13740   fi
13741 fi
13742 rm -fr conftest*
13743
13744
13745 fi
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13747 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13748     fi
13749
13750     CPPFLAGS="$save_CPPFLAGS"
13751     LDFLAGS="$save_LDFLAGS"
13752     LIBS="$save_LIBS"
13753     ;;
13754   esac
13755
13756   case $lt_cv_dlopen_self in
13757   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13758   *) enable_dlopen_self=unknown ;;
13759   esac
13760
13761   case $lt_cv_dlopen_self_static in
13762   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13763   *) enable_dlopen_self_static=unknown ;;
13764   esac
13765 fi
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783 striplib=
13784 old_striplib=
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13786 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13787 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13788   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13789   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13791 $as_echo "yes" >&6; }
13792 else
13793 # FIXME - insert some real tests, host_os isn't really good enough
13794   case $host_os in
13795   darwin*)
13796     if test -n "$STRIP" ; then
13797       striplib="$STRIP -x"
13798       old_striplib="$STRIP -S"
13799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13800 $as_echo "yes" >&6; }
13801     else
13802       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13804     fi
13805     ;;
13806   *)
13807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13809     ;;
13810   esac
13811 fi
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824   # Report which library types will actually be built
13825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13826 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13828 $as_echo "$can_build_shared" >&6; }
13829
13830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13831 $as_echo_n "checking whether to build shared libraries... " >&6; }
13832   test "$can_build_shared" = "no" && enable_shared=no
13833
13834   # On AIX, shared libraries and static libraries use the same namespace, and
13835   # are all built from PIC.
13836   case $host_os in
13837   aix3*)
13838     test "$enable_shared" = yes && enable_static=no
13839     if test -n "$RANLIB"; then
13840       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13841       postinstall_cmds='$RANLIB $lib'
13842     fi
13843     ;;
13844
13845   aix[4-9]*)
13846     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13847       test "$enable_shared" = yes && enable_static=no
13848     fi
13849     ;;
13850   esac
13851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13852 $as_echo "$enable_shared" >&6; }
13853
13854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13855 $as_echo_n "checking whether to build static libraries... " >&6; }
13856   # Make sure either enable_shared or enable_static is yes.
13857   test "$enable_shared" = yes || enable_static=yes
13858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13859 $as_echo "$enable_static" >&6; }
13860
13861
13862
13863
13864 fi
13865 ac_ext=c
13866 ac_cpp='$CPP $CPPFLAGS'
13867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13870
13871 CC="$lt_save_CC"
13872
13873       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13874     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13875     (test "X$CXX" != "Xg++"))) ; then
13876   ac_ext=cpp
13877 ac_cpp='$CXXCPP $CPPFLAGS'
13878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13882 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13883 if test -z "$CXXCPP"; then
13884   if ${ac_cv_prog_CXXCPP+:} false; then :
13885   $as_echo_n "(cached) " >&6
13886 else
13887       # Double quotes because CXXCPP needs to be expanded
13888     for CXXCPP in "$CXX -E" "/lib/cpp"
13889     do
13890       ac_preproc_ok=false
13891 for ac_cxx_preproc_warn_flag in '' yes
13892 do
13893   # Use a header file that comes with gcc, so configuring glibc
13894   # with a fresh cross-compiler works.
13895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13896   # <limits.h> exists even on freestanding compilers.
13897   # On the NeXT, cc -E runs the code through the compiler's parser,
13898   # not just through cpp. "Syntax error" is here to catch this case.
13899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h.  */
13901 #ifdef __STDC__
13902 # include <limits.h>
13903 #else
13904 # include <assert.h>
13905 #endif
13906                      Syntax error
13907 _ACEOF
13908 if ac_fn_cxx_try_cpp "$LINENO"; then :
13909
13910 else
13911   # Broken: fails on valid input.
13912 continue
13913 fi
13914 rm -f conftest.err conftest.i conftest.$ac_ext
13915
13916   # OK, works on sane cases.  Now check whether nonexistent headers
13917   # can be detected and how.
13918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h.  */
13920 #include <ac_nonexistent.h>
13921 _ACEOF
13922 if ac_fn_cxx_try_cpp "$LINENO"; then :
13923   # Broken: success on invalid input.
13924 continue
13925 else
13926   # Passes both tests.
13927 ac_preproc_ok=:
13928 break
13929 fi
13930 rm -f conftest.err conftest.i conftest.$ac_ext
13931
13932 done
13933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13934 rm -f conftest.i conftest.err conftest.$ac_ext
13935 if $ac_preproc_ok; then :
13936   break
13937 fi
13938
13939     done
13940     ac_cv_prog_CXXCPP=$CXXCPP
13941
13942 fi
13943   CXXCPP=$ac_cv_prog_CXXCPP
13944 else
13945   ac_cv_prog_CXXCPP=$CXXCPP
13946 fi
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13948 $as_echo "$CXXCPP" >&6; }
13949 ac_preproc_ok=false
13950 for ac_cxx_preproc_warn_flag in '' yes
13951 do
13952   # Use a header file that comes with gcc, so configuring glibc
13953   # with a fresh cross-compiler works.
13954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955   # <limits.h> exists even on freestanding compilers.
13956   # On the NeXT, cc -E runs the code through the compiler's parser,
13957   # not just through cpp. "Syntax error" is here to catch this case.
13958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h.  */
13960 #ifdef __STDC__
13961 # include <limits.h>
13962 #else
13963 # include <assert.h>
13964 #endif
13965                      Syntax error
13966 _ACEOF
13967 if ac_fn_cxx_try_cpp "$LINENO"; then :
13968
13969 else
13970   # Broken: fails on valid input.
13971 continue
13972 fi
13973 rm -f conftest.err conftest.i conftest.$ac_ext
13974
13975   # OK, works on sane cases.  Now check whether nonexistent headers
13976   # can be detected and how.
13977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h.  */
13979 #include <ac_nonexistent.h>
13980 _ACEOF
13981 if ac_fn_cxx_try_cpp "$LINENO"; then :
13982   # Broken: success on invalid input.
13983 continue
13984 else
13985   # Passes both tests.
13986 ac_preproc_ok=:
13987 break
13988 fi
13989 rm -f conftest.err conftest.i conftest.$ac_ext
13990
13991 done
13992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13993 rm -f conftest.i conftest.err conftest.$ac_ext
13994 if $ac_preproc_ok; then :
13995
13996 else
13997   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13999 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14000 See \`config.log' for more details" "$LINENO" 5; }
14001 fi
14002
14003 ac_ext=c
14004 ac_cpp='$CPP $CPPFLAGS'
14005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14008
14009 else
14010   _lt_caught_CXX_error=yes
14011 fi
14012
14013 ac_ext=cpp
14014 ac_cpp='$CXXCPP $CPPFLAGS'
14015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14018
14019 archive_cmds_need_lc_CXX=no
14020 allow_undefined_flag_CXX=
14021 always_export_symbols_CXX=no
14022 archive_expsym_cmds_CXX=
14023 compiler_needs_object_CXX=no
14024 export_dynamic_flag_spec_CXX=
14025 hardcode_direct_CXX=no
14026 hardcode_direct_absolute_CXX=no
14027 hardcode_libdir_flag_spec_CXX=
14028 hardcode_libdir_separator_CXX=
14029 hardcode_minus_L_CXX=no
14030 hardcode_shlibpath_var_CXX=unsupported
14031 hardcode_automatic_CXX=no
14032 inherit_rpath_CXX=no
14033 module_cmds_CXX=
14034 module_expsym_cmds_CXX=
14035 link_all_deplibs_CXX=unknown
14036 old_archive_cmds_CXX=$old_archive_cmds
14037 reload_flag_CXX=$reload_flag
14038 reload_cmds_CXX=$reload_cmds
14039 no_undefined_flag_CXX=
14040 whole_archive_flag_spec_CXX=
14041 enable_shared_with_static_runtimes_CXX=no
14042
14043 # Source file extension for C++ test sources.
14044 ac_ext=cpp
14045
14046 # Object file extension for compiled C++ test sources.
14047 objext=o
14048 objext_CXX=$objext
14049
14050 # No sense in running all these tests if we already determined that
14051 # the CXX compiler isn't working.  Some variables (like enable_shared)
14052 # are currently assumed to apply to all compilers on this platform,
14053 # and will be corrupted by setting them based on a non-working compiler.
14054 if test "$_lt_caught_CXX_error" != yes; then
14055   # Code to be used in simple compile tests
14056   lt_simple_compile_test_code="int some_variable = 0;"
14057
14058   # Code to be used in simple link tests
14059   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14060
14061   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14062
14063
14064
14065
14066
14067
14068 # If no C compiler was specified, use CC.
14069 LTCC=${LTCC-"$CC"}
14070
14071 # If no C compiler flags were specified, use CFLAGS.
14072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14073
14074 # Allow CC to be a program name with arguments.
14075 compiler=$CC
14076
14077
14078   # save warnings/boilerplate of simple test code
14079   ac_outfile=conftest.$ac_objext
14080 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14081 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14082 _lt_compiler_boilerplate=`cat conftest.err`
14083 $RM conftest*
14084
14085   ac_outfile=conftest.$ac_objext
14086 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14087 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14088 _lt_linker_boilerplate=`cat conftest.err`
14089 $RM -r conftest*
14090
14091
14092   # Allow CC to be a program name with arguments.
14093   lt_save_CC=$CC
14094   lt_save_CFLAGS=$CFLAGS
14095   lt_save_LD=$LD
14096   lt_save_GCC=$GCC
14097   GCC=$GXX
14098   lt_save_with_gnu_ld=$with_gnu_ld
14099   lt_save_path_LD=$lt_cv_path_LD
14100   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14101     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14102   else
14103     $as_unset lt_cv_prog_gnu_ld
14104   fi
14105   if test -n "${lt_cv_path_LDCXX+set}"; then
14106     lt_cv_path_LD=$lt_cv_path_LDCXX
14107   else
14108     $as_unset lt_cv_path_LD
14109   fi
14110   test -z "${LDCXX+set}" || LD=$LDCXX
14111   CC=${CXX-"c++"}
14112   CFLAGS=$CXXFLAGS
14113   compiler=$CC
14114   compiler_CXX=$CC
14115   for cc_temp in $compiler""; do
14116   case $cc_temp in
14117     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14118     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14119     \-*) ;;
14120     *) break;;
14121   esac
14122 done
14123 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14124
14125
14126   if test -n "$compiler"; then
14127     # We don't want -fno-exception when compiling C++ code, so set the
14128     # no_builtin_flag separately
14129     if test "$GXX" = yes; then
14130       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14131     else
14132       lt_prog_compiler_no_builtin_flag_CXX=
14133     fi
14134
14135     if test "$GXX" = yes; then
14136       # Set up default GNU C++ configuration
14137
14138
14139
14140 # Check whether --with-gnu-ld was given.
14141 if test "${with_gnu_ld+set}" = set; then :
14142   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14143 else
14144   with_gnu_ld=no
14145 fi
14146
14147 ac_prog=ld
14148 if test "$GCC" = yes; then
14149   # Check if gcc -print-prog-name=ld gives a path.
14150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14151 $as_echo_n "checking for ld used by $CC... " >&6; }
14152   case $host in
14153   *-*-mingw*)
14154     # gcc leaves a trailing carriage return which upsets mingw
14155     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14156   *)
14157     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14158   esac
14159   case $ac_prog in
14160     # Accept absolute paths.
14161     [\\/]* | ?:[\\/]*)
14162       re_direlt='/[^/][^/]*/\.\./'
14163       # Canonicalize the pathname of ld
14164       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14165       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14166         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14167       done
14168       test -z "$LD" && LD="$ac_prog"
14169       ;;
14170   "")
14171     # If it fails, then pretend we aren't using GCC.
14172     ac_prog=ld
14173     ;;
14174   *)
14175     # If it is relative, then search for the first ld in PATH.
14176     with_gnu_ld=unknown
14177     ;;
14178   esac
14179 elif test "$with_gnu_ld" = yes; then
14180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14181 $as_echo_n "checking for GNU ld... " >&6; }
14182 else
14183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14184 $as_echo_n "checking for non-GNU ld... " >&6; }
14185 fi
14186 if ${lt_cv_path_LD+:} false; then :
14187   $as_echo_n "(cached) " >&6
14188 else
14189   if test -z "$LD"; then
14190   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14191   for ac_dir in $PATH; do
14192     IFS="$lt_save_ifs"
14193     test -z "$ac_dir" && ac_dir=.
14194     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14195       lt_cv_path_LD="$ac_dir/$ac_prog"
14196       # Check to see if the program is GNU ld.  I'd rather use --version,
14197       # but apparently some variants of GNU ld only accept -v.
14198       # Break only if it was the GNU/non-GNU ld that we prefer.
14199       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14200       *GNU* | *'with BFD'*)
14201         test "$with_gnu_ld" != no && break
14202         ;;
14203       *)
14204         test "$with_gnu_ld" != yes && break
14205         ;;
14206       esac
14207     fi
14208   done
14209   IFS="$lt_save_ifs"
14210 else
14211   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14212 fi
14213 fi
14214
14215 LD="$lt_cv_path_LD"
14216 if test -n "$LD"; then
14217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14218 $as_echo "$LD" >&6; }
14219 else
14220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14222 fi
14223 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14225 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14226 if ${lt_cv_prog_gnu_ld+:} false; then :
14227   $as_echo_n "(cached) " >&6
14228 else
14229   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14230 case `$LD -v 2>&1 </dev/null` in
14231 *GNU* | *'with BFD'*)
14232   lt_cv_prog_gnu_ld=yes
14233   ;;
14234 *)
14235   lt_cv_prog_gnu_ld=no
14236   ;;
14237 esac
14238 fi
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14240 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14241 with_gnu_ld=$lt_cv_prog_gnu_ld
14242
14243
14244
14245
14246
14247
14248
14249       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14250       # archiving commands below assume that GNU ld is being used.
14251       if test "$with_gnu_ld" = yes; then
14252         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14253         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'
14254
14255         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14256         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14257
14258         # If archive_cmds runs LD, not CC, wlarc should be empty
14259         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14260         #     investigate it a little bit more. (MM)
14261         wlarc='${wl}'
14262
14263         # ancient GNU ld didn't support --whole-archive et. al.
14264         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14265           $GREP 'no-whole-archive' > /dev/null; then
14266           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14267         else
14268           whole_archive_flag_spec_CXX=
14269         fi
14270       else
14271         with_gnu_ld=no
14272         wlarc=
14273
14274         # A generic and very simple default shared library creation
14275         # command for GNU C++ for the case where it uses the native
14276         # linker, instead of GNU ld.  If possible, this setting should
14277         # overridden to take advantage of the native linker features on
14278         # the platform it is being used on.
14279         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14280       fi
14281
14282       # Commands to make compiler produce verbose output that lists
14283       # what "hidden" libraries, object files and flags are used when
14284       # linking a shared library.
14285       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14286
14287     else
14288       GXX=no
14289       with_gnu_ld=no
14290       wlarc=
14291     fi
14292
14293     # PORTME: fill in a description of your system's C++ link characteristics
14294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14295 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14296     ld_shlibs_CXX=yes
14297     case $host_os in
14298       aix3*)
14299         # FIXME: insert proper C++ library support
14300         ld_shlibs_CXX=no
14301         ;;
14302       aix[4-9]*)
14303         if test "$host_cpu" = ia64; then
14304           # On IA64, the linker does run time linking by default, so we don't
14305           # have to do anything special.
14306           aix_use_runtimelinking=no
14307           exp_sym_flag='-Bexport'
14308           no_entry_flag=""
14309         else
14310           aix_use_runtimelinking=no
14311
14312           # Test if we are trying to use run time linking or normal
14313           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14314           # need to do runtime linking.
14315           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14316             for ld_flag in $LDFLAGS; do
14317               case $ld_flag in
14318               *-brtl*)
14319                 aix_use_runtimelinking=yes
14320                 break
14321                 ;;
14322               esac
14323             done
14324             ;;
14325           esac
14326
14327           exp_sym_flag='-bexport'
14328           no_entry_flag='-bnoentry'
14329         fi
14330
14331         # When large executables or shared objects are built, AIX ld can
14332         # have problems creating the table of contents.  If linking a library
14333         # or program results in "error TOC overflow" add -mminimal-toc to
14334         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14335         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14336
14337         archive_cmds_CXX=''
14338         hardcode_direct_CXX=yes
14339         hardcode_direct_absolute_CXX=yes
14340         hardcode_libdir_separator_CXX=':'
14341         link_all_deplibs_CXX=yes
14342         file_list_spec_CXX='${wl}-f,'
14343
14344         if test "$GXX" = yes; then
14345           case $host_os in aix4.[012]|aix4.[012].*)
14346           # We only want to do this on AIX 4.2 and lower, the check
14347           # below for broken collect2 doesn't work under 4.3+
14348           collect2name=`${CC} -print-prog-name=collect2`
14349           if test -f "$collect2name" &&
14350              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14351           then
14352             # We have reworked collect2
14353             :
14354           else
14355             # We have old collect2
14356             hardcode_direct_CXX=unsupported
14357             # It fails to find uninstalled libraries when the uninstalled
14358             # path is not listed in the libpath.  Setting hardcode_minus_L
14359             # to unsupported forces relinking
14360             hardcode_minus_L_CXX=yes
14361             hardcode_libdir_flag_spec_CXX='-L$libdir'
14362             hardcode_libdir_separator_CXX=
14363           fi
14364           esac
14365           shared_flag='-shared'
14366           if test "$aix_use_runtimelinking" = yes; then
14367             shared_flag="$shared_flag "'${wl}-G'
14368           fi
14369         else
14370           # not using gcc
14371           if test "$host_cpu" = ia64; then
14372           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14373           # chokes on -Wl,-G. The following line is correct:
14374           shared_flag='-G'
14375           else
14376             if test "$aix_use_runtimelinking" = yes; then
14377               shared_flag='${wl}-G'
14378             else
14379               shared_flag='${wl}-bM:SRE'
14380             fi
14381           fi
14382         fi
14383
14384         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14385         # It seems that -bexpall does not export symbols beginning with
14386         # underscore (_), so it is better to generate a list of symbols to
14387         # export.
14388         always_export_symbols_CXX=yes
14389         if test "$aix_use_runtimelinking" = yes; then
14390           # Warning - without using the other runtime loading flags (-brtl),
14391           # -berok will link without error, but may produce a broken library.
14392           allow_undefined_flag_CXX='-berok'
14393           # Determine the default libpath from the value encoded in an empty
14394           # executable.
14395           if test "${lt_cv_aix_libpath+set}" = set; then
14396   aix_libpath=$lt_cv_aix_libpath
14397 else
14398   if ${lt_cv_aix_libpath__CXX+:} false; then :
14399   $as_echo_n "(cached) " >&6
14400 else
14401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h.  */
14403
14404 int
14405 main ()
14406 {
14407
14408   ;
14409   return 0;
14410 }
14411 _ACEOF
14412 if ac_fn_cxx_try_link "$LINENO"; then :
14413
14414   lt_aix_libpath_sed='
14415       /Import File Strings/,/^$/ {
14416           /^0/ {
14417               s/^0  *\([^ ]*\) *$/\1/
14418               p
14419           }
14420       }'
14421   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14422   # Check for a 64-bit object if we didn't find anything.
14423   if test -z "$lt_cv_aix_libpath__CXX"; then
14424     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14425   fi
14426 fi
14427 rm -f core conftest.err conftest.$ac_objext \
14428     conftest$ac_exeext conftest.$ac_ext
14429   if test -z "$lt_cv_aix_libpath__CXX"; then
14430     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14431   fi
14432
14433 fi
14434
14435   aix_libpath=$lt_cv_aix_libpath__CXX
14436 fi
14437
14438           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14439
14440           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"
14441         else
14442           if test "$host_cpu" = ia64; then
14443             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14444             allow_undefined_flag_CXX="-z nodefs"
14445             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"
14446           else
14447             # Determine the default libpath from the value encoded in an
14448             # empty executable.
14449             if test "${lt_cv_aix_libpath+set}" = set; then
14450   aix_libpath=$lt_cv_aix_libpath
14451 else
14452   if ${lt_cv_aix_libpath__CXX+:} false; then :
14453   $as_echo_n "(cached) " >&6
14454 else
14455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h.  */
14457
14458 int
14459 main ()
14460 {
14461
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 if ac_fn_cxx_try_link "$LINENO"; then :
14467
14468   lt_aix_libpath_sed='
14469       /Import File Strings/,/^$/ {
14470           /^0/ {
14471               s/^0  *\([^ ]*\) *$/\1/
14472               p
14473           }
14474       }'
14475   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14476   # Check for a 64-bit object if we didn't find anything.
14477   if test -z "$lt_cv_aix_libpath__CXX"; then
14478     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14479   fi
14480 fi
14481 rm -f core conftest.err conftest.$ac_objext \
14482     conftest$ac_exeext conftest.$ac_ext
14483   if test -z "$lt_cv_aix_libpath__CXX"; then
14484     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14485   fi
14486
14487 fi
14488
14489   aix_libpath=$lt_cv_aix_libpath__CXX
14490 fi
14491
14492             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14493             # Warning - without using the other run time loading flags,
14494             # -berok will link without error, but may produce a broken library.
14495             no_undefined_flag_CXX=' ${wl}-bernotok'
14496             allow_undefined_flag_CXX=' ${wl}-berok'
14497             if test "$with_gnu_ld" = yes; then
14498               # We only use this code for GNU lds that support --whole-archive.
14499               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14500             else
14501               # Exported symbols can be pulled into shared objects from archives
14502               whole_archive_flag_spec_CXX='$convenience'
14503             fi
14504             archive_cmds_need_lc_CXX=yes
14505             # This is similar to how AIX traditionally builds its shared
14506             # libraries.
14507             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'
14508           fi
14509         fi
14510         ;;
14511
14512       beos*)
14513         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14514           allow_undefined_flag_CXX=unsupported
14515           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14516           # support --undefined.  This deserves some investigation.  FIXME
14517           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14518         else
14519           ld_shlibs_CXX=no
14520         fi
14521         ;;
14522
14523       chorus*)
14524         case $cc_basename in
14525           *)
14526           # FIXME: insert proper C++ library support
14527           ld_shlibs_CXX=no
14528           ;;
14529         esac
14530         ;;
14531
14532       cygwin* | mingw* | pw32* | cegcc*)
14533         case $GXX,$cc_basename in
14534         ,cl* | no,cl*)
14535           # Native MSVC
14536           # hardcode_libdir_flag_spec is actually meaningless, as there is
14537           # no search path for DLLs.
14538           hardcode_libdir_flag_spec_CXX=' '
14539           allow_undefined_flag_CXX=unsupported
14540           always_export_symbols_CXX=yes
14541           file_list_spec_CXX='@'
14542           # Tell ltmain to make .lib files, not .a files.
14543           libext=lib
14544           # Tell ltmain to make .dll files, not .so files.
14545           shrext_cmds=".dll"
14546           # FIXME: Setting linknames here is a bad hack.
14547           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14548           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14549               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14550             else
14551               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14552             fi~
14553             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14554             linknames='
14555           # The linker will not automatically build a static lib if we build a DLL.
14556           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14557           enable_shared_with_static_runtimes_CXX=yes
14558           # Don't use ranlib
14559           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14560           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14561             lt_tool_outputfile="@TOOL_OUTPUT@"~
14562             case $lt_outputfile in
14563               *.exe|*.EXE) ;;
14564               *)
14565                 lt_outputfile="$lt_outputfile.exe"
14566                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14567                 ;;
14568             esac~
14569             func_to_tool_file "$lt_outputfile"~
14570             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14571               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14572               $RM "$lt_outputfile.manifest";
14573             fi'
14574           ;;
14575         *)
14576           # g++
14577           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14578           # as there is no search path for DLLs.
14579           hardcode_libdir_flag_spec_CXX='-L$libdir'
14580           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14581           allow_undefined_flag_CXX=unsupported
14582           always_export_symbols_CXX=no
14583           enable_shared_with_static_runtimes_CXX=yes
14584
14585           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14586             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'
14587             # If the export-symbols file already is a .def file (1st line
14588             # is EXPORTS), use it as is; otherwise, prepend...
14589             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14590               cp $export_symbols $output_objdir/$soname.def;
14591             else
14592               echo EXPORTS > $output_objdir/$soname.def;
14593               cat $export_symbols >> $output_objdir/$soname.def;
14594             fi~
14595             $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'
14596           else
14597             ld_shlibs_CXX=no
14598           fi
14599           ;;
14600         esac
14601         ;;
14602       darwin* | rhapsody*)
14603
14604
14605   archive_cmds_need_lc_CXX=no
14606   hardcode_direct_CXX=no
14607   hardcode_automatic_CXX=yes
14608   hardcode_shlibpath_var_CXX=unsupported
14609   if test "$lt_cv_ld_force_load" = "yes"; then
14610     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\"`'
14611
14612   else
14613     whole_archive_flag_spec_CXX=''
14614   fi
14615   link_all_deplibs_CXX=yes
14616   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14617   case $cc_basename in
14618      ifort*) _lt_dar_can_shared=yes ;;
14619      *) _lt_dar_can_shared=$GCC ;;
14620   esac
14621   if test "$_lt_dar_can_shared" = "yes"; then
14622     output_verbose_link_cmd=func_echo_all
14623     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}"
14624     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14625     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}"
14626     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}"
14627        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14628       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}"
14629       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}"
14630     fi
14631
14632   else
14633   ld_shlibs_CXX=no
14634   fi
14635
14636         ;;
14637
14638       dgux*)
14639         case $cc_basename in
14640           ec++*)
14641             # FIXME: insert proper C++ library support
14642             ld_shlibs_CXX=no
14643             ;;
14644           ghcx*)
14645             # Green Hills C++ Compiler
14646             # FIXME: insert proper C++ library support
14647             ld_shlibs_CXX=no
14648             ;;
14649           *)
14650             # FIXME: insert proper C++ library support
14651             ld_shlibs_CXX=no
14652             ;;
14653         esac
14654         ;;
14655
14656       freebsd2.*)
14657         # C++ shared libraries reported to be fairly broken before
14658         # switch to ELF
14659         ld_shlibs_CXX=no
14660         ;;
14661
14662       freebsd-elf*)
14663         archive_cmds_need_lc_CXX=no
14664         ;;
14665
14666       freebsd* | dragonfly*)
14667         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14668         # conventions
14669         ld_shlibs_CXX=yes
14670         ;;
14671
14672       gnu*)
14673         ;;
14674
14675       haiku*)
14676         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14677         link_all_deplibs_CXX=yes
14678         ;;
14679
14680       hpux9*)
14681         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14682         hardcode_libdir_separator_CXX=:
14683         export_dynamic_flag_spec_CXX='${wl}-E'
14684         hardcode_direct_CXX=yes
14685         hardcode_minus_L_CXX=yes # Not in the search PATH,
14686                                              # but as the default
14687                                              # location of the library.
14688
14689         case $cc_basename in
14690           CC*)
14691             # FIXME: insert proper C++ library support
14692             ld_shlibs_CXX=no
14693             ;;
14694           aCC*)
14695             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'
14696             # Commands to make compiler produce verbose output that lists
14697             # what "hidden" libraries, object files and flags are used when
14698             # linking a shared library.
14699             #
14700             # There doesn't appear to be a way to prevent this compiler from
14701             # explicitly linking system object files so we need to strip them
14702             # from the output so that they don't get included in the library
14703             # dependencies.
14704             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"'
14705             ;;
14706           *)
14707             if test "$GXX" = yes; then
14708               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'
14709             else
14710               # FIXME: insert proper C++ library support
14711               ld_shlibs_CXX=no
14712             fi
14713             ;;
14714         esac
14715         ;;
14716
14717       hpux10*|hpux11*)
14718         if test $with_gnu_ld = no; then
14719           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14720           hardcode_libdir_separator_CXX=:
14721
14722           case $host_cpu in
14723             hppa*64*|ia64*)
14724               ;;
14725             *)
14726               export_dynamic_flag_spec_CXX='${wl}-E'
14727               ;;
14728           esac
14729         fi
14730         case $host_cpu in
14731           hppa*64*|ia64*)
14732             hardcode_direct_CXX=no
14733             hardcode_shlibpath_var_CXX=no
14734             ;;
14735           *)
14736             hardcode_direct_CXX=yes
14737             hardcode_direct_absolute_CXX=yes
14738             hardcode_minus_L_CXX=yes # Not in the search PATH,
14739                                                  # but as the default
14740                                                  # location of the library.
14741             ;;
14742         esac
14743
14744         case $cc_basename in
14745           CC*)
14746             # FIXME: insert proper C++ library support
14747             ld_shlibs_CXX=no
14748             ;;
14749           aCC*)
14750             case $host_cpu in
14751               hppa*64*)
14752                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14753                 ;;
14754               ia64*)
14755                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14756                 ;;
14757               *)
14758                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14759                 ;;
14760             esac
14761             # Commands to make compiler produce verbose output that lists
14762             # what "hidden" libraries, object files and flags are used when
14763             # linking a shared library.
14764             #
14765             # There doesn't appear to be a way to prevent this compiler from
14766             # explicitly linking system object files so we need to strip them
14767             # from the output so that they don't get included in the library
14768             # dependencies.
14769             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"'
14770             ;;
14771           *)
14772             if test "$GXX" = yes; then
14773               if test $with_gnu_ld = no; then
14774                 case $host_cpu in
14775                   hppa*64*)
14776                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14777                     ;;
14778                   ia64*)
14779                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14780                     ;;
14781                   *)
14782                     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'
14783                     ;;
14784                 esac
14785               fi
14786             else
14787               # FIXME: insert proper C++ library support
14788               ld_shlibs_CXX=no
14789             fi
14790             ;;
14791         esac
14792         ;;
14793
14794       interix[3-9]*)
14795         hardcode_direct_CXX=no
14796         hardcode_shlibpath_var_CXX=no
14797         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14798         export_dynamic_flag_spec_CXX='${wl}-E'
14799         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14800         # Instead, shared libraries are loaded at an image base (0x10000000 by
14801         # default) and relocated if they conflict, which is a slow very memory
14802         # consuming and fragmenting process.  To avoid this, we pick a random,
14803         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14804         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14805         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'
14806         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'
14807         ;;
14808       irix5* | irix6*)
14809         case $cc_basename in
14810           CC*)
14811             # SGI C++
14812             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'
14813
14814             # Archives containing C++ object files must be created using
14815             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14816             # necessary to make sure instantiated templates are included
14817             # in the archive.
14818             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14819             ;;
14820           *)
14821             if test "$GXX" = yes; then
14822               if test "$with_gnu_ld" = no; then
14823                 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'
14824               else
14825                 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'
14826               fi
14827             fi
14828             link_all_deplibs_CXX=yes
14829             ;;
14830         esac
14831         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14832         hardcode_libdir_separator_CXX=:
14833         inherit_rpath_CXX=yes
14834         ;;
14835
14836       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14837         case $cc_basename in
14838           KCC*)
14839             # Kuck and Associates, Inc. (KAI) C++ Compiler
14840
14841             # KCC will only create a shared library if the output file
14842             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14843             # to its proper name (with version) after linking.
14844             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'
14845             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'
14846             # Commands to make compiler produce verbose output that lists
14847             # what "hidden" libraries, object files and flags are used when
14848             # linking a shared library.
14849             #
14850             # There doesn't appear to be a way to prevent this compiler from
14851             # explicitly linking system object files so we need to strip them
14852             # from the output so that they don't get included in the library
14853             # dependencies.
14854             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"'
14855
14856             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14857             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14858
14859             # Archives containing C++ object files must be created using
14860             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14861             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14862             ;;
14863           icpc* | ecpc* )
14864             # Intel C++
14865             with_gnu_ld=yes
14866             # version 8.0 and above of icpc choke on multiply defined symbols
14867             # if we add $predep_objects and $postdep_objects, however 7.1 and
14868             # earlier do not add the objects themselves.
14869             case `$CC -V 2>&1` in
14870               *"Version 7."*)
14871                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872                 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'
14873                 ;;
14874               *)  # Version 8.0 or newer
14875                 tmp_idyn=
14876                 case $host_cpu in
14877                   ia64*) tmp_idyn=' -i_dynamic';;
14878                 esac
14879                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14880                 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'
14881                 ;;
14882             esac
14883             archive_cmds_need_lc_CXX=no
14884             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14885             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14886             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14887             ;;
14888           pgCC* | pgcpp*)
14889             # Portland Group C++ compiler
14890             case `$CC -V` in
14891             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14892               prelink_cmds_CXX='tpldir=Template.dir~
14893                 rm -rf $tpldir~
14894                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14895                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14896               old_archive_cmds_CXX='tpldir=Template.dir~
14897                 rm -rf $tpldir~
14898                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14899                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14900                 $RANLIB $oldlib'
14901               archive_cmds_CXX='tpldir=Template.dir~
14902                 rm -rf $tpldir~
14903                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14904                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14905               archive_expsym_cmds_CXX='tpldir=Template.dir~
14906                 rm -rf $tpldir~
14907                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14908                 $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'
14909               ;;
14910             *) # Version 6 and above use weak symbols
14911               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14912               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'
14913               ;;
14914             esac
14915
14916             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14917             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14918             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'
14919             ;;
14920           cxx*)
14921             # Compaq C++
14922             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14923             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'
14924
14925             runpath_var=LD_RUN_PATH
14926             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14927             hardcode_libdir_separator_CXX=:
14928
14929             # Commands to make compiler produce verbose output that lists
14930             # what "hidden" libraries, object files and flags are used when
14931             # linking a shared library.
14932             #
14933             # There doesn't appear to be a way to prevent this compiler from
14934             # explicitly linking system object files so we need to strip them
14935             # from the output so that they don't get included in the library
14936             # dependencies.
14937             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'
14938             ;;
14939           xl* | mpixl* | bgxl*)
14940             # IBM XL 8.0 on PPC, with GNU ld
14941             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14942             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14943             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14944             if test "x$supports_anon_versioning" = xyes; then
14945               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14946                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14947                 echo "local: *; };" >> $output_objdir/$libname.ver~
14948                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14949             fi
14950             ;;
14951           *)
14952             case `$CC -V 2>&1 | sed 5q` in
14953             *Sun\ C*)
14954               # Sun C++ 5.9
14955               no_undefined_flag_CXX=' -zdefs'
14956               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14957               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'
14958               hardcode_libdir_flag_spec_CXX='-R$libdir'
14959               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'
14960               compiler_needs_object_CXX=yes
14961
14962               # Not sure whether something based on
14963               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14964               # would be better.
14965               output_verbose_link_cmd='func_echo_all'
14966
14967               # Archives containing C++ object files must be created using
14968               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14969               # necessary to make sure instantiated templates are included
14970               # in the archive.
14971               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14972               ;;
14973             esac
14974             ;;
14975         esac
14976         ;;
14977
14978       lynxos*)
14979         # FIXME: insert proper C++ library support
14980         ld_shlibs_CXX=no
14981         ;;
14982
14983       m88k*)
14984         # FIXME: insert proper C++ library support
14985         ld_shlibs_CXX=no
14986         ;;
14987
14988       mvs*)
14989         case $cc_basename in
14990           cxx*)
14991             # FIXME: insert proper C++ library support
14992             ld_shlibs_CXX=no
14993             ;;
14994           *)
14995             # FIXME: insert proper C++ library support
14996             ld_shlibs_CXX=no
14997             ;;
14998         esac
14999         ;;
15000
15001       netbsd*)
15002         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15003           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15004           wlarc=
15005           hardcode_libdir_flag_spec_CXX='-R$libdir'
15006           hardcode_direct_CXX=yes
15007           hardcode_shlibpath_var_CXX=no
15008         fi
15009         # Workaround some broken pre-1.5 toolchains
15010         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15011         ;;
15012
15013       *nto* | *qnx*)
15014         ld_shlibs_CXX=yes
15015         ;;
15016
15017       openbsd2*)
15018         # C++ shared libraries are fairly broken
15019         ld_shlibs_CXX=no
15020         ;;
15021
15022       openbsd*)
15023         if test -f /usr/libexec/ld.so; then
15024           hardcode_direct_CXX=yes
15025           hardcode_shlibpath_var_CXX=no
15026           hardcode_direct_absolute_CXX=yes
15027           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15028           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15029           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15030             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15031             export_dynamic_flag_spec_CXX='${wl}-E'
15032             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15033           fi
15034           output_verbose_link_cmd=func_echo_all
15035         else
15036           ld_shlibs_CXX=no
15037         fi
15038         ;;
15039
15040       osf3* | osf4* | osf5*)
15041         case $cc_basename in
15042           KCC*)
15043             # Kuck and Associates, Inc. (KAI) C++ Compiler
15044
15045             # KCC will only create a shared library if the output file
15046             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15047             # to its proper name (with version) after linking.
15048             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'
15049
15050             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15051             hardcode_libdir_separator_CXX=:
15052
15053             # Archives containing C++ object files must be created using
15054             # the KAI C++ compiler.
15055             case $host in
15056               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15057               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15058             esac
15059             ;;
15060           RCC*)
15061             # Rational C++ 2.4.1
15062             # FIXME: insert proper C++ library support
15063             ld_shlibs_CXX=no
15064             ;;
15065           cxx*)
15066             case $host in
15067               osf3*)
15068                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15069                 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'
15070                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15071                 ;;
15072               *)
15073                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15074                 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'
15075                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15076                   echo "-hidden">> $lib.exp~
15077                   $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~
15078                   $RM $lib.exp'
15079                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15080                 ;;
15081             esac
15082
15083             hardcode_libdir_separator_CXX=:
15084
15085             # Commands to make compiler produce verbose output that lists
15086             # what "hidden" libraries, object files and flags are used when
15087             # linking a shared library.
15088             #
15089             # There doesn't appear to be a way to prevent this compiler from
15090             # explicitly linking system object files so we need to strip them
15091             # from the output so that they don't get included in the library
15092             # dependencies.
15093             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"'
15094             ;;
15095           *)
15096             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15097               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15098               case $host in
15099                 osf3*)
15100                   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'
15101                   ;;
15102                 *)
15103                   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'
15104                   ;;
15105               esac
15106
15107               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15108               hardcode_libdir_separator_CXX=:
15109
15110               # Commands to make compiler produce verbose output that lists
15111               # what "hidden" libraries, object files and flags are used when
15112               # linking a shared library.
15113               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15114
15115             else
15116               # FIXME: insert proper C++ library support
15117               ld_shlibs_CXX=no
15118             fi
15119             ;;
15120         esac
15121         ;;
15122
15123       psos*)
15124         # FIXME: insert proper C++ library support
15125         ld_shlibs_CXX=no
15126         ;;
15127
15128       sunos4*)
15129         case $cc_basename in
15130           CC*)
15131             # Sun C++ 4.x
15132             # FIXME: insert proper C++ library support
15133             ld_shlibs_CXX=no
15134             ;;
15135           lcc*)
15136             # Lucid
15137             # FIXME: insert proper C++ library support
15138             ld_shlibs_CXX=no
15139             ;;
15140           *)
15141             # FIXME: insert proper C++ library support
15142             ld_shlibs_CXX=no
15143             ;;
15144         esac
15145         ;;
15146
15147       solaris*)
15148         case $cc_basename in
15149           CC* | sunCC*)
15150             # Sun C++ 4.2, 5.x and Centerline C++
15151             archive_cmds_need_lc_CXX=yes
15152             no_undefined_flag_CXX=' -zdefs'
15153             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15154             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15155               $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'
15156
15157             hardcode_libdir_flag_spec_CXX='-R$libdir'
15158             hardcode_shlibpath_var_CXX=no
15159             case $host_os in
15160               solaris2.[0-5] | solaris2.[0-5].*) ;;
15161               *)
15162                 # The compiler driver will combine and reorder linker options,
15163                 # but understands `-z linker_flag'.
15164                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15165                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15166                 ;;
15167             esac
15168             link_all_deplibs_CXX=yes
15169
15170             output_verbose_link_cmd='func_echo_all'
15171
15172             # Archives containing C++ object files must be created using
15173             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15174             # necessary to make sure instantiated templates are included
15175             # in the archive.
15176             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15177             ;;
15178           gcx*)
15179             # Green Hills C++ Compiler
15180             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15181
15182             # The C++ compiler must be used to create the archive.
15183             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15184             ;;
15185           *)
15186             # GNU C++ compiler with Solaris linker
15187             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15188               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15189               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15190                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15191                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15192                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15193
15194                 # Commands to make compiler produce verbose output that lists
15195                 # what "hidden" libraries, object files and flags are used when
15196                 # linking a shared library.
15197                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15198               else
15199                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15200                 # platform.
15201                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15202                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15203                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15204
15205                 # Commands to make compiler produce verbose output that lists
15206                 # what "hidden" libraries, object files and flags are used when
15207                 # linking a shared library.
15208                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15209               fi
15210
15211               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15212               case $host_os in
15213                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15214                 *)
15215                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15216                   ;;
15217               esac
15218             fi
15219             ;;
15220         esac
15221         ;;
15222
15223     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15224       no_undefined_flag_CXX='${wl}-z,text'
15225       archive_cmds_need_lc_CXX=no
15226       hardcode_shlibpath_var_CXX=no
15227       runpath_var='LD_RUN_PATH'
15228
15229       case $cc_basename in
15230         CC*)
15231           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15232           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15233           ;;
15234         *)
15235           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15236           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15237           ;;
15238       esac
15239       ;;
15240
15241       sysv5* | sco3.2v5* | sco5v6*)
15242         # Note: We can NOT use -z defs as we might desire, because we do not
15243         # link with -lc, and that would cause any symbols used from libc to
15244         # always be unresolved, which means just about no library would
15245         # ever link correctly.  If we're not using GNU ld we use -z text
15246         # though, which does catch some bad symbols but isn't as heavy-handed
15247         # as -z defs.
15248         no_undefined_flag_CXX='${wl}-z,text'
15249         allow_undefined_flag_CXX='${wl}-z,nodefs'
15250         archive_cmds_need_lc_CXX=no
15251         hardcode_shlibpath_var_CXX=no
15252         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15253         hardcode_libdir_separator_CXX=':'
15254         link_all_deplibs_CXX=yes
15255         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15256         runpath_var='LD_RUN_PATH'
15257
15258         case $cc_basename in
15259           CC*)
15260             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15261             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15262             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15263               '"$old_archive_cmds_CXX"
15264             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15265               '"$reload_cmds_CXX"
15266             ;;
15267           *)
15268             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15269             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15270             ;;
15271         esac
15272       ;;
15273
15274       tandem*)
15275         case $cc_basename in
15276           NCC*)
15277             # NonStop-UX NCC 3.20
15278             # FIXME: insert proper C++ library support
15279             ld_shlibs_CXX=no
15280             ;;
15281           *)
15282             # FIXME: insert proper C++ library support
15283             ld_shlibs_CXX=no
15284             ;;
15285         esac
15286         ;;
15287
15288       vxworks*)
15289         # FIXME: insert proper C++ library support
15290         ld_shlibs_CXX=no
15291         ;;
15292
15293       *)
15294         # FIXME: insert proper C++ library support
15295         ld_shlibs_CXX=no
15296         ;;
15297     esac
15298
15299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15300 $as_echo "$ld_shlibs_CXX" >&6; }
15301     test "$ld_shlibs_CXX" = no && can_build_shared=no
15302
15303     GCC_CXX="$GXX"
15304     LD_CXX="$LD"
15305
15306     ## CAVEAT EMPTOR:
15307     ## There is no encapsulation within the following macros, do not change
15308     ## the running order or otherwise move them around unless you know exactly
15309     ## what you are doing...
15310     # Dependencies to place before and after the object being linked:
15311 predep_objects_CXX=
15312 postdep_objects_CXX=
15313 predeps_CXX=
15314 postdeps_CXX=
15315 compiler_lib_search_path_CXX=
15316
15317 cat > conftest.$ac_ext <<_LT_EOF
15318 class Foo
15319 {
15320 public:
15321   Foo (void) { a = 0; }
15322 private:
15323   int a;
15324 };
15325 _LT_EOF
15326
15327
15328 _lt_libdeps_save_CFLAGS=$CFLAGS
15329 case "$CC $CFLAGS " in #(
15330 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15331 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15332 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15333 esac
15334
15335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15336   (eval $ac_compile) 2>&5
15337   ac_status=$?
15338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15339   test $ac_status = 0; }; then
15340   # Parse the compiler output and extract the necessary
15341   # objects, libraries and library flags.
15342
15343   # Sentinel used to keep track of whether or not we are before
15344   # the conftest object file.
15345   pre_test_object_deps_done=no
15346
15347   for p in `eval "$output_verbose_link_cmd"`; do
15348     case ${prev}${p} in
15349
15350     -L* | -R* | -l*)
15351        # Some compilers place space between "-{L,R}" and the path.
15352        # Remove the space.
15353        if test $p = "-L" ||
15354           test $p = "-R"; then
15355          prev=$p
15356          continue
15357        fi
15358
15359        # Expand the sysroot to ease extracting the directories later.
15360        if test -z "$prev"; then
15361          case $p in
15362          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15363          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15364          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15365          esac
15366        fi
15367        case $p in
15368        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15369        esac
15370        if test "$pre_test_object_deps_done" = no; then
15371          case ${prev} in
15372          -L | -R)
15373            # Internal compiler library paths should come after those
15374            # provided the user.  The postdeps already come after the
15375            # user supplied libs so there is no need to process them.
15376            if test -z "$compiler_lib_search_path_CXX"; then
15377              compiler_lib_search_path_CXX="${prev}${p}"
15378            else
15379              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15380            fi
15381            ;;
15382          # The "-l" case would never come before the object being
15383          # linked, so don't bother handling this case.
15384          esac
15385        else
15386          if test -z "$postdeps_CXX"; then
15387            postdeps_CXX="${prev}${p}"
15388          else
15389            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15390          fi
15391        fi
15392        prev=
15393        ;;
15394
15395     *.lto.$objext) ;; # Ignore GCC LTO objects
15396     *.$objext)
15397        # This assumes that the test object file only shows up
15398        # once in the compiler output.
15399        if test "$p" = "conftest.$objext"; then
15400          pre_test_object_deps_done=yes
15401          continue
15402        fi
15403
15404        if test "$pre_test_object_deps_done" = no; then
15405          if test -z "$predep_objects_CXX"; then
15406            predep_objects_CXX="$p"
15407          else
15408            predep_objects_CXX="$predep_objects_CXX $p"
15409          fi
15410        else
15411          if test -z "$postdep_objects_CXX"; then
15412            postdep_objects_CXX="$p"
15413          else
15414            postdep_objects_CXX="$postdep_objects_CXX $p"
15415          fi
15416        fi
15417        ;;
15418
15419     *) ;; # Ignore the rest.
15420
15421     esac
15422   done
15423
15424   # Clean up.
15425   rm -f a.out a.exe
15426 else
15427   echo "libtool.m4: error: problem compiling CXX test program"
15428 fi
15429
15430 $RM -f confest.$objext
15431 CFLAGS=$_lt_libdeps_save_CFLAGS
15432
15433 # PORTME: override above test on systems where it is broken
15434 case $host_os in
15435 interix[3-9]*)
15436   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15437   # hack all around it, let's just trust "g++" to DTRT.
15438   predep_objects_CXX=
15439   postdep_objects_CXX=
15440   postdeps_CXX=
15441   ;;
15442
15443 linux*)
15444   case `$CC -V 2>&1 | sed 5q` in
15445   *Sun\ C*)
15446     # Sun C++ 5.9
15447
15448     # The more standards-conforming stlport4 library is
15449     # incompatible with the Cstd library. Avoid specifying
15450     # it if it's in CXXFLAGS. Ignore libCrun as
15451     # -library=stlport4 depends on it.
15452     case " $CXX $CXXFLAGS " in
15453     *" -library=stlport4 "*)
15454       solaris_use_stlport4=yes
15455       ;;
15456     esac
15457
15458     if test "$solaris_use_stlport4" != yes; then
15459       postdeps_CXX='-library=Cstd -library=Crun'
15460     fi
15461     ;;
15462   esac
15463   ;;
15464
15465 solaris*)
15466   case $cc_basename in
15467   CC* | sunCC*)
15468     # The more standards-conforming stlport4 library is
15469     # incompatible with the Cstd library. Avoid specifying
15470     # it if it's in CXXFLAGS. Ignore libCrun as
15471     # -library=stlport4 depends on it.
15472     case " $CXX $CXXFLAGS " in
15473     *" -library=stlport4 "*)
15474       solaris_use_stlport4=yes
15475       ;;
15476     esac
15477
15478     # Adding this requires a known-good setup of shared libraries for
15479     # Sun compiler versions before 5.6, else PIC objects from an old
15480     # archive will be linked into the output, leading to subtle bugs.
15481     if test "$solaris_use_stlport4" != yes; then
15482       postdeps_CXX='-library=Cstd -library=Crun'
15483     fi
15484     ;;
15485   esac
15486   ;;
15487 esac
15488
15489
15490 case " $postdeps_CXX " in
15491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15492 esac
15493  compiler_lib_search_dirs_CXX=
15494 if test -n "${compiler_lib_search_path_CXX}"; then
15495  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15496 fi
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528     lt_prog_compiler_wl_CXX=
15529 lt_prog_compiler_pic_CXX=
15530 lt_prog_compiler_static_CXX=
15531
15532
15533   # C++ specific cases for pic, static, wl, etc.
15534   if test "$GXX" = yes; then
15535     lt_prog_compiler_wl_CXX='-Wl,'
15536     lt_prog_compiler_static_CXX='-static'
15537
15538     case $host_os in
15539     aix*)
15540       # All AIX code is PIC.
15541       if test "$host_cpu" = ia64; then
15542         # AIX 5 now supports IA64 processor
15543         lt_prog_compiler_static_CXX='-Bstatic'
15544       fi
15545       ;;
15546
15547     amigaos*)
15548       case $host_cpu in
15549       powerpc)
15550             # see comment about AmigaOS4 .so support
15551             lt_prog_compiler_pic_CXX='-fPIC'
15552         ;;
15553       m68k)
15554             # FIXME: we need at least 68020 code to build shared libraries, but
15555             # adding the `-m68020' flag to GCC prevents building anything better,
15556             # like `-m68040'.
15557             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15558         ;;
15559       esac
15560       ;;
15561
15562     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15563       # PIC is the default for these OSes.
15564       ;;
15565     mingw* | cygwin* | os2* | pw32* | cegcc*)
15566       # This hack is so that the source file can tell whether it is being
15567       # built for inclusion in a dll (and should export symbols for example).
15568       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15569       # (--disable-auto-import) libraries
15570       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15571       ;;
15572     darwin* | rhapsody*)
15573       # PIC is the default on this platform
15574       # Common symbols not allowed in MH_DYLIB files
15575       lt_prog_compiler_pic_CXX='-fno-common'
15576       ;;
15577     *djgpp*)
15578       # DJGPP does not support shared libraries at all
15579       lt_prog_compiler_pic_CXX=
15580       ;;
15581     haiku*)
15582       # PIC is the default for Haiku.
15583       # The "-static" flag exists, but is broken.
15584       lt_prog_compiler_static_CXX=
15585       ;;
15586     interix[3-9]*)
15587       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15588       # Instead, we relocate shared libraries at runtime.
15589       ;;
15590     sysv4*MP*)
15591       if test -d /usr/nec; then
15592         lt_prog_compiler_pic_CXX=-Kconform_pic
15593       fi
15594       ;;
15595     hpux*)
15596       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15597       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15598       # sets the default TLS model and affects inlining.
15599       case $host_cpu in
15600       hppa*64*)
15601         ;;
15602       *)
15603         lt_prog_compiler_pic_CXX='-fPIC'
15604         ;;
15605       esac
15606       ;;
15607     *qnx* | *nto*)
15608       # QNX uses GNU C++, but need to define -shared option too, otherwise
15609       # it will coredump.
15610       lt_prog_compiler_pic_CXX='-fPIC -shared'
15611       ;;
15612     *)
15613       lt_prog_compiler_pic_CXX='-fPIC'
15614       ;;
15615     esac
15616   else
15617     case $host_os in
15618       aix[4-9]*)
15619         # All AIX code is PIC.
15620         if test "$host_cpu" = ia64; then
15621           # AIX 5 now supports IA64 processor
15622           lt_prog_compiler_static_CXX='-Bstatic'
15623         else
15624           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15625         fi
15626         ;;
15627       chorus*)
15628         case $cc_basename in
15629         cxch68*)
15630           # Green Hills C++ Compiler
15631           # _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"
15632           ;;
15633         esac
15634         ;;
15635       mingw* | cygwin* | os2* | pw32* | cegcc*)
15636         # This hack is so that the source file can tell whether it is being
15637         # built for inclusion in a dll (and should export symbols for example).
15638         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15639         ;;
15640       dgux*)
15641         case $cc_basename in
15642           ec++*)
15643             lt_prog_compiler_pic_CXX='-KPIC'
15644             ;;
15645           ghcx*)
15646             # Green Hills C++ Compiler
15647             lt_prog_compiler_pic_CXX='-pic'
15648             ;;
15649           *)
15650             ;;
15651         esac
15652         ;;
15653       freebsd* | dragonfly*)
15654         # FreeBSD uses GNU C++
15655         ;;
15656       hpux9* | hpux10* | hpux11*)
15657         case $cc_basename in
15658           CC*)
15659             lt_prog_compiler_wl_CXX='-Wl,'
15660             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15661             if test "$host_cpu" != ia64; then
15662               lt_prog_compiler_pic_CXX='+Z'
15663             fi
15664             ;;
15665           aCC*)
15666             lt_prog_compiler_wl_CXX='-Wl,'
15667             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15668             case $host_cpu in
15669             hppa*64*|ia64*)
15670               # +Z the default
15671               ;;
15672             *)
15673               lt_prog_compiler_pic_CXX='+Z'
15674               ;;
15675             esac
15676             ;;
15677           *)
15678             ;;
15679         esac
15680         ;;
15681       interix*)
15682         # This is c89, which is MS Visual C++ (no shared libs)
15683         # Anyone wants to do a port?
15684         ;;
15685       irix5* | irix6* | nonstopux*)
15686         case $cc_basename in
15687           CC*)
15688             lt_prog_compiler_wl_CXX='-Wl,'
15689             lt_prog_compiler_static_CXX='-non_shared'
15690             # CC pic flag -KPIC is the default.
15691             ;;
15692           *)
15693             ;;
15694         esac
15695         ;;
15696       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15697         case $cc_basename in
15698           KCC*)
15699             # KAI C++ Compiler
15700             lt_prog_compiler_wl_CXX='--backend -Wl,'
15701             lt_prog_compiler_pic_CXX='-fPIC'
15702             ;;
15703           ecpc* )
15704             # old Intel C++ for x86_64 which still supported -KPIC.
15705             lt_prog_compiler_wl_CXX='-Wl,'
15706             lt_prog_compiler_pic_CXX='-KPIC'
15707             lt_prog_compiler_static_CXX='-static'
15708             ;;
15709           icpc* )
15710             # Intel C++, used to be incompatible with GCC.
15711             # ICC 10 doesn't accept -KPIC any more.
15712             lt_prog_compiler_wl_CXX='-Wl,'
15713             lt_prog_compiler_pic_CXX='-fPIC'
15714             lt_prog_compiler_static_CXX='-static'
15715             ;;
15716           pgCC* | pgcpp*)
15717             # Portland Group C++ compiler
15718             lt_prog_compiler_wl_CXX='-Wl,'
15719             lt_prog_compiler_pic_CXX='-fpic'
15720             lt_prog_compiler_static_CXX='-Bstatic'
15721             ;;
15722           cxx*)
15723             # Compaq C++
15724             # Make sure the PIC flag is empty.  It appears that all Alpha
15725             # Linux and Compaq Tru64 Unix objects are PIC.
15726             lt_prog_compiler_pic_CXX=
15727             lt_prog_compiler_static_CXX='-non_shared'
15728             ;;
15729           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15730             # IBM XL 8.0, 9.0 on PPC and BlueGene
15731             lt_prog_compiler_wl_CXX='-Wl,'
15732             lt_prog_compiler_pic_CXX='-qpic'
15733             lt_prog_compiler_static_CXX='-qstaticlink'
15734             ;;
15735           *)
15736             case `$CC -V 2>&1 | sed 5q` in
15737             *Sun\ C*)
15738               # Sun C++ 5.9
15739               lt_prog_compiler_pic_CXX='-KPIC'
15740               lt_prog_compiler_static_CXX='-Bstatic'
15741               lt_prog_compiler_wl_CXX='-Qoption ld '
15742               ;;
15743             esac
15744             ;;
15745         esac
15746         ;;
15747       lynxos*)
15748         ;;
15749       m88k*)
15750         ;;
15751       mvs*)
15752         case $cc_basename in
15753           cxx*)
15754             lt_prog_compiler_pic_CXX='-W c,exportall'
15755             ;;
15756           *)
15757             ;;
15758         esac
15759         ;;
15760       netbsd*)
15761         ;;
15762       *qnx* | *nto*)
15763         # QNX uses GNU C++, but need to define -shared option too, otherwise
15764         # it will coredump.
15765         lt_prog_compiler_pic_CXX='-fPIC -shared'
15766         ;;
15767       osf3* | osf4* | osf5*)
15768         case $cc_basename in
15769           KCC*)
15770             lt_prog_compiler_wl_CXX='--backend -Wl,'
15771             ;;
15772           RCC*)
15773             # Rational C++ 2.4.1
15774             lt_prog_compiler_pic_CXX='-pic'
15775             ;;
15776           cxx*)
15777             # Digital/Compaq C++
15778             lt_prog_compiler_wl_CXX='-Wl,'
15779             # Make sure the PIC flag is empty.  It appears that all Alpha
15780             # Linux and Compaq Tru64 Unix objects are PIC.
15781             lt_prog_compiler_pic_CXX=
15782             lt_prog_compiler_static_CXX='-non_shared'
15783             ;;
15784           *)
15785             ;;
15786         esac
15787         ;;
15788       psos*)
15789         ;;
15790       solaris*)
15791         case $cc_basename in
15792           CC* | sunCC*)
15793             # Sun C++ 4.2, 5.x and Centerline C++
15794             lt_prog_compiler_pic_CXX='-KPIC'
15795             lt_prog_compiler_static_CXX='-Bstatic'
15796             lt_prog_compiler_wl_CXX='-Qoption ld '
15797             ;;
15798           gcx*)
15799             # Green Hills C++ Compiler
15800             lt_prog_compiler_pic_CXX='-PIC'
15801             ;;
15802           *)
15803             ;;
15804         esac
15805         ;;
15806       sunos4*)
15807         case $cc_basename in
15808           CC*)
15809             # Sun C++ 4.x
15810             lt_prog_compiler_pic_CXX='-pic'
15811             lt_prog_compiler_static_CXX='-Bstatic'
15812             ;;
15813           lcc*)
15814             # Lucid
15815             lt_prog_compiler_pic_CXX='-pic'
15816             ;;
15817           *)
15818             ;;
15819         esac
15820         ;;
15821       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15822         case $cc_basename in
15823           CC*)
15824             lt_prog_compiler_wl_CXX='-Wl,'
15825             lt_prog_compiler_pic_CXX='-KPIC'
15826             lt_prog_compiler_static_CXX='-Bstatic'
15827             ;;
15828         esac
15829         ;;
15830       tandem*)
15831         case $cc_basename in
15832           NCC*)
15833             # NonStop-UX NCC 3.20
15834             lt_prog_compiler_pic_CXX='-KPIC'
15835             ;;
15836           *)
15837             ;;
15838         esac
15839         ;;
15840       vxworks*)
15841         ;;
15842       *)
15843         lt_prog_compiler_can_build_shared_CXX=no
15844         ;;
15845     esac
15846   fi
15847
15848 case $host_os in
15849   # For platforms which do not support PIC, -DPIC is meaningless:
15850   *djgpp*)
15851     lt_prog_compiler_pic_CXX=
15852     ;;
15853   *)
15854     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15855     ;;
15856 esac
15857
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15859 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15860 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15861   $as_echo_n "(cached) " >&6
15862 else
15863   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15864 fi
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15866 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15867 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15868
15869 #
15870 # Check to make sure the PIC flag actually works.
15871 #
15872 if test -n "$lt_prog_compiler_pic_CXX"; then
15873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15874 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15875 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15876   $as_echo_n "(cached) " >&6
15877 else
15878   lt_cv_prog_compiler_pic_works_CXX=no
15879    ac_outfile=conftest.$ac_objext
15880    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15881    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15882    # Insert the option either (1) after the last *FLAGS variable, or
15883    # (2) before a word containing "conftest.", or (3) at the end.
15884    # Note that $ac_compile itself does not contain backslashes and begins
15885    # with a dollar sign (not a hyphen), so the echo should work correctly.
15886    # The option is referenced via a variable to avoid confusing sed.
15887    lt_compile=`echo "$ac_compile" | $SED \
15888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15890    -e 's:$: $lt_compiler_flag:'`
15891    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15892    (eval "$lt_compile" 2>conftest.err)
15893    ac_status=$?
15894    cat conftest.err >&5
15895    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896    if (exit $ac_status) && test -s "$ac_outfile"; then
15897      # The compiler can only warn and ignore the option if not recognized
15898      # So say no if there are warnings other than the usual output.
15899      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15900      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15901      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15902        lt_cv_prog_compiler_pic_works_CXX=yes
15903      fi
15904    fi
15905    $RM conftest*
15906
15907 fi
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15909 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15910
15911 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15912     case $lt_prog_compiler_pic_CXX in
15913      "" | " "*) ;;
15914      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15915      esac
15916 else
15917     lt_prog_compiler_pic_CXX=
15918      lt_prog_compiler_can_build_shared_CXX=no
15919 fi
15920
15921 fi
15922
15923
15924
15925
15926
15927 #
15928 # Check to make sure the static flag actually works.
15929 #
15930 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15932 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15933 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15934   $as_echo_n "(cached) " >&6
15935 else
15936   lt_cv_prog_compiler_static_works_CXX=no
15937    save_LDFLAGS="$LDFLAGS"
15938    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15939    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15940    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15941      # The linker can only warn and ignore the option if not recognized
15942      # So say no if there are warnings
15943      if test -s conftest.err; then
15944        # Append any errors to the config.log.
15945        cat conftest.err 1>&5
15946        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15947        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15948        if diff conftest.exp conftest.er2 >/dev/null; then
15949          lt_cv_prog_compiler_static_works_CXX=yes
15950        fi
15951      else
15952        lt_cv_prog_compiler_static_works_CXX=yes
15953      fi
15954    fi
15955    $RM -r conftest*
15956    LDFLAGS="$save_LDFLAGS"
15957
15958 fi
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15960 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15961
15962 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15963     :
15964 else
15965     lt_prog_compiler_static_CXX=
15966 fi
15967
15968
15969
15970
15971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15972 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15973 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15974   $as_echo_n "(cached) " >&6
15975 else
15976   lt_cv_prog_compiler_c_o_CXX=no
15977    $RM -r conftest 2>/dev/null
15978    mkdir conftest
15979    cd conftest
15980    mkdir out
15981    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15982
15983    lt_compiler_flag="-o out/conftest2.$ac_objext"
15984    # Insert the option either (1) after the last *FLAGS variable, or
15985    # (2) before a word containing "conftest.", or (3) at the end.
15986    # Note that $ac_compile itself does not contain backslashes and begins
15987    # with a dollar sign (not a hyphen), so the echo should work correctly.
15988    lt_compile=`echo "$ac_compile" | $SED \
15989    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15990    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15991    -e 's:$: $lt_compiler_flag:'`
15992    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15993    (eval "$lt_compile" 2>out/conftest.err)
15994    ac_status=$?
15995    cat out/conftest.err >&5
15996    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15998    then
15999      # The compiler can only warn and ignore the option if not recognized
16000      # So say no if there are warnings
16001      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16002      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16003      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16004        lt_cv_prog_compiler_c_o_CXX=yes
16005      fi
16006    fi
16007    chmod u+w . 2>&5
16008    $RM conftest*
16009    # SGI C++ compiler will create directory out/ii_files/ for
16010    # template instantiation
16011    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16012    $RM out/* && rmdir out
16013    cd ..
16014    $RM -r conftest
16015    $RM conftest*
16016
16017 fi
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16019 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16020
16021
16022
16023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16024 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16025 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16026   $as_echo_n "(cached) " >&6
16027 else
16028   lt_cv_prog_compiler_c_o_CXX=no
16029    $RM -r conftest 2>/dev/null
16030    mkdir conftest
16031    cd conftest
16032    mkdir out
16033    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16034
16035    lt_compiler_flag="-o out/conftest2.$ac_objext"
16036    # Insert the option either (1) after the last *FLAGS variable, or
16037    # (2) before a word containing "conftest.", or (3) at the end.
16038    # Note that $ac_compile itself does not contain backslashes and begins
16039    # with a dollar sign (not a hyphen), so the echo should work correctly.
16040    lt_compile=`echo "$ac_compile" | $SED \
16041    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16042    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16043    -e 's:$: $lt_compiler_flag:'`
16044    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16045    (eval "$lt_compile" 2>out/conftest.err)
16046    ac_status=$?
16047    cat out/conftest.err >&5
16048    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16050    then
16051      # The compiler can only warn and ignore the option if not recognized
16052      # So say no if there are warnings
16053      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16054      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16055      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16056        lt_cv_prog_compiler_c_o_CXX=yes
16057      fi
16058    fi
16059    chmod u+w . 2>&5
16060    $RM conftest*
16061    # SGI C++ compiler will create directory out/ii_files/ for
16062    # template instantiation
16063    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16064    $RM out/* && rmdir out
16065    cd ..
16066    $RM -r conftest
16067    $RM conftest*
16068
16069 fi
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16071 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16072
16073
16074
16075
16076 hard_links="nottested"
16077 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16078   # do not overwrite the value of need_locks provided by the user
16079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16080 $as_echo_n "checking if we can lock with hard links... " >&6; }
16081   hard_links=yes
16082   $RM conftest*
16083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16084   touch conftest.a
16085   ln conftest.a conftest.b 2>&5 || hard_links=no
16086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16088 $as_echo "$hard_links" >&6; }
16089   if test "$hard_links" = no; then
16090     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16091 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16092     need_locks=warn
16093   fi
16094 else
16095   need_locks=no
16096 fi
16097
16098
16099
16100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16101 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16102
16103   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16104   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16105   case $host_os in
16106   aix[4-9]*)
16107     # If we're using GNU nm, then we don't want the "-C" option.
16108     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16109     # Also, AIX nm treats weak defined symbols like other global defined
16110     # symbols, whereas GNU nm marks them as "W".
16111     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16112       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'
16113     else
16114       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'
16115     fi
16116     ;;
16117   pw32*)
16118     export_symbols_cmds_CXX="$ltdll_cmds"
16119     ;;
16120   cygwin* | mingw* | cegcc*)
16121     case $cc_basename in
16122     cl*)
16123       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16124       ;;
16125     *)
16126       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'
16127       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16128       ;;
16129     esac
16130     ;;
16131   *)
16132     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16133     ;;
16134   esac
16135
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16137 $as_echo "$ld_shlibs_CXX" >&6; }
16138 test "$ld_shlibs_CXX" = no && can_build_shared=no
16139
16140 with_gnu_ld_CXX=$with_gnu_ld
16141
16142
16143
16144
16145
16146
16147 #
16148 # Do we need to explicitly link libc?
16149 #
16150 case "x$archive_cmds_need_lc_CXX" in
16151 x|xyes)
16152   # Assume -lc should be added
16153   archive_cmds_need_lc_CXX=yes
16154
16155   if test "$enable_shared" = yes && test "$GCC" = yes; then
16156     case $archive_cmds_CXX in
16157     *'~'*)
16158       # FIXME: we may have to deal with multi-command sequences.
16159       ;;
16160     '$CC '*)
16161       # Test whether the compiler implicitly links with -lc since on some
16162       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16163       # to ld, don't add -lc before -lgcc.
16164       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16165 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16166 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16167   $as_echo_n "(cached) " >&6
16168 else
16169   $RM conftest*
16170         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16171
16172         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16173   (eval $ac_compile) 2>&5
16174   ac_status=$?
16175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16176   test $ac_status = 0; } 2>conftest.err; then
16177           soname=conftest
16178           lib=conftest
16179           libobjs=conftest.$ac_objext
16180           deplibs=
16181           wl=$lt_prog_compiler_wl_CXX
16182           pic_flag=$lt_prog_compiler_pic_CXX
16183           compiler_flags=-v
16184           linker_flags=-v
16185           verstring=
16186           output_objdir=.
16187           libname=conftest
16188           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16189           allow_undefined_flag_CXX=
16190           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16191   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16192   ac_status=$?
16193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16194   test $ac_status = 0; }
16195           then
16196             lt_cv_archive_cmds_need_lc_CXX=no
16197           else
16198             lt_cv_archive_cmds_need_lc_CXX=yes
16199           fi
16200           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16201         else
16202           cat conftest.err 1>&5
16203         fi
16204         $RM conftest*
16205
16206 fi
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16208 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16209       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16210       ;;
16211     esac
16212   fi
16213   ;;
16214 esac
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16278 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16279
16280 library_names_spec=
16281 libname_spec='lib$name'
16282 soname_spec=
16283 shrext_cmds=".so"
16284 postinstall_cmds=
16285 postuninstall_cmds=
16286 finish_cmds=
16287 finish_eval=
16288 shlibpath_var=
16289 shlibpath_overrides_runpath=unknown
16290 version_type=none
16291 dynamic_linker="$host_os ld.so"
16292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16293 need_lib_prefix=unknown
16294 hardcode_into_libs=no
16295
16296 # when you set need_version to no, make sure it does not cause -set_version
16297 # flags to be left without arguments
16298 need_version=unknown
16299
16300 case $host_os in
16301 aix3*)
16302   version_type=linux # correct to gnu/linux during the next big refactor
16303   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16304   shlibpath_var=LIBPATH
16305
16306   # AIX 3 has no versioning support, so we append a major version to the name.
16307   soname_spec='${libname}${release}${shared_ext}$major'
16308   ;;
16309
16310 aix[4-9]*)
16311   version_type=linux # correct to gnu/linux during the next big refactor
16312   need_lib_prefix=no
16313   need_version=no
16314   hardcode_into_libs=yes
16315   if test "$host_cpu" = ia64; then
16316     # AIX 5 supports IA64
16317     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16318     shlibpath_var=LD_LIBRARY_PATH
16319   else
16320     # With GCC up to 2.95.x, collect2 would create an import file
16321     # for dependence libraries.  The import file would start with
16322     # the line `#! .'.  This would cause the generated library to
16323     # depend on `.', always an invalid library.  This was fixed in
16324     # development snapshots of GCC prior to 3.0.
16325     case $host_os in
16326       aix4 | aix4.[01] | aix4.[01].*)
16327       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16328            echo ' yes '
16329            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16330         :
16331       else
16332         can_build_shared=no
16333       fi
16334       ;;
16335     esac
16336     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16337     # soname into executable. Probably we can add versioning support to
16338     # collect2, so additional links can be useful in future.
16339     if test "$aix_use_runtimelinking" = yes; then
16340       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16341       # instead of lib<name>.a to let people know that these are not
16342       # typical AIX shared libraries.
16343       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16344     else
16345       # We preserve .a as extension for shared libraries through AIX4.2
16346       # and later when we are not doing run time linking.
16347       library_names_spec='${libname}${release}.a $libname.a'
16348       soname_spec='${libname}${release}${shared_ext}$major'
16349     fi
16350     shlibpath_var=LIBPATH
16351   fi
16352   ;;
16353
16354 amigaos*)
16355   case $host_cpu in
16356   powerpc)
16357     # Since July 2007 AmigaOS4 officially supports .so libraries.
16358     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16360     ;;
16361   m68k)
16362     library_names_spec='$libname.ixlibrary $libname.a'
16363     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16364     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'
16365     ;;
16366   esac
16367   ;;
16368
16369 beos*)
16370   library_names_spec='${libname}${shared_ext}'
16371   dynamic_linker="$host_os ld.so"
16372   shlibpath_var=LIBRARY_PATH
16373   ;;
16374
16375 bsdi[45]*)
16376   version_type=linux # correct to gnu/linux during the next big refactor
16377   need_version=no
16378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379   soname_spec='${libname}${release}${shared_ext}$major'
16380   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16381   shlibpath_var=LD_LIBRARY_PATH
16382   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16383   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16384   # the default ld.so.conf also contains /usr/contrib/lib and
16385   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16386   # libtool to hard-code these into programs
16387   ;;
16388
16389 cygwin* | mingw* | pw32* | cegcc*)
16390   version_type=windows
16391   shrext_cmds=".dll"
16392   need_version=no
16393   need_lib_prefix=no
16394
16395   case $GCC,$cc_basename in
16396   yes,*)
16397     # gcc
16398     library_names_spec='$libname.dll.a'
16399     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16400     postinstall_cmds='base_file=`basename \${file}`~
16401       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16402       dldir=$destdir/`dirname \$dlpath`~
16403       test -d \$dldir || mkdir -p \$dldir~
16404       $install_prog $dir/$dlname \$dldir/$dlname~
16405       chmod a+x \$dldir/$dlname~
16406       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16407         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16408       fi'
16409     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16410       dlpath=$dir/\$dldll~
16411        $RM \$dlpath'
16412     shlibpath_overrides_runpath=yes
16413
16414     case $host_os in
16415     cygwin*)
16416       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16417       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16418
16419       ;;
16420     mingw* | cegcc*)
16421       # MinGW DLLs use traditional 'lib' prefix
16422       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16423       ;;
16424     pw32*)
16425       # pw32 DLLs use 'pw' prefix rather than 'lib'
16426       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16427       ;;
16428     esac
16429     dynamic_linker='Win32 ld.exe'
16430     ;;
16431
16432   *,cl*)
16433     # Native MSVC
16434     libname_spec='$name'
16435     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16436     library_names_spec='${libname}.dll.lib'
16437
16438     case $build_os in
16439     mingw*)
16440       sys_lib_search_path_spec=
16441       lt_save_ifs=$IFS
16442       IFS=';'
16443       for lt_path in $LIB
16444       do
16445         IFS=$lt_save_ifs
16446         # Let DOS variable expansion print the short 8.3 style file name.
16447         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16448         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16449       done
16450       IFS=$lt_save_ifs
16451       # Convert to MSYS style.
16452       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16453       ;;
16454     cygwin*)
16455       # Convert to unix form, then to dos form, then back to unix form
16456       # but this time dos style (no spaces!) so that the unix form looks
16457       # like /cygdrive/c/PROGRA~1:/cygdr...
16458       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16459       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16460       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16461       ;;
16462     *)
16463       sys_lib_search_path_spec="$LIB"
16464       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16465         # It is most probably a Windows format PATH.
16466         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16467       else
16468         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16469       fi
16470       # FIXME: find the short name or the path components, as spaces are
16471       # common. (e.g. "Program Files" -> "PROGRA~1")
16472       ;;
16473     esac
16474
16475     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16476     postinstall_cmds='base_file=`basename \${file}`~
16477       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16478       dldir=$destdir/`dirname \$dlpath`~
16479       test -d \$dldir || mkdir -p \$dldir~
16480       $install_prog $dir/$dlname \$dldir/$dlname'
16481     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16482       dlpath=$dir/\$dldll~
16483        $RM \$dlpath'
16484     shlibpath_overrides_runpath=yes
16485     dynamic_linker='Win32 link.exe'
16486     ;;
16487
16488   *)
16489     # Assume MSVC wrapper
16490     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16491     dynamic_linker='Win32 ld.exe'
16492     ;;
16493   esac
16494   # FIXME: first we should search . and the directory the executable is in
16495   shlibpath_var=PATH
16496   ;;
16497
16498 darwin* | rhapsody*)
16499   dynamic_linker="$host_os dyld"
16500   version_type=darwin
16501   need_lib_prefix=no
16502   need_version=no
16503   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16504   soname_spec='${libname}${release}${major}$shared_ext'
16505   shlibpath_overrides_runpath=yes
16506   shlibpath_var=DYLD_LIBRARY_PATH
16507   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16508
16509   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16510   ;;
16511
16512 dgux*)
16513   version_type=linux # correct to gnu/linux during the next big refactor
16514   need_lib_prefix=no
16515   need_version=no
16516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16517   soname_spec='${libname}${release}${shared_ext}$major'
16518   shlibpath_var=LD_LIBRARY_PATH
16519   ;;
16520
16521 freebsd* | dragonfly*)
16522   # DragonFly does not have aout.  When/if they implement a new
16523   # versioning mechanism, adjust this.
16524   if test -x /usr/bin/objformat; then
16525     objformat=`/usr/bin/objformat`
16526   else
16527     case $host_os in
16528     freebsd[23].*) objformat=aout ;;
16529     *) objformat=elf ;;
16530     esac
16531   fi
16532   version_type=freebsd-$objformat
16533   case $version_type in
16534     freebsd-elf*)
16535       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16536       need_version=no
16537       need_lib_prefix=no
16538       ;;
16539     freebsd-*)
16540       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16541       need_version=yes
16542       ;;
16543   esac
16544   shlibpath_var=LD_LIBRARY_PATH
16545   case $host_os in
16546   freebsd2.*)
16547     shlibpath_overrides_runpath=yes
16548     ;;
16549   freebsd3.[01]* | freebsdelf3.[01]*)
16550     shlibpath_overrides_runpath=yes
16551     hardcode_into_libs=yes
16552     ;;
16553   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16554   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16555     shlibpath_overrides_runpath=no
16556     hardcode_into_libs=yes
16557     ;;
16558   *) # from 4.6 on, and DragonFly
16559     shlibpath_overrides_runpath=yes
16560     hardcode_into_libs=yes
16561     ;;
16562   esac
16563   ;;
16564
16565 gnu*)
16566   version_type=linux # correct to gnu/linux during the next big refactor
16567   need_lib_prefix=no
16568   need_version=no
16569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16570   soname_spec='${libname}${release}${shared_ext}$major'
16571   shlibpath_var=LD_LIBRARY_PATH
16572   shlibpath_overrides_runpath=no
16573   hardcode_into_libs=yes
16574   ;;
16575
16576 haiku*)
16577   version_type=linux # correct to gnu/linux during the next big refactor
16578   need_lib_prefix=no
16579   need_version=no
16580   dynamic_linker="$host_os runtime_loader"
16581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16582   soname_spec='${libname}${release}${shared_ext}$major'
16583   shlibpath_var=LIBRARY_PATH
16584   shlibpath_overrides_runpath=yes
16585   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16586   hardcode_into_libs=yes
16587   ;;
16588
16589 hpux9* | hpux10* | hpux11*)
16590   # Give a soname corresponding to the major version so that dld.sl refuses to
16591   # link against other versions.
16592   version_type=sunos
16593   need_lib_prefix=no
16594   need_version=no
16595   case $host_cpu in
16596   ia64*)
16597     shrext_cmds='.so'
16598     hardcode_into_libs=yes
16599     dynamic_linker="$host_os dld.so"
16600     shlibpath_var=LD_LIBRARY_PATH
16601     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603     soname_spec='${libname}${release}${shared_ext}$major'
16604     if test "X$HPUX_IA64_MODE" = X32; then
16605       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16606     else
16607       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16608     fi
16609     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16610     ;;
16611   hppa*64*)
16612     shrext_cmds='.sl'
16613     hardcode_into_libs=yes
16614     dynamic_linker="$host_os dld.sl"
16615     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16616     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16618     soname_spec='${libname}${release}${shared_ext}$major'
16619     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16620     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16621     ;;
16622   *)
16623     shrext_cmds='.sl'
16624     dynamic_linker="$host_os dld.sl"
16625     shlibpath_var=SHLIB_PATH
16626     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628     soname_spec='${libname}${release}${shared_ext}$major'
16629     ;;
16630   esac
16631   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16632   postinstall_cmds='chmod 555 $lib'
16633   # or fails outright, so override atomically:
16634   install_override_mode=555
16635   ;;
16636
16637 interix[3-9]*)
16638   version_type=linux # correct to gnu/linux during the next big refactor
16639   need_lib_prefix=no
16640   need_version=no
16641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16642   soname_spec='${libname}${release}${shared_ext}$major'
16643   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16644   shlibpath_var=LD_LIBRARY_PATH
16645   shlibpath_overrides_runpath=no
16646   hardcode_into_libs=yes
16647   ;;
16648
16649 irix5* | irix6* | nonstopux*)
16650   case $host_os in
16651     nonstopux*) version_type=nonstopux ;;
16652     *)
16653         if test "$lt_cv_prog_gnu_ld" = yes; then
16654                 version_type=linux # correct to gnu/linux during the next big refactor
16655         else
16656                 version_type=irix
16657         fi ;;
16658   esac
16659   need_lib_prefix=no
16660   need_version=no
16661   soname_spec='${libname}${release}${shared_ext}$major'
16662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16663   case $host_os in
16664   irix5* | nonstopux*)
16665     libsuff= shlibsuff=
16666     ;;
16667   *)
16668     case $LD in # libtool.m4 will add one of these switches to LD
16669     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16670       libsuff= shlibsuff= libmagic=32-bit;;
16671     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16672       libsuff=32 shlibsuff=N32 libmagic=N32;;
16673     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16674       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16675     *) libsuff= shlibsuff= libmagic=never-match;;
16676     esac
16677     ;;
16678   esac
16679   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16680   shlibpath_overrides_runpath=no
16681   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16682   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16683   hardcode_into_libs=yes
16684   ;;
16685
16686 # No shared lib support for Linux oldld, aout, or coff.
16687 linux*oldld* | linux*aout* | linux*coff*)
16688   dynamic_linker=no
16689   ;;
16690
16691 # This must be glibc/ELF.
16692 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16693   version_type=linux # correct to gnu/linux during the next big refactor
16694   need_lib_prefix=no
16695   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16699   shlibpath_var=LD_LIBRARY_PATH
16700   shlibpath_overrides_runpath=no
16701
16702   # Some binutils ld are patched to set DT_RUNPATH
16703   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16704   $as_echo_n "(cached) " >&6
16705 else
16706   lt_cv_shlibpath_overrides_runpath=no
16707     save_LDFLAGS=$LDFLAGS
16708     save_libdir=$libdir
16709     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16710          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16711     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h.  */
16713
16714 int
16715 main ()
16716 {
16717
16718   ;
16719   return 0;
16720 }
16721 _ACEOF
16722 if ac_fn_cxx_try_link "$LINENO"; then :
16723   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16724   lt_cv_shlibpath_overrides_runpath=yes
16725 fi
16726 fi
16727 rm -f core conftest.err conftest.$ac_objext \
16728     conftest$ac_exeext conftest.$ac_ext
16729     LDFLAGS=$save_LDFLAGS
16730     libdir=$save_libdir
16731
16732 fi
16733
16734   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16735
16736   # This implies no fast_install, which is unacceptable.
16737   # Some rework will be needed to allow for fast_install
16738   # before this can be enabled.
16739   hardcode_into_libs=yes
16740
16741   # Add ABI-specific directories to the system library path.
16742   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16743
16744   # Append ld.so.conf contents to the search path
16745   if test -f /etc/ld.so.conf; then
16746     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' ' '`
16747     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16748
16749   fi
16750
16751   # We used to test for /lib/ld.so.1 and disable shared libraries on
16752   # powerpc, because MkLinux only supported shared libraries with the
16753   # GNU dynamic linker.  Since this was broken with cross compilers,
16754   # most powerpc-linux boxes support dynamic linking these days and
16755   # people can always --disable-shared, the test was removed, and we
16756   # assume the GNU/Linux dynamic linker is in use.
16757   dynamic_linker='GNU/Linux ld.so'
16758   ;;
16759
16760 netbsd*)
16761   version_type=sunos
16762   need_lib_prefix=no
16763   need_version=no
16764   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16766     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16767     dynamic_linker='NetBSD (a.out) ld.so'
16768   else
16769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16770     soname_spec='${libname}${release}${shared_ext}$major'
16771     dynamic_linker='NetBSD ld.elf_so'
16772   fi
16773   shlibpath_var=LD_LIBRARY_PATH
16774   shlibpath_overrides_runpath=yes
16775   hardcode_into_libs=yes
16776   ;;
16777
16778 newsos6)
16779   version_type=linux # correct to gnu/linux during the next big refactor
16780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781   shlibpath_var=LD_LIBRARY_PATH
16782   shlibpath_overrides_runpath=yes
16783   ;;
16784
16785 *nto* | *qnx*)
16786   version_type=qnx
16787   need_lib_prefix=no
16788   need_version=no
16789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790   soname_spec='${libname}${release}${shared_ext}$major'
16791   shlibpath_var=LD_LIBRARY_PATH
16792   shlibpath_overrides_runpath=no
16793   hardcode_into_libs=yes
16794   dynamic_linker='ldqnx.so'
16795   ;;
16796
16797 openbsd*)
16798   version_type=sunos
16799   sys_lib_dlsearch_path_spec="/usr/lib"
16800   need_lib_prefix=no
16801   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16802   case $host_os in
16803     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16804     *)                          need_version=no  ;;
16805   esac
16806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16807   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16808   shlibpath_var=LD_LIBRARY_PATH
16809   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16810     case $host_os in
16811       openbsd2.[89] | openbsd2.[89].*)
16812         shlibpath_overrides_runpath=no
16813         ;;
16814       *)
16815         shlibpath_overrides_runpath=yes
16816         ;;
16817       esac
16818   else
16819     shlibpath_overrides_runpath=yes
16820   fi
16821   ;;
16822
16823 os2*)
16824   libname_spec='$name'
16825   shrext_cmds=".dll"
16826   need_lib_prefix=no
16827   library_names_spec='$libname${shared_ext} $libname.a'
16828   dynamic_linker='OS/2 ld.exe'
16829   shlibpath_var=LIBPATH
16830   ;;
16831
16832 osf3* | osf4* | osf5*)
16833   version_type=osf
16834   need_lib_prefix=no
16835   need_version=no
16836   soname_spec='${libname}${release}${shared_ext}$major'
16837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838   shlibpath_var=LD_LIBRARY_PATH
16839   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16840   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16841   ;;
16842
16843 rdos*)
16844   dynamic_linker=no
16845   ;;
16846
16847 solaris*)
16848   version_type=linux # correct to gnu/linux during the next big refactor
16849   need_lib_prefix=no
16850   need_version=no
16851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852   soname_spec='${libname}${release}${shared_ext}$major'
16853   shlibpath_var=LD_LIBRARY_PATH
16854   shlibpath_overrides_runpath=yes
16855   hardcode_into_libs=yes
16856   # ldd complains unless libraries are executable
16857   postinstall_cmds='chmod +x $lib'
16858   ;;
16859
16860 sunos4*)
16861   version_type=sunos
16862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16863   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16864   shlibpath_var=LD_LIBRARY_PATH
16865   shlibpath_overrides_runpath=yes
16866   if test "$with_gnu_ld" = yes; then
16867     need_lib_prefix=no
16868   fi
16869   need_version=yes
16870   ;;
16871
16872 sysv4 | sysv4.3*)
16873   version_type=linux # correct to gnu/linux during the next big refactor
16874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16875   soname_spec='${libname}${release}${shared_ext}$major'
16876   shlibpath_var=LD_LIBRARY_PATH
16877   case $host_vendor in
16878     sni)
16879       shlibpath_overrides_runpath=no
16880       need_lib_prefix=no
16881       runpath_var=LD_RUN_PATH
16882       ;;
16883     siemens)
16884       need_lib_prefix=no
16885       ;;
16886     motorola)
16887       need_lib_prefix=no
16888       need_version=no
16889       shlibpath_overrides_runpath=no
16890       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16891       ;;
16892   esac
16893   ;;
16894
16895 sysv4*MP*)
16896   if test -d /usr/nec ;then
16897     version_type=linux # correct to gnu/linux during the next big refactor
16898     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16899     soname_spec='$libname${shared_ext}.$major'
16900     shlibpath_var=LD_LIBRARY_PATH
16901   fi
16902   ;;
16903
16904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16905   version_type=freebsd-elf
16906   need_lib_prefix=no
16907   need_version=no
16908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16909   soname_spec='${libname}${release}${shared_ext}$major'
16910   shlibpath_var=LD_LIBRARY_PATH
16911   shlibpath_overrides_runpath=yes
16912   hardcode_into_libs=yes
16913   if test "$with_gnu_ld" = yes; then
16914     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16915   else
16916     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16917     case $host_os in
16918       sco3.2v5*)
16919         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16920         ;;
16921     esac
16922   fi
16923   sys_lib_dlsearch_path_spec='/usr/lib'
16924   ;;
16925
16926 tpf*)
16927   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16928   version_type=linux # correct to gnu/linux during the next big refactor
16929   need_lib_prefix=no
16930   need_version=no
16931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932   shlibpath_var=LD_LIBRARY_PATH
16933   shlibpath_overrides_runpath=no
16934   hardcode_into_libs=yes
16935   ;;
16936
16937 uts4*)
16938   version_type=linux # correct to gnu/linux during the next big refactor
16939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940   soname_spec='${libname}${release}${shared_ext}$major'
16941   shlibpath_var=LD_LIBRARY_PATH
16942   ;;
16943
16944 *)
16945   dynamic_linker=no
16946   ;;
16947 esac
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16949 $as_echo "$dynamic_linker" >&6; }
16950 test "$dynamic_linker" = no && can_build_shared=no
16951
16952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16953 if test "$GCC" = yes; then
16954   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16955 fi
16956
16957 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16958   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16959 fi
16960 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16961   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16962 fi
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17002 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17003 hardcode_action_CXX=
17004 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17005    test -n "$runpath_var_CXX" ||
17006    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17007
17008   # We can hardcode non-existent directories.
17009   if test "$hardcode_direct_CXX" != no &&
17010      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17011      # have to relink, otherwise we might link with an installed library
17012      # when we should be linking with a yet-to-be-installed one
17013      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17014      test "$hardcode_minus_L_CXX" != no; then
17015     # Linking always hardcodes the temporary library directory.
17016     hardcode_action_CXX=relink
17017   else
17018     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17019     hardcode_action_CXX=immediate
17020   fi
17021 else
17022   # We cannot hardcode anything, or else we can only hardcode existing
17023   # directories.
17024   hardcode_action_CXX=unsupported
17025 fi
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17027 $as_echo "$hardcode_action_CXX" >&6; }
17028
17029 if test "$hardcode_action_CXX" = relink ||
17030    test "$inherit_rpath_CXX" = yes; then
17031   # Fast installation is not supported
17032   enable_fast_install=no
17033 elif test "$shlibpath_overrides_runpath" = yes ||
17034      test "$enable_shared" = no; then
17035   # Fast installation is not necessary
17036   enable_fast_install=needless
17037 fi
17038
17039
17040
17041
17042
17043
17044
17045   fi # test -n "$compiler"
17046
17047   CC=$lt_save_CC
17048   CFLAGS=$lt_save_CFLAGS
17049   LDCXX=$LD
17050   LD=$lt_save_LD
17051   GCC=$lt_save_GCC
17052   with_gnu_ld=$lt_save_with_gnu_ld
17053   lt_cv_path_LDCXX=$lt_cv_path_LD
17054   lt_cv_path_LD=$lt_save_path_LD
17055   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17056   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17057 fi # test "$_lt_caught_CXX_error" != yes
17058
17059 ac_ext=c
17060 ac_cpp='$CPP $CPPFLAGS'
17061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079         ac_config_commands="$ac_config_commands libtool"
17080
17081
17082
17083
17084 # Only expand once:
17085
17086
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
17088 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
17089 if ${ac_cv_path_SED+:} false; then :
17090   $as_echo_n "(cached) " >&6
17091 else
17092             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
17093      for ac_i in 1 2 3 4 5 6 7; do
17094        ac_script="$ac_script$as_nl$ac_script"
17095      done
17096      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
17097      { ac_script=; unset ac_script;}
17098      if test -z "$SED"; then
17099   ac_path_SED_found=false
17100   # Loop through the user's path and test for each of PROGNAME-LIST
17101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17102 for as_dir in $PATH
17103 do
17104   IFS=$as_save_IFS
17105   test -z "$as_dir" && as_dir=.
17106     for ac_prog in sed gsed; do
17107     for ac_exec_ext in '' $ac_executable_extensions; do
17108       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
17109       as_fn_executable_p "$ac_path_SED" || continue
17110 # Check for GNU ac_path_SED and select it if it is found.
17111   # Check for GNU $ac_path_SED
17112 case `"$ac_path_SED" --version 2>&1` in
17113 *GNU*)
17114   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
17115 *)
17116   ac_count=0
17117   $as_echo_n 0123456789 >"conftest.in"
17118   while :
17119   do
17120     cat "conftest.in" "conftest.in" >"conftest.tmp"
17121     mv "conftest.tmp" "conftest.in"
17122     cp "conftest.in" "conftest.nl"
17123     $as_echo '' >> "conftest.nl"
17124     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
17125     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17126     as_fn_arith $ac_count + 1 && ac_count=$as_val
17127     if test $ac_count -gt ${ac_path_SED_max-0}; then
17128       # Best one so far, save it but keep looking for a better one
17129       ac_cv_path_SED="$ac_path_SED"
17130       ac_path_SED_max=$ac_count
17131     fi
17132     # 10*(2^10) chars as input seems more than enough
17133     test $ac_count -gt 10 && break
17134   done
17135   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17136 esac
17137
17138       $ac_path_SED_found && break 3
17139     done
17140   done
17141   done
17142 IFS=$as_save_IFS
17143   if test -z "$ac_cv_path_SED"; then
17144     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
17145   fi
17146 else
17147   ac_cv_path_SED=$SED
17148 fi
17149
17150 fi
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
17152 $as_echo "$ac_cv_path_SED" >&6; }
17153  SED="$ac_cv_path_SED"
17154   rm -f conftest.sed
17155
17156
17157 # check ibus
17158
17159
17160
17161
17162
17163
17164
17165 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17166         if test -n "$ac_tool_prefix"; then
17167   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17168 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17170 $as_echo_n "checking for $ac_word... " >&6; }
17171 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17172   $as_echo_n "(cached) " >&6
17173 else
17174   case $PKG_CONFIG in
17175   [\\/]* | ?:[\\/]*)
17176   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17177   ;;
17178   *)
17179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17180 for as_dir in $PATH
17181 do
17182   IFS=$as_save_IFS
17183   test -z "$as_dir" && as_dir=.
17184     for ac_exec_ext in '' $ac_executable_extensions; do
17185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17186     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17188     break 2
17189   fi
17190 done
17191   done
17192 IFS=$as_save_IFS
17193
17194   ;;
17195 esac
17196 fi
17197 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17198 if test -n "$PKG_CONFIG"; then
17199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17200 $as_echo "$PKG_CONFIG" >&6; }
17201 else
17202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17203 $as_echo "no" >&6; }
17204 fi
17205
17206
17207 fi
17208 if test -z "$ac_cv_path_PKG_CONFIG"; then
17209   ac_pt_PKG_CONFIG=$PKG_CONFIG
17210   # Extract the first word of "pkg-config", so it can be a program name with args.
17211 set dummy pkg-config; ac_word=$2
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17213 $as_echo_n "checking for $ac_word... " >&6; }
17214 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17215   $as_echo_n "(cached) " >&6
17216 else
17217   case $ac_pt_PKG_CONFIG in
17218   [\\/]* | ?:[\\/]*)
17219   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17220   ;;
17221   *)
17222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17223 for as_dir in $PATH
17224 do
17225   IFS=$as_save_IFS
17226   test -z "$as_dir" && as_dir=.
17227     for ac_exec_ext in '' $ac_executable_extensions; do
17228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17229     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17231     break 2
17232   fi
17233 done
17234   done
17235 IFS=$as_save_IFS
17236
17237   ;;
17238 esac
17239 fi
17240 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17241 if test -n "$ac_pt_PKG_CONFIG"; then
17242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17243 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17244 else
17245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17246 $as_echo "no" >&6; }
17247 fi
17248
17249   if test "x$ac_pt_PKG_CONFIG" = x; then
17250     PKG_CONFIG=""
17251   else
17252     case $cross_compiling:$ac_tool_warned in
17253 yes:)
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17256 ac_tool_warned=yes ;;
17257 esac
17258     PKG_CONFIG=$ac_pt_PKG_CONFIG
17259   fi
17260 else
17261   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17262 fi
17263
17264 fi
17265 if test -n "$PKG_CONFIG"; then
17266         _pkg_min_version=0.9.0
17267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17268 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17269         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17270                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17271 $as_echo "yes" >&6; }
17272         else
17273                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17274 $as_echo "no" >&6; }
17275                 PKG_CONFIG=""
17276         fi
17277 fi
17278
17279 pkg_failed=no
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
17281 $as_echo_n "checking for IBUS... " >&6; }
17282
17283 if test -n "$IBUS_CFLAGS"; then
17284     pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
17285  elif test -n "$PKG_CONFIG"; then
17286     if test -n "$PKG_CONFIG" && \
17287     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17288     ibus-1.0 >= 1.4.0
17289 \""; } >&5
17290   ($PKG_CONFIG --exists --print-errors "
17291     ibus-1.0 >= 1.4.0
17292 ") 2>&5
17293   ac_status=$?
17294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17295   test $ac_status = 0; }; then
17296   pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "
17297     ibus-1.0 >= 1.4.0
17298 " 2>/dev/null`
17299                       test "x$?" != "x0" && pkg_failed=yes
17300 else
17301   pkg_failed=yes
17302 fi
17303  else
17304     pkg_failed=untried
17305 fi
17306 if test -n "$IBUS_LIBS"; then
17307     pkg_cv_IBUS_LIBS="$IBUS_LIBS"
17308  elif test -n "$PKG_CONFIG"; then
17309     if test -n "$PKG_CONFIG" && \
17310     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17311     ibus-1.0 >= 1.4.0
17312 \""; } >&5
17313   ($PKG_CONFIG --exists --print-errors "
17314     ibus-1.0 >= 1.4.0
17315 ") 2>&5
17316   ac_status=$?
17317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17318   test $ac_status = 0; }; then
17319   pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "
17320     ibus-1.0 >= 1.4.0
17321 " 2>/dev/null`
17322                       test "x$?" != "x0" && pkg_failed=yes
17323 else
17324   pkg_failed=yes
17325 fi
17326  else
17327     pkg_failed=untried
17328 fi
17329
17330
17331
17332 if test $pkg_failed = yes; then
17333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334 $as_echo "no" >&6; }
17335
17336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17337         _pkg_short_errors_supported=yes
17338 else
17339         _pkg_short_errors_supported=no
17340 fi
17341         if test $_pkg_short_errors_supported = yes; then
17342                 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17343     ibus-1.0 >= 1.4.0
17344 " 2>&1`
17345         else
17346                 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17347     ibus-1.0 >= 1.4.0
17348 " 2>&1`
17349         fi
17350         # Put the nasty error message in config.log where it belongs
17351         echo "$IBUS_PKG_ERRORS" >&5
17352
17353         as_fn_error $? "Package requirements (
17354     ibus-1.0 >= 1.4.0
17355 ) were not met:
17356
17357 $IBUS_PKG_ERRORS
17358
17359 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17360 installed software in a non-standard prefix.
17361
17362 Alternatively, you may set the environment variables IBUS_CFLAGS
17363 and IBUS_LIBS to avoid the need to call pkg-config.
17364 See the pkg-config man page for more details." "$LINENO" 5
17365 elif test $pkg_failed = untried; then
17366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17367 $as_echo "no" >&6; }
17368         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17370 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17371 is in your PATH or set the PKG_CONFIG environment variable to the full
17372 path to pkg-config.
17373
17374 Alternatively, you may set the environment variables IBUS_CFLAGS
17375 and IBUS_LIBS to avoid the need to call pkg-config.
17376 See the pkg-config man page for more details.
17377
17378 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17379 See \`config.log' for more details" "$LINENO" 5; }
17380 else
17381         IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
17382         IBUS_LIBS=$pkg_cv_IBUS_LIBS
17383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17384 $as_echo "yes" >&6; }
17385
17386 fi
17387
17388 # check sqlite
17389
17390 pkg_failed=no
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
17392 $as_echo_n "checking for SQLITE... " >&6; }
17393
17394 if test -n "$SQLITE_CFLAGS"; then
17395     pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
17396  elif test -n "$PKG_CONFIG"; then
17397     if test -n "$PKG_CONFIG" && \
17398     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17399     sqlite3
17400 \""; } >&5
17401   ($PKG_CONFIG --exists --print-errors "
17402     sqlite3
17403 ") 2>&5
17404   ac_status=$?
17405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17406   test $ac_status = 0; }; then
17407   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "
17408     sqlite3
17409 " 2>/dev/null`
17410                       test "x$?" != "x0" && pkg_failed=yes
17411 else
17412   pkg_failed=yes
17413 fi
17414  else
17415     pkg_failed=untried
17416 fi
17417 if test -n "$SQLITE_LIBS"; then
17418     pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
17419  elif test -n "$PKG_CONFIG"; then
17420     if test -n "$PKG_CONFIG" && \
17421     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17422     sqlite3
17423 \""; } >&5
17424   ($PKG_CONFIG --exists --print-errors "
17425     sqlite3
17426 ") 2>&5
17427   ac_status=$?
17428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17429   test $ac_status = 0; }; then
17430   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "
17431     sqlite3
17432 " 2>/dev/null`
17433                       test "x$?" != "x0" && pkg_failed=yes
17434 else
17435   pkg_failed=yes
17436 fi
17437  else
17438     pkg_failed=untried
17439 fi
17440
17441
17442
17443 if test $pkg_failed = yes; then
17444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17445 $as_echo "no" >&6; }
17446
17447 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17448         _pkg_short_errors_supported=yes
17449 else
17450         _pkg_short_errors_supported=no
17451 fi
17452         if test $_pkg_short_errors_supported = yes; then
17453                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17454     sqlite3
17455 " 2>&1`
17456         else
17457                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17458     sqlite3
17459 " 2>&1`
17460         fi
17461         # Put the nasty error message in config.log where it belongs
17462         echo "$SQLITE_PKG_ERRORS" >&5
17463
17464         as_fn_error $? "Package requirements (
17465     sqlite3
17466 ) were not met:
17467
17468 $SQLITE_PKG_ERRORS
17469
17470 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17471 installed software in a non-standard prefix.
17472
17473 Alternatively, you may set the environment variables SQLITE_CFLAGS
17474 and SQLITE_LIBS to avoid the need to call pkg-config.
17475 See the pkg-config man page for more details." "$LINENO" 5
17476 elif test $pkg_failed = untried; then
17477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17478 $as_echo "no" >&6; }
17479         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17481 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17482 is in your PATH or set the PKG_CONFIG environment variable to the full
17483 path to pkg-config.
17484
17485 Alternatively, you may set the environment variables SQLITE_CFLAGS
17486 and SQLITE_LIBS to avoid the need to call pkg-config.
17487 See the pkg-config man page for more details.
17488
17489 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17490 See \`config.log' for more details" "$LINENO" 5; }
17491 else
17492         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
17493         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
17494         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17495 $as_echo "yes" >&6; }
17496
17497 fi
17498 # Extract the first word of "sqlite3", so it can be a program name with args.
17499 set dummy sqlite3; ac_word=$2
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17501 $as_echo_n "checking for $ac_word... " >&6; }
17502 if ${ac_cv_path_SQLITE3+:} false; then :
17503   $as_echo_n "(cached) " >&6
17504 else
17505   case $SQLITE3 in
17506   [\\/]* | ?:[\\/]*)
17507   ac_cv_path_SQLITE3="$SQLITE3" # Let the user override the test with a path.
17508   ;;
17509   *)
17510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17511 for as_dir in $PATH
17512 do
17513   IFS=$as_save_IFS
17514   test -z "$as_dir" && as_dir=.
17515     for ac_exec_ext in '' $ac_executable_extensions; do
17516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17517     ac_cv_path_SQLITE3="$as_dir/$ac_word$ac_exec_ext"
17518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17519     break 2
17520   fi
17521 done
17522   done
17523 IFS=$as_save_IFS
17524
17525   ;;
17526 esac
17527 fi
17528 SQLITE3=$ac_cv_path_SQLITE3
17529 if test -n "$SQLITE3"; then
17530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE3" >&5
17531 $as_echo "$SQLITE3" >&6; }
17532 else
17533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17534 $as_echo "no" >&6; }
17535 fi
17536
17537
17538
17539
17540 pkg_failed=no
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPINYIN" >&5
17542 $as_echo_n "checking for LIBPINYIN... " >&6; }
17543
17544 if test -n "$LIBPINYIN_CFLAGS"; then
17545     pkg_cv_LIBPINYIN_CFLAGS="$LIBPINYIN_CFLAGS"
17546  elif test -n "$PKG_CONFIG"; then
17547     if test -n "$PKG_CONFIG" && \
17548     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17549     libpinyin >= 0.9.91
17550 \""; } >&5
17551   ($PKG_CONFIG --exists --print-errors "
17552     libpinyin >= 0.9.91
17553 ") 2>&5
17554   ac_status=$?
17555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17556   test $ac_status = 0; }; then
17557   pkg_cv_LIBPINYIN_CFLAGS=`$PKG_CONFIG --cflags "
17558     libpinyin >= 0.9.91
17559 " 2>/dev/null`
17560                       test "x$?" != "x0" && pkg_failed=yes
17561 else
17562   pkg_failed=yes
17563 fi
17564  else
17565     pkg_failed=untried
17566 fi
17567 if test -n "$LIBPINYIN_LIBS"; then
17568     pkg_cv_LIBPINYIN_LIBS="$LIBPINYIN_LIBS"
17569  elif test -n "$PKG_CONFIG"; then
17570     if test -n "$PKG_CONFIG" && \
17571     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17572     libpinyin >= 0.9.91
17573 \""; } >&5
17574   ($PKG_CONFIG --exists --print-errors "
17575     libpinyin >= 0.9.91
17576 ") 2>&5
17577   ac_status=$?
17578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17579   test $ac_status = 0; }; then
17580   pkg_cv_LIBPINYIN_LIBS=`$PKG_CONFIG --libs "
17581     libpinyin >= 0.9.91
17582 " 2>/dev/null`
17583                       test "x$?" != "x0" && pkg_failed=yes
17584 else
17585   pkg_failed=yes
17586 fi
17587  else
17588     pkg_failed=untried
17589 fi
17590
17591
17592
17593 if test $pkg_failed = yes; then
17594         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17595 $as_echo "no" >&6; }
17596
17597 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17598         _pkg_short_errors_supported=yes
17599 else
17600         _pkg_short_errors_supported=no
17601 fi
17602         if test $_pkg_short_errors_supported = yes; then
17603                 LIBPINYIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17604     libpinyin >= 0.9.91
17605 " 2>&1`
17606         else
17607                 LIBPINYIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17608     libpinyin >= 0.9.91
17609 " 2>&1`
17610         fi
17611         # Put the nasty error message in config.log where it belongs
17612         echo "$LIBPINYIN_PKG_ERRORS" >&5
17613
17614         as_fn_error $? "Package requirements (
17615     libpinyin >= 0.9.91
17616 ) were not met:
17617
17618 $LIBPINYIN_PKG_ERRORS
17619
17620 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17621 installed software in a non-standard prefix.
17622
17623 Alternatively, you may set the environment variables LIBPINYIN_CFLAGS
17624 and LIBPINYIN_LIBS to avoid the need to call pkg-config.
17625 See the pkg-config man page for more details." "$LINENO" 5
17626 elif test $pkg_failed = untried; then
17627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628 $as_echo "no" >&6; }
17629         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17631 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17632 is in your PATH or set the PKG_CONFIG environment variable to the full
17633 path to pkg-config.
17634
17635 Alternatively, you may set the environment variables LIBPINYIN_CFLAGS
17636 and LIBPINYIN_LIBS to avoid the need to call pkg-config.
17637 See the pkg-config man page for more details.
17638
17639 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17640 See \`config.log' for more details" "$LINENO" 5; }
17641 else
17642         LIBPINYIN_CFLAGS=$pkg_cv_LIBPINYIN_CFLAGS
17643         LIBPINYIN_LIBS=$pkg_cv_LIBPINYIN_LIBS
17644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17645 $as_echo "yes" >&6; }
17646         enable_libpinyin=yes
17647 fi
17648
17649  if test x"$enable_libpinyin" = x"yes"; then
17650   IBUS_BUILD_LIBPINYIN_TRUE=
17651   IBUS_BUILD_LIBPINYIN_FALSE='#'
17652 else
17653   IBUS_BUILD_LIBPINYIN_TRUE='#'
17654   IBUS_BUILD_LIBPINYIN_FALSE=
17655 fi
17656
17657
17658 LIBPINYIN_DATADIR=`$PKG_CONFIG --variable=pkgdatadir libpinyin`
17659
17660
17661
17662 # check uuid
17663 for ac_func in uuid_create
17664 do :
17665   ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create"
17666 if test "x$ac_cv_func_uuid_create" = xyes; then :
17667   cat >>confdefs.h <<_ACEOF
17668 #define HAVE_UUID_CREATE 1
17669 _ACEOF
17670
17671 else
17672
17673
17674 pkg_failed=no
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5
17676 $as_echo_n "checking for LIBUUID... " >&6; }
17677
17678 if test -n "$LIBUUID_CFLAGS"; then
17679     pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
17680  elif test -n "$PKG_CONFIG"; then
17681     if test -n "$PKG_CONFIG" && \
17682     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
17683   ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
17684   ac_status=$?
17685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17686   test $ac_status = 0; }; then
17687   pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
17688                       test "x$?" != "x0" && pkg_failed=yes
17689 else
17690   pkg_failed=yes
17691 fi
17692  else
17693     pkg_failed=untried
17694 fi
17695 if test -n "$LIBUUID_LIBS"; then
17696     pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
17697  elif test -n "$PKG_CONFIG"; then
17698     if test -n "$PKG_CONFIG" && \
17699     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
17700   ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
17701   ac_status=$?
17702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17703   test $ac_status = 0; }; then
17704   pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
17705                       test "x$?" != "x0" && pkg_failed=yes
17706 else
17707   pkg_failed=yes
17708 fi
17709  else
17710     pkg_failed=untried
17711 fi
17712
17713
17714
17715 if test $pkg_failed = yes; then
17716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17717 $as_echo "no" >&6; }
17718
17719 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17720         _pkg_short_errors_supported=yes
17721 else
17722         _pkg_short_errors_supported=no
17723 fi
17724         if test $_pkg_short_errors_supported = yes; then
17725                 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
17726         else
17727                 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
17728         fi
17729         # Put the nasty error message in config.log where it belongs
17730         echo "$LIBUUID_PKG_ERRORS" >&5
17731
17732
17733         # uuid.pc does not exist
17734         uuid_old_LIBS=$LIBS
17735         for ac_header in uuid/uuid.h
17736 do :
17737   ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
17738 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
17739   cat >>confdefs.h <<_ACEOF
17740 #define HAVE_UUID_UUID_H 1
17741 _ACEOF
17742
17743             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
17744 $as_echo_n "checking for library containing uuid_generate... " >&6; }
17745 if ${ac_cv_search_uuid_generate+:} false; then :
17746   $as_echo_n "(cached) " >&6
17747 else
17748   ac_func_search_save_LIBS=$LIBS
17749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17750 /* end confdefs.h.  */
17751
17752 /* Override any GCC internal prototype to avoid an error.
17753    Use char because int might match the return type of a GCC
17754    builtin and then its argument prototype would still apply.  */
17755 #ifdef __cplusplus
17756 extern "C"
17757 #endif
17758 char uuid_generate ();
17759 int
17760 main ()
17761 {
17762 return uuid_generate ();
17763   ;
17764   return 0;
17765 }
17766 _ACEOF
17767 for ac_lib in '' uuid; do
17768   if test -z "$ac_lib"; then
17769     ac_res="none required"
17770   else
17771     ac_res=-l$ac_lib
17772     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17773   fi
17774   if ac_fn_c_try_link "$LINENO"; then :
17775   ac_cv_search_uuid_generate=$ac_res
17776 fi
17777 rm -f core conftest.err conftest.$ac_objext \
17778     conftest$ac_exeext
17779   if ${ac_cv_search_uuid_generate+:} false; then :
17780   break
17781 fi
17782 done
17783 if ${ac_cv_search_uuid_generate+:} false; then :
17784
17785 else
17786   ac_cv_search_uuid_generate=no
17787 fi
17788 rm conftest.$ac_ext
17789 LIBS=$ac_func_search_save_LIBS
17790 fi
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
17792 $as_echo "$ac_cv_search_uuid_generate" >&6; }
17793 ac_res=$ac_cv_search_uuid_generate
17794 if test "$ac_res" != no; then :
17795   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17796
17797                 test x"$ac_cv_search_uuid_generate" != x"none required" && LIBUUID_LIBS=$ac_cv_search_uuid_generate
17798
17799 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
17800
17801                 HAVE_LIBUUID=yes
17802
17803 else
17804
17805                 as_fn_error $? "Can not find uuid_create and uuid_generate in libc or libuuid" "$LINENO" 5
17806
17807 fi
17808
17809
17810 else
17811
17812             as_fn_error $? "Can not find uuid_create and uuid_generate in libc or libuuid" "$LINENO" 5
17813
17814 fi
17815
17816 done
17817
17818         LIBS=$uuid_old_LIBS
17819
17820 elif test $pkg_failed = untried; then
17821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17822 $as_echo "no" >&6; }
17823
17824         # uuid.pc does not exist
17825         uuid_old_LIBS=$LIBS
17826         for ac_header in uuid/uuid.h
17827 do :
17828   ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
17829 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
17830   cat >>confdefs.h <<_ACEOF
17831 #define HAVE_UUID_UUID_H 1
17832 _ACEOF
17833
17834             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
17835 $as_echo_n "checking for library containing uuid_generate... " >&6; }
17836 if ${ac_cv_search_uuid_generate+:} false; then :
17837   $as_echo_n "(cached) " >&6
17838 else
17839   ac_func_search_save_LIBS=$LIBS
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h.  */
17842
17843 /* Override any GCC internal prototype to avoid an error.
17844    Use char because int might match the return type of a GCC
17845    builtin and then its argument prototype would still apply.  */
17846 #ifdef __cplusplus
17847 extern "C"
17848 #endif
17849 char uuid_generate ();
17850 int
17851 main ()
17852 {
17853 return uuid_generate ();
17854   ;
17855   return 0;
17856 }
17857 _ACEOF
17858 for ac_lib in '' uuid; do
17859   if test -z "$ac_lib"; then
17860     ac_res="none required"
17861   else
17862     ac_res=-l$ac_lib
17863     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17864   fi
17865   if ac_fn_c_try_link "$LINENO"; then :
17866   ac_cv_search_uuid_generate=$ac_res
17867 fi
17868 rm -f core conftest.err conftest.$ac_objext \
17869     conftest$ac_exeext
17870   if ${ac_cv_search_uuid_generate+:} false; then :
17871   break
17872 fi
17873 done
17874 if ${ac_cv_search_uuid_generate+:} false; then :
17875
17876 else
17877   ac_cv_search_uuid_generate=no
17878 fi
17879 rm conftest.$ac_ext
17880 LIBS=$ac_func_search_save_LIBS
17881 fi
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
17883 $as_echo "$ac_cv_search_uuid_generate" >&6; }
17884 ac_res=$ac_cv_search_uuid_generate
17885 if test "$ac_res" != no; then :
17886   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17887
17888                 test x"$ac_cv_search_uuid_generate" != x"none required" && LIBUUID_LIBS=$ac_cv_search_uuid_generate
17889
17890 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
17891
17892                 HAVE_LIBUUID=yes
17893
17894 else
17895
17896                 as_fn_error $? "Can not find uuid_create and uuid_generate in libc or libuuid" "$LINENO" 5
17897
17898 fi
17899
17900
17901 else
17902
17903             as_fn_error $? "Can not find uuid_create and uuid_generate in libc or libuuid" "$LINENO" 5
17904
17905 fi
17906
17907 done
17908
17909         LIBS=$uuid_old_LIBS
17910
17911 else
17912         LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
17913         LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
17914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17915 $as_echo "yes" >&6; }
17916
17917         # uuid.pc exist
17918
17919 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
17920
17921         HAVE_LIBUUID=yes
17922
17923 fi
17924
17925 fi
17926 done
17927
17928
17929  if test x"$HAVE_LIBUUID" = x"yes"; then
17930   HAVE_LIBUUID_TRUE=
17931   HAVE_LIBUUID_FALSE='#'
17932 else
17933   HAVE_LIBUUID_TRUE='#'
17934   HAVE_LIBUUID_FALSE=
17935 fi
17936
17937
17938 # check if ibus_config_get_values, which is available in ibus-1.3.99+ (git master)
17939 save_CFLAGS="$CFLAGS"
17940 save_LIBS="$LIBS"
17941 CFLAGS="$CFLAGS $IBUS_CFLAGS"
17942 LIBS="$LIBS $IBUS_LIBS"
17943 for ac_func in ibus_config_get_values
17944 do :
17945   ac_fn_c_check_func "$LINENO" "ibus_config_get_values" "ac_cv_func_ibus_config_get_values"
17946 if test "x$ac_cv_func_ibus_config_get_values" = xyes; then :
17947   cat >>confdefs.h <<_ACEOF
17948 #define HAVE_IBUS_CONFIG_GET_VALUES 1
17949 _ACEOF
17950
17951 fi
17952 done
17953
17954 CFLAGS="$save_CFLAGS"
17955 LIBS="$save_LIBS"
17956
17957
17958 # check env
17959 # Extract the first word of "env", so it can be a program name with args.
17960 set dummy env; ac_word=$2
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17962 $as_echo_n "checking for $ac_word... " >&6; }
17963 if ${ac_cv_path_ENV+:} false; then :
17964   $as_echo_n "(cached) " >&6
17965 else
17966   case $ENV in
17967   [\\/]* | ?:[\\/]*)
17968   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
17969   ;;
17970   *)
17971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17972 for as_dir in $PATH
17973 do
17974   IFS=$as_save_IFS
17975   test -z "$as_dir" && as_dir=.
17976     for ac_exec_ext in '' $ac_executable_extensions; do
17977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17978     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
17979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17980     break 2
17981   fi
17982 done
17983   done
17984 IFS=$as_save_IFS
17985
17986   ;;
17987 esac
17988 fi
17989 ENV=$ac_cv_path_ENV
17990 if test -n "$ENV"; then
17991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENV" >&5
17992 $as_echo "$ENV" >&6; }
17993 else
17994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17995 $as_echo "no" >&6; }
17996 fi
17997
17998
17999
18000
18001 # check python
18002
18003
18004
18005
18006
18007
18008         if test -n "$PYTHON"; then
18009       # If the user set $PYTHON, use it and don't search something else.
18010       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
18011 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
18012       prog="import sys
18013 # split strings by '.' and convert to numeric.  Append some zeros
18014 # because we need at least 4 digits for the hex conversion.
18015 # map returns an iterator in Python 3.0 and a list in 2.x
18016 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
18017 minverhex = 0
18018 # xrange is not present in Python 3.0 and range returns an iterator
18019 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
18020 sys.exit(sys.hexversion < minverhex)"
18021   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
18022    ($PYTHON -c "$prog") >&5 2>&5
18023    ac_status=$?
18024    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025    (exit $ac_status); }; then :
18026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18027 $as_echo "yes" >&6; }
18028 else
18029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18030 $as_echo "no" >&6; }
18031                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
18032 fi
18033       am_display_PYTHON=$PYTHON
18034     else
18035       # Otherwise, try each interpreter until we find one that satisfies
18036       # VERSION.
18037       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
18038 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
18039 if ${am_cv_pathless_PYTHON+:} false; then :
18040   $as_echo_n "(cached) " >&6
18041 else
18042
18043         for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
18044           test "$am_cv_pathless_PYTHON" = none && break
18045           prog="import sys
18046 # split strings by '.' and convert to numeric.  Append some zeros
18047 # because we need at least 4 digits for the hex conversion.
18048 # map returns an iterator in Python 3.0 and a list in 2.x
18049 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
18050 minverhex = 0
18051 # xrange is not present in Python 3.0 and range returns an iterator
18052 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
18053 sys.exit(sys.hexversion < minverhex)"
18054   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
18055    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
18056    ac_status=$?
18057    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058    (exit $ac_status); }; then :
18059   break
18060 fi
18061         done
18062 fi
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
18064 $as_echo "$am_cv_pathless_PYTHON" >&6; }
18065       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
18066       if test "$am_cv_pathless_PYTHON" = none; then
18067         PYTHON=:
18068       else
18069         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
18070 set dummy $am_cv_pathless_PYTHON; ac_word=$2
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18072 $as_echo_n "checking for $ac_word... " >&6; }
18073 if ${ac_cv_path_PYTHON+:} false; then :
18074   $as_echo_n "(cached) " >&6
18075 else
18076   case $PYTHON in
18077   [\\/]* | ?:[\\/]*)
18078   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18079   ;;
18080   *)
18081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18082 for as_dir in $PATH
18083 do
18084   IFS=$as_save_IFS
18085   test -z "$as_dir" && as_dir=.
18086     for ac_exec_ext in '' $ac_executable_extensions; do
18087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18088     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18090     break 2
18091   fi
18092 done
18093   done
18094 IFS=$as_save_IFS
18095
18096   ;;
18097 esac
18098 fi
18099 PYTHON=$ac_cv_path_PYTHON
18100 if test -n "$PYTHON"; then
18101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
18102 $as_echo "$PYTHON" >&6; }
18103 else
18104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18105 $as_echo "no" >&6; }
18106 fi
18107
18108
18109       fi
18110       am_display_PYTHON=$am_cv_pathless_PYTHON
18111     fi
18112
18113
18114   if test "$PYTHON" = :; then
18115       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
18116   else
18117
18118
18119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
18120 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
18121 if ${am_cv_python_version+:} false; then :
18122   $as_echo_n "(cached) " >&6
18123 else
18124   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
18125 fi
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
18127 $as_echo "$am_cv_python_version" >&6; }
18128   PYTHON_VERSION=$am_cv_python_version
18129
18130
18131
18132   PYTHON_PREFIX='${prefix}'
18133
18134   PYTHON_EXEC_PREFIX='${exec_prefix}'
18135
18136
18137
18138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
18139 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
18140 if ${am_cv_python_platform+:} false; then :
18141   $as_echo_n "(cached) " >&6
18142 else
18143   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
18144 fi
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
18146 $as_echo "$am_cv_python_platform" >&6; }
18147   PYTHON_PLATFORM=$am_cv_python_platform
18148
18149
18150   # Just factor out some code duplication.
18151   am_python_setup_sysconfig="\
18152 import sys
18153 # Prefer sysconfig over distutils.sysconfig, for better compatibility
18154 # with python 3.x.  See automake bug#10227.
18155 try:
18156     import sysconfig
18157 except ImportError:
18158     can_use_sysconfig = 0
18159 else:
18160     can_use_sysconfig = 1
18161 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
18162 # <https://github.com/pypa/virtualenv/issues/118>
18163 try:
18164     from platform import python_implementation
18165     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
18166         can_use_sysconfig = 0
18167 except ImportError:
18168     pass"
18169
18170
18171             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
18172 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
18173 if ${am_cv_python_pythondir+:} false; then :
18174   $as_echo_n "(cached) " >&6
18175 else
18176   if test "x$prefix" = xNONE
18177      then
18178        am_py_prefix=$ac_default_prefix
18179      else
18180        am_py_prefix=$prefix
18181      fi
18182      am_cv_python_pythondir=`$PYTHON -c "
18183 $am_python_setup_sysconfig
18184 if can_use_sysconfig:
18185     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
18186 else:
18187     from distutils import sysconfig
18188     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
18189 sys.stdout.write(sitedir)"`
18190      case $am_cv_python_pythondir in
18191      $am_py_prefix*)
18192        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
18193        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
18194        ;;
18195      *)
18196        case $am_py_prefix in
18197          /usr|/System*) ;;
18198          *)
18199           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
18200           ;;
18201        esac
18202        ;;
18203      esac
18204
18205 fi
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
18207 $as_echo "$am_cv_python_pythondir" >&6; }
18208   pythondir=$am_cv_python_pythondir
18209
18210
18211
18212   pkgpythondir=\${pythondir}/$PACKAGE
18213
18214
18215         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
18216 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
18217 if ${am_cv_python_pyexecdir+:} false; then :
18218   $as_echo_n "(cached) " >&6
18219 else
18220   if test "x$exec_prefix" = xNONE
18221      then
18222        am_py_exec_prefix=$am_py_prefix
18223      else
18224        am_py_exec_prefix=$exec_prefix
18225      fi
18226      am_cv_python_pyexecdir=`$PYTHON -c "
18227 $am_python_setup_sysconfig
18228 if can_use_sysconfig:
18229     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
18230 else:
18231     from distutils import sysconfig
18232     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
18233 sys.stdout.write(sitedir)"`
18234      case $am_cv_python_pyexecdir in
18235      $am_py_exec_prefix*)
18236        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
18237        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
18238        ;;
18239      *)
18240        case $am_py_exec_prefix in
18241          /usr|/System*) ;;
18242          *)
18243            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
18244            ;;
18245        esac
18246        ;;
18247      esac
18248
18249 fi
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
18251 $as_echo "$am_cv_python_pyexecdir" >&6; }
18252   pyexecdir=$am_cv_python_pyexecdir
18253
18254
18255
18256   pkgpyexecdir=\${pyexecdir}/$PACKAGE
18257
18258
18259
18260   fi
18261
18262
18263
18264 # --enable-boost
18265 # Check whether --enable-boost was given.
18266 if test "${enable_boost+set}" = set; then :
18267   enableval=$enable_boost; enable_boost=$enableval
18268 else
18269   enable_boost=no
18270
18271 fi
18272
18273 if test x"$enable_boost" = x"yes"; then
18274     # check boost
18275     echo "$as_me: this is boost.m4 serial 12" >&5
18276 boost_save_IFS=$IFS
18277 boost_version_req=1.39
18278 IFS=.
18279 set x $boost_version_req 0 0 0
18280 IFS=$boost_save_IFS
18281 shift
18282 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
18283
18284 # Check whether --with-boost was given.
18285 if test "${with_boost+set}" = set; then :
18286   withval=$with_boost;
18287 fi
18288 # If BOOST_ROOT is set and the user has not provided a value to
18289 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
18290 if test x"$BOOST_ROOT" != x; then
18291   if test x"$with_boost" = x; then
18292     { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
18293 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
18294     with_boost=$BOOST_ROOT
18295   else
18296     { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
18297 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
18298   fi
18299 fi
18300 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
18301
18302 boost_save_CPPFLAGS=$CPPFLAGS
18303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req" >&5
18304 $as_echo_n "checking for Boost headers version >= $boost_version_req... " >&6; }
18305 if ${boost_cv_inc_path+:} false; then :
18306   $as_echo_n "(cached) " >&6
18307 else
18308   boost_cv_inc_path=no
18309 ac_ext=cpp
18310 ac_cpp='$CXXCPP $CPPFLAGS'
18311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18314     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h.  */
18316 #include <boost/version.hpp>
18317 #if !defined BOOST_VERSION
18318 # error BOOST_VERSION is not defined
18319 #elif BOOST_VERSION < $boost_version_req
18320 # error Boost headers version < $boost_version_req
18321 #endif
18322
18323 int
18324 main ()
18325 {
18326
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331     # If the user provided a value to --with-boost, use it and only it.
18332     case $with_boost in #(
18333       ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
18334                  /usr/include C:/Boost/include;; #(
18335       *)      set x "$with_boost/include" "$with_boost";;
18336     esac
18337     shift
18338     for boost_dir
18339     do
18340     # Without --layout=system, Boost (or at least some versions) installs
18341     # itself in <prefix>/include/boost-<version>.  This inner loop helps to
18342     # find headers in such directories.
18343     #
18344     # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
18345     # order followed by ${boost_dir}.  The final '.' is a sentinel for
18346     # searching $boost_dir" itself.  Entries are whitespace separated.
18347     #
18348     # I didn't indent this loop on purpose (to avoid over-indented code)
18349     boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
18350         && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
18351         && echo .`
18352     for boost_inc in $boost_layout_system_search_list
18353     do
18354       if test x"$boost_inc" != x.; then
18355         boost_inc="$boost_dir/$boost_inc"
18356       else
18357         boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
18358       fi
18359       if test x"$boost_inc" != x; then
18360         # We are going to check whether the version of Boost installed
18361         # in $boost_inc is usable by running a compilation that
18362         # #includes it.  But if we pass a -I/some/path in which Boost
18363         # is not installed, the compiler will just skip this -I and
18364         # use other locations (either from CPPFLAGS, or from its list
18365         # of system include directories).  As a result we would use
18366         # header installed on the machine instead of the /some/path
18367         # specified by the user.  So in that precise case (trying
18368         # $boost_inc), make sure the version.hpp exists.
18369         #
18370         # Use test -e as there can be symlinks.
18371         test -e "$boost_inc/boost/version.hpp" || continue
18372         CPPFLAGS="$CPPFLAGS -I$boost_inc"
18373       fi
18374       if ac_fn_cxx_try_compile "$LINENO"; then :
18375   boost_cv_inc_path=yes
18376 else
18377   boost_cv_version=no
18378 fi
18379 rm -f core conftest.err conftest.$ac_objext
18380       if test x"$boost_cv_inc_path" = xyes; then
18381         if test x"$boost_inc" != x; then
18382           boost_cv_inc_path=$boost_inc
18383         fi
18384         break 2
18385       fi
18386     done
18387     done
18388 ac_ext=c
18389 ac_cpp='$CPP $CPPFLAGS'
18390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18393
18394 fi
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
18396 $as_echo "$boost_cv_inc_path" >&6; }
18397     case $boost_cv_inc_path in #(
18398       no)
18399         boost_errmsg="cannot find Boost headers version >= $boost_version_req"
18400         as_fn_error $? "$boost_errmsg" "$LINENO" 5
18401
18402         ;;#(
18403       yes)
18404         BOOST_CPPFLAGS=
18405         ;;#(
18406       *)
18407         BOOST_CPPFLAGS="-I$boost_cv_inc_path"
18408
18409         ;;
18410     esac
18411   if test x"$boost_cv_inc_path" != xno; then
18412
18413 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
18414
18415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
18416 $as_echo_n "checking for Boost's header version... " >&6; }
18417 if ${boost_cv_lib_version+:} false; then :
18418   $as_echo_n "(cached) " >&6
18419 else
18420        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h.  */
18422 #include <boost/version.hpp>
18423 boost-lib-version = BOOST_LIB_VERSION
18424 _ACEOF
18425 if (eval "$ac_cpp $CXXFLAGS conftest.$ac_ext") 2>&5 |
18426   tr -d '\r' |
18427   $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;g;}" >conftest.i 2>&1; then :
18428   boost_cv_lib_version=`cat conftest.i`
18429 fi
18430 rm -rf conftest*
18431
18432 fi
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
18434 $as_echo "$boost_cv_lib_version" >&6; }
18435     # e.g. "134" for 1_34_1 or "135" for 1_35
18436     boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
18437     case $boost_major_version in #(
18438       '' | *[!0-9]*)
18439         as_fn_error $? "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
18440         ;;
18441     esac
18442 fi
18443 CPPFLAGS=$boost_save_CPPFLAGS
18444
18445
18446 if test x"$boost_cv_inc_path" = xno; then
18447   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/bind.hpp" >&5
18448 $as_echo "$as_me: Boost not available, not searching for boost/bind.hpp" >&6;}
18449 else
18450 ac_ext=cpp
18451 ac_cpp='$CXXCPP $CPPFLAGS'
18452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18455 boost_save_CPPFLAGS=$CPPFLAGS
18456 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18457 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/bind.hpp" "ac_cv_header_boost_bind_hpp" "$ac_includes_default"
18458 if test "x$ac_cv_header_boost_bind_hpp" = xyes; then :
18459
18460 $as_echo "#define HAVE_BOOST_BIND_HPP 1" >>confdefs.h
18461
18462 else
18463   as_fn_error $? "cannot find boost/bind.hpp" "$LINENO" 5
18464 fi
18465
18466
18467 CPPFLAGS=$boost_save_CPPFLAGS
18468 ac_ext=c
18469 ac_cpp='$CPP $CPPFLAGS'
18470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18473 fi
18474
18475     if test x"$boost_cv_inc_path" = xno; then
18476   { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/signals2.hpp" >&5
18477 $as_echo "$as_me: Boost not available, not searching for boost/signals2.hpp" >&6;}
18478 else
18479 ac_ext=cpp
18480 ac_cpp='$CXXCPP $CPPFLAGS'
18481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18484 boost_save_CPPFLAGS=$CPPFLAGS
18485 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18486 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/signals2.hpp" "ac_cv_header_boost_signals2_hpp" "$ac_includes_default"
18487 if test "x$ac_cv_header_boost_signals2_hpp" = xyes; then :
18488
18489 $as_echo "#define HAVE_BOOST_SIGNALS2_HPP 1" >>confdefs.h
18490
18491 else
18492   as_fn_error $? "cannot find boost/signals2.hpp" "$LINENO" 5
18493 fi
18494
18495
18496 CPPFLAGS=$boost_save_CPPFLAGS
18497 ac_ext=c
18498 ac_cpp='$CPP $CPPFLAGS'
18499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18502 fi
18503
18504 fi
18505  if test x"$enable_boost" = x"yes"; then
18506   HAVE_BOOST_TRUE=
18507   HAVE_BOOST_FALSE='#'
18508 else
18509   HAVE_BOOST_TRUE='#'
18510   HAVE_BOOST_FALSE=
18511 fi
18512
18513
18514 # --enable-opencc
18515 # Check whether --enable-opencc was given.
18516 if test "${enable_opencc+set}" = set; then :
18517   enableval=$enable_opencc; enable_opencc=$enableval
18518 else
18519   enable_opencc=no
18520
18521 fi
18522
18523 if test x"$enable_opencc" = x"yes"; then
18524     # check opencc
18525
18526 pkg_failed=no
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENCC" >&5
18528 $as_echo_n "checking for OPENCC... " >&6; }
18529
18530 if test -n "$OPENCC_CFLAGS"; then
18531     pkg_cv_OPENCC_CFLAGS="$OPENCC_CFLAGS"
18532  elif test -n "$PKG_CONFIG"; then
18533     if test -n "$PKG_CONFIG" && \
18534     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencc\""; } >&5
18535   ($PKG_CONFIG --exists --print-errors "opencc") 2>&5
18536   ac_status=$?
18537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18538   test $ac_status = 0; }; then
18539   pkg_cv_OPENCC_CFLAGS=`$PKG_CONFIG --cflags "opencc" 2>/dev/null`
18540                       test "x$?" != "x0" && pkg_failed=yes
18541 else
18542   pkg_failed=yes
18543 fi
18544  else
18545     pkg_failed=untried
18546 fi
18547 if test -n "$OPENCC_LIBS"; then
18548     pkg_cv_OPENCC_LIBS="$OPENCC_LIBS"
18549  elif test -n "$PKG_CONFIG"; then
18550     if test -n "$PKG_CONFIG" && \
18551     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencc\""; } >&5
18552   ($PKG_CONFIG --exists --print-errors "opencc") 2>&5
18553   ac_status=$?
18554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18555   test $ac_status = 0; }; then
18556   pkg_cv_OPENCC_LIBS=`$PKG_CONFIG --libs "opencc" 2>/dev/null`
18557                       test "x$?" != "x0" && pkg_failed=yes
18558 else
18559   pkg_failed=yes
18560 fi
18561  else
18562     pkg_failed=untried
18563 fi
18564
18565
18566
18567 if test $pkg_failed = yes; then
18568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18569 $as_echo "no" >&6; }
18570
18571 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18572         _pkg_short_errors_supported=yes
18573 else
18574         _pkg_short_errors_supported=no
18575 fi
18576         if test $_pkg_short_errors_supported = yes; then
18577                 OPENCC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencc" 2>&1`
18578         else
18579                 OPENCC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencc" 2>&1`
18580         fi
18581         # Put the nasty error message in config.log where it belongs
18582         echo "$OPENCC_PKG_ERRORS" >&5
18583
18584         as_fn_error $? "Package requirements (opencc) were not met:
18585
18586 $OPENCC_PKG_ERRORS
18587
18588 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18589 installed software in a non-standard prefix.
18590
18591 Alternatively, you may set the environment variables OPENCC_CFLAGS
18592 and OPENCC_LIBS to avoid the need to call pkg-config.
18593 See the pkg-config man page for more details." "$LINENO" 5
18594 elif test $pkg_failed = untried; then
18595         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18596 $as_echo "no" >&6; }
18597         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18599 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18600 is in your PATH or set the PKG_CONFIG environment variable to the full
18601 path to pkg-config.
18602
18603 Alternatively, you may set the environment variables OPENCC_CFLAGS
18604 and OPENCC_LIBS to avoid the need to call pkg-config.
18605 See the pkg-config man page for more details.
18606
18607 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18608 See \`config.log' for more details" "$LINENO" 5; }
18609 else
18610         OPENCC_CFLAGS=$pkg_cv_OPENCC_CFLAGS
18611         OPENCC_LIBS=$pkg_cv_OPENCC_LIBS
18612         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18613 $as_echo "yes" >&6; }
18614
18615
18616 $as_echo "#define HAVE_OPENCC 1" >>confdefs.h
18617
18618
18619 fi
18620 fi
18621
18622 # define GETTEXT_* variables
18623 GETTEXT_PACKAGE=ibus-libpinyin
18624
18625
18626 cat >>confdefs.h <<_ACEOF
18627 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
18628 _ACEOF
18629
18630
18631
18632    for ac_header in locale.h
18633 do :
18634   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
18635 if test "x$ac_cv_header_locale_h" = xyes; then :
18636   cat >>confdefs.h <<_ACEOF
18637 #define HAVE_LOCALE_H 1
18638 _ACEOF
18639
18640 fi
18641
18642 done
18643
18644     if test $ac_cv_header_locale_h = yes; then
18645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
18646 $as_echo_n "checking for LC_MESSAGES... " >&6; }
18647 if ${am_cv_val_LC_MESSAGES+:} false; then :
18648   $as_echo_n "(cached) " >&6
18649 else
18650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h.  */
18652 #include <locale.h>
18653 int
18654 main ()
18655 {
18656 return LC_MESSAGES
18657   ;
18658   return 0;
18659 }
18660 _ACEOF
18661 if ac_fn_c_try_link "$LINENO"; then :
18662   am_cv_val_LC_MESSAGES=yes
18663 else
18664   am_cv_val_LC_MESSAGES=no
18665 fi
18666 rm -f core conftest.err conftest.$ac_objext \
18667     conftest$ac_exeext conftest.$ac_ext
18668 fi
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
18670 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
18671     if test $am_cv_val_LC_MESSAGES = yes; then
18672
18673 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
18674
18675     fi
18676   fi
18677      USE_NLS=yes
18678
18679
18680     gt_cv_have_gettext=no
18681
18682     CATOBJEXT=NONE
18683     XGETTEXT=:
18684     INTLLIBS=
18685
18686     ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18687 if test "x$ac_cv_header_libintl_h" = xyes; then :
18688   gt_cv_func_dgettext_libintl="no"
18689       libintl_extra_libs=""
18690
18691       #
18692       # First check in libc
18693       #
18694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
18695 $as_echo_n "checking for ngettext in libc... " >&6; }
18696 if ${gt_cv_func_ngettext_libc+:} false; then :
18697   $as_echo_n "(cached) " >&6
18698 else
18699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h.  */
18701
18702 #include <libintl.h>
18703
18704 int
18705 main ()
18706 {
18707 return !ngettext ("","", 1)
18708   ;
18709   return 0;
18710 }
18711 _ACEOF
18712 if ac_fn_c_try_link "$LINENO"; then :
18713   gt_cv_func_ngettext_libc=yes
18714 else
18715   gt_cv_func_ngettext_libc=no
18716 fi
18717 rm -f core conftest.err conftest.$ac_objext \
18718     conftest$ac_exeext conftest.$ac_ext
18719
18720 fi
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
18722 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
18723
18724       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
18725               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
18726 $as_echo_n "checking for dgettext in libc... " >&6; }
18727 if ${gt_cv_func_dgettext_libc+:} false; then :
18728   $as_echo_n "(cached) " >&6
18729 else
18730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731 /* end confdefs.h.  */
18732
18733 #include <libintl.h>
18734
18735 int
18736 main ()
18737 {
18738 return !dgettext ("","")
18739   ;
18740   return 0;
18741 }
18742 _ACEOF
18743 if ac_fn_c_try_link "$LINENO"; then :
18744   gt_cv_func_dgettext_libc=yes
18745 else
18746   gt_cv_func_dgettext_libc=no
18747 fi
18748 rm -f core conftest.err conftest.$ac_objext \
18749     conftest$ac_exeext conftest.$ac_ext
18750
18751 fi
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
18753 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
18754       fi
18755
18756       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
18757         for ac_func in bind_textdomain_codeset
18758 do :
18759   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18760 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
18761   cat >>confdefs.h <<_ACEOF
18762 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
18763 _ACEOF
18764
18765 fi
18766 done
18767
18768       fi
18769
18770       #
18771       # If we don't have everything we want, check in libintl
18772       #
18773       if test "$gt_cv_func_dgettext_libc" != "yes" \
18774          || test "$gt_cv_func_ngettext_libc" != "yes" \
18775          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
18776
18777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
18778 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
18779 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
18780   $as_echo_n "(cached) " >&6
18781 else
18782   ac_check_lib_save_LIBS=$LIBS
18783 LIBS="-lintl  $LIBS"
18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h.  */
18786
18787 /* Override any GCC internal prototype to avoid an error.
18788    Use char because int might match the return type of a GCC
18789    builtin and then its argument prototype would still apply.  */
18790 #ifdef __cplusplus
18791 extern "C"
18792 #endif
18793 char bindtextdomain ();
18794 int
18795 main ()
18796 {
18797 return bindtextdomain ();
18798   ;
18799   return 0;
18800 }
18801 _ACEOF
18802 if ac_fn_c_try_link "$LINENO"; then :
18803   ac_cv_lib_intl_bindtextdomain=yes
18804 else
18805   ac_cv_lib_intl_bindtextdomain=no
18806 fi
18807 rm -f core conftest.err conftest.$ac_objext \
18808     conftest$ac_exeext conftest.$ac_ext
18809 LIBS=$ac_check_lib_save_LIBS
18810 fi
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
18812 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
18813 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
18814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
18815 $as_echo_n "checking for ngettext in -lintl... " >&6; }
18816 if ${ac_cv_lib_intl_ngettext+:} false; then :
18817   $as_echo_n "(cached) " >&6
18818 else
18819   ac_check_lib_save_LIBS=$LIBS
18820 LIBS="-lintl  $LIBS"
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h.  */
18823
18824 /* Override any GCC internal prototype to avoid an error.
18825    Use char because int might match the return type of a GCC
18826    builtin and then its argument prototype would still apply.  */
18827 #ifdef __cplusplus
18828 extern "C"
18829 #endif
18830 char ngettext ();
18831 int
18832 main ()
18833 {
18834 return ngettext ();
18835   ;
18836   return 0;
18837 }
18838 _ACEOF
18839 if ac_fn_c_try_link "$LINENO"; then :
18840   ac_cv_lib_intl_ngettext=yes
18841 else
18842   ac_cv_lib_intl_ngettext=no
18843 fi
18844 rm -f core conftest.err conftest.$ac_objext \
18845     conftest$ac_exeext conftest.$ac_ext
18846 LIBS=$ac_check_lib_save_LIBS
18847 fi
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
18849 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
18850 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
18851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18852 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18853 if ${ac_cv_lib_intl_dgettext+:} false; then :
18854   $as_echo_n "(cached) " >&6
18855 else
18856   ac_check_lib_save_LIBS=$LIBS
18857 LIBS="-lintl  $LIBS"
18858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18859 /* end confdefs.h.  */
18860
18861 /* Override any GCC internal prototype to avoid an error.
18862    Use char because int might match the return type of a GCC
18863    builtin and then its argument prototype would still apply.  */
18864 #ifdef __cplusplus
18865 extern "C"
18866 #endif
18867 char dgettext ();
18868 int
18869 main ()
18870 {
18871 return dgettext ();
18872   ;
18873   return 0;
18874 }
18875 _ACEOF
18876 if ac_fn_c_try_link "$LINENO"; then :
18877   ac_cv_lib_intl_dgettext=yes
18878 else
18879   ac_cv_lib_intl_dgettext=no
18880 fi
18881 rm -f core conftest.err conftest.$ac_objext \
18882     conftest$ac_exeext conftest.$ac_ext
18883 LIBS=$ac_check_lib_save_LIBS
18884 fi
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18886 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18887 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
18888   gt_cv_func_dgettext_libintl=yes
18889 fi
18890
18891 fi
18892
18893 fi
18894
18895
18896         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
18897           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
18898 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
18899           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18900 $as_echo "" >&6; }
18901           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
18902 $as_echo_n "checking for ngettext in -lintl... " >&6; }
18903 if ${ac_cv_lib_intl_ngettext+:} false; then :
18904   $as_echo_n "(cached) " >&6
18905 else
18906   ac_check_lib_save_LIBS=$LIBS
18907 LIBS="-lintl -liconv $LIBS"
18908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909 /* end confdefs.h.  */
18910
18911 /* Override any GCC internal prototype to avoid an error.
18912    Use char because int might match the return type of a GCC
18913    builtin and then its argument prototype would still apply.  */
18914 #ifdef __cplusplus
18915 extern "C"
18916 #endif
18917 char ngettext ();
18918 int
18919 main ()
18920 {
18921 return ngettext ();
18922   ;
18923   return 0;
18924 }
18925 _ACEOF
18926 if ac_fn_c_try_link "$LINENO"; then :
18927   ac_cv_lib_intl_ngettext=yes
18928 else
18929   ac_cv_lib_intl_ngettext=no
18930 fi
18931 rm -f core conftest.err conftest.$ac_objext \
18932     conftest$ac_exeext conftest.$ac_ext
18933 LIBS=$ac_check_lib_save_LIBS
18934 fi
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
18936 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
18937 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
18938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
18939 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
18940 if ${ac_cv_lib_intl_dcgettext+:} false; then :
18941   $as_echo_n "(cached) " >&6
18942 else
18943   ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-lintl -liconv $LIBS"
18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h.  */
18947
18948 /* Override any GCC internal prototype to avoid an error.
18949    Use char because int might match the return type of a GCC
18950    builtin and then its argument prototype would still apply.  */
18951 #ifdef __cplusplus
18952 extern "C"
18953 #endif
18954 char dcgettext ();
18955 int
18956 main ()
18957 {
18958 return dcgettext ();
18959   ;
18960   return 0;
18961 }
18962 _ACEOF
18963 if ac_fn_c_try_link "$LINENO"; then :
18964   ac_cv_lib_intl_dcgettext=yes
18965 else
18966   ac_cv_lib_intl_dcgettext=no
18967 fi
18968 rm -f core conftest.err conftest.$ac_objext \
18969     conftest$ac_exeext conftest.$ac_ext
18970 LIBS=$ac_check_lib_save_LIBS
18971 fi
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
18973 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
18974 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
18975   gt_cv_func_dgettext_libintl=yes
18976                         libintl_extra_libs=-liconv
18977 else
18978   :
18979 fi
18980
18981 else
18982   :
18983 fi
18984
18985         fi
18986
18987         #
18988         # If we found libintl, then check in it for bind_textdomain_codeset();
18989         # we'll prefer libc if neither have bind_textdomain_codeset(),
18990         # and both have dgettext and ngettext
18991         #
18992         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
18993           glib_save_LIBS="$LIBS"
18994           LIBS="$LIBS -lintl $libintl_extra_libs"
18995           unset ac_cv_func_bind_textdomain_codeset
18996           for ac_func in bind_textdomain_codeset
18997 do :
18998   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18999 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19000   cat >>confdefs.h <<_ACEOF
19001 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19002 _ACEOF
19003
19004 fi
19005 done
19006
19007           LIBS="$glib_save_LIBS"
19008
19009           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
19010             gt_cv_func_dgettext_libc=no
19011           else
19012             if test "$gt_cv_func_dgettext_libc" = "yes" \
19013                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
19014               gt_cv_func_dgettext_libintl=no
19015             fi
19016           fi
19017         fi
19018       fi
19019
19020       if test "$gt_cv_func_dgettext_libc" = "yes" \
19021         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
19022         gt_cv_have_gettext=yes
19023       fi
19024
19025       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
19026         INTLLIBS="-lintl $libintl_extra_libs"
19027       fi
19028
19029       if test "$gt_cv_have_gettext" = "yes"; then
19030
19031 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19032
19033         # Extract the first word of "msgfmt", so it can be a program name with args.
19034 set dummy msgfmt; ac_word=$2
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19036 $as_echo_n "checking for $ac_word... " >&6; }
19037 if ${ac_cv_path_MSGFMT+:} false; then :
19038   $as_echo_n "(cached) " >&6
19039 else
19040   case "$MSGFMT" in
19041   /*)
19042   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19043   ;;
19044   *)
19045   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19046   for ac_dir in $PATH; do
19047     test -z "$ac_dir" && ac_dir=.
19048     if test -f $ac_dir/$ac_word; then
19049       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
19050         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
19051         break
19052       fi
19053     fi
19054   done
19055   IFS="$ac_save_ifs"
19056   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
19057   ;;
19058 esac
19059 fi
19060 MSGFMT="$ac_cv_path_MSGFMT"
19061 if test "$MSGFMT" != "no"; then
19062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19063 $as_echo "$MSGFMT" >&6; }
19064 else
19065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19066 $as_echo "no" >&6; }
19067 fi
19068         if test "$MSGFMT" != "no"; then
19069           glib_save_LIBS="$LIBS"
19070           LIBS="$LIBS $INTLLIBS"
19071           for ac_func in dcgettext
19072 do :
19073   ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
19074 if test "x$ac_cv_func_dcgettext" = xyes; then :
19075   cat >>confdefs.h <<_ACEOF
19076 #define HAVE_DCGETTEXT 1
19077 _ACEOF
19078
19079 fi
19080 done
19081
19082           MSGFMT_OPTS=
19083           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
19084 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
19085           cat >conftest.foo <<_ACEOF
19086
19087 msgid ""
19088 msgstr ""
19089 "Content-Type: text/plain; charset=UTF-8\n"
19090 "Project-Id-Version: test 1.0\n"
19091 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
19092 "Last-Translator: test <foo@bar.xx>\n"
19093 "Language-Team: C <LL@li.org>\n"
19094 "MIME-Version: 1.0\n"
19095 "Content-Transfer-Encoding: 8bit\n"
19096
19097 _ACEOF
19098 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
19099   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
19100   ac_status=$?
19101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19102   test $ac_status = 0; }; then
19103   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19104 $as_echo "yes" >&6; }
19105 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19106 $as_echo "no" >&6; }
19107 echo "$as_me: failed input was:" >&5
19108 sed 's/^/| /' conftest.foo >&5
19109 fi
19110
19111           # Extract the first word of "gmsgfmt", so it can be a program name with args.
19112 set dummy gmsgfmt; ac_word=$2
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19114 $as_echo_n "checking for $ac_word... " >&6; }
19115 if ${ac_cv_path_GMSGFMT+:} false; then :
19116   $as_echo_n "(cached) " >&6
19117 else
19118   case $GMSGFMT in
19119   [\\/]* | ?:[\\/]*)
19120   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19121   ;;
19122   *)
19123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19124 for as_dir in $PATH
19125 do
19126   IFS=$as_save_IFS
19127   test -z "$as_dir" && as_dir=.
19128     for ac_exec_ext in '' $ac_executable_extensions; do
19129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19130     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19132     break 2
19133   fi
19134 done
19135   done
19136 IFS=$as_save_IFS
19137
19138   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19139   ;;
19140 esac
19141 fi
19142 GMSGFMT=$ac_cv_path_GMSGFMT
19143 if test -n "$GMSGFMT"; then
19144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19145 $as_echo "$GMSGFMT" >&6; }
19146 else
19147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148 $as_echo "no" >&6; }
19149 fi
19150
19151
19152           # Extract the first word of "xgettext", so it can be a program name with args.
19153 set dummy xgettext; ac_word=$2
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19155 $as_echo_n "checking for $ac_word... " >&6; }
19156 if ${ac_cv_path_XGETTEXT+:} false; then :
19157   $as_echo_n "(cached) " >&6
19158 else
19159   case "$XGETTEXT" in
19160   /*)
19161   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19162   ;;
19163   *)
19164   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19165   for ac_dir in $PATH; do
19166     test -z "$ac_dir" && ac_dir=.
19167     if test -f $ac_dir/$ac_word; then
19168       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
19169         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
19170         break
19171       fi
19172     fi
19173   done
19174   IFS="$ac_save_ifs"
19175   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
19176   ;;
19177 esac
19178 fi
19179 XGETTEXT="$ac_cv_path_XGETTEXT"
19180 if test "$XGETTEXT" != ":"; then
19181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19182 $as_echo "$XGETTEXT" >&6; }
19183 else
19184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19185 $as_echo "no" >&6; }
19186 fi
19187
19188           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h.  */
19190
19191 int
19192 main ()
19193 {
19194 extern int _nl_msg_cat_cntr;
19195                          return _nl_msg_cat_cntr
19196   ;
19197   return 0;
19198 }
19199 _ACEOF
19200 if ac_fn_c_try_link "$LINENO"; then :
19201   CATOBJEXT=.gmo
19202              DATADIRNAME=share
19203 else
19204   case $host in
19205             *-*-solaris*)
19206                                                                 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19207 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19208   CATOBJEXT=.gmo
19209                DATADIRNAME=share
19210 else
19211   CATOBJEXT=.mo
19212                DATADIRNAME=lib
19213 fi
19214
19215             ;;
19216             *-*-openbsd*)
19217             CATOBJEXT=.mo
19218             DATADIRNAME=share
19219             ;;
19220             *)
19221             CATOBJEXT=.mo
19222             DATADIRNAME=lib
19223             ;;
19224             esac
19225 fi
19226 rm -f core conftest.err conftest.$ac_objext \
19227     conftest$ac_exeext conftest.$ac_ext
19228           LIBS="$glib_save_LIBS"
19229           INSTOBJEXT=.mo
19230         else
19231           gt_cv_have_gettext=no
19232         fi
19233       fi
19234
19235 fi
19236
19237
19238
19239     if test "$gt_cv_have_gettext" = "yes" ; then
19240
19241 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19242
19243     fi
19244
19245         if test "$XGETTEXT" != ":"; then
19246                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
19247         : ;
19248       else
19249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
19250 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
19251         XGETTEXT=":"
19252       fi
19253     fi
19254
19255     # We need to process the po/ directory.
19256     POSUB=po
19257
19258     ac_config_commands="$ac_config_commands default-1"
19259
19260
19261                 for lang in $ALL_LINGUAS; do
19262       GMOFILES="$GMOFILES $lang.gmo"
19263       POFILES="$POFILES $lang.po"
19264     done
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278    if test "$gt_cv_have_gettext" = "yes"; then
19279      if test "x$ALL_LINGUAS" = "x"; then
19280        LINGUAS=
19281      else
19282        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
19283 $as_echo_n "checking for catalogs to be installed... " >&6; }
19284        NEW_LINGUAS=
19285        for presentlang in $ALL_LINGUAS; do
19286          useit=no
19287          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
19288            desiredlanguages="$LINGUAS"
19289          else
19290            desiredlanguages="$ALL_LINGUAS"
19291          fi
19292          for desiredlang in $desiredlanguages; do
19293            # Use the presentlang catalog if desiredlang is
19294            #   a. equal to presentlang, or
19295            #   b. a variant of presentlang (because in this case,
19296            #      presentlang can be used as a fallback for messages
19297            #      which are not translated in the desiredlang catalog).
19298            case "$desiredlang" in
19299              "$presentlang"*) useit=yes;;
19300            esac
19301          done
19302          if test $useit = yes; then
19303            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
19304          fi
19305        done
19306        LINGUAS=$NEW_LINGUAS
19307        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
19308 $as_echo "$LINGUAS" >&6; }
19309      fi
19310
19311           if test -n "$LINGUAS"; then
19312        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
19313      fi
19314    fi
19315
19316             MKINSTALLDIRS=
19317    if test -n "$ac_aux_dir"; then
19318      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
19319    fi
19320    if test -z "$MKINSTALLDIRS"; then
19321      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
19322    fi
19323
19324
19325          test -d po || mkdir po
19326    if test "x$srcdir" != "x."; then
19327      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
19328        posrcprefix="$srcdir/"
19329      else
19330        posrcprefix="../$srcdir/"
19331      fi
19332    else
19333      posrcprefix="../"
19334    fi
19335    rm -f po/POTFILES
19336    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
19337         < $srcdir/po/POTFILES.in > po/POTFILES
19338
19339
19340 # --disable-lua-extension
19341 # Check whether --enable-lua-extension was given.
19342 if test "${enable_lua_extension+set}" = set; then :
19343   enableval=$enable_lua_extension; enable_lua_extension=$enableval
19344 else
19345   enable_lua_extension=yes
19346
19347 fi
19348
19349
19350 # check lua
19351
19352 pkg_failed=no
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
19354 $as_echo_n "checking for LUA... " >&6; }
19355
19356 if test -n "$LUA_CFLAGS"; then
19357     pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
19358  elif test -n "$PKG_CONFIG"; then
19359     if test -n "$PKG_CONFIG" && \
19360     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19361     lua >= 5.1
19362 \""; } >&5
19363   ($PKG_CONFIG --exists --print-errors "
19364     lua >= 5.1
19365 ") 2>&5
19366   ac_status=$?
19367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19368   test $ac_status = 0; }; then
19369   pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "
19370     lua >= 5.1
19371 " 2>/dev/null`
19372                       test "x$?" != "x0" && pkg_failed=yes
19373 else
19374   pkg_failed=yes
19375 fi
19376  else
19377     pkg_failed=untried
19378 fi
19379 if test -n "$LUA_LIBS"; then
19380     pkg_cv_LUA_LIBS="$LUA_LIBS"
19381  elif test -n "$PKG_CONFIG"; then
19382     if test -n "$PKG_CONFIG" && \
19383     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19384     lua >= 5.1
19385 \""; } >&5
19386   ($PKG_CONFIG --exists --print-errors "
19387     lua >= 5.1
19388 ") 2>&5
19389   ac_status=$?
19390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19391   test $ac_status = 0; }; then
19392   pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "
19393     lua >= 5.1
19394 " 2>/dev/null`
19395                       test "x$?" != "x0" && pkg_failed=yes
19396 else
19397   pkg_failed=yes
19398 fi
19399  else
19400     pkg_failed=untried
19401 fi
19402
19403
19404
19405 if test $pkg_failed = yes; then
19406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19407 $as_echo "no" >&6; }
19408
19409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19410         _pkg_short_errors_supported=yes
19411 else
19412         _pkg_short_errors_supported=no
19413 fi
19414         if test $_pkg_short_errors_supported = yes; then
19415                 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
19416     lua >= 5.1
19417 " 2>&1`
19418         else
19419                 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
19420     lua >= 5.1
19421 " 2>&1`
19422         fi
19423         # Put the nasty error message in config.log where it belongs
19424         echo "$LUA_PKG_ERRORS" >&5
19425
19426         has_lua_extension=no
19427
19428 elif test $pkg_failed = untried; then
19429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19430 $as_echo "no" >&6; }
19431         has_lua_extension=no
19432
19433 else
19434         LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
19435         LUA_LIBS=$pkg_cv_LUA_LIBS
19436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19437 $as_echo "yes" >&6; }
19438
19439 fi
19440
19441 if test x"$has_lua_extension" = x"no";
19442 then
19443
19444 pkg_failed=no
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
19446 $as_echo_n "checking for LUA... " >&6; }
19447
19448 if test -n "$LUA_CFLAGS"; then
19449     pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
19450  elif test -n "$PKG_CONFIG"; then
19451     if test -n "$PKG_CONFIG" && \
19452     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19453         lua5.1
19454     \""; } >&5
19455   ($PKG_CONFIG --exists --print-errors "
19456         lua5.1
19457     ") 2>&5
19458   ac_status=$?
19459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19460   test $ac_status = 0; }; then
19461   pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "
19462         lua5.1
19463     " 2>/dev/null`
19464                       test "x$?" != "x0" && pkg_failed=yes
19465 else
19466   pkg_failed=yes
19467 fi
19468  else
19469     pkg_failed=untried
19470 fi
19471 if test -n "$LUA_LIBS"; then
19472     pkg_cv_LUA_LIBS="$LUA_LIBS"
19473  elif test -n "$PKG_CONFIG"; then
19474     if test -n "$PKG_CONFIG" && \
19475     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19476         lua5.1
19477     \""; } >&5
19478   ($PKG_CONFIG --exists --print-errors "
19479         lua5.1
19480     ") 2>&5
19481   ac_status=$?
19482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19483   test $ac_status = 0; }; then
19484   pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "
19485         lua5.1
19486     " 2>/dev/null`
19487                       test "x$?" != "x0" && pkg_failed=yes
19488 else
19489   pkg_failed=yes
19490 fi
19491  else
19492     pkg_failed=untried
19493 fi
19494
19495
19496
19497 if test $pkg_failed = yes; then
19498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19499 $as_echo "no" >&6; }
19500
19501 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19502         _pkg_short_errors_supported=yes
19503 else
19504         _pkg_short_errors_supported=no
19505 fi
19506         if test $_pkg_short_errors_supported = yes; then
19507                 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
19508         lua5.1
19509     " 2>&1`
19510         else
19511                 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
19512         lua5.1
19513     " 2>&1`
19514         fi
19515         # Put the nasty error message in config.log where it belongs
19516         echo "$LUA_PKG_ERRORS" >&5
19517
19518         enable_lua_extension=no
19519
19520 elif test $pkg_failed = untried; then
19521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19522 $as_echo "no" >&6; }
19523         enable_lua_extension=no
19524
19525 else
19526         LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
19527         LUA_LIBS=$pkg_cv_LUA_LIBS
19528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19529 $as_echo "yes" >&6; }
19530
19531 fi;
19532 fi
19533
19534  if test x"$enable_lua_extension" = x"yes"; then
19535   IBUS_BUILD_LUA_EXTENSION_TRUE=
19536   IBUS_BUILD_LUA_EXTENSION_FALSE='#'
19537 else
19538   IBUS_BUILD_LUA_EXTENSION_TRUE='#'
19539   IBUS_BUILD_LUA_EXTENSION_FALSE=
19540 fi
19541
19542
19543 # --disable-english-input-mode
19544 # Check whether --enable-english-input-mode was given.
19545 if test "${enable_english_input_mode+set}" = set; then :
19546   enableval=$enable_english_input_mode; enable_english_input_mode=$enableval
19547 else
19548   enable_english_input_mode=yes
19549
19550 fi
19551
19552
19553  if test x"$enable_english_input_mode" = x"yes"; then
19554   IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE=
19555   IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE='#'
19556 else
19557   IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE='#'
19558   IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE=
19559 fi
19560
19561
19562 # --disable-stroke-input-mode
19563 # Check whether --enable-stroke-input-mode was given.
19564 if test "${enable_stroke_input_mode+set}" = set; then :
19565   enableval=$enable_stroke_input_mode; enable_stroke_input_mode=$enableval
19566 else
19567   enable_stroke_input_mode=yes
19568
19569 fi
19570
19571
19572  if test x"$enable_stroke_input_mode" = x"yes"; then
19573   IBUS_BUILD_STROKE_INPUT_MODE_TRUE=
19574   IBUS_BUILD_STROKE_INPUT_MODE_FALSE='#'
19575 else
19576   IBUS_BUILD_STROKE_INPUT_MODE_TRUE='#'
19577   IBUS_BUILD_STROKE_INPUT_MODE_FALSE=
19578 fi
19579
19580
19581 # OUTPUT files
19582 ac_config_files="$ac_config_files po/Makefile.in Makefile ibus-libpinyin.spec lua/Makefile src/Makefile src/libpinyin.xml.in setup/Makefile setup/ibus-setup-libpinyin setup/config.py data/Makefile data/icons/Makefile m4/Makefile"
19583
19584
19585 cat >confcache <<\_ACEOF
19586 # This file is a shell script that caches the results of configure
19587 # tests run on this system so they can be shared between configure
19588 # scripts and configure runs, see configure's option --config-cache.
19589 # It is not useful on other systems.  If it contains results you don't
19590 # want to keep, you may remove or edit it.
19591 #
19592 # config.status only pays attention to the cache file if you give it
19593 # the --recheck option to rerun configure.
19594 #
19595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19597 # following values.
19598
19599 _ACEOF
19600
19601 # The following way of writing the cache mishandles newlines in values,
19602 # but we know of no workaround that is simple, portable, and efficient.
19603 # So, we kill variables containing newlines.
19604 # Ultrix sh set writes to stderr and can't be redirected directly,
19605 # and sets the high bit in the cache file unless we assign to the vars.
19606 (
19607   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19608     eval ac_val=\$$ac_var
19609     case $ac_val in #(
19610     *${as_nl}*)
19611       case $ac_var in #(
19612       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19614       esac
19615       case $ac_var in #(
19616       _ | IFS | as_nl) ;; #(
19617       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19618       *) { eval $ac_var=; unset $ac_var;} ;;
19619       esac ;;
19620     esac
19621   done
19622
19623   (set) 2>&1 |
19624     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19625     *${as_nl}ac_space=\ *)
19626       # `set' does not quote correctly, so add quotes: double-quote
19627       # substitution turns \\\\ into \\, and sed turns \\ into \.
19628       sed -n \
19629         "s/'/'\\\\''/g;
19630           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19631       ;; #(
19632     *)
19633       # `set' quotes correctly as required by POSIX, so do not add quotes.
19634       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19635       ;;
19636     esac |
19637     sort
19638 ) |
19639   sed '
19640      /^ac_cv_env_/b end
19641      t clear
19642      :clear
19643      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19644      t end
19645      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19646      :end' >>confcache
19647 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19648   if test -w "$cache_file"; then
19649     if test "x$cache_file" != "x/dev/null"; then
19650       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19651 $as_echo "$as_me: updating cache $cache_file" >&6;}
19652       if test ! -f "$cache_file" || test -h "$cache_file"; then
19653         cat confcache >"$cache_file"
19654       else
19655         case $cache_file in #(
19656         */* | ?:*)
19657           mv -f confcache "$cache_file"$$ &&
19658           mv -f "$cache_file"$$ "$cache_file" ;; #(
19659         *)
19660           mv -f confcache "$cache_file" ;;
19661         esac
19662       fi
19663     fi
19664   else
19665     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19666 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19667   fi
19668 fi
19669 rm -f confcache
19670
19671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19672 # Let make expand exec_prefix.
19673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19674
19675 DEFS=-DHAVE_CONFIG_H
19676
19677 ac_libobjs=
19678 ac_ltlibobjs=
19679 U=
19680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19681   # 1. Remove the extension, and $U if already installed.
19682   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19683   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19684   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19685   #    will be set to the directory where LIBOBJS objects are built.
19686   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19687   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19688 done
19689 LIBOBJS=$ac_libobjs
19690
19691 LTLIBOBJS=$ac_ltlibobjs
19692
19693
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19695 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19696    if test -n "$am_sleep_pid"; then
19697      # Hide warnings about reused PIDs.
19698      wait $am_sleep_pid 2>/dev/null
19699    fi
19700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19701 $as_echo "done" >&6; }
19702  if test -n "$EXEEXT"; then
19703   am__EXEEXT_TRUE=
19704   am__EXEEXT_FALSE='#'
19705 else
19706   am__EXEEXT_TRUE='#'
19707   am__EXEEXT_FALSE=
19708 fi
19709
19710 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19711   as_fn_error $? "conditional \"AMDEP\" was never defined.
19712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19713 fi
19714 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19715   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19717 fi
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19719 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19720    if test -n "$am_sleep_pid"; then
19721      # Hide warnings about reused PIDs.
19722      wait $am_sleep_pid 2>/dev/null
19723    fi
19724    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19725 $as_echo "done" >&6; }
19726 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19727   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19729 fi
19730 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19731   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19733 fi
19734 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19735   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19737 fi
19738
19739   ac_config_commands="$ac_config_commands po/stamp-it"
19740
19741
19742 if test -z "${IBUS_BUILD_LIBPINYIN_TRUE}" && test -z "${IBUS_BUILD_LIBPINYIN_FALSE}"; then
19743   as_fn_error $? "conditional \"IBUS_BUILD_LIBPINYIN\" was never defined.
19744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19745 fi
19746 if test -z "${HAVE_LIBUUID_TRUE}" && test -z "${HAVE_LIBUUID_FALSE}"; then
19747   as_fn_error $? "conditional \"HAVE_LIBUUID\" was never defined.
19748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19749 fi
19750 if test -z "${HAVE_BOOST_TRUE}" && test -z "${HAVE_BOOST_FALSE}"; then
19751   as_fn_error $? "conditional \"HAVE_BOOST\" was never defined.
19752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19753 fi
19754 if test -z "${IBUS_BUILD_LUA_EXTENSION_TRUE}" && test -z "${IBUS_BUILD_LUA_EXTENSION_FALSE}"; then
19755   as_fn_error $? "conditional \"IBUS_BUILD_LUA_EXTENSION\" was never defined.
19756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19757 fi
19758 if test -z "${IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE}" && test -z "${IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE}"; then
19759   as_fn_error $? "conditional \"IBUS_BUILD_ENGLISH_INPUT_MODE\" was never defined.
19760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19761 fi
19762 if test -z "${IBUS_BUILD_STROKE_INPUT_MODE_TRUE}" && test -z "${IBUS_BUILD_STROKE_INPUT_MODE_FALSE}"; then
19763   as_fn_error $? "conditional \"IBUS_BUILD_STROKE_INPUT_MODE\" was never defined.
19764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19765 fi
19766
19767 : "${CONFIG_STATUS=./config.status}"
19768 ac_write_fail=0
19769 ac_clean_files_save=$ac_clean_files
19770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19772 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19773 as_write_fail=0
19774 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19775 #! $SHELL
19776 # Generated by $as_me.
19777 # Run this file to recreate the current configuration.
19778 # Compiler output produced by configure, useful for debugging
19779 # configure, is in config.log if it exists.
19780
19781 debug=false
19782 ac_cs_recheck=false
19783 ac_cs_silent=false
19784
19785 SHELL=\${CONFIG_SHELL-$SHELL}
19786 export SHELL
19787 _ASEOF
19788 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19789 ## -------------------- ##
19790 ## M4sh Initialization. ##
19791 ## -------------------- ##
19792
19793 # Be more Bourne compatible
19794 DUALCASE=1; export DUALCASE # for MKS sh
19795 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19796   emulate sh
19797   NULLCMD=:
19798   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19799   # is contrary to our usage.  Disable this feature.
19800   alias -g '${1+"$@"}'='"$@"'
19801   setopt NO_GLOB_SUBST
19802 else
19803   case `(set -o) 2>/dev/null` in #(
19804   *posix*) :
19805     set -o posix ;; #(
19806   *) :
19807      ;;
19808 esac
19809 fi
19810
19811
19812 as_nl='
19813 '
19814 export as_nl
19815 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19816 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19819 # Prefer a ksh shell builtin over an external printf program on Solaris,
19820 # but without wasting forks for bash or zsh.
19821 if test -z "$BASH_VERSION$ZSH_VERSION" \
19822     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19823   as_echo='print -r --'
19824   as_echo_n='print -rn --'
19825 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19826   as_echo='printf %s\n'
19827   as_echo_n='printf %s'
19828 else
19829   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19830     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19831     as_echo_n='/usr/ucb/echo -n'
19832   else
19833     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19834     as_echo_n_body='eval
19835       arg=$1;
19836       case $arg in #(
19837       *"$as_nl"*)
19838         expr "X$arg" : "X\\(.*\\)$as_nl";
19839         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19840       esac;
19841       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19842     '
19843     export as_echo_n_body
19844     as_echo_n='sh -c $as_echo_n_body as_echo'
19845   fi
19846   export as_echo_body
19847   as_echo='sh -c $as_echo_body as_echo'
19848 fi
19849
19850 # The user is always right.
19851 if test "${PATH_SEPARATOR+set}" != set; then
19852   PATH_SEPARATOR=:
19853   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19854     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19855       PATH_SEPARATOR=';'
19856   }
19857 fi
19858
19859
19860 # IFS
19861 # We need space, tab and new line, in precisely that order.  Quoting is
19862 # there to prevent editors from complaining about space-tab.
19863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19864 # splitting by setting IFS to empty value.)
19865 IFS=" ""        $as_nl"
19866
19867 # Find who we are.  Look in the path if we contain no directory separator.
19868 as_myself=
19869 case $0 in #((
19870   *[\\/]* ) as_myself=$0 ;;
19871   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19872 for as_dir in $PATH
19873 do
19874   IFS=$as_save_IFS
19875   test -z "$as_dir" && as_dir=.
19876     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19877   done
19878 IFS=$as_save_IFS
19879
19880      ;;
19881 esac
19882 # We did not find ourselves, most probably we were run as `sh COMMAND'
19883 # in which case we are not to be found in the path.
19884 if test "x$as_myself" = x; then
19885   as_myself=$0
19886 fi
19887 if test ! -f "$as_myself"; then
19888   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19889   exit 1
19890 fi
19891
19892 # Unset variables that we do not need and which cause bugs (e.g. in
19893 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19894 # suppresses any "Segmentation fault" message there.  '((' could
19895 # trigger a bug in pdksh 5.2.14.
19896 for as_var in BASH_ENV ENV MAIL MAILPATH
19897 do eval test x\${$as_var+set} = xset \
19898   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19899 done
19900 PS1='$ '
19901 PS2='> '
19902 PS4='+ '
19903
19904 # NLS nuisances.
19905 LC_ALL=C
19906 export LC_ALL
19907 LANGUAGE=C
19908 export LANGUAGE
19909
19910 # CDPATH.
19911 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19912
19913
19914 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19915 # ----------------------------------------
19916 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19917 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19918 # script with STATUS, using 1 if that was 0.
19919 as_fn_error ()
19920 {
19921   as_status=$1; test $as_status -eq 0 && as_status=1
19922   if test "$4"; then
19923     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19924     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19925   fi
19926   $as_echo "$as_me: error: $2" >&2
19927   as_fn_exit $as_status
19928 } # as_fn_error
19929
19930
19931 # as_fn_set_status STATUS
19932 # -----------------------
19933 # Set $? to STATUS, without forking.
19934 as_fn_set_status ()
19935 {
19936   return $1
19937 } # as_fn_set_status
19938
19939 # as_fn_exit STATUS
19940 # -----------------
19941 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19942 as_fn_exit ()
19943 {
19944   set +e
19945   as_fn_set_status $1
19946   exit $1
19947 } # as_fn_exit
19948
19949 # as_fn_unset VAR
19950 # ---------------
19951 # Portably unset VAR.
19952 as_fn_unset ()
19953 {
19954   { eval $1=; unset $1;}
19955 }
19956 as_unset=as_fn_unset
19957 # as_fn_append VAR VALUE
19958 # ----------------------
19959 # Append the text in VALUE to the end of the definition contained in VAR. Take
19960 # advantage of any shell optimizations that allow amortized linear growth over
19961 # repeated appends, instead of the typical quadratic growth present in naive
19962 # implementations.
19963 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19964   eval 'as_fn_append ()
19965   {
19966     eval $1+=\$2
19967   }'
19968 else
19969   as_fn_append ()
19970   {
19971     eval $1=\$$1\$2
19972   }
19973 fi # as_fn_append
19974
19975 # as_fn_arith ARG...
19976 # ------------------
19977 # Perform arithmetic evaluation on the ARGs, and store the result in the
19978 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19979 # must be portable across $(()) and expr.
19980 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19981   eval 'as_fn_arith ()
19982   {
19983     as_val=$(( $* ))
19984   }'
19985 else
19986   as_fn_arith ()
19987   {
19988     as_val=`expr "$@" || test $? -eq 1`
19989   }
19990 fi # as_fn_arith
19991
19992
19993 if expr a : '\(a\)' >/dev/null 2>&1 &&
19994    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19995   as_expr=expr
19996 else
19997   as_expr=false
19998 fi
19999
20000 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20001   as_basename=basename
20002 else
20003   as_basename=false
20004 fi
20005
20006 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20007   as_dirname=dirname
20008 else
20009   as_dirname=false
20010 fi
20011
20012 as_me=`$as_basename -- "$0" ||
20013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20014          X"$0" : 'X\(//\)$' \| \
20015          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20016 $as_echo X/"$0" |
20017     sed '/^.*\/\([^/][^/]*\)\/*$/{
20018             s//\1/
20019             q
20020           }
20021           /^X\/\(\/\/\)$/{
20022             s//\1/
20023             q
20024           }
20025           /^X\/\(\/\).*/{
20026             s//\1/
20027             q
20028           }
20029           s/.*/./; q'`
20030
20031 # Avoid depending upon Character Ranges.
20032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20035 as_cr_digits='0123456789'
20036 as_cr_alnum=$as_cr_Letters$as_cr_digits
20037
20038 ECHO_C= ECHO_N= ECHO_T=
20039 case `echo -n x` in #(((((
20040 -n*)
20041   case `echo 'xy\c'` in
20042   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20043   xy)  ECHO_C='\c';;
20044   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20045        ECHO_T=' ';;
20046   esac;;
20047 *)
20048   ECHO_N='-n';;
20049 esac
20050
20051 rm -f conf$$ conf$$.exe conf$$.file
20052 if test -d conf$$.dir; then
20053   rm -f conf$$.dir/conf$$.file
20054 else
20055   rm -f conf$$.dir
20056   mkdir conf$$.dir 2>/dev/null
20057 fi
20058 if (echo >conf$$.file) 2>/dev/null; then
20059   if ln -s conf$$.file conf$$ 2>/dev/null; then
20060     as_ln_s='ln -s'
20061     # ... but there are two gotchas:
20062     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20063     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20064     # In both cases, we have to default to `cp -pR'.
20065     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20066       as_ln_s='cp -pR'
20067   elif ln conf$$.file conf$$ 2>/dev/null; then
20068     as_ln_s=ln
20069   else
20070     as_ln_s='cp -pR'
20071   fi
20072 else
20073   as_ln_s='cp -pR'
20074 fi
20075 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20076 rmdir conf$$.dir 2>/dev/null
20077
20078
20079 # as_fn_mkdir_p
20080 # -------------
20081 # Create "$as_dir" as a directory, including parents if necessary.
20082 as_fn_mkdir_p ()
20083 {
20084
20085   case $as_dir in #(
20086   -*) as_dir=./$as_dir;;
20087   esac
20088   test -d "$as_dir" || eval $as_mkdir_p || {
20089     as_dirs=
20090     while :; do
20091       case $as_dir in #(
20092       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20093       *) as_qdir=$as_dir;;
20094       esac
20095       as_dirs="'$as_qdir' $as_dirs"
20096       as_dir=`$as_dirname -- "$as_dir" ||
20097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20098          X"$as_dir" : 'X\(//\)[^/]' \| \
20099          X"$as_dir" : 'X\(//\)$' \| \
20100          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20101 $as_echo X"$as_dir" |
20102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20103             s//\1/
20104             q
20105           }
20106           /^X\(\/\/\)[^/].*/{
20107             s//\1/
20108             q
20109           }
20110           /^X\(\/\/\)$/{
20111             s//\1/
20112             q
20113           }
20114           /^X\(\/\).*/{
20115             s//\1/
20116             q
20117           }
20118           s/.*/./; q'`
20119       test -d "$as_dir" && break
20120     done
20121     test -z "$as_dirs" || eval "mkdir $as_dirs"
20122   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20123
20124
20125 } # as_fn_mkdir_p
20126 if mkdir -p . 2>/dev/null; then
20127   as_mkdir_p='mkdir -p "$as_dir"'
20128 else
20129   test -d ./-p && rmdir ./-p
20130   as_mkdir_p=false
20131 fi
20132
20133
20134 # as_fn_executable_p FILE
20135 # -----------------------
20136 # Test if FILE is an executable regular file.
20137 as_fn_executable_p ()
20138 {
20139   test -f "$1" && test -x "$1"
20140 } # as_fn_executable_p
20141 as_test_x='test -x'
20142 as_executable_p=as_fn_executable_p
20143
20144 # Sed expression to map a string onto a valid CPP name.
20145 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20146
20147 # Sed expression to map a string onto a valid variable name.
20148 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20149
20150
20151 exec 6>&1
20152 ## ----------------------------------- ##
20153 ## Main body of $CONFIG_STATUS script. ##
20154 ## ----------------------------------- ##
20155 _ASEOF
20156 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20157
20158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20159 # Save the log message, to keep $0 and so on meaningful, and to
20160 # report actual input values of CONFIG_FILES etc. instead of their
20161 # values after options handling.
20162 ac_log="
20163 This file was extended by ibus-libpinyin $as_me 1.6.92, which was
20164 generated by GNU Autoconf 2.69.  Invocation command line was
20165
20166   CONFIG_FILES    = $CONFIG_FILES
20167   CONFIG_HEADERS  = $CONFIG_HEADERS
20168   CONFIG_LINKS    = $CONFIG_LINKS
20169   CONFIG_COMMANDS = $CONFIG_COMMANDS
20170   $ $0 $@
20171
20172 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20173 "
20174
20175 _ACEOF
20176
20177 case $ac_config_files in *"
20178 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20179 esac
20180
20181 case $ac_config_headers in *"
20182 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20183 esac
20184
20185
20186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20187 # Files that config.status was made for.
20188 config_files="$ac_config_files"
20189 config_headers="$ac_config_headers"
20190 config_commands="$ac_config_commands"
20191
20192 _ACEOF
20193
20194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20195 ac_cs_usage="\
20196 \`$as_me' instantiates files and other configuration actions
20197 from templates according to the current configuration.  Unless the files
20198 and actions are specified as TAGs, all are instantiated by default.
20199
20200 Usage: $0 [OPTION]... [TAG]...
20201
20202   -h, --help       print this help, then exit
20203   -V, --version    print version number and configuration settings, then exit
20204       --config     print configuration, then exit
20205   -q, --quiet, --silent
20206                    do not print progress messages
20207   -d, --debug      don't remove temporary files
20208       --recheck    update $as_me by reconfiguring in the same conditions
20209       --file=FILE[:TEMPLATE]
20210                    instantiate the configuration file FILE
20211       --header=FILE[:TEMPLATE]
20212                    instantiate the configuration header FILE
20213
20214 Configuration files:
20215 $config_files
20216
20217 Configuration headers:
20218 $config_headers
20219
20220 Configuration commands:
20221 $config_commands
20222
20223 Report bugs to <https://github.com/libpinyin/ibus-libpinyin/issues/new>."
20224
20225 _ACEOF
20226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20227 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20228 ac_cs_version="\\
20229 ibus-libpinyin config.status 1.6.92
20230 configured by $0, generated by GNU Autoconf 2.69,
20231   with options \\"\$ac_cs_config\\"
20232
20233 Copyright (C) 2012 Free Software Foundation, Inc.
20234 This config.status script is free software; the Free Software Foundation
20235 gives unlimited permission to copy, distribute and modify it."
20236
20237 ac_pwd='$ac_pwd'
20238 srcdir='$srcdir'
20239 INSTALL='$INSTALL'
20240 MKDIR_P='$MKDIR_P'
20241 AWK='$AWK'
20242 test -n "\$AWK" || AWK=awk
20243 _ACEOF
20244
20245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20246 # The default lists apply if the user does not specify any file.
20247 ac_need_defaults=:
20248 while test $# != 0
20249 do
20250   case $1 in
20251   --*=?*)
20252     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20253     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20254     ac_shift=:
20255     ;;
20256   --*=)
20257     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20258     ac_optarg=
20259     ac_shift=:
20260     ;;
20261   *)
20262     ac_option=$1
20263     ac_optarg=$2
20264     ac_shift=shift
20265     ;;
20266   esac
20267
20268   case $ac_option in
20269   # Handling of the options.
20270   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20271     ac_cs_recheck=: ;;
20272   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20273     $as_echo "$ac_cs_version"; exit ;;
20274   --config | --confi | --conf | --con | --co | --c )
20275     $as_echo "$ac_cs_config"; exit ;;
20276   --debug | --debu | --deb | --de | --d | -d )
20277     debug=: ;;
20278   --file | --fil | --fi | --f )
20279     $ac_shift
20280     case $ac_optarg in
20281     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20282     '') as_fn_error $? "missing file argument" ;;
20283     esac
20284     as_fn_append CONFIG_FILES " '$ac_optarg'"
20285     ac_need_defaults=false;;
20286   --header | --heade | --head | --hea )
20287     $ac_shift
20288     case $ac_optarg in
20289     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20290     esac
20291     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20292     ac_need_defaults=false;;
20293   --he | --h)
20294     # Conflict between --help and --header
20295     as_fn_error $? "ambiguous option: \`$1'
20296 Try \`$0 --help' for more information.";;
20297   --help | --hel | -h )
20298     $as_echo "$ac_cs_usage"; exit ;;
20299   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20300   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20301     ac_cs_silent=: ;;
20302
20303   # This is an error.
20304   -*) as_fn_error $? "unrecognized option: \`$1'
20305 Try \`$0 --help' for more information." ;;
20306
20307   *) as_fn_append ac_config_targets " $1"
20308      ac_need_defaults=false ;;
20309
20310   esac
20311   shift
20312 done
20313
20314 ac_configure_extra_args=
20315
20316 if $ac_cs_silent; then
20317   exec 6>/dev/null
20318   ac_configure_extra_args="$ac_configure_extra_args --silent"
20319 fi
20320
20321 _ACEOF
20322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20323 if \$ac_cs_recheck; then
20324   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20325   shift
20326   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20327   CONFIG_SHELL='$SHELL'
20328   export CONFIG_SHELL
20329   exec "\$@"
20330 fi
20331
20332 _ACEOF
20333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20334 exec 5>>config.log
20335 {
20336   echo
20337   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20338 ## Running $as_me. ##
20339 _ASBOX
20340   $as_echo "$ac_log"
20341 } >&5
20342
20343 _ACEOF
20344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20345 #
20346 # INIT-COMMANDS
20347 #
20348 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20349
20350
20351 # The HP-UX ksh and POSIX shell print the target directory to stdout
20352 # if CDPATH is set.
20353 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20354
20355 sed_quote_subst='$sed_quote_subst'
20356 double_quote_subst='$double_quote_subst'
20357 delay_variable_subst='$delay_variable_subst'
20358 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20359 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20360 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20361 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20362 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20363 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20364 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20365 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20366 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20367 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20368 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20369 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20370 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20371 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20372 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20373 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20374 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20375 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20376 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20377 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20378 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20379 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20380 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20381 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20382 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20383 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20384 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20385 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20386 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20387 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20388 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20389 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20390 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20391 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20392 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20393 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20394 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20395 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20396 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20397 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20398 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20399 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20400 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20401 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20402 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20403 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20404 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20405 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20406 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20407 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20408 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20409 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20410 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20411 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20412 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20413 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20414 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"`'
20415 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20416 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20417 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20418 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20419 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20420 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20421 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20422 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20423 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20424 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20425 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20426 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20427 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20428 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20429 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20430 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20431 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20432 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20433 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20434 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20435 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20436 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20437 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20438 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20439 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20440 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20441 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20442 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20443 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20444 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20445 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20446 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20447 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20448 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20449 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20450 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20451 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20452 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20453 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20454 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20455 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20456 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20457 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20458 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20459 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20460 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20461 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20462 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20463 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20464 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20465 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20466 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20467 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20468 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20469 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20470 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20471 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20472 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20473 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20474 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20475 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20476 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20477 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20478 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20479 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20480 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20481 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20482 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20483 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20484 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20485 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20486 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20487 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20488 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20489 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20490 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20491 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20492 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20493 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20494 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20495 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20496 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20497 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20498 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20499 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20500 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20501 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20502 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20503 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20504 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20505 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20506 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20507 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20508 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20509 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20510 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20511 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20512 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20513 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20514 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20515 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20516 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20517 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20518 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20519 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20520 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20521 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20522 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20523 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20524 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20525 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20526 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20527 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20528 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20529 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20530 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20531 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20532 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20533 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20534 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20535 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20536 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20537 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20538 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20539 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20540 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20541 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20542
20543 LTCC='$LTCC'
20544 LTCFLAGS='$LTCFLAGS'
20545 compiler='$compiler_DEFAULT'
20546
20547 # A function that is used when there is no print builtin or printf.
20548 func_fallback_echo ()
20549 {
20550   eval 'cat <<_LTECHO_EOF
20551 \$1
20552 _LTECHO_EOF'
20553 }
20554
20555 # Quote evaled strings.
20556 for var in SHELL \
20557 ECHO \
20558 PATH_SEPARATOR \
20559 SED \
20560 GREP \
20561 EGREP \
20562 FGREP \
20563 LD \
20564 NM \
20565 LN_S \
20566 lt_SP2NL \
20567 lt_NL2SP \
20568 reload_flag \
20569 OBJDUMP \
20570 deplibs_check_method \
20571 file_magic_cmd \
20572 file_magic_glob \
20573 want_nocaseglob \
20574 DLLTOOL \
20575 sharedlib_from_linklib_cmd \
20576 AR \
20577 AR_FLAGS \
20578 archiver_list_spec \
20579 STRIP \
20580 RANLIB \
20581 CC \
20582 CFLAGS \
20583 compiler \
20584 lt_cv_sys_global_symbol_pipe \
20585 lt_cv_sys_global_symbol_to_cdecl \
20586 lt_cv_sys_global_symbol_to_c_name_address \
20587 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20588 nm_file_list_spec \
20589 lt_prog_compiler_no_builtin_flag \
20590 lt_prog_compiler_pic \
20591 lt_prog_compiler_wl \
20592 lt_prog_compiler_static \
20593 lt_cv_prog_compiler_c_o \
20594 need_locks \
20595 MANIFEST_TOOL \
20596 DSYMUTIL \
20597 NMEDIT \
20598 LIPO \
20599 OTOOL \
20600 OTOOL64 \
20601 shrext_cmds \
20602 export_dynamic_flag_spec \
20603 whole_archive_flag_spec \
20604 compiler_needs_object \
20605 with_gnu_ld \
20606 allow_undefined_flag \
20607 no_undefined_flag \
20608 hardcode_libdir_flag_spec \
20609 hardcode_libdir_separator \
20610 exclude_expsyms \
20611 include_expsyms \
20612 file_list_spec \
20613 variables_saved_for_relink \
20614 libname_spec \
20615 library_names_spec \
20616 soname_spec \
20617 install_override_mode \
20618 finish_eval \
20619 old_striplib \
20620 striplib \
20621 compiler_lib_search_dirs \
20622 predep_objects \
20623 postdep_objects \
20624 predeps \
20625 postdeps \
20626 compiler_lib_search_path \
20627 LD_CXX \
20628 reload_flag_CXX \
20629 compiler_CXX \
20630 lt_prog_compiler_no_builtin_flag_CXX \
20631 lt_prog_compiler_pic_CXX \
20632 lt_prog_compiler_wl_CXX \
20633 lt_prog_compiler_static_CXX \
20634 lt_cv_prog_compiler_c_o_CXX \
20635 export_dynamic_flag_spec_CXX \
20636 whole_archive_flag_spec_CXX \
20637 compiler_needs_object_CXX \
20638 with_gnu_ld_CXX \
20639 allow_undefined_flag_CXX \
20640 no_undefined_flag_CXX \
20641 hardcode_libdir_flag_spec_CXX \
20642 hardcode_libdir_separator_CXX \
20643 exclude_expsyms_CXX \
20644 include_expsyms_CXX \
20645 file_list_spec_CXX \
20646 compiler_lib_search_dirs_CXX \
20647 predep_objects_CXX \
20648 postdep_objects_CXX \
20649 predeps_CXX \
20650 postdeps_CXX \
20651 compiler_lib_search_path_CXX; do
20652     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20653     *[\\\\\\\`\\"\\\$]*)
20654       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20655       ;;
20656     *)
20657       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20658       ;;
20659     esac
20660 done
20661
20662 # Double-quote double-evaled strings.
20663 for var in reload_cmds \
20664 old_postinstall_cmds \
20665 old_postuninstall_cmds \
20666 old_archive_cmds \
20667 extract_expsyms_cmds \
20668 old_archive_from_new_cmds \
20669 old_archive_from_expsyms_cmds \
20670 archive_cmds \
20671 archive_expsym_cmds \
20672 module_cmds \
20673 module_expsym_cmds \
20674 export_symbols_cmds \
20675 prelink_cmds \
20676 postlink_cmds \
20677 postinstall_cmds \
20678 postuninstall_cmds \
20679 finish_cmds \
20680 sys_lib_search_path_spec \
20681 sys_lib_dlsearch_path_spec \
20682 reload_cmds_CXX \
20683 old_archive_cmds_CXX \
20684 old_archive_from_new_cmds_CXX \
20685 old_archive_from_expsyms_cmds_CXX \
20686 archive_cmds_CXX \
20687 archive_expsym_cmds_CXX \
20688 module_cmds_CXX \
20689 module_expsym_cmds_CXX \
20690 export_symbols_cmds_CXX \
20691 prelink_cmds_CXX \
20692 postlink_cmds_CXX; do
20693     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20694     *[\\\\\\\`\\"\\\$]*)
20695       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20696       ;;
20697     *)
20698       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20699       ;;
20700     esac
20701 done
20702
20703 ac_aux_dir='$ac_aux_dir'
20704 xsi_shell='$xsi_shell'
20705 lt_shell_append='$lt_shell_append'
20706
20707 # See if we are running on zsh, and set the options which allow our
20708 # commands through without removal of \ escapes INIT.
20709 if test -n "\${ZSH_VERSION+set}" ; then
20710    setopt NO_GLOB_SUBST
20711 fi
20712
20713
20714     PACKAGE='$PACKAGE'
20715     VERSION='$VERSION'
20716     TIMESTAMP='$TIMESTAMP'
20717     RM='$RM'
20718     ofile='$ofile'
20719
20720
20721
20722
20723
20724
20725
20726 _ACEOF
20727
20728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20729
20730 # Handling of arguments.
20731 for ac_config_target in $ac_config_targets
20732 do
20733   case $ac_config_target in
20734     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20735     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20736     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20737     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20738     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20739     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20740     "ibus-libpinyin.spec") CONFIG_FILES="$CONFIG_FILES ibus-libpinyin.spec" ;;
20741     "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;;
20742     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20743     "src/libpinyin.xml.in") CONFIG_FILES="$CONFIG_FILES src/libpinyin.xml.in" ;;
20744     "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;;
20745     "setup/ibus-setup-libpinyin") CONFIG_FILES="$CONFIG_FILES setup/ibus-setup-libpinyin" ;;
20746     "setup/config.py") CONFIG_FILES="$CONFIG_FILES setup/config.py" ;;
20747     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
20748     "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;;
20749     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20750     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
20751
20752   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20753   esac
20754 done
20755
20756
20757 # If the user did not use the arguments to specify the items to instantiate,
20758 # then the envvar interface is used.  Set only those that are not.
20759 # We use the long form for the default assignment because of an extremely
20760 # bizarre bug on SunOS 4.1.3.
20761 if $ac_need_defaults; then
20762   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20763   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20764   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20765 fi
20766
20767 # Have a temporary directory for convenience.  Make it in the build tree
20768 # simply because there is no reason against having it here, and in addition,
20769 # creating and moving files from /tmp can sometimes cause problems.
20770 # Hook for its removal unless debugging.
20771 # Note that there is a small window in which the directory will not be cleaned:
20772 # after its creation but before its name has been assigned to `$tmp'.
20773 $debug ||
20774 {
20775   tmp= ac_tmp=
20776   trap 'exit_status=$?
20777   : "${ac_tmp:=$tmp}"
20778   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20779 ' 0
20780   trap 'as_fn_exit 1' 1 2 13 15
20781 }
20782 # Create a (secure) tmp directory for tmp files.
20783
20784 {
20785   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20786   test -d "$tmp"
20787 }  ||
20788 {
20789   tmp=./conf$$-$RANDOM
20790   (umask 077 && mkdir "$tmp")
20791 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20792 ac_tmp=$tmp
20793
20794 # Set up the scripts for CONFIG_FILES section.
20795 # No need to generate them if there are no CONFIG_FILES.
20796 # This happens for instance with `./config.status config.h'.
20797 if test -n "$CONFIG_FILES"; then
20798
20799
20800 ac_cr=`echo X | tr X '\015'`
20801 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20802 # But we know of no other shell where ac_cr would be empty at this
20803 # point, so we can use a bashism as a fallback.
20804 if test "x$ac_cr" = x; then
20805   eval ac_cr=\$\'\\r\'
20806 fi
20807 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20808 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20809   ac_cs_awk_cr='\\r'
20810 else
20811   ac_cs_awk_cr=$ac_cr
20812 fi
20813
20814 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20815 _ACEOF
20816
20817
20818 {
20819   echo "cat >conf$$subs.awk <<_ACEOF" &&
20820   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20821   echo "_ACEOF"
20822 } >conf$$subs.sh ||
20823   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20824 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20825 ac_delim='%!_!# '
20826 for ac_last_try in false false false false false :; do
20827   . ./conf$$subs.sh ||
20828     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20829
20830   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20831   if test $ac_delim_n = $ac_delim_num; then
20832     break
20833   elif $ac_last_try; then
20834     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20835   else
20836     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20837   fi
20838 done
20839 rm -f conf$$subs.sh
20840
20841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20842 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20843 _ACEOF
20844 sed -n '
20845 h
20846 s/^/S["/; s/!.*/"]=/
20847 p
20848 g
20849 s/^[^!]*!//
20850 :repl
20851 t repl
20852 s/'"$ac_delim"'$//
20853 t delim
20854 :nl
20855 h
20856 s/\(.\{148\}\)..*/\1/
20857 t more1
20858 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20859 p
20860 n
20861 b repl
20862 :more1
20863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20864 p
20865 g
20866 s/.\{148\}//
20867 t nl
20868 :delim
20869 h
20870 s/\(.\{148\}\)..*/\1/
20871 t more2
20872 s/["\\]/\\&/g; s/^/"/; s/$/"/
20873 p
20874 b
20875 :more2
20876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20877 p
20878 g
20879 s/.\{148\}//
20880 t delim
20881 ' <conf$$subs.awk | sed '
20882 /^[^""]/{
20883   N
20884   s/\n//
20885 }
20886 ' >>$CONFIG_STATUS || ac_write_fail=1
20887 rm -f conf$$subs.awk
20888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20889 _ACAWK
20890 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20891   for (key in S) S_is_set[key] = 1
20892   FS = "\a"
20893
20894 }
20895 {
20896   line = $ 0
20897   nfields = split(line, field, "@")
20898   substed = 0
20899   len = length(field[1])
20900   for (i = 2; i < nfields; i++) {
20901     key = field[i]
20902     keylen = length(key)
20903     if (S_is_set[key]) {
20904       value = S[key]
20905       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20906       len += length(value) + length(field[++i])
20907       substed = 1
20908     } else
20909       len += 1 + keylen
20910   }
20911
20912   print line
20913 }
20914
20915 _ACAWK
20916 _ACEOF
20917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20918 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20919   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20920 else
20921   cat
20922 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20923   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20924 _ACEOF
20925
20926 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20927 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20928 # trailing colons and then remove the whole line if VPATH becomes empty
20929 # (actually we leave an empty line to preserve line numbers).
20930 if test "x$srcdir" = x.; then
20931   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20932 h
20933 s///
20934 s/^/:/
20935 s/[      ]*$/:/
20936 s/:\$(srcdir):/:/g
20937 s/:\${srcdir}:/:/g
20938 s/:@srcdir@:/:/g
20939 s/^:*//
20940 s/:*$//
20941 x
20942 s/\(=[   ]*\).*/\1/
20943 G
20944 s/\n//
20945 s/^[^=]*=[       ]*$//
20946 }'
20947 fi
20948
20949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20950 fi # test -n "$CONFIG_FILES"
20951
20952 # Set up the scripts for CONFIG_HEADERS section.
20953 # No need to generate them if there are no CONFIG_HEADERS.
20954 # This happens for instance with `./config.status Makefile'.
20955 if test -n "$CONFIG_HEADERS"; then
20956 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20957 BEGIN {
20958 _ACEOF
20959
20960 # Transform confdefs.h into an awk script `defines.awk', embedded as
20961 # here-document in config.status, that substitutes the proper values into
20962 # config.h.in to produce config.h.
20963
20964 # Create a delimiter string that does not exist in confdefs.h, to ease
20965 # handling of long lines.
20966 ac_delim='%!_!# '
20967 for ac_last_try in false false :; do
20968   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20969   if test -z "$ac_tt"; then
20970     break
20971   elif $ac_last_try; then
20972     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20973   else
20974     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20975   fi
20976 done
20977
20978 # For the awk script, D is an array of macro values keyed by name,
20979 # likewise P contains macro parameters if any.  Preserve backslash
20980 # newline sequences.
20981
20982 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20983 sed -n '
20984 s/.\{148\}/&'"$ac_delim"'/g
20985 t rset
20986 :rset
20987 s/^[     ]*#[    ]*define[       ][      ]*/ /
20988 t def
20989 d
20990 :def
20991 s/\\$//
20992 t bsnl
20993 s/["\\]/\\&/g
20994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20995 D["\1"]=" \3"/p
20996 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20997 d
20998 :bsnl
20999 s/["\\]/\\&/g
21000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21001 D["\1"]=" \3\\\\\\n"\\/p
21002 t cont
21003 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21004 t cont
21005 d
21006 :cont
21007 n
21008 s/.\{148\}/&'"$ac_delim"'/g
21009 t clear
21010 :clear
21011 s/\\$//
21012 t bsnlc
21013 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21014 d
21015 :bsnlc
21016 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21017 b cont
21018 ' <confdefs.h | sed '
21019 s/'"$ac_delim"'/"\\\
21020 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21021
21022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21023   for (key in D) D_is_set[key] = 1
21024   FS = "\a"
21025 }
21026 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21027   line = \$ 0
21028   split(line, arg, " ")
21029   if (arg[1] == "#") {
21030     defundef = arg[2]
21031     mac1 = arg[3]
21032   } else {
21033     defundef = substr(arg[1], 2)
21034     mac1 = arg[2]
21035   }
21036   split(mac1, mac2, "(") #)
21037   macro = mac2[1]
21038   prefix = substr(line, 1, index(line, defundef) - 1)
21039   if (D_is_set[macro]) {
21040     # Preserve the white space surrounding the "#".
21041     print prefix "define", macro P[macro] D[macro]
21042     next
21043   } else {
21044     # Replace #undef with comments.  This is necessary, for example,
21045     # in the case of _POSIX_SOURCE, which is predefined and required
21046     # on some systems where configure will not decide to define it.
21047     if (defundef == "undef") {
21048       print "/*", prefix defundef, macro, "*/"
21049       next
21050     }
21051   }
21052 }
21053 { print }
21054 _ACAWK
21055 _ACEOF
21056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21057   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21058 fi # test -n "$CONFIG_HEADERS"
21059
21060
21061 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21062 shift
21063 for ac_tag
21064 do
21065   case $ac_tag in
21066   :[FHLC]) ac_mode=$ac_tag; continue;;
21067   esac
21068   case $ac_mode$ac_tag in
21069   :[FHL]*:*);;
21070   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21071   :[FH]-) ac_tag=-:-;;
21072   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21073   esac
21074   ac_save_IFS=$IFS
21075   IFS=:
21076   set x $ac_tag
21077   IFS=$ac_save_IFS
21078   shift
21079   ac_file=$1
21080   shift
21081
21082   case $ac_mode in
21083   :L) ac_source=$1;;
21084   :[FH])
21085     ac_file_inputs=
21086     for ac_f
21087     do
21088       case $ac_f in
21089       -) ac_f="$ac_tmp/stdin";;
21090       *) # Look for the file first in the build tree, then in the source tree
21091          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21092          # because $ac_f cannot contain `:'.
21093          test -f "$ac_f" ||
21094            case $ac_f in
21095            [\\/$]*) false;;
21096            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21097            esac ||
21098            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21099       esac
21100       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21101       as_fn_append ac_file_inputs " '$ac_f'"
21102     done
21103
21104     # Let's still pretend it is `configure' which instantiates (i.e., don't
21105     # use $as_me), people would be surprised to read:
21106     #    /* config.h.  Generated by config.status.  */
21107     configure_input='Generated from '`
21108           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21109         `' by configure.'
21110     if test x"$ac_file" != x-; then
21111       configure_input="$ac_file.  $configure_input"
21112       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21113 $as_echo "$as_me: creating $ac_file" >&6;}
21114     fi
21115     # Neutralize special characters interpreted by sed in replacement strings.
21116     case $configure_input in #(
21117     *\&* | *\|* | *\\* )
21118        ac_sed_conf_input=`$as_echo "$configure_input" |
21119        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21120     *) ac_sed_conf_input=$configure_input;;
21121     esac
21122
21123     case $ac_tag in
21124     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21125       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21126     esac
21127     ;;
21128   esac
21129
21130   ac_dir=`$as_dirname -- "$ac_file" ||
21131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21132          X"$ac_file" : 'X\(//\)[^/]' \| \
21133          X"$ac_file" : 'X\(//\)$' \| \
21134          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21135 $as_echo X"$ac_file" |
21136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21137             s//\1/
21138             q
21139           }
21140           /^X\(\/\/\)[^/].*/{
21141             s//\1/
21142             q
21143           }
21144           /^X\(\/\/\)$/{
21145             s//\1/
21146             q
21147           }
21148           /^X\(\/\).*/{
21149             s//\1/
21150             q
21151           }
21152           s/.*/./; q'`
21153   as_dir="$ac_dir"; as_fn_mkdir_p
21154   ac_builddir=.
21155
21156 case "$ac_dir" in
21157 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21158 *)
21159   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21160   # A ".." for each directory in $ac_dir_suffix.
21161   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21162   case $ac_top_builddir_sub in
21163   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21164   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21165   esac ;;
21166 esac
21167 ac_abs_top_builddir=$ac_pwd
21168 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21169 # for backward compatibility:
21170 ac_top_builddir=$ac_top_build_prefix
21171
21172 case $srcdir in
21173   .)  # We are building in place.
21174     ac_srcdir=.
21175     ac_top_srcdir=$ac_top_builddir_sub
21176     ac_abs_top_srcdir=$ac_pwd ;;
21177   [\\/]* | ?:[\\/]* )  # Absolute name.
21178     ac_srcdir=$srcdir$ac_dir_suffix;
21179     ac_top_srcdir=$srcdir
21180     ac_abs_top_srcdir=$srcdir ;;
21181   *) # Relative name.
21182     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21183     ac_top_srcdir=$ac_top_build_prefix$srcdir
21184     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21185 esac
21186 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21187
21188
21189   case $ac_mode in
21190   :F)
21191   #
21192   # CONFIG_FILE
21193   #
21194
21195   case $INSTALL in
21196   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21197   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21198   esac
21199   ac_MKDIR_P=$MKDIR_P
21200   case $MKDIR_P in
21201   [\\/$]* | ?:[\\/]* ) ;;
21202   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21203   esac
21204 _ACEOF
21205
21206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21207 # If the template does not know about datarootdir, expand it.
21208 # FIXME: This hack should be removed a few years after 2.60.
21209 ac_datarootdir_hack=; ac_datarootdir_seen=
21210 ac_sed_dataroot='
21211 /datarootdir/ {
21212   p
21213   q
21214 }
21215 /@datadir@/p
21216 /@docdir@/p
21217 /@infodir@/p
21218 /@localedir@/p
21219 /@mandir@/p'
21220 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21221 *datarootdir*) ac_datarootdir_seen=yes;;
21222 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21223   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21224 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21225 _ACEOF
21226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21227   ac_datarootdir_hack='
21228   s&@datadir@&$datadir&g
21229   s&@docdir@&$docdir&g
21230   s&@infodir@&$infodir&g
21231   s&@localedir@&$localedir&g
21232   s&@mandir@&$mandir&g
21233   s&\\\${datarootdir}&$datarootdir&g' ;;
21234 esac
21235 _ACEOF
21236
21237 # Neutralize VPATH when `$srcdir' = `.'.
21238 # Shell code in configure.ac might set extrasub.
21239 # FIXME: do we really want to maintain this feature?
21240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21241 ac_sed_extra="$ac_vpsub
21242 $extrasub
21243 _ACEOF
21244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21245 :t
21246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21247 s|@configure_input@|$ac_sed_conf_input|;t t
21248 s&@top_builddir@&$ac_top_builddir_sub&;t t
21249 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21250 s&@srcdir@&$ac_srcdir&;t t
21251 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21252 s&@top_srcdir@&$ac_top_srcdir&;t t
21253 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21254 s&@builddir@&$ac_builddir&;t t
21255 s&@abs_builddir@&$ac_abs_builddir&;t t
21256 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21257 s&@INSTALL@&$ac_INSTALL&;t t
21258 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21259 $ac_datarootdir_hack
21260 "
21261 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21262   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21263
21264 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21265   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21266   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21267       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21268   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21269 which seems to be undefined.  Please make sure it is defined" >&5
21270 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21271 which seems to be undefined.  Please make sure it is defined" >&2;}
21272
21273   rm -f "$ac_tmp/stdin"
21274   case $ac_file in
21275   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21276   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21277   esac \
21278   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21279  ;;
21280   :H)
21281   #
21282   # CONFIG_HEADER
21283   #
21284   if test x"$ac_file" != x-; then
21285     {
21286       $as_echo "/* $configure_input  */" \
21287       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21288     } >"$ac_tmp/config.h" \
21289       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21290     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21291       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21292 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21293     else
21294       rm -f "$ac_file"
21295       mv "$ac_tmp/config.h" "$ac_file" \
21296         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21297     fi
21298   else
21299     $as_echo "/* $configure_input  */" \
21300       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21301       || as_fn_error $? "could not create -" "$LINENO" 5
21302   fi
21303 # Compute "$ac_file"'s index in $config_headers.
21304 _am_arg="$ac_file"
21305 _am_stamp_count=1
21306 for _am_header in $config_headers :; do
21307   case $_am_header in
21308     $_am_arg | $_am_arg:* )
21309       break ;;
21310     * )
21311       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21312   esac
21313 done
21314 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21315 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21316          X"$_am_arg" : 'X\(//\)[^/]' \| \
21317          X"$_am_arg" : 'X\(//\)$' \| \
21318          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21319 $as_echo X"$_am_arg" |
21320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21321             s//\1/
21322             q
21323           }
21324           /^X\(\/\/\)[^/].*/{
21325             s//\1/
21326             q
21327           }
21328           /^X\(\/\/\)$/{
21329             s//\1/
21330             q
21331           }
21332           /^X\(\/\).*/{
21333             s//\1/
21334             q
21335           }
21336           s/.*/./; q'`/stamp-h$_am_stamp_count
21337  ;;
21338
21339   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21340 $as_echo "$as_me: executing $ac_file commands" >&6;}
21341  ;;
21342   esac
21343
21344
21345   case $ac_file$ac_mode in
21346     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21347   # Older Autoconf quotes --file arguments for eval, but not when files
21348   # are listed without --file.  Let's play safe and only enable the eval
21349   # if we detect the quoting.
21350   case $CONFIG_FILES in
21351   *\'*) eval set x "$CONFIG_FILES" ;;
21352   *)   set x $CONFIG_FILES ;;
21353   esac
21354   shift
21355   for mf
21356   do
21357     # Strip MF so we end up with the name of the file.
21358     mf=`echo "$mf" | sed -e 's/:.*$//'`
21359     # Check whether this is an Automake generated Makefile or not.
21360     # We used to match only the files named 'Makefile.in', but
21361     # some people rename them; so instead we look at the file content.
21362     # Grep'ing the first line is not enough: some people post-process
21363     # each Makefile.in and add a new line on top of each file to say so.
21364     # Grep'ing the whole file is not good either: AIX grep has a line
21365     # limit of 2048, but all sed's we know have understand at least 4000.
21366     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21367       dirpart=`$as_dirname -- "$mf" ||
21368 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21369          X"$mf" : 'X\(//\)[^/]' \| \
21370          X"$mf" : 'X\(//\)$' \| \
21371          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21372 $as_echo X"$mf" |
21373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21374             s//\1/
21375             q
21376           }
21377           /^X\(\/\/\)[^/].*/{
21378             s//\1/
21379             q
21380           }
21381           /^X\(\/\/\)$/{
21382             s//\1/
21383             q
21384           }
21385           /^X\(\/\).*/{
21386             s//\1/
21387             q
21388           }
21389           s/.*/./; q'`
21390     else
21391       continue
21392     fi
21393     # Extract the definition of DEPDIR, am__include, and am__quote
21394     # from the Makefile without running 'make'.
21395     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21396     test -z "$DEPDIR" && continue
21397     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21398     test -z "$am__include" && continue
21399     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21400     # Find all dependency output files, they are included files with
21401     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21402     # simplest approach to changing $(DEPDIR) to its actual value in the
21403     # expansion.
21404     for file in `sed -n "
21405       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21406          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21407       # Make sure the directory exists.
21408       test -f "$dirpart/$file" && continue
21409       fdir=`$as_dirname -- "$file" ||
21410 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21411          X"$file" : 'X\(//\)[^/]' \| \
21412          X"$file" : 'X\(//\)$' \| \
21413          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21414 $as_echo X"$file" |
21415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21416             s//\1/
21417             q
21418           }
21419           /^X\(\/\/\)[^/].*/{
21420             s//\1/
21421             q
21422           }
21423           /^X\(\/\/\)$/{
21424             s//\1/
21425             q
21426           }
21427           /^X\(\/\).*/{
21428             s//\1/
21429             q
21430           }
21431           s/.*/./; q'`
21432       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21433       # echo "creating $dirpart/$file"
21434       echo '# dummy' > "$dirpart/$file"
21435     done
21436   done
21437 }
21438  ;;
21439     "libtool":C)
21440
21441     # See if we are running on zsh, and set the options which allow our
21442     # commands through without removal of \ escapes.
21443     if test -n "${ZSH_VERSION+set}" ; then
21444       setopt NO_GLOB_SUBST
21445     fi
21446
21447     cfgfile="${ofile}T"
21448     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21449     $RM "$cfgfile"
21450
21451     cat <<_LT_EOF >> "$cfgfile"
21452 #! $SHELL
21453
21454 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21455 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21456 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21457 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21458 #
21459 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21460 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21461 #                 Foundation, Inc.
21462 #   Written by Gordon Matzigkeit, 1996
21463 #
21464 #   This file is part of GNU Libtool.
21465 #
21466 # GNU Libtool is free software; you can redistribute it and/or
21467 # modify it under the terms of the GNU General Public License as
21468 # published by the Free Software Foundation; either version 2 of
21469 # the License, or (at your option) any later version.
21470 #
21471 # As a special exception to the GNU General Public License,
21472 # if you distribute this file as part of a program or library that
21473 # is built using GNU Libtool, you may include this file under the
21474 # same distribution terms that you use for the rest of that program.
21475 #
21476 # GNU Libtool is distributed in the hope that it will be useful,
21477 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21478 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21479 # GNU General Public License for more details.
21480 #
21481 # You should have received a copy of the GNU General Public License
21482 # along with GNU Libtool; see the file COPYING.  If not, a copy
21483 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21484 # obtained by writing to the Free Software Foundation, Inc.,
21485 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21486
21487
21488 # The names of the tagged configurations supported by this script.
21489 available_tags="CXX "
21490
21491 # ### BEGIN LIBTOOL CONFIG
21492
21493 # Whether or not to build static libraries.
21494 build_old_libs=$enable_static
21495
21496 # Which release of libtool.m4 was used?
21497 macro_version=$macro_version
21498 macro_revision=$macro_revision
21499
21500 # Whether or not to build shared libraries.
21501 build_libtool_libs=$enable_shared
21502
21503 # What type of objects to build.
21504 pic_mode=$pic_mode
21505
21506 # Whether or not to optimize for fast installation.
21507 fast_install=$enable_fast_install
21508
21509 # Shell to use when invoking shell scripts.
21510 SHELL=$lt_SHELL
21511
21512 # An echo program that protects backslashes.
21513 ECHO=$lt_ECHO
21514
21515 # The PATH separator for the build system.
21516 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21517
21518 # The host system.
21519 host_alias=$host_alias
21520 host=$host
21521 host_os=$host_os
21522
21523 # The build system.
21524 build_alias=$build_alias
21525 build=$build
21526 build_os=$build_os
21527
21528 # A sed program that does not truncate output.
21529 SED=$lt_SED
21530
21531 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21532 Xsed="\$SED -e 1s/^X//"
21533
21534 # A grep program that handles long lines.
21535 GREP=$lt_GREP
21536
21537 # An ERE matcher.
21538 EGREP=$lt_EGREP
21539
21540 # A literal string matcher.
21541 FGREP=$lt_FGREP
21542
21543 # A BSD- or MS-compatible name lister.
21544 NM=$lt_NM
21545
21546 # Whether we need soft or hard links.
21547 LN_S=$lt_LN_S
21548
21549 # What is the maximum length of a command?
21550 max_cmd_len=$max_cmd_len
21551
21552 # Object file suffix (normally "o").
21553 objext=$ac_objext
21554
21555 # Executable file suffix (normally "").
21556 exeext=$exeext
21557
21558 # whether the shell understands "unset".
21559 lt_unset=$lt_unset
21560
21561 # turn spaces into newlines.
21562 SP2NL=$lt_lt_SP2NL
21563
21564 # turn newlines into spaces.
21565 NL2SP=$lt_lt_NL2SP
21566
21567 # convert \$build file names to \$host format.
21568 to_host_file_cmd=$lt_cv_to_host_file_cmd
21569
21570 # convert \$build files to toolchain format.
21571 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21572
21573 # An object symbol dumper.
21574 OBJDUMP=$lt_OBJDUMP
21575
21576 # Method to check whether dependent libraries are shared objects.
21577 deplibs_check_method=$lt_deplibs_check_method
21578
21579 # Command to use when deplibs_check_method = "file_magic".
21580 file_magic_cmd=$lt_file_magic_cmd
21581
21582 # How to find potential files when deplibs_check_method = "file_magic".
21583 file_magic_glob=$lt_file_magic_glob
21584
21585 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21586 want_nocaseglob=$lt_want_nocaseglob
21587
21588 # DLL creation program.
21589 DLLTOOL=$lt_DLLTOOL
21590
21591 # Command to associate shared and link libraries.
21592 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21593
21594 # The archiver.
21595 AR=$lt_AR
21596
21597 # Flags to create an archive.
21598 AR_FLAGS=$lt_AR_FLAGS
21599
21600 # How to feed a file listing to the archiver.
21601 archiver_list_spec=$lt_archiver_list_spec
21602
21603 # A symbol stripping program.
21604 STRIP=$lt_STRIP
21605
21606 # Commands used to install an old-style archive.
21607 RANLIB=$lt_RANLIB
21608 old_postinstall_cmds=$lt_old_postinstall_cmds
21609 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21610
21611 # Whether to use a lock for old archive extraction.
21612 lock_old_archive_extraction=$lock_old_archive_extraction
21613
21614 # A C compiler.
21615 LTCC=$lt_CC
21616
21617 # LTCC compiler flags.
21618 LTCFLAGS=$lt_CFLAGS
21619
21620 # Take the output of nm and produce a listing of raw symbols and C names.
21621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21622
21623 # Transform the output of nm in a proper C declaration.
21624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21625
21626 # Transform the output of nm in a C name address pair.
21627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21628
21629 # Transform the output of nm in a C name address pair when lib prefix is needed.
21630 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21631
21632 # Specify filename containing input files for \$NM.
21633 nm_file_list_spec=$lt_nm_file_list_spec
21634
21635 # The root where to search for dependent libraries,and in which our libraries should be installed.
21636 lt_sysroot=$lt_sysroot
21637
21638 # The name of the directory that contains temporary libtool files.
21639 objdir=$objdir
21640
21641 # Used to examine libraries when file_magic_cmd begins with "file".
21642 MAGIC_CMD=$MAGIC_CMD
21643
21644 # Must we lock files when doing compilation?
21645 need_locks=$lt_need_locks
21646
21647 # Manifest tool.
21648 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21649
21650 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21651 DSYMUTIL=$lt_DSYMUTIL
21652
21653 # Tool to change global to local symbols on Mac OS X.
21654 NMEDIT=$lt_NMEDIT
21655
21656 # Tool to manipulate fat objects and archives on Mac OS X.
21657 LIPO=$lt_LIPO
21658
21659 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21660 OTOOL=$lt_OTOOL
21661
21662 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21663 OTOOL64=$lt_OTOOL64
21664
21665 # Old archive suffix (normally "a").
21666 libext=$libext
21667
21668 # Shared library suffix (normally ".so").
21669 shrext_cmds=$lt_shrext_cmds
21670
21671 # The commands to extract the exported symbol list from a shared archive.
21672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21673
21674 # Variables whose values should be saved in libtool wrapper scripts and
21675 # restored at link time.
21676 variables_saved_for_relink=$lt_variables_saved_for_relink
21677
21678 # Do we need the "lib" prefix for modules?
21679 need_lib_prefix=$need_lib_prefix
21680
21681 # Do we need a version for libraries?
21682 need_version=$need_version
21683
21684 # Library versioning type.
21685 version_type=$version_type
21686
21687 # Shared library runtime path variable.
21688 runpath_var=$runpath_var
21689
21690 # Shared library path variable.
21691 shlibpath_var=$shlibpath_var
21692
21693 # Is shlibpath searched before the hard-coded library search path?
21694 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21695
21696 # Format of library name prefix.
21697 libname_spec=$lt_libname_spec
21698
21699 # List of archive names.  First name is the real one, the rest are links.
21700 # The last name is the one that the linker finds with -lNAME
21701 library_names_spec=$lt_library_names_spec
21702
21703 # The coded name of the library, if different from the real name.
21704 soname_spec=$lt_soname_spec
21705
21706 # Permission mode override for installation of shared libraries.
21707 install_override_mode=$lt_install_override_mode
21708
21709 # Command to use after installation of a shared archive.
21710 postinstall_cmds=$lt_postinstall_cmds
21711
21712 # Command to use after uninstallation of a shared archive.
21713 postuninstall_cmds=$lt_postuninstall_cmds
21714
21715 # Commands used to finish a libtool library installation in a directory.
21716 finish_cmds=$lt_finish_cmds
21717
21718 # As "finish_cmds", except a single script fragment to be evaled but
21719 # not shown.
21720 finish_eval=$lt_finish_eval
21721
21722 # Whether we should hardcode library paths into libraries.
21723 hardcode_into_libs=$hardcode_into_libs
21724
21725 # Compile-time system search path for libraries.
21726 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21727
21728 # Run-time system search path for libraries.
21729 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21730
21731 # Whether dlopen is supported.
21732 dlopen_support=$enable_dlopen
21733
21734 # Whether dlopen of programs is supported.
21735 dlopen_self=$enable_dlopen_self
21736
21737 # Whether dlopen of statically linked programs is supported.
21738 dlopen_self_static=$enable_dlopen_self_static
21739
21740 # Commands to strip libraries.
21741 old_striplib=$lt_old_striplib
21742 striplib=$lt_striplib
21743
21744
21745 # The linker used to build libraries.
21746 LD=$lt_LD
21747
21748 # How to create reloadable object files.
21749 reload_flag=$lt_reload_flag
21750 reload_cmds=$lt_reload_cmds
21751
21752 # Commands used to build an old-style archive.
21753 old_archive_cmds=$lt_old_archive_cmds
21754
21755 # A language specific compiler.
21756 CC=$lt_compiler
21757
21758 # Is the compiler the GNU compiler?
21759 with_gcc=$GCC
21760
21761 # Compiler flag to turn off builtin functions.
21762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21763
21764 # Additional compiler flags for building library objects.
21765 pic_flag=$lt_lt_prog_compiler_pic
21766
21767 # How to pass a linker flag through the compiler.
21768 wl=$lt_lt_prog_compiler_wl
21769
21770 # Compiler flag to prevent dynamic linking.
21771 link_static_flag=$lt_lt_prog_compiler_static
21772
21773 # Does compiler simultaneously support -c and -o options?
21774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21775
21776 # Whether or not to add -lc for building shared libraries.
21777 build_libtool_need_lc=$archive_cmds_need_lc
21778
21779 # Whether or not to disallow shared libs when runtime libs are static.
21780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21781
21782 # Compiler flag to allow reflexive dlopens.
21783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21784
21785 # Compiler flag to generate shared objects directly from archives.
21786 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21787
21788 # Whether the compiler copes with passing no objects directly.
21789 compiler_needs_object=$lt_compiler_needs_object
21790
21791 # Create an old-style archive from a shared archive.
21792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21793
21794 # Create a temporary old-style archive to link instead of a shared archive.
21795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21796
21797 # Commands used to build a shared archive.
21798 archive_cmds=$lt_archive_cmds
21799 archive_expsym_cmds=$lt_archive_expsym_cmds
21800
21801 # Commands used to build a loadable module if different from building
21802 # a shared archive.
21803 module_cmds=$lt_module_cmds
21804 module_expsym_cmds=$lt_module_expsym_cmds
21805
21806 # Whether we are building with GNU ld or not.
21807 with_gnu_ld=$lt_with_gnu_ld
21808
21809 # Flag that allows shared libraries with undefined symbols to be built.
21810 allow_undefined_flag=$lt_allow_undefined_flag
21811
21812 # Flag that enforces no undefined symbols.
21813 no_undefined_flag=$lt_no_undefined_flag
21814
21815 # Flag to hardcode \$libdir into a binary during linking.
21816 # This must work even if \$libdir does not exist
21817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21818
21819 # Whether we need a single "-rpath" flag with a separated argument.
21820 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21821
21822 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21823 # DIR into the resulting binary.
21824 hardcode_direct=$hardcode_direct
21825
21826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21827 # DIR into the resulting binary and the resulting library dependency is
21828 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21829 # library is relocated.
21830 hardcode_direct_absolute=$hardcode_direct_absolute
21831
21832 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21833 # into the resulting binary.
21834 hardcode_minus_L=$hardcode_minus_L
21835
21836 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21837 # into the resulting binary.
21838 hardcode_shlibpath_var=$hardcode_shlibpath_var
21839
21840 # Set to "yes" if building a shared library automatically hardcodes DIR
21841 # into the library and all subsequent libraries and executables linked
21842 # against it.
21843 hardcode_automatic=$hardcode_automatic
21844
21845 # Set to yes if linker adds runtime paths of dependent libraries
21846 # to runtime path list.
21847 inherit_rpath=$inherit_rpath
21848
21849 # Whether libtool must link a program against all its dependency libraries.
21850 link_all_deplibs=$link_all_deplibs
21851
21852 # Set to "yes" if exported symbols are required.
21853 always_export_symbols=$always_export_symbols
21854
21855 # The commands to list exported symbols.
21856 export_symbols_cmds=$lt_export_symbols_cmds
21857
21858 # Symbols that should not be listed in the preloaded symbols.
21859 exclude_expsyms=$lt_exclude_expsyms
21860
21861 # Symbols that must always be exported.
21862 include_expsyms=$lt_include_expsyms
21863
21864 # Commands necessary for linking programs (against libraries) with templates.
21865 prelink_cmds=$lt_prelink_cmds
21866
21867 # Commands necessary for finishing linking programs.
21868 postlink_cmds=$lt_postlink_cmds
21869
21870 # Specify filename containing input files.
21871 file_list_spec=$lt_file_list_spec
21872
21873 # How to hardcode a shared library path into an executable.
21874 hardcode_action=$hardcode_action
21875
21876 # The directories searched by this compiler when creating a shared library.
21877 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21878
21879 # Dependencies to place before and after the objects being linked to
21880 # create a shared library.
21881 predep_objects=$lt_predep_objects
21882 postdep_objects=$lt_postdep_objects
21883 predeps=$lt_predeps
21884 postdeps=$lt_postdeps
21885
21886 # The library search path used internally by the compiler when linking
21887 # a shared library.
21888 compiler_lib_search_path=$lt_compiler_lib_search_path
21889
21890 # ### END LIBTOOL CONFIG
21891
21892 _LT_EOF
21893
21894   case $host_os in
21895   aix3*)
21896     cat <<\_LT_EOF >> "$cfgfile"
21897 # AIX sometimes has problems with the GCC collect2 program.  For some
21898 # reason, if we set the COLLECT_NAMES environment variable, the problems
21899 # vanish in a puff of smoke.
21900 if test "X${COLLECT_NAMES+set}" != Xset; then
21901   COLLECT_NAMES=
21902   export COLLECT_NAMES
21903 fi
21904 _LT_EOF
21905     ;;
21906   esac
21907
21908
21909 ltmain="$ac_aux_dir/ltmain.sh"
21910
21911
21912   # We use sed instead of cat because bash on DJGPP gets confused if
21913   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21914   # text mode, it properly converts lines to CR/LF.  This bash problem
21915   # is reportedly fixed, but why not run on old versions too?
21916   sed '$q' "$ltmain" >> "$cfgfile" \
21917      || (rm -f "$cfgfile"; exit 1)
21918
21919   if test x"$xsi_shell" = xyes; then
21920   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21921 func_dirname ()\
21922 {\
21923 \    case ${1} in\
21924 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21925 \      *  ) func_dirname_result="${3}" ;;\
21926 \    esac\
21927 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21928   && mv -f "$cfgfile.tmp" "$cfgfile" \
21929     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21930 test 0 -eq $? || _lt_function_replace_fail=:
21931
21932
21933   sed -e '/^func_basename ()$/,/^} # func_basename /c\
21934 func_basename ()\
21935 {\
21936 \    func_basename_result="${1##*/}"\
21937 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21938   && mv -f "$cfgfile.tmp" "$cfgfile" \
21939     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21940 test 0 -eq $? || _lt_function_replace_fail=:
21941
21942
21943   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21944 func_dirname_and_basename ()\
21945 {\
21946 \    case ${1} in\
21947 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21948 \      *  ) func_dirname_result="${3}" ;;\
21949 \    esac\
21950 \    func_basename_result="${1##*/}"\
21951 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21952   && mv -f "$cfgfile.tmp" "$cfgfile" \
21953     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21954 test 0 -eq $? || _lt_function_replace_fail=:
21955
21956
21957   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21958 func_stripname ()\
21959 {\
21960 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21961 \    # positional parameters, so assign one to ordinary parameter first.\
21962 \    func_stripname_result=${3}\
21963 \    func_stripname_result=${func_stripname_result#"${1}"}\
21964 \    func_stripname_result=${func_stripname_result%"${2}"}\
21965 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21966   && mv -f "$cfgfile.tmp" "$cfgfile" \
21967     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21968 test 0 -eq $? || _lt_function_replace_fail=:
21969
21970
21971   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21972 func_split_long_opt ()\
21973 {\
21974 \    func_split_long_opt_name=${1%%=*}\
21975 \    func_split_long_opt_arg=${1#*=}\
21976 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21977   && mv -f "$cfgfile.tmp" "$cfgfile" \
21978     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21979 test 0 -eq $? || _lt_function_replace_fail=:
21980
21981
21982   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21983 func_split_short_opt ()\
21984 {\
21985 \    func_split_short_opt_arg=${1#??}\
21986 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21987 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21988   && mv -f "$cfgfile.tmp" "$cfgfile" \
21989     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21990 test 0 -eq $? || _lt_function_replace_fail=:
21991
21992
21993   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21994 func_lo2o ()\
21995 {\
21996 \    case ${1} in\
21997 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21998 \      *)    func_lo2o_result=${1} ;;\
21999 \    esac\
22000 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22001   && mv -f "$cfgfile.tmp" "$cfgfile" \
22002     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22003 test 0 -eq $? || _lt_function_replace_fail=:
22004
22005
22006   sed -e '/^func_xform ()$/,/^} # func_xform /c\
22007 func_xform ()\
22008 {\
22009     func_xform_result=${1%.*}.lo\
22010 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22011   && mv -f "$cfgfile.tmp" "$cfgfile" \
22012     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22013 test 0 -eq $? || _lt_function_replace_fail=:
22014
22015
22016   sed -e '/^func_arith ()$/,/^} # func_arith /c\
22017 func_arith ()\
22018 {\
22019     func_arith_result=$(( $* ))\
22020 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22021   && mv -f "$cfgfile.tmp" "$cfgfile" \
22022     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22023 test 0 -eq $? || _lt_function_replace_fail=:
22024
22025
22026   sed -e '/^func_len ()$/,/^} # func_len /c\
22027 func_len ()\
22028 {\
22029     func_len_result=${#1}\
22030 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22031   && mv -f "$cfgfile.tmp" "$cfgfile" \
22032     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22033 test 0 -eq $? || _lt_function_replace_fail=:
22034
22035 fi
22036
22037 if test x"$lt_shell_append" = xyes; then
22038   sed -e '/^func_append ()$/,/^} # func_append /c\
22039 func_append ()\
22040 {\
22041     eval "${1}+=\\${2}"\
22042 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22043   && mv -f "$cfgfile.tmp" "$cfgfile" \
22044     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22045 test 0 -eq $? || _lt_function_replace_fail=:
22046
22047
22048   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22049 func_append_quoted ()\
22050 {\
22051 \    func_quote_for_eval "${2}"\
22052 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22053 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22054   && mv -f "$cfgfile.tmp" "$cfgfile" \
22055     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22056 test 0 -eq $? || _lt_function_replace_fail=:
22057
22058
22059   # Save a `func_append' function call where possible by direct use of '+='
22060   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22061     && mv -f "$cfgfile.tmp" "$cfgfile" \
22062       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22063   test 0 -eq $? || _lt_function_replace_fail=:
22064 else
22065   # Save a `func_append' function call even when '+=' is not available
22066   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22067     && mv -f "$cfgfile.tmp" "$cfgfile" \
22068       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22069   test 0 -eq $? || _lt_function_replace_fail=:
22070 fi
22071
22072 if test x"$_lt_function_replace_fail" = x":"; then
22073   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22074 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22075 fi
22076
22077
22078    mv -f "$cfgfile" "$ofile" ||
22079     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22080   chmod +x "$ofile"
22081
22082
22083     cat <<_LT_EOF >> "$ofile"
22084
22085 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22086
22087 # The linker used to build libraries.
22088 LD=$lt_LD_CXX
22089
22090 # How to create reloadable object files.
22091 reload_flag=$lt_reload_flag_CXX
22092 reload_cmds=$lt_reload_cmds_CXX
22093
22094 # Commands used to build an old-style archive.
22095 old_archive_cmds=$lt_old_archive_cmds_CXX
22096
22097 # A language specific compiler.
22098 CC=$lt_compiler_CXX
22099
22100 # Is the compiler the GNU compiler?
22101 with_gcc=$GCC_CXX
22102
22103 # Compiler flag to turn off builtin functions.
22104 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22105
22106 # Additional compiler flags for building library objects.
22107 pic_flag=$lt_lt_prog_compiler_pic_CXX
22108
22109 # How to pass a linker flag through the compiler.
22110 wl=$lt_lt_prog_compiler_wl_CXX
22111
22112 # Compiler flag to prevent dynamic linking.
22113 link_static_flag=$lt_lt_prog_compiler_static_CXX
22114
22115 # Does compiler simultaneously support -c and -o options?
22116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22117
22118 # Whether or not to add -lc for building shared libraries.
22119 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22120
22121 # Whether or not to disallow shared libs when runtime libs are static.
22122 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22123
22124 # Compiler flag to allow reflexive dlopens.
22125 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22126
22127 # Compiler flag to generate shared objects directly from archives.
22128 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22129
22130 # Whether the compiler copes with passing no objects directly.
22131 compiler_needs_object=$lt_compiler_needs_object_CXX
22132
22133 # Create an old-style archive from a shared archive.
22134 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22135
22136 # Create a temporary old-style archive to link instead of a shared archive.
22137 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22138
22139 # Commands used to build a shared archive.
22140 archive_cmds=$lt_archive_cmds_CXX
22141 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22142
22143 # Commands used to build a loadable module if different from building
22144 # a shared archive.
22145 module_cmds=$lt_module_cmds_CXX
22146 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22147
22148 # Whether we are building with GNU ld or not.
22149 with_gnu_ld=$lt_with_gnu_ld_CXX
22150
22151 # Flag that allows shared libraries with undefined symbols to be built.
22152 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22153
22154 # Flag that enforces no undefined symbols.
22155 no_undefined_flag=$lt_no_undefined_flag_CXX
22156
22157 # Flag to hardcode \$libdir into a binary during linking.
22158 # This must work even if \$libdir does not exist
22159 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22160
22161 # Whether we need a single "-rpath" flag with a separated argument.
22162 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22163
22164 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22165 # DIR into the resulting binary.
22166 hardcode_direct=$hardcode_direct_CXX
22167
22168 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22169 # DIR into the resulting binary and the resulting library dependency is
22170 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22171 # library is relocated.
22172 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22173
22174 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22175 # into the resulting binary.
22176 hardcode_minus_L=$hardcode_minus_L_CXX
22177
22178 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22179 # into the resulting binary.
22180 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22181
22182 # Set to "yes" if building a shared library automatically hardcodes DIR
22183 # into the library and all subsequent libraries and executables linked
22184 # against it.
22185 hardcode_automatic=$hardcode_automatic_CXX
22186
22187 # Set to yes if linker adds runtime paths of dependent libraries
22188 # to runtime path list.
22189 inherit_rpath=$inherit_rpath_CXX
22190
22191 # Whether libtool must link a program against all its dependency libraries.
22192 link_all_deplibs=$link_all_deplibs_CXX
22193
22194 # Set to "yes" if exported symbols are required.
22195 always_export_symbols=$always_export_symbols_CXX
22196
22197 # The commands to list exported symbols.
22198 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22199
22200 # Symbols that should not be listed in the preloaded symbols.
22201 exclude_expsyms=$lt_exclude_expsyms_CXX
22202
22203 # Symbols that must always be exported.
22204 include_expsyms=$lt_include_expsyms_CXX
22205
22206 # Commands necessary for linking programs (against libraries) with templates.
22207 prelink_cmds=$lt_prelink_cmds_CXX
22208
22209 # Commands necessary for finishing linking programs.
22210 postlink_cmds=$lt_postlink_cmds_CXX
22211
22212 # Specify filename containing input files.
22213 file_list_spec=$lt_file_list_spec_CXX
22214
22215 # How to hardcode a shared library path into an executable.
22216 hardcode_action=$hardcode_action_CXX
22217
22218 # The directories searched by this compiler when creating a shared library.
22219 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22220
22221 # Dependencies to place before and after the objects being linked to
22222 # create a shared library.
22223 predep_objects=$lt_predep_objects_CXX
22224 postdep_objects=$lt_postdep_objects_CXX
22225 predeps=$lt_predeps_CXX
22226 postdeps=$lt_postdeps_CXX
22227
22228 # The library search path used internally by the compiler when linking
22229 # a shared library.
22230 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22231
22232 # ### END LIBTOOL TAG CONFIG: CXX
22233 _LT_EOF
22234
22235  ;;
22236     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
22237         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
22238       esac ;;
22239     "po/stamp-it":C)
22240     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
22241        as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
22242     fi
22243     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
22244     >"po/stamp-it.tmp"
22245     sed '/^#/d
22246          s/^[[].*] *//
22247          /^[    ]*$/d
22248         '"s|^|  $ac_top_srcdir/|" \
22249       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
22250
22251     sed '/^POTFILES =/,/[^\\]$/ {
22252                 /^POTFILES =/!d
22253                 r po/POTFILES
22254           }
22255          ' "po/Makefile.in" >"po/Makefile"
22256     rm -f "po/Makefile.tmp"
22257     mv "po/stamp-it.tmp" "po/stamp-it"
22258    ;;
22259
22260   esac
22261 done # for ac_tag
22262
22263
22264 as_fn_exit 0
22265 _ACEOF
22266 ac_clean_files=$ac_clean_files_save
22267
22268 test $ac_write_fail = 0 ||
22269   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22270
22271
22272 # configure is writing to config.log, and then calls config.status.
22273 # config.status does its own redirection, appending to config.log.
22274 # Unfortunately, on DOS this fails, as config.log is still kept open
22275 # by configure, so config.status won't be able to write to it; its
22276 # output is simply discarded.  So we exec the FD to /dev/null,
22277 # effectively closing config.log, so it can be properly (re)opened and
22278 # appended to by config.status.  When coming back to configure, we
22279 # need to make the FD available again.
22280 if test "$no_create" != yes; then
22281   ac_cs_success=:
22282   ac_config_status_args=
22283   test "$silent" = yes &&
22284     ac_config_status_args="$ac_config_status_args --quiet"
22285   exec 5>/dev/null
22286   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22287   exec 5>>config.log
22288   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22289   # would make configure fail if this is the last instruction.
22290   $ac_cs_success || as_fn_exit 1
22291 fi
22292 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22293   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22294 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22295 fi
22296
22297
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22299 Build options:
22300     Version                     $VERSION
22301     Install prefix              $prefix
22302     Use boost                   $enable_boost
22303     Use opencc                  $enable_opencc
22304     Use libpinyin               $enable_libpinyin
22305     Build lua extension         $enable_lua_extension
22306     Build stroke input mode     $enable_stroke_input_mode
22307     Build english input mode    $enable_english_input_mode
22308 " >&5
22309 $as_echo "
22310 Build options:
22311     Version                     $VERSION
22312     Install prefix              $prefix
22313     Use boost                   $enable_boost
22314     Use opencc                  $enable_opencc
22315     Use libpinyin               $enable_libpinyin
22316     Build lua extension         $enable_lua_extension
22317     Build stroke input mode     $enable_stroke_input_mode
22318     Build english input mode    $enable_english_input_mode
22319 " >&6; }
22320