3ccd2594bdcaab5584d9cedecf67faae60e0dbcf
[platform/upstream/openfst.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenFst 1.6.5.
4 #
5 # Report bugs to <help@www.openfst.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: help@www.openfst.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='OpenFst'
592 PACKAGE_TARNAME='openfst'
593 PACKAGE_VERSION='1.6.5'
594 PACKAGE_STRING='OpenFst 1.6.5'
595 PACKAGE_BUGREPORT='help@www.openfst.org'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_unique_file="src/lib/fst.cc"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 DL_LIBS
640 libfstdir
641 HAVE_GRM_FALSE
642 HAVE_GRM_TRUE
643 HAVE_SCRIPT_FALSE
644 HAVE_SCRIPT_TRUE
645 HAVE_BIN_FALSE
646 HAVE_BIN_TRUE
647 HAVE_SPECIAL_FALSE
648 HAVE_SPECIAL_TRUE
649 PYTHON_EXTRA_LDFLAGS
650 PYTHON_EXTRA_LIBS
651 PYTHON_SITE_PKG
652 PYTHON_LDFLAGS
653 PYTHON_CPPFLAGS
654 pkgpyexecdir
655 pyexecdir
656 pkgpythondir
657 pythondir
658 PYTHON_PLATFORM
659 PYTHON_EXEC_PREFIX
660 PYTHON_PREFIX
661 PYTHON_VERSION
662 PYTHON
663 HAVE_PYTHON_FALSE
664 HAVE_PYTHON_TRUE
665 HAVE_PDT_FALSE
666 HAVE_PDT_TRUE
667 HAVE_NGRAM_FALSE
668 HAVE_NGRAM_TRUE
669 HAVE_MPDT_FALSE
670 HAVE_MPDT_TRUE
671 HAVE_LOOKAHEAD_FALSE
672 HAVE_LOOKAHEAD_TRUE
673 HAVE_LINEAR_FALSE
674 HAVE_LINEAR_TRUE
675 HAVE_FAR_FALSE
676 HAVE_FAR_TRUE
677 HAVE_CONST_FALSE
678 HAVE_CONST_TRUE
679 HAVE_COMPRESS_FALSE
680 HAVE_COMPRESS_TRUE
681 HAVE_COMPACT_FALSE
682 HAVE_COMPACT_TRUE
683 CXXCPP
684 CPP
685 OTOOL64
686 OTOOL
687 LIPO
688 NMEDIT
689 DSYMUTIL
690 MANIFEST_TOOL
691 RANLIB
692 DLLTOOL
693 OBJDUMP
694 LN_S
695 NM
696 ac_ct_DUMPBIN
697 DUMPBIN
698 LD
699 FGREP
700 EGREP
701 GREP
702 SED
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 LIBTOOL
712 am__fastdepCXX_FALSE
713 am__fastdepCXX_TRUE
714 CXXDEPMODE
715 ac_ct_CXX
716 CXXFLAGS
717 CXX
718 am__fastdepCC_FALSE
719 am__fastdepCC_TRUE
720 CCDEPMODE
721 am__nodep
722 AMDEPBACKSLASH
723 AMDEP_FALSE
724 AMDEP_TRUE
725 am__quote
726 am__include
727 DEPDIR
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
734 CC
735 ac_ct_AR
736 AR
737 AM_BACKSLASH
738 AM_DEFAULT_VERBOSITY
739 AM_DEFAULT_V
740 AM_V
741 am__untar
742 am__tar
743 AMTAR
744 am__leading_dot
745 SET_MAKE
746 AWK
747 mkdir_p
748 MKDIR_P
749 INSTALL_STRIP_PROGRAM
750 STRIP
751 install_sh
752 MAKEINFO
753 AUTOHEADER
754 AUTOMAKE
755 AUTOCONF
756 ACLOCAL
757 VERSION
758 PACKAGE
759 CYGPATH_W
760 am__isrc
761 INSTALL_DATA
762 INSTALL_SCRIPT
763 INSTALL_PROGRAM
764 target_alias
765 host_alias
766 build_alias
767 LIBS
768 ECHO_T
769 ECHO_N
770 ECHO_C
771 DEFS
772 mandir
773 localedir
774 libdir
775 psdir
776 pdfdir
777 dvidir
778 htmldir
779 infodir
780 docdir
781 oldincludedir
782 includedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 enable_silent_rules
806 enable_dependency_tracking
807 enable_static
808 enable_shared
809 with_pic
810 enable_fast_install
811 with_gnu_ld
812 with_sysroot
813 enable_libtool_lock
814 enable_compact_fsts
815 enable_compress
816 enable_const_fsts
817 enable_far
818 enable_linear_fsts
819 enable_lookahead_fsts
820 enable_mpdt
821 enable_ngram_fsts
822 enable_pdt
823 enable_python
824 enable_special
825 enable_bin
826 enable_grm
827 with_libfstdir
828 '
829       ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 CC
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
837 CXX
838 CXXFLAGS
839 CCC
840 CPP
841 CXXCPP
842 PYTHON
843 PYTHON_VERSION'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898   # If the previous option needs an argument, assign it.
899   if test -n "$ac_prev"; then
900     eval $ac_prev=\$ac_option
901     ac_prev=
902     continue
903   fi
904
905   case $ac_option in
906   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907   *=)   ac_optarg= ;;
908   *)    ac_optarg=yes ;;
909   esac
910
911   # Accept the important Cygnus configure options, so we can diagnose typos.
912
913   case $ac_dashdash$ac_option in
914   --)
915     ac_dashdash=yes ;;
916
917   -bindir | --bindir | --bindi | --bind | --bin | --bi)
918     ac_prev=bindir ;;
919   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920     bindir=$ac_optarg ;;
921
922   -build | --build | --buil | --bui | --bu)
923     ac_prev=build_alias ;;
924   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925     build_alias=$ac_optarg ;;
926
927   -cache-file | --cache-file | --cache-fil | --cache-fi \
928   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929     ac_prev=cache_file ;;
930   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932     cache_file=$ac_optarg ;;
933
934   --config-cache | -C)
935     cache_file=config.cache ;;
936
937   -datadir | --datadir | --datadi | --datad)
938     ac_prev=datadir ;;
939   -datadir=* | --datadir=* | --datadi=* | --datad=*)
940     datadir=$ac_optarg ;;
941
942   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943   | --dataroo | --dataro | --datar)
944     ac_prev=datarootdir ;;
945   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947     datarootdir=$ac_optarg ;;
948
949   -disable-* | --disable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       as_fn_error $? "invalid feature name: $ac_useropt"
954     ac_useropt_orig=$ac_useropt
955     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956     case $ac_user_opts in
957       *"
958 "enable_$ac_useropt"
959 "*) ;;
960       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961          ac_unrecognized_sep=', ';;
962     esac
963     eval enable_$ac_useropt=no ;;
964
965   -docdir | --docdir | --docdi | --doc | --do)
966     ac_prev=docdir ;;
967   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968     docdir=$ac_optarg ;;
969
970   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971     ac_prev=dvidir ;;
972   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973     dvidir=$ac_optarg ;;
974
975   -enable-* | --enable-*)
976     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977     # Reject names that are not valid shell variable names.
978     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979       as_fn_error $? "invalid feature name: $ac_useropt"
980     ac_useropt_orig=$ac_useropt
981     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982     case $ac_user_opts in
983       *"
984 "enable_$ac_useropt"
985 "*) ;;
986       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987          ac_unrecognized_sep=', ';;
988     esac
989     eval enable_$ac_useropt=\$ac_optarg ;;
990
991   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993   | --exec | --exe | --ex)
994     ac_prev=exec_prefix ;;
995   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997   | --exec=* | --exe=* | --ex=*)
998     exec_prefix=$ac_optarg ;;
999
1000   -gas | --gas | --ga | --g)
1001     # Obsolete; use --with-gas.
1002     with_gas=yes ;;
1003
1004   -help | --help | --hel | --he | -h)
1005     ac_init_help=long ;;
1006   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007     ac_init_help=recursive ;;
1008   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009     ac_init_help=short ;;
1010
1011   -host | --host | --hos | --ho)
1012     ac_prev=host_alias ;;
1013   -host=* | --host=* | --hos=* | --ho=*)
1014     host_alias=$ac_optarg ;;
1015
1016   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017     ac_prev=htmldir ;;
1018   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019   | --ht=*)
1020     htmldir=$ac_optarg ;;
1021
1022   -includedir | --includedir | --includedi | --included | --include \
1023   | --includ | --inclu | --incl | --inc)
1024     ac_prev=includedir ;;
1025   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026   | --includ=* | --inclu=* | --incl=* | --inc=*)
1027     includedir=$ac_optarg ;;
1028
1029   -infodir | --infodir | --infodi | --infod | --info | --inf)
1030     ac_prev=infodir ;;
1031   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032     infodir=$ac_optarg ;;
1033
1034   -libdir | --libdir | --libdi | --libd)
1035     ac_prev=libdir ;;
1036   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037     libdir=$ac_optarg ;;
1038
1039   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040   | --libexe | --libex | --libe)
1041     ac_prev=libexecdir ;;
1042   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043   | --libexe=* | --libex=* | --libe=*)
1044     libexecdir=$ac_optarg ;;
1045
1046   -localedir | --localedir | --localedi | --localed | --locale)
1047     ac_prev=localedir ;;
1048   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049     localedir=$ac_optarg ;;
1050
1051   -localstatedir | --localstatedir | --localstatedi | --localstated \
1052   | --localstate | --localstat | --localsta | --localst | --locals)
1053     ac_prev=localstatedir ;;
1054   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056     localstatedir=$ac_optarg ;;
1057
1058   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059     ac_prev=mandir ;;
1060   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061     mandir=$ac_optarg ;;
1062
1063   -nfp | --nfp | --nf)
1064     # Obsolete; use --without-fp.
1065     with_fp=no ;;
1066
1067   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068   | --no-cr | --no-c | -n)
1069     no_create=yes ;;
1070
1071   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073     no_recursion=yes ;;
1074
1075   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077   | --oldin | --oldi | --old | --ol | --o)
1078     ac_prev=oldincludedir ;;
1079   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082     oldincludedir=$ac_optarg ;;
1083
1084   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085     ac_prev=prefix ;;
1086   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087     prefix=$ac_optarg ;;
1088
1089   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090   | --program-pre | --program-pr | --program-p)
1091     ac_prev=program_prefix ;;
1092   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094     program_prefix=$ac_optarg ;;
1095
1096   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097   | --program-suf | --program-su | --program-s)
1098     ac_prev=program_suffix ;;
1099   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101     program_suffix=$ac_optarg ;;
1102
1103   -program-transform-name | --program-transform-name \
1104   | --program-transform-nam | --program-transform-na \
1105   | --program-transform-n | --program-transform- \
1106   | --program-transform | --program-transfor \
1107   | --program-transfo | --program-transf \
1108   | --program-trans | --program-tran \
1109   | --progr-tra | --program-tr | --program-t)
1110     ac_prev=program_transform_name ;;
1111   -program-transform-name=* | --program-transform-name=* \
1112   | --program-transform-nam=* | --program-transform-na=* \
1113   | --program-transform-n=* | --program-transform-=* \
1114   | --program-transform=* | --program-transfor=* \
1115   | --program-transfo=* | --program-transf=* \
1116   | --program-trans=* | --program-tran=* \
1117   | --progr-tra=* | --program-tr=* | --program-t=*)
1118     program_transform_name=$ac_optarg ;;
1119
1120   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121     ac_prev=pdfdir ;;
1122   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123     pdfdir=$ac_optarg ;;
1124
1125   -psdir | --psdir | --psdi | --psd | --ps)
1126     ac_prev=psdir ;;
1127   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128     psdir=$ac_optarg ;;
1129
1130   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131   | -silent | --silent | --silen | --sile | --sil)
1132     silent=yes ;;
1133
1134   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135     ac_prev=sbindir ;;
1136   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137   | --sbi=* | --sb=*)
1138     sbindir=$ac_optarg ;;
1139
1140   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142   | --sharedst | --shareds | --shared | --share | --shar \
1143   | --sha | --sh)
1144     ac_prev=sharedstatedir ;;
1145   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148   | --sha=* | --sh=*)
1149     sharedstatedir=$ac_optarg ;;
1150
1151   -site | --site | --sit)
1152     ac_prev=site ;;
1153   -site=* | --site=* | --sit=*)
1154     site=$ac_optarg ;;
1155
1156   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157     ac_prev=srcdir ;;
1158   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159     srcdir=$ac_optarg ;;
1160
1161   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162   | --syscon | --sysco | --sysc | --sys | --sy)
1163     ac_prev=sysconfdir ;;
1164   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166     sysconfdir=$ac_optarg ;;
1167
1168   -target | --target | --targe | --targ | --tar | --ta | --t)
1169     ac_prev=target_alias ;;
1170   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171     target_alias=$ac_optarg ;;
1172
1173   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174     verbose=yes ;;
1175
1176   -version | --version | --versio | --versi | --vers | -V)
1177     ac_init_version=: ;;
1178
1179   -with-* | --with-*)
1180     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183       as_fn_error $? "invalid package name: $ac_useropt"
1184     ac_useropt_orig=$ac_useropt
1185     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186     case $ac_user_opts in
1187       *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191          ac_unrecognized_sep=', ';;
1192     esac
1193     eval with_$ac_useropt=\$ac_optarg ;;
1194
1195   -without-* | --without-*)
1196     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199       as_fn_error $? "invalid package name: $ac_useropt"
1200     ac_useropt_orig=$ac_useropt
1201     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202     case $ac_user_opts in
1203       *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207          ac_unrecognized_sep=', ';;
1208     esac
1209     eval with_$ac_useropt=no ;;
1210
1211   --x)
1212     # Obsolete; use --with-x.
1213     with_x=yes ;;
1214
1215   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216   | --x-incl | --x-inc | --x-in | --x-i)
1217     ac_prev=x_includes ;;
1218   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220     x_includes=$ac_optarg ;;
1221
1222   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224     ac_prev=x_libraries ;;
1225   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227     x_libraries=$ac_optarg ;;
1228
1229   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1231     ;;
1232
1233   *=*)
1234     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235     # Reject names that are not valid shell variable names.
1236     case $ac_envvar in #(
1237       '' | [0-9]* | *[!_$as_cr_alnum]* )
1238       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239     esac
1240     eval $ac_envvar=\$ac_optarg
1241     export $ac_envvar ;;
1242
1243   *)
1244     # FIXME: should be removed in autoconf 3.0.
1245     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249     ;;
1250
1251   esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256   as_fn_error $? "missing argument to $ac_option"
1257 fi
1258
1259 if test -n "$ac_unrecognized_opts"; then
1260   case $enable_option_checking in
1261     no) ;;
1262     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264   esac
1265 fi
1266
1267 # Check all directory arguments for consistency.
1268 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269                 datadir sysconfdir sharedstatedir localstatedir includedir \
1270                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271                 libdir localedir mandir
1272 do
1273   eval ac_val=\$$ac_var
1274   # Remove trailing slashes.
1275   case $ac_val in
1276     */ )
1277       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278       eval $ac_var=\$ac_val;;
1279   esac
1280   # Be sure to have absolute directory names.
1281   case $ac_val in
1282     [\\/$]* | ?:[\\/]* )  continue;;
1283     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284   esac
1285   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297   if test "x$build_alias" = x; then
1298     cross_compiling=maybe
1299   elif test "x$build_alias" != "x$host_alias"; then
1300     cross_compiling=yes
1301   fi
1302 fi
1303
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307 test "$silent" = yes && exec 6>/dev/null
1308
1309
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313   as_fn_error $? "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315   as_fn_error $? "pwd does not report name of working directory"
1316
1317
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320   ac_srcdir_defaulted=yes
1321   # Try the directory containing this script, then the parent directory.
1322   ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324          X"$as_myself" : 'X\(//\)[^/]' \| \
1325          X"$as_myself" : 'X\(//\)$' \| \
1326          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\/\)[^/].*/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\/\)$/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\).*/{
1341             s//\1/
1342             q
1343           }
1344           s/.*/./; q'`
1345   srcdir=$ac_confdir
1346   if test ! -r "$srcdir/$ac_unique_file"; then
1347     srcdir=..
1348   fi
1349 else
1350   ac_srcdir_defaulted=no
1351 fi
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 fi
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 ac_abs_confdir=`(
1358         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359         pwd)`
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362   srcdir=.
1363 fi
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1367 case $srcdir in
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 esac
1370 for ac_var in $ac_precious_vars; do
1371   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372   eval ac_env_${ac_var}_value=\$${ac_var}
1373   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1376
1377 #
1378 # Report the --help message.
1379 #
1380 if test "$ac_init_help" = "long"; then
1381   # Omit some internal or obsolete options to make the list less imposing.
1382   # This message is too long to be a string in the A/UX 3.1 sh.
1383   cat <<_ACEOF
1384 \`configure' configures OpenFst 1.6.5 to adapt to many kinds of systems.
1385
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE.  See below for descriptions of some of the useful variables.
1390
1391 Defaults for the options are specified in brackets.
1392
1393 Configuration:
1394   -h, --help              display this help and exit
1395       --help=short        display options specific to this package
1396       --help=recursive    display the short help of all the included packages
1397   -V, --version           display version information and exit
1398   -q, --quiet, --silent   do not print \`checking ...' messages
1399       --cache-file=FILE   cache test results in FILE [disabled]
1400   -C, --config-cache      alias for \`--cache-file=config.cache'
1401   -n, --no-create         do not create output files
1402       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1403
1404 Installation directories:
1405   --prefix=PREFIX         install architecture-independent files in PREFIX
1406                           [$ac_default_prefix]
1407   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1408                           [PREFIX]
1409
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1414
1415 For better control, use the options below.
1416
1417 Fine tuning of the installation directories:
1418   --bindir=DIR            user executables [EPREFIX/bin]
1419   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1420   --libexecdir=DIR        program executables [EPREFIX/libexec]
1421   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1422   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1423   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1424   --libdir=DIR            object code libraries [EPREFIX/lib]
1425   --includedir=DIR        C header files [PREFIX/include]
1426   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1427   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1428   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1429   --infodir=DIR           info documentation [DATAROOTDIR/info]
1430   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1431   --mandir=DIR            man documentation [DATAROOTDIR/man]
1432   --docdir=DIR            documentation root [DATAROOTDIR/doc/openfst]
1433   --htmldir=DIR           html documentation [DOCDIR]
1434   --dvidir=DIR            dvi documentation [DOCDIR]
1435   --pdfdir=DIR            pdf documentation [DOCDIR]
1436   --psdir=DIR             ps documentation [DOCDIR]
1437 _ACEOF
1438
1439   cat <<\_ACEOF
1440
1441 Program names:
1442   --program-prefix=PREFIX            prepend PREFIX to installed program names
1443   --program-suffix=SUFFIX            append SUFFIX to installed program names
1444   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1445
1446 System types:
1447   --build=BUILD     configure for building on BUILD [guessed]
1448   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1449 _ACEOF
1450 fi
1451
1452 if test -n "$ac_init_help"; then
1453   case $ac_init_help in
1454      short | recursive ) echo "Configuration of OpenFst 1.6.5:";;
1455    esac
1456   cat <<\_ACEOF
1457
1458 Optional Features:
1459   --disable-option-checking  ignore unrecognized --enable/--with options
1460   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1461   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1462   --enable-silent-rules   less verbose build output (undo: "make V=1")
1463   --disable-silent-rules  verbose build output (undo: "make V=0")
1464   --enable-dependency-tracking
1465                           do not reject slow dependency extractors
1466   --disable-dependency-tracking
1467                           speeds up one-time build
1468   --enable-static[=PKGS]  build static libraries [default=no]
1469   --enable-shared[=PKGS]  build shared libraries [default=yes]
1470   --enable-fast-install[=PKGS]
1471                           optimize for fast installation [default=yes]
1472   --disable-libtool-lock  avoid locking (might break parallel builds)
1473   --enable-compact-fsts   enable CompactFst extensions
1474   --enable-compress       enable compression extension
1475   --enable-const-fsts     enable ConstFst extensions
1476   --enable-far            enable FAR extensions
1477   --enable-linear-fsts    enable LinearTagger/ClassifierFst extensions
1478   --enable-lookahead-fsts enable LookAheadFst extensions
1479   --enable-mpdt           enable MPDT extensions
1480   --enable-ngram-fsts     enable NGramFst extension
1481   --enable-pdt            enable PDT extensions
1482   --enable-python         enable Python extensions
1483   --enable-special        enable special-matcher extensions
1484   --enable-bin            enable fst::script and command-line binaries
1485   --enable-grm            enable all dependencies of OpenGrm
1486
1487 Optional Packages:
1488   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1491                           both]
1492   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1493   --with-sysroot=DIR Search for dependent libraries within DIR
1494                         (or the compiler's sysroot if not specified).
1495 --with-libfstdir=DIR fst dynamic extensions [LIBDIR/fst]
1496
1497 Some influential environment variables:
1498   CC          C compiler command
1499   CFLAGS      C compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CXX         C++ compiler command
1506   CXXFLAGS    C++ compiler flags
1507   CPP         C preprocessor
1508   CXXCPP      C++ preprocessor
1509   PYTHON      the Python interpreter
1510   PYTHON_VERSION
1511               The installed Python version to use, for example '2.3'. This
1512               string will be appended to the Python interpreter canonical
1513               name.
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 Report bugs to <help@www.openfst.org>.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1522
1523 if test "$ac_init_help" = "recursive"; then
1524   # If there are subdirs, report their specific --help.
1525   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526     test -d "$ac_dir" ||
1527       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528       continue
1529     ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535   # A ".." for each directory in $ac_dir_suffix.
1536   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537   case $ac_top_builddir_sub in
1538   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540   esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548   .)  # We are building in place.
1549     ac_srcdir=.
1550     ac_top_srcdir=$ac_top_builddir_sub
1551     ac_abs_top_srcdir=$ac_pwd ;;
1552   [\\/]* | ?:[\\/]* )  # Absolute name.
1553     ac_srcdir=$srcdir$ac_dir_suffix;
1554     ac_top_srcdir=$srcdir
1555     ac_abs_top_srcdir=$srcdir ;;
1556   *) # Relative name.
1557     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558     ac_top_srcdir=$ac_top_build_prefix$srcdir
1559     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563     cd "$ac_dir" || { ac_status=$?; continue; }
1564     # Check for guested configure.
1565     if test -f "$ac_srcdir/configure.gnu"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568     elif test -f "$ac_srcdir/configure"; then
1569       echo &&
1570       $SHELL "$ac_srcdir/configure" --help=recursive
1571     else
1572       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573     fi || ac_status=$?
1574     cd "$ac_pwd" || { ac_status=$?; break; }
1575   done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580   cat <<\_ACEOF
1581 OpenFst configure 1.6.5
1582 generated by GNU Autoconf 2.69
1583
1584 Copyright (C) 2012 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588   exit
1589 fi
1590
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1594
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1599 {
1600   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601   rm -f conftest.$ac_objext
1602   if { { ac_try="$ac_compile"
1603 case "(($ac_try" in
1604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605   *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609   (eval "$ac_compile") 2>conftest.err
1610   ac_status=$?
1611   if test -s conftest.err; then
1612     grep -v '^ *+' conftest.err >conftest.er1
1613     cat conftest.er1 >&5
1614     mv -f conftest.er1 conftest.err
1615   fi
1616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617   test $ac_status = 0; } && {
1618          test -z "$ac_c_werror_flag" ||
1619          test ! -s conftest.err
1620        } && test -s conftest.$ac_objext; then :
1621   ac_retval=0
1622 else
1623   $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626         ac_retval=1
1627 fi
1628   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629   as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_cxx_try_compile LINENO
1634 # ----------------------------
1635 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_cxx_try_compile ()
1637 {
1638   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639   rm -f conftest.$ac_objext
1640   if { { ac_try="$ac_compile"
1641 case "(($ac_try" in
1642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643   *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647   (eval "$ac_compile") 2>conftest.err
1648   ac_status=$?
1649   if test -s conftest.err; then
1650     grep -v '^ *+' conftest.err >conftest.er1
1651     cat conftest.er1 >&5
1652     mv -f conftest.er1 conftest.err
1653   fi
1654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655   test $ac_status = 0; } && {
1656          test -z "$ac_cxx_werror_flag" ||
1657          test ! -s conftest.err
1658        } && test -s conftest.$ac_objext; then :
1659   ac_retval=0
1660 else
1661   $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664         ac_retval=1
1665 fi
1666   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667   as_fn_set_status $ac_retval
1668
1669 } # ac_fn_cxx_try_compile
1670
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_link ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   rm -f conftest.$ac_objext conftest$ac_exeext
1678   if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681   *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685   (eval "$ac_link") 2>conftest.err
1686   ac_status=$?
1687   if test -s conftest.err; then
1688     grep -v '^ *+' conftest.err >conftest.er1
1689     cat conftest.er1 >&5
1690     mv -f conftest.er1 conftest.err
1691   fi
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } && {
1694          test -z "$ac_c_werror_flag" ||
1695          test ! -s conftest.err
1696        } && test -s conftest$ac_exeext && {
1697          test "$cross_compiling" = yes ||
1698          test -x conftest$ac_exeext
1699        }; then :
1700   ac_retval=0
1701 else
1702   $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705         ac_retval=1
1706 fi
1707   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709   # interfere with the next link command; also delete a directory that is
1710   # left behind by Apple's compiler.  We do this before executing the actions.
1711   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713   as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_link
1716
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1722 {
1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727   $as_echo_n "(cached) " >&6
1728 else
1729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h.  */
1731 $4
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735   eval "$3=yes"
1736 else
1737   eval "$3=no"
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 fi
1741 eval ac_res=\$$3
1742                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746 } # ac_fn_c_check_header_compile
1747
1748 # ac_fn_c_try_cpp LINENO
1749 # ----------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_cpp ()
1752 {
1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754   if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 case "(($ac_try" in
1756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757   *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762   ac_status=$?
1763   if test -s conftest.err; then
1764     grep -v '^ *+' conftest.err >conftest.er1
1765     cat conftest.er1 >&5
1766     mv -f conftest.er1 conftest.err
1767   fi
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } > conftest.i && {
1770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771          test ! -s conftest.err
1772        }; then :
1773   ac_retval=0
1774 else
1775   $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778     ac_retval=1
1779 fi
1780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781   as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_cpp
1784
1785 # ac_fn_c_try_run LINENO
1786 # ----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1788 # that executables *can* be run.
1789 ac_fn_c_try_run ()
1790 {
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799   (eval "$ac_link") 2>&5
1800   ac_status=$?
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1803   { { case "(($ac_try" in
1804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805   *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809   (eval "$ac_try") 2>&5
1810   ac_status=$?
1811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812   test $ac_status = 0; }; }; then :
1813   ac_retval=0
1814 else
1815   $as_echo "$as_me: program exited with status $ac_status" >&5
1816        $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819        ac_retval=$ac_status
1820 fi
1821   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823   as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_run
1826
1827 # ac_fn_c_check_func LINENO FUNC VAR
1828 # ----------------------------------
1829 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1830 ac_fn_c_check_func ()
1831 {
1832   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836   $as_echo_n "(cached) " >&6
1837 else
1838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h.  */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1842 #define $2 innocuous_$2
1843
1844 /* System header to define __stub macros and hopefully few prototypes,
1845     which can conflict with char $2 (); below.
1846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847     <limits.h> exists even on freestanding compilers.  */
1848
1849 #ifdef __STDC__
1850 # include <limits.h>
1851 #else
1852 # include <assert.h>
1853 #endif
1854
1855 #undef $2
1856
1857 /* Override any GCC internal prototype to avoid an error.
1858    Use char because int might match the return type of a GCC
1859    builtin and then its argument prototype would still apply.  */
1860 #ifdef __cplusplus
1861 extern "C"
1862 #endif
1863 char $2 ();
1864 /* The GNU C library defines this for functions which it implements
1865     to always fail with ENOSYS.  Some functions are actually named
1866     something starting with __ and the normal name is an alias.  */
1867 #if defined __stub_$2 || defined __stub___$2
1868 choke me
1869 #endif
1870
1871 int
1872 main ()
1873 {
1874 return $2 ();
1875   ;
1876   return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_link "$LINENO"; then :
1880   eval "$3=yes"
1881 else
1882   eval "$3=no"
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext \
1885     conftest$ac_exeext conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892 } # ac_fn_c_check_func
1893
1894 # ac_fn_cxx_try_cpp LINENO
1895 # ------------------------
1896 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_cxx_try_cpp ()
1898 {
1899   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900   if { { ac_try="$ac_cpp conftest.$ac_ext"
1901 case "(($ac_try" in
1902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903   *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1908   ac_status=$?
1909   if test -s conftest.err; then
1910     grep -v '^ *+' conftest.err >conftest.er1
1911     cat conftest.er1 >&5
1912     mv -f conftest.er1 conftest.err
1913   fi
1914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915   test $ac_status = 0; } > conftest.i && {
1916          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1917          test ! -s conftest.err
1918        }; then :
1919   ac_retval=0
1920 else
1921   $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924     ac_retval=1
1925 fi
1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927   as_fn_set_status $ac_retval
1928
1929 } # ac_fn_cxx_try_cpp
1930
1931 # ac_fn_cxx_try_link LINENO
1932 # -------------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_link ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   rm -f conftest.$ac_objext conftest$ac_exeext
1938   if { { ac_try="$ac_link"
1939 case "(($ac_try" in
1940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941   *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945   (eval "$ac_link") 2>conftest.err
1946   ac_status=$?
1947   if test -s conftest.err; then
1948     grep -v '^ *+' conftest.err >conftest.er1
1949     cat conftest.er1 >&5
1950     mv -f conftest.er1 conftest.err
1951   fi
1952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953   test $ac_status = 0; } && {
1954          test -z "$ac_cxx_werror_flag" ||
1955          test ! -s conftest.err
1956        } && test -s conftest$ac_exeext && {
1957          test "$cross_compiling" = yes ||
1958          test -x conftest$ac_exeext
1959        }; then :
1960   ac_retval=0
1961 else
1962   $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965         ac_retval=1
1966 fi
1967   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1968   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1969   # interfere with the next link command; also delete a directory that is
1970   # left behind by Apple's compiler.  We do this before executing the actions.
1971   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973   as_fn_set_status $ac_retval
1974
1975 } # ac_fn_cxx_try_link
1976 cat >config.log <<_ACEOF
1977 This file contains any messages produced by compilers while
1978 running configure, to aid debugging if configure makes a mistake.
1979
1980 It was created by OpenFst $as_me 1.6.5, which was
1981 generated by GNU Autoconf 2.69.  Invocation command line was
1982
1983   $ $0 $@
1984
1985 _ACEOF
1986 exec 5>>config.log
1987 {
1988 cat <<_ASUNAME
1989 ## --------- ##
1990 ## Platform. ##
1991 ## --------- ##
1992
1993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998
1999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2001
2002 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2003 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2006 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2007 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2008 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2009
2010 _ASUNAME
2011
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017     $as_echo "PATH: $as_dir"
2018   done
2019 IFS=$as_save_IFS
2020
2021 } >&5
2022
2023 cat >&5 <<_ACEOF
2024
2025
2026 ## ----------- ##
2027 ## Core tests. ##
2028 ## ----------- ##
2029
2030 _ACEOF
2031
2032
2033 # Keep a trace of the command line.
2034 # Strip out --no-create and --no-recursion so they do not pile up.
2035 # Strip out --silent because we don't want to record it for future runs.
2036 # Also quote any args containing shell meta-characters.
2037 # Make two passes to allow for proper duplicate-argument suppression.
2038 ac_configure_args=
2039 ac_configure_args0=
2040 ac_configure_args1=
2041 ac_must_keep_next=false
2042 for ac_pass in 1 2
2043 do
2044   for ac_arg
2045   do
2046     case $ac_arg in
2047     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049     | -silent | --silent | --silen | --sile | --sil)
2050       continue ;;
2051     *\'*)
2052       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2053     esac
2054     case $ac_pass in
2055     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2056     2)
2057       as_fn_append ac_configure_args1 " '$ac_arg'"
2058       if test $ac_must_keep_next = true; then
2059         ac_must_keep_next=false # Got value, back to normal.
2060       else
2061         case $ac_arg in
2062           *=* | --config-cache | -C | -disable-* | --disable-* \
2063           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065           | -with-* | --with-* | -without-* | --without-* | --x)
2066             case "$ac_configure_args0 " in
2067               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2068             esac
2069             ;;
2070           -* ) ac_must_keep_next=true ;;
2071         esac
2072       fi
2073       as_fn_append ac_configure_args " '$ac_arg'"
2074       ;;
2075     esac
2076   done
2077 done
2078 { ac_configure_args0=; unset ac_configure_args0;}
2079 { ac_configure_args1=; unset ac_configure_args1;}
2080
2081 # When interrupted or exit'd, cleanup temporary files, and complete
2082 # config.log.  We remove comments because anyway the quotes in there
2083 # would cause problems or look ugly.
2084 # WARNING: Use '\'' to represent an apostrophe within the trap.
2085 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2086 trap 'exit_status=$?
2087   # Save into config.log some information that might help in debugging.
2088   {
2089     echo
2090
2091     $as_echo "## ---------------- ##
2092 ## Cache variables. ##
2093 ## ---------------- ##"
2094     echo
2095     # The following way of writing the cache mishandles newlines in values,
2096 (
2097   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2098     eval ac_val=\$$ac_var
2099     case $ac_val in #(
2100     *${as_nl}*)
2101       case $ac_var in #(
2102       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2103 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2104       esac
2105       case $ac_var in #(
2106       _ | IFS | as_nl) ;; #(
2107       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2108       *) { eval $ac_var=; unset $ac_var;} ;;
2109       esac ;;
2110     esac
2111   done
2112   (set) 2>&1 |
2113     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2114     *${as_nl}ac_space=\ *)
2115       sed -n \
2116         "s/'\''/'\''\\\\'\'''\''/g;
2117           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2118       ;; #(
2119     *)
2120       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2121       ;;
2122     esac |
2123     sort
2124 )
2125     echo
2126
2127     $as_echo "## ----------------- ##
2128 ## Output variables. ##
2129 ## ----------------- ##"
2130     echo
2131     for ac_var in $ac_subst_vars
2132     do
2133       eval ac_val=\$$ac_var
2134       case $ac_val in
2135       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136       esac
2137       $as_echo "$ac_var='\''$ac_val'\''"
2138     done | sort
2139     echo
2140
2141     if test -n "$ac_subst_files"; then
2142       $as_echo "## ------------------- ##
2143 ## File substitutions. ##
2144 ## ------------------- ##"
2145       echo
2146       for ac_var in $ac_subst_files
2147       do
2148         eval ac_val=\$$ac_var
2149         case $ac_val in
2150         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151         esac
2152         $as_echo "$ac_var='\''$ac_val'\''"
2153       done | sort
2154       echo
2155     fi
2156
2157     if test -s confdefs.h; then
2158       $as_echo "## ----------- ##
2159 ## confdefs.h. ##
2160 ## ----------- ##"
2161       echo
2162       cat confdefs.h
2163       echo
2164     fi
2165     test "$ac_signal" != 0 &&
2166       $as_echo "$as_me: caught signal $ac_signal"
2167     $as_echo "$as_me: exit $exit_status"
2168   } >&5
2169   rm -f core *.core core.conftest.* &&
2170     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2171     exit $exit_status
2172 ' 0
2173 for ac_signal in 1 2 13 15; do
2174   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2175 done
2176 ac_signal=0
2177
2178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2179 rm -f -r conftest* confdefs.h
2180
2181 $as_echo "/* confdefs.h */" > confdefs.h
2182
2183 # Predefined preprocessor variables.
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_NAME "$PACKAGE_NAME"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_STRING "$PACKAGE_STRING"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_URL "$PACKAGE_URL"
2207 _ACEOF
2208
2209
2210 # Let the site file select an alternate cache file if it wants to.
2211 # Prefer an explicitly selected file to automatically selected ones.
2212 ac_site_file1=NONE
2213 ac_site_file2=NONE
2214 if test -n "$CONFIG_SITE"; then
2215   # We do not want a PATH search for config.site.
2216   case $CONFIG_SITE in #((
2217     -*)  ac_site_file1=./$CONFIG_SITE;;
2218     */*) ac_site_file1=$CONFIG_SITE;;
2219     *)   ac_site_file1=./$CONFIG_SITE;;
2220   esac
2221 elif test "x$prefix" != xNONE; then
2222   ac_site_file1=$prefix/share/config.site
2223   ac_site_file2=$prefix/etc/config.site
2224 else
2225   ac_site_file1=$ac_default_prefix/share/config.site
2226   ac_site_file2=$ac_default_prefix/etc/config.site
2227 fi
2228 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2229 do
2230   test "x$ac_site_file" = xNONE && continue
2231   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2232     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2233 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2234     sed 's/^/| /' "$ac_site_file" >&5
2235     . "$ac_site_file" \
2236       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 as_fn_error $? "failed to load site script $ac_site_file
2239 See \`config.log' for more details" "$LINENO" 5; }
2240   fi
2241 done
2242
2243 if test -r "$cache_file"; then
2244   # Some versions of bash will fail to source /dev/null (special files
2245   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2246   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2247     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2248 $as_echo "$as_me: loading cache $cache_file" >&6;}
2249     case $cache_file in
2250       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2251       *)                      . "./$cache_file";;
2252     esac
2253   fi
2254 else
2255   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2256 $as_echo "$as_me: creating cache $cache_file" >&6;}
2257   >$cache_file
2258 fi
2259
2260 # Check that the precious variables saved in the cache have kept the same
2261 # value.
2262 ac_cache_corrupted=false
2263 for ac_var in $ac_precious_vars; do
2264   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2265   eval ac_new_set=\$ac_env_${ac_var}_set
2266   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2267   eval ac_new_val=\$ac_env_${ac_var}_value
2268   case $ac_old_set,$ac_new_set in
2269     set,)
2270       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2272       ac_cache_corrupted=: ;;
2273     ,set)
2274       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2276       ac_cache_corrupted=: ;;
2277     ,);;
2278     *)
2279       if test "x$ac_old_val" != "x$ac_new_val"; then
2280         # differences in whitespace do not lead to failure.
2281         ac_old_val_w=`echo x $ac_old_val`
2282         ac_new_val_w=`echo x $ac_new_val`
2283         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2284           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2285 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2286           ac_cache_corrupted=:
2287         else
2288           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2289 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2290           eval $ac_var=\$ac_old_val
2291         fi
2292         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2293 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2294         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2295 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2296       fi;;
2297   esac
2298   # Pass precious variables to config.status.
2299   if test "$ac_new_set" = set; then
2300     case $ac_new_val in
2301     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2302     *) ac_arg=$ac_var=$ac_new_val ;;
2303     esac
2304     case " $ac_configure_args " in
2305       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2306       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2307     esac
2308   fi
2309 done
2310 if $ac_cache_corrupted; then
2311   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2314 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2315   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2316 fi
2317 ## -------------------- ##
2318 ## Main body of script. ##
2319 ## -------------------- ##
2320
2321 ac_ext=c
2322 ac_cpp='$CPP $CPPFLAGS'
2323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2326
2327
2328 am__api_version='1.14'
2329
2330 ac_aux_dir=
2331 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2332   if test -f "$ac_dir/install-sh"; then
2333     ac_aux_dir=$ac_dir
2334     ac_install_sh="$ac_aux_dir/install-sh -c"
2335     break
2336   elif test -f "$ac_dir/install.sh"; then
2337     ac_aux_dir=$ac_dir
2338     ac_install_sh="$ac_aux_dir/install.sh -c"
2339     break
2340   elif test -f "$ac_dir/shtool"; then
2341     ac_aux_dir=$ac_dir
2342     ac_install_sh="$ac_aux_dir/shtool install -c"
2343     break
2344   fi
2345 done
2346 if test -z "$ac_aux_dir"; then
2347   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2348 fi
2349
2350 # These three variables are undocumented and unsupported,
2351 # and are intended to be withdrawn in a future Autoconf release.
2352 # They can cause serious problems if a builder's source tree is in a directory
2353 # whose full name contains unusual characters.
2354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2356 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2357
2358
2359 # Find a good install program.  We prefer a C program (faster),
2360 # so one script is as good as another.  But avoid the broken or
2361 # incompatible versions:
2362 # SysV /etc/install, /usr/sbin/install
2363 # SunOS /usr/etc/install
2364 # IRIX /sbin/install
2365 # AIX /bin/install
2366 # AmigaOS /C/install, which installs bootblocks on floppy discs
2367 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2368 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2369 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2370 # OS/2's system install, which has a completely different semantic
2371 # ./install, which can be erroneously created by make from ./install.sh.
2372 # Reject install programs that cannot install multiple files.
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2374 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2375 if test -z "$INSTALL"; then
2376 if ${ac_cv_path_install+:} false; then :
2377   $as_echo_n "(cached) " >&6
2378 else
2379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382   IFS=$as_save_IFS
2383   test -z "$as_dir" && as_dir=.
2384     # Account for people who put trailing slashes in PATH elements.
2385 case $as_dir/ in #((
2386   ./ | .// | /[cC]/* | \
2387   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2388   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2389   /usr/ucb/* ) ;;
2390   *)
2391     # OSF1 and SCO ODT 3.0 have their own names for install.
2392     # Don't use installbsd from OSF since it installs stuff as root
2393     # by default.
2394     for ac_prog in ginstall scoinst install; do
2395       for ac_exec_ext in '' $ac_executable_extensions; do
2396         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2397           if test $ac_prog = install &&
2398             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399             # AIX install.  It has an incompatible calling convention.
2400             :
2401           elif test $ac_prog = install &&
2402             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2403             # program-specific install script used by HP pwplus--don't use.
2404             :
2405           else
2406             rm -rf conftest.one conftest.two conftest.dir
2407             echo one > conftest.one
2408             echo two > conftest.two
2409             mkdir conftest.dir
2410             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2411               test -s conftest.one && test -s conftest.two &&
2412               test -s conftest.dir/conftest.one &&
2413               test -s conftest.dir/conftest.two
2414             then
2415               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2416               break 3
2417             fi
2418           fi
2419         fi
2420       done
2421     done
2422     ;;
2423 esac
2424
2425   done
2426 IFS=$as_save_IFS
2427
2428 rm -rf conftest.one conftest.two conftest.dir
2429
2430 fi
2431   if test "${ac_cv_path_install+set}" = set; then
2432     INSTALL=$ac_cv_path_install
2433   else
2434     # As a last resort, use the slow shell script.  Don't cache a
2435     # value for INSTALL within a source directory, because that will
2436     # break other packages using the cache if that directory is
2437     # removed, or if the value is a relative name.
2438     INSTALL=$ac_install_sh
2439   fi
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2442 $as_echo "$INSTALL" >&6; }
2443
2444 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2445 # It thinks the first close brace ends the variable substitution.
2446 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2447
2448 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2449
2450 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2451
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2453 $as_echo_n "checking whether build environment is sane... " >&6; }
2454 # Reject unsafe characters in $srcdir or the absolute working directory
2455 # name.  Accept space and tab only in the latter.
2456 am_lf='
2457 '
2458 case `pwd` in
2459   *[\\\"\#\$\&\'\`$am_lf]*)
2460     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2461 esac
2462 case $srcdir in
2463   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2464     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2465 esac
2466
2467 # Do 'set' in a subshell so we don't clobber the current shell's
2468 # arguments.  Must try -L first in case configure is actually a
2469 # symlink; some systems play weird games with the mod time of symlinks
2470 # (eg FreeBSD returns the mod time of the symlink's containing
2471 # directory).
2472 if (
2473    am_has_slept=no
2474    for am_try in 1 2; do
2475      echo "timestamp, slept: $am_has_slept" > conftest.file
2476      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2477      if test "$*" = "X"; then
2478         # -L didn't work.
2479         set X `ls -t "$srcdir/configure" conftest.file`
2480      fi
2481      if test "$*" != "X $srcdir/configure conftest.file" \
2482         && test "$*" != "X conftest.file $srcdir/configure"; then
2483
2484         # If neither matched, then we have a broken ls.  This can happen
2485         # if, for instance, CONFIG_SHELL is bash and it inherits a
2486         # broken ls alias from the environment.  This has actually
2487         # happened.  Such a system could not be considered "sane".
2488         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2489   alias in your environment" "$LINENO" 5
2490      fi
2491      if test "$2" = conftest.file || test $am_try -eq 2; then
2492        break
2493      fi
2494      # Just in case.
2495      sleep 1
2496      am_has_slept=yes
2497    done
2498    test "$2" = conftest.file
2499    )
2500 then
2501    # Ok.
2502    :
2503 else
2504    as_fn_error $? "newly created file is older than distributed files!
2505 Check your system clock" "$LINENO" 5
2506 fi
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508 $as_echo "yes" >&6; }
2509 # If we didn't sleep, we still need to ensure time stamps of config.status and
2510 # generated files are strictly newer.
2511 am_sleep_pid=
2512 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2513   ( sleep 1 ) &
2514   am_sleep_pid=$!
2515 fi
2516
2517 rm -f conftest.file
2518
2519 test "$program_prefix" != NONE &&
2520   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2521 # Use a double $ so make ignores it.
2522 test "$program_suffix" != NONE &&
2523   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2524 # Double any \ or $.
2525 # By default was `s,x,x', remove it if useless.
2526 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2527 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2528
2529 # expand $ac_aux_dir to an absolute path
2530 am_aux_dir=`cd $ac_aux_dir && pwd`
2531
2532 if test x"${MISSING+set}" != xset; then
2533   case $am_aux_dir in
2534   *\ * | *\     *)
2535     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2536   *)
2537     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2538   esac
2539 fi
2540 # Use eval to expand $SHELL
2541 if eval "$MISSING --is-lightweight"; then
2542   am_missing_run="$MISSING "
2543 else
2544   am_missing_run=
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2546 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2547 fi
2548
2549 if test x"${install_sh}" != xset; then
2550   case $am_aux_dir in
2551   *\ * | *\     *)
2552     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2553   *)
2554     install_sh="\${SHELL} $am_aux_dir/install-sh"
2555   esac
2556 fi
2557
2558 # Installed binaries are usually stripped using 'strip' when the user
2559 # run "make install-strip".  However 'strip' might not be the right
2560 # tool to use in cross-compilation environments, therefore Automake
2561 # will honor the 'STRIP' environment variable to overrule this program.
2562 if test "$cross_compiling" != no; then
2563   if test -n "$ac_tool_prefix"; then
2564   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2565 set dummy ${ac_tool_prefix}strip; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if ${ac_cv_prog_STRIP+:} false; then :
2569   $as_echo_n "(cached) " >&6
2570 else
2571   if test -n "$STRIP"; then
2572   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579     for ac_exec_ext in '' $ac_executable_extensions; do
2580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2581     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583     break 2
2584   fi
2585 done
2586   done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 STRIP=$ac_cv_prog_STRIP
2592 if test -n "$STRIP"; then
2593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2594 $as_echo "$STRIP" >&6; }
2595 else
2596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599
2600
2601 fi
2602 if test -z "$ac_cv_prog_STRIP"; then
2603   ac_ct_STRIP=$STRIP
2604   # Extract the first word of "strip", so it can be a program name with args.
2605 set dummy strip; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2609   $as_echo_n "(cached) " >&6
2610 else
2611   if test -n "$ac_ct_STRIP"; then
2612   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617   IFS=$as_save_IFS
2618   test -z "$as_dir" && as_dir=.
2619     for ac_exec_ext in '' $ac_executable_extensions; do
2620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621     ac_cv_prog_ac_ct_STRIP="strip"
2622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623     break 2
2624   fi
2625 done
2626   done
2627 IFS=$as_save_IFS
2628
2629 fi
2630 fi
2631 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2632 if test -n "$ac_ct_STRIP"; then
2633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2634 $as_echo "$ac_ct_STRIP" >&6; }
2635 else
2636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2638 fi
2639
2640   if test "x$ac_ct_STRIP" = x; then
2641     STRIP=":"
2642   else
2643     case $cross_compiling:$ac_tool_warned in
2644 yes:)
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2647 ac_tool_warned=yes ;;
2648 esac
2649     STRIP=$ac_ct_STRIP
2650   fi
2651 else
2652   STRIP="$ac_cv_prog_STRIP"
2653 fi
2654
2655 fi
2656 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2659 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2660 if test -z "$MKDIR_P"; then
2661   if ${ac_cv_path_mkdir+:} false; then :
2662   $as_echo_n "(cached) " >&6
2663 else
2664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2666 do
2667   IFS=$as_save_IFS
2668   test -z "$as_dir" && as_dir=.
2669     for ac_prog in mkdir gmkdir; do
2670          for ac_exec_ext in '' $ac_executable_extensions; do
2671            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2672            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2673              'mkdir (GNU coreutils) '* | \
2674              'mkdir (coreutils) '* | \
2675              'mkdir (fileutils) '4.1*)
2676                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2677                break 3;;
2678            esac
2679          done
2680        done
2681   done
2682 IFS=$as_save_IFS
2683
2684 fi
2685
2686   test -d ./--version && rmdir ./--version
2687   if test "${ac_cv_path_mkdir+set}" = set; then
2688     MKDIR_P="$ac_cv_path_mkdir -p"
2689   else
2690     # As a last resort, use the slow shell script.  Don't cache a
2691     # value for MKDIR_P within a source directory, because that will
2692     # break other packages using the cache if that directory is
2693     # removed, or if the value is a relative name.
2694     MKDIR_P="$ac_install_sh -d"
2695   fi
2696 fi
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2698 $as_echo "$MKDIR_P" >&6; }
2699
2700 for ac_prog in gawk mawk nawk awk
2701 do
2702   # Extract the first word of "$ac_prog", so it can be a program name with args.
2703 set dummy $ac_prog; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_AWK+:} false; then :
2707   $as_echo_n "(cached) " >&6
2708 else
2709   if test -n "$AWK"; then
2710   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715   IFS=$as_save_IFS
2716   test -z "$as_dir" && as_dir=.
2717     for ac_exec_ext in '' $ac_executable_extensions; do
2718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719     ac_cv_prog_AWK="$ac_prog"
2720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721     break 2
2722   fi
2723 done
2724   done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 AWK=$ac_cv_prog_AWK
2730 if test -n "$AWK"; then
2731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2732 $as_echo "$AWK" >&6; }
2733 else
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738
2739   test -n "$AWK" && break
2740 done
2741
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2743 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2744 set x ${MAKE-make}
2745 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2746 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2747   $as_echo_n "(cached) " >&6
2748 else
2749   cat >conftest.make <<\_ACEOF
2750 SHELL = /bin/sh
2751 all:
2752         @echo '@@@%%%=$(MAKE)=@@@%%%'
2753 _ACEOF
2754 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2755 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2756   *@@@%%%=?*=@@@%%%*)
2757     eval ac_cv_prog_make_${ac_make}_set=yes;;
2758   *)
2759     eval ac_cv_prog_make_${ac_make}_set=no;;
2760 esac
2761 rm -f conftest.make
2762 fi
2763 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2765 $as_echo "yes" >&6; }
2766   SET_MAKE=
2767 else
2768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770   SET_MAKE="MAKE=${MAKE-make}"
2771 fi
2772
2773 rm -rf .tst 2>/dev/null
2774 mkdir .tst 2>/dev/null
2775 if test -d .tst; then
2776   am__leading_dot=.
2777 else
2778   am__leading_dot=_
2779 fi
2780 rmdir .tst 2>/dev/null
2781
2782 # Check whether --enable-silent-rules was given.
2783 if test "${enable_silent_rules+set}" = set; then :
2784   enableval=$enable_silent_rules;
2785 fi
2786
2787 case $enable_silent_rules in # (((
2788   yes) AM_DEFAULT_VERBOSITY=0;;
2789    no) AM_DEFAULT_VERBOSITY=1;;
2790     *) AM_DEFAULT_VERBOSITY=1;;
2791 esac
2792 am_make=${MAKE-make}
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2794 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2795 if ${am_cv_make_support_nested_variables+:} false; then :
2796   $as_echo_n "(cached) " >&6
2797 else
2798   if $as_echo 'TRUE=$(BAR$(V))
2799 BAR0=false
2800 BAR1=true
2801 V=1
2802 am__doit:
2803         @$(TRUE)
2804 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2805   am_cv_make_support_nested_variables=yes
2806 else
2807   am_cv_make_support_nested_variables=no
2808 fi
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2811 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2812 if test $am_cv_make_support_nested_variables = yes; then
2813     AM_V='$(V)'
2814   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2815 else
2816   AM_V=$AM_DEFAULT_VERBOSITY
2817   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2818 fi
2819 AM_BACKSLASH='\'
2820
2821 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2822   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2823   # is not polluted with repeated "-I."
2824   am__isrc=' -I$(srcdir)'
2825   # test to see if srcdir already configured
2826   if test -f $srcdir/config.status; then
2827     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2828   fi
2829 fi
2830
2831 # test whether we have cygpath
2832 if test -z "$CYGPATH_W"; then
2833   if (cygpath --version) >/dev/null 2>/dev/null; then
2834     CYGPATH_W='cygpath -w'
2835   else
2836     CYGPATH_W=echo
2837   fi
2838 fi
2839
2840
2841 # Define the identity of the package.
2842  PACKAGE='openfst'
2843  VERSION='1.6.5'
2844
2845
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE "$PACKAGE"
2848 _ACEOF
2849
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define VERSION "$VERSION"
2853 _ACEOF
2854
2855 # Some tools Automake needs.
2856
2857 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2858
2859
2860 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2861
2862
2863 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2864
2865
2866 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2867
2868
2869 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2870
2871 # For better backward compatibility.  To be removed once Automake 1.9.x
2872 # dies out for good.  For more background, see:
2873 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2874 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2875 mkdir_p='$(MKDIR_P)'
2876
2877 # We need awk for the "check" target.  The system "awk" is bad on
2878 # some platforms.
2879 # Always define AMTAR for backward compatibility.  Yes, it's still used
2880 # in the wild :-(  We should find a proper way to deprecate it ...
2881 AMTAR='$${TAR-tar}'
2882
2883
2884 # We'll loop over all known methods to create a tar archive until one works.
2885 _am_tools='gnutar  pax cpio none'
2886
2887 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2888
2889
2890
2891
2892
2893
2894 # POSIX will say in a future version that running "rm -f" with no argument
2895 # is OK; and we want to be able to make that assumption in our Makefile
2896 # recipes.  So use an aggressive probe to check that the usage we want is
2897 # actually supported "in the wild" to an acceptable degree.
2898 # See automake bug#10828.
2899 # To make any issue more visible, cause the running configure to be aborted
2900 # by default if the 'rm' program in use doesn't match our expectations; the
2901 # user can still override this though.
2902 if rm -f && rm -fr && rm -rf; then : OK; else
2903   cat >&2 <<'END'
2904 Oops!
2905
2906 Your 'rm' program seems unable to run without file operands specified
2907 on the command line, even when the '-f' option is present.  This is contrary
2908 to the behaviour of most rm programs out there, and not conforming with
2909 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2910
2911 Please tell bug-automake@gnu.org about your system, including the value
2912 of your $PATH and any error possibly output before this message.  This
2913 can help us improve future automake versions.
2914
2915 END
2916   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2917     echo 'Configuration will proceed anyway, since you have set the' >&2
2918     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2919     echo >&2
2920   else
2921     cat >&2 <<'END'
2922 Aborting the configuration process, to ensure you take notice of the issue.
2923
2924 You can download and install GNU coreutils to get an 'rm' implementation
2925 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2926
2927 If you want to complete the configuration process using your problematic
2928 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2929 to "yes", and re-run configure.
2930
2931 END
2932     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2933   fi
2934 fi
2935 DEPDIR="${am__leading_dot}deps"
2936
2937 ac_config_commands="$ac_config_commands depfiles"
2938
2939
2940 am_make=${MAKE-make}
2941 cat > confinc << 'END'
2942 am__doit:
2943         @echo this is the am__doit target
2944 .PHONY: am__doit
2945 END
2946 # If we don't find an include directive, just comment out the code.
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2948 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2949 am__include="#"
2950 am__quote=
2951 _am_result=none
2952 # First try GNU make style include.
2953 echo "include confinc" > confmf
2954 # Ignore all kinds of additional output from 'make'.
2955 case `$am_make -s -f confmf 2> /dev/null` in #(
2956 *the\ am__doit\ target*)
2957   am__include=include
2958   am__quote=
2959   _am_result=GNU
2960   ;;
2961 esac
2962 # Now try BSD make style include.
2963 if test "$am__include" = "#"; then
2964    echo '.include "confinc"' > confmf
2965    case `$am_make -s -f confmf 2> /dev/null` in #(
2966    *the\ am__doit\ target*)
2967      am__include=.include
2968      am__quote="\""
2969      _am_result=BSD
2970      ;;
2971    esac
2972 fi
2973
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2976 $as_echo "$_am_result" >&6; }
2977 rm -f confinc confmf
2978
2979 # Check whether --enable-dependency-tracking was given.
2980 if test "${enable_dependency_tracking+set}" = set; then :
2981   enableval=$enable_dependency_tracking;
2982 fi
2983
2984 if test "x$enable_dependency_tracking" != xno; then
2985   am_depcomp="$ac_aux_dir/depcomp"
2986   AMDEPBACKSLASH='\'
2987   am__nodep='_no'
2988 fi
2989  if test "x$enable_dependency_tracking" != xno; then
2990   AMDEP_TRUE=
2991   AMDEP_FALSE='#'
2992 else
2993   AMDEP_TRUE='#'
2994   AMDEP_FALSE=
2995 fi
2996
2997
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 if test -n "$ac_tool_prefix"; then
3004   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_CC+:} false; then :
3009   $as_echo_n "(cached) " >&6
3010 else
3011   if test -n "$CC"; then
3012   ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017   IFS=$as_save_IFS
3018   test -z "$as_dir" && as_dir=.
3019     for ac_exec_ext in '' $ac_executable_extensions; do
3020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023     break 2
3024   fi
3025 done
3026   done
3027 IFS=$as_save_IFS
3028
3029 fi
3030 fi
3031 CC=$ac_cv_prog_CC
3032 if test -n "$CC"; then
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3035 else
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040
3041 fi
3042 if test -z "$ac_cv_prog_CC"; then
3043   ac_ct_CC=$CC
3044   # Extract the first word of "gcc", so it can be a program name with args.
3045 set dummy gcc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3049   $as_echo_n "(cached) " >&6
3050 else
3051   if test -n "$ac_ct_CC"; then
3052   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059     for ac_exec_ext in '' $ac_executable_extensions; do
3060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061     ac_cv_prog_ac_ct_CC="gcc"
3062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063     break 2
3064   fi
3065 done
3066   done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3072 if test -n "$ac_ct_CC"; then
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3074 $as_echo "$ac_ct_CC" >&6; }
3075 else
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080   if test "x$ac_ct_CC" = x; then
3081     CC=""
3082   else
3083     case $cross_compiling:$ac_tool_warned in
3084 yes:)
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087 ac_tool_warned=yes ;;
3088 esac
3089     CC=$ac_ct_CC
3090   fi
3091 else
3092   CC="$ac_cv_prog_CC"
3093 fi
3094
3095 if test -z "$CC"; then
3096           if test -n "$ac_tool_prefix"; then
3097     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3098 set dummy ${ac_tool_prefix}cc; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_CC+:} false; then :
3102   $as_echo_n "(cached) " >&6
3103 else
3104   if test -n "$CC"; then
3105   ac_cv_prog_CC="$CC" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110   IFS=$as_save_IFS
3111   test -z "$as_dir" && as_dir=.
3112     for ac_exec_ext in '' $ac_executable_extensions; do
3113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114     ac_cv_prog_CC="${ac_tool_prefix}cc"
3115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116     break 2
3117   fi
3118 done
3119   done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 CC=$ac_cv_prog_CC
3125 if test -n "$CC"; then
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3128 else
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134   fi
3135 fi
3136 if test -z "$CC"; then
3137   # Extract the first word of "cc", so it can be a program name with args.
3138 set dummy cc; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142   $as_echo_n "(cached) " >&6
3143 else
3144   if test -n "$CC"; then
3145   ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147   ac_prog_rejected=no
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153     for ac_exec_ext in '' $ac_executable_extensions; do
3154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3156        ac_prog_rejected=yes
3157        continue
3158      fi
3159     ac_cv_prog_CC="cc"
3160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161     break 2
3162   fi
3163 done
3164   done
3165 IFS=$as_save_IFS
3166
3167 if test $ac_prog_rejected = yes; then
3168   # We found a bogon in the path, so make sure we never use it.
3169   set dummy $ac_cv_prog_CC
3170   shift
3171   if test $# != 0; then
3172     # We chose a different compiler from the bogus one.
3173     # However, it has the same basename, so the bogon will be chosen
3174     # first if we set CC to just the basename; use the full file name.
3175     shift
3176     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3177   fi
3178 fi
3179 fi
3180 fi
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 fi
3192 if test -z "$CC"; then
3193   if test -n "$ac_tool_prefix"; then
3194   for ac_prog in cl.exe
3195   do
3196     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_CC+:} false; then :
3201   $as_echo_n "(cached) " >&6
3202 else
3203   if test -n "$CC"; then
3204   ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209   IFS=$as_save_IFS
3210   test -z "$as_dir" && as_dir=.
3211     for ac_exec_ext in '' $ac_executable_extensions; do
3212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215     break 2
3216   fi
3217 done
3218   done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 CC=$ac_cv_prog_CC
3224 if test -n "$CC"; then
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3227 else
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233     test -n "$CC" && break
3234   done
3235 fi
3236 if test -z "$CC"; then
3237   ac_ct_CC=$CC
3238   for ac_prog in cl.exe
3239 do
3240   # Extract the first word of "$ac_prog", so it can be a program name with args.
3241 set dummy $ac_prog; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3245   $as_echo_n "(cached) " >&6
3246 else
3247   if test -n "$ac_ct_CC"; then
3248   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253   IFS=$as_save_IFS
3254   test -z "$as_dir" && as_dir=.
3255     for ac_exec_ext in '' $ac_executable_extensions; do
3256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257     ac_cv_prog_ac_ct_CC="$ac_prog"
3258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259     break 2
3260   fi
3261 done
3262   done
3263 IFS=$as_save_IFS
3264
3265 fi
3266 fi
3267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268 if test -n "$ac_ct_CC"; then
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3270 $as_echo "$ac_ct_CC" >&6; }
3271 else
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277   test -n "$ac_ct_CC" && break
3278 done
3279
3280   if test "x$ac_ct_CC" = x; then
3281     CC=""
3282   else
3283     case $cross_compiling:$ac_tool_warned in
3284 yes:)
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3287 ac_tool_warned=yes ;;
3288 esac
3289     CC=$ac_ct_CC
3290   fi
3291 fi
3292
3293 fi
3294
3295
3296 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error $? "no acceptable C compiler found in \$PATH
3299 See \`config.log' for more details" "$LINENO" 5; }
3300
3301 # Provide some information about the compiler.
3302 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3303 set X $ac_compile
3304 ac_compiler=$2
3305 for ac_option in --version -v -V -qversion; do
3306   { { ac_try="$ac_compiler $ac_option >&5"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3314   ac_status=$?
3315   if test -s conftest.err; then
3316     sed '10a\
3317 ... rest of stderr output deleted ...
3318          10q' conftest.err >conftest.er1
3319     cat conftest.er1 >&5
3320   fi
3321   rm -f conftest.er1 conftest.err
3322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323   test $ac_status = 0; }
3324 done
3325
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h.  */
3328
3329 int
3330 main ()
3331 {
3332
3333   ;
3334   return 0;
3335 }
3336 _ACEOF
3337 ac_clean_files_save=$ac_clean_files
3338 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3339 # Try to create an executable without -o first, disregard a.out.
3340 # It will help us diagnose broken compilers, and finding out an intuition
3341 # of exeext.
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3343 $as_echo_n "checking whether the C compiler works... " >&6; }
3344 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3345
3346 # The possible output files:
3347 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3348
3349 ac_rmfiles=
3350 for ac_file in $ac_files
3351 do
3352   case $ac_file in
3353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3355   esac
3356 done
3357 rm -f $ac_rmfiles
3358
3359 if { { ac_try="$ac_link_default"
3360 case "(($ac_try" in
3361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362   *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366   (eval "$ac_link_default") 2>&5
3367   ac_status=$?
3368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369   test $ac_status = 0; }; then :
3370   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3372 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3373 # so that the user can short-circuit this test for compilers unknown to
3374 # Autoconf.
3375 for ac_file in $ac_files ''
3376 do
3377   test -f "$ac_file" || continue
3378   case $ac_file in
3379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3380         ;;
3381     [ab].out )
3382         # We found the default executable, but exeext='' is most
3383         # certainly right.
3384         break;;
3385     *.* )
3386         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3387         then :; else
3388            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3389         fi
3390         # We set ac_cv_exeext here because the later test for it is not
3391         # safe: cross compilers may not add the suffix if given an `-o'
3392         # argument, so we may need to know it at that point already.
3393         # Even if this section looks crufty: it has the advantage of
3394         # actually working.
3395         break;;
3396     * )
3397         break;;
3398   esac
3399 done
3400 test "$ac_cv_exeext" = no && ac_cv_exeext=
3401
3402 else
3403   ac_file=''
3404 fi
3405 if test -z "$ac_file"; then :
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error 77 "C compiler cannot create executables
3414 See \`config.log' for more details" "$LINENO" 5; }
3415 else
3416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3417 $as_echo "yes" >&6; }
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3420 $as_echo_n "checking for C compiler default output file name... " >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3422 $as_echo "$ac_file" >&6; }
3423 ac_exeext=$ac_cv_exeext
3424
3425 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3426 ac_clean_files=$ac_clean_files_save
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3428 $as_echo_n "checking for suffix of executables... " >&6; }
3429 if { { ac_try="$ac_link"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436   (eval "$ac_link") 2>&5
3437   ac_status=$?
3438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439   test $ac_status = 0; }; then :
3440   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3441 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3442 # work properly (i.e., refer to `conftest.exe'), while it won't with
3443 # `rm'.
3444 for ac_file in conftest.exe conftest conftest.*; do
3445   test -f "$ac_file" || continue
3446   case $ac_file in
3447     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3448     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449           break;;
3450     * ) break;;
3451   esac
3452 done
3453 else
3454   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details" "$LINENO" 5; }
3458 fi
3459 rm -f conftest conftest$ac_cv_exeext
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3461 $as_echo "$ac_cv_exeext" >&6; }
3462
3463 rm -f conftest.$ac_ext
3464 EXEEXT=$ac_cv_exeext
3465 ac_exeext=$EXEEXT
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468 #include <stdio.h>
3469 int
3470 main ()
3471 {
3472 FILE *f = fopen ("conftest.out", "w");
3473  return ferror (f) || fclose (f) != 0;
3474
3475   ;
3476   return 0;
3477 }
3478 _ACEOF
3479 ac_clean_files="$ac_clean_files conftest.out"
3480 # Check that the compiler produces executables we can run.  If not, either
3481 # the compiler is broken, or we cross compile.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3483 $as_echo_n "checking whether we are cross compiling... " >&6; }
3484 if test "$cross_compiling" != yes; then
3485   { { ac_try="$ac_link"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492   (eval "$ac_link") 2>&5
3493   ac_status=$?
3494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495   test $ac_status = 0; }
3496   if { ac_try='./conftest$ac_cv_exeext'
3497   { { case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503   (eval "$ac_try") 2>&5
3504   ac_status=$?
3505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506   test $ac_status = 0; }; }; then
3507     cross_compiling=no
3508   else
3509     if test "$cross_compiling" = maybe; then
3510         cross_compiling=yes
3511     else
3512         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 as_fn_error $? "cannot run C compiled programs.
3515 If you meant to cross compile, use \`--host'.
3516 See \`config.log' for more details" "$LINENO" 5; }
3517     fi
3518   fi
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3521 $as_echo "$cross_compiling" >&6; }
3522
3523 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3524 ac_clean_files=$ac_clean_files_save
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3526 $as_echo_n "checking for suffix of object files... " >&6; }
3527 if ${ac_cv_objext+:} false; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h.  */
3532
3533 int
3534 main ()
3535 {
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.o conftest.obj
3542 if { { ac_try="$ac_compile"
3543 case "(($ac_try" in
3544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545   *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549   (eval "$ac_compile") 2>&5
3550   ac_status=$?
3551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552   test $ac_status = 0; }; then :
3553   for ac_file in conftest.o conftest.obj conftest.*; do
3554   test -f "$ac_file" || continue;
3555   case $ac_file in
3556     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3557     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3558        break;;
3559   esac
3560 done
3561 else
3562   $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error $? "cannot compute suffix of object files: cannot compile
3568 See \`config.log' for more details" "$LINENO" 5; }
3569 fi
3570 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3573 $as_echo "$ac_cv_objext" >&6; }
3574 OBJEXT=$ac_cv_objext
3575 ac_objext=$OBJEXT
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3577 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3578 if ${ac_cv_c_compiler_gnu+:} false; then :
3579   $as_echo_n "(cached) " >&6
3580 else
3581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h.  */
3583
3584 int
3585 main ()
3586 {
3587 #ifndef __GNUC__
3588        choke me
3589 #endif
3590
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596   ac_compiler_gnu=yes
3597 else
3598   ac_compiler_gnu=no
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3602
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3605 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3606 if test $ac_compiler_gnu = yes; then
3607   GCC=yes
3608 else
3609   GCC=
3610 fi
3611 ac_test_CFLAGS=${CFLAGS+set}
3612 ac_save_CFLAGS=$CFLAGS
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3614 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3615 if ${ac_cv_prog_cc_g+:} false; then :
3616   $as_echo_n "(cached) " >&6
3617 else
3618   ac_save_c_werror_flag=$ac_c_werror_flag
3619    ac_c_werror_flag=yes
3620    ac_cv_prog_cc_g=no
3621    CFLAGS="-g"
3622    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h.  */
3624
3625 int
3626 main ()
3627 {
3628
3629   ;
3630   return 0;
3631 }
3632 _ACEOF
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634   ac_cv_prog_cc_g=yes
3635 else
3636   CFLAGS=""
3637       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h.  */
3639
3640 int
3641 main ()
3642 {
3643
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649
3650 else
3651   ac_c_werror_flag=$ac_save_c_werror_flag
3652          CFLAGS="-g"
3653          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h.  */
3655
3656 int
3657 main ()
3658 {
3659
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 if ac_fn_c_try_compile "$LINENO"; then :
3665   ac_cv_prog_cc_g=yes
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 fi
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672    ac_c_werror_flag=$ac_save_c_werror_flag
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3675 $as_echo "$ac_cv_prog_cc_g" >&6; }
3676 if test "$ac_test_CFLAGS" = set; then
3677   CFLAGS=$ac_save_CFLAGS
3678 elif test $ac_cv_prog_cc_g = yes; then
3679   if test "$GCC" = yes; then
3680     CFLAGS="-g -O2"
3681   else
3682     CFLAGS="-g"
3683   fi
3684 else
3685   if test "$GCC" = yes; then
3686     CFLAGS="-O2"
3687   else
3688     CFLAGS=
3689   fi
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3692 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3693 if ${ac_cv_prog_cc_c89+:} false; then :
3694   $as_echo_n "(cached) " >&6
3695 else
3696   ac_cv_prog_cc_c89=no
3697 ac_save_CC=$CC
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h.  */
3700 #include <stdarg.h>
3701 #include <stdio.h>
3702 struct stat;
3703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3704 struct buf { int x; };
3705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3706 static char *e (p, i)
3707      char **p;
3708      int i;
3709 {
3710   return p[i];
3711 }
3712 static char *f (char * (*g) (char **, int), char **p, ...)
3713 {
3714   char *s;
3715   va_list v;
3716   va_start (v,p);
3717   s = g (p, va_arg (v,int));
3718   va_end (v);
3719   return s;
3720 }
3721
3722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3723    function prototypes and stuff, but not '\xHH' hex character constants.
3724    These don't provoke an error unfortunately, instead are silently treated
3725    as 'x'.  The following induces an error, until -std is added to get
3726    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3727    array size at least.  It's necessary to write '\x00'==0 to get something
3728    that's true only with -std.  */
3729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3730
3731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3732    inside strings and character constants.  */
3733 #define FOO(x) 'x'
3734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3735
3736 int test (int i, double x);
3737 struct s1 {int (*f) (int a);};
3738 struct s2 {int (*f) (double a);};
3739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3740 int argc;
3741 char **argv;
3742 int
3743 main ()
3744 {
3745 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3746   ;
3747   return 0;
3748 }
3749 _ACEOF
3750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3751         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3752 do
3753   CC="$ac_save_CC $ac_arg"
3754   if ac_fn_c_try_compile "$LINENO"; then :
3755   ac_cv_prog_cc_c89=$ac_arg
3756 fi
3757 rm -f core conftest.err conftest.$ac_objext
3758   test "x$ac_cv_prog_cc_c89" != "xno" && break
3759 done
3760 rm -f conftest.$ac_ext
3761 CC=$ac_save_CC
3762
3763 fi
3764 # AC_CACHE_VAL
3765 case "x$ac_cv_prog_cc_c89" in
3766   x)
3767     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3768 $as_echo "none needed" >&6; } ;;
3769   xno)
3770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3771 $as_echo "unsupported" >&6; } ;;
3772   *)
3773     CC="$CC $ac_cv_prog_cc_c89"
3774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3776 esac
3777 if test "x$ac_cv_prog_cc_c89" != xno; then :
3778
3779 fi
3780
3781 ac_ext=c
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3793 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3794 if ${am_cv_prog_cc_c_o+:} false; then :
3795   $as_echo_n "(cached) " >&6
3796 else
3797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h.  */
3799
3800 int
3801 main ()
3802 {
3803
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808   # Make sure it works both with $CC and with simple cc.
3809   # Following AC_PROG_CC_C_O, we do the test twice because some
3810   # compilers refuse to overwrite an existing .o file with -o,
3811   # though they will create one.
3812   am_cv_prog_cc_c_o=yes
3813   for am_i in 1 2; do
3814     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3815    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3816    ac_status=$?
3817    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818    (exit $ac_status); } \
3819          && test -f conftest2.$ac_objext; then
3820       : OK
3821     else
3822       am_cv_prog_cc_c_o=no
3823       break
3824     fi
3825   done
3826   rm -f core conftest*
3827   unset am_i
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3830 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3831 if test "$am_cv_prog_cc_c_o" != yes; then
3832    # Losing compiler, so override with the script.
3833    # FIXME: It is wrong to rewrite CC.
3834    # But if we don't then we get into trouble of one sort or another.
3835    # A longer-term fix would be to have automake use am__CC in this case,
3836    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3837    CC="$am_aux_dir/compile $CC"
3838 fi
3839 ac_ext=c
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844
3845
3846 depcc="$CC"   am_compiler_list=
3847
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3849 $as_echo_n "checking dependency style of $depcc... " >&6; }
3850 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3851   $as_echo_n "(cached) " >&6
3852 else
3853   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3854   # We make a subdir and do the tests there.  Otherwise we can end up
3855   # making bogus files that we don't know about and never remove.  For
3856   # instance it was reported that on HP-UX the gcc test will end up
3857   # making a dummy file named 'D' -- because '-MD' means "put the output
3858   # in D".
3859   rm -rf conftest.dir
3860   mkdir conftest.dir
3861   # Copy depcomp to subdir because otherwise we won't find it if we're
3862   # using a relative directory.
3863   cp "$am_depcomp" conftest.dir
3864   cd conftest.dir
3865   # We will build objects and dependencies in a subdirectory because
3866   # it helps to detect inapplicable dependency modes.  For instance
3867   # both Tru64's cc and ICC support -MD to output dependencies as a
3868   # side effect of compilation, but ICC will put the dependencies in
3869   # the current directory while Tru64 will put them in the object
3870   # directory.
3871   mkdir sub
3872
3873   am_cv_CC_dependencies_compiler_type=none
3874   if test "$am_compiler_list" = ""; then
3875      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3876   fi
3877   am__universal=false
3878   case " $depcc " in #(
3879      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3880      esac
3881
3882   for depmode in $am_compiler_list; do
3883     # Setup a source with many dependencies, because some compilers
3884     # like to wrap large dependency lists on column 80 (with \), and
3885     # we should not choose a depcomp mode which is confused by this.
3886     #
3887     # We need to recreate these files for each test, as the compiler may
3888     # overwrite some of them when testing with obscure command lines.
3889     # This happens at least with the AIX C compiler.
3890     : > sub/conftest.c
3891     for i in 1 2 3 4 5 6; do
3892       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3893       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3894       # Solaris 10 /bin/sh.
3895       echo '/* dummy */' > sub/conftst$i.h
3896     done
3897     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3898
3899     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3900     # mode.  It turns out that the SunPro C++ compiler does not properly
3901     # handle '-M -o', and we need to detect this.  Also, some Intel
3902     # versions had trouble with output in subdirs.
3903     am__obj=sub/conftest.${OBJEXT-o}
3904     am__minus_obj="-o $am__obj"
3905     case $depmode in
3906     gcc)
3907       # This depmode causes a compiler race in universal mode.
3908       test "$am__universal" = false || continue
3909       ;;
3910     nosideeffect)
3911       # After this tag, mechanisms are not by side-effect, so they'll
3912       # only be used when explicitly requested.
3913       if test "x$enable_dependency_tracking" = xyes; then
3914         continue
3915       else
3916         break
3917       fi
3918       ;;
3919     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3920       # This compiler won't grok '-c -o', but also, the minuso test has
3921       # not run yet.  These depmodes are late enough in the game, and
3922       # so weak that their functioning should not be impacted.
3923       am__obj=conftest.${OBJEXT-o}
3924       am__minus_obj=
3925       ;;
3926     none) break ;;
3927     esac
3928     if depmode=$depmode \
3929        source=sub/conftest.c object=$am__obj \
3930        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3931        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3932          >/dev/null 2>conftest.err &&
3933        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3934        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3935        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3936        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3937       # icc doesn't choke on unknown options, it will just issue warnings
3938       # or remarks (even with -Werror).  So we grep stderr for any message
3939       # that says an option was ignored or not supported.
3940       # When given -MP, icc 7.0 and 7.1 complain thusly:
3941       #   icc: Command line warning: ignoring option '-M'; no argument required
3942       # The diagnosis changed in icc 8.0:
3943       #   icc: Command line remark: option '-MP' not supported
3944       if (grep 'ignoring option' conftest.err ||
3945           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3946         am_cv_CC_dependencies_compiler_type=$depmode
3947         break
3948       fi
3949     fi
3950   done
3951
3952   cd ..
3953   rm -rf conftest.dir
3954 else
3955   am_cv_CC_dependencies_compiler_type=none
3956 fi
3957
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3960 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3961 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3962
3963  if
3964   test "x$enable_dependency_tracking" != xno \
3965   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3966   am__fastdepCC_TRUE=
3967   am__fastdepCC_FALSE='#'
3968 else
3969   am__fastdepCC_TRUE='#'
3970   am__fastdepCC_FALSE=
3971 fi
3972
3973
3974
3975 if test -n "$ac_tool_prefix"; then
3976   for ac_prog in ar lib "link -lib"
3977   do
3978     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_AR+:} false; then :
3983   $as_echo_n "(cached) " >&6
3984 else
3985   if test -n "$AR"; then
3986   ac_cv_prog_AR="$AR" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993     for ac_exec_ext in '' $ac_executable_extensions; do
3994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000   done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 AR=$ac_cv_prog_AR
4006 if test -n "$AR"; then
4007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4008 $as_echo "$AR" >&6; }
4009 else
4010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 fi
4013
4014
4015     test -n "$AR" && break
4016   done
4017 fi
4018 if test -z "$AR"; then
4019   ac_ct_AR=$AR
4020   for ac_prog in ar lib "link -lib"
4021 do
4022   # Extract the first word of "$ac_prog", so it can be a program name with args.
4023 set dummy $ac_prog; ac_word=$2
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4027   $as_echo_n "(cached) " >&6
4028 else
4029   if test -n "$ac_ct_AR"; then
4030   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037     for ac_exec_ext in '' $ac_executable_extensions; do
4038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039     ac_cv_prog_ac_ct_AR="$ac_prog"
4040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041     break 2
4042   fi
4043 done
4044   done
4045 IFS=$as_save_IFS
4046
4047 fi
4048 fi
4049 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4050 if test -n "$ac_ct_AR"; then
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4052 $as_echo "$ac_ct_AR" >&6; }
4053 else
4054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4056 fi
4057
4058
4059   test -n "$ac_ct_AR" && break
4060 done
4061
4062   if test "x$ac_ct_AR" = x; then
4063     AR="false"
4064   else
4065     case $cross_compiling:$ac_tool_warned in
4066 yes:)
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069 ac_tool_warned=yes ;;
4070 esac
4071     AR=$ac_ct_AR
4072   fi
4073 fi
4074
4075 : ${AR=ar}
4076
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4078 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4079 if ${am_cv_ar_interface+:} false; then :
4080   $as_echo_n "(cached) " >&6
4081 else
4082   ac_ext=c
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087
4088    am_cv_ar_interface=ar
4089    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h.  */
4091 int some_variable = 0;
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4095       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4096   (eval $am_ar_try) 2>&5
4097   ac_status=$?
4098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099   test $ac_status = 0; }
4100       if test "$ac_status" -eq 0; then
4101         am_cv_ar_interface=ar
4102       else
4103         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4104         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4105   (eval $am_ar_try) 2>&5
4106   ac_status=$?
4107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108   test $ac_status = 0; }
4109         if test "$ac_status" -eq 0; then
4110           am_cv_ar_interface=lib
4111         else
4112           am_cv_ar_interface=unknown
4113         fi
4114       fi
4115       rm -f conftest.lib libconftest.a
4116
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119    ac_ext=c
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4127 $as_echo "$am_cv_ar_interface" >&6; }
4128
4129 case $am_cv_ar_interface in
4130 ar)
4131   ;;
4132 lib)
4133   # Microsoft lib, so override with the ar-lib wrapper script.
4134   # FIXME: It is wrong to rewrite AR.
4135   # But if we don't then we get into trouble of one sort or another.
4136   # A longer-term fix would be to have automake use am__AR in this case,
4137   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4138   # similar.
4139   AR="$am_aux_dir/ar-lib $AR"
4140   ;;
4141 unknown)
4142   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4143   ;;
4144 esac
4145
4146
4147 # OpenFst does not throw exceptions, so we do not generate exception handling
4148 # code. However, users are free to re-enable exception handling.
4149 # OpenFst assumes char is unsigned; -fsigned-char is likely unsafe.
4150 CPPFLAGS="$CPPFLAGS -fno-exceptions -funsigned-char"
4151 CXXFLAGS="$CXXFLAGS -std=c++11"
4152
4153 ac_ext=cpp
4154 ac_cpp='$CXXCPP $CPPFLAGS'
4155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4158 if test -z "$CXX"; then
4159   if test -n "$CCC"; then
4160     CXX=$CCC
4161   else
4162     if test -n "$ac_tool_prefix"; then
4163   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4164   do
4165     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_CXX+:} false; then :
4170   $as_echo_n "(cached) " >&6
4171 else
4172   if test -n "$CXX"; then
4173   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178   IFS=$as_save_IFS
4179   test -z "$as_dir" && as_dir=.
4180     for ac_exec_ext in '' $ac_executable_extensions; do
4181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184     break 2
4185   fi
4186 done
4187   done
4188 IFS=$as_save_IFS
4189
4190 fi
4191 fi
4192 CXX=$ac_cv_prog_CXX
4193 if test -n "$CXX"; then
4194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4195 $as_echo "$CXX" >&6; }
4196 else
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4200
4201
4202     test -n "$CXX" && break
4203   done
4204 fi
4205 if test -z "$CXX"; then
4206   ac_ct_CXX=$CXX
4207   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4208 do
4209   # Extract the first word of "$ac_prog", so it can be a program name with args.
4210 set dummy $ac_prog; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4214   $as_echo_n "(cached) " >&6
4215 else
4216   if test -n "$ac_ct_CXX"; then
4217   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222   IFS=$as_save_IFS
4223   test -z "$as_dir" && as_dir=.
4224     for ac_exec_ext in '' $ac_executable_extensions; do
4225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226     ac_cv_prog_ac_ct_CXX="$ac_prog"
4227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228     break 2
4229   fi
4230 done
4231   done
4232 IFS=$as_save_IFS
4233
4234 fi
4235 fi
4236 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4237 if test -n "$ac_ct_CXX"; then
4238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4239 $as_echo "$ac_ct_CXX" >&6; }
4240 else
4241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4244
4245
4246   test -n "$ac_ct_CXX" && break
4247 done
4248
4249   if test "x$ac_ct_CXX" = x; then
4250     CXX="g++"
4251   else
4252     case $cross_compiling:$ac_tool_warned in
4253 yes:)
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4256 ac_tool_warned=yes ;;
4257 esac
4258     CXX=$ac_ct_CXX
4259   fi
4260 fi
4261
4262   fi
4263 fi
4264 # Provide some information about the compiler.
4265 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4266 set X $ac_compile
4267 ac_compiler=$2
4268 for ac_option in --version -v -V -qversion; do
4269   { { ac_try="$ac_compiler $ac_option >&5"
4270 case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4277   ac_status=$?
4278   if test -s conftest.err; then
4279     sed '10a\
4280 ... rest of stderr output deleted ...
4281          10q' conftest.err >conftest.er1
4282     cat conftest.er1 >&5
4283   fi
4284   rm -f conftest.er1 conftest.err
4285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286   test $ac_status = 0; }
4287 done
4288
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4290 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4291 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4292   $as_echo_n "(cached) " >&6
4293 else
4294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h.  */
4296
4297 int
4298 main ()
4299 {
4300 #ifndef __GNUC__
4301        choke me
4302 #endif
4303
4304   ;
4305   return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_cxx_try_compile "$LINENO"; then :
4309   ac_compiler_gnu=yes
4310 else
4311   ac_compiler_gnu=no
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4315
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4318 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4319 if test $ac_compiler_gnu = yes; then
4320   GXX=yes
4321 else
4322   GXX=
4323 fi
4324 ac_test_CXXFLAGS=${CXXFLAGS+set}
4325 ac_save_CXXFLAGS=$CXXFLAGS
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4327 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4328 if ${ac_cv_prog_cxx_g+:} false; then :
4329   $as_echo_n "(cached) " >&6
4330 else
4331   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4332    ac_cxx_werror_flag=yes
4333    ac_cv_prog_cxx_g=no
4334    CXXFLAGS="-g"
4335    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h.  */
4337
4338 int
4339 main ()
4340 {
4341
4342   ;
4343   return 0;
4344 }
4345 _ACEOF
4346 if ac_fn_cxx_try_compile "$LINENO"; then :
4347   ac_cv_prog_cxx_g=yes
4348 else
4349   CXXFLAGS=""
4350       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h.  */
4352
4353 int
4354 main ()
4355 {
4356
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_cxx_try_compile "$LINENO"; then :
4362
4363 else
4364   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4365          CXXFLAGS="-g"
4366          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h.  */
4368
4369 int
4370 main ()
4371 {
4372
4373   ;
4374   return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_cxx_try_compile "$LINENO"; then :
4378   ac_cv_prog_cxx_g=yes
4379 fi
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 fi
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4388 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4389 if test "$ac_test_CXXFLAGS" = set; then
4390   CXXFLAGS=$ac_save_CXXFLAGS
4391 elif test $ac_cv_prog_cxx_g = yes; then
4392   if test "$GXX" = yes; then
4393     CXXFLAGS="-g -O2"
4394   else
4395     CXXFLAGS="-g"
4396   fi
4397 else
4398   if test "$GXX" = yes; then
4399     CXXFLAGS="-O2"
4400   else
4401     CXXFLAGS=
4402   fi
4403 fi
4404 ac_ext=c
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410 depcc="$CXX"  am_compiler_list=
4411
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4413 $as_echo_n "checking dependency style of $depcc... " >&6; }
4414 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4415   $as_echo_n "(cached) " >&6
4416 else
4417   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4418   # We make a subdir and do the tests there.  Otherwise we can end up
4419   # making bogus files that we don't know about and never remove.  For
4420   # instance it was reported that on HP-UX the gcc test will end up
4421   # making a dummy file named 'D' -- because '-MD' means "put the output
4422   # in D".
4423   rm -rf conftest.dir
4424   mkdir conftest.dir
4425   # Copy depcomp to subdir because otherwise we won't find it if we're
4426   # using a relative directory.
4427   cp "$am_depcomp" conftest.dir
4428   cd conftest.dir
4429   # We will build objects and dependencies in a subdirectory because
4430   # it helps to detect inapplicable dependency modes.  For instance
4431   # both Tru64's cc and ICC support -MD to output dependencies as a
4432   # side effect of compilation, but ICC will put the dependencies in
4433   # the current directory while Tru64 will put them in the object
4434   # directory.
4435   mkdir sub
4436
4437   am_cv_CXX_dependencies_compiler_type=none
4438   if test "$am_compiler_list" = ""; then
4439      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4440   fi
4441   am__universal=false
4442   case " $depcc " in #(
4443      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4444      esac
4445
4446   for depmode in $am_compiler_list; do
4447     # Setup a source with many dependencies, because some compilers
4448     # like to wrap large dependency lists on column 80 (with \), and
4449     # we should not choose a depcomp mode which is confused by this.
4450     #
4451     # We need to recreate these files for each test, as the compiler may
4452     # overwrite some of them when testing with obscure command lines.
4453     # This happens at least with the AIX C compiler.
4454     : > sub/conftest.c
4455     for i in 1 2 3 4 5 6; do
4456       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4457       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4458       # Solaris 10 /bin/sh.
4459       echo '/* dummy */' > sub/conftst$i.h
4460     done
4461     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4462
4463     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4464     # mode.  It turns out that the SunPro C++ compiler does not properly
4465     # handle '-M -o', and we need to detect this.  Also, some Intel
4466     # versions had trouble with output in subdirs.
4467     am__obj=sub/conftest.${OBJEXT-o}
4468     am__minus_obj="-o $am__obj"
4469     case $depmode in
4470     gcc)
4471       # This depmode causes a compiler race in universal mode.
4472       test "$am__universal" = false || continue
4473       ;;
4474     nosideeffect)
4475       # After this tag, mechanisms are not by side-effect, so they'll
4476       # only be used when explicitly requested.
4477       if test "x$enable_dependency_tracking" = xyes; then
4478         continue
4479       else
4480         break
4481       fi
4482       ;;
4483     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4484       # This compiler won't grok '-c -o', but also, the minuso test has
4485       # not run yet.  These depmodes are late enough in the game, and
4486       # so weak that their functioning should not be impacted.
4487       am__obj=conftest.${OBJEXT-o}
4488       am__minus_obj=
4489       ;;
4490     none) break ;;
4491     esac
4492     if depmode=$depmode \
4493        source=sub/conftest.c object=$am__obj \
4494        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4495        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4496          >/dev/null 2>conftest.err &&
4497        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4498        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4499        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4500        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4501       # icc doesn't choke on unknown options, it will just issue warnings
4502       # or remarks (even with -Werror).  So we grep stderr for any message
4503       # that says an option was ignored or not supported.
4504       # When given -MP, icc 7.0 and 7.1 complain thusly:
4505       #   icc: Command line warning: ignoring option '-M'; no argument required
4506       # The diagnosis changed in icc 8.0:
4507       #   icc: Command line remark: option '-MP' not supported
4508       if (grep 'ignoring option' conftest.err ||
4509           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4510         am_cv_CXX_dependencies_compiler_type=$depmode
4511         break
4512       fi
4513     fi
4514   done
4515
4516   cd ..
4517   rm -rf conftest.dir
4518 else
4519   am_cv_CXX_dependencies_compiler_type=none
4520 fi
4521
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4524 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4525 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4526
4527  if
4528   test "x$enable_dependency_tracking" != xno \
4529   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4530   am__fastdepCXX_TRUE=
4531   am__fastdepCXX_FALSE='#'
4532 else
4533   am__fastdepCXX_TRUE='#'
4534   am__fastdepCXX_FALSE=
4535 fi
4536
4537
4538 # Check whether --enable-static was given.
4539 if test "${enable_static+set}" = set; then :
4540   enableval=$enable_static; p=${PACKAGE-default}
4541     case $enableval in
4542     yes) enable_static=yes ;;
4543     no) enable_static=no ;;
4544     *)
4545      enable_static=no
4546       # Look at the argument we got.  We use all the common list separators.
4547       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4548       for pkg in $enableval; do
4549         IFS="$lt_save_ifs"
4550         if test "X$pkg" = "X$p"; then
4551           enable_static=yes
4552         fi
4553       done
4554       IFS="$lt_save_ifs"
4555       ;;
4556     esac
4557 else
4558   enable_static=no
4559 fi
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569 case `pwd` in
4570   *\ * | *\     *)
4571     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4572 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4573 esac
4574
4575
4576
4577 macro_version='2.4.2'
4578 macro_revision='1.3337'
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592 ltmain="$ac_aux_dir/ltmain.sh"
4593
4594 # Make sure we can run config.sub.
4595 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4596   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4599 $as_echo_n "checking build system type... " >&6; }
4600 if ${ac_cv_build+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   ac_build_alias=$build_alias
4604 test "x$ac_build_alias" = x &&
4605   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4606 test "x$ac_build_alias" = x &&
4607   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4608 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4609   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4610
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4613 $as_echo "$ac_cv_build" >&6; }
4614 case $ac_cv_build in
4615 *-*-*) ;;
4616 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4617 esac
4618 build=$ac_cv_build
4619 ac_save_IFS=$IFS; IFS='-'
4620 set x $ac_cv_build
4621 shift
4622 build_cpu=$1
4623 build_vendor=$2
4624 shift; shift
4625 # Remember, the first character of IFS is used to create $*,
4626 # except with old shells:
4627 build_os=$*
4628 IFS=$ac_save_IFS
4629 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4630
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4633 $as_echo_n "checking host system type... " >&6; }
4634 if ${ac_cv_host+:} false; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   if test "x$host_alias" = x; then
4638   ac_cv_host=$ac_cv_build
4639 else
4640   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4641     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4642 fi
4643
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4646 $as_echo "$ac_cv_host" >&6; }
4647 case $ac_cv_host in
4648 *-*-*) ;;
4649 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4650 esac
4651 host=$ac_cv_host
4652 ac_save_IFS=$IFS; IFS='-'
4653 set x $ac_cv_host
4654 shift
4655 host_cpu=$1
4656 host_vendor=$2
4657 shift; shift
4658 # Remember, the first character of IFS is used to create $*,
4659 # except with old shells:
4660 host_os=$*
4661 IFS=$ac_save_IFS
4662 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4663
4664
4665 # Backslashify metacharacters that are still active within
4666 # double-quoted strings.
4667 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4668
4669 # Same as above, but do not quote variable references.
4670 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4671
4672 # Sed substitution to delay expansion of an escaped shell variable in a
4673 # double_quote_subst'ed string.
4674 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4675
4676 # Sed substitution to delay expansion of an escaped single quote.
4677 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4678
4679 # Sed substitution to avoid accidental globbing in evaled expressions
4680 no_glob_subst='s/\*/\\\*/g'
4681
4682 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4683 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4687 $as_echo_n "checking how to print strings... " >&6; }
4688 # Test print first, because it will be a builtin if present.
4689 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4690    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4691   ECHO='print -r --'
4692 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4693   ECHO='printf %s\n'
4694 else
4695   # Use this function as a fallback that always works.
4696   func_fallback_echo ()
4697   {
4698     eval 'cat <<_LTECHO_EOF
4699 $1
4700 _LTECHO_EOF'
4701   }
4702   ECHO='func_fallback_echo'
4703 fi
4704
4705 # func_echo_all arg...
4706 # Invoke $ECHO with all args, space-separated.
4707 func_echo_all ()
4708 {
4709     $ECHO ""
4710 }
4711
4712 case "$ECHO" in
4713   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4714 $as_echo "printf" >&6; } ;;
4715   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4716 $as_echo "print -r" >&6; } ;;
4717   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4718 $as_echo "cat" >&6; } ;;
4719 esac
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4735 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4736 if ${ac_cv_path_SED+:} false; then :
4737   $as_echo_n "(cached) " >&6
4738 else
4739             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4740      for ac_i in 1 2 3 4 5 6 7; do
4741        ac_script="$ac_script$as_nl$ac_script"
4742      done
4743      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4744      { ac_script=; unset ac_script;}
4745      if test -z "$SED"; then
4746   ac_path_SED_found=false
4747   # Loop through the user's path and test for each of PROGNAME-LIST
4748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753     for ac_prog in sed gsed; do
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4756       as_fn_executable_p "$ac_path_SED" || continue
4757 # Check for GNU ac_path_SED and select it if it is found.
4758   # Check for GNU $ac_path_SED
4759 case `"$ac_path_SED" --version 2>&1` in
4760 *GNU*)
4761   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4762 *)
4763   ac_count=0
4764   $as_echo_n 0123456789 >"conftest.in"
4765   while :
4766   do
4767     cat "conftest.in" "conftest.in" >"conftest.tmp"
4768     mv "conftest.tmp" "conftest.in"
4769     cp "conftest.in" "conftest.nl"
4770     $as_echo '' >> "conftest.nl"
4771     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4772     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4773     as_fn_arith $ac_count + 1 && ac_count=$as_val
4774     if test $ac_count -gt ${ac_path_SED_max-0}; then
4775       # Best one so far, save it but keep looking for a better one
4776       ac_cv_path_SED="$ac_path_SED"
4777       ac_path_SED_max=$ac_count
4778     fi
4779     # 10*(2^10) chars as input seems more than enough
4780     test $ac_count -gt 10 && break
4781   done
4782   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4783 esac
4784
4785       $ac_path_SED_found && break 3
4786     done
4787   done
4788   done
4789 IFS=$as_save_IFS
4790   if test -z "$ac_cv_path_SED"; then
4791     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4792   fi
4793 else
4794   ac_cv_path_SED=$SED
4795 fi
4796
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4799 $as_echo "$ac_cv_path_SED" >&6; }
4800  SED="$ac_cv_path_SED"
4801   rm -f conftest.sed
4802
4803 test -z "$SED" && SED=sed
4804 Xsed="$SED -e 1s/^X//"
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4817 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4818 if ${ac_cv_path_GREP+:} false; then :
4819   $as_echo_n "(cached) " >&6
4820 else
4821   if test -z "$GREP"; then
4822   ac_path_GREP_found=false
4823   # Loop through the user's path and test for each of PROGNAME-LIST
4824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4826 do
4827   IFS=$as_save_IFS
4828   test -z "$as_dir" && as_dir=.
4829     for ac_prog in grep ggrep; do
4830     for ac_exec_ext in '' $ac_executable_extensions; do
4831       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4832       as_fn_executable_p "$ac_path_GREP" || continue
4833 # Check for GNU ac_path_GREP and select it if it is found.
4834   # Check for GNU $ac_path_GREP
4835 case `"$ac_path_GREP" --version 2>&1` in
4836 *GNU*)
4837   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4838 *)
4839   ac_count=0
4840   $as_echo_n 0123456789 >"conftest.in"
4841   while :
4842   do
4843     cat "conftest.in" "conftest.in" >"conftest.tmp"
4844     mv "conftest.tmp" "conftest.in"
4845     cp "conftest.in" "conftest.nl"
4846     $as_echo 'GREP' >> "conftest.nl"
4847     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849     as_fn_arith $ac_count + 1 && ac_count=$as_val
4850     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4851       # Best one so far, save it but keep looking for a better one
4852       ac_cv_path_GREP="$ac_path_GREP"
4853       ac_path_GREP_max=$ac_count
4854     fi
4855     # 10*(2^10) chars as input seems more than enough
4856     test $ac_count -gt 10 && break
4857   done
4858   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4859 esac
4860
4861       $ac_path_GREP_found && break 3
4862     done
4863   done
4864   done
4865 IFS=$as_save_IFS
4866   if test -z "$ac_cv_path_GREP"; then
4867     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4868   fi
4869 else
4870   ac_cv_path_GREP=$GREP
4871 fi
4872
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4875 $as_echo "$ac_cv_path_GREP" >&6; }
4876  GREP="$ac_cv_path_GREP"
4877
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4880 $as_echo_n "checking for egrep... " >&6; }
4881 if ${ac_cv_path_EGREP+:} false; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4885    then ac_cv_path_EGREP="$GREP -E"
4886    else
4887      if test -z "$EGREP"; then
4888   ac_path_EGREP_found=false
4889   # Loop through the user's path and test for each of PROGNAME-LIST
4890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4892 do
4893   IFS=$as_save_IFS
4894   test -z "$as_dir" && as_dir=.
4895     for ac_prog in egrep; do
4896     for ac_exec_ext in '' $ac_executable_extensions; do
4897       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4898       as_fn_executable_p "$ac_path_EGREP" || continue
4899 # Check for GNU ac_path_EGREP and select it if it is found.
4900   # Check for GNU $ac_path_EGREP
4901 case `"$ac_path_EGREP" --version 2>&1` in
4902 *GNU*)
4903   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4904 *)
4905   ac_count=0
4906   $as_echo_n 0123456789 >"conftest.in"
4907   while :
4908   do
4909     cat "conftest.in" "conftest.in" >"conftest.tmp"
4910     mv "conftest.tmp" "conftest.in"
4911     cp "conftest.in" "conftest.nl"
4912     $as_echo 'EGREP' >> "conftest.nl"
4913     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4915     as_fn_arith $ac_count + 1 && ac_count=$as_val
4916     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4917       # Best one so far, save it but keep looking for a better one
4918       ac_cv_path_EGREP="$ac_path_EGREP"
4919       ac_path_EGREP_max=$ac_count
4920     fi
4921     # 10*(2^10) chars as input seems more than enough
4922     test $ac_count -gt 10 && break
4923   done
4924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4925 esac
4926
4927       $ac_path_EGREP_found && break 3
4928     done
4929   done
4930   done
4931 IFS=$as_save_IFS
4932   if test -z "$ac_cv_path_EGREP"; then
4933     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4934   fi
4935 else
4936   ac_cv_path_EGREP=$EGREP
4937 fi
4938
4939    fi
4940 fi
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4942 $as_echo "$ac_cv_path_EGREP" >&6; }
4943  EGREP="$ac_cv_path_EGREP"
4944
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4947 $as_echo_n "checking for fgrep... " >&6; }
4948 if ${ac_cv_path_FGREP+:} false; then :
4949   $as_echo_n "(cached) " >&6
4950 else
4951   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4952    then ac_cv_path_FGREP="$GREP -F"
4953    else
4954      if test -z "$FGREP"; then
4955   ac_path_FGREP_found=false
4956   # Loop through the user's path and test for each of PROGNAME-LIST
4957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962     for ac_prog in fgrep; do
4963     for ac_exec_ext in '' $ac_executable_extensions; do
4964       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4965       as_fn_executable_p "$ac_path_FGREP" || continue
4966 # Check for GNU ac_path_FGREP and select it if it is found.
4967   # Check for GNU $ac_path_FGREP
4968 case `"$ac_path_FGREP" --version 2>&1` in
4969 *GNU*)
4970   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4971 *)
4972   ac_count=0
4973   $as_echo_n 0123456789 >"conftest.in"
4974   while :
4975   do
4976     cat "conftest.in" "conftest.in" >"conftest.tmp"
4977     mv "conftest.tmp" "conftest.in"
4978     cp "conftest.in" "conftest.nl"
4979     $as_echo 'FGREP' >> "conftest.nl"
4980     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4981     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4982     as_fn_arith $ac_count + 1 && ac_count=$as_val
4983     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4984       # Best one so far, save it but keep looking for a better one
4985       ac_cv_path_FGREP="$ac_path_FGREP"
4986       ac_path_FGREP_max=$ac_count
4987     fi
4988     # 10*(2^10) chars as input seems more than enough
4989     test $ac_count -gt 10 && break
4990   done
4991   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4992 esac
4993
4994       $ac_path_FGREP_found && break 3
4995     done
4996   done
4997   done
4998 IFS=$as_save_IFS
4999   if test -z "$ac_cv_path_FGREP"; then
5000     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5001   fi
5002 else
5003   ac_cv_path_FGREP=$FGREP
5004 fi
5005
5006    fi
5007 fi
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5009 $as_echo "$ac_cv_path_FGREP" >&6; }
5010  FGREP="$ac_cv_path_FGREP"
5011
5012
5013 test -z "$GREP" && GREP=grep
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033 # Check whether --with-gnu-ld was given.
5034 if test "${with_gnu_ld+set}" = set; then :
5035   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5036 else
5037   with_gnu_ld=no
5038 fi
5039
5040 ac_prog=ld
5041 if test "$GCC" = yes; then
5042   # Check if gcc -print-prog-name=ld gives a path.
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5044 $as_echo_n "checking for ld used by $CC... " >&6; }
5045   case $host in
5046   *-*-mingw*)
5047     # gcc leaves a trailing carriage return which upsets mingw
5048     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5049   *)
5050     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5051   esac
5052   case $ac_prog in
5053     # Accept absolute paths.
5054     [\\/]* | ?:[\\/]*)
5055       re_direlt='/[^/][^/]*/\.\./'
5056       # Canonicalize the pathname of ld
5057       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5058       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5059         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5060       done
5061       test -z "$LD" && LD="$ac_prog"
5062       ;;
5063   "")
5064     # If it fails, then pretend we aren't using GCC.
5065     ac_prog=ld
5066     ;;
5067   *)
5068     # If it is relative, then search for the first ld in PATH.
5069     with_gnu_ld=unknown
5070     ;;
5071   esac
5072 elif test "$with_gnu_ld" = yes; then
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5074 $as_echo_n "checking for GNU ld... " >&6; }
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5077 $as_echo_n "checking for non-GNU ld... " >&6; }
5078 fi
5079 if ${lt_cv_path_LD+:} false; then :
5080   $as_echo_n "(cached) " >&6
5081 else
5082   if test -z "$LD"; then
5083   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5084   for ac_dir in $PATH; do
5085     IFS="$lt_save_ifs"
5086     test -z "$ac_dir" && ac_dir=.
5087     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5088       lt_cv_path_LD="$ac_dir/$ac_prog"
5089       # Check to see if the program is GNU ld.  I'd rather use --version,
5090       # but apparently some variants of GNU ld only accept -v.
5091       # Break only if it was the GNU/non-GNU ld that we prefer.
5092       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5093       *GNU* | *'with BFD'*)
5094         test "$with_gnu_ld" != no && break
5095         ;;
5096       *)
5097         test "$with_gnu_ld" != yes && break
5098         ;;
5099       esac
5100     fi
5101   done
5102   IFS="$lt_save_ifs"
5103 else
5104   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5105 fi
5106 fi
5107
5108 LD="$lt_cv_path_LD"
5109 if test -n "$LD"; then
5110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5111 $as_echo "$LD" >&6; }
5112 else
5113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5115 fi
5116 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5118 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5119 if ${lt_cv_prog_gnu_ld+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5123 case `$LD -v 2>&1 </dev/null` in
5124 *GNU* | *'with BFD'*)
5125   lt_cv_prog_gnu_ld=yes
5126   ;;
5127 *)
5128   lt_cv_prog_gnu_ld=no
5129   ;;
5130 esac
5131 fi
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5133 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5134 with_gnu_ld=$lt_cv_prog_gnu_ld
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5145 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5146 if ${lt_cv_path_NM+:} false; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149   if test -n "$NM"; then
5150   # Let the user override the test.
5151   lt_cv_path_NM="$NM"
5152 else
5153   lt_nm_to_check="${ac_tool_prefix}nm"
5154   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5155     lt_nm_to_check="$lt_nm_to_check nm"
5156   fi
5157   for lt_tmp_nm in $lt_nm_to_check; do
5158     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5159     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5160       IFS="$lt_save_ifs"
5161       test -z "$ac_dir" && ac_dir=.
5162       tmp_nm="$ac_dir/$lt_tmp_nm"
5163       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5164         # Check to see if the nm accepts a BSD-compat flag.
5165         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5166         #   nm: unknown option "B" ignored
5167         # Tru64's nm complains that /dev/null is an invalid object file
5168         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5169         */dev/null* | *'Invalid file or object type'*)
5170           lt_cv_path_NM="$tmp_nm -B"
5171           break
5172           ;;
5173         *)
5174           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5175           */dev/null*)
5176             lt_cv_path_NM="$tmp_nm -p"
5177             break
5178             ;;
5179           *)
5180             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5181             continue # so that we can try to find one that supports BSD flags
5182             ;;
5183           esac
5184           ;;
5185         esac
5186       fi
5187     done
5188     IFS="$lt_save_ifs"
5189   done
5190   : ${lt_cv_path_NM=no}
5191 fi
5192 fi
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5194 $as_echo "$lt_cv_path_NM" >&6; }
5195 if test "$lt_cv_path_NM" != "no"; then
5196   NM="$lt_cv_path_NM"
5197 else
5198   # Didn't find any BSD compatible name lister, look for dumpbin.
5199   if test -n "$DUMPBIN"; then :
5200     # Let the user override the test.
5201   else
5202     if test -n "$ac_tool_prefix"; then
5203   for ac_prog in dumpbin "link -dump"
5204   do
5205     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_DUMPBIN+:} false; then :
5210   $as_echo_n "(cached) " >&6
5211 else
5212   if test -n "$DUMPBIN"; then
5213   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218   IFS=$as_save_IFS
5219   test -z "$as_dir" && as_dir=.
5220     for ac_exec_ext in '' $ac_executable_extensions; do
5221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224     break 2
5225   fi
5226 done
5227   done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 DUMPBIN=$ac_cv_prog_DUMPBIN
5233 if test -n "$DUMPBIN"; then
5234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5235 $as_echo "$DUMPBIN" >&6; }
5236 else
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242     test -n "$DUMPBIN" && break
5243   done
5244 fi
5245 if test -z "$DUMPBIN"; then
5246   ac_ct_DUMPBIN=$DUMPBIN
5247   for ac_prog in dumpbin "link -dump"
5248 do
5249   # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   if test -n "$ac_ct_DUMPBIN"; then
5257   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271   done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5277 if test -n "$ac_ct_DUMPBIN"; then
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5279 $as_echo "$ac_ct_DUMPBIN" >&6; }
5280 else
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286   test -n "$ac_ct_DUMPBIN" && break
5287 done
5288
5289   if test "x$ac_ct_DUMPBIN" = x; then
5290     DUMPBIN=":"
5291   else
5292     case $cross_compiling:$ac_tool_warned in
5293 yes:)
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296 ac_tool_warned=yes ;;
5297 esac
5298     DUMPBIN=$ac_ct_DUMPBIN
5299   fi
5300 fi
5301
5302     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5303     *COFF*)
5304       DUMPBIN="$DUMPBIN -symbols"
5305       ;;
5306     *)
5307       DUMPBIN=:
5308       ;;
5309     esac
5310   fi
5311
5312   if test "$DUMPBIN" != ":"; then
5313     NM="$DUMPBIN"
5314   fi
5315 fi
5316 test -z "$NM" && NM=nm
5317
5318
5319
5320
5321
5322
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5324 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5325 if ${lt_cv_nm_interface+:} false; then :
5326   $as_echo_n "(cached) " >&6
5327 else
5328   lt_cv_nm_interface="BSD nm"
5329   echo "int some_variable = 0;" > conftest.$ac_ext
5330   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5331   (eval "$ac_compile" 2>conftest.err)
5332   cat conftest.err >&5
5333   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5334   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5335   cat conftest.err >&5
5336   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5337   cat conftest.out >&5
5338   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5339     lt_cv_nm_interface="MS dumpbin"
5340   fi
5341   rm -f conftest*
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5344 $as_echo "$lt_cv_nm_interface" >&6; }
5345
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5347 $as_echo_n "checking whether ln -s works... " >&6; }
5348 LN_S=$as_ln_s
5349 if test "$LN_S" = "ln -s"; then
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5352 else
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5354 $as_echo "no, using $LN_S" >&6; }
5355 fi
5356
5357 # find the maximum length of command line arguments
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5359 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5360 if ${lt_cv_sys_max_cmd_len+:} false; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363     i=0
5364   teststring="ABCD"
5365
5366   case $build_os in
5367   msdosdjgpp*)
5368     # On DJGPP, this test can blow up pretty badly due to problems in libc
5369     # (any single argument exceeding 2000 bytes causes a buffer overrun
5370     # during glob expansion).  Even if it were fixed, the result of this
5371     # check would be larger than it should be.
5372     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5373     ;;
5374
5375   gnu*)
5376     # Under GNU Hurd, this test is not required because there is
5377     # no limit to the length of command line arguments.
5378     # Libtool will interpret -1 as no limit whatsoever
5379     lt_cv_sys_max_cmd_len=-1;
5380     ;;
5381
5382   cygwin* | mingw* | cegcc*)
5383     # On Win9x/ME, this test blows up -- it succeeds, but takes
5384     # about 5 minutes as the teststring grows exponentially.
5385     # Worse, since 9x/ME are not pre-emptively multitasking,
5386     # you end up with a "frozen" computer, even though with patience
5387     # the test eventually succeeds (with a max line length of 256k).
5388     # Instead, let's just punt: use the minimum linelength reported by
5389     # all of the supported platforms: 8192 (on NT/2K/XP).
5390     lt_cv_sys_max_cmd_len=8192;
5391     ;;
5392
5393   mint*)
5394     # On MiNT this can take a long time and run out of memory.
5395     lt_cv_sys_max_cmd_len=8192;
5396     ;;
5397
5398   amigaos*)
5399     # On AmigaOS with pdksh, this test takes hours, literally.
5400     # So we just punt and use a minimum line length of 8192.
5401     lt_cv_sys_max_cmd_len=8192;
5402     ;;
5403
5404   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5405     # This has been around since 386BSD, at least.  Likely further.
5406     if test -x /sbin/sysctl; then
5407       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5408     elif test -x /usr/sbin/sysctl; then
5409       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5410     else
5411       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5412     fi
5413     # And add a safety zone
5414     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5415     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5416     ;;
5417
5418   interix*)
5419     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5420     lt_cv_sys_max_cmd_len=196608
5421     ;;
5422
5423   os2*)
5424     # The test takes a long time on OS/2.
5425     lt_cv_sys_max_cmd_len=8192
5426     ;;
5427
5428   osf*)
5429     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5430     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5431     # nice to cause kernel panics so lets avoid the loop below.
5432     # First set a reasonable default.
5433     lt_cv_sys_max_cmd_len=16384
5434     #
5435     if test -x /sbin/sysconfig; then
5436       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5437         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5438       esac
5439     fi
5440     ;;
5441   sco3.2v5*)
5442     lt_cv_sys_max_cmd_len=102400
5443     ;;
5444   sysv5* | sco5v6* | sysv4.2uw2*)
5445     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5446     if test -n "$kargmax"; then
5447       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5448     else
5449       lt_cv_sys_max_cmd_len=32768
5450     fi
5451     ;;
5452   *)
5453     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5454     if test -n "$lt_cv_sys_max_cmd_len" && \
5455         test undefined != "$lt_cv_sys_max_cmd_len"; then
5456       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5457       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5458     else
5459       # Make teststring a little bigger before we do anything with it.
5460       # a 1K string should be a reasonable start.
5461       for i in 1 2 3 4 5 6 7 8 ; do
5462         teststring=$teststring$teststring
5463       done
5464       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5465       # If test is not a shell built-in, we'll probably end up computing a
5466       # maximum length that is only half of the actual maximum length, but
5467       # we can't tell.
5468       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5469                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5470               test $i != 17 # 1/2 MB should be enough
5471       do
5472         i=`expr $i + 1`
5473         teststring=$teststring$teststring
5474       done
5475       # Only check the string length outside the loop.
5476       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5477       teststring=
5478       # Add a significant safety factor because C++ compilers can tack on
5479       # massive amounts of additional arguments before passing them to the
5480       # linker.  It appears as though 1/2 is a usable value.
5481       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5482     fi
5483     ;;
5484   esac
5485
5486 fi
5487
5488 if test -n $lt_cv_sys_max_cmd_len ; then
5489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5490 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5491 else
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5493 $as_echo "none" >&6; }
5494 fi
5495 max_cmd_len=$lt_cv_sys_max_cmd_len
5496
5497
5498
5499
5500
5501
5502 : ${CP="cp -f"}
5503 : ${MV="mv -f"}
5504 : ${RM="rm -f"}
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5507 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5508 # Try some XSI features
5509 xsi_shell=no
5510 ( _lt_dummy="a/b/c"
5511   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5512       = c,a/b,b/c, \
5513     && eval 'test $(( 1 + 1 )) -eq 2 \
5514     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5515   && xsi_shell=yes
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5517 $as_echo "$xsi_shell" >&6; }
5518
5519
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5521 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5522 lt_shell_append=no
5523 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5524     >/dev/null 2>&1 \
5525   && lt_shell_append=yes
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5527 $as_echo "$lt_shell_append" >&6; }
5528
5529
5530 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5531   lt_unset=unset
5532 else
5533   lt_unset=false
5534 fi
5535
5536
5537
5538
5539
5540 # test EBCDIC or ASCII
5541 case `echo X|tr X '\101'` in
5542  A) # ASCII based system
5543     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5544   lt_SP2NL='tr \040 \012'
5545   lt_NL2SP='tr \015\012 \040\040'
5546   ;;
5547  *) # EBCDIC based system
5548   lt_SP2NL='tr \100 \n'
5549   lt_NL2SP='tr \r\n \100\100'
5550   ;;
5551 esac
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5562 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5563 if ${lt_cv_to_host_file_cmd+:} false; then :
5564   $as_echo_n "(cached) " >&6
5565 else
5566   case $host in
5567   *-*-mingw* )
5568     case $build in
5569       *-*-mingw* ) # actually msys
5570         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5571         ;;
5572       *-*-cygwin* )
5573         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5574         ;;
5575       * ) # otherwise, assume *nix
5576         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5577         ;;
5578     esac
5579     ;;
5580   *-*-cygwin* )
5581     case $build in
5582       *-*-mingw* ) # actually msys
5583         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5584         ;;
5585       *-*-cygwin* )
5586         lt_cv_to_host_file_cmd=func_convert_file_noop
5587         ;;
5588       * ) # otherwise, assume *nix
5589         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5590         ;;
5591     esac
5592     ;;
5593   * ) # unhandled hosts (and "normal" native builds)
5594     lt_cv_to_host_file_cmd=func_convert_file_noop
5595     ;;
5596 esac
5597
5598 fi
5599
5600 to_host_file_cmd=$lt_cv_to_host_file_cmd
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5602 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5603
5604
5605
5606
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5609 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5610 if ${lt_cv_to_tool_file_cmd+:} false; then :
5611   $as_echo_n "(cached) " >&6
5612 else
5613   #assume ordinary cross tools, or native build.
5614 lt_cv_to_tool_file_cmd=func_convert_file_noop
5615 case $host in
5616   *-*-mingw* )
5617     case $build in
5618       *-*-mingw* ) # actually msys
5619         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5620         ;;
5621     esac
5622     ;;
5623 esac
5624
5625 fi
5626
5627 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5629 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5630
5631
5632
5633
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5636 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5637 if ${lt_cv_ld_reload_flag+:} false; then :
5638   $as_echo_n "(cached) " >&6
5639 else
5640   lt_cv_ld_reload_flag='-r'
5641 fi
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5643 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5644 reload_flag=$lt_cv_ld_reload_flag
5645 case $reload_flag in
5646 "" | " "*) ;;
5647 *) reload_flag=" $reload_flag" ;;
5648 esac
5649 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5650 case $host_os in
5651   cygwin* | mingw* | pw32* | cegcc*)
5652     if test "$GCC" != yes; then
5653       reload_cmds=false
5654     fi
5655     ;;
5656   darwin*)
5657     if test "$GCC" = yes; then
5658       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5659     else
5660       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5661     fi
5662     ;;
5663 esac
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 if test -n "$ac_tool_prefix"; then
5674   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_OBJDUMP+:} false; then :
5679   $as_echo_n "(cached) " >&6
5680 else
5681   if test -n "$OBJDUMP"; then
5682   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687   IFS=$as_save_IFS
5688   test -z "$as_dir" && as_dir=.
5689     for ac_exec_ext in '' $ac_executable_extensions; do
5690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693     break 2
5694   fi
5695 done
5696   done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 OBJDUMP=$ac_cv_prog_OBJDUMP
5702 if test -n "$OBJDUMP"; then
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5704 $as_echo "$OBJDUMP" >&6; }
5705 else
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711 fi
5712 if test -z "$ac_cv_prog_OBJDUMP"; then
5713   ac_ct_OBJDUMP=$OBJDUMP
5714   # Extract the first word of "objdump", so it can be a program name with args.
5715 set dummy objdump; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5719   $as_echo_n "(cached) " >&6
5720 else
5721   if test -n "$ac_ct_OBJDUMP"; then
5722   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729     for ac_exec_ext in '' $ac_executable_extensions; do
5730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733     break 2
5734   fi
5735 done
5736   done
5737 IFS=$as_save_IFS
5738
5739 fi
5740 fi
5741 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5742 if test -n "$ac_ct_OBJDUMP"; then
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5744 $as_echo "$ac_ct_OBJDUMP" >&6; }
5745 else
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749
5750   if test "x$ac_ct_OBJDUMP" = x; then
5751     OBJDUMP="false"
5752   else
5753     case $cross_compiling:$ac_tool_warned in
5754 yes:)
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5757 ac_tool_warned=yes ;;
5758 esac
5759     OBJDUMP=$ac_ct_OBJDUMP
5760   fi
5761 else
5762   OBJDUMP="$ac_cv_prog_OBJDUMP"
5763 fi
5764
5765 test -z "$OBJDUMP" && OBJDUMP=objdump
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5776 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5777 if ${lt_cv_deplibs_check_method+:} false; then :
5778   $as_echo_n "(cached) " >&6
5779 else
5780   lt_cv_file_magic_cmd='$MAGIC_CMD'
5781 lt_cv_file_magic_test_file=
5782 lt_cv_deplibs_check_method='unknown'
5783 # Need to set the preceding variable on all platforms that support
5784 # interlibrary dependencies.
5785 # 'none' -- dependencies not supported.
5786 # `unknown' -- same as none, but documents that we really don't know.
5787 # 'pass_all' -- all dependencies passed with no checks.
5788 # 'test_compile' -- check by making test program.
5789 # 'file_magic [[regex]]' -- check by looking for files in library path
5790 # which responds to the $file_magic_cmd with a given extended regex.
5791 # If you have `file' or equivalent on your system and you're not sure
5792 # whether `pass_all' will *always* work, you probably want this one.
5793
5794 case $host_os in
5795 aix[4-9]*)
5796   lt_cv_deplibs_check_method=pass_all
5797   ;;
5798
5799 beos*)
5800   lt_cv_deplibs_check_method=pass_all
5801   ;;
5802
5803 bsdi[45]*)
5804   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5805   lt_cv_file_magic_cmd='/usr/bin/file -L'
5806   lt_cv_file_magic_test_file=/shlib/libc.so
5807   ;;
5808
5809 cygwin*)
5810   # func_win32_libid is a shell function defined in ltmain.sh
5811   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5812   lt_cv_file_magic_cmd='func_win32_libid'
5813   ;;
5814
5815 mingw* | pw32*)
5816   # Base MSYS/MinGW do not provide the 'file' command needed by
5817   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5818   # unless we find 'file', for example because we are cross-compiling.
5819   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5820   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5821     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5822     lt_cv_file_magic_cmd='func_win32_libid'
5823   else
5824     # Keep this pattern in sync with the one in func_win32_libid.
5825     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5826     lt_cv_file_magic_cmd='$OBJDUMP -f'
5827   fi
5828   ;;
5829
5830 cegcc*)
5831   # use the weaker test based on 'objdump'. See mingw*.
5832   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5833   lt_cv_file_magic_cmd='$OBJDUMP -f'
5834   ;;
5835
5836 darwin* | rhapsody*)
5837   lt_cv_deplibs_check_method=pass_all
5838   ;;
5839
5840 freebsd* | dragonfly*)
5841   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5842     case $host_cpu in
5843     i*86 )
5844       # Not sure whether the presence of OpenBSD here was a mistake.
5845       # Let's accept both of them until this is cleared up.
5846       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5847       lt_cv_file_magic_cmd=/usr/bin/file
5848       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5849       ;;
5850     esac
5851   else
5852     lt_cv_deplibs_check_method=pass_all
5853   fi
5854   ;;
5855
5856 haiku*)
5857   lt_cv_deplibs_check_method=pass_all
5858   ;;
5859
5860 hpux10.20* | hpux11*)
5861   lt_cv_file_magic_cmd=/usr/bin/file
5862   case $host_cpu in
5863   ia64*)
5864     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5865     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5866     ;;
5867   hppa*64*)
5868     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]'
5869     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5870     ;;
5871   *)
5872     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5873     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5874     ;;
5875   esac
5876   ;;
5877
5878 interix[3-9]*)
5879   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5880   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5881   ;;
5882
5883 irix5* | irix6* | nonstopux*)
5884   case $LD in
5885   *-32|*"-32 ") libmagic=32-bit;;
5886   *-n32|*"-n32 ") libmagic=N32;;
5887   *-64|*"-64 ") libmagic=64-bit;;
5888   *) libmagic=never-match;;
5889   esac
5890   lt_cv_deplibs_check_method=pass_all
5891   ;;
5892
5893 # This must be glibc/ELF.
5894 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5895   lt_cv_deplibs_check_method=pass_all
5896   ;;
5897
5898 netbsd* | netbsdelf*-gnu)
5899   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5900     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5901   else
5902     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5903   fi
5904   ;;
5905
5906 newos6*)
5907   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5908   lt_cv_file_magic_cmd=/usr/bin/file
5909   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5910   ;;
5911
5912 *nto* | *qnx*)
5913   lt_cv_deplibs_check_method=pass_all
5914   ;;
5915
5916 openbsd*)
5917   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5918     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5919   else
5920     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5921   fi
5922   ;;
5923
5924 osf3* | osf4* | osf5*)
5925   lt_cv_deplibs_check_method=pass_all
5926   ;;
5927
5928 rdos*)
5929   lt_cv_deplibs_check_method=pass_all
5930   ;;
5931
5932 solaris*)
5933   lt_cv_deplibs_check_method=pass_all
5934   ;;
5935
5936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5937   lt_cv_deplibs_check_method=pass_all
5938   ;;
5939
5940 sysv4 | sysv4.3*)
5941   case $host_vendor in
5942   motorola)
5943     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]'
5944     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5945     ;;
5946   ncr)
5947     lt_cv_deplibs_check_method=pass_all
5948     ;;
5949   sequent)
5950     lt_cv_file_magic_cmd='/bin/file'
5951     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5952     ;;
5953   sni)
5954     lt_cv_file_magic_cmd='/bin/file'
5955     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5956     lt_cv_file_magic_test_file=/lib/libc.so
5957     ;;
5958   siemens)
5959     lt_cv_deplibs_check_method=pass_all
5960     ;;
5961   pc)
5962     lt_cv_deplibs_check_method=pass_all
5963     ;;
5964   esac
5965   ;;
5966
5967 tpf*)
5968   lt_cv_deplibs_check_method=pass_all
5969   ;;
5970 esac
5971
5972 fi
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5974 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5975
5976 file_magic_glob=
5977 want_nocaseglob=no
5978 if test "$build" = "$host"; then
5979   case $host_os in
5980   mingw* | pw32*)
5981     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5982       want_nocaseglob=yes
5983     else
5984       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5985     fi
5986     ;;
5987   esac
5988 fi
5989
5990 file_magic_cmd=$lt_cv_file_magic_cmd
5991 deplibs_check_method=$lt_cv_deplibs_check_method
5992 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015 if test -n "$ac_tool_prefix"; then
6016   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6017 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if ${ac_cv_prog_DLLTOOL+:} false; then :
6021   $as_echo_n "(cached) " >&6
6022 else
6023   if test -n "$DLLTOOL"; then
6024   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029   IFS=$as_save_IFS
6030   test -z "$as_dir" && as_dir=.
6031     for ac_exec_ext in '' $ac_executable_extensions; do
6032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035     break 2
6036   fi
6037 done
6038   done
6039 IFS=$as_save_IFS
6040
6041 fi
6042 fi
6043 DLLTOOL=$ac_cv_prog_DLLTOOL
6044 if test -n "$DLLTOOL"; then
6045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6046 $as_echo "$DLLTOOL" >&6; }
6047 else
6048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6050 fi
6051
6052
6053 fi
6054 if test -z "$ac_cv_prog_DLLTOOL"; then
6055   ac_ct_DLLTOOL=$DLLTOOL
6056   # Extract the first word of "dlltool", so it can be a program name with args.
6057 set dummy dlltool; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   if test -n "$ac_ct_DLLTOOL"; then
6064   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069   IFS=$as_save_IFS
6070   test -z "$as_dir" && as_dir=.
6071     for ac_exec_ext in '' $ac_executable_extensions; do
6072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075     break 2
6076   fi
6077 done
6078   done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6084 if test -n "$ac_ct_DLLTOOL"; then
6085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6086 $as_echo "$ac_ct_DLLTOOL" >&6; }
6087 else
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090 fi
6091
6092   if test "x$ac_ct_DLLTOOL" = x; then
6093     DLLTOOL="false"
6094   else
6095     case $cross_compiling:$ac_tool_warned in
6096 yes:)
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099 ac_tool_warned=yes ;;
6100 esac
6101     DLLTOOL=$ac_ct_DLLTOOL
6102   fi
6103 else
6104   DLLTOOL="$ac_cv_prog_DLLTOOL"
6105 fi
6106
6107 test -z "$DLLTOOL" && DLLTOOL=dlltool
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6119 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6120 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6121   $as_echo_n "(cached) " >&6
6122 else
6123   lt_cv_sharedlib_from_linklib_cmd='unknown'
6124
6125 case $host_os in
6126 cygwin* | mingw* | pw32* | cegcc*)
6127   # two different shell functions defined in ltmain.sh
6128   # decide which to use based on capabilities of $DLLTOOL
6129   case `$DLLTOOL --help 2>&1` in
6130   *--identify-strict*)
6131     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6132     ;;
6133   *)
6134     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6135     ;;
6136   esac
6137   ;;
6138 *)
6139   # fallback: assume linklib IS sharedlib
6140   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6141   ;;
6142 esac
6143
6144 fi
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6146 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6147 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6148 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6149
6150
6151
6152
6153
6154
6155
6156 if test -n "$ac_tool_prefix"; then
6157   for ac_prog in ar
6158   do
6159     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162 $as_echo_n "checking for $ac_word... " >&6; }
6163 if ${ac_cv_prog_AR+:} false; then :
6164   $as_echo_n "(cached) " >&6
6165 else
6166   if test -n "$AR"; then
6167   ac_cv_prog_AR="$AR" # Let the user override the test.
6168 else
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH
6171 do
6172   IFS=$as_save_IFS
6173   test -z "$as_dir" && as_dir=.
6174     for ac_exec_ext in '' $ac_executable_extensions; do
6175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178     break 2
6179   fi
6180 done
6181   done
6182 IFS=$as_save_IFS
6183
6184 fi
6185 fi
6186 AR=$ac_cv_prog_AR
6187 if test -n "$AR"; then
6188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6189 $as_echo "$AR" >&6; }
6190 else
6191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 $as_echo "no" >&6; }
6193 fi
6194
6195
6196     test -n "$AR" && break
6197   done
6198 fi
6199 if test -z "$AR"; then
6200   ac_ct_AR=$AR
6201   for ac_prog in ar
6202 do
6203   # Extract the first word of "$ac_prog", so it can be a program name with args.
6204 set dummy $ac_prog; ac_word=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6208   $as_echo_n "(cached) " >&6
6209 else
6210   if test -n "$ac_ct_AR"; then
6211   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216   IFS=$as_save_IFS
6217   test -z "$as_dir" && as_dir=.
6218     for ac_exec_ext in '' $ac_executable_extensions; do
6219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220     ac_cv_prog_ac_ct_AR="$ac_prog"
6221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222     break 2
6223   fi
6224 done
6225   done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6231 if test -n "$ac_ct_AR"; then
6232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6233 $as_echo "$ac_ct_AR" >&6; }
6234 else
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6237 fi
6238
6239
6240   test -n "$ac_ct_AR" && break
6241 done
6242
6243   if test "x$ac_ct_AR" = x; then
6244     AR="false"
6245   else
6246     case $cross_compiling:$ac_tool_warned in
6247 yes:)
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250 ac_tool_warned=yes ;;
6251 esac
6252     AR=$ac_ct_AR
6253   fi
6254 fi
6255
6256 : ${AR=ar}
6257 : ${AR_FLAGS=cru}
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6270 $as_echo_n "checking for archiver @FILE support... " >&6; }
6271 if ${lt_cv_ar_at_file+:} false; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   lt_cv_ar_at_file=no
6275    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h.  */
6277
6278 int
6279 main ()
6280 {
6281
6282   ;
6283   return 0;
6284 }
6285 _ACEOF
6286 if ac_fn_c_try_compile "$LINENO"; then :
6287   echo conftest.$ac_objext > conftest.lst
6288       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6289       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6290   (eval $lt_ar_try) 2>&5
6291   ac_status=$?
6292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6293   test $ac_status = 0; }
6294       if test "$ac_status" -eq 0; then
6295         # Ensure the archiver fails upon bogus file names.
6296         rm -f conftest.$ac_objext libconftest.a
6297         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6298   (eval $lt_ar_try) 2>&5
6299   ac_status=$?
6300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301   test $ac_status = 0; }
6302         if test "$ac_status" -ne 0; then
6303           lt_cv_ar_at_file=@
6304         fi
6305       fi
6306       rm -f conftest.* libconftest.a
6307
6308 fi
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310
6311 fi
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6313 $as_echo "$lt_cv_ar_at_file" >&6; }
6314
6315 if test "x$lt_cv_ar_at_file" = xno; then
6316   archiver_list_spec=
6317 else
6318   archiver_list_spec=$lt_cv_ar_at_file
6319 fi
6320
6321
6322
6323
6324
6325
6326
6327 if test -n "$ac_tool_prefix"; then
6328   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}strip; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if ${ac_cv_prog_STRIP+:} false; then :
6333   $as_echo_n "(cached) " >&6
6334 else
6335   if test -n "$STRIP"; then
6336   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343     for ac_exec_ext in '' $ac_executable_extensions; do
6344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350   done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 STRIP=$ac_cv_prog_STRIP
6356 if test -n "$STRIP"; then
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6358 $as_echo "$STRIP" >&6; }
6359 else
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6364
6365 fi
6366 if test -z "$ac_cv_prog_STRIP"; then
6367   ac_ct_STRIP=$STRIP
6368   # Extract the first word of "strip", so it can be a program name with args.
6369 set dummy strip; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   if test -n "$ac_ct_STRIP"; then
6376   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381   IFS=$as_save_IFS
6382   test -z "$as_dir" && as_dir=.
6383     for ac_exec_ext in '' $ac_executable_extensions; do
6384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385     ac_cv_prog_ac_ct_STRIP="strip"
6386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387     break 2
6388   fi
6389 done
6390   done
6391 IFS=$as_save_IFS
6392
6393 fi
6394 fi
6395 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6396 if test -n "$ac_ct_STRIP"; then
6397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6398 $as_echo "$ac_ct_STRIP" >&6; }
6399 else
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6402 fi
6403
6404   if test "x$ac_ct_STRIP" = x; then
6405     STRIP=":"
6406   else
6407     case $cross_compiling:$ac_tool_warned in
6408 yes:)
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411 ac_tool_warned=yes ;;
6412 esac
6413     STRIP=$ac_ct_STRIP
6414   fi
6415 else
6416   STRIP="$ac_cv_prog_STRIP"
6417 fi
6418
6419 test -z "$STRIP" && STRIP=:
6420
6421
6422
6423
6424
6425
6426 if test -n "$ac_tool_prefix"; then
6427   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_prog_RANLIB+:} false; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434   if test -n "$RANLIB"; then
6435   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442     for ac_exec_ext in '' $ac_executable_extensions; do
6443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449   done
6450 IFS=$as_save_IFS
6451
6452 fi
6453 fi
6454 RANLIB=$ac_cv_prog_RANLIB
6455 if test -n "$RANLIB"; then
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6457 $as_echo "$RANLIB" >&6; }
6458 else
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462
6463
6464 fi
6465 if test -z "$ac_cv_prog_RANLIB"; then
6466   ac_ct_RANLIB=$RANLIB
6467   # Extract the first word of "ranlib", so it can be a program name with args.
6468 set dummy ranlib; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   if test -n "$ac_ct_RANLIB"; then
6475   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480   IFS=$as_save_IFS
6481   test -z "$as_dir" && as_dir=.
6482     for ac_exec_ext in '' $ac_executable_extensions; do
6483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484     ac_cv_prog_ac_ct_RANLIB="ranlib"
6485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486     break 2
6487   fi
6488 done
6489   done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6495 if test -n "$ac_ct_RANLIB"; then
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6497 $as_echo "$ac_ct_RANLIB" >&6; }
6498 else
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503   if test "x$ac_ct_RANLIB" = x; then
6504     RANLIB=":"
6505   else
6506     case $cross_compiling:$ac_tool_warned in
6507 yes:)
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510 ac_tool_warned=yes ;;
6511 esac
6512     RANLIB=$ac_ct_RANLIB
6513   fi
6514 else
6515   RANLIB="$ac_cv_prog_RANLIB"
6516 fi
6517
6518 test -z "$RANLIB" && RANLIB=:
6519
6520
6521
6522
6523
6524
6525 # Determine commands to create old-style static archives.
6526 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6527 old_postinstall_cmds='chmod 644 $oldlib'
6528 old_postuninstall_cmds=
6529
6530 if test -n "$RANLIB"; then
6531   case $host_os in
6532   openbsd*)
6533     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6534     ;;
6535   *)
6536     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6537     ;;
6538   esac
6539   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6540 fi
6541
6542 case $host_os in
6543   darwin*)
6544     lock_old_archive_extraction=yes ;;
6545   *)
6546     lock_old_archive_extraction=no ;;
6547 esac
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587 # If no C compiler was specified, use CC.
6588 LTCC=${LTCC-"$CC"}
6589
6590 # If no C compiler flags were specified, use CFLAGS.
6591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6592
6593 # Allow CC to be a program name with arguments.
6594 compiler=$CC
6595
6596
6597 # Check for command to grab the raw symbol name followed by C symbol from nm.
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6599 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6600 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6601   $as_echo_n "(cached) " >&6
6602 else
6603
6604 # These are sane defaults that work on at least a few old systems.
6605 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6606
6607 # Character class describing NM global symbol codes.
6608 symcode='[BCDEGRST]'
6609
6610 # Regexp to match symbols that can be accessed directly from C.
6611 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6612
6613 # Define system-specific variables.
6614 case $host_os in
6615 aix*)
6616   symcode='[BCDT]'
6617   ;;
6618 cygwin* | mingw* | pw32* | cegcc*)
6619   symcode='[ABCDGISTW]'
6620   ;;
6621 hpux*)
6622   if test "$host_cpu" = ia64; then
6623     symcode='[ABCDEGRST]'
6624   fi
6625   ;;
6626 irix* | nonstopux*)
6627   symcode='[BCDEGRST]'
6628   ;;
6629 osf*)
6630   symcode='[BCDEGQRST]'
6631   ;;
6632 solaris*)
6633   symcode='[BDRT]'
6634   ;;
6635 sco3.2v5*)
6636   symcode='[DT]'
6637   ;;
6638 sysv4.2uw2*)
6639   symcode='[DT]'
6640   ;;
6641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6642   symcode='[ABDT]'
6643   ;;
6644 sysv4)
6645   symcode='[DFNSTU]'
6646   ;;
6647 esac
6648
6649 # If we're using GNU nm, then use its standard symbol codes.
6650 case `$NM -V 2>&1` in
6651 *GNU* | *'with BFD'*)
6652   symcode='[ABCDGIRSTW]' ;;
6653 esac
6654
6655 # Transform an extracted symbol line into a proper C declaration.
6656 # Some systems (esp. on ia64) link data and code symbols differently,
6657 # so use this general approach.
6658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6659
6660 # Transform an extracted symbol line into symbol name and symbol address
6661 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6662 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'"
6663
6664 # Handle CRLF in mingw tool chain
6665 opt_cr=
6666 case $build_os in
6667 mingw*)
6668   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6669   ;;
6670 esac
6671
6672 # Try without a prefix underscore, then with it.
6673 for ac_symprfx in "" "_"; do
6674
6675   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6676   symxfrm="\\1 $ac_symprfx\\2 \\2"
6677
6678   # Write the raw and C identifiers.
6679   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6680     # Fake it for dumpbin and say T for any non-static function
6681     # and D for any global variable.
6682     # Also find C++ and __fastcall symbols from MSVC++,
6683     # which start with @ or ?.
6684     lt_cv_sys_global_symbol_pipe="$AWK '"\
6685 "     {last_section=section; section=\$ 3};"\
6686 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6687 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6688 "     \$ 0!~/External *\|/{next};"\
6689 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6690 "     {if(hide[section]) next};"\
6691 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6692 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6693 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6694 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6695 "     ' prfx=^$ac_symprfx"
6696   else
6697     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6698   fi
6699   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6700
6701   # Check to see that the pipe works correctly.
6702   pipe_works=no
6703
6704   rm -f conftest*
6705   cat > conftest.$ac_ext <<_LT_EOF
6706 #ifdef __cplusplus
6707 extern "C" {
6708 #endif
6709 char nm_test_var;
6710 void nm_test_func(void);
6711 void nm_test_func(void){}
6712 #ifdef __cplusplus
6713 }
6714 #endif
6715 int main(){nm_test_var='a';nm_test_func();return(0);}
6716 _LT_EOF
6717
6718   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6719   (eval $ac_compile) 2>&5
6720   ac_status=$?
6721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722   test $ac_status = 0; }; then
6723     # Now try to grab the symbols.
6724     nlist=conftest.nm
6725     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6726   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6727   ac_status=$?
6728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729   test $ac_status = 0; } && test -s "$nlist"; then
6730       # Try sorting and uniquifying the output.
6731       if sort "$nlist" | uniq > "$nlist"T; then
6732         mv -f "$nlist"T "$nlist"
6733       else
6734         rm -f "$nlist"T
6735       fi
6736
6737       # Make sure that we snagged all the symbols we need.
6738       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6739         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6740           cat <<_LT_EOF > conftest.$ac_ext
6741 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6742 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6743 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6744    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6745 # define LT_DLSYM_CONST
6746 #elif defined(__osf__)
6747 /* This system does not cope well with relocations in const data.  */
6748 # define LT_DLSYM_CONST
6749 #else
6750 # define LT_DLSYM_CONST const
6751 #endif
6752
6753 #ifdef __cplusplus
6754 extern "C" {
6755 #endif
6756
6757 _LT_EOF
6758           # Now generate the symbol file.
6759           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6760
6761           cat <<_LT_EOF >> conftest.$ac_ext
6762
6763 /* The mapping between symbol names and symbols.  */
6764 LT_DLSYM_CONST struct {
6765   const char *name;
6766   void       *address;
6767 }
6768 lt__PROGRAM__LTX_preloaded_symbols[] =
6769 {
6770   { "@PROGRAM@", (void *) 0 },
6771 _LT_EOF
6772           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6773           cat <<\_LT_EOF >> conftest.$ac_ext
6774   {0, (void *) 0}
6775 };
6776
6777 /* This works around a problem in FreeBSD linker */
6778 #ifdef FREEBSD_WORKAROUND
6779 static const void *lt_preloaded_setup() {
6780   return lt__PROGRAM__LTX_preloaded_symbols;
6781 }
6782 #endif
6783
6784 #ifdef __cplusplus
6785 }
6786 #endif
6787 _LT_EOF
6788           # Now try linking the two files.
6789           mv conftest.$ac_objext conftstm.$ac_objext
6790           lt_globsym_save_LIBS=$LIBS
6791           lt_globsym_save_CFLAGS=$CFLAGS
6792           LIBS="conftstm.$ac_objext"
6793           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6794           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6795   (eval $ac_link) 2>&5
6796   ac_status=$?
6797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6799             pipe_works=yes
6800           fi
6801           LIBS=$lt_globsym_save_LIBS
6802           CFLAGS=$lt_globsym_save_CFLAGS
6803         else
6804           echo "cannot find nm_test_func in $nlist" >&5
6805         fi
6806       else
6807         echo "cannot find nm_test_var in $nlist" >&5
6808       fi
6809     else
6810       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6811     fi
6812   else
6813     echo "$progname: failed program was:" >&5
6814     cat conftest.$ac_ext >&5
6815   fi
6816   rm -rf conftest* conftst*
6817
6818   # Do not use the global_symbol_pipe unless it works.
6819   if test "$pipe_works" = yes; then
6820     break
6821   else
6822     lt_cv_sys_global_symbol_pipe=
6823   fi
6824 done
6825
6826 fi
6827
6828 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6829   lt_cv_sys_global_symbol_to_cdecl=
6830 fi
6831 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6833 $as_echo "failed" >&6; }
6834 else
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6836 $as_echo "ok" >&6; }
6837 fi
6838
6839 # Response file support.
6840 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6841   nm_file_list_spec='@'
6842 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6843   nm_file_list_spec='@'
6844 fi
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6873 $as_echo_n "checking for sysroot... " >&6; }
6874
6875 # Check whether --with-sysroot was given.
6876 if test "${with_sysroot+set}" = set; then :
6877   withval=$with_sysroot;
6878 else
6879   with_sysroot=no
6880 fi
6881
6882
6883 lt_sysroot=
6884 case ${with_sysroot} in #(
6885  yes)
6886    if test "$GCC" = yes; then
6887      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6888    fi
6889    ;; #(
6890  /*)
6891    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6892    ;; #(
6893  no|'')
6894    ;; #(
6895  *)
6896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6897 $as_echo "${with_sysroot}" >&6; }
6898    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6899    ;;
6900 esac
6901
6902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6903 $as_echo "${lt_sysroot:-no}" >&6; }
6904
6905
6906
6907
6908
6909 # Check whether --enable-libtool-lock was given.
6910 if test "${enable_libtool_lock+set}" = set; then :
6911   enableval=$enable_libtool_lock;
6912 fi
6913
6914 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6915
6916 # Some flags need to be propagated to the compiler or linker for good
6917 # libtool support.
6918 case $host in
6919 ia64-*-hpux*)
6920   # Find out which ABI we are using.
6921   echo 'int i;' > conftest.$ac_ext
6922   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6923   (eval $ac_compile) 2>&5
6924   ac_status=$?
6925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926   test $ac_status = 0; }; then
6927     case `/usr/bin/file conftest.$ac_objext` in
6928       *ELF-32*)
6929         HPUX_IA64_MODE="32"
6930         ;;
6931       *ELF-64*)
6932         HPUX_IA64_MODE="64"
6933         ;;
6934     esac
6935   fi
6936   rm -rf conftest*
6937   ;;
6938 *-*-irix6*)
6939   # Find out which ABI we are using.
6940   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6941   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942   (eval $ac_compile) 2>&5
6943   ac_status=$?
6944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945   test $ac_status = 0; }; then
6946     if test "$lt_cv_prog_gnu_ld" = yes; then
6947       case `/usr/bin/file conftest.$ac_objext` in
6948         *32-bit*)
6949           LD="${LD-ld} -melf32bsmip"
6950           ;;
6951         *N32*)
6952           LD="${LD-ld} -melf32bmipn32"
6953           ;;
6954         *64-bit*)
6955           LD="${LD-ld} -melf64bmip"
6956         ;;
6957       esac
6958     else
6959       case `/usr/bin/file conftest.$ac_objext` in
6960         *32-bit*)
6961           LD="${LD-ld} -32"
6962           ;;
6963         *N32*)
6964           LD="${LD-ld} -n32"
6965           ;;
6966         *64-bit*)
6967           LD="${LD-ld} -64"
6968           ;;
6969       esac
6970     fi
6971   fi
6972   rm -rf conftest*
6973   ;;
6974
6975 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6976 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6977   # Find out which ABI we are using.
6978   echo 'int i;' > conftest.$ac_ext
6979   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6980   (eval $ac_compile) 2>&5
6981   ac_status=$?
6982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983   test $ac_status = 0; }; then
6984     case `/usr/bin/file conftest.o` in
6985       *32-bit*)
6986         case $host in
6987           x86_64-*kfreebsd*-gnu)
6988             LD="${LD-ld} -m elf_i386_fbsd"
6989             ;;
6990           x86_64-*linux*)
6991             case `/usr/bin/file conftest.o` in
6992               *x86-64*)
6993                 LD="${LD-ld} -m elf32_x86_64"
6994                 ;;
6995               *)
6996                 LD="${LD-ld} -m elf_i386"
6997                 ;;
6998             esac
6999             ;;
7000           powerpc64le-*)
7001             LD="${LD-ld} -m elf32lppclinux"
7002             ;;
7003           powerpc64-*)
7004             LD="${LD-ld} -m elf32ppclinux"
7005             ;;
7006           s390x-*linux*)
7007             LD="${LD-ld} -m elf_s390"
7008             ;;
7009           sparc64-*linux*)
7010             LD="${LD-ld} -m elf32_sparc"
7011             ;;
7012         esac
7013         ;;
7014       *64-bit*)
7015         case $host in
7016           x86_64-*kfreebsd*-gnu)
7017             LD="${LD-ld} -m elf_x86_64_fbsd"
7018             ;;
7019           x86_64-*linux*)
7020             LD="${LD-ld} -m elf_x86_64"
7021             ;;
7022           powerpcle-*)
7023             LD="${LD-ld} -m elf64lppc"
7024             ;;
7025           powerpc-*)
7026             LD="${LD-ld} -m elf64ppc"
7027             ;;
7028           s390*-*linux*|s390*-*tpf*)
7029             LD="${LD-ld} -m elf64_s390"
7030             ;;
7031           sparc*-*linux*)
7032             LD="${LD-ld} -m elf64_sparc"
7033             ;;
7034         esac
7035         ;;
7036     esac
7037   fi
7038   rm -rf conftest*
7039   ;;
7040
7041 *-*-sco3.2v5*)
7042   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7043   SAVE_CFLAGS="$CFLAGS"
7044   CFLAGS="$CFLAGS -belf"
7045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7046 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7047 if ${lt_cv_cc_needs_belf+:} false; then :
7048   $as_echo_n "(cached) " >&6
7049 else
7050   ac_ext=c
7051 ac_cpp='$CPP $CPPFLAGS'
7052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055
7056      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h.  */
7058
7059 int
7060 main ()
7061 {
7062
7063   ;
7064   return 0;
7065 }
7066 _ACEOF
7067 if ac_fn_c_try_link "$LINENO"; then :
7068   lt_cv_cc_needs_belf=yes
7069 else
7070   lt_cv_cc_needs_belf=no
7071 fi
7072 rm -f core conftest.err conftest.$ac_objext \
7073     conftest$ac_exeext conftest.$ac_ext
7074      ac_ext=c
7075 ac_cpp='$CPP $CPPFLAGS'
7076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7082 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7083   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7084     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7085     CFLAGS="$SAVE_CFLAGS"
7086   fi
7087   ;;
7088 *-*solaris*)
7089   # Find out which ABI we are using.
7090   echo 'int i;' > conftest.$ac_ext
7091   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7092   (eval $ac_compile) 2>&5
7093   ac_status=$?
7094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095   test $ac_status = 0; }; then
7096     case `/usr/bin/file conftest.o` in
7097     *64-bit*)
7098       case $lt_cv_prog_gnu_ld in
7099       yes*)
7100         case $host in
7101         i?86-*-solaris*)
7102           LD="${LD-ld} -m elf_x86_64"
7103           ;;
7104         sparc*-*-solaris*)
7105           LD="${LD-ld} -m elf64_sparc"
7106           ;;
7107         esac
7108         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7109         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7110           LD="${LD-ld}_sol2"
7111         fi
7112         ;;
7113       *)
7114         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7115           LD="${LD-ld} -64"
7116         fi
7117         ;;
7118       esac
7119       ;;
7120     esac
7121   fi
7122   rm -rf conftest*
7123   ;;
7124 esac
7125
7126 need_locks="$enable_libtool_lock"
7127
7128 if test -n "$ac_tool_prefix"; then
7129   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}mt; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7134   $as_echo_n "(cached) " >&6
7135 else
7136   if test -n "$MANIFEST_TOOL"; then
7137   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144     for ac_exec_ext in '' $ac_executable_extensions; do
7145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151   done
7152 IFS=$as_save_IFS
7153
7154 fi
7155 fi
7156 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7157 if test -n "$MANIFEST_TOOL"; then
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7159 $as_echo "$MANIFEST_TOOL" >&6; }
7160 else
7161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164
7165
7166 fi
7167 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7168   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7169   # Extract the first word of "mt", so it can be a program name with args.
7170 set dummy mt; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7174   $as_echo_n "(cached) " >&6
7175 else
7176   if test -n "$ac_ct_MANIFEST_TOOL"; then
7177   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182   IFS=$as_save_IFS
7183   test -z "$as_dir" && as_dir=.
7184     for ac_exec_ext in '' $ac_executable_extensions; do
7185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188     break 2
7189   fi
7190 done
7191   done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7197 if test -n "$ac_ct_MANIFEST_TOOL"; then
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7199 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7200 else
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7206     MANIFEST_TOOL=":"
7207   else
7208     case $cross_compiling:$ac_tool_warned in
7209 yes:)
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7215   fi
7216 else
7217   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7218 fi
7219
7220 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7222 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7223 if ${lt_cv_path_mainfest_tool+:} false; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   lt_cv_path_mainfest_tool=no
7227   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7228   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7229   cat conftest.err >&5
7230   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7231     lt_cv_path_mainfest_tool=yes
7232   fi
7233   rm -f conftest*
7234 fi
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7236 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7237 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7238   MANIFEST_TOOL=:
7239 fi
7240
7241
7242
7243
7244
7245
7246   case $host_os in
7247     rhapsody* | darwin*)
7248     if test -n "$ac_tool_prefix"; then
7249   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   if test -n "$DSYMUTIL"; then
7257   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264     for ac_exec_ext in '' $ac_executable_extensions; do
7265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271   done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7277 if test -n "$DSYMUTIL"; then
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7279 $as_echo "$DSYMUTIL" >&6; }
7280 else
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285
7286 fi
7287 if test -z "$ac_cv_prog_DSYMUTIL"; then
7288   ac_ct_DSYMUTIL=$DSYMUTIL
7289   # Extract the first word of "dsymutil", so it can be a program name with args.
7290 set dummy dsymutil; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$ac_ct_DSYMUTIL"; then
7297   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_exec_ext in '' $ac_executable_extensions; do
7305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311   done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7317 if test -n "$ac_ct_DSYMUTIL"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7319 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325   if test "x$ac_ct_DSYMUTIL" = x; then
7326     DSYMUTIL=":"
7327   else
7328     case $cross_compiling:$ac_tool_warned in
7329 yes:)
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7333 esac
7334     DSYMUTIL=$ac_ct_DSYMUTIL
7335   fi
7336 else
7337   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7338 fi
7339
7340     if test -n "$ac_tool_prefix"; then
7341   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if ${ac_cv_prog_NMEDIT+:} false; then :
7346   $as_echo_n "(cached) " >&6
7347 else
7348   if test -n "$NMEDIT"; then
7349   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356     for ac_exec_ext in '' $ac_executable_extensions; do
7357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363   done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 NMEDIT=$ac_cv_prog_NMEDIT
7369 if test -n "$NMEDIT"; then
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7371 $as_echo "$NMEDIT" >&6; }
7372 else
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377
7378 fi
7379 if test -z "$ac_cv_prog_NMEDIT"; then
7380   ac_ct_NMEDIT=$NMEDIT
7381   # Extract the first word of "nmedit", so it can be a program name with args.
7382 set dummy nmedit; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388   if test -n "$ac_ct_NMEDIT"; then
7389   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396     for ac_exec_ext in '' $ac_executable_extensions; do
7397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403   done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7409 if test -n "$ac_ct_NMEDIT"; then
7410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7411 $as_echo "$ac_ct_NMEDIT" >&6; }
7412 else
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7415 fi
7416
7417   if test "x$ac_ct_NMEDIT" = x; then
7418     NMEDIT=":"
7419   else
7420     case $cross_compiling:$ac_tool_warned in
7421 yes:)
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426     NMEDIT=$ac_ct_NMEDIT
7427   fi
7428 else
7429   NMEDIT="$ac_cv_prog_NMEDIT"
7430 fi
7431
7432     if test -n "$ac_tool_prefix"; then
7433   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_LIPO+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   if test -n "$LIPO"; then
7441   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448     for ac_exec_ext in '' $ac_executable_extensions; do
7449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455   done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 LIPO=$ac_cv_prog_LIPO
7461 if test -n "$LIPO"; then
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7463 $as_echo "$LIPO" >&6; }
7464 else
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469
7470 fi
7471 if test -z "$ac_cv_prog_LIPO"; then
7472   ac_ct_LIPO=$LIPO
7473   # Extract the first word of "lipo", so it can be a program name with args.
7474 set dummy lipo; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7478   $as_echo_n "(cached) " >&6
7479 else
7480   if test -n "$ac_ct_LIPO"; then
7481   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486   IFS=$as_save_IFS
7487   test -z "$as_dir" && as_dir=.
7488     for ac_exec_ext in '' $ac_executable_extensions; do
7489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490     ac_cv_prog_ac_ct_LIPO="lipo"
7491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492     break 2
7493   fi
7494 done
7495   done
7496 IFS=$as_save_IFS
7497
7498 fi
7499 fi
7500 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7501 if test -n "$ac_ct_LIPO"; then
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7503 $as_echo "$ac_ct_LIPO" >&6; }
7504 else
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508
7509   if test "x$ac_ct_LIPO" = x; then
7510     LIPO=":"
7511   else
7512     case $cross_compiling:$ac_tool_warned in
7513 yes:)
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7517 esac
7518     LIPO=$ac_ct_LIPO
7519   fi
7520 else
7521   LIPO="$ac_cv_prog_LIPO"
7522 fi
7523
7524     if test -n "$ac_tool_prefix"; then
7525   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}otool; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_OTOOL+:} false; then :
7530   $as_echo_n "(cached) " >&6
7531 else
7532   if test -n "$OTOOL"; then
7533   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538   IFS=$as_save_IFS
7539   test -z "$as_dir" && as_dir=.
7540     for ac_exec_ext in '' $ac_executable_extensions; do
7541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544     break 2
7545   fi
7546 done
7547   done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 OTOOL=$ac_cv_prog_OTOOL
7553 if test -n "$OTOOL"; then
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7555 $as_echo "$OTOOL" >&6; }
7556 else
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561
7562 fi
7563 if test -z "$ac_cv_prog_OTOOL"; then
7564   ac_ct_OTOOL=$OTOOL
7565   # Extract the first word of "otool", so it can be a program name with args.
7566 set dummy otool; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7570   $as_echo_n "(cached) " >&6
7571 else
7572   if test -n "$ac_ct_OTOOL"; then
7573   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580     for ac_exec_ext in '' $ac_executable_extensions; do
7581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582     ac_cv_prog_ac_ct_OTOOL="otool"
7583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584     break 2
7585   fi
7586 done
7587   done
7588 IFS=$as_save_IFS
7589
7590 fi
7591 fi
7592 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7593 if test -n "$ac_ct_OTOOL"; then
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7595 $as_echo "$ac_ct_OTOOL" >&6; }
7596 else
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600
7601   if test "x$ac_ct_OTOOL" = x; then
7602     OTOOL=":"
7603   else
7604     case $cross_compiling:$ac_tool_warned in
7605 yes:)
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7609 esac
7610     OTOOL=$ac_ct_OTOOL
7611   fi
7612 else
7613   OTOOL="$ac_cv_prog_OTOOL"
7614 fi
7615
7616     if test -n "$ac_tool_prefix"; then
7617   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_OTOOL64+:} false; then :
7622   $as_echo_n "(cached) " >&6
7623 else
7624   if test -n "$OTOOL64"; then
7625   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630   IFS=$as_save_IFS
7631   test -z "$as_dir" && as_dir=.
7632     for ac_exec_ext in '' $ac_executable_extensions; do
7633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636     break 2
7637   fi
7638 done
7639   done
7640 IFS=$as_save_IFS
7641
7642 fi
7643 fi
7644 OTOOL64=$ac_cv_prog_OTOOL64
7645 if test -n "$OTOOL64"; then
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7647 $as_echo "$OTOOL64" >&6; }
7648 else
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652
7653
7654 fi
7655 if test -z "$ac_cv_prog_OTOOL64"; then
7656   ac_ct_OTOOL64=$OTOOL64
7657   # Extract the first word of "otool64", so it can be a program name with args.
7658 set dummy otool64; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7662   $as_echo_n "(cached) " >&6
7663 else
7664   if test -n "$ac_ct_OTOOL64"; then
7665   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670   IFS=$as_save_IFS
7671   test -z "$as_dir" && as_dir=.
7672     for ac_exec_ext in '' $ac_executable_extensions; do
7673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674     ac_cv_prog_ac_ct_OTOOL64="otool64"
7675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676     break 2
7677   fi
7678 done
7679   done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7685 if test -n "$ac_ct_OTOOL64"; then
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7687 $as_echo "$ac_ct_OTOOL64" >&6; }
7688 else
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693   if test "x$ac_ct_OTOOL64" = x; then
7694     OTOOL64=":"
7695   else
7696     case $cross_compiling:$ac_tool_warned in
7697 yes:)
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7701 esac
7702     OTOOL64=$ac_ct_OTOOL64
7703   fi
7704 else
7705   OTOOL64="$ac_cv_prog_OTOOL64"
7706 fi
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7735 $as_echo_n "checking for -single_module linker flag... " >&6; }
7736 if ${lt_cv_apple_cc_single_mod+:} false; then :
7737   $as_echo_n "(cached) " >&6
7738 else
7739   lt_cv_apple_cc_single_mod=no
7740       if test -z "${LT_MULTI_MODULE}"; then
7741         # By default we will add the -single_module flag. You can override
7742         # by either setting the environment variable LT_MULTI_MODULE
7743         # non-empty at configure time, or by adding -multi_module to the
7744         # link flags.
7745         rm -rf libconftest.dylib*
7746         echo "int foo(void){return 1;}" > conftest.c
7747         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7748 -dynamiclib -Wl,-single_module conftest.c" >&5
7749         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7750           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7751         _lt_result=$?
7752         # If there is a non-empty error log, and "single_module"
7753         # appears in it, assume the flag caused a linker warning
7754         if test -s conftest.err && $GREP single_module conftest.err; then
7755           cat conftest.err >&5
7756         # Otherwise, if the output was created with a 0 exit code from
7757         # the compiler, it worked.
7758         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7759           lt_cv_apple_cc_single_mod=yes
7760         else
7761           cat conftest.err >&5
7762         fi
7763         rm -rf libconftest.dylib*
7764         rm -f conftest.*
7765       fi
7766 fi
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7768 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7769
7770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7771 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7772 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7773   $as_echo_n "(cached) " >&6
7774 else
7775   lt_cv_ld_exported_symbols_list=no
7776       save_LDFLAGS=$LDFLAGS
7777       echo "_main" > conftest.sym
7778       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7779       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h.  */
7781
7782 int
7783 main ()
7784 {
7785
7786   ;
7787   return 0;
7788 }
7789 _ACEOF
7790 if ac_fn_c_try_link "$LINENO"; then :
7791   lt_cv_ld_exported_symbols_list=yes
7792 else
7793   lt_cv_ld_exported_symbols_list=no
7794 fi
7795 rm -f core conftest.err conftest.$ac_objext \
7796     conftest$ac_exeext conftest.$ac_ext
7797         LDFLAGS="$save_LDFLAGS"
7798
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7801 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7802
7803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7804 $as_echo_n "checking for -force_load linker flag... " >&6; }
7805 if ${lt_cv_ld_force_load+:} false; then :
7806   $as_echo_n "(cached) " >&6
7807 else
7808   lt_cv_ld_force_load=no
7809       cat > conftest.c << _LT_EOF
7810 int forced_loaded() { return 2;}
7811 _LT_EOF
7812       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7813       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7814       echo "$AR cru libconftest.a conftest.o" >&5
7815       $AR cru libconftest.a conftest.o 2>&5
7816       echo "$RANLIB libconftest.a" >&5
7817       $RANLIB libconftest.a 2>&5
7818       cat > conftest.c << _LT_EOF
7819 int main() { return 0;}
7820 _LT_EOF
7821       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7822       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7823       _lt_result=$?
7824       if test -s conftest.err && $GREP force_load conftest.err; then
7825         cat conftest.err >&5
7826       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7827         lt_cv_ld_force_load=yes
7828       else
7829         cat conftest.err >&5
7830       fi
7831         rm -f conftest.err libconftest.a conftest conftest.c
7832         rm -rf conftest.dSYM
7833
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7836 $as_echo "$lt_cv_ld_force_load" >&6; }
7837     case $host_os in
7838     rhapsody* | darwin1.[012])
7839       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7840     darwin1.*)
7841       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7842     darwin*) # darwin 5.x on
7843       # if running on 10.5 or later, the deployment target defaults
7844       # to the OS version, if on x86, and 10.4, the deployment
7845       # target defaults to 10.4. Don't you love it?
7846       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7847         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7848           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7849         10.[012]*)
7850           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7851         10.*)
7852           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7853       esac
7854     ;;
7855   esac
7856     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7857       _lt_dar_single_mod='$single_module'
7858     fi
7859     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7860       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7861     else
7862       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7863     fi
7864     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7865       _lt_dsymutil='~$DSYMUTIL $lib || :'
7866     else
7867       _lt_dsymutil=
7868     fi
7869     ;;
7870   esac
7871
7872 ac_ext=c
7873 ac_cpp='$CPP $CPPFLAGS'
7874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7878 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7879 # On Suns, sometimes $CPP names a directory.
7880 if test -n "$CPP" && test -d "$CPP"; then
7881   CPP=
7882 fi
7883 if test -z "$CPP"; then
7884   if ${ac_cv_prog_CPP+:} false; then :
7885   $as_echo_n "(cached) " >&6
7886 else
7887       # Double quotes because CPP needs to be expanded
7888     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7889     do
7890       ac_preproc_ok=false
7891 for ac_c_preproc_warn_flag in '' yes
7892 do
7893   # Use a header file that comes with gcc, so configuring glibc
7894   # with a fresh cross-compiler works.
7895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7896   # <limits.h> exists even on freestanding compilers.
7897   # On the NeXT, cc -E runs the code through the compiler's parser,
7898   # not just through cpp. "Syntax error" is here to catch this case.
7899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h.  */
7901 #ifdef __STDC__
7902 # include <limits.h>
7903 #else
7904 # include <assert.h>
7905 #endif
7906                      Syntax error
7907 _ACEOF
7908 if ac_fn_c_try_cpp "$LINENO"; then :
7909
7910 else
7911   # Broken: fails on valid input.
7912 continue
7913 fi
7914 rm -f conftest.err conftest.i conftest.$ac_ext
7915
7916   # OK, works on sane cases.  Now check whether nonexistent headers
7917   # can be detected and how.
7918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h.  */
7920 #include <ac_nonexistent.h>
7921 _ACEOF
7922 if ac_fn_c_try_cpp "$LINENO"; then :
7923   # Broken: success on invalid input.
7924 continue
7925 else
7926   # Passes both tests.
7927 ac_preproc_ok=:
7928 break
7929 fi
7930 rm -f conftest.err conftest.i conftest.$ac_ext
7931
7932 done
7933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7934 rm -f conftest.i conftest.err conftest.$ac_ext
7935 if $ac_preproc_ok; then :
7936   break
7937 fi
7938
7939     done
7940     ac_cv_prog_CPP=$CPP
7941
7942 fi
7943   CPP=$ac_cv_prog_CPP
7944 else
7945   ac_cv_prog_CPP=$CPP
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7948 $as_echo "$CPP" >&6; }
7949 ac_preproc_ok=false
7950 for ac_c_preproc_warn_flag in '' yes
7951 do
7952   # Use a header file that comes with gcc, so configuring glibc
7953   # with a fresh cross-compiler works.
7954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7955   # <limits.h> exists even on freestanding compilers.
7956   # On the NeXT, cc -E runs the code through the compiler's parser,
7957   # not just through cpp. "Syntax error" is here to catch this case.
7958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h.  */
7960 #ifdef __STDC__
7961 # include <limits.h>
7962 #else
7963 # include <assert.h>
7964 #endif
7965                      Syntax error
7966 _ACEOF
7967 if ac_fn_c_try_cpp "$LINENO"; then :
7968
7969 else
7970   # Broken: fails on valid input.
7971 continue
7972 fi
7973 rm -f conftest.err conftest.i conftest.$ac_ext
7974
7975   # OK, works on sane cases.  Now check whether nonexistent headers
7976   # can be detected and how.
7977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h.  */
7979 #include <ac_nonexistent.h>
7980 _ACEOF
7981 if ac_fn_c_try_cpp "$LINENO"; then :
7982   # Broken: success on invalid input.
7983 continue
7984 else
7985   # Passes both tests.
7986 ac_preproc_ok=:
7987 break
7988 fi
7989 rm -f conftest.err conftest.i conftest.$ac_ext
7990
7991 done
7992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7993 rm -f conftest.i conftest.err conftest.$ac_ext
7994 if $ac_preproc_ok; then :
7995
7996 else
7997   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7999 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8000 See \`config.log' for more details" "$LINENO" 5; }
8001 fi
8002
8003 ac_ext=c
8004 ac_cpp='$CPP $CPPFLAGS'
8005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8008
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8011 $as_echo_n "checking for ANSI C header files... " >&6; }
8012 if ${ac_cv_header_stdc+:} false; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h.  */
8017 #include <stdlib.h>
8018 #include <stdarg.h>
8019 #include <string.h>
8020 #include <float.h>
8021
8022 int
8023 main ()
8024 {
8025
8026   ;
8027   return 0;
8028 }
8029 _ACEOF
8030 if ac_fn_c_try_compile "$LINENO"; then :
8031   ac_cv_header_stdc=yes
8032 else
8033   ac_cv_header_stdc=no
8034 fi
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036
8037 if test $ac_cv_header_stdc = yes; then
8038   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h.  */
8041 #include <string.h>
8042
8043 _ACEOF
8044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8045   $EGREP "memchr" >/dev/null 2>&1; then :
8046
8047 else
8048   ac_cv_header_stdc=no
8049 fi
8050 rm -f conftest*
8051
8052 fi
8053
8054 if test $ac_cv_header_stdc = yes; then
8055   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h.  */
8058 #include <stdlib.h>
8059
8060 _ACEOF
8061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8062   $EGREP "free" >/dev/null 2>&1; then :
8063
8064 else
8065   ac_cv_header_stdc=no
8066 fi
8067 rm -f conftest*
8068
8069 fi
8070
8071 if test $ac_cv_header_stdc = yes; then
8072   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8073   if test "$cross_compiling" = yes; then :
8074   :
8075 else
8076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h.  */
8078 #include <ctype.h>
8079 #include <stdlib.h>
8080 #if ((' ' & 0x0FF) == 0x020)
8081 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8082 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8083 #else
8084 # define ISLOWER(c) \
8085                    (('a' <= (c) && (c) <= 'i') \
8086                      || ('j' <= (c) && (c) <= 'r') \
8087                      || ('s' <= (c) && (c) <= 'z'))
8088 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8089 #endif
8090
8091 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8092 int
8093 main ()
8094 {
8095   int i;
8096   for (i = 0; i < 256; i++)
8097     if (XOR (islower (i), ISLOWER (i))
8098         || toupper (i) != TOUPPER (i))
8099       return 2;
8100   return 0;
8101 }
8102 _ACEOF
8103 if ac_fn_c_try_run "$LINENO"; then :
8104
8105 else
8106   ac_cv_header_stdc=no
8107 fi
8108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8109   conftest.$ac_objext conftest.beam conftest.$ac_ext
8110 fi
8111
8112 fi
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8115 $as_echo "$ac_cv_header_stdc" >&6; }
8116 if test $ac_cv_header_stdc = yes; then
8117
8118 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8119
8120 fi
8121
8122 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8123 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8124                   inttypes.h stdint.h unistd.h
8125 do :
8126   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8127 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8128 "
8129 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8130   cat >>confdefs.h <<_ACEOF
8131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8132 _ACEOF
8133
8134 fi
8135
8136 done
8137
8138
8139 for ac_header in dlfcn.h
8140 do :
8141   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8142 "
8143 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8144   cat >>confdefs.h <<_ACEOF
8145 #define HAVE_DLFCN_H 1
8146 _ACEOF
8147
8148 fi
8149
8150 done
8151
8152
8153
8154
8155 func_stripname_cnf ()
8156 {
8157   case ${2} in
8158   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8159   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8160   esac
8161 } # func_stripname_cnf
8162
8163
8164
8165
8166
8167 # Set options
8168
8169
8170
8171         enable_dlopen=no
8172
8173
8174   enable_win32_dll=no
8175
8176
8177             # Check whether --enable-shared was given.
8178 if test "${enable_shared+set}" = set; then :
8179   enableval=$enable_shared; p=${PACKAGE-default}
8180     case $enableval in
8181     yes) enable_shared=yes ;;
8182     no) enable_shared=no ;;
8183     *)
8184       enable_shared=no
8185       # Look at the argument we got.  We use all the common list separators.
8186       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8187       for pkg in $enableval; do
8188         IFS="$lt_save_ifs"
8189         if test "X$pkg" = "X$p"; then
8190           enable_shared=yes
8191         fi
8192       done
8193       IFS="$lt_save_ifs"
8194       ;;
8195     esac
8196 else
8197   enable_shared=yes
8198 fi
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210 # Check whether --with-pic was given.
8211 if test "${with_pic+set}" = set; then :
8212   withval=$with_pic; lt_p=${PACKAGE-default}
8213     case $withval in
8214     yes|no) pic_mode=$withval ;;
8215     *)
8216       pic_mode=default
8217       # Look at the argument we got.  We use all the common list separators.
8218       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8219       for lt_pkg in $withval; do
8220         IFS="$lt_save_ifs"
8221         if test "X$lt_pkg" = "X$lt_p"; then
8222           pic_mode=yes
8223         fi
8224       done
8225       IFS="$lt_save_ifs"
8226       ;;
8227     esac
8228 else
8229   pic_mode=default
8230 fi
8231
8232
8233 test -z "$pic_mode" && pic_mode=default
8234
8235
8236
8237
8238
8239
8240
8241   # Check whether --enable-fast-install was given.
8242 if test "${enable_fast_install+set}" = set; then :
8243   enableval=$enable_fast_install; p=${PACKAGE-default}
8244     case $enableval in
8245     yes) enable_fast_install=yes ;;
8246     no) enable_fast_install=no ;;
8247     *)
8248       enable_fast_install=no
8249       # Look at the argument we got.  We use all the common list separators.
8250       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8251       for pkg in $enableval; do
8252         IFS="$lt_save_ifs"
8253         if test "X$pkg" = "X$p"; then
8254           enable_fast_install=yes
8255         fi
8256       done
8257       IFS="$lt_save_ifs"
8258       ;;
8259     esac
8260 else
8261   enable_fast_install=yes
8262 fi
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274 # This can be used to rebuild libtool when needed
8275 LIBTOOL_DEPS="$ltmain"
8276
8277 # Always use our own libtool.
8278 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309 test -z "$LN_S" && LN_S="ln -s"
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324 if test -n "${ZSH_VERSION+set}" ; then
8325    setopt NO_GLOB_SUBST
8326 fi
8327
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8329 $as_echo_n "checking for objdir... " >&6; }
8330 if ${lt_cv_objdir+:} false; then :
8331   $as_echo_n "(cached) " >&6
8332 else
8333   rm -f .libs 2>/dev/null
8334 mkdir .libs 2>/dev/null
8335 if test -d .libs; then
8336   lt_cv_objdir=.libs
8337 else
8338   # MS-DOS does not allow filenames that begin with a dot.
8339   lt_cv_objdir=_libs
8340 fi
8341 rmdir .libs 2>/dev/null
8342 fi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8344 $as_echo "$lt_cv_objdir" >&6; }
8345 objdir=$lt_cv_objdir
8346
8347
8348
8349
8350
8351 cat >>confdefs.h <<_ACEOF
8352 #define LT_OBJDIR "$lt_cv_objdir/"
8353 _ACEOF
8354
8355
8356
8357
8358 case $host_os in
8359 aix3*)
8360   # AIX sometimes has problems with the GCC collect2 program.  For some
8361   # reason, if we set the COLLECT_NAMES environment variable, the problems
8362   # vanish in a puff of smoke.
8363   if test "X${COLLECT_NAMES+set}" != Xset; then
8364     COLLECT_NAMES=
8365     export COLLECT_NAMES
8366   fi
8367   ;;
8368 esac
8369
8370 # Global variables:
8371 ofile=libtool
8372 can_build_shared=yes
8373
8374 # All known linkers require a `.a' archive for static linking (except MSVC,
8375 # which needs '.lib').
8376 libext=a
8377
8378 with_gnu_ld="$lt_cv_prog_gnu_ld"
8379
8380 old_CC="$CC"
8381 old_CFLAGS="$CFLAGS"
8382
8383 # Set sane defaults for various variables
8384 test -z "$CC" && CC=cc
8385 test -z "$LTCC" && LTCC=$CC
8386 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8387 test -z "$LD" && LD=ld
8388 test -z "$ac_objext" && ac_objext=o
8389
8390 for cc_temp in $compiler""; do
8391   case $cc_temp in
8392     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8393     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8394     \-*) ;;
8395     *) break;;
8396   esac
8397 done
8398 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8399
8400
8401 # Only perform the check for file, if the check method requires it
8402 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8403 case $deplibs_check_method in
8404 file_magic*)
8405   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8407 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8408 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8409   $as_echo_n "(cached) " >&6
8410 else
8411   case $MAGIC_CMD in
8412 [\\/*] |  ?:[\\/]*)
8413   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8414   ;;
8415 *)
8416   lt_save_MAGIC_CMD="$MAGIC_CMD"
8417   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8418   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8419   for ac_dir in $ac_dummy; do
8420     IFS="$lt_save_ifs"
8421     test -z "$ac_dir" && ac_dir=.
8422     if test -f $ac_dir/${ac_tool_prefix}file; then
8423       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8424       if test -n "$file_magic_test_file"; then
8425         case $deplibs_check_method in
8426         "file_magic "*)
8427           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8428           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8429           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8430             $EGREP "$file_magic_regex" > /dev/null; then
8431             :
8432           else
8433             cat <<_LT_EOF 1>&2
8434
8435 *** Warning: the command libtool uses to detect shared libraries,
8436 *** $file_magic_cmd, produces output that libtool cannot recognize.
8437 *** The result is that libtool may fail to recognize shared libraries
8438 *** as such.  This will affect the creation of libtool libraries that
8439 *** depend on shared libraries, but programs linked with such libtool
8440 *** libraries will work regardless of this problem.  Nevertheless, you
8441 *** may want to report the problem to your system manager and/or to
8442 *** bug-libtool@gnu.org
8443
8444 _LT_EOF
8445           fi ;;
8446         esac
8447       fi
8448       break
8449     fi
8450   done
8451   IFS="$lt_save_ifs"
8452   MAGIC_CMD="$lt_save_MAGIC_CMD"
8453   ;;
8454 esac
8455 fi
8456
8457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8458 if test -n "$MAGIC_CMD"; then
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8460 $as_echo "$MAGIC_CMD" >&6; }
8461 else
8462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8464 fi
8465
8466
8467
8468
8469
8470 if test -z "$lt_cv_path_MAGIC_CMD"; then
8471   if test -n "$ac_tool_prefix"; then
8472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8473 $as_echo_n "checking for file... " >&6; }
8474 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8475   $as_echo_n "(cached) " >&6
8476 else
8477   case $MAGIC_CMD in
8478 [\\/*] |  ?:[\\/]*)
8479   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8480   ;;
8481 *)
8482   lt_save_MAGIC_CMD="$MAGIC_CMD"
8483   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8484   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8485   for ac_dir in $ac_dummy; do
8486     IFS="$lt_save_ifs"
8487     test -z "$ac_dir" && ac_dir=.
8488     if test -f $ac_dir/file; then
8489       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8490       if test -n "$file_magic_test_file"; then
8491         case $deplibs_check_method in
8492         "file_magic "*)
8493           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8494           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8495           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8496             $EGREP "$file_magic_regex" > /dev/null; then
8497             :
8498           else
8499             cat <<_LT_EOF 1>&2
8500
8501 *** Warning: the command libtool uses to detect shared libraries,
8502 *** $file_magic_cmd, produces output that libtool cannot recognize.
8503 *** The result is that libtool may fail to recognize shared libraries
8504 *** as such.  This will affect the creation of libtool libraries that
8505 *** depend on shared libraries, but programs linked with such libtool
8506 *** libraries will work regardless of this problem.  Nevertheless, you
8507 *** may want to report the problem to your system manager and/or to
8508 *** bug-libtool@gnu.org
8509
8510 _LT_EOF
8511           fi ;;
8512         esac
8513       fi
8514       break
8515     fi
8516   done
8517   IFS="$lt_save_ifs"
8518   MAGIC_CMD="$lt_save_MAGIC_CMD"
8519   ;;
8520 esac
8521 fi
8522
8523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8524 if test -n "$MAGIC_CMD"; then
8525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8526 $as_echo "$MAGIC_CMD" >&6; }
8527 else
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8530 fi
8531
8532
8533   else
8534     MAGIC_CMD=:
8535   fi
8536 fi
8537
8538   fi
8539   ;;
8540 esac
8541
8542 # Use C for the default configuration in the libtool script
8543
8544 lt_save_CC="$CC"
8545 ac_ext=c
8546 ac_cpp='$CPP $CPPFLAGS'
8547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8550
8551
8552 # Source file extension for C test sources.
8553 ac_ext=c
8554
8555 # Object file extension for compiled C test sources.
8556 objext=o
8557 objext=$objext
8558
8559 # Code to be used in simple compile tests
8560 lt_simple_compile_test_code="int some_variable = 0;"
8561
8562 # Code to be used in simple link tests
8563 lt_simple_link_test_code='int main(){return(0);}'
8564
8565
8566
8567
8568
8569
8570
8571 # If no C compiler was specified, use CC.
8572 LTCC=${LTCC-"$CC"}
8573
8574 # If no C compiler flags were specified, use CFLAGS.
8575 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8576
8577 # Allow CC to be a program name with arguments.
8578 compiler=$CC
8579
8580 # Save the default compiler, since it gets overwritten when the other
8581 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8582 compiler_DEFAULT=$CC
8583
8584 # save warnings/boilerplate of simple test code
8585 ac_outfile=conftest.$ac_objext
8586 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8587 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8588 _lt_compiler_boilerplate=`cat conftest.err`
8589 $RM conftest*
8590
8591 ac_outfile=conftest.$ac_objext
8592 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8593 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8594 _lt_linker_boilerplate=`cat conftest.err`
8595 $RM -r conftest*
8596
8597
8598 ## CAVEAT EMPTOR:
8599 ## There is no encapsulation within the following macros, do not change
8600 ## the running order or otherwise move them around unless you know exactly
8601 ## what you are doing...
8602 if test -n "$compiler"; then
8603
8604 lt_prog_compiler_no_builtin_flag=
8605
8606 if test "$GCC" = yes; then
8607   case $cc_basename in
8608   nvcc*)
8609     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8610   *)
8611     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8612   esac
8613
8614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8615 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8616 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8617   $as_echo_n "(cached) " >&6
8618 else
8619   lt_cv_prog_compiler_rtti_exceptions=no
8620    ac_outfile=conftest.$ac_objext
8621    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8622    lt_compiler_flag="-fno-rtti -fno-exceptions"
8623    # Insert the option either (1) after the last *FLAGS variable, or
8624    # (2) before a word containing "conftest.", or (3) at the end.
8625    # Note that $ac_compile itself does not contain backslashes and begins
8626    # with a dollar sign (not a hyphen), so the echo should work correctly.
8627    # The option is referenced via a variable to avoid confusing sed.
8628    lt_compile=`echo "$ac_compile" | $SED \
8629    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8631    -e 's:$: $lt_compiler_flag:'`
8632    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8633    (eval "$lt_compile" 2>conftest.err)
8634    ac_status=$?
8635    cat conftest.err >&5
8636    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637    if (exit $ac_status) && test -s "$ac_outfile"; then
8638      # The compiler can only warn and ignore the option if not recognized
8639      # So say no if there are warnings other than the usual output.
8640      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8641      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8642      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8643        lt_cv_prog_compiler_rtti_exceptions=yes
8644      fi
8645    fi
8646    $RM conftest*
8647
8648 fi
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8650 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8651
8652 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8653     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8654 else
8655     :
8656 fi
8657
8658 fi
8659
8660
8661
8662
8663
8664
8665   lt_prog_compiler_wl=
8666 lt_prog_compiler_pic=
8667 lt_prog_compiler_static=
8668
8669
8670   if test "$GCC" = yes; then
8671     lt_prog_compiler_wl='-Wl,'
8672     lt_prog_compiler_static='-static'
8673
8674     case $host_os in
8675       aix*)
8676       # All AIX code is PIC.
8677       if test "$host_cpu" = ia64; then
8678         # AIX 5 now supports IA64 processor
8679         lt_prog_compiler_static='-Bstatic'
8680       fi
8681       ;;
8682
8683     amigaos*)
8684       case $host_cpu in
8685       powerpc)
8686             # see comment about AmigaOS4 .so support
8687             lt_prog_compiler_pic='-fPIC'
8688         ;;
8689       m68k)
8690             # FIXME: we need at least 68020 code to build shared libraries, but
8691             # adding the `-m68020' flag to GCC prevents building anything better,
8692             # like `-m68040'.
8693             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8694         ;;
8695       esac
8696       ;;
8697
8698     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8699       # PIC is the default for these OSes.
8700       ;;
8701
8702     mingw* | cygwin* | pw32* | os2* | cegcc*)
8703       # This hack is so that the source file can tell whether it is being
8704       # built for inclusion in a dll (and should export symbols for example).
8705       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8706       # (--disable-auto-import) libraries
8707       lt_prog_compiler_pic='-DDLL_EXPORT'
8708       ;;
8709
8710     darwin* | rhapsody*)
8711       # PIC is the default on this platform
8712       # Common symbols not allowed in MH_DYLIB files
8713       lt_prog_compiler_pic='-fno-common'
8714       ;;
8715
8716     haiku*)
8717       # PIC is the default for Haiku.
8718       # The "-static" flag exists, but is broken.
8719       lt_prog_compiler_static=
8720       ;;
8721
8722     hpux*)
8723       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8724       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8725       # sets the default TLS model and affects inlining.
8726       case $host_cpu in
8727       hppa*64*)
8728         # +Z the default
8729         ;;
8730       *)
8731         lt_prog_compiler_pic='-fPIC'
8732         ;;
8733       esac
8734       ;;
8735
8736     interix[3-9]*)
8737       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8738       # Instead, we relocate shared libraries at runtime.
8739       ;;
8740
8741     msdosdjgpp*)
8742       # Just because we use GCC doesn't mean we suddenly get shared libraries
8743       # on systems that don't support them.
8744       lt_prog_compiler_can_build_shared=no
8745       enable_shared=no
8746       ;;
8747
8748     *nto* | *qnx*)
8749       # QNX uses GNU C++, but need to define -shared option too, otherwise
8750       # it will coredump.
8751       lt_prog_compiler_pic='-fPIC -shared'
8752       ;;
8753
8754     sysv4*MP*)
8755       if test -d /usr/nec; then
8756         lt_prog_compiler_pic=-Kconform_pic
8757       fi
8758       ;;
8759
8760     *)
8761       lt_prog_compiler_pic='-fPIC'
8762       ;;
8763     esac
8764
8765     case $cc_basename in
8766     nvcc*) # Cuda Compiler Driver 2.2
8767       lt_prog_compiler_wl='-Xlinker '
8768       if test -n "$lt_prog_compiler_pic"; then
8769         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8770       fi
8771       ;;
8772     esac
8773   else
8774     # PORTME Check for flag to pass linker flags through the system compiler.
8775     case $host_os in
8776     aix*)
8777       lt_prog_compiler_wl='-Wl,'
8778       if test "$host_cpu" = ia64; then
8779         # AIX 5 now supports IA64 processor
8780         lt_prog_compiler_static='-Bstatic'
8781       else
8782         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8783       fi
8784       ;;
8785
8786     mingw* | cygwin* | pw32* | os2* | cegcc*)
8787       # This hack is so that the source file can tell whether it is being
8788       # built for inclusion in a dll (and should export symbols for example).
8789       lt_prog_compiler_pic='-DDLL_EXPORT'
8790       ;;
8791
8792     hpux9* | hpux10* | hpux11*)
8793       lt_prog_compiler_wl='-Wl,'
8794       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8795       # not for PA HP-UX.
8796       case $host_cpu in
8797       hppa*64*|ia64*)
8798         # +Z the default
8799         ;;
8800       *)
8801         lt_prog_compiler_pic='+Z'
8802         ;;
8803       esac
8804       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8805       lt_prog_compiler_static='${wl}-a ${wl}archive'
8806       ;;
8807
8808     irix5* | irix6* | nonstopux*)
8809       lt_prog_compiler_wl='-Wl,'
8810       # PIC (with -KPIC) is the default.
8811       lt_prog_compiler_static='-non_shared'
8812       ;;
8813
8814     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8815       case $cc_basename in
8816       # old Intel for x86_64 which still supported -KPIC.
8817       ecc*)
8818         lt_prog_compiler_wl='-Wl,'
8819         lt_prog_compiler_pic='-KPIC'
8820         lt_prog_compiler_static='-static'
8821         ;;
8822       # icc used to be incompatible with GCC.
8823       # ICC 10 doesn't accept -KPIC any more.
8824       icc* | ifort*)
8825         lt_prog_compiler_wl='-Wl,'
8826         lt_prog_compiler_pic='-fPIC'
8827         lt_prog_compiler_static='-static'
8828         ;;
8829       # Lahey Fortran 8.1.
8830       lf95*)
8831         lt_prog_compiler_wl='-Wl,'
8832         lt_prog_compiler_pic='--shared'
8833         lt_prog_compiler_static='--static'
8834         ;;
8835       nagfor*)
8836         # NAG Fortran compiler
8837         lt_prog_compiler_wl='-Wl,-Wl,,'
8838         lt_prog_compiler_pic='-PIC'
8839         lt_prog_compiler_static='-Bstatic'
8840         ;;
8841       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8842         # Portland Group compilers (*not* the Pentium gcc compiler,
8843         # which looks to be a dead project)
8844         lt_prog_compiler_wl='-Wl,'
8845         lt_prog_compiler_pic='-fpic'
8846         lt_prog_compiler_static='-Bstatic'
8847         ;;
8848       ccc*)
8849         lt_prog_compiler_wl='-Wl,'
8850         # All Alpha code is PIC.
8851         lt_prog_compiler_static='-non_shared'
8852         ;;
8853       xl* | bgxl* | bgf* | mpixl*)
8854         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8855         lt_prog_compiler_wl='-Wl,'
8856         lt_prog_compiler_pic='-qpic'
8857         lt_prog_compiler_static='-qstaticlink'
8858         ;;
8859       *)
8860         case `$CC -V 2>&1 | sed 5q` in
8861         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8862           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8863           lt_prog_compiler_pic='-KPIC'
8864           lt_prog_compiler_static='-Bstatic'
8865           lt_prog_compiler_wl=''
8866           ;;
8867         *Sun\ F* | *Sun*Fortran*)
8868           lt_prog_compiler_pic='-KPIC'
8869           lt_prog_compiler_static='-Bstatic'
8870           lt_prog_compiler_wl='-Qoption ld '
8871           ;;
8872         *Sun\ C*)
8873           # Sun C 5.9
8874           lt_prog_compiler_pic='-KPIC'
8875           lt_prog_compiler_static='-Bstatic'
8876           lt_prog_compiler_wl='-Wl,'
8877           ;;
8878         *Intel*\ [CF]*Compiler*)
8879           lt_prog_compiler_wl='-Wl,'
8880           lt_prog_compiler_pic='-fPIC'
8881           lt_prog_compiler_static='-static'
8882           ;;
8883         *Portland\ Group*)
8884           lt_prog_compiler_wl='-Wl,'
8885           lt_prog_compiler_pic='-fpic'
8886           lt_prog_compiler_static='-Bstatic'
8887           ;;
8888         esac
8889         ;;
8890       esac
8891       ;;
8892
8893     newsos6)
8894       lt_prog_compiler_pic='-KPIC'
8895       lt_prog_compiler_static='-Bstatic'
8896       ;;
8897
8898     *nto* | *qnx*)
8899       # QNX uses GNU C++, but need to define -shared option too, otherwise
8900       # it will coredump.
8901       lt_prog_compiler_pic='-fPIC -shared'
8902       ;;
8903
8904     osf3* | osf4* | osf5*)
8905       lt_prog_compiler_wl='-Wl,'
8906       # All OSF/1 code is PIC.
8907       lt_prog_compiler_static='-non_shared'
8908       ;;
8909
8910     rdos*)
8911       lt_prog_compiler_static='-non_shared'
8912       ;;
8913
8914     solaris*)
8915       lt_prog_compiler_pic='-KPIC'
8916       lt_prog_compiler_static='-Bstatic'
8917       case $cc_basename in
8918       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8919         lt_prog_compiler_wl='-Qoption ld ';;
8920       *)
8921         lt_prog_compiler_wl='-Wl,';;
8922       esac
8923       ;;
8924
8925     sunos4*)
8926       lt_prog_compiler_wl='-Qoption ld '
8927       lt_prog_compiler_pic='-PIC'
8928       lt_prog_compiler_static='-Bstatic'
8929       ;;
8930
8931     sysv4 | sysv4.2uw2* | sysv4.3*)
8932       lt_prog_compiler_wl='-Wl,'
8933       lt_prog_compiler_pic='-KPIC'
8934       lt_prog_compiler_static='-Bstatic'
8935       ;;
8936
8937     sysv4*MP*)
8938       if test -d /usr/nec ;then
8939         lt_prog_compiler_pic='-Kconform_pic'
8940         lt_prog_compiler_static='-Bstatic'
8941       fi
8942       ;;
8943
8944     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8945       lt_prog_compiler_wl='-Wl,'
8946       lt_prog_compiler_pic='-KPIC'
8947       lt_prog_compiler_static='-Bstatic'
8948       ;;
8949
8950     unicos*)
8951       lt_prog_compiler_wl='-Wl,'
8952       lt_prog_compiler_can_build_shared=no
8953       ;;
8954
8955     uts4*)
8956       lt_prog_compiler_pic='-pic'
8957       lt_prog_compiler_static='-Bstatic'
8958       ;;
8959
8960     *)
8961       lt_prog_compiler_can_build_shared=no
8962       ;;
8963     esac
8964   fi
8965
8966 case $host_os in
8967   # For platforms which do not support PIC, -DPIC is meaningless:
8968   *djgpp*)
8969     lt_prog_compiler_pic=
8970     ;;
8971   *)
8972     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8973     ;;
8974 esac
8975
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8977 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8978 if ${lt_cv_prog_compiler_pic+:} false; then :
8979   $as_echo_n "(cached) " >&6
8980 else
8981   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8982 fi
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8984 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8985 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8986
8987 #
8988 # Check to make sure the PIC flag actually works.
8989 #
8990 if test -n "$lt_prog_compiler_pic"; then
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8992 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8993 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   lt_cv_prog_compiler_pic_works=no
8997    ac_outfile=conftest.$ac_objext
8998    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8999    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9000    # Insert the option either (1) after the last *FLAGS variable, or
9001    # (2) before a word containing "conftest.", or (3) at the end.
9002    # Note that $ac_compile itself does not contain backslashes and begins
9003    # with a dollar sign (not a hyphen), so the echo should work correctly.
9004    # The option is referenced via a variable to avoid confusing sed.
9005    lt_compile=`echo "$ac_compile" | $SED \
9006    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9007    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9008    -e 's:$: $lt_compiler_flag:'`
9009    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9010    (eval "$lt_compile" 2>conftest.err)
9011    ac_status=$?
9012    cat conftest.err >&5
9013    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014    if (exit $ac_status) && test -s "$ac_outfile"; then
9015      # The compiler can only warn and ignore the option if not recognized
9016      # So say no if there are warnings other than the usual output.
9017      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9018      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9019      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9020        lt_cv_prog_compiler_pic_works=yes
9021      fi
9022    fi
9023    $RM conftest*
9024
9025 fi
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9027 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9028
9029 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9030     case $lt_prog_compiler_pic in
9031      "" | " "*) ;;
9032      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9033      esac
9034 else
9035     lt_prog_compiler_pic=
9036      lt_prog_compiler_can_build_shared=no
9037 fi
9038
9039 fi
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051 #
9052 # Check to make sure the static flag actually works.
9053 #
9054 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9056 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9057 if ${lt_cv_prog_compiler_static_works+:} false; then :
9058   $as_echo_n "(cached) " >&6
9059 else
9060   lt_cv_prog_compiler_static_works=no
9061    save_LDFLAGS="$LDFLAGS"
9062    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9063    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9064    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9065      # The linker can only warn and ignore the option if not recognized
9066      # So say no if there are warnings
9067      if test -s conftest.err; then
9068        # Append any errors to the config.log.
9069        cat conftest.err 1>&5
9070        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9071        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9072        if diff conftest.exp conftest.er2 >/dev/null; then
9073          lt_cv_prog_compiler_static_works=yes
9074        fi
9075      else
9076        lt_cv_prog_compiler_static_works=yes
9077      fi
9078    fi
9079    $RM -r conftest*
9080    LDFLAGS="$save_LDFLAGS"
9081
9082 fi
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9084 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9085
9086 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9087     :
9088 else
9089     lt_prog_compiler_static=
9090 fi
9091
9092
9093
9094
9095
9096
9097
9098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9099 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9100 if ${lt_cv_prog_compiler_c_o+:} false; then :
9101   $as_echo_n "(cached) " >&6
9102 else
9103   lt_cv_prog_compiler_c_o=no
9104    $RM -r conftest 2>/dev/null
9105    mkdir conftest
9106    cd conftest
9107    mkdir out
9108    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9109
9110    lt_compiler_flag="-o out/conftest2.$ac_objext"
9111    # Insert the option either (1) after the last *FLAGS variable, or
9112    # (2) before a word containing "conftest.", or (3) at the end.
9113    # Note that $ac_compile itself does not contain backslashes and begins
9114    # with a dollar sign (not a hyphen), so the echo should work correctly.
9115    lt_compile=`echo "$ac_compile" | $SED \
9116    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9117    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9118    -e 's:$: $lt_compiler_flag:'`
9119    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9120    (eval "$lt_compile" 2>out/conftest.err)
9121    ac_status=$?
9122    cat out/conftest.err >&5
9123    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9125    then
9126      # The compiler can only warn and ignore the option if not recognized
9127      # So say no if there are warnings
9128      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9129      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9130      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9131        lt_cv_prog_compiler_c_o=yes
9132      fi
9133    fi
9134    chmod u+w . 2>&5
9135    $RM conftest*
9136    # SGI C++ compiler will create directory out/ii_files/ for
9137    # template instantiation
9138    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9139    $RM out/* && rmdir out
9140    cd ..
9141    $RM -r conftest
9142    $RM conftest*
9143
9144 fi
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9146 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9147
9148
9149
9150
9151
9152
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9154 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9155 if ${lt_cv_prog_compiler_c_o+:} false; then :
9156   $as_echo_n "(cached) " >&6
9157 else
9158   lt_cv_prog_compiler_c_o=no
9159    $RM -r conftest 2>/dev/null
9160    mkdir conftest
9161    cd conftest
9162    mkdir out
9163    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9164
9165    lt_compiler_flag="-o out/conftest2.$ac_objext"
9166    # Insert the option either (1) after the last *FLAGS variable, or
9167    # (2) before a word containing "conftest.", or (3) at the end.
9168    # Note that $ac_compile itself does not contain backslashes and begins
9169    # with a dollar sign (not a hyphen), so the echo should work correctly.
9170    lt_compile=`echo "$ac_compile" | $SED \
9171    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9172    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9173    -e 's:$: $lt_compiler_flag:'`
9174    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9175    (eval "$lt_compile" 2>out/conftest.err)
9176    ac_status=$?
9177    cat out/conftest.err >&5
9178    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9180    then
9181      # The compiler can only warn and ignore the option if not recognized
9182      # So say no if there are warnings
9183      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9184      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9185      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9186        lt_cv_prog_compiler_c_o=yes
9187      fi
9188    fi
9189    chmod u+w . 2>&5
9190    $RM conftest*
9191    # SGI C++ compiler will create directory out/ii_files/ for
9192    # template instantiation
9193    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9194    $RM out/* && rmdir out
9195    cd ..
9196    $RM -r conftest
9197    $RM conftest*
9198
9199 fi
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9201 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9202
9203
9204
9205
9206 hard_links="nottested"
9207 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9208   # do not overwrite the value of need_locks provided by the user
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9210 $as_echo_n "checking if we can lock with hard links... " >&6; }
9211   hard_links=yes
9212   $RM conftest*
9213   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9214   touch conftest.a
9215   ln conftest.a conftest.b 2>&5 || hard_links=no
9216   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9218 $as_echo "$hard_links" >&6; }
9219   if test "$hard_links" = no; then
9220     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9221 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9222     need_locks=warn
9223   fi
9224 else
9225   need_locks=no
9226 fi
9227
9228
9229
9230
9231
9232
9233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9234 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9235
9236   runpath_var=
9237   allow_undefined_flag=
9238   always_export_symbols=no
9239   archive_cmds=
9240   archive_expsym_cmds=
9241   compiler_needs_object=no
9242   enable_shared_with_static_runtimes=no
9243   export_dynamic_flag_spec=
9244   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9245   hardcode_automatic=no
9246   hardcode_direct=no
9247   hardcode_direct_absolute=no
9248   hardcode_libdir_flag_spec=
9249   hardcode_libdir_separator=
9250   hardcode_minus_L=no
9251   hardcode_shlibpath_var=unsupported
9252   inherit_rpath=no
9253   link_all_deplibs=unknown
9254   module_cmds=
9255   module_expsym_cmds=
9256   old_archive_from_new_cmds=
9257   old_archive_from_expsyms_cmds=
9258   thread_safe_flag_spec=
9259   whole_archive_flag_spec=
9260   # include_expsyms should be a list of space-separated symbols to be *always*
9261   # included in the symbol list
9262   include_expsyms=
9263   # exclude_expsyms can be an extended regexp of symbols to exclude
9264   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9265   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9266   # as well as any symbol that contains `d'.
9267   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9268   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9269   # platforms (ab)use it in PIC code, but their linkers get confused if
9270   # the symbol is explicitly referenced.  Since portable code cannot
9271   # rely on this symbol name, it's probably fine to never include it in
9272   # preloaded symbol tables.
9273   # Exclude shared library initialization/finalization symbols.
9274   extract_expsyms_cmds=
9275
9276   case $host_os in
9277   cygwin* | mingw* | pw32* | cegcc*)
9278     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9279     # When not using gcc, we currently assume that we are using
9280     # Microsoft Visual C++.
9281     if test "$GCC" != yes; then
9282       with_gnu_ld=no
9283     fi
9284     ;;
9285   interix*)
9286     # we just hope/assume this is gcc and not c89 (= MSVC++)
9287     with_gnu_ld=yes
9288     ;;
9289   openbsd*)
9290     with_gnu_ld=no
9291     ;;
9292   linux* | k*bsd*-gnu | gnu*)
9293     link_all_deplibs=no
9294     ;;
9295   esac
9296
9297   ld_shlibs=yes
9298
9299   # On some targets, GNU ld is compatible enough with the native linker
9300   # that we're better off using the native interface for both.
9301   lt_use_gnu_ld_interface=no
9302   if test "$with_gnu_ld" = yes; then
9303     case $host_os in
9304       aix*)
9305         # The AIX port of GNU ld has always aspired to compatibility
9306         # with the native linker.  However, as the warning in the GNU ld
9307         # block says, versions before 2.19.5* couldn't really create working
9308         # shared libraries, regardless of the interface used.
9309         case `$LD -v 2>&1` in
9310           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9311           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9312           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9313           *)
9314             lt_use_gnu_ld_interface=yes
9315             ;;
9316         esac
9317         ;;
9318       *)
9319         lt_use_gnu_ld_interface=yes
9320         ;;
9321     esac
9322   fi
9323
9324   if test "$lt_use_gnu_ld_interface" = yes; then
9325     # If archive_cmds runs LD, not CC, wlarc should be empty
9326     wlarc='${wl}'
9327
9328     # Set some defaults for GNU ld with shared library support. These
9329     # are reset later if shared libraries are not supported. Putting them
9330     # here allows them to be overridden if necessary.
9331     runpath_var=LD_RUN_PATH
9332     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9333     export_dynamic_flag_spec='${wl}--export-dynamic'
9334     # ancient GNU ld didn't support --whole-archive et. al.
9335     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9336       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9337     else
9338       whole_archive_flag_spec=
9339     fi
9340     supports_anon_versioning=no
9341     case `$LD -v 2>&1` in
9342       *GNU\ gold*) supports_anon_versioning=yes ;;
9343       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9344       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9345       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9346       *\ 2.11.*) ;; # other 2.11 versions
9347       *) supports_anon_versioning=yes ;;
9348     esac
9349
9350     # See if GNU ld supports shared libraries.
9351     case $host_os in
9352     aix[3-9]*)
9353       # On AIX/PPC, the GNU linker is very broken
9354       if test "$host_cpu" != ia64; then
9355         ld_shlibs=no
9356         cat <<_LT_EOF 1>&2
9357
9358 *** Warning: the GNU linker, at least up to release 2.19, is reported
9359 *** to be unable to reliably create shared libraries on AIX.
9360 *** Therefore, libtool is disabling shared libraries support.  If you
9361 *** really care for shared libraries, you may want to install binutils
9362 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9363 *** You will then need to restart the configuration process.
9364
9365 _LT_EOF
9366       fi
9367       ;;
9368
9369     amigaos*)
9370       case $host_cpu in
9371       powerpc)
9372             # see comment about AmigaOS4 .so support
9373             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374             archive_expsym_cmds=''
9375         ;;
9376       m68k)
9377             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)'
9378             hardcode_libdir_flag_spec='-L$libdir'
9379             hardcode_minus_L=yes
9380         ;;
9381       esac
9382       ;;
9383
9384     beos*)
9385       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9386         allow_undefined_flag=unsupported
9387         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9388         # support --undefined.  This deserves some investigation.  FIXME
9389         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9390       else
9391         ld_shlibs=no
9392       fi
9393       ;;
9394
9395     cygwin* | mingw* | pw32* | cegcc*)
9396       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9397       # as there is no search path for DLLs.
9398       hardcode_libdir_flag_spec='-L$libdir'
9399       export_dynamic_flag_spec='${wl}--export-all-symbols'
9400       allow_undefined_flag=unsupported
9401       always_export_symbols=no
9402       enable_shared_with_static_runtimes=yes
9403       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'
9404       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9405
9406       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9407         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9408         # If the export-symbols file already is a .def file (1st line
9409         # is EXPORTS), use it as is; otherwise, prepend...
9410         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9411           cp $export_symbols $output_objdir/$soname.def;
9412         else
9413           echo EXPORTS > $output_objdir/$soname.def;
9414           cat $export_symbols >> $output_objdir/$soname.def;
9415         fi~
9416         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9417       else
9418         ld_shlibs=no
9419       fi
9420       ;;
9421
9422     haiku*)
9423       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424       link_all_deplibs=yes
9425       ;;
9426
9427     interix[3-9]*)
9428       hardcode_direct=no
9429       hardcode_shlibpath_var=no
9430       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9431       export_dynamic_flag_spec='${wl}-E'
9432       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9433       # Instead, shared libraries are loaded at an image base (0x10000000 by
9434       # default) and relocated if they conflict, which is a slow very memory
9435       # consuming and fragmenting process.  To avoid this, we pick a random,
9436       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9437       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9438       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9439       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'
9440       ;;
9441
9442     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9443       tmp_diet=no
9444       if test "$host_os" = linux-dietlibc; then
9445         case $cc_basename in
9446           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9447         esac
9448       fi
9449       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9450          && test "$tmp_diet" = no
9451       then
9452         tmp_addflag=' $pic_flag'
9453         tmp_sharedflag='-shared'
9454         case $cc_basename,$host_cpu in
9455         pgcc*)                          # Portland Group C compiler
9456           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'
9457           tmp_addflag=' $pic_flag'
9458           ;;
9459         pgf77* | pgf90* | pgf95* | pgfortran*)
9460                                         # Portland Group f77 and f90 compilers
9461           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'
9462           tmp_addflag=' $pic_flag -Mnomain' ;;
9463         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9464           tmp_addflag=' -i_dynamic' ;;
9465         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9466           tmp_addflag=' -i_dynamic -nofor_main' ;;
9467         ifc* | ifort*)                  # Intel Fortran compiler
9468           tmp_addflag=' -nofor_main' ;;
9469         lf95*)                          # Lahey Fortran 8.1
9470           whole_archive_flag_spec=
9471           tmp_sharedflag='--shared' ;;
9472         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9473           tmp_sharedflag='-qmkshrobj'
9474           tmp_addflag= ;;
9475         nvcc*)  # Cuda Compiler Driver 2.2
9476           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'
9477           compiler_needs_object=yes
9478           ;;
9479         esac
9480         case `$CC -V 2>&1 | sed 5q` in
9481         *Sun\ C*)                       # Sun C 5.9
9482           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'
9483           compiler_needs_object=yes
9484           tmp_sharedflag='-G' ;;
9485         *Sun\ F*)                       # Sun Fortran 8.3
9486           tmp_sharedflag='-G' ;;
9487         esac
9488         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9489
9490         if test "x$supports_anon_versioning" = xyes; then
9491           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9492             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9493             echo "local: *; };" >> $output_objdir/$libname.ver~
9494             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9495         fi
9496
9497         case $cc_basename in
9498         xlf* | bgf* | bgxlf* | mpixlf*)
9499           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9500           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9501           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9502           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9503           if test "x$supports_anon_versioning" = xyes; then
9504             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9505               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9506               echo "local: *; };" >> $output_objdir/$libname.ver~
9507               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9508           fi
9509           ;;
9510         esac
9511       else
9512         ld_shlibs=no
9513       fi
9514       ;;
9515
9516     netbsd* | netbsdelf*-gnu)
9517       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9518         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9519         wlarc=
9520       else
9521         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9523       fi
9524       ;;
9525
9526     solaris*)
9527       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9528         ld_shlibs=no
9529         cat <<_LT_EOF 1>&2
9530
9531 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9532 *** create shared libraries on Solaris systems.  Therefore, libtool
9533 *** is disabling shared libraries support.  We urge you to upgrade GNU
9534 *** binutils to release 2.9.1 or newer.  Another option is to modify
9535 *** your PATH or compiler configuration so that the native linker is
9536 *** used, and then restart.
9537
9538 _LT_EOF
9539       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9540         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9541         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9542       else
9543         ld_shlibs=no
9544       fi
9545       ;;
9546
9547     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9548       case `$LD -v 2>&1` in
9549         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9550         ld_shlibs=no
9551         cat <<_LT_EOF 1>&2
9552
9553 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9554 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9555 *** is disabling shared libraries support.  We urge you to upgrade GNU
9556 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9557 *** your PATH or compiler configuration so that the native linker is
9558 *** used, and then restart.
9559
9560 _LT_EOF
9561         ;;
9562         *)
9563           # For security reasons, it is highly recommended that you always
9564           # use absolute paths for naming shared libraries, and exclude the
9565           # DT_RUNPATH tag from executables and libraries.  But doing so
9566           # requires that you compile everything twice, which is a pain.
9567           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9568             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9569             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9571           else
9572             ld_shlibs=no
9573           fi
9574         ;;
9575       esac
9576       ;;
9577
9578     sunos4*)
9579       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9580       wlarc=
9581       hardcode_direct=yes
9582       hardcode_shlibpath_var=no
9583       ;;
9584
9585     *)
9586       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9587         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9588         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9589       else
9590         ld_shlibs=no
9591       fi
9592       ;;
9593     esac
9594
9595     if test "$ld_shlibs" = no; then
9596       runpath_var=
9597       hardcode_libdir_flag_spec=
9598       export_dynamic_flag_spec=
9599       whole_archive_flag_spec=
9600     fi
9601   else
9602     # PORTME fill in a description of your system's linker (not GNU ld)
9603     case $host_os in
9604     aix3*)
9605       allow_undefined_flag=unsupported
9606       always_export_symbols=yes
9607       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'
9608       # Note: this linker hardcodes the directories in LIBPATH if there
9609       # are no directories specified by -L.
9610       hardcode_minus_L=yes
9611       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9612         # Neither direct hardcoding nor static linking is supported with a
9613         # broken collect2.
9614         hardcode_direct=unsupported
9615       fi
9616       ;;
9617
9618     aix[4-9]*)
9619       if test "$host_cpu" = ia64; then
9620         # On IA64, the linker does run time linking by default, so we don't
9621         # have to do anything special.
9622         aix_use_runtimelinking=no
9623         exp_sym_flag='-Bexport'
9624         no_entry_flag=""
9625       else
9626         # If we're using GNU nm, then we don't want the "-C" option.
9627         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9628         # Also, AIX nm treats weak defined symbols like other global
9629         # defined symbols, whereas GNU nm marks them as "W".
9630         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9631           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'
9632         else
9633           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'
9634         fi
9635         aix_use_runtimelinking=no
9636
9637         # Test if we are trying to use run time linking or normal
9638         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9639         # need to do runtime linking.
9640         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9641           for ld_flag in $LDFLAGS; do
9642           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9643             aix_use_runtimelinking=yes
9644             break
9645           fi
9646           done
9647           ;;
9648         esac
9649
9650         exp_sym_flag='-bexport'
9651         no_entry_flag='-bnoentry'
9652       fi
9653
9654       # When large executables or shared objects are built, AIX ld can
9655       # have problems creating the table of contents.  If linking a library
9656       # or program results in "error TOC overflow" add -mminimal-toc to
9657       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9658       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9659
9660       archive_cmds=''
9661       hardcode_direct=yes
9662       hardcode_direct_absolute=yes
9663       hardcode_libdir_separator=':'
9664       link_all_deplibs=yes
9665       file_list_spec='${wl}-f,'
9666
9667       if test "$GCC" = yes; then
9668         case $host_os in aix4.[012]|aix4.[012].*)
9669         # We only want to do this on AIX 4.2 and lower, the check
9670         # below for broken collect2 doesn't work under 4.3+
9671           collect2name=`${CC} -print-prog-name=collect2`
9672           if test -f "$collect2name" &&
9673            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9674           then
9675           # We have reworked collect2
9676           :
9677           else
9678           # We have old collect2
9679           hardcode_direct=unsupported
9680           # It fails to find uninstalled libraries when the uninstalled
9681           # path is not listed in the libpath.  Setting hardcode_minus_L
9682           # to unsupported forces relinking
9683           hardcode_minus_L=yes
9684           hardcode_libdir_flag_spec='-L$libdir'
9685           hardcode_libdir_separator=
9686           fi
9687           ;;
9688         esac
9689         shared_flag='-shared'
9690         if test "$aix_use_runtimelinking" = yes; then
9691           shared_flag="$shared_flag "'${wl}-G'
9692         fi
9693         link_all_deplibs=no
9694       else
9695         # not using gcc
9696         if test "$host_cpu" = ia64; then
9697         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9698         # chokes on -Wl,-G. The following line is correct:
9699           shared_flag='-G'
9700         else
9701           if test "$aix_use_runtimelinking" = yes; then
9702             shared_flag='${wl}-G'
9703           else
9704             shared_flag='${wl}-bM:SRE'
9705           fi
9706         fi
9707       fi
9708
9709       export_dynamic_flag_spec='${wl}-bexpall'
9710       # It seems that -bexpall does not export symbols beginning with
9711       # underscore (_), so it is better to generate a list of symbols to export.
9712       always_export_symbols=yes
9713       if test "$aix_use_runtimelinking" = yes; then
9714         # Warning - without using the other runtime loading flags (-brtl),
9715         # -berok will link without error, but may produce a broken library.
9716         allow_undefined_flag='-berok'
9717         # Determine the default libpath from the value encoded in an
9718         # empty executable.
9719         if test "${lt_cv_aix_libpath+set}" = set; then
9720   aix_libpath=$lt_cv_aix_libpath
9721 else
9722   if ${lt_cv_aix_libpath_+:} false; then :
9723   $as_echo_n "(cached) " >&6
9724 else
9725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h.  */
9727
9728 int
9729 main ()
9730 {
9731
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 if ac_fn_c_try_link "$LINENO"; then :
9737
9738   lt_aix_libpath_sed='
9739       /Import File Strings/,/^$/ {
9740           /^0/ {
9741               s/^0  *\([^ ]*\) *$/\1/
9742               p
9743           }
9744       }'
9745   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9746   # Check for a 64-bit object if we didn't find anything.
9747   if test -z "$lt_cv_aix_libpath_"; then
9748     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9749   fi
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext \
9752     conftest$ac_exeext conftest.$ac_ext
9753   if test -z "$lt_cv_aix_libpath_"; then
9754     lt_cv_aix_libpath_="/usr/lib:/lib"
9755   fi
9756
9757 fi
9758
9759   aix_libpath=$lt_cv_aix_libpath_
9760 fi
9761
9762         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9763         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"
9764       else
9765         if test "$host_cpu" = ia64; then
9766           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9767           allow_undefined_flag="-z nodefs"
9768           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"
9769         else
9770          # Determine the default libpath from the value encoded in an
9771          # empty executable.
9772          if test "${lt_cv_aix_libpath+set}" = set; then
9773   aix_libpath=$lt_cv_aix_libpath
9774 else
9775   if ${lt_cv_aix_libpath_+:} false; then :
9776   $as_echo_n "(cached) " >&6
9777 else
9778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h.  */
9780
9781 int
9782 main ()
9783 {
9784
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 if ac_fn_c_try_link "$LINENO"; then :
9790
9791   lt_aix_libpath_sed='
9792       /Import File Strings/,/^$/ {
9793           /^0/ {
9794               s/^0  *\([^ ]*\) *$/\1/
9795               p
9796           }
9797       }'
9798   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9799   # Check for a 64-bit object if we didn't find anything.
9800   if test -z "$lt_cv_aix_libpath_"; then
9801     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802   fi
9803 fi
9804 rm -f core conftest.err conftest.$ac_objext \
9805     conftest$ac_exeext conftest.$ac_ext
9806   if test -z "$lt_cv_aix_libpath_"; then
9807     lt_cv_aix_libpath_="/usr/lib:/lib"
9808   fi
9809
9810 fi
9811
9812   aix_libpath=$lt_cv_aix_libpath_
9813 fi
9814
9815          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9816           # Warning - without using the other run time loading flags,
9817           # -berok will link without error, but may produce a broken library.
9818           no_undefined_flag=' ${wl}-bernotok'
9819           allow_undefined_flag=' ${wl}-berok'
9820           if test "$with_gnu_ld" = yes; then
9821             # We only use this code for GNU lds that support --whole-archive.
9822             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9823           else
9824             # Exported symbols can be pulled into shared objects from archives
9825             whole_archive_flag_spec='$convenience'
9826           fi
9827           archive_cmds_need_lc=yes
9828           # This is similar to how AIX traditionally builds its shared libraries.
9829           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'
9830         fi
9831       fi
9832       ;;
9833
9834     amigaos*)
9835       case $host_cpu in
9836       powerpc)
9837             # see comment about AmigaOS4 .so support
9838             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9839             archive_expsym_cmds=''
9840         ;;
9841       m68k)
9842             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)'
9843             hardcode_libdir_flag_spec='-L$libdir'
9844             hardcode_minus_L=yes
9845         ;;
9846       esac
9847       ;;
9848
9849     bsdi[45]*)
9850       export_dynamic_flag_spec=-rdynamic
9851       ;;
9852
9853     cygwin* | mingw* | pw32* | cegcc*)
9854       # When not using gcc, we currently assume that we are using
9855       # Microsoft Visual C++.
9856       # hardcode_libdir_flag_spec is actually meaningless, as there is
9857       # no search path for DLLs.
9858       case $cc_basename in
9859       cl*)
9860         # Native MSVC
9861         hardcode_libdir_flag_spec=' '
9862         allow_undefined_flag=unsupported
9863         always_export_symbols=yes
9864         file_list_spec='@'
9865         # Tell ltmain to make .lib files, not .a files.
9866         libext=lib
9867         # Tell ltmain to make .dll files, not .so files.
9868         shrext_cmds=".dll"
9869         # FIXME: Setting linknames here is a bad hack.
9870         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9871         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9872             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9873           else
9874             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9875           fi~
9876           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9877           linknames='
9878         # The linker will not automatically build a static lib if we build a DLL.
9879         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9880         enable_shared_with_static_runtimes=yes
9881         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9882         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9883         # Don't use ranlib
9884         old_postinstall_cmds='chmod 644 $oldlib'
9885         postlink_cmds='lt_outputfile="@OUTPUT@"~
9886           lt_tool_outputfile="@TOOL_OUTPUT@"~
9887           case $lt_outputfile in
9888             *.exe|*.EXE) ;;
9889             *)
9890               lt_outputfile="$lt_outputfile.exe"
9891               lt_tool_outputfile="$lt_tool_outputfile.exe"
9892               ;;
9893           esac~
9894           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9895             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9896             $RM "$lt_outputfile.manifest";
9897           fi'
9898         ;;
9899       *)
9900         # Assume MSVC wrapper
9901         hardcode_libdir_flag_spec=' '
9902         allow_undefined_flag=unsupported
9903         # Tell ltmain to make .lib files, not .a files.
9904         libext=lib
9905         # Tell ltmain to make .dll files, not .so files.
9906         shrext_cmds=".dll"
9907         # FIXME: Setting linknames here is a bad hack.
9908         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9909         # The linker will automatically build a .lib file if we build a DLL.
9910         old_archive_from_new_cmds='true'
9911         # FIXME: Should let the user specify the lib program.
9912         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9913         enable_shared_with_static_runtimes=yes
9914         ;;
9915       esac
9916       ;;
9917
9918     darwin* | rhapsody*)
9919
9920
9921   archive_cmds_need_lc=no
9922   hardcode_direct=no
9923   hardcode_automatic=yes
9924   hardcode_shlibpath_var=unsupported
9925   if test "$lt_cv_ld_force_load" = "yes"; then
9926     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\"`'
9927
9928   else
9929     whole_archive_flag_spec=''
9930   fi
9931   link_all_deplibs=yes
9932   allow_undefined_flag="$_lt_dar_allow_undefined"
9933   case $cc_basename in
9934      ifort*) _lt_dar_can_shared=yes ;;
9935      *) _lt_dar_can_shared=$GCC ;;
9936   esac
9937   if test "$_lt_dar_can_shared" = "yes"; then
9938     output_verbose_link_cmd=func_echo_all
9939     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9940     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9941     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}"
9942     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}"
9943
9944   else
9945   ld_shlibs=no
9946   fi
9947
9948       ;;
9949
9950     dgux*)
9951       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952       hardcode_libdir_flag_spec='-L$libdir'
9953       hardcode_shlibpath_var=no
9954       ;;
9955
9956     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9957     # support.  Future versions do this automatically, but an explicit c++rt0.o
9958     # does not break anything, and helps significantly (at the cost of a little
9959     # extra space).
9960     freebsd2.2*)
9961       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9962       hardcode_libdir_flag_spec='-R$libdir'
9963       hardcode_direct=yes
9964       hardcode_shlibpath_var=no
9965       ;;
9966
9967     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9968     freebsd2.*)
9969       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9970       hardcode_direct=yes
9971       hardcode_minus_L=yes
9972       hardcode_shlibpath_var=no
9973       ;;
9974
9975     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9976     freebsd* | dragonfly*)
9977       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9978       hardcode_libdir_flag_spec='-R$libdir'
9979       hardcode_direct=yes
9980       hardcode_shlibpath_var=no
9981       ;;
9982
9983     hpux9*)
9984       if test "$GCC" = yes; then
9985         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'
9986       else
9987         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'
9988       fi
9989       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9990       hardcode_libdir_separator=:
9991       hardcode_direct=yes
9992
9993       # hardcode_minus_L: Not really in the search PATH,
9994       # but as the default location of the library.
9995       hardcode_minus_L=yes
9996       export_dynamic_flag_spec='${wl}-E'
9997       ;;
9998
9999     hpux10*)
10000       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10001         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10002       else
10003         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10004       fi
10005       if test "$with_gnu_ld" = no; then
10006         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10007         hardcode_libdir_separator=:
10008         hardcode_direct=yes
10009         hardcode_direct_absolute=yes
10010         export_dynamic_flag_spec='${wl}-E'
10011         # hardcode_minus_L: Not really in the search PATH,
10012         # but as the default location of the library.
10013         hardcode_minus_L=yes
10014       fi
10015       ;;
10016
10017     hpux11*)
10018       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10019         case $host_cpu in
10020         hppa*64*)
10021           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10022           ;;
10023         ia64*)
10024           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10025           ;;
10026         *)
10027           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10028           ;;
10029         esac
10030       else
10031         case $host_cpu in
10032         hppa*64*)
10033           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10034           ;;
10035         ia64*)
10036           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10037           ;;
10038         *)
10039
10040           # Older versions of the 11.00 compiler do not understand -b yet
10041           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10042           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10043 $as_echo_n "checking if $CC understands -b... " >&6; }
10044 if ${lt_cv_prog_compiler__b+:} false; then :
10045   $as_echo_n "(cached) " >&6
10046 else
10047   lt_cv_prog_compiler__b=no
10048    save_LDFLAGS="$LDFLAGS"
10049    LDFLAGS="$LDFLAGS -b"
10050    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10051    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10052      # The linker can only warn and ignore the option if not recognized
10053      # So say no if there are warnings
10054      if test -s conftest.err; then
10055        # Append any errors to the config.log.
10056        cat conftest.err 1>&5
10057        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10058        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10059        if diff conftest.exp conftest.er2 >/dev/null; then
10060          lt_cv_prog_compiler__b=yes
10061        fi
10062      else
10063        lt_cv_prog_compiler__b=yes
10064      fi
10065    fi
10066    $RM -r conftest*
10067    LDFLAGS="$save_LDFLAGS"
10068
10069 fi
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10071 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10072
10073 if test x"$lt_cv_prog_compiler__b" = xyes; then
10074     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10075 else
10076     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10077 fi
10078
10079           ;;
10080         esac
10081       fi
10082       if test "$with_gnu_ld" = no; then
10083         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10084         hardcode_libdir_separator=:
10085
10086         case $host_cpu in
10087         hppa*64*|ia64*)
10088           hardcode_direct=no
10089           hardcode_shlibpath_var=no
10090           ;;
10091         *)
10092           hardcode_direct=yes
10093           hardcode_direct_absolute=yes
10094           export_dynamic_flag_spec='${wl}-E'
10095
10096           # hardcode_minus_L: Not really in the search PATH,
10097           # but as the default location of the library.
10098           hardcode_minus_L=yes
10099           ;;
10100         esac
10101       fi
10102       ;;
10103
10104     irix5* | irix6* | nonstopux*)
10105       if test "$GCC" = yes; then
10106         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'
10107         # Try to use the -exported_symbol ld option, if it does not
10108         # work, assume that -exports_file does not work either and
10109         # implicitly export all symbols.
10110         # This should be the same for all languages, so no per-tag cache variable.
10111         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10112 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10113 if ${lt_cv_irix_exported_symbol+:} false; then :
10114   $as_echo_n "(cached) " >&6
10115 else
10116   save_LDFLAGS="$LDFLAGS"
10117            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10118            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h.  */
10120 int foo (void) { return 0; }
10121 _ACEOF
10122 if ac_fn_c_try_link "$LINENO"; then :
10123   lt_cv_irix_exported_symbol=yes
10124 else
10125   lt_cv_irix_exported_symbol=no
10126 fi
10127 rm -f core conftest.err conftest.$ac_objext \
10128     conftest$ac_exeext conftest.$ac_ext
10129            LDFLAGS="$save_LDFLAGS"
10130 fi
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10132 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10133         if test "$lt_cv_irix_exported_symbol" = yes; then
10134           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'
10135         fi
10136       else
10137         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'
10138         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'
10139       fi
10140       archive_cmds_need_lc='no'
10141       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10142       hardcode_libdir_separator=:
10143       inherit_rpath=yes
10144       link_all_deplibs=yes
10145       ;;
10146
10147     netbsd* | netbsdelf*-gnu)
10148       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10149         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10150       else
10151         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10152       fi
10153       hardcode_libdir_flag_spec='-R$libdir'
10154       hardcode_direct=yes
10155       hardcode_shlibpath_var=no
10156       ;;
10157
10158     newsos6)
10159       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160       hardcode_direct=yes
10161       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10162       hardcode_libdir_separator=:
10163       hardcode_shlibpath_var=no
10164       ;;
10165
10166     *nto* | *qnx*)
10167       ;;
10168
10169     openbsd*)
10170       if test -f /usr/libexec/ld.so; then
10171         hardcode_direct=yes
10172         hardcode_shlibpath_var=no
10173         hardcode_direct_absolute=yes
10174         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10175           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10176           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10177           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10178           export_dynamic_flag_spec='${wl}-E'
10179         else
10180           case $host_os in
10181            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10182              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10183              hardcode_libdir_flag_spec='-R$libdir'
10184              ;;
10185            *)
10186              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10187              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10188              ;;
10189           esac
10190         fi
10191       else
10192         ld_shlibs=no
10193       fi
10194       ;;
10195
10196     os2*)
10197       hardcode_libdir_flag_spec='-L$libdir'
10198       hardcode_minus_L=yes
10199       allow_undefined_flag=unsupported
10200       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'
10201       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10202       ;;
10203
10204     osf3*)
10205       if test "$GCC" = yes; then
10206         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10207         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'
10208       else
10209         allow_undefined_flag=' -expect_unresolved \*'
10210         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'
10211       fi
10212       archive_cmds_need_lc='no'
10213       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10214       hardcode_libdir_separator=:
10215       ;;
10216
10217     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10218       if test "$GCC" = yes; then
10219         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10220         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'
10221         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10222       else
10223         allow_undefined_flag=' -expect_unresolved \*'
10224         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'
10225         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~
10226         $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'
10227
10228         # Both c and cxx compiler support -rpath directly
10229         hardcode_libdir_flag_spec='-rpath $libdir'
10230       fi
10231       archive_cmds_need_lc='no'
10232       hardcode_libdir_separator=:
10233       ;;
10234
10235     solaris*)
10236       no_undefined_flag=' -z defs'
10237       if test "$GCC" = yes; then
10238         wlarc='${wl}'
10239         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10240         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10241           $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'
10242       else
10243         case `$CC -V 2>&1` in
10244         *"Compilers 5.0"*)
10245           wlarc=''
10246           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10248           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10249           ;;
10250         *)
10251           wlarc='${wl}'
10252           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10253           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10254           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10255           ;;
10256         esac
10257       fi
10258       hardcode_libdir_flag_spec='-R$libdir'
10259       hardcode_shlibpath_var=no
10260       case $host_os in
10261       solaris2.[0-5] | solaris2.[0-5].*) ;;
10262       *)
10263         # The compiler driver will combine and reorder linker options,
10264         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10265         # but is careful enough not to reorder.
10266         # Supported since Solaris 2.6 (maybe 2.5.1?)
10267         if test "$GCC" = yes; then
10268           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10269         else
10270           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10271         fi
10272         ;;
10273       esac
10274       link_all_deplibs=yes
10275       ;;
10276
10277     sunos4*)
10278       if test "x$host_vendor" = xsequent; then
10279         # Use $CC to link under sequent, because it throws in some extra .o
10280         # files that make .init and .fini sections work.
10281         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10282       else
10283         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10284       fi
10285       hardcode_libdir_flag_spec='-L$libdir'
10286       hardcode_direct=yes
10287       hardcode_minus_L=yes
10288       hardcode_shlibpath_var=no
10289       ;;
10290
10291     sysv4)
10292       case $host_vendor in
10293         sni)
10294           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295           hardcode_direct=yes # is this really true???
10296         ;;
10297         siemens)
10298           ## LD is ld it makes a PLAMLIB
10299           ## CC just makes a GrossModule.
10300           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10301           reload_cmds='$CC -r -o $output$reload_objs'
10302           hardcode_direct=no
10303         ;;
10304         motorola)
10305           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10307         ;;
10308       esac
10309       runpath_var='LD_RUN_PATH'
10310       hardcode_shlibpath_var=no
10311       ;;
10312
10313     sysv4.3*)
10314       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315       hardcode_shlibpath_var=no
10316       export_dynamic_flag_spec='-Bexport'
10317       ;;
10318
10319     sysv4*MP*)
10320       if test -d /usr/nec; then
10321         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10322         hardcode_shlibpath_var=no
10323         runpath_var=LD_RUN_PATH
10324         hardcode_runpath_var=yes
10325         ld_shlibs=yes
10326       fi
10327       ;;
10328
10329     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10330       no_undefined_flag='${wl}-z,text'
10331       archive_cmds_need_lc=no
10332       hardcode_shlibpath_var=no
10333       runpath_var='LD_RUN_PATH'
10334
10335       if test "$GCC" = yes; then
10336         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338       else
10339         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341       fi
10342       ;;
10343
10344     sysv5* | sco3.2v5* | sco5v6*)
10345       # Note: We can NOT use -z defs as we might desire, because we do not
10346       # link with -lc, and that would cause any symbols used from libc to
10347       # always be unresolved, which means just about no library would
10348       # ever link correctly.  If we're not using GNU ld we use -z text
10349       # though, which does catch some bad symbols but isn't as heavy-handed
10350       # as -z defs.
10351       no_undefined_flag='${wl}-z,text'
10352       allow_undefined_flag='${wl}-z,nodefs'
10353       archive_cmds_need_lc=no
10354       hardcode_shlibpath_var=no
10355       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10356       hardcode_libdir_separator=':'
10357       link_all_deplibs=yes
10358       export_dynamic_flag_spec='${wl}-Bexport'
10359       runpath_var='LD_RUN_PATH'
10360
10361       if test "$GCC" = yes; then
10362         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10363         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364       else
10365         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10366         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10367       fi
10368       ;;
10369
10370     uts4*)
10371       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10372       hardcode_libdir_flag_spec='-L$libdir'
10373       hardcode_shlibpath_var=no
10374       ;;
10375
10376     *)
10377       ld_shlibs=no
10378       ;;
10379     esac
10380
10381     if test x$host_vendor = xsni; then
10382       case $host in
10383       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10384         export_dynamic_flag_spec='${wl}-Blargedynsym'
10385         ;;
10386       esac
10387     fi
10388   fi
10389
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10391 $as_echo "$ld_shlibs" >&6; }
10392 test "$ld_shlibs" = no && can_build_shared=no
10393
10394 with_gnu_ld=$with_gnu_ld
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410 #
10411 # Do we need to explicitly link libc?
10412 #
10413 case "x$archive_cmds_need_lc" in
10414 x|xyes)
10415   # Assume -lc should be added
10416   archive_cmds_need_lc=yes
10417
10418   if test "$enable_shared" = yes && test "$GCC" = yes; then
10419     case $archive_cmds in
10420     *'~'*)
10421       # FIXME: we may have to deal with multi-command sequences.
10422       ;;
10423     '$CC '*)
10424       # Test whether the compiler implicitly links with -lc since on some
10425       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10426       # to ld, don't add -lc before -lgcc.
10427       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10428 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10429 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10430   $as_echo_n "(cached) " >&6
10431 else
10432   $RM conftest*
10433         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10434
10435         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10436   (eval $ac_compile) 2>&5
10437   ac_status=$?
10438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10439   test $ac_status = 0; } 2>conftest.err; then
10440           soname=conftest
10441           lib=conftest
10442           libobjs=conftest.$ac_objext
10443           deplibs=
10444           wl=$lt_prog_compiler_wl
10445           pic_flag=$lt_prog_compiler_pic
10446           compiler_flags=-v
10447           linker_flags=-v
10448           verstring=
10449           output_objdir=.
10450           libname=conftest
10451           lt_save_allow_undefined_flag=$allow_undefined_flag
10452           allow_undefined_flag=
10453           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10454   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10455   ac_status=$?
10456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10457   test $ac_status = 0; }
10458           then
10459             lt_cv_archive_cmds_need_lc=no
10460           else
10461             lt_cv_archive_cmds_need_lc=yes
10462           fi
10463           allow_undefined_flag=$lt_save_allow_undefined_flag
10464         else
10465           cat conftest.err 1>&5
10466         fi
10467         $RM conftest*
10468
10469 fi
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10471 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10472       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10473       ;;
10474     esac
10475   fi
10476   ;;
10477 esac
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10631 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10632
10633 if test "$GCC" = yes; then
10634   case $host_os in
10635     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10636     *) lt_awk_arg="/^libraries:/" ;;
10637   esac
10638   case $host_os in
10639     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10640     *) lt_sed_strip_eq="s,=/,/,g" ;;
10641   esac
10642   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10643   case $lt_search_path_spec in
10644   *\;*)
10645     # if the path contains ";" then we assume it to be the separator
10646     # otherwise default to the standard path separator (i.e. ":") - it is
10647     # assumed that no part of a normal pathname contains ";" but that should
10648     # okay in the real world where ";" in dirpaths is itself problematic.
10649     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10650     ;;
10651   *)
10652     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10653     ;;
10654   esac
10655   # Ok, now we have the path, separated by spaces, we can step through it
10656   # and add multilib dir if necessary.
10657   lt_tmp_lt_search_path_spec=
10658   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10659   for lt_sys_path in $lt_search_path_spec; do
10660     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10661       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10662     else
10663       test -d "$lt_sys_path" && \
10664         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10665     fi
10666   done
10667   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10668 BEGIN {RS=" "; FS="/|\n";} {
10669   lt_foo="";
10670   lt_count=0;
10671   for (lt_i = NF; lt_i > 0; lt_i--) {
10672     if ($lt_i != "" && $lt_i != ".") {
10673       if ($lt_i == "..") {
10674         lt_count++;
10675       } else {
10676         if (lt_count == 0) {
10677           lt_foo="/" $lt_i lt_foo;
10678         } else {
10679           lt_count--;
10680         }
10681       }
10682     }
10683   }
10684   if (lt_foo != "") { lt_freq[lt_foo]++; }
10685   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10686 }'`
10687   # AWK program above erroneously prepends '/' to C:/dos/paths
10688   # for these hosts.
10689   case $host_os in
10690     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10691       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10692   esac
10693   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10694 else
10695   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10696 fi
10697 library_names_spec=
10698 libname_spec='lib$name'
10699 soname_spec=
10700 shrext_cmds=".so"
10701 postinstall_cmds=
10702 postuninstall_cmds=
10703 finish_cmds=
10704 finish_eval=
10705 shlibpath_var=
10706 shlibpath_overrides_runpath=unknown
10707 version_type=none
10708 dynamic_linker="$host_os ld.so"
10709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10710 need_lib_prefix=unknown
10711 hardcode_into_libs=no
10712
10713 # when you set need_version to no, make sure it does not cause -set_version
10714 # flags to be left without arguments
10715 need_version=unknown
10716
10717 case $host_os in
10718 aix3*)
10719   version_type=linux # correct to gnu/linux during the next big refactor
10720   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10721   shlibpath_var=LIBPATH
10722
10723   # AIX 3 has no versioning support, so we append a major version to the name.
10724   soname_spec='${libname}${release}${shared_ext}$major'
10725   ;;
10726
10727 aix[4-9]*)
10728   version_type=linux # correct to gnu/linux during the next big refactor
10729   need_lib_prefix=no
10730   need_version=no
10731   hardcode_into_libs=yes
10732   if test "$host_cpu" = ia64; then
10733     # AIX 5 supports IA64
10734     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10735     shlibpath_var=LD_LIBRARY_PATH
10736   else
10737     # With GCC up to 2.95.x, collect2 would create an import file
10738     # for dependence libraries.  The import file would start with
10739     # the line `#! .'.  This would cause the generated library to
10740     # depend on `.', always an invalid library.  This was fixed in
10741     # development snapshots of GCC prior to 3.0.
10742     case $host_os in
10743       aix4 | aix4.[01] | aix4.[01].*)
10744       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10745            echo ' yes '
10746            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10747         :
10748       else
10749         can_build_shared=no
10750       fi
10751       ;;
10752     esac
10753     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10754     # soname into executable. Probably we can add versioning support to
10755     # collect2, so additional links can be useful in future.
10756     if test "$aix_use_runtimelinking" = yes; then
10757       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10758       # instead of lib<name>.a to let people know that these are not
10759       # typical AIX shared libraries.
10760       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761     else
10762       # We preserve .a as extension for shared libraries through AIX4.2
10763       # and later when we are not doing run time linking.
10764       library_names_spec='${libname}${release}.a $libname.a'
10765       soname_spec='${libname}${release}${shared_ext}$major'
10766     fi
10767     shlibpath_var=LIBPATH
10768   fi
10769   ;;
10770
10771 amigaos*)
10772   case $host_cpu in
10773   powerpc)
10774     # Since July 2007 AmigaOS4 officially supports .so libraries.
10775     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777     ;;
10778   m68k)
10779     library_names_spec='$libname.ixlibrary $libname.a'
10780     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10781     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'
10782     ;;
10783   esac
10784   ;;
10785
10786 beos*)
10787   library_names_spec='${libname}${shared_ext}'
10788   dynamic_linker="$host_os ld.so"
10789   shlibpath_var=LIBRARY_PATH
10790   ;;
10791
10792 bsdi[45]*)
10793   version_type=linux # correct to gnu/linux during the next big refactor
10794   need_version=no
10795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796   soname_spec='${libname}${release}${shared_ext}$major'
10797   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10798   shlibpath_var=LD_LIBRARY_PATH
10799   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10800   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10801   # the default ld.so.conf also contains /usr/contrib/lib and
10802   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10803   # libtool to hard-code these into programs
10804   ;;
10805
10806 cygwin* | mingw* | pw32* | cegcc*)
10807   version_type=windows
10808   shrext_cmds=".dll"
10809   need_version=no
10810   need_lib_prefix=no
10811
10812   case $GCC,$cc_basename in
10813   yes,*)
10814     # gcc
10815     library_names_spec='$libname.dll.a'
10816     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10817     postinstall_cmds='base_file=`basename \${file}`~
10818       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10819       dldir=$destdir/`dirname \$dlpath`~
10820       test -d \$dldir || mkdir -p \$dldir~
10821       $install_prog $dir/$dlname \$dldir/$dlname~
10822       chmod a+x \$dldir/$dlname~
10823       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10824         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10825       fi'
10826     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10827       dlpath=$dir/\$dldll~
10828        $RM \$dlpath'
10829     shlibpath_overrides_runpath=yes
10830
10831     case $host_os in
10832     cygwin*)
10833       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10834       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10835
10836       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10837       ;;
10838     mingw* | cegcc*)
10839       # MinGW DLLs use traditional 'lib' prefix
10840       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10841       ;;
10842     pw32*)
10843       # pw32 DLLs use 'pw' prefix rather than 'lib'
10844       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10845       ;;
10846     esac
10847     dynamic_linker='Win32 ld.exe'
10848     ;;
10849
10850   *,cl*)
10851     # Native MSVC
10852     libname_spec='$name'
10853     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10854     library_names_spec='${libname}.dll.lib'
10855
10856     case $build_os in
10857     mingw*)
10858       sys_lib_search_path_spec=
10859       lt_save_ifs=$IFS
10860       IFS=';'
10861       for lt_path in $LIB
10862       do
10863         IFS=$lt_save_ifs
10864         # Let DOS variable expansion print the short 8.3 style file name.
10865         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10866         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10867       done
10868       IFS=$lt_save_ifs
10869       # Convert to MSYS style.
10870       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10871       ;;
10872     cygwin*)
10873       # Convert to unix form, then to dos form, then back to unix form
10874       # but this time dos style (no spaces!) so that the unix form looks
10875       # like /cygdrive/c/PROGRA~1:/cygdr...
10876       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10877       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10878       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10879       ;;
10880     *)
10881       sys_lib_search_path_spec="$LIB"
10882       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10883         # It is most probably a Windows format PATH.
10884         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10885       else
10886         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10887       fi
10888       # FIXME: find the short name or the path components, as spaces are
10889       # common. (e.g. "Program Files" -> "PROGRA~1")
10890       ;;
10891     esac
10892
10893     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10894     postinstall_cmds='base_file=`basename \${file}`~
10895       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10896       dldir=$destdir/`dirname \$dlpath`~
10897       test -d \$dldir || mkdir -p \$dldir~
10898       $install_prog $dir/$dlname \$dldir/$dlname'
10899     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10900       dlpath=$dir/\$dldll~
10901        $RM \$dlpath'
10902     shlibpath_overrides_runpath=yes
10903     dynamic_linker='Win32 link.exe'
10904     ;;
10905
10906   *)
10907     # Assume MSVC wrapper
10908     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10909     dynamic_linker='Win32 ld.exe'
10910     ;;
10911   esac
10912   # FIXME: first we should search . and the directory the executable is in
10913   shlibpath_var=PATH
10914   ;;
10915
10916 darwin* | rhapsody*)
10917   dynamic_linker="$host_os dyld"
10918   version_type=darwin
10919   need_lib_prefix=no
10920   need_version=no
10921   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10922   soname_spec='${libname}${release}${major}$shared_ext'
10923   shlibpath_overrides_runpath=yes
10924   shlibpath_var=DYLD_LIBRARY_PATH
10925   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10926
10927   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10928   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10929   ;;
10930
10931 dgux*)
10932   version_type=linux # correct to gnu/linux during the next big refactor
10933   need_lib_prefix=no
10934   need_version=no
10935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10936   soname_spec='${libname}${release}${shared_ext}$major'
10937   shlibpath_var=LD_LIBRARY_PATH
10938   ;;
10939
10940 freebsd* | dragonfly*)
10941   # DragonFly does not have aout.  When/if they implement a new
10942   # versioning mechanism, adjust this.
10943   if test -x /usr/bin/objformat; then
10944     objformat=`/usr/bin/objformat`
10945   else
10946     case $host_os in
10947     freebsd[23].*) objformat=aout ;;
10948     *) objformat=elf ;;
10949     esac
10950   fi
10951   version_type=freebsd-$objformat
10952   case $version_type in
10953     freebsd-elf*)
10954       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10955       need_version=no
10956       need_lib_prefix=no
10957       ;;
10958     freebsd-*)
10959       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10960       need_version=yes
10961       ;;
10962   esac
10963   shlibpath_var=LD_LIBRARY_PATH
10964   case $host_os in
10965   freebsd2.*)
10966     shlibpath_overrides_runpath=yes
10967     ;;
10968   freebsd3.[01]* | freebsdelf3.[01]*)
10969     shlibpath_overrides_runpath=yes
10970     hardcode_into_libs=yes
10971     ;;
10972   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10973   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10974     shlibpath_overrides_runpath=no
10975     hardcode_into_libs=yes
10976     ;;
10977   *) # from 4.6 on, and DragonFly
10978     shlibpath_overrides_runpath=yes
10979     hardcode_into_libs=yes
10980     ;;
10981   esac
10982   ;;
10983
10984 haiku*)
10985   version_type=linux # correct to gnu/linux during the next big refactor
10986   need_lib_prefix=no
10987   need_version=no
10988   dynamic_linker="$host_os runtime_loader"
10989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10990   soname_spec='${libname}${release}${shared_ext}$major'
10991   shlibpath_var=LIBRARY_PATH
10992   shlibpath_overrides_runpath=yes
10993   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10994   hardcode_into_libs=yes
10995   ;;
10996
10997 hpux9* | hpux10* | hpux11*)
10998   # Give a soname corresponding to the major version so that dld.sl refuses to
10999   # link against other versions.
11000   version_type=sunos
11001   need_lib_prefix=no
11002   need_version=no
11003   case $host_cpu in
11004   ia64*)
11005     shrext_cmds='.so'
11006     hardcode_into_libs=yes
11007     dynamic_linker="$host_os dld.so"
11008     shlibpath_var=LD_LIBRARY_PATH
11009     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011     soname_spec='${libname}${release}${shared_ext}$major'
11012     if test "X$HPUX_IA64_MODE" = X32; then
11013       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11014     else
11015       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11016     fi
11017     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11018     ;;
11019   hppa*64*)
11020     shrext_cmds='.sl'
11021     hardcode_into_libs=yes
11022     dynamic_linker="$host_os dld.sl"
11023     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11024     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11025     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026     soname_spec='${libname}${release}${shared_ext}$major'
11027     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11028     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11029     ;;
11030   *)
11031     shrext_cmds='.sl'
11032     dynamic_linker="$host_os dld.sl"
11033     shlibpath_var=SHLIB_PATH
11034     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036     soname_spec='${libname}${release}${shared_ext}$major'
11037     ;;
11038   esac
11039   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11040   postinstall_cmds='chmod 555 $lib'
11041   # or fails outright, so override atomically:
11042   install_override_mode=555
11043   ;;
11044
11045 interix[3-9]*)
11046   version_type=linux # correct to gnu/linux during the next big refactor
11047   need_lib_prefix=no
11048   need_version=no
11049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11050   soname_spec='${libname}${release}${shared_ext}$major'
11051   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11052   shlibpath_var=LD_LIBRARY_PATH
11053   shlibpath_overrides_runpath=no
11054   hardcode_into_libs=yes
11055   ;;
11056
11057 irix5* | irix6* | nonstopux*)
11058   case $host_os in
11059     nonstopux*) version_type=nonstopux ;;
11060     *)
11061         if test "$lt_cv_prog_gnu_ld" = yes; then
11062                 version_type=linux # correct to gnu/linux during the next big refactor
11063         else
11064                 version_type=irix
11065         fi ;;
11066   esac
11067   need_lib_prefix=no
11068   need_version=no
11069   soname_spec='${libname}${release}${shared_ext}$major'
11070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11071   case $host_os in
11072   irix5* | nonstopux*)
11073     libsuff= shlibsuff=
11074     ;;
11075   *)
11076     case $LD in # libtool.m4 will add one of these switches to LD
11077     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11078       libsuff= shlibsuff= libmagic=32-bit;;
11079     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11080       libsuff=32 shlibsuff=N32 libmagic=N32;;
11081     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11082       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11083     *) libsuff= shlibsuff= libmagic=never-match;;
11084     esac
11085     ;;
11086   esac
11087   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11088   shlibpath_overrides_runpath=no
11089   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11090   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11091   hardcode_into_libs=yes
11092   ;;
11093
11094 # No shared lib support for Linux oldld, aout, or coff.
11095 linux*oldld* | linux*aout* | linux*coff*)
11096   dynamic_linker=no
11097   ;;
11098
11099 # This must be glibc/ELF.
11100 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11101   version_type=linux # correct to gnu/linux during the next big refactor
11102   need_lib_prefix=no
11103   need_version=no
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105   soname_spec='${libname}${release}${shared_ext}$major'
11106   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11107   shlibpath_var=LD_LIBRARY_PATH
11108   shlibpath_overrides_runpath=no
11109
11110   # Some binutils ld are patched to set DT_RUNPATH
11111   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11112   $as_echo_n "(cached) " >&6
11113 else
11114   lt_cv_shlibpath_overrides_runpath=no
11115     save_LDFLAGS=$LDFLAGS
11116     save_libdir=$libdir
11117     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11118          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11119     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h.  */
11121
11122 int
11123 main ()
11124 {
11125
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 if ac_fn_c_try_link "$LINENO"; then :
11131   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11132   lt_cv_shlibpath_overrides_runpath=yes
11133 fi
11134 fi
11135 rm -f core conftest.err conftest.$ac_objext \
11136     conftest$ac_exeext conftest.$ac_ext
11137     LDFLAGS=$save_LDFLAGS
11138     libdir=$save_libdir
11139
11140 fi
11141
11142   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11143
11144   # This implies no fast_install, which is unacceptable.
11145   # Some rework will be needed to allow for fast_install
11146   # before this can be enabled.
11147   hardcode_into_libs=yes
11148
11149   # Append ld.so.conf contents to the search path
11150   if test -f /etc/ld.so.conf; then
11151     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' ' '`
11152     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11153   fi
11154
11155   # We used to test for /lib/ld.so.1 and disable shared libraries on
11156   # powerpc, because MkLinux only supported shared libraries with the
11157   # GNU dynamic linker.  Since this was broken with cross compilers,
11158   # most powerpc-linux boxes support dynamic linking these days and
11159   # people can always --disable-shared, the test was removed, and we
11160   # assume the GNU/Linux dynamic linker is in use.
11161   dynamic_linker='GNU/Linux ld.so'
11162   ;;
11163
11164 netbsdelf*-gnu)
11165   version_type=linux
11166   need_lib_prefix=no
11167   need_version=no
11168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11169   soname_spec='${libname}${release}${shared_ext}$major'
11170   shlibpath_var=LD_LIBRARY_PATH
11171   shlibpath_overrides_runpath=no
11172   hardcode_into_libs=yes
11173   dynamic_linker='NetBSD ld.elf_so'
11174   ;;
11175
11176 netbsd*)
11177   version_type=sunos
11178   need_lib_prefix=no
11179   need_version=no
11180   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11182     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11183     dynamic_linker='NetBSD (a.out) ld.so'
11184   else
11185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11186     soname_spec='${libname}${release}${shared_ext}$major'
11187     dynamic_linker='NetBSD ld.elf_so'
11188   fi
11189   shlibpath_var=LD_LIBRARY_PATH
11190   shlibpath_overrides_runpath=yes
11191   hardcode_into_libs=yes
11192   ;;
11193
11194 newsos6)
11195   version_type=linux # correct to gnu/linux during the next big refactor
11196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197   shlibpath_var=LD_LIBRARY_PATH
11198   shlibpath_overrides_runpath=yes
11199   ;;
11200
11201 *nto* | *qnx*)
11202   version_type=qnx
11203   need_lib_prefix=no
11204   need_version=no
11205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206   soname_spec='${libname}${release}${shared_ext}$major'
11207   shlibpath_var=LD_LIBRARY_PATH
11208   shlibpath_overrides_runpath=no
11209   hardcode_into_libs=yes
11210   dynamic_linker='ldqnx.so'
11211   ;;
11212
11213 openbsd*)
11214   version_type=sunos
11215   sys_lib_dlsearch_path_spec="/usr/lib"
11216   need_lib_prefix=no
11217   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11218   case $host_os in
11219     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11220     *)                          need_version=no  ;;
11221   esac
11222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11223   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11224   shlibpath_var=LD_LIBRARY_PATH
11225   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11226     case $host_os in
11227       openbsd2.[89] | openbsd2.[89].*)
11228         shlibpath_overrides_runpath=no
11229         ;;
11230       *)
11231         shlibpath_overrides_runpath=yes
11232         ;;
11233       esac
11234   else
11235     shlibpath_overrides_runpath=yes
11236   fi
11237   ;;
11238
11239 os2*)
11240   libname_spec='$name'
11241   shrext_cmds=".dll"
11242   need_lib_prefix=no
11243   library_names_spec='$libname${shared_ext} $libname.a'
11244   dynamic_linker='OS/2 ld.exe'
11245   shlibpath_var=LIBPATH
11246   ;;
11247
11248 osf3* | osf4* | osf5*)
11249   version_type=osf
11250   need_lib_prefix=no
11251   need_version=no
11252   soname_spec='${libname}${release}${shared_ext}$major'
11253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254   shlibpath_var=LD_LIBRARY_PATH
11255   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11256   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11257   ;;
11258
11259 rdos*)
11260   dynamic_linker=no
11261   ;;
11262
11263 solaris*)
11264   version_type=linux # correct to gnu/linux during the next big refactor
11265   need_lib_prefix=no
11266   need_version=no
11267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268   soname_spec='${libname}${release}${shared_ext}$major'
11269   shlibpath_var=LD_LIBRARY_PATH
11270   shlibpath_overrides_runpath=yes
11271   hardcode_into_libs=yes
11272   # ldd complains unless libraries are executable
11273   postinstall_cmds='chmod +x $lib'
11274   ;;
11275
11276 sunos4*)
11277   version_type=sunos
11278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11279   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11280   shlibpath_var=LD_LIBRARY_PATH
11281   shlibpath_overrides_runpath=yes
11282   if test "$with_gnu_ld" = yes; then
11283     need_lib_prefix=no
11284   fi
11285   need_version=yes
11286   ;;
11287
11288 sysv4 | sysv4.3*)
11289   version_type=linux # correct to gnu/linux during the next big refactor
11290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291   soname_spec='${libname}${release}${shared_ext}$major'
11292   shlibpath_var=LD_LIBRARY_PATH
11293   case $host_vendor in
11294     sni)
11295       shlibpath_overrides_runpath=no
11296       need_lib_prefix=no
11297       runpath_var=LD_RUN_PATH
11298       ;;
11299     siemens)
11300       need_lib_prefix=no
11301       ;;
11302     motorola)
11303       need_lib_prefix=no
11304       need_version=no
11305       shlibpath_overrides_runpath=no
11306       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11307       ;;
11308   esac
11309   ;;
11310
11311 sysv4*MP*)
11312   if test -d /usr/nec ;then
11313     version_type=linux # correct to gnu/linux during the next big refactor
11314     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11315     soname_spec='$libname${shared_ext}.$major'
11316     shlibpath_var=LD_LIBRARY_PATH
11317   fi
11318   ;;
11319
11320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11321   version_type=freebsd-elf
11322   need_lib_prefix=no
11323   need_version=no
11324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11325   soname_spec='${libname}${release}${shared_ext}$major'
11326   shlibpath_var=LD_LIBRARY_PATH
11327   shlibpath_overrides_runpath=yes
11328   hardcode_into_libs=yes
11329   if test "$with_gnu_ld" = yes; then
11330     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11331   else
11332     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11333     case $host_os in
11334       sco3.2v5*)
11335         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11336         ;;
11337     esac
11338   fi
11339   sys_lib_dlsearch_path_spec='/usr/lib'
11340   ;;
11341
11342 tpf*)
11343   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11344   version_type=linux # correct to gnu/linux during the next big refactor
11345   need_lib_prefix=no
11346   need_version=no
11347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348   shlibpath_var=LD_LIBRARY_PATH
11349   shlibpath_overrides_runpath=no
11350   hardcode_into_libs=yes
11351   ;;
11352
11353 uts4*)
11354   version_type=linux # correct to gnu/linux during the next big refactor
11355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356   soname_spec='${libname}${release}${shared_ext}$major'
11357   shlibpath_var=LD_LIBRARY_PATH
11358   ;;
11359
11360 *)
11361   dynamic_linker=no
11362   ;;
11363 esac
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11365 $as_echo "$dynamic_linker" >&6; }
11366 test "$dynamic_linker" = no && can_build_shared=no
11367
11368 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11369 if test "$GCC" = yes; then
11370   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11371 fi
11372
11373 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11374   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11375 fi
11376 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11377   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11378 fi
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11472 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11473 hardcode_action=
11474 if test -n "$hardcode_libdir_flag_spec" ||
11475    test -n "$runpath_var" ||
11476    test "X$hardcode_automatic" = "Xyes" ; then
11477
11478   # We can hardcode non-existent directories.
11479   if test "$hardcode_direct" != no &&
11480      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11481      # have to relink, otherwise we might link with an installed library
11482      # when we should be linking with a yet-to-be-installed one
11483      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11484      test "$hardcode_minus_L" != no; then
11485     # Linking always hardcodes the temporary library directory.
11486     hardcode_action=relink
11487   else
11488     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11489     hardcode_action=immediate
11490   fi
11491 else
11492   # We cannot hardcode anything, or else we can only hardcode existing
11493   # directories.
11494   hardcode_action=unsupported
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11497 $as_echo "$hardcode_action" >&6; }
11498
11499 if test "$hardcode_action" = relink ||
11500    test "$inherit_rpath" = yes; then
11501   # Fast installation is not supported
11502   enable_fast_install=no
11503 elif test "$shlibpath_overrides_runpath" = yes ||
11504      test "$enable_shared" = no; then
11505   # Fast installation is not necessary
11506   enable_fast_install=needless
11507 fi
11508
11509
11510
11511
11512
11513
11514   if test "x$enable_dlopen" != xyes; then
11515   enable_dlopen=unknown
11516   enable_dlopen_self=unknown
11517   enable_dlopen_self_static=unknown
11518 else
11519   lt_cv_dlopen=no
11520   lt_cv_dlopen_libs=
11521
11522   case $host_os in
11523   beos*)
11524     lt_cv_dlopen="load_add_on"
11525     lt_cv_dlopen_libs=
11526     lt_cv_dlopen_self=yes
11527     ;;
11528
11529   mingw* | pw32* | cegcc*)
11530     lt_cv_dlopen="LoadLibrary"
11531     lt_cv_dlopen_libs=
11532     ;;
11533
11534   cygwin*)
11535     lt_cv_dlopen="dlopen"
11536     lt_cv_dlopen_libs=
11537     ;;
11538
11539   darwin*)
11540   # if libdl is installed we need to link against it
11541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11542 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11543 if ${ac_cv_lib_dl_dlopen+:} false; then :
11544   $as_echo_n "(cached) " >&6
11545 else
11546   ac_check_lib_save_LIBS=$LIBS
11547 LIBS="-ldl  $LIBS"
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h.  */
11550
11551 /* Override any GCC internal prototype to avoid an error.
11552    Use char because int might match the return type of a GCC
11553    builtin and then its argument prototype would still apply.  */
11554 #ifdef __cplusplus
11555 extern "C"
11556 #endif
11557 char dlopen ();
11558 int
11559 main ()
11560 {
11561 return dlopen ();
11562   ;
11563   return 0;
11564 }
11565 _ACEOF
11566 if ac_fn_c_try_link "$LINENO"; then :
11567   ac_cv_lib_dl_dlopen=yes
11568 else
11569   ac_cv_lib_dl_dlopen=no
11570 fi
11571 rm -f core conftest.err conftest.$ac_objext \
11572     conftest$ac_exeext conftest.$ac_ext
11573 LIBS=$ac_check_lib_save_LIBS
11574 fi
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11576 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11577 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11578   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11579 else
11580
11581     lt_cv_dlopen="dyld"
11582     lt_cv_dlopen_libs=
11583     lt_cv_dlopen_self=yes
11584
11585 fi
11586
11587     ;;
11588
11589   *)
11590     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11591 if test "x$ac_cv_func_shl_load" = xyes; then :
11592   lt_cv_dlopen="shl_load"
11593 else
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11595 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11596 if ${ac_cv_lib_dld_shl_load+:} false; then :
11597   $as_echo_n "(cached) " >&6
11598 else
11599   ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-ldld  $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h.  */
11603
11604 /* Override any GCC internal prototype to avoid an error.
11605    Use char because int might match the return type of a GCC
11606    builtin and then its argument prototype would still apply.  */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 char shl_load ();
11611 int
11612 main ()
11613 {
11614 return shl_load ();
11615   ;
11616   return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11620   ac_cv_lib_dld_shl_load=yes
11621 else
11622   ac_cv_lib_dld_shl_load=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625     conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11629 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11630 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11631   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11632 else
11633   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11634 if test "x$ac_cv_func_dlopen" = xyes; then :
11635   lt_cv_dlopen="dlopen"
11636 else
11637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11638 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11639 if ${ac_cv_lib_dl_dlopen+:} false; then :
11640   $as_echo_n "(cached) " >&6
11641 else
11642   ac_check_lib_save_LIBS=$LIBS
11643 LIBS="-ldl  $LIBS"
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h.  */
11646
11647 /* Override any GCC internal prototype to avoid an error.
11648    Use char because int might match the return type of a GCC
11649    builtin and then its argument prototype would still apply.  */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char dlopen ();
11654 int
11655 main ()
11656 {
11657 return dlopen ();
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663   ac_cv_lib_dl_dlopen=yes
11664 else
11665   ac_cv_lib_dl_dlopen=no
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668     conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11672 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11673 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11674   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11675 else
11676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11677 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11678 if ${ac_cv_lib_svld_dlopen+:} false; then :
11679   $as_echo_n "(cached) " >&6
11680 else
11681   ac_check_lib_save_LIBS=$LIBS
11682 LIBS="-lsvld  $LIBS"
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h.  */
11685
11686 /* Override any GCC internal prototype to avoid an error.
11687    Use char because int might match the return type of a GCC
11688    builtin and then its argument prototype would still apply.  */
11689 #ifdef __cplusplus
11690 extern "C"
11691 #endif
11692 char dlopen ();
11693 int
11694 main ()
11695 {
11696 return dlopen ();
11697   ;
11698   return 0;
11699 }
11700 _ACEOF
11701 if ac_fn_c_try_link "$LINENO"; then :
11702   ac_cv_lib_svld_dlopen=yes
11703 else
11704   ac_cv_lib_svld_dlopen=no
11705 fi
11706 rm -f core conftest.err conftest.$ac_objext \
11707     conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11709 fi
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11711 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11712 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11713   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11714 else
11715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11716 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11717 if ${ac_cv_lib_dld_dld_link+:} false; then :
11718   $as_echo_n "(cached) " >&6
11719 else
11720   ac_check_lib_save_LIBS=$LIBS
11721 LIBS="-ldld  $LIBS"
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h.  */
11724
11725 /* Override any GCC internal prototype to avoid an error.
11726    Use char because int might match the return type of a GCC
11727    builtin and then its argument prototype would still apply.  */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 char dld_link ();
11732 int
11733 main ()
11734 {
11735 return dld_link ();
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_c_try_link "$LINENO"; then :
11741   ac_cv_lib_dld_dld_link=yes
11742 else
11743   ac_cv_lib_dld_dld_link=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext \
11746     conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11750 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11751 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11752   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11753 fi
11754
11755
11756 fi
11757
11758
11759 fi
11760
11761
11762 fi
11763
11764
11765 fi
11766
11767
11768 fi
11769
11770     ;;
11771   esac
11772
11773   if test "x$lt_cv_dlopen" != xno; then
11774     enable_dlopen=yes
11775   else
11776     enable_dlopen=no
11777   fi
11778
11779   case $lt_cv_dlopen in
11780   dlopen)
11781     save_CPPFLAGS="$CPPFLAGS"
11782     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11783
11784     save_LDFLAGS="$LDFLAGS"
11785     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11786
11787     save_LIBS="$LIBS"
11788     LIBS="$lt_cv_dlopen_libs $LIBS"
11789
11790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11791 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11792 if ${lt_cv_dlopen_self+:} false; then :
11793   $as_echo_n "(cached) " >&6
11794 else
11795           if test "$cross_compiling" = yes; then :
11796   lt_cv_dlopen_self=cross
11797 else
11798   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11799   lt_status=$lt_dlunknown
11800   cat > conftest.$ac_ext <<_LT_EOF
11801 #line $LINENO "configure"
11802 #include "confdefs.h"
11803
11804 #if HAVE_DLFCN_H
11805 #include <dlfcn.h>
11806 #endif
11807
11808 #include <stdio.h>
11809
11810 #ifdef RTLD_GLOBAL
11811 #  define LT_DLGLOBAL           RTLD_GLOBAL
11812 #else
11813 #  ifdef DL_GLOBAL
11814 #    define LT_DLGLOBAL         DL_GLOBAL
11815 #  else
11816 #    define LT_DLGLOBAL         0
11817 #  endif
11818 #endif
11819
11820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11821    find out it does not work in some platform. */
11822 #ifndef LT_DLLAZY_OR_NOW
11823 #  ifdef RTLD_LAZY
11824 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11825 #  else
11826 #    ifdef DL_LAZY
11827 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11828 #    else
11829 #      ifdef RTLD_NOW
11830 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11831 #      else
11832 #        ifdef DL_NOW
11833 #          define LT_DLLAZY_OR_NOW      DL_NOW
11834 #        else
11835 #          define LT_DLLAZY_OR_NOW      0
11836 #        endif
11837 #      endif
11838 #    endif
11839 #  endif
11840 #endif
11841
11842 /* When -fvisbility=hidden is used, assume the code has been annotated
11843    correspondingly for the symbols needed.  */
11844 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11845 int fnord () __attribute__((visibility("default")));
11846 #endif
11847
11848 int fnord () { return 42; }
11849 int main ()
11850 {
11851   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11852   int status = $lt_dlunknown;
11853
11854   if (self)
11855     {
11856       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11857       else
11858         {
11859           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11860           else puts (dlerror ());
11861         }
11862       /* dlclose (self); */
11863     }
11864   else
11865     puts (dlerror ());
11866
11867   return status;
11868 }
11869 _LT_EOF
11870   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11871   (eval $ac_link) 2>&5
11872   ac_status=$?
11873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11874   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11875     (./conftest; exit; ) >&5 2>/dev/null
11876     lt_status=$?
11877     case x$lt_status in
11878       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11879       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11880       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11881     esac
11882   else :
11883     # compilation failed
11884     lt_cv_dlopen_self=no
11885   fi
11886 fi
11887 rm -fr conftest*
11888
11889
11890 fi
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11892 $as_echo "$lt_cv_dlopen_self" >&6; }
11893
11894     if test "x$lt_cv_dlopen_self" = xyes; then
11895       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11896       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11897 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11898 if ${lt_cv_dlopen_self_static+:} false; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901           if test "$cross_compiling" = yes; then :
11902   lt_cv_dlopen_self_static=cross
11903 else
11904   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11905   lt_status=$lt_dlunknown
11906   cat > conftest.$ac_ext <<_LT_EOF
11907 #line $LINENO "configure"
11908 #include "confdefs.h"
11909
11910 #if HAVE_DLFCN_H
11911 #include <dlfcn.h>
11912 #endif
11913
11914 #include <stdio.h>
11915
11916 #ifdef RTLD_GLOBAL
11917 #  define LT_DLGLOBAL           RTLD_GLOBAL
11918 #else
11919 #  ifdef DL_GLOBAL
11920 #    define LT_DLGLOBAL         DL_GLOBAL
11921 #  else
11922 #    define LT_DLGLOBAL         0
11923 #  endif
11924 #endif
11925
11926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11927    find out it does not work in some platform. */
11928 #ifndef LT_DLLAZY_OR_NOW
11929 #  ifdef RTLD_LAZY
11930 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11931 #  else
11932 #    ifdef DL_LAZY
11933 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11934 #    else
11935 #      ifdef RTLD_NOW
11936 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11937 #      else
11938 #        ifdef DL_NOW
11939 #          define LT_DLLAZY_OR_NOW      DL_NOW
11940 #        else
11941 #          define LT_DLLAZY_OR_NOW      0
11942 #        endif
11943 #      endif
11944 #    endif
11945 #  endif
11946 #endif
11947
11948 /* When -fvisbility=hidden is used, assume the code has been annotated
11949    correspondingly for the symbols needed.  */
11950 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11951 int fnord () __attribute__((visibility("default")));
11952 #endif
11953
11954 int fnord () { return 42; }
11955 int main ()
11956 {
11957   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11958   int status = $lt_dlunknown;
11959
11960   if (self)
11961     {
11962       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11963       else
11964         {
11965           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11966           else puts (dlerror ());
11967         }
11968       /* dlclose (self); */
11969     }
11970   else
11971     puts (dlerror ());
11972
11973   return status;
11974 }
11975 _LT_EOF
11976   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11977   (eval $ac_link) 2>&5
11978   ac_status=$?
11979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11981     (./conftest; exit; ) >&5 2>/dev/null
11982     lt_status=$?
11983     case x$lt_status in
11984       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11985       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11986       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11987     esac
11988   else :
11989     # compilation failed
11990     lt_cv_dlopen_self_static=no
11991   fi
11992 fi
11993 rm -fr conftest*
11994
11995
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11998 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11999     fi
12000
12001     CPPFLAGS="$save_CPPFLAGS"
12002     LDFLAGS="$save_LDFLAGS"
12003     LIBS="$save_LIBS"
12004     ;;
12005   esac
12006
12007   case $lt_cv_dlopen_self in
12008   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12009   *) enable_dlopen_self=unknown ;;
12010   esac
12011
12012   case $lt_cv_dlopen_self_static in
12013   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12014   *) enable_dlopen_self_static=unknown ;;
12015   esac
12016 fi
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034 striplib=
12035 old_striplib=
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12037 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12038 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12039   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12040   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12042 $as_echo "yes" >&6; }
12043 else
12044 # FIXME - insert some real tests, host_os isn't really good enough
12045   case $host_os in
12046   darwin*)
12047     if test -n "$STRIP" ; then
12048       striplib="$STRIP -x"
12049       old_striplib="$STRIP -S"
12050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12051 $as_echo "yes" >&6; }
12052     else
12053       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054 $as_echo "no" >&6; }
12055     fi
12056     ;;
12057   *)
12058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12060     ;;
12061   esac
12062 fi
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075   # Report which library types will actually be built
12076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12077 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12079 $as_echo "$can_build_shared" >&6; }
12080
12081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12082 $as_echo_n "checking whether to build shared libraries... " >&6; }
12083   test "$can_build_shared" = "no" && enable_shared=no
12084
12085   # On AIX, shared libraries and static libraries use the same namespace, and
12086   # are all built from PIC.
12087   case $host_os in
12088   aix3*)
12089     test "$enable_shared" = yes && enable_static=no
12090     if test -n "$RANLIB"; then
12091       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12092       postinstall_cmds='$RANLIB $lib'
12093     fi
12094     ;;
12095
12096   aix[4-9]*)
12097     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12098       test "$enable_shared" = yes && enable_static=no
12099     fi
12100     ;;
12101   esac
12102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12103 $as_echo "$enable_shared" >&6; }
12104
12105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12106 $as_echo_n "checking whether to build static libraries... " >&6; }
12107   # Make sure either enable_shared or enable_static is yes.
12108   test "$enable_shared" = yes || enable_static=yes
12109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12110 $as_echo "$enable_static" >&6; }
12111
12112
12113
12114
12115 fi
12116 ac_ext=c
12117 ac_cpp='$CPP $CPPFLAGS'
12118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12121
12122 CC="$lt_save_CC"
12123
12124       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12125     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12126     (test "X$CXX" != "Xg++"))) ; then
12127   ac_ext=cpp
12128 ac_cpp='$CXXCPP $CPPFLAGS'
12129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12133 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12134 if test -z "$CXXCPP"; then
12135   if ${ac_cv_prog_CXXCPP+:} false; then :
12136   $as_echo_n "(cached) " >&6
12137 else
12138       # Double quotes because CXXCPP needs to be expanded
12139     for CXXCPP in "$CXX -E" "/lib/cpp"
12140     do
12141       ac_preproc_ok=false
12142 for ac_cxx_preproc_warn_flag in '' yes
12143 do
12144   # Use a header file that comes with gcc, so configuring glibc
12145   # with a fresh cross-compiler works.
12146   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12147   # <limits.h> exists even on freestanding compilers.
12148   # On the NeXT, cc -E runs the code through the compiler's parser,
12149   # not just through cpp. "Syntax error" is here to catch this case.
12150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h.  */
12152 #ifdef __STDC__
12153 # include <limits.h>
12154 #else
12155 # include <assert.h>
12156 #endif
12157                      Syntax error
12158 _ACEOF
12159 if ac_fn_cxx_try_cpp "$LINENO"; then :
12160
12161 else
12162   # Broken: fails on valid input.
12163 continue
12164 fi
12165 rm -f conftest.err conftest.i conftest.$ac_ext
12166
12167   # OK, works on sane cases.  Now check whether nonexistent headers
12168   # can be detected and how.
12169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h.  */
12171 #include <ac_nonexistent.h>
12172 _ACEOF
12173 if ac_fn_cxx_try_cpp "$LINENO"; then :
12174   # Broken: success on invalid input.
12175 continue
12176 else
12177   # Passes both tests.
12178 ac_preproc_ok=:
12179 break
12180 fi
12181 rm -f conftest.err conftest.i conftest.$ac_ext
12182
12183 done
12184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12185 rm -f conftest.i conftest.err conftest.$ac_ext
12186 if $ac_preproc_ok; then :
12187   break
12188 fi
12189
12190     done
12191     ac_cv_prog_CXXCPP=$CXXCPP
12192
12193 fi
12194   CXXCPP=$ac_cv_prog_CXXCPP
12195 else
12196   ac_cv_prog_CXXCPP=$CXXCPP
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12199 $as_echo "$CXXCPP" >&6; }
12200 ac_preproc_ok=false
12201 for ac_cxx_preproc_warn_flag in '' yes
12202 do
12203   # Use a header file that comes with gcc, so configuring glibc
12204   # with a fresh cross-compiler works.
12205   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206   # <limits.h> exists even on freestanding compilers.
12207   # On the NeXT, cc -E runs the code through the compiler's parser,
12208   # not just through cpp. "Syntax error" is here to catch this case.
12209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h.  */
12211 #ifdef __STDC__
12212 # include <limits.h>
12213 #else
12214 # include <assert.h>
12215 #endif
12216                      Syntax error
12217 _ACEOF
12218 if ac_fn_cxx_try_cpp "$LINENO"; then :
12219
12220 else
12221   # Broken: fails on valid input.
12222 continue
12223 fi
12224 rm -f conftest.err conftest.i conftest.$ac_ext
12225
12226   # OK, works on sane cases.  Now check whether nonexistent headers
12227   # can be detected and how.
12228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h.  */
12230 #include <ac_nonexistent.h>
12231 _ACEOF
12232 if ac_fn_cxx_try_cpp "$LINENO"; then :
12233   # Broken: success on invalid input.
12234 continue
12235 else
12236   # Passes both tests.
12237 ac_preproc_ok=:
12238 break
12239 fi
12240 rm -f conftest.err conftest.i conftest.$ac_ext
12241
12242 done
12243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12244 rm -f conftest.i conftest.err conftest.$ac_ext
12245 if $ac_preproc_ok; then :
12246
12247 else
12248   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12250 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12251 See \`config.log' for more details" "$LINENO" 5; }
12252 fi
12253
12254 ac_ext=c
12255 ac_cpp='$CPP $CPPFLAGS'
12256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12259
12260 else
12261   _lt_caught_CXX_error=yes
12262 fi
12263
12264 ac_ext=cpp
12265 ac_cpp='$CXXCPP $CPPFLAGS'
12266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12269
12270 archive_cmds_need_lc_CXX=no
12271 allow_undefined_flag_CXX=
12272 always_export_symbols_CXX=no
12273 archive_expsym_cmds_CXX=
12274 compiler_needs_object_CXX=no
12275 export_dynamic_flag_spec_CXX=
12276 hardcode_direct_CXX=no
12277 hardcode_direct_absolute_CXX=no
12278 hardcode_libdir_flag_spec_CXX=
12279 hardcode_libdir_separator_CXX=
12280 hardcode_minus_L_CXX=no
12281 hardcode_shlibpath_var_CXX=unsupported
12282 hardcode_automatic_CXX=no
12283 inherit_rpath_CXX=no
12284 module_cmds_CXX=
12285 module_expsym_cmds_CXX=
12286 link_all_deplibs_CXX=unknown
12287 old_archive_cmds_CXX=$old_archive_cmds
12288 reload_flag_CXX=$reload_flag
12289 reload_cmds_CXX=$reload_cmds
12290 no_undefined_flag_CXX=
12291 whole_archive_flag_spec_CXX=
12292 enable_shared_with_static_runtimes_CXX=no
12293
12294 # Source file extension for C++ test sources.
12295 ac_ext=cpp
12296
12297 # Object file extension for compiled C++ test sources.
12298 objext=o
12299 objext_CXX=$objext
12300
12301 # No sense in running all these tests if we already determined that
12302 # the CXX compiler isn't working.  Some variables (like enable_shared)
12303 # are currently assumed to apply to all compilers on this platform,
12304 # and will be corrupted by setting them based on a non-working compiler.
12305 if test "$_lt_caught_CXX_error" != yes; then
12306   # Code to be used in simple compile tests
12307   lt_simple_compile_test_code="int some_variable = 0;"
12308
12309   # Code to be used in simple link tests
12310   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12311
12312   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12313
12314
12315
12316
12317
12318
12319 # If no C compiler was specified, use CC.
12320 LTCC=${LTCC-"$CC"}
12321
12322 # If no C compiler flags were specified, use CFLAGS.
12323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12324
12325 # Allow CC to be a program name with arguments.
12326 compiler=$CC
12327
12328
12329   # save warnings/boilerplate of simple test code
12330   ac_outfile=conftest.$ac_objext
12331 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12332 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12333 _lt_compiler_boilerplate=`cat conftest.err`
12334 $RM conftest*
12335
12336   ac_outfile=conftest.$ac_objext
12337 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12338 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12339 _lt_linker_boilerplate=`cat conftest.err`
12340 $RM -r conftest*
12341
12342
12343   # Allow CC to be a program name with arguments.
12344   lt_save_CC=$CC
12345   lt_save_CFLAGS=$CFLAGS
12346   lt_save_LD=$LD
12347   lt_save_GCC=$GCC
12348   GCC=$GXX
12349   lt_save_with_gnu_ld=$with_gnu_ld
12350   lt_save_path_LD=$lt_cv_path_LD
12351   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12352     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12353   else
12354     $as_unset lt_cv_prog_gnu_ld
12355   fi
12356   if test -n "${lt_cv_path_LDCXX+set}"; then
12357     lt_cv_path_LD=$lt_cv_path_LDCXX
12358   else
12359     $as_unset lt_cv_path_LD
12360   fi
12361   test -z "${LDCXX+set}" || LD=$LDCXX
12362   CC=${CXX-"c++"}
12363   CFLAGS=$CXXFLAGS
12364   compiler=$CC
12365   compiler_CXX=$CC
12366   for cc_temp in $compiler""; do
12367   case $cc_temp in
12368     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12369     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12370     \-*) ;;
12371     *) break;;
12372   esac
12373 done
12374 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12375
12376
12377   if test -n "$compiler"; then
12378     # We don't want -fno-exception when compiling C++ code, so set the
12379     # no_builtin_flag separately
12380     if test "$GXX" = yes; then
12381       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12382     else
12383       lt_prog_compiler_no_builtin_flag_CXX=
12384     fi
12385
12386     if test "$GXX" = yes; then
12387       # Set up default GNU C++ configuration
12388
12389
12390
12391 # Check whether --with-gnu-ld was given.
12392 if test "${with_gnu_ld+set}" = set; then :
12393   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12394 else
12395   with_gnu_ld=no
12396 fi
12397
12398 ac_prog=ld
12399 if test "$GCC" = yes; then
12400   # Check if gcc -print-prog-name=ld gives a path.
12401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12402 $as_echo_n "checking for ld used by $CC... " >&6; }
12403   case $host in
12404   *-*-mingw*)
12405     # gcc leaves a trailing carriage return which upsets mingw
12406     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12407   *)
12408     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12409   esac
12410   case $ac_prog in
12411     # Accept absolute paths.
12412     [\\/]* | ?:[\\/]*)
12413       re_direlt='/[^/][^/]*/\.\./'
12414       # Canonicalize the pathname of ld
12415       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12416       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12417         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12418       done
12419       test -z "$LD" && LD="$ac_prog"
12420       ;;
12421   "")
12422     # If it fails, then pretend we aren't using GCC.
12423     ac_prog=ld
12424     ;;
12425   *)
12426     # If it is relative, then search for the first ld in PATH.
12427     with_gnu_ld=unknown
12428     ;;
12429   esac
12430 elif test "$with_gnu_ld" = yes; then
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12432 $as_echo_n "checking for GNU ld... " >&6; }
12433 else
12434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12435 $as_echo_n "checking for non-GNU ld... " >&6; }
12436 fi
12437 if ${lt_cv_path_LD+:} false; then :
12438   $as_echo_n "(cached) " >&6
12439 else
12440   if test -z "$LD"; then
12441   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12442   for ac_dir in $PATH; do
12443     IFS="$lt_save_ifs"
12444     test -z "$ac_dir" && ac_dir=.
12445     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12446       lt_cv_path_LD="$ac_dir/$ac_prog"
12447       # Check to see if the program is GNU ld.  I'd rather use --version,
12448       # but apparently some variants of GNU ld only accept -v.
12449       # Break only if it was the GNU/non-GNU ld that we prefer.
12450       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12451       *GNU* | *'with BFD'*)
12452         test "$with_gnu_ld" != no && break
12453         ;;
12454       *)
12455         test "$with_gnu_ld" != yes && break
12456         ;;
12457       esac
12458     fi
12459   done
12460   IFS="$lt_save_ifs"
12461 else
12462   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12463 fi
12464 fi
12465
12466 LD="$lt_cv_path_LD"
12467 if test -n "$LD"; then
12468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12469 $as_echo "$LD" >&6; }
12470 else
12471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12473 fi
12474 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12476 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12477 if ${lt_cv_prog_gnu_ld+:} false; then :
12478   $as_echo_n "(cached) " >&6
12479 else
12480   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12481 case `$LD -v 2>&1 </dev/null` in
12482 *GNU* | *'with BFD'*)
12483   lt_cv_prog_gnu_ld=yes
12484   ;;
12485 *)
12486   lt_cv_prog_gnu_ld=no
12487   ;;
12488 esac
12489 fi
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12491 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12492 with_gnu_ld=$lt_cv_prog_gnu_ld
12493
12494
12495
12496
12497
12498
12499
12500       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12501       # archiving commands below assume that GNU ld is being used.
12502       if test "$with_gnu_ld" = yes; then
12503         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12504         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'
12505
12506         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12507         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12508
12509         # If archive_cmds runs LD, not CC, wlarc should be empty
12510         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12511         #     investigate it a little bit more. (MM)
12512         wlarc='${wl}'
12513
12514         # ancient GNU ld didn't support --whole-archive et. al.
12515         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12516           $GREP 'no-whole-archive' > /dev/null; then
12517           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12518         else
12519           whole_archive_flag_spec_CXX=
12520         fi
12521       else
12522         with_gnu_ld=no
12523         wlarc=
12524
12525         # A generic and very simple default shared library creation
12526         # command for GNU C++ for the case where it uses the native
12527         # linker, instead of GNU ld.  If possible, this setting should
12528         # overridden to take advantage of the native linker features on
12529         # the platform it is being used on.
12530         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12531       fi
12532
12533       # Commands to make compiler produce verbose output that lists
12534       # what "hidden" libraries, object files and flags are used when
12535       # linking a shared library.
12536       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12537
12538     else
12539       GXX=no
12540       with_gnu_ld=no
12541       wlarc=
12542     fi
12543
12544     # PORTME: fill in a description of your system's C++ link characteristics
12545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12547     ld_shlibs_CXX=yes
12548     case $host_os in
12549       aix3*)
12550         # FIXME: insert proper C++ library support
12551         ld_shlibs_CXX=no
12552         ;;
12553       aix[4-9]*)
12554         if test "$host_cpu" = ia64; then
12555           # On IA64, the linker does run time linking by default, so we don't
12556           # have to do anything special.
12557           aix_use_runtimelinking=no
12558           exp_sym_flag='-Bexport'
12559           no_entry_flag=""
12560         else
12561           aix_use_runtimelinking=no
12562
12563           # Test if we are trying to use run time linking or normal
12564           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12565           # need to do runtime linking.
12566           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12567             for ld_flag in $LDFLAGS; do
12568               case $ld_flag in
12569               *-brtl*)
12570                 aix_use_runtimelinking=yes
12571                 break
12572                 ;;
12573               esac
12574             done
12575             ;;
12576           esac
12577
12578           exp_sym_flag='-bexport'
12579           no_entry_flag='-bnoentry'
12580         fi
12581
12582         # When large executables or shared objects are built, AIX ld can
12583         # have problems creating the table of contents.  If linking a library
12584         # or program results in "error TOC overflow" add -mminimal-toc to
12585         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12586         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12587
12588         archive_cmds_CXX=''
12589         hardcode_direct_CXX=yes
12590         hardcode_direct_absolute_CXX=yes
12591         hardcode_libdir_separator_CXX=':'
12592         link_all_deplibs_CXX=yes
12593         file_list_spec_CXX='${wl}-f,'
12594
12595         if test "$GXX" = yes; then
12596           case $host_os in aix4.[012]|aix4.[012].*)
12597           # We only want to do this on AIX 4.2 and lower, the check
12598           # below for broken collect2 doesn't work under 4.3+
12599           collect2name=`${CC} -print-prog-name=collect2`
12600           if test -f "$collect2name" &&
12601              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12602           then
12603             # We have reworked collect2
12604             :
12605           else
12606             # We have old collect2
12607             hardcode_direct_CXX=unsupported
12608             # It fails to find uninstalled libraries when the uninstalled
12609             # path is not listed in the libpath.  Setting hardcode_minus_L
12610             # to unsupported forces relinking
12611             hardcode_minus_L_CXX=yes
12612             hardcode_libdir_flag_spec_CXX='-L$libdir'
12613             hardcode_libdir_separator_CXX=
12614           fi
12615           esac
12616           shared_flag='-shared'
12617           if test "$aix_use_runtimelinking" = yes; then
12618             shared_flag="$shared_flag "'${wl}-G'
12619           fi
12620         else
12621           # not using gcc
12622           if test "$host_cpu" = ia64; then
12623           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12624           # chokes on -Wl,-G. The following line is correct:
12625           shared_flag='-G'
12626           else
12627             if test "$aix_use_runtimelinking" = yes; then
12628               shared_flag='${wl}-G'
12629             else
12630               shared_flag='${wl}-bM:SRE'
12631             fi
12632           fi
12633         fi
12634
12635         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12636         # It seems that -bexpall does not export symbols beginning with
12637         # underscore (_), so it is better to generate a list of symbols to
12638         # export.
12639         always_export_symbols_CXX=yes
12640         if test "$aix_use_runtimelinking" = yes; then
12641           # Warning - without using the other runtime loading flags (-brtl),
12642           # -berok will link without error, but may produce a broken library.
12643           allow_undefined_flag_CXX='-berok'
12644           # Determine the default libpath from the value encoded in an empty
12645           # executable.
12646           if test "${lt_cv_aix_libpath+set}" = set; then
12647   aix_libpath=$lt_cv_aix_libpath
12648 else
12649   if ${lt_cv_aix_libpath__CXX+:} false; then :
12650   $as_echo_n "(cached) " >&6
12651 else
12652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h.  */
12654
12655 int
12656 main ()
12657 {
12658
12659   ;
12660   return 0;
12661 }
12662 _ACEOF
12663 if ac_fn_cxx_try_link "$LINENO"; then :
12664
12665   lt_aix_libpath_sed='
12666       /Import File Strings/,/^$/ {
12667           /^0/ {
12668               s/^0  *\([^ ]*\) *$/\1/
12669               p
12670           }
12671       }'
12672   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12673   # Check for a 64-bit object if we didn't find anything.
12674   if test -z "$lt_cv_aix_libpath__CXX"; then
12675     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12676   fi
12677 fi
12678 rm -f core conftest.err conftest.$ac_objext \
12679     conftest$ac_exeext conftest.$ac_ext
12680   if test -z "$lt_cv_aix_libpath__CXX"; then
12681     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12682   fi
12683
12684 fi
12685
12686   aix_libpath=$lt_cv_aix_libpath__CXX
12687 fi
12688
12689           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12690
12691           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"
12692         else
12693           if test "$host_cpu" = ia64; then
12694             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12695             allow_undefined_flag_CXX="-z nodefs"
12696             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"
12697           else
12698             # Determine the default libpath from the value encoded in an
12699             # empty executable.
12700             if test "${lt_cv_aix_libpath+set}" = set; then
12701   aix_libpath=$lt_cv_aix_libpath
12702 else
12703   if ${lt_cv_aix_libpath__CXX+:} false; then :
12704   $as_echo_n "(cached) " >&6
12705 else
12706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h.  */
12708
12709 int
12710 main ()
12711 {
12712
12713   ;
12714   return 0;
12715 }
12716 _ACEOF
12717 if ac_fn_cxx_try_link "$LINENO"; then :
12718
12719   lt_aix_libpath_sed='
12720       /Import File Strings/,/^$/ {
12721           /^0/ {
12722               s/^0  *\([^ ]*\) *$/\1/
12723               p
12724           }
12725       }'
12726   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12727   # Check for a 64-bit object if we didn't find anything.
12728   if test -z "$lt_cv_aix_libpath__CXX"; then
12729     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12730   fi
12731 fi
12732 rm -f core conftest.err conftest.$ac_objext \
12733     conftest$ac_exeext conftest.$ac_ext
12734   if test -z "$lt_cv_aix_libpath__CXX"; then
12735     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12736   fi
12737
12738 fi
12739
12740   aix_libpath=$lt_cv_aix_libpath__CXX
12741 fi
12742
12743             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12744             # Warning - without using the other run time loading flags,
12745             # -berok will link without error, but may produce a broken library.
12746             no_undefined_flag_CXX=' ${wl}-bernotok'
12747             allow_undefined_flag_CXX=' ${wl}-berok'
12748             if test "$with_gnu_ld" = yes; then
12749               # We only use this code for GNU lds that support --whole-archive.
12750               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12751             else
12752               # Exported symbols can be pulled into shared objects from archives
12753               whole_archive_flag_spec_CXX='$convenience'
12754             fi
12755             archive_cmds_need_lc_CXX=yes
12756             # This is similar to how AIX traditionally builds its shared
12757             # libraries.
12758             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'
12759           fi
12760         fi
12761         ;;
12762
12763       beos*)
12764         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12765           allow_undefined_flag_CXX=unsupported
12766           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12767           # support --undefined.  This deserves some investigation.  FIXME
12768           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12769         else
12770           ld_shlibs_CXX=no
12771         fi
12772         ;;
12773
12774       chorus*)
12775         case $cc_basename in
12776           *)
12777           # FIXME: insert proper C++ library support
12778           ld_shlibs_CXX=no
12779           ;;
12780         esac
12781         ;;
12782
12783       cygwin* | mingw* | pw32* | cegcc*)
12784         case $GXX,$cc_basename in
12785         ,cl* | no,cl*)
12786           # Native MSVC
12787           # hardcode_libdir_flag_spec is actually meaningless, as there is
12788           # no search path for DLLs.
12789           hardcode_libdir_flag_spec_CXX=' '
12790           allow_undefined_flag_CXX=unsupported
12791           always_export_symbols_CXX=yes
12792           file_list_spec_CXX='@'
12793           # Tell ltmain to make .lib files, not .a files.
12794           libext=lib
12795           # Tell ltmain to make .dll files, not .so files.
12796           shrext_cmds=".dll"
12797           # FIXME: Setting linknames here is a bad hack.
12798           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12799           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12800               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12801             else
12802               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12803             fi~
12804             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12805             linknames='
12806           # The linker will not automatically build a static lib if we build a DLL.
12807           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12808           enable_shared_with_static_runtimes_CXX=yes
12809           # Don't use ranlib
12810           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12811           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12812             lt_tool_outputfile="@TOOL_OUTPUT@"~
12813             case $lt_outputfile in
12814               *.exe|*.EXE) ;;
12815               *)
12816                 lt_outputfile="$lt_outputfile.exe"
12817                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12818                 ;;
12819             esac~
12820             func_to_tool_file "$lt_outputfile"~
12821             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12822               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12823               $RM "$lt_outputfile.manifest";
12824             fi'
12825           ;;
12826         *)
12827           # g++
12828           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12829           # as there is no search path for DLLs.
12830           hardcode_libdir_flag_spec_CXX='-L$libdir'
12831           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12832           allow_undefined_flag_CXX=unsupported
12833           always_export_symbols_CXX=no
12834           enable_shared_with_static_runtimes_CXX=yes
12835
12836           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12837             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'
12838             # If the export-symbols file already is a .def file (1st line
12839             # is EXPORTS), use it as is; otherwise, prepend...
12840             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12841               cp $export_symbols $output_objdir/$soname.def;
12842             else
12843               echo EXPORTS > $output_objdir/$soname.def;
12844               cat $export_symbols >> $output_objdir/$soname.def;
12845             fi~
12846             $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'
12847           else
12848             ld_shlibs_CXX=no
12849           fi
12850           ;;
12851         esac
12852         ;;
12853       darwin* | rhapsody*)
12854
12855
12856   archive_cmds_need_lc_CXX=no
12857   hardcode_direct_CXX=no
12858   hardcode_automatic_CXX=yes
12859   hardcode_shlibpath_var_CXX=unsupported
12860   if test "$lt_cv_ld_force_load" = "yes"; then
12861     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\"`'
12862
12863   else
12864     whole_archive_flag_spec_CXX=''
12865   fi
12866   link_all_deplibs_CXX=yes
12867   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12868   case $cc_basename in
12869      ifort*) _lt_dar_can_shared=yes ;;
12870      *) _lt_dar_can_shared=$GCC ;;
12871   esac
12872   if test "$_lt_dar_can_shared" = "yes"; then
12873     output_verbose_link_cmd=func_echo_all
12874     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}"
12875     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12876     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}"
12877     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}"
12878        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12879       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}"
12880       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}"
12881     fi
12882
12883   else
12884   ld_shlibs_CXX=no
12885   fi
12886
12887         ;;
12888
12889       dgux*)
12890         case $cc_basename in
12891           ec++*)
12892             # FIXME: insert proper C++ library support
12893             ld_shlibs_CXX=no
12894             ;;
12895           ghcx*)
12896             # Green Hills C++ Compiler
12897             # FIXME: insert proper C++ library support
12898             ld_shlibs_CXX=no
12899             ;;
12900           *)
12901             # FIXME: insert proper C++ library support
12902             ld_shlibs_CXX=no
12903             ;;
12904         esac
12905         ;;
12906
12907       freebsd2.*)
12908         # C++ shared libraries reported to be fairly broken before
12909         # switch to ELF
12910         ld_shlibs_CXX=no
12911         ;;
12912
12913       freebsd-elf*)
12914         archive_cmds_need_lc_CXX=no
12915         ;;
12916
12917       freebsd* | dragonfly*)
12918         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12919         # conventions
12920         ld_shlibs_CXX=yes
12921         ;;
12922
12923       haiku*)
12924         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12925         link_all_deplibs_CXX=yes
12926         ;;
12927
12928       hpux9*)
12929         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12930         hardcode_libdir_separator_CXX=:
12931         export_dynamic_flag_spec_CXX='${wl}-E'
12932         hardcode_direct_CXX=yes
12933         hardcode_minus_L_CXX=yes # Not in the search PATH,
12934                                              # but as the default
12935                                              # location of the library.
12936
12937         case $cc_basename in
12938           CC*)
12939             # FIXME: insert proper C++ library support
12940             ld_shlibs_CXX=no
12941             ;;
12942           aCC*)
12943             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'
12944             # Commands to make compiler produce verbose output that lists
12945             # what "hidden" libraries, object files and flags are used when
12946             # linking a shared library.
12947             #
12948             # There doesn't appear to be a way to prevent this compiler from
12949             # explicitly linking system object files so we need to strip them
12950             # from the output so that they don't get included in the library
12951             # dependencies.
12952             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"'
12953             ;;
12954           *)
12955             if test "$GXX" = yes; then
12956               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'
12957             else
12958               # FIXME: insert proper C++ library support
12959               ld_shlibs_CXX=no
12960             fi
12961             ;;
12962         esac
12963         ;;
12964
12965       hpux10*|hpux11*)
12966         if test $with_gnu_ld = no; then
12967           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12968           hardcode_libdir_separator_CXX=:
12969
12970           case $host_cpu in
12971             hppa*64*|ia64*)
12972               ;;
12973             *)
12974               export_dynamic_flag_spec_CXX='${wl}-E'
12975               ;;
12976           esac
12977         fi
12978         case $host_cpu in
12979           hppa*64*|ia64*)
12980             hardcode_direct_CXX=no
12981             hardcode_shlibpath_var_CXX=no
12982             ;;
12983           *)
12984             hardcode_direct_CXX=yes
12985             hardcode_direct_absolute_CXX=yes
12986             hardcode_minus_L_CXX=yes # Not in the search PATH,
12987                                                  # but as the default
12988                                                  # location of the library.
12989             ;;
12990         esac
12991
12992         case $cc_basename in
12993           CC*)
12994             # FIXME: insert proper C++ library support
12995             ld_shlibs_CXX=no
12996             ;;
12997           aCC*)
12998             case $host_cpu in
12999               hppa*64*)
13000                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13001                 ;;
13002               ia64*)
13003                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13004                 ;;
13005               *)
13006                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13007                 ;;
13008             esac
13009             # Commands to make compiler produce verbose output that lists
13010             # what "hidden" libraries, object files and flags are used when
13011             # linking a shared library.
13012             #
13013             # There doesn't appear to be a way to prevent this compiler from
13014             # explicitly linking system object files so we need to strip them
13015             # from the output so that they don't get included in the library
13016             # dependencies.
13017             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"'
13018             ;;
13019           *)
13020             if test "$GXX" = yes; then
13021               if test $with_gnu_ld = no; then
13022                 case $host_cpu in
13023                   hppa*64*)
13024                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13025                     ;;
13026                   ia64*)
13027                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13028                     ;;
13029                   *)
13030                     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'
13031                     ;;
13032                 esac
13033               fi
13034             else
13035               # FIXME: insert proper C++ library support
13036               ld_shlibs_CXX=no
13037             fi
13038             ;;
13039         esac
13040         ;;
13041
13042       interix[3-9]*)
13043         hardcode_direct_CXX=no
13044         hardcode_shlibpath_var_CXX=no
13045         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13046         export_dynamic_flag_spec_CXX='${wl}-E'
13047         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13048         # Instead, shared libraries are loaded at an image base (0x10000000 by
13049         # default) and relocated if they conflict, which is a slow very memory
13050         # consuming and fragmenting process.  To avoid this, we pick a random,
13051         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13052         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13053         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'
13054         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'
13055         ;;
13056       irix5* | irix6*)
13057         case $cc_basename in
13058           CC*)
13059             # SGI C++
13060             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'
13061
13062             # Archives containing C++ object files must be created using
13063             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13064             # necessary to make sure instantiated templates are included
13065             # in the archive.
13066             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13067             ;;
13068           *)
13069             if test "$GXX" = yes; then
13070               if test "$with_gnu_ld" = no; then
13071                 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'
13072               else
13073                 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'
13074               fi
13075             fi
13076             link_all_deplibs_CXX=yes
13077             ;;
13078         esac
13079         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13080         hardcode_libdir_separator_CXX=:
13081         inherit_rpath_CXX=yes
13082         ;;
13083
13084       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13085         case $cc_basename in
13086           KCC*)
13087             # Kuck and Associates, Inc. (KAI) C++ Compiler
13088
13089             # KCC will only create a shared library if the output file
13090             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13091             # to its proper name (with version) after linking.
13092             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'
13093             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'
13094             # Commands to make compiler produce verbose output that lists
13095             # what "hidden" libraries, object files and flags are used when
13096             # linking a shared library.
13097             #
13098             # There doesn't appear to be a way to prevent this compiler from
13099             # explicitly linking system object files so we need to strip them
13100             # from the output so that they don't get included in the library
13101             # dependencies.
13102             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"'
13103
13104             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13105             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13106
13107             # Archives containing C++ object files must be created using
13108             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13109             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13110             ;;
13111           icpc* | ecpc* )
13112             # Intel C++
13113             with_gnu_ld=yes
13114             # version 8.0 and above of icpc choke on multiply defined symbols
13115             # if we add $predep_objects and $postdep_objects, however 7.1 and
13116             # earlier do not add the objects themselves.
13117             case `$CC -V 2>&1` in
13118               *"Version 7."*)
13119                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120                 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'
13121                 ;;
13122               *)  # Version 8.0 or newer
13123                 tmp_idyn=
13124                 case $host_cpu in
13125                   ia64*) tmp_idyn=' -i_dynamic';;
13126                 esac
13127                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128                 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'
13129                 ;;
13130             esac
13131             archive_cmds_need_lc_CXX=no
13132             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13133             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13134             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13135             ;;
13136           pgCC* | pgcpp*)
13137             # Portland Group C++ compiler
13138             case `$CC -V` in
13139             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13140               prelink_cmds_CXX='tpldir=Template.dir~
13141                 rm -rf $tpldir~
13142                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13143                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13144               old_archive_cmds_CXX='tpldir=Template.dir~
13145                 rm -rf $tpldir~
13146                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13147                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13148                 $RANLIB $oldlib'
13149               archive_cmds_CXX='tpldir=Template.dir~
13150                 rm -rf $tpldir~
13151                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13152                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13153               archive_expsym_cmds_CXX='tpldir=Template.dir~
13154                 rm -rf $tpldir~
13155                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13156                 $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'
13157               ;;
13158             *) # Version 6 and above use weak symbols
13159               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13160               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'
13161               ;;
13162             esac
13163
13164             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13165             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13166             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'
13167             ;;
13168           cxx*)
13169             # Compaq C++
13170             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171             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'
13172
13173             runpath_var=LD_RUN_PATH
13174             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13175             hardcode_libdir_separator_CXX=:
13176
13177             # Commands to make compiler produce verbose output that lists
13178             # what "hidden" libraries, object files and flags are used when
13179             # linking a shared library.
13180             #
13181             # There doesn't appear to be a way to prevent this compiler from
13182             # explicitly linking system object files so we need to strip them
13183             # from the output so that they don't get included in the library
13184             # dependencies.
13185             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'
13186             ;;
13187           xl* | mpixl* | bgxl*)
13188             # IBM XL 8.0 on PPC, with GNU ld
13189             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13190             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13191             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13192             if test "x$supports_anon_versioning" = xyes; then
13193               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13194                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13195                 echo "local: *; };" >> $output_objdir/$libname.ver~
13196                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13197             fi
13198             ;;
13199           *)
13200             case `$CC -V 2>&1 | sed 5q` in
13201             *Sun\ C*)
13202               # Sun C++ 5.9
13203               no_undefined_flag_CXX=' -zdefs'
13204               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13205               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'
13206               hardcode_libdir_flag_spec_CXX='-R$libdir'
13207               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'
13208               compiler_needs_object_CXX=yes
13209
13210               # Not sure whether something based on
13211               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13212               # would be better.
13213               output_verbose_link_cmd='func_echo_all'
13214
13215               # Archives containing C++ object files must be created using
13216               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13217               # necessary to make sure instantiated templates are included
13218               # in the archive.
13219               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13220               ;;
13221             esac
13222             ;;
13223         esac
13224         ;;
13225
13226       lynxos*)
13227         # FIXME: insert proper C++ library support
13228         ld_shlibs_CXX=no
13229         ;;
13230
13231       m88k*)
13232         # FIXME: insert proper C++ library support
13233         ld_shlibs_CXX=no
13234         ;;
13235
13236       mvs*)
13237         case $cc_basename in
13238           cxx*)
13239             # FIXME: insert proper C++ library support
13240             ld_shlibs_CXX=no
13241             ;;
13242           *)
13243             # FIXME: insert proper C++ library support
13244             ld_shlibs_CXX=no
13245             ;;
13246         esac
13247         ;;
13248
13249       netbsd*)
13250         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13251           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13252           wlarc=
13253           hardcode_libdir_flag_spec_CXX='-R$libdir'
13254           hardcode_direct_CXX=yes
13255           hardcode_shlibpath_var_CXX=no
13256         fi
13257         # Workaround some broken pre-1.5 toolchains
13258         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13259         ;;
13260
13261       *nto* | *qnx*)
13262         ld_shlibs_CXX=yes
13263         ;;
13264
13265       openbsd2*)
13266         # C++ shared libraries are fairly broken
13267         ld_shlibs_CXX=no
13268         ;;
13269
13270       openbsd*)
13271         if test -f /usr/libexec/ld.so; then
13272           hardcode_direct_CXX=yes
13273           hardcode_shlibpath_var_CXX=no
13274           hardcode_direct_absolute_CXX=yes
13275           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13276           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13277           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13278             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13279             export_dynamic_flag_spec_CXX='${wl}-E'
13280             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13281           fi
13282           output_verbose_link_cmd=func_echo_all
13283         else
13284           ld_shlibs_CXX=no
13285         fi
13286         ;;
13287
13288       osf3* | osf4* | osf5*)
13289         case $cc_basename in
13290           KCC*)
13291             # Kuck and Associates, Inc. (KAI) C++ Compiler
13292
13293             # KCC will only create a shared library if the output file
13294             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13295             # to its proper name (with version) after linking.
13296             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'
13297
13298             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13299             hardcode_libdir_separator_CXX=:
13300
13301             # Archives containing C++ object files must be created using
13302             # the KAI C++ compiler.
13303             case $host in
13304               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13305               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13306             esac
13307             ;;
13308           RCC*)
13309             # Rational C++ 2.4.1
13310             # FIXME: insert proper C++ library support
13311             ld_shlibs_CXX=no
13312             ;;
13313           cxx*)
13314             case $host in
13315               osf3*)
13316                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13317                 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'
13318                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13319                 ;;
13320               *)
13321                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13322                 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'
13323                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13324                   echo "-hidden">> $lib.exp~
13325                   $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~
13326                   $RM $lib.exp'
13327                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13328                 ;;
13329             esac
13330
13331             hardcode_libdir_separator_CXX=:
13332
13333             # Commands to make compiler produce verbose output that lists
13334             # what "hidden" libraries, object files and flags are used when
13335             # linking a shared library.
13336             #
13337             # There doesn't appear to be a way to prevent this compiler from
13338             # explicitly linking system object files so we need to strip them
13339             # from the output so that they don't get included in the library
13340             # dependencies.
13341             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"'
13342             ;;
13343           *)
13344             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13345               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13346               case $host in
13347                 osf3*)
13348                   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'
13349                   ;;
13350                 *)
13351                   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'
13352                   ;;
13353               esac
13354
13355               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13356               hardcode_libdir_separator_CXX=:
13357
13358               # Commands to make compiler produce verbose output that lists
13359               # what "hidden" libraries, object files and flags are used when
13360               # linking a shared library.
13361               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13362
13363             else
13364               # FIXME: insert proper C++ library support
13365               ld_shlibs_CXX=no
13366             fi
13367             ;;
13368         esac
13369         ;;
13370
13371       psos*)
13372         # FIXME: insert proper C++ library support
13373         ld_shlibs_CXX=no
13374         ;;
13375
13376       sunos4*)
13377         case $cc_basename in
13378           CC*)
13379             # Sun C++ 4.x
13380             # FIXME: insert proper C++ library support
13381             ld_shlibs_CXX=no
13382             ;;
13383           lcc*)
13384             # Lucid
13385             # FIXME: insert proper C++ library support
13386             ld_shlibs_CXX=no
13387             ;;
13388           *)
13389             # FIXME: insert proper C++ library support
13390             ld_shlibs_CXX=no
13391             ;;
13392         esac
13393         ;;
13394
13395       solaris*)
13396         case $cc_basename in
13397           CC* | sunCC*)
13398             # Sun C++ 4.2, 5.x and Centerline C++
13399             archive_cmds_need_lc_CXX=yes
13400             no_undefined_flag_CXX=' -zdefs'
13401             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13402             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13403               $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'
13404
13405             hardcode_libdir_flag_spec_CXX='-R$libdir'
13406             hardcode_shlibpath_var_CXX=no
13407             case $host_os in
13408               solaris2.[0-5] | solaris2.[0-5].*) ;;
13409               *)
13410                 # The compiler driver will combine and reorder linker options,
13411                 # but understands `-z linker_flag'.
13412                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13413                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13414                 ;;
13415             esac
13416             link_all_deplibs_CXX=yes
13417
13418             output_verbose_link_cmd='func_echo_all'
13419
13420             # Archives containing C++ object files must be created using
13421             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13422             # necessary to make sure instantiated templates are included
13423             # in the archive.
13424             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13425             ;;
13426           gcx*)
13427             # Green Hills C++ Compiler
13428             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13429
13430             # The C++ compiler must be used to create the archive.
13431             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13432             ;;
13433           *)
13434             # GNU C++ compiler with Solaris linker
13435             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13436               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13437               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13438                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13439                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13440                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13441
13442                 # Commands to make compiler produce verbose output that lists
13443                 # what "hidden" libraries, object files and flags are used when
13444                 # linking a shared library.
13445                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13446               else
13447                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13448                 # platform.
13449                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13450                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13451                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13452
13453                 # Commands to make compiler produce verbose output that lists
13454                 # what "hidden" libraries, object files and flags are used when
13455                 # linking a shared library.
13456                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13457               fi
13458
13459               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13460               case $host_os in
13461                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13462                 *)
13463                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13464                   ;;
13465               esac
13466             fi
13467             ;;
13468         esac
13469         ;;
13470
13471     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13472       no_undefined_flag_CXX='${wl}-z,text'
13473       archive_cmds_need_lc_CXX=no
13474       hardcode_shlibpath_var_CXX=no
13475       runpath_var='LD_RUN_PATH'
13476
13477       case $cc_basename in
13478         CC*)
13479           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13480           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13481           ;;
13482         *)
13483           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13484           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13485           ;;
13486       esac
13487       ;;
13488
13489       sysv5* | sco3.2v5* | sco5v6*)
13490         # Note: We can NOT use -z defs as we might desire, because we do not
13491         # link with -lc, and that would cause any symbols used from libc to
13492         # always be unresolved, which means just about no library would
13493         # ever link correctly.  If we're not using GNU ld we use -z text
13494         # though, which does catch some bad symbols but isn't as heavy-handed
13495         # as -z defs.
13496         no_undefined_flag_CXX='${wl}-z,text'
13497         allow_undefined_flag_CXX='${wl}-z,nodefs'
13498         archive_cmds_need_lc_CXX=no
13499         hardcode_shlibpath_var_CXX=no
13500         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13501         hardcode_libdir_separator_CXX=':'
13502         link_all_deplibs_CXX=yes
13503         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13504         runpath_var='LD_RUN_PATH'
13505
13506         case $cc_basename in
13507           CC*)
13508             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13509             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13510             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13511               '"$old_archive_cmds_CXX"
13512             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13513               '"$reload_cmds_CXX"
13514             ;;
13515           *)
13516             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13518             ;;
13519         esac
13520       ;;
13521
13522       tandem*)
13523         case $cc_basename in
13524           NCC*)
13525             # NonStop-UX NCC 3.20
13526             # FIXME: insert proper C++ library support
13527             ld_shlibs_CXX=no
13528             ;;
13529           *)
13530             # FIXME: insert proper C++ library support
13531             ld_shlibs_CXX=no
13532             ;;
13533         esac
13534         ;;
13535
13536       vxworks*)
13537         # FIXME: insert proper C++ library support
13538         ld_shlibs_CXX=no
13539         ;;
13540
13541       *)
13542         # FIXME: insert proper C++ library support
13543         ld_shlibs_CXX=no
13544         ;;
13545     esac
13546
13547     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13548 $as_echo "$ld_shlibs_CXX" >&6; }
13549     test "$ld_shlibs_CXX" = no && can_build_shared=no
13550
13551     GCC_CXX="$GXX"
13552     LD_CXX="$LD"
13553
13554     ## CAVEAT EMPTOR:
13555     ## There is no encapsulation within the following macros, do not change
13556     ## the running order or otherwise move them around unless you know exactly
13557     ## what you are doing...
13558     # Dependencies to place before and after the object being linked:
13559 predep_objects_CXX=
13560 postdep_objects_CXX=
13561 predeps_CXX=
13562 postdeps_CXX=
13563 compiler_lib_search_path_CXX=
13564
13565 cat > conftest.$ac_ext <<_LT_EOF
13566 class Foo
13567 {
13568 public:
13569   Foo (void) { a = 0; }
13570 private:
13571   int a;
13572 };
13573 _LT_EOF
13574
13575
13576 _lt_libdeps_save_CFLAGS=$CFLAGS
13577 case "$CC $CFLAGS " in #(
13578 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13579 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13580 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13581 esac
13582
13583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13584   (eval $ac_compile) 2>&5
13585   ac_status=$?
13586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13587   test $ac_status = 0; }; then
13588   # Parse the compiler output and extract the necessary
13589   # objects, libraries and library flags.
13590
13591   # Sentinel used to keep track of whether or not we are before
13592   # the conftest object file.
13593   pre_test_object_deps_done=no
13594
13595   for p in `eval "$output_verbose_link_cmd"`; do
13596     case ${prev}${p} in
13597
13598     -L* | -R* | -l*)
13599        # Some compilers place space between "-{L,R}" and the path.
13600        # Remove the space.
13601        if test $p = "-L" ||
13602           test $p = "-R"; then
13603          prev=$p
13604          continue
13605        fi
13606
13607        # Expand the sysroot to ease extracting the directories later.
13608        if test -z "$prev"; then
13609          case $p in
13610          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13611          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13612          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13613          esac
13614        fi
13615        case $p in
13616        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13617        esac
13618        if test "$pre_test_object_deps_done" = no; then
13619          case ${prev} in
13620          -L | -R)
13621            # Internal compiler library paths should come after those
13622            # provided the user.  The postdeps already come after the
13623            # user supplied libs so there is no need to process them.
13624            if test -z "$compiler_lib_search_path_CXX"; then
13625              compiler_lib_search_path_CXX="${prev}${p}"
13626            else
13627              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13628            fi
13629            ;;
13630          # The "-l" case would never come before the object being
13631          # linked, so don't bother handling this case.
13632          esac
13633        else
13634          if test -z "$postdeps_CXX"; then
13635            postdeps_CXX="${prev}${p}"
13636          else
13637            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13638          fi
13639        fi
13640        prev=
13641        ;;
13642
13643     *.lto.$objext) ;; # Ignore GCC LTO objects
13644     *.$objext)
13645        # This assumes that the test object file only shows up
13646        # once in the compiler output.
13647        if test "$p" = "conftest.$objext"; then
13648          pre_test_object_deps_done=yes
13649          continue
13650        fi
13651
13652        if test "$pre_test_object_deps_done" = no; then
13653          if test -z "$predep_objects_CXX"; then
13654            predep_objects_CXX="$p"
13655          else
13656            predep_objects_CXX="$predep_objects_CXX $p"
13657          fi
13658        else
13659          if test -z "$postdep_objects_CXX"; then
13660            postdep_objects_CXX="$p"
13661          else
13662            postdep_objects_CXX="$postdep_objects_CXX $p"
13663          fi
13664        fi
13665        ;;
13666
13667     *) ;; # Ignore the rest.
13668
13669     esac
13670   done
13671
13672   # Clean up.
13673   rm -f a.out a.exe
13674 else
13675   echo "libtool.m4: error: problem compiling CXX test program"
13676 fi
13677
13678 $RM -f confest.$objext
13679 CFLAGS=$_lt_libdeps_save_CFLAGS
13680
13681 # PORTME: override above test on systems where it is broken
13682 case $host_os in
13683 interix[3-9]*)
13684   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13685   # hack all around it, let's just trust "g++" to DTRT.
13686   predep_objects_CXX=
13687   postdep_objects_CXX=
13688   postdeps_CXX=
13689   ;;
13690
13691 linux*)
13692   case `$CC -V 2>&1 | sed 5q` in
13693   *Sun\ C*)
13694     # Sun C++ 5.9
13695
13696     # The more standards-conforming stlport4 library is
13697     # incompatible with the Cstd library. Avoid specifying
13698     # it if it's in CXXFLAGS. Ignore libCrun as
13699     # -library=stlport4 depends on it.
13700     case " $CXX $CXXFLAGS " in
13701     *" -library=stlport4 "*)
13702       solaris_use_stlport4=yes
13703       ;;
13704     esac
13705
13706     if test "$solaris_use_stlport4" != yes; then
13707       postdeps_CXX='-library=Cstd -library=Crun'
13708     fi
13709     ;;
13710   esac
13711   ;;
13712
13713 solaris*)
13714   case $cc_basename in
13715   CC* | sunCC*)
13716     # The more standards-conforming stlport4 library is
13717     # incompatible with the Cstd library. Avoid specifying
13718     # it if it's in CXXFLAGS. Ignore libCrun as
13719     # -library=stlport4 depends on it.
13720     case " $CXX $CXXFLAGS " in
13721     *" -library=stlport4 "*)
13722       solaris_use_stlport4=yes
13723       ;;
13724     esac
13725
13726     # Adding this requires a known-good setup of shared libraries for
13727     # Sun compiler versions before 5.6, else PIC objects from an old
13728     # archive will be linked into the output, leading to subtle bugs.
13729     if test "$solaris_use_stlport4" != yes; then
13730       postdeps_CXX='-library=Cstd -library=Crun'
13731     fi
13732     ;;
13733   esac
13734   ;;
13735 esac
13736
13737
13738 case " $postdeps_CXX " in
13739 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13740 esac
13741  compiler_lib_search_dirs_CXX=
13742 if test -n "${compiler_lib_search_path_CXX}"; then
13743  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13744 fi
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776     lt_prog_compiler_wl_CXX=
13777 lt_prog_compiler_pic_CXX=
13778 lt_prog_compiler_static_CXX=
13779
13780
13781   # C++ specific cases for pic, static, wl, etc.
13782   if test "$GXX" = yes; then
13783     lt_prog_compiler_wl_CXX='-Wl,'
13784     lt_prog_compiler_static_CXX='-static'
13785
13786     case $host_os in
13787     aix*)
13788       # All AIX code is PIC.
13789       if test "$host_cpu" = ia64; then
13790         # AIX 5 now supports IA64 processor
13791         lt_prog_compiler_static_CXX='-Bstatic'
13792       fi
13793       ;;
13794
13795     amigaos*)
13796       case $host_cpu in
13797       powerpc)
13798             # see comment about AmigaOS4 .so support
13799             lt_prog_compiler_pic_CXX='-fPIC'
13800         ;;
13801       m68k)
13802             # FIXME: we need at least 68020 code to build shared libraries, but
13803             # adding the `-m68020' flag to GCC prevents building anything better,
13804             # like `-m68040'.
13805             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13806         ;;
13807       esac
13808       ;;
13809
13810     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13811       # PIC is the default for these OSes.
13812       ;;
13813     mingw* | cygwin* | os2* | pw32* | cegcc*)
13814       # This hack is so that the source file can tell whether it is being
13815       # built for inclusion in a dll (and should export symbols for example).
13816       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13817       # (--disable-auto-import) libraries
13818       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13819       ;;
13820     darwin* | rhapsody*)
13821       # PIC is the default on this platform
13822       # Common symbols not allowed in MH_DYLIB files
13823       lt_prog_compiler_pic_CXX='-fno-common'
13824       ;;
13825     *djgpp*)
13826       # DJGPP does not support shared libraries at all
13827       lt_prog_compiler_pic_CXX=
13828       ;;
13829     haiku*)
13830       # PIC is the default for Haiku.
13831       # The "-static" flag exists, but is broken.
13832       lt_prog_compiler_static_CXX=
13833       ;;
13834     interix[3-9]*)
13835       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13836       # Instead, we relocate shared libraries at runtime.
13837       ;;
13838     sysv4*MP*)
13839       if test -d /usr/nec; then
13840         lt_prog_compiler_pic_CXX=-Kconform_pic
13841       fi
13842       ;;
13843     hpux*)
13844       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13845       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13846       # sets the default TLS model and affects inlining.
13847       case $host_cpu in
13848       hppa*64*)
13849         ;;
13850       *)
13851         lt_prog_compiler_pic_CXX='-fPIC'
13852         ;;
13853       esac
13854       ;;
13855     *qnx* | *nto*)
13856       # QNX uses GNU C++, but need to define -shared option too, otherwise
13857       # it will coredump.
13858       lt_prog_compiler_pic_CXX='-fPIC -shared'
13859       ;;
13860     *)
13861       lt_prog_compiler_pic_CXX='-fPIC'
13862       ;;
13863     esac
13864   else
13865     case $host_os in
13866       aix[4-9]*)
13867         # All AIX code is PIC.
13868         if test "$host_cpu" = ia64; then
13869           # AIX 5 now supports IA64 processor
13870           lt_prog_compiler_static_CXX='-Bstatic'
13871         else
13872           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13873         fi
13874         ;;
13875       chorus*)
13876         case $cc_basename in
13877         cxch68*)
13878           # Green Hills C++ Compiler
13879           # _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"
13880           ;;
13881         esac
13882         ;;
13883       mingw* | cygwin* | os2* | pw32* | cegcc*)
13884         # This hack is so that the source file can tell whether it is being
13885         # built for inclusion in a dll (and should export symbols for example).
13886         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13887         ;;
13888       dgux*)
13889         case $cc_basename in
13890           ec++*)
13891             lt_prog_compiler_pic_CXX='-KPIC'
13892             ;;
13893           ghcx*)
13894             # Green Hills C++ Compiler
13895             lt_prog_compiler_pic_CXX='-pic'
13896             ;;
13897           *)
13898             ;;
13899         esac
13900         ;;
13901       freebsd* | dragonfly*)
13902         # FreeBSD uses GNU C++
13903         ;;
13904       hpux9* | hpux10* | hpux11*)
13905         case $cc_basename in
13906           CC*)
13907             lt_prog_compiler_wl_CXX='-Wl,'
13908             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13909             if test "$host_cpu" != ia64; then
13910               lt_prog_compiler_pic_CXX='+Z'
13911             fi
13912             ;;
13913           aCC*)
13914             lt_prog_compiler_wl_CXX='-Wl,'
13915             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13916             case $host_cpu in
13917             hppa*64*|ia64*)
13918               # +Z the default
13919               ;;
13920             *)
13921               lt_prog_compiler_pic_CXX='+Z'
13922               ;;
13923             esac
13924             ;;
13925           *)
13926             ;;
13927         esac
13928         ;;
13929       interix*)
13930         # This is c89, which is MS Visual C++ (no shared libs)
13931         # Anyone wants to do a port?
13932         ;;
13933       irix5* | irix6* | nonstopux*)
13934         case $cc_basename in
13935           CC*)
13936             lt_prog_compiler_wl_CXX='-Wl,'
13937             lt_prog_compiler_static_CXX='-non_shared'
13938             # CC pic flag -KPIC is the default.
13939             ;;
13940           *)
13941             ;;
13942         esac
13943         ;;
13944       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13945         case $cc_basename in
13946           KCC*)
13947             # KAI C++ Compiler
13948             lt_prog_compiler_wl_CXX='--backend -Wl,'
13949             lt_prog_compiler_pic_CXX='-fPIC'
13950             ;;
13951           ecpc* )
13952             # old Intel C++ for x86_64 which still supported -KPIC.
13953             lt_prog_compiler_wl_CXX='-Wl,'
13954             lt_prog_compiler_pic_CXX='-KPIC'
13955             lt_prog_compiler_static_CXX='-static'
13956             ;;
13957           icpc* )
13958             # Intel C++, used to be incompatible with GCC.
13959             # ICC 10 doesn't accept -KPIC any more.
13960             lt_prog_compiler_wl_CXX='-Wl,'
13961             lt_prog_compiler_pic_CXX='-fPIC'
13962             lt_prog_compiler_static_CXX='-static'
13963             ;;
13964           pgCC* | pgcpp*)
13965             # Portland Group C++ compiler
13966             lt_prog_compiler_wl_CXX='-Wl,'
13967             lt_prog_compiler_pic_CXX='-fpic'
13968             lt_prog_compiler_static_CXX='-Bstatic'
13969             ;;
13970           cxx*)
13971             # Compaq C++
13972             # Make sure the PIC flag is empty.  It appears that all Alpha
13973             # Linux and Compaq Tru64 Unix objects are PIC.
13974             lt_prog_compiler_pic_CXX=
13975             lt_prog_compiler_static_CXX='-non_shared'
13976             ;;
13977           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13978             # IBM XL 8.0, 9.0 on PPC and BlueGene
13979             lt_prog_compiler_wl_CXX='-Wl,'
13980             lt_prog_compiler_pic_CXX='-qpic'
13981             lt_prog_compiler_static_CXX='-qstaticlink'
13982             ;;
13983           *)
13984             case `$CC -V 2>&1 | sed 5q` in
13985             *Sun\ C*)
13986               # Sun C++ 5.9
13987               lt_prog_compiler_pic_CXX='-KPIC'
13988               lt_prog_compiler_static_CXX='-Bstatic'
13989               lt_prog_compiler_wl_CXX='-Qoption ld '
13990               ;;
13991             esac
13992             ;;
13993         esac
13994         ;;
13995       lynxos*)
13996         ;;
13997       m88k*)
13998         ;;
13999       mvs*)
14000         case $cc_basename in
14001           cxx*)
14002             lt_prog_compiler_pic_CXX='-W c,exportall'
14003             ;;
14004           *)
14005             ;;
14006         esac
14007         ;;
14008       netbsd* | netbsdelf*-gnu)
14009         ;;
14010       *qnx* | *nto*)
14011         # QNX uses GNU C++, but need to define -shared option too, otherwise
14012         # it will coredump.
14013         lt_prog_compiler_pic_CXX='-fPIC -shared'
14014         ;;
14015       osf3* | osf4* | osf5*)
14016         case $cc_basename in
14017           KCC*)
14018             lt_prog_compiler_wl_CXX='--backend -Wl,'
14019             ;;
14020           RCC*)
14021             # Rational C++ 2.4.1
14022             lt_prog_compiler_pic_CXX='-pic'
14023             ;;
14024           cxx*)
14025             # Digital/Compaq C++
14026             lt_prog_compiler_wl_CXX='-Wl,'
14027             # Make sure the PIC flag is empty.  It appears that all Alpha
14028             # Linux and Compaq Tru64 Unix objects are PIC.
14029             lt_prog_compiler_pic_CXX=
14030             lt_prog_compiler_static_CXX='-non_shared'
14031             ;;
14032           *)
14033             ;;
14034         esac
14035         ;;
14036       psos*)
14037         ;;
14038       solaris*)
14039         case $cc_basename in
14040           CC* | sunCC*)
14041             # Sun C++ 4.2, 5.x and Centerline C++
14042             lt_prog_compiler_pic_CXX='-KPIC'
14043             lt_prog_compiler_static_CXX='-Bstatic'
14044             lt_prog_compiler_wl_CXX='-Qoption ld '
14045             ;;
14046           gcx*)
14047             # Green Hills C++ Compiler
14048             lt_prog_compiler_pic_CXX='-PIC'
14049             ;;
14050           *)
14051             ;;
14052         esac
14053         ;;
14054       sunos4*)
14055         case $cc_basename in
14056           CC*)
14057             # Sun C++ 4.x
14058             lt_prog_compiler_pic_CXX='-pic'
14059             lt_prog_compiler_static_CXX='-Bstatic'
14060             ;;
14061           lcc*)
14062             # Lucid
14063             lt_prog_compiler_pic_CXX='-pic'
14064             ;;
14065           *)
14066             ;;
14067         esac
14068         ;;
14069       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14070         case $cc_basename in
14071           CC*)
14072             lt_prog_compiler_wl_CXX='-Wl,'
14073             lt_prog_compiler_pic_CXX='-KPIC'
14074             lt_prog_compiler_static_CXX='-Bstatic'
14075             ;;
14076         esac
14077         ;;
14078       tandem*)
14079         case $cc_basename in
14080           NCC*)
14081             # NonStop-UX NCC 3.20
14082             lt_prog_compiler_pic_CXX='-KPIC'
14083             ;;
14084           *)
14085             ;;
14086         esac
14087         ;;
14088       vxworks*)
14089         ;;
14090       *)
14091         lt_prog_compiler_can_build_shared_CXX=no
14092         ;;
14093     esac
14094   fi
14095
14096 case $host_os in
14097   # For platforms which do not support PIC, -DPIC is meaningless:
14098   *djgpp*)
14099     lt_prog_compiler_pic_CXX=
14100     ;;
14101   *)
14102     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14103     ;;
14104 esac
14105
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14107 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14108 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14109   $as_echo_n "(cached) " >&6
14110 else
14111   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14112 fi
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14114 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14115 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14116
14117 #
14118 # Check to make sure the PIC flag actually works.
14119 #
14120 if test -n "$lt_prog_compiler_pic_CXX"; then
14121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14122 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14123 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14124   $as_echo_n "(cached) " >&6
14125 else
14126   lt_cv_prog_compiler_pic_works_CXX=no
14127    ac_outfile=conftest.$ac_objext
14128    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14129    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14130    # Insert the option either (1) after the last *FLAGS variable, or
14131    # (2) before a word containing "conftest.", or (3) at the end.
14132    # Note that $ac_compile itself does not contain backslashes and begins
14133    # with a dollar sign (not a hyphen), so the echo should work correctly.
14134    # The option is referenced via a variable to avoid confusing sed.
14135    lt_compile=`echo "$ac_compile" | $SED \
14136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14138    -e 's:$: $lt_compiler_flag:'`
14139    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14140    (eval "$lt_compile" 2>conftest.err)
14141    ac_status=$?
14142    cat conftest.err >&5
14143    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144    if (exit $ac_status) && test -s "$ac_outfile"; then
14145      # The compiler can only warn and ignore the option if not recognized
14146      # So say no if there are warnings other than the usual output.
14147      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14148      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14149      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14150        lt_cv_prog_compiler_pic_works_CXX=yes
14151      fi
14152    fi
14153    $RM conftest*
14154
14155 fi
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14157 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14158
14159 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14160     case $lt_prog_compiler_pic_CXX in
14161      "" | " "*) ;;
14162      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14163      esac
14164 else
14165     lt_prog_compiler_pic_CXX=
14166      lt_prog_compiler_can_build_shared_CXX=no
14167 fi
14168
14169 fi
14170
14171
14172
14173
14174
14175 #
14176 # Check to make sure the static flag actually works.
14177 #
14178 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14180 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14181 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14182   $as_echo_n "(cached) " >&6
14183 else
14184   lt_cv_prog_compiler_static_works_CXX=no
14185    save_LDFLAGS="$LDFLAGS"
14186    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14187    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14188    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14189      # The linker can only warn and ignore the option if not recognized
14190      # So say no if there are warnings
14191      if test -s conftest.err; then
14192        # Append any errors to the config.log.
14193        cat conftest.err 1>&5
14194        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14195        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14196        if diff conftest.exp conftest.er2 >/dev/null; then
14197          lt_cv_prog_compiler_static_works_CXX=yes
14198        fi
14199      else
14200        lt_cv_prog_compiler_static_works_CXX=yes
14201      fi
14202    fi
14203    $RM -r conftest*
14204    LDFLAGS="$save_LDFLAGS"
14205
14206 fi
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14208 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14209
14210 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14211     :
14212 else
14213     lt_prog_compiler_static_CXX=
14214 fi
14215
14216
14217
14218
14219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14220 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14221 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14222   $as_echo_n "(cached) " >&6
14223 else
14224   lt_cv_prog_compiler_c_o_CXX=no
14225    $RM -r conftest 2>/dev/null
14226    mkdir conftest
14227    cd conftest
14228    mkdir out
14229    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14230
14231    lt_compiler_flag="-o out/conftest2.$ac_objext"
14232    # Insert the option either (1) after the last *FLAGS variable, or
14233    # (2) before a word containing "conftest.", or (3) at the end.
14234    # Note that $ac_compile itself does not contain backslashes and begins
14235    # with a dollar sign (not a hyphen), so the echo should work correctly.
14236    lt_compile=`echo "$ac_compile" | $SED \
14237    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14238    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14239    -e 's:$: $lt_compiler_flag:'`
14240    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14241    (eval "$lt_compile" 2>out/conftest.err)
14242    ac_status=$?
14243    cat out/conftest.err >&5
14244    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14246    then
14247      # The compiler can only warn and ignore the option if not recognized
14248      # So say no if there are warnings
14249      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14250      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14251      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14252        lt_cv_prog_compiler_c_o_CXX=yes
14253      fi
14254    fi
14255    chmod u+w . 2>&5
14256    $RM conftest*
14257    # SGI C++ compiler will create directory out/ii_files/ for
14258    # template instantiation
14259    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14260    $RM out/* && rmdir out
14261    cd ..
14262    $RM -r conftest
14263    $RM conftest*
14264
14265 fi
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14267 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14268
14269
14270
14271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14272 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14273 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14274   $as_echo_n "(cached) " >&6
14275 else
14276   lt_cv_prog_compiler_c_o_CXX=no
14277    $RM -r conftest 2>/dev/null
14278    mkdir conftest
14279    cd conftest
14280    mkdir out
14281    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14282
14283    lt_compiler_flag="-o out/conftest2.$ac_objext"
14284    # Insert the option either (1) after the last *FLAGS variable, or
14285    # (2) before a word containing "conftest.", or (3) at the end.
14286    # Note that $ac_compile itself does not contain backslashes and begins
14287    # with a dollar sign (not a hyphen), so the echo should work correctly.
14288    lt_compile=`echo "$ac_compile" | $SED \
14289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14291    -e 's:$: $lt_compiler_flag:'`
14292    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14293    (eval "$lt_compile" 2>out/conftest.err)
14294    ac_status=$?
14295    cat out/conftest.err >&5
14296    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14298    then
14299      # The compiler can only warn and ignore the option if not recognized
14300      # So say no if there are warnings
14301      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14302      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14303      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14304        lt_cv_prog_compiler_c_o_CXX=yes
14305      fi
14306    fi
14307    chmod u+w . 2>&5
14308    $RM conftest*
14309    # SGI C++ compiler will create directory out/ii_files/ for
14310    # template instantiation
14311    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14312    $RM out/* && rmdir out
14313    cd ..
14314    $RM -r conftest
14315    $RM conftest*
14316
14317 fi
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14319 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14320
14321
14322
14323
14324 hard_links="nottested"
14325 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14326   # do not overwrite the value of need_locks provided by the user
14327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14328 $as_echo_n "checking if we can lock with hard links... " >&6; }
14329   hard_links=yes
14330   $RM conftest*
14331   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14332   touch conftest.a
14333   ln conftest.a conftest.b 2>&5 || hard_links=no
14334   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14336 $as_echo "$hard_links" >&6; }
14337   if test "$hard_links" = no; then
14338     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14339 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14340     need_locks=warn
14341   fi
14342 else
14343   need_locks=no
14344 fi
14345
14346
14347
14348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14349 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14350
14351   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14352   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14353   case $host_os in
14354   aix[4-9]*)
14355     # If we're using GNU nm, then we don't want the "-C" option.
14356     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14357     # Also, AIX nm treats weak defined symbols like other global defined
14358     # symbols, whereas GNU nm marks them as "W".
14359     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14360       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'
14361     else
14362       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'
14363     fi
14364     ;;
14365   pw32*)
14366     export_symbols_cmds_CXX="$ltdll_cmds"
14367     ;;
14368   cygwin* | mingw* | cegcc*)
14369     case $cc_basename in
14370     cl*)
14371       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14372       ;;
14373     *)
14374       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'
14375       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14376       ;;
14377     esac
14378     ;;
14379   linux* | k*bsd*-gnu | gnu*)
14380     link_all_deplibs_CXX=no
14381     ;;
14382   *)
14383     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14384     ;;
14385   esac
14386
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14388 $as_echo "$ld_shlibs_CXX" >&6; }
14389 test "$ld_shlibs_CXX" = no && can_build_shared=no
14390
14391 with_gnu_ld_CXX=$with_gnu_ld
14392
14393
14394
14395
14396
14397
14398 #
14399 # Do we need to explicitly link libc?
14400 #
14401 case "x$archive_cmds_need_lc_CXX" in
14402 x|xyes)
14403   # Assume -lc should be added
14404   archive_cmds_need_lc_CXX=yes
14405
14406   if test "$enable_shared" = yes && test "$GCC" = yes; then
14407     case $archive_cmds_CXX in
14408     *'~'*)
14409       # FIXME: we may have to deal with multi-command sequences.
14410       ;;
14411     '$CC '*)
14412       # Test whether the compiler implicitly links with -lc since on some
14413       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14414       # to ld, don't add -lc before -lgcc.
14415       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14416 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14417 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14418   $as_echo_n "(cached) " >&6
14419 else
14420   $RM conftest*
14421         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14422
14423         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14424   (eval $ac_compile) 2>&5
14425   ac_status=$?
14426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14427   test $ac_status = 0; } 2>conftest.err; then
14428           soname=conftest
14429           lib=conftest
14430           libobjs=conftest.$ac_objext
14431           deplibs=
14432           wl=$lt_prog_compiler_wl_CXX
14433           pic_flag=$lt_prog_compiler_pic_CXX
14434           compiler_flags=-v
14435           linker_flags=-v
14436           verstring=
14437           output_objdir=.
14438           libname=conftest
14439           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14440           allow_undefined_flag_CXX=
14441           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14442   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14443   ac_status=$?
14444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14445   test $ac_status = 0; }
14446           then
14447             lt_cv_archive_cmds_need_lc_CXX=no
14448           else
14449             lt_cv_archive_cmds_need_lc_CXX=yes
14450           fi
14451           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14452         else
14453           cat conftest.err 1>&5
14454         fi
14455         $RM conftest*
14456
14457 fi
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14459 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14460       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14461       ;;
14462     esac
14463   fi
14464   ;;
14465 esac
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14529 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14530
14531 library_names_spec=
14532 libname_spec='lib$name'
14533 soname_spec=
14534 shrext_cmds=".so"
14535 postinstall_cmds=
14536 postuninstall_cmds=
14537 finish_cmds=
14538 finish_eval=
14539 shlibpath_var=
14540 shlibpath_overrides_runpath=unknown
14541 version_type=none
14542 dynamic_linker="$host_os ld.so"
14543 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14544 need_lib_prefix=unknown
14545 hardcode_into_libs=no
14546
14547 # when you set need_version to no, make sure it does not cause -set_version
14548 # flags to be left without arguments
14549 need_version=unknown
14550
14551 case $host_os in
14552 aix3*)
14553   version_type=linux # correct to gnu/linux during the next big refactor
14554   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14555   shlibpath_var=LIBPATH
14556
14557   # AIX 3 has no versioning support, so we append a major version to the name.
14558   soname_spec='${libname}${release}${shared_ext}$major'
14559   ;;
14560
14561 aix[4-9]*)
14562   version_type=linux # correct to gnu/linux during the next big refactor
14563   need_lib_prefix=no
14564   need_version=no
14565   hardcode_into_libs=yes
14566   if test "$host_cpu" = ia64; then
14567     # AIX 5 supports IA64
14568     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14569     shlibpath_var=LD_LIBRARY_PATH
14570   else
14571     # With GCC up to 2.95.x, collect2 would create an import file
14572     # for dependence libraries.  The import file would start with
14573     # the line `#! .'.  This would cause the generated library to
14574     # depend on `.', always an invalid library.  This was fixed in
14575     # development snapshots of GCC prior to 3.0.
14576     case $host_os in
14577       aix4 | aix4.[01] | aix4.[01].*)
14578       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14579            echo ' yes '
14580            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14581         :
14582       else
14583         can_build_shared=no
14584       fi
14585       ;;
14586     esac
14587     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14588     # soname into executable. Probably we can add versioning support to
14589     # collect2, so additional links can be useful in future.
14590     if test "$aix_use_runtimelinking" = yes; then
14591       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14592       # instead of lib<name>.a to let people know that these are not
14593       # typical AIX shared libraries.
14594       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14595     else
14596       # We preserve .a as extension for shared libraries through AIX4.2
14597       # and later when we are not doing run time linking.
14598       library_names_spec='${libname}${release}.a $libname.a'
14599       soname_spec='${libname}${release}${shared_ext}$major'
14600     fi
14601     shlibpath_var=LIBPATH
14602   fi
14603   ;;
14604
14605 amigaos*)
14606   case $host_cpu in
14607   powerpc)
14608     # Since July 2007 AmigaOS4 officially supports .so libraries.
14609     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611     ;;
14612   m68k)
14613     library_names_spec='$libname.ixlibrary $libname.a'
14614     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14615     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'
14616     ;;
14617   esac
14618   ;;
14619
14620 beos*)
14621   library_names_spec='${libname}${shared_ext}'
14622   dynamic_linker="$host_os ld.so"
14623   shlibpath_var=LIBRARY_PATH
14624   ;;
14625
14626 bsdi[45]*)
14627   version_type=linux # correct to gnu/linux during the next big refactor
14628   need_version=no
14629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630   soname_spec='${libname}${release}${shared_ext}$major'
14631   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14632   shlibpath_var=LD_LIBRARY_PATH
14633   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14634   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14635   # the default ld.so.conf also contains /usr/contrib/lib and
14636   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14637   # libtool to hard-code these into programs
14638   ;;
14639
14640 cygwin* | mingw* | pw32* | cegcc*)
14641   version_type=windows
14642   shrext_cmds=".dll"
14643   need_version=no
14644   need_lib_prefix=no
14645
14646   case $GCC,$cc_basename in
14647   yes,*)
14648     # gcc
14649     library_names_spec='$libname.dll.a'
14650     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14651     postinstall_cmds='base_file=`basename \${file}`~
14652       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14653       dldir=$destdir/`dirname \$dlpath`~
14654       test -d \$dldir || mkdir -p \$dldir~
14655       $install_prog $dir/$dlname \$dldir/$dlname~
14656       chmod a+x \$dldir/$dlname~
14657       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14658         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14659       fi'
14660     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14661       dlpath=$dir/\$dldll~
14662        $RM \$dlpath'
14663     shlibpath_overrides_runpath=yes
14664
14665     case $host_os in
14666     cygwin*)
14667       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14668       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14669
14670       ;;
14671     mingw* | cegcc*)
14672       # MinGW DLLs use traditional 'lib' prefix
14673       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14674       ;;
14675     pw32*)
14676       # pw32 DLLs use 'pw' prefix rather than 'lib'
14677       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14678       ;;
14679     esac
14680     dynamic_linker='Win32 ld.exe'
14681     ;;
14682
14683   *,cl*)
14684     # Native MSVC
14685     libname_spec='$name'
14686     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14687     library_names_spec='${libname}.dll.lib'
14688
14689     case $build_os in
14690     mingw*)
14691       sys_lib_search_path_spec=
14692       lt_save_ifs=$IFS
14693       IFS=';'
14694       for lt_path in $LIB
14695       do
14696         IFS=$lt_save_ifs
14697         # Let DOS variable expansion print the short 8.3 style file name.
14698         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14699         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14700       done
14701       IFS=$lt_save_ifs
14702       # Convert to MSYS style.
14703       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14704       ;;
14705     cygwin*)
14706       # Convert to unix form, then to dos form, then back to unix form
14707       # but this time dos style (no spaces!) so that the unix form looks
14708       # like /cygdrive/c/PROGRA~1:/cygdr...
14709       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14710       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14711       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14712       ;;
14713     *)
14714       sys_lib_search_path_spec="$LIB"
14715       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14716         # It is most probably a Windows format PATH.
14717         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14718       else
14719         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14720       fi
14721       # FIXME: find the short name or the path components, as spaces are
14722       # common. (e.g. "Program Files" -> "PROGRA~1")
14723       ;;
14724     esac
14725
14726     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14727     postinstall_cmds='base_file=`basename \${file}`~
14728       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14729       dldir=$destdir/`dirname \$dlpath`~
14730       test -d \$dldir || mkdir -p \$dldir~
14731       $install_prog $dir/$dlname \$dldir/$dlname'
14732     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14733       dlpath=$dir/\$dldll~
14734        $RM \$dlpath'
14735     shlibpath_overrides_runpath=yes
14736     dynamic_linker='Win32 link.exe'
14737     ;;
14738
14739   *)
14740     # Assume MSVC wrapper
14741     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14742     dynamic_linker='Win32 ld.exe'
14743     ;;
14744   esac
14745   # FIXME: first we should search . and the directory the executable is in
14746   shlibpath_var=PATH
14747   ;;
14748
14749 darwin* | rhapsody*)
14750   dynamic_linker="$host_os dyld"
14751   version_type=darwin
14752   need_lib_prefix=no
14753   need_version=no
14754   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14755   soname_spec='${libname}${release}${major}$shared_ext'
14756   shlibpath_overrides_runpath=yes
14757   shlibpath_var=DYLD_LIBRARY_PATH
14758   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14759
14760   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14761   ;;
14762
14763 dgux*)
14764   version_type=linux # correct to gnu/linux during the next big refactor
14765   need_lib_prefix=no
14766   need_version=no
14767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14768   soname_spec='${libname}${release}${shared_ext}$major'
14769   shlibpath_var=LD_LIBRARY_PATH
14770   ;;
14771
14772 freebsd* | dragonfly*)
14773   # DragonFly does not have aout.  When/if they implement a new
14774   # versioning mechanism, adjust this.
14775   if test -x /usr/bin/objformat; then
14776     objformat=`/usr/bin/objformat`
14777   else
14778     case $host_os in
14779     freebsd[23].*) objformat=aout ;;
14780     *) objformat=elf ;;
14781     esac
14782   fi
14783   version_type=freebsd-$objformat
14784   case $version_type in
14785     freebsd-elf*)
14786       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14787       need_version=no
14788       need_lib_prefix=no
14789       ;;
14790     freebsd-*)
14791       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14792       need_version=yes
14793       ;;
14794   esac
14795   shlibpath_var=LD_LIBRARY_PATH
14796   case $host_os in
14797   freebsd2.*)
14798     shlibpath_overrides_runpath=yes
14799     ;;
14800   freebsd3.[01]* | freebsdelf3.[01]*)
14801     shlibpath_overrides_runpath=yes
14802     hardcode_into_libs=yes
14803     ;;
14804   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14805   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14806     shlibpath_overrides_runpath=no
14807     hardcode_into_libs=yes
14808     ;;
14809   *) # from 4.6 on, and DragonFly
14810     shlibpath_overrides_runpath=yes
14811     hardcode_into_libs=yes
14812     ;;
14813   esac
14814   ;;
14815
14816 haiku*)
14817   version_type=linux # correct to gnu/linux during the next big refactor
14818   need_lib_prefix=no
14819   need_version=no
14820   dynamic_linker="$host_os runtime_loader"
14821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14822   soname_spec='${libname}${release}${shared_ext}$major'
14823   shlibpath_var=LIBRARY_PATH
14824   shlibpath_overrides_runpath=yes
14825   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14826   hardcode_into_libs=yes
14827   ;;
14828
14829 hpux9* | hpux10* | hpux11*)
14830   # Give a soname corresponding to the major version so that dld.sl refuses to
14831   # link against other versions.
14832   version_type=sunos
14833   need_lib_prefix=no
14834   need_version=no
14835   case $host_cpu in
14836   ia64*)
14837     shrext_cmds='.so'
14838     hardcode_into_libs=yes
14839     dynamic_linker="$host_os dld.so"
14840     shlibpath_var=LD_LIBRARY_PATH
14841     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843     soname_spec='${libname}${release}${shared_ext}$major'
14844     if test "X$HPUX_IA64_MODE" = X32; then
14845       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14846     else
14847       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14848     fi
14849     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14850     ;;
14851   hppa*64*)
14852     shrext_cmds='.sl'
14853     hardcode_into_libs=yes
14854     dynamic_linker="$host_os dld.sl"
14855     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14856     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858     soname_spec='${libname}${release}${shared_ext}$major'
14859     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14860     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14861     ;;
14862   *)
14863     shrext_cmds='.sl'
14864     dynamic_linker="$host_os dld.sl"
14865     shlibpath_var=SHLIB_PATH
14866     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868     soname_spec='${libname}${release}${shared_ext}$major'
14869     ;;
14870   esac
14871   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14872   postinstall_cmds='chmod 555 $lib'
14873   # or fails outright, so override atomically:
14874   install_override_mode=555
14875   ;;
14876
14877 interix[3-9]*)
14878   version_type=linux # correct to gnu/linux during the next big refactor
14879   need_lib_prefix=no
14880   need_version=no
14881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14882   soname_spec='${libname}${release}${shared_ext}$major'
14883   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14884   shlibpath_var=LD_LIBRARY_PATH
14885   shlibpath_overrides_runpath=no
14886   hardcode_into_libs=yes
14887   ;;
14888
14889 irix5* | irix6* | nonstopux*)
14890   case $host_os in
14891     nonstopux*) version_type=nonstopux ;;
14892     *)
14893         if test "$lt_cv_prog_gnu_ld" = yes; then
14894                 version_type=linux # correct to gnu/linux during the next big refactor
14895         else
14896                 version_type=irix
14897         fi ;;
14898   esac
14899   need_lib_prefix=no
14900   need_version=no
14901   soname_spec='${libname}${release}${shared_ext}$major'
14902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14903   case $host_os in
14904   irix5* | nonstopux*)
14905     libsuff= shlibsuff=
14906     ;;
14907   *)
14908     case $LD in # libtool.m4 will add one of these switches to LD
14909     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14910       libsuff= shlibsuff= libmagic=32-bit;;
14911     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14912       libsuff=32 shlibsuff=N32 libmagic=N32;;
14913     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14914       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14915     *) libsuff= shlibsuff= libmagic=never-match;;
14916     esac
14917     ;;
14918   esac
14919   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14920   shlibpath_overrides_runpath=no
14921   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14922   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14923   hardcode_into_libs=yes
14924   ;;
14925
14926 # No shared lib support for Linux oldld, aout, or coff.
14927 linux*oldld* | linux*aout* | linux*coff*)
14928   dynamic_linker=no
14929   ;;
14930
14931 # This must be glibc/ELF.
14932 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14933   version_type=linux # correct to gnu/linux during the next big refactor
14934   need_lib_prefix=no
14935   need_version=no
14936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937   soname_spec='${libname}${release}${shared_ext}$major'
14938   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14939   shlibpath_var=LD_LIBRARY_PATH
14940   shlibpath_overrides_runpath=no
14941
14942   # Some binutils ld are patched to set DT_RUNPATH
14943   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14944   $as_echo_n "(cached) " >&6
14945 else
14946   lt_cv_shlibpath_overrides_runpath=no
14947     save_LDFLAGS=$LDFLAGS
14948     save_libdir=$libdir
14949     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14950          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14951     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14952 /* end confdefs.h.  */
14953
14954 int
14955 main ()
14956 {
14957
14958   ;
14959   return 0;
14960 }
14961 _ACEOF
14962 if ac_fn_cxx_try_link "$LINENO"; then :
14963   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14964   lt_cv_shlibpath_overrides_runpath=yes
14965 fi
14966 fi
14967 rm -f core conftest.err conftest.$ac_objext \
14968     conftest$ac_exeext conftest.$ac_ext
14969     LDFLAGS=$save_LDFLAGS
14970     libdir=$save_libdir
14971
14972 fi
14973
14974   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14975
14976   # This implies no fast_install, which is unacceptable.
14977   # Some rework will be needed to allow for fast_install
14978   # before this can be enabled.
14979   hardcode_into_libs=yes
14980
14981   # Append ld.so.conf contents to the search path
14982   if test -f /etc/ld.so.conf; then
14983     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' ' '`
14984     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14985   fi
14986
14987   # We used to test for /lib/ld.so.1 and disable shared libraries on
14988   # powerpc, because MkLinux only supported shared libraries with the
14989   # GNU dynamic linker.  Since this was broken with cross compilers,
14990   # most powerpc-linux boxes support dynamic linking these days and
14991   # people can always --disable-shared, the test was removed, and we
14992   # assume the GNU/Linux dynamic linker is in use.
14993   dynamic_linker='GNU/Linux ld.so'
14994   ;;
14995
14996 netbsdelf*-gnu)
14997   version_type=linux
14998   need_lib_prefix=no
14999   need_version=no
15000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15001   soname_spec='${libname}${release}${shared_ext}$major'
15002   shlibpath_var=LD_LIBRARY_PATH
15003   shlibpath_overrides_runpath=no
15004   hardcode_into_libs=yes
15005   dynamic_linker='NetBSD ld.elf_so'
15006   ;;
15007
15008 netbsd*)
15009   version_type=sunos
15010   need_lib_prefix=no
15011   need_version=no
15012   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15014     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15015     dynamic_linker='NetBSD (a.out) ld.so'
15016   else
15017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15018     soname_spec='${libname}${release}${shared_ext}$major'
15019     dynamic_linker='NetBSD ld.elf_so'
15020   fi
15021   shlibpath_var=LD_LIBRARY_PATH
15022   shlibpath_overrides_runpath=yes
15023   hardcode_into_libs=yes
15024   ;;
15025
15026 newsos6)
15027   version_type=linux # correct to gnu/linux during the next big refactor
15028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15029   shlibpath_var=LD_LIBRARY_PATH
15030   shlibpath_overrides_runpath=yes
15031   ;;
15032
15033 *nto* | *qnx*)
15034   version_type=qnx
15035   need_lib_prefix=no
15036   need_version=no
15037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15038   soname_spec='${libname}${release}${shared_ext}$major'
15039   shlibpath_var=LD_LIBRARY_PATH
15040   shlibpath_overrides_runpath=no
15041   hardcode_into_libs=yes
15042   dynamic_linker='ldqnx.so'
15043   ;;
15044
15045 openbsd*)
15046   version_type=sunos
15047   sys_lib_dlsearch_path_spec="/usr/lib"
15048   need_lib_prefix=no
15049   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15050   case $host_os in
15051     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15052     *)                          need_version=no  ;;
15053   esac
15054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15055   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15056   shlibpath_var=LD_LIBRARY_PATH
15057   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15058     case $host_os in
15059       openbsd2.[89] | openbsd2.[89].*)
15060         shlibpath_overrides_runpath=no
15061         ;;
15062       *)
15063         shlibpath_overrides_runpath=yes
15064         ;;
15065       esac
15066   else
15067     shlibpath_overrides_runpath=yes
15068   fi
15069   ;;
15070
15071 os2*)
15072   libname_spec='$name'
15073   shrext_cmds=".dll"
15074   need_lib_prefix=no
15075   library_names_spec='$libname${shared_ext} $libname.a'
15076   dynamic_linker='OS/2 ld.exe'
15077   shlibpath_var=LIBPATH
15078   ;;
15079
15080 osf3* | osf4* | osf5*)
15081   version_type=osf
15082   need_lib_prefix=no
15083   need_version=no
15084   soname_spec='${libname}${release}${shared_ext}$major'
15085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15086   shlibpath_var=LD_LIBRARY_PATH
15087   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15088   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15089   ;;
15090
15091 rdos*)
15092   dynamic_linker=no
15093   ;;
15094
15095 solaris*)
15096   version_type=linux # correct to gnu/linux during the next big refactor
15097   need_lib_prefix=no
15098   need_version=no
15099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100   soname_spec='${libname}${release}${shared_ext}$major'
15101   shlibpath_var=LD_LIBRARY_PATH
15102   shlibpath_overrides_runpath=yes
15103   hardcode_into_libs=yes
15104   # ldd complains unless libraries are executable
15105   postinstall_cmds='chmod +x $lib'
15106   ;;
15107
15108 sunos4*)
15109   version_type=sunos
15110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15111   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15112   shlibpath_var=LD_LIBRARY_PATH
15113   shlibpath_overrides_runpath=yes
15114   if test "$with_gnu_ld" = yes; then
15115     need_lib_prefix=no
15116   fi
15117   need_version=yes
15118   ;;
15119
15120 sysv4 | sysv4.3*)
15121   version_type=linux # correct to gnu/linux during the next big refactor
15122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15123   soname_spec='${libname}${release}${shared_ext}$major'
15124   shlibpath_var=LD_LIBRARY_PATH
15125   case $host_vendor in
15126     sni)
15127       shlibpath_overrides_runpath=no
15128       need_lib_prefix=no
15129       runpath_var=LD_RUN_PATH
15130       ;;
15131     siemens)
15132       need_lib_prefix=no
15133       ;;
15134     motorola)
15135       need_lib_prefix=no
15136       need_version=no
15137       shlibpath_overrides_runpath=no
15138       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15139       ;;
15140   esac
15141   ;;
15142
15143 sysv4*MP*)
15144   if test -d /usr/nec ;then
15145     version_type=linux # correct to gnu/linux during the next big refactor
15146     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15147     soname_spec='$libname${shared_ext}.$major'
15148     shlibpath_var=LD_LIBRARY_PATH
15149   fi
15150   ;;
15151
15152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15153   version_type=freebsd-elf
15154   need_lib_prefix=no
15155   need_version=no
15156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15157   soname_spec='${libname}${release}${shared_ext}$major'
15158   shlibpath_var=LD_LIBRARY_PATH
15159   shlibpath_overrides_runpath=yes
15160   hardcode_into_libs=yes
15161   if test "$with_gnu_ld" = yes; then
15162     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15163   else
15164     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15165     case $host_os in
15166       sco3.2v5*)
15167         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15168         ;;
15169     esac
15170   fi
15171   sys_lib_dlsearch_path_spec='/usr/lib'
15172   ;;
15173
15174 tpf*)
15175   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15176   version_type=linux # correct to gnu/linux during the next big refactor
15177   need_lib_prefix=no
15178   need_version=no
15179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180   shlibpath_var=LD_LIBRARY_PATH
15181   shlibpath_overrides_runpath=no
15182   hardcode_into_libs=yes
15183   ;;
15184
15185 uts4*)
15186   version_type=linux # correct to gnu/linux during the next big refactor
15187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188   soname_spec='${libname}${release}${shared_ext}$major'
15189   shlibpath_var=LD_LIBRARY_PATH
15190   ;;
15191
15192 *)
15193   dynamic_linker=no
15194   ;;
15195 esac
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15197 $as_echo "$dynamic_linker" >&6; }
15198 test "$dynamic_linker" = no && can_build_shared=no
15199
15200 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15201 if test "$GCC" = yes; then
15202   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15203 fi
15204
15205 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15206   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15207 fi
15208 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15209   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15210 fi
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15250 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15251 hardcode_action_CXX=
15252 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15253    test -n "$runpath_var_CXX" ||
15254    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15255
15256   # We can hardcode non-existent directories.
15257   if test "$hardcode_direct_CXX" != no &&
15258      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15259      # have to relink, otherwise we might link with an installed library
15260      # when we should be linking with a yet-to-be-installed one
15261      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15262      test "$hardcode_minus_L_CXX" != no; then
15263     # Linking always hardcodes the temporary library directory.
15264     hardcode_action_CXX=relink
15265   else
15266     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15267     hardcode_action_CXX=immediate
15268   fi
15269 else
15270   # We cannot hardcode anything, or else we can only hardcode existing
15271   # directories.
15272   hardcode_action_CXX=unsupported
15273 fi
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15275 $as_echo "$hardcode_action_CXX" >&6; }
15276
15277 if test "$hardcode_action_CXX" = relink ||
15278    test "$inherit_rpath_CXX" = yes; then
15279   # Fast installation is not supported
15280   enable_fast_install=no
15281 elif test "$shlibpath_overrides_runpath" = yes ||
15282      test "$enable_shared" = no; then
15283   # Fast installation is not necessary
15284   enable_fast_install=needless
15285 fi
15286
15287
15288
15289
15290
15291
15292
15293   fi # test -n "$compiler"
15294
15295   CC=$lt_save_CC
15296   CFLAGS=$lt_save_CFLAGS
15297   LDCXX=$LD
15298   LD=$lt_save_LD
15299   GCC=$lt_save_GCC
15300   with_gnu_ld=$lt_save_with_gnu_ld
15301   lt_cv_path_LDCXX=$lt_cv_path_LD
15302   lt_cv_path_LD=$lt_save_path_LD
15303   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15304   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15305 fi # test "$_lt_caught_CXX_error" != yes
15306
15307 ac_ext=c
15308 ac_cpp='$CPP $CPPFLAGS'
15309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327         ac_config_commands="$ac_config_commands libtool"
15328
15329
15330
15331
15332 # Only expand once:
15333
15334
15335
15336 ac_config_headers="$ac_config_headers config.h src/include/fst/config.h"
15337
15338
15339 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/lib/Makefile src/bin/Makefile src/test/Makefile src/extensions/Makefile src/extensions/compact/Makefile src/extensions/compress/Makefile src/extensions/const/Makefile src/extensions/far/Makefile src/extensions/linear/Makefile src/extensions/lookahead/Makefile src/extensions/mpdt/Makefile src/extensions/ngram/Makefile src/extensions/pdt/Makefile src/extensions/python/Makefile src/extensions/special/Makefile src/script/Makefile"
15340
15341
15342 ac_ext=cpp
15343 ac_cpp='$CXXCPP $CPPFLAGS'
15344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15347
15348
15349 # Check whether --enable-compact-fsts was given.
15350 if test "${enable_compact_fsts+set}" = set; then :
15351   enableval=$enable_compact_fsts;
15352 else
15353   enable_compact_fsts=no
15354 fi
15355
15356  if test "x$enable_compact_fsts" != xno; then
15357   HAVE_COMPACT_TRUE=
15358   HAVE_COMPACT_FALSE='#'
15359 else
15360   HAVE_COMPACT_TRUE='#'
15361   HAVE_COMPACT_FALSE=
15362 fi
15363
15364
15365 # Check whether --enable-compress was given.
15366 if test "${enable_compress+set}" = set; then :
15367   enableval=$enable_compress;
15368 else
15369   enable_compress=no
15370 fi
15371
15372  if test "x$enable_compress" != xno; then
15373   HAVE_COMPRESS_TRUE=
15374   HAVE_COMPRESS_FALSE='#'
15375 else
15376   HAVE_COMPRESS_TRUE='#'
15377   HAVE_COMPRESS_FALSE=
15378 fi
15379
15380
15381 # Check whether --enable-const-fsts was given.
15382 if test "${enable_const_fsts+set}" = set; then :
15383   enableval=$enable_const_fsts;
15384 else
15385   enable_const_fsts=no
15386 fi
15387
15388  if test "x$enable_const_fsts" != xno; then
15389   HAVE_CONST_TRUE=
15390   HAVE_CONST_FALSE='#'
15391 else
15392   HAVE_CONST_TRUE='#'
15393   HAVE_CONST_FALSE=
15394 fi
15395
15396
15397 # Check whether --enable-far was given.
15398 if test "${enable_far+set}" = set; then :
15399   enableval=$enable_far;
15400 else
15401   enable_far=no
15402 fi
15403
15404  if test "x$enable_far" != xno; then
15405   HAVE_FAR_TRUE=
15406   HAVE_FAR_FALSE='#'
15407 else
15408   HAVE_FAR_TRUE='#'
15409   HAVE_FAR_FALSE=
15410 fi
15411
15412
15413 # Check whether --enable-linear-fsts was given.
15414 if test "${enable_linear_fsts+set}" = set; then :
15415   enableval=$enable_linear_fsts;
15416 else
15417   enable_linear_fsts=no
15418 fi
15419
15420  if test "x$enable_linear_fsts" != xno; then
15421   HAVE_LINEAR_TRUE=
15422   HAVE_LINEAR_FALSE='#'
15423 else
15424   HAVE_LINEAR_TRUE='#'
15425   HAVE_LINEAR_FALSE=
15426 fi
15427
15428
15429 # Check whether --enable-lookahead-fsts was given.
15430 if test "${enable_lookahead_fsts+set}" = set; then :
15431   enableval=$enable_lookahead_fsts;
15432 else
15433   enable_lookahead_fsts=no
15434 fi
15435
15436  if test "x$enable_lookahead_fsts" != xno; then
15437   HAVE_LOOKAHEAD_TRUE=
15438   HAVE_LOOKAHEAD_FALSE='#'
15439 else
15440   HAVE_LOOKAHEAD_TRUE='#'
15441   HAVE_LOOKAHEAD_FALSE=
15442 fi
15443
15444
15445 # Check whether --enable-mpdt was given.
15446 if test "${enable_mpdt+set}" = set; then :
15447   enableval=$enable_mpdt;
15448 else
15449   enable_mpdt=no
15450 fi
15451
15452  if test "x$enable_mpdt" != xno; then
15453   HAVE_MPDT_TRUE=
15454   HAVE_MPDT_FALSE='#'
15455 else
15456   HAVE_MPDT_TRUE='#'
15457   HAVE_MPDT_FALSE=
15458 fi
15459
15460
15461 # Check whether --enable-ngram-fsts was given.
15462 if test "${enable_ngram_fsts+set}" = set; then :
15463   enableval=$enable_ngram_fsts;
15464 else
15465   enable_ngram_fsts=no
15466 fi
15467
15468  if test "x$enable_ngram_fsts" != xno; then
15469   HAVE_NGRAM_TRUE=
15470   HAVE_NGRAM_FALSE='#'
15471 else
15472   HAVE_NGRAM_TRUE='#'
15473   HAVE_NGRAM_FALSE=
15474 fi
15475
15476
15477 # Check whether --enable-pdt was given.
15478 if test "${enable_pdt+set}" = set; then :
15479   enableval=$enable_pdt;
15480 else
15481   enable_pdt=no
15482 fi
15483
15484  if test "x$enable_pdt" != xno; then
15485   HAVE_PDT_TRUE=
15486   HAVE_PDT_FALSE='#'
15487 else
15488   HAVE_PDT_TRUE='#'
15489   HAVE_PDT_FALSE=
15490 fi
15491
15492
15493 # Check whether --enable-python was given.
15494 if test "${enable_python+set}" = set; then :
15495   enableval=$enable_python;
15496 else
15497   enable_python=no
15498 fi
15499
15500  if test "x$enable_python" != xno; then
15501   HAVE_PYTHON_TRUE=
15502   HAVE_PYTHON_FALSE='#'
15503 else
15504   HAVE_PYTHON_TRUE='#'
15505   HAVE_PYTHON_FALSE=
15506 fi
15507
15508 if test "x$enable_python" != xno; then
15509
15510
15511
15512
15513
15514
15515         if test -n "$PYTHON"; then
15516       # If the user set $PYTHON, use it and don't search something else.
15517       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
15518 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
15519       prog="import sys
15520 # split strings by '.' and convert to numeric.  Append some zeros
15521 # because we need at least 4 digits for the hex conversion.
15522 # map returns an iterator in Python 3.0 and a list in 2.x
15523 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
15524 minverhex = 0
15525 # xrange is not present in Python 3.0 and range returns an iterator
15526 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
15527 sys.exit(sys.hexversion < minverhex)"
15528   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
15529    ($PYTHON -c "$prog") >&5 2>&5
15530    ac_status=$?
15531    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532    (exit $ac_status); }; then :
15533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15534 $as_echo "yes" >&6; }
15535 else
15536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15537 $as_echo "no" >&6; }
15538                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
15539 fi
15540       am_display_PYTHON=$PYTHON
15541     else
15542       # Otherwise, try each interpreter until we find one that satisfies
15543       # VERSION.
15544       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
15545 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
15546 if ${am_cv_pathless_PYTHON+:} false; then :
15547   $as_echo_n "(cached) " >&6
15548 else
15549
15550         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
15551           test "$am_cv_pathless_PYTHON" = none && break
15552           prog="import sys
15553 # split strings by '.' and convert to numeric.  Append some zeros
15554 # because we need at least 4 digits for the hex conversion.
15555 # map returns an iterator in Python 3.0 and a list in 2.x
15556 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
15557 minverhex = 0
15558 # xrange is not present in Python 3.0 and range returns an iterator
15559 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
15560 sys.exit(sys.hexversion < minverhex)"
15561   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
15562    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
15563    ac_status=$?
15564    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565    (exit $ac_status); }; then :
15566   break
15567 fi
15568         done
15569 fi
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
15571 $as_echo "$am_cv_pathless_PYTHON" >&6; }
15572       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
15573       if test "$am_cv_pathless_PYTHON" = none; then
15574         PYTHON=:
15575       else
15576         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
15577 set dummy $am_cv_pathless_PYTHON; ac_word=$2
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15579 $as_echo_n "checking for $ac_word... " >&6; }
15580 if ${ac_cv_path_PYTHON+:} false; then :
15581   $as_echo_n "(cached) " >&6
15582 else
15583   case $PYTHON in
15584   [\\/]* | ?:[\\/]*)
15585   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15586   ;;
15587   *)
15588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15589 for as_dir in $PATH
15590 do
15591   IFS=$as_save_IFS
15592   test -z "$as_dir" && as_dir=.
15593     for ac_exec_ext in '' $ac_executable_extensions; do
15594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15595     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15597     break 2
15598   fi
15599 done
15600   done
15601 IFS=$as_save_IFS
15602
15603   ;;
15604 esac
15605 fi
15606 PYTHON=$ac_cv_path_PYTHON
15607 if test -n "$PYTHON"; then
15608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15609 $as_echo "$PYTHON" >&6; }
15610 else
15611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15612 $as_echo "no" >&6; }
15613 fi
15614
15615
15616       fi
15617       am_display_PYTHON=$am_cv_pathless_PYTHON
15618     fi
15619
15620
15621   if test "$PYTHON" = :; then
15622       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
15623   else
15624
15625
15626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
15627 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
15628 if ${am_cv_python_version+:} false; then :
15629   $as_echo_n "(cached) " >&6
15630 else
15631   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
15632 fi
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
15634 $as_echo "$am_cv_python_version" >&6; }
15635   PYTHON_VERSION=$am_cv_python_version
15636
15637
15638
15639   PYTHON_PREFIX='${prefix}'
15640
15641   PYTHON_EXEC_PREFIX='${exec_prefix}'
15642
15643
15644
15645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
15646 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
15647 if ${am_cv_python_platform+:} false; then :
15648   $as_echo_n "(cached) " >&6
15649 else
15650   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
15651 fi
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
15653 $as_echo "$am_cv_python_platform" >&6; }
15654   PYTHON_PLATFORM=$am_cv_python_platform
15655
15656
15657   # Just factor out some code duplication.
15658   am_python_setup_sysconfig="\
15659 import sys
15660 # Prefer sysconfig over distutils.sysconfig, for better compatibility
15661 # with python 3.x.  See automake bug#10227.
15662 try:
15663     import sysconfig
15664 except ImportError:
15665     can_use_sysconfig = 0
15666 else:
15667     can_use_sysconfig = 1
15668 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
15669 # <https://github.com/pypa/virtualenv/issues/118>
15670 try:
15671     from platform import python_implementation
15672     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
15673         can_use_sysconfig = 0
15674 except ImportError:
15675     pass"
15676
15677
15678             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
15679 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
15680 if ${am_cv_python_pythondir+:} false; then :
15681   $as_echo_n "(cached) " >&6
15682 else
15683   if test "x$prefix" = xNONE
15684      then
15685        am_py_prefix=$ac_default_prefix
15686      else
15687        am_py_prefix=$prefix
15688      fi
15689      am_cv_python_pythondir=`$PYTHON -c "
15690 $am_python_setup_sysconfig
15691 if can_use_sysconfig:
15692     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
15693 else:
15694     from distutils import sysconfig
15695     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
15696 sys.stdout.write(sitedir)"`
15697      case $am_cv_python_pythondir in
15698      $am_py_prefix*)
15699        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
15700        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
15701        ;;
15702      *)
15703        case $am_py_prefix in
15704          /usr|/System*) ;;
15705          *)
15706           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
15707           ;;
15708        esac
15709        ;;
15710      esac
15711
15712 fi
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
15714 $as_echo "$am_cv_python_pythondir" >&6; }
15715   pythondir=$am_cv_python_pythondir
15716
15717
15718
15719   pkgpythondir=\${pythondir}/$PACKAGE
15720
15721
15722         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
15723 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
15724 if ${am_cv_python_pyexecdir+:} false; then :
15725   $as_echo_n "(cached) " >&6
15726 else
15727   if test "x$exec_prefix" = xNONE
15728      then
15729        am_py_exec_prefix=$am_py_prefix
15730      else
15731        am_py_exec_prefix=$exec_prefix
15732      fi
15733      am_cv_python_pyexecdir=`$PYTHON -c "
15734 $am_python_setup_sysconfig
15735 if can_use_sysconfig:
15736     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
15737 else:
15738     from distutils import sysconfig
15739     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
15740 sys.stdout.write(sitedir)"`
15741      case $am_cv_python_pyexecdir in
15742      $am_py_exec_prefix*)
15743        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
15744        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
15745        ;;
15746      *)
15747        case $am_py_exec_prefix in
15748          /usr|/System*) ;;
15749          *)
15750            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
15751            ;;
15752        esac
15753        ;;
15754      esac
15755
15756 fi
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
15758 $as_echo "$am_cv_python_pyexecdir" >&6; }
15759   pyexecdir=$am_cv_python_pyexecdir
15760
15761
15762
15763   pkgpyexecdir=\${pyexecdir}/$PACKAGE
15764
15765
15766
15767   fi
15768
15769
15770
15771         #
15772         # Allow the use of a (user set) custom python version
15773         #
15774
15775
15776         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15777 set dummy python$PYTHON_VERSION; ac_word=$2
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779 $as_echo_n "checking for $ac_word... " >&6; }
15780 if ${ac_cv_path_PYTHON+:} false; then :
15781   $as_echo_n "(cached) " >&6
15782 else
15783   case $PYTHON in
15784   [\\/]* | ?:[\\/]*)
15785   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15786   ;;
15787   *)
15788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15789 for as_dir in $PATH
15790 do
15791   IFS=$as_save_IFS
15792   test -z "$as_dir" && as_dir=.
15793     for ac_exec_ext in '' $ac_executable_extensions; do
15794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15795     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15797     break 2
15798   fi
15799 done
15800   done
15801 IFS=$as_save_IFS
15802
15803   ;;
15804 esac
15805 fi
15806 PYTHON=$ac_cv_path_PYTHON
15807 if test -n "$PYTHON"; then
15808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15809 $as_echo "$PYTHON" >&6; }
15810 else
15811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15812 $as_echo "no" >&6; }
15813 fi
15814
15815
15816         if test -z "$PYTHON"; then
15817            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15818            PYTHON_VERSION=""
15819         fi
15820
15821         #
15822         # Check for a version of Python >= 2.1.0
15823         #
15824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15825 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
15826         ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15827                 ver = string.split(sys.version)[0]; \
15828                 print ver >= '2.1.0'"`
15829         if test "$ac_supports_python_ver" != "True"; then
15830                 if test -z "$PYTHON_NOVERSIONCHECK"; then
15831                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15832 $as_echo "no" >&6; }
15833                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15835 as_fn_error $? "
15836 This version of the AC_PYTHON_DEVEL macro
15837 doesn't work properly with versions of Python before
15838 2.1.0. You may need to re-run configure, setting the
15839 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
15840 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15841 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15842 to something else than an empty string.
15843
15844 See \`config.log' for more details" "$LINENO" 5; }
15845                 else
15846                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15847 $as_echo "skip at user request" >&6; }
15848                 fi
15849         else
15850                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15851 $as_echo "yes" >&6; }
15852         fi
15853
15854         #
15855         # if the macro parameter ``version'' is set, honour it
15856         #
15857         if test -n ">= '2.7'"; then
15858                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
15859 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
15860                 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15861                         ver = string.split(sys.version)[0]; \
15862                         print ver >= '2.7'"`
15863                 if test "$ac_supports_python_ver" = "True"; then
15864                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15865 $as_echo "yes" >&6; }
15866                 else
15867                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15868 $as_echo "no" >&6; }
15869                         as_fn_error $? "this package requires Python >= '2.7'.
15870 If you have it installed, but it isn't the default Python
15871 interpreter in your system path, please pass the PYTHON_VERSION
15872 variable to configure. See \`\`configure --help'' for reference.
15873 " "$LINENO" 5
15874                         PYTHON_VERSION=""
15875                 fi
15876         fi
15877
15878         #
15879         # Check if you have distutils, else fail
15880         #
15881         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15882 $as_echo_n "checking for the distutils Python package... " >&6; }
15883         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15884         if test -z "$ac_distutils_result"; then
15885                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15886 $as_echo "yes" >&6; }
15887         else
15888                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15889 $as_echo "no" >&6; }
15890                 as_fn_error $? "cannot import Python module \"distutils\".
15891 Please check your Python installation. The error was:
15892 $ac_distutils_result" "$LINENO" 5
15893                 PYTHON_VERSION=""
15894         fi
15895
15896         #
15897         # Check for Python include path
15898         #
15899         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15900 $as_echo_n "checking for Python include path... " >&6; }
15901         if test -z "$PYTHON_CPPFLAGS"; then
15902                 python_path=`$PYTHON -c "import distutils.sysconfig; \
15903                         print distutils.sysconfig.get_python_inc();"`
15904                 if test -n "${python_path}"; then
15905                         python_path="-I$python_path"
15906                 fi
15907                 PYTHON_CPPFLAGS=$python_path
15908         fi
15909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15910 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15911
15912
15913         #
15914         # Check for Python library path
15915         #
15916         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15917 $as_echo_n "checking for Python library path... " >&6; }
15918         if test -z "$PYTHON_LDFLAGS"; then
15919                 # (makes two attempts to ensure we've got a version number
15920                 # from the interpreter)
15921                 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
15922                         from string import join; \
15923                         print join(get_config_vars('VERSION'))"`
15924                 if test "$py_version" == "None"; then
15925                         if test -n "$PYTHON_VERSION"; then
15926                                 py_version=$PYTHON_VERSION
15927                         else
15928                                 py_version=`$PYTHON -c "import sys; \
15929                                         print sys.version[:3]"`
15930                         fi
15931                 fi
15932
15933                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15934                         from string import join; \
15935                         print '-L' + get_python_lib(0,1), \
15936                         '-lpython';"`$py_version
15937         fi
15938         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15939 $as_echo "$PYTHON_LDFLAGS" >&6; }
15940
15941
15942         #
15943         # Check for site packages
15944         #
15945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15946 $as_echo_n "checking for Python site-packages path... " >&6; }
15947         if test -z "$PYTHON_SITE_PKG"; then
15948                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15949                         print distutils.sysconfig.get_python_lib(0,0);"`
15950         fi
15951         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15952 $as_echo "$PYTHON_SITE_PKG" >&6; }
15953
15954
15955         #
15956         # libraries which must be linked in when embedding
15957         #
15958         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15959 $as_echo_n "checking python extra libraries... " >&6; }
15960         if test -z "$PYTHON_EXTRA_LIBS"; then
15961            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15962                 conf = distutils.sysconfig.get_config_var; \
15963                 print conf('LOCALMODLIBS'), conf('LIBS')"`
15964         fi
15965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15966 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15967
15968
15969         #
15970         # linking flags needed when embedding
15971         #
15972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15973 $as_echo_n "checking python extra linking flags... " >&6; }
15974         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15975                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15976                         conf = distutils.sysconfig.get_config_var; \
15977                         print conf('LINKFORSHARED')"`
15978         fi
15979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15980 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15981
15982
15983         #
15984         # final check to see if everything compiles alright
15985         #
15986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15987 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
15988         ac_ext=c
15989 ac_cpp='$CPP $CPPFLAGS'
15990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15993
15994         # save current global flags
15995         LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
15996         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
15997         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h.  */
15999
16000                 #include <Python.h>
16001
16002 int
16003 main ()
16004 {
16005
16006                 Py_Initialize();
16007
16008   ;
16009   return 0;
16010 }
16011 _ACEOF
16012 if ac_fn_c_try_link "$LINENO"; then :
16013   pythonexists=yes
16014 else
16015   pythonexists=no
16016 fi
16017 rm -f core conftest.err conftest.$ac_objext \
16018     conftest$ac_exeext conftest.$ac_ext
16019
16020         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16021 $as_echo "$pythonexists" >&6; }
16022
16023         if test ! "$pythonexists" = "yes"; then
16024            as_fn_error $? "
16025   Could not link test program to Python. Maybe the main Python library has been
16026   installed in some non-standard library path. If so, pass it to configure,
16027   via the LDFLAGS environment variable.
16028   Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16029   ============================================================================
16030    ERROR!
16031    You probably have to install the development version of the Python package
16032    for your distribution.  The exact name of this package varies among them.
16033   ============================================================================
16034            " "$LINENO" 5
16035           PYTHON_VERSION=""
16036         fi
16037         ac_ext=cpp
16038 ac_cpp='$CXXCPP $CPPFLAGS'
16039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16042
16043         # turn back to default flags
16044         CPPFLAGS="$ac_save_CPPFLAGS"
16045         LIBS="$ac_save_LIBS"
16046
16047         #
16048         # all done!
16049         #
16050
16051 fi
16052
16053 # Check whether --enable-special was given.
16054 if test "${enable_special+set}" = set; then :
16055   enableval=$enable_special;
16056 else
16057   enable_special=no
16058 fi
16059
16060  if test "x$enable_special" != xno; then
16061   HAVE_SPECIAL_TRUE=
16062   HAVE_SPECIAL_FALSE='#'
16063 else
16064   HAVE_SPECIAL_TRUE='#'
16065   HAVE_SPECIAL_FALSE=
16066 fi
16067
16068
16069 # --enable-bin enables script and bin "extensions".
16070 # Check whether --enable-bin was given.
16071 if test "${enable_bin+set}" = set; then :
16072   enableval=$enable_bin;
16073 else
16074   enable_bin=yes
16075 fi
16076
16077  if test "x$enable_bin" != xno; then
16078   HAVE_BIN_TRUE=
16079   HAVE_BIN_FALSE='#'
16080 else
16081   HAVE_BIN_TRUE='#'
16082   HAVE_BIN_FALSE=
16083 fi
16084
16085  if test "x$enable_bin" != xno; then
16086   HAVE_SCRIPT_TRUE=
16087   HAVE_SCRIPT_FALSE='#'
16088 else
16089   HAVE_SCRIPT_TRUE='#'
16090   HAVE_SCRIPT_FALSE=
16091 fi
16092
16093
16094 # --enable-grm enables dependencies of OpenGrm: far, mpdt, and pdt.
16095 # Check whether --enable-grm was given.
16096 if test "${enable_grm+set}" = set; then :
16097   enableval=$enable_grm;
16098 else
16099   enable_grm=no
16100 fi
16101
16102  if test "x$enable_grm" != xno; then
16103   HAVE_GRM_TRUE=
16104   HAVE_GRM_FALSE='#'
16105 else
16106   HAVE_GRM_TRUE='#'
16107   HAVE_GRM_FALSE=
16108 fi
16109
16110
16111
16112 # Check whether --with-libfstdir was given.
16113 if test "${with_libfstdir+set}" = set; then :
16114   withval=$with_libfstdir;
16115 else
16116   with_libfstdir=${libdir}/fst
16117 fi
16118
16119
16120 libfstdir=$with_libfstdir
16121
16122
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16124 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16125 if ${ac_cv_lib_dl_dlopen+:} false; then :
16126   $as_echo_n "(cached) " >&6
16127 else
16128   ac_check_lib_save_LIBS=$LIBS
16129 LIBS="-ldl  $LIBS"
16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h.  */
16132
16133 /* Override any GCC internal prototype to avoid an error.
16134    Use char because int might match the return type of a GCC
16135    builtin and then its argument prototype would still apply.  */
16136 #ifdef __cplusplus
16137 extern "C"
16138 #endif
16139 char dlopen ();
16140 int
16141 main ()
16142 {
16143 return dlopen ();
16144   ;
16145   return 0;
16146 }
16147 _ACEOF
16148 if ac_fn_cxx_try_link "$LINENO"; then :
16149   ac_cv_lib_dl_dlopen=yes
16150 else
16151   ac_cv_lib_dl_dlopen=no
16152 fi
16153 rm -f core conftest.err conftest.$ac_objext \
16154     conftest$ac_exeext conftest.$ac_ext
16155 LIBS=$ac_check_lib_save_LIBS
16156 fi
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16158 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16159 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16160   DL_LIBS=-ldl
16161 fi
16162
16163
16164
16165 cat >confcache <<\_ACEOF
16166 # This file is a shell script that caches the results of configure
16167 # tests run on this system so they can be shared between configure
16168 # scripts and configure runs, see configure's option --config-cache.
16169 # It is not useful on other systems.  If it contains results you don't
16170 # want to keep, you may remove or edit it.
16171 #
16172 # config.status only pays attention to the cache file if you give it
16173 # the --recheck option to rerun configure.
16174 #
16175 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16176 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16177 # following values.
16178
16179 _ACEOF
16180
16181 # The following way of writing the cache mishandles newlines in values,
16182 # but we know of no workaround that is simple, portable, and efficient.
16183 # So, we kill variables containing newlines.
16184 # Ultrix sh set writes to stderr and can't be redirected directly,
16185 # and sets the high bit in the cache file unless we assign to the vars.
16186 (
16187   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16188     eval ac_val=\$$ac_var
16189     case $ac_val in #(
16190     *${as_nl}*)
16191       case $ac_var in #(
16192       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16193 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16194       esac
16195       case $ac_var in #(
16196       _ | IFS | as_nl) ;; #(
16197       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16198       *) { eval $ac_var=; unset $ac_var;} ;;
16199       esac ;;
16200     esac
16201   done
16202
16203   (set) 2>&1 |
16204     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16205     *${as_nl}ac_space=\ *)
16206       # `set' does not quote correctly, so add quotes: double-quote
16207       # substitution turns \\\\ into \\, and sed turns \\ into \.
16208       sed -n \
16209         "s/'/'\\\\''/g;
16210           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16211       ;; #(
16212     *)
16213       # `set' quotes correctly as required by POSIX, so do not add quotes.
16214       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16215       ;;
16216     esac |
16217     sort
16218 ) |
16219   sed '
16220      /^ac_cv_env_/b end
16221      t clear
16222      :clear
16223      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16224      t end
16225      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16226      :end' >>confcache
16227 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16228   if test -w "$cache_file"; then
16229     if test "x$cache_file" != "x/dev/null"; then
16230       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16231 $as_echo "$as_me: updating cache $cache_file" >&6;}
16232       if test ! -f "$cache_file" || test -h "$cache_file"; then
16233         cat confcache >"$cache_file"
16234       else
16235         case $cache_file in #(
16236         */* | ?:*)
16237           mv -f confcache "$cache_file"$$ &&
16238           mv -f "$cache_file"$$ "$cache_file" ;; #(
16239         *)
16240           mv -f confcache "$cache_file" ;;
16241         esac
16242       fi
16243     fi
16244   else
16245     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16246 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16247   fi
16248 fi
16249 rm -f confcache
16250
16251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16252 # Let make expand exec_prefix.
16253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16254
16255 DEFS=-DHAVE_CONFIG_H
16256
16257 ac_libobjs=
16258 ac_ltlibobjs=
16259 U=
16260 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16261   # 1. Remove the extension, and $U if already installed.
16262   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16263   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16264   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16265   #    will be set to the directory where LIBOBJS objects are built.
16266   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16267   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16268 done
16269 LIBOBJS=$ac_libobjs
16270
16271 LTLIBOBJS=$ac_ltlibobjs
16272
16273
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16275 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16276    if test -n "$am_sleep_pid"; then
16277      # Hide warnings about reused PIDs.
16278      wait $am_sleep_pid 2>/dev/null
16279    fi
16280    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16281 $as_echo "done" >&6; }
16282  if test -n "$EXEEXT"; then
16283   am__EXEEXT_TRUE=
16284   am__EXEEXT_FALSE='#'
16285 else
16286   am__EXEEXT_TRUE='#'
16287   am__EXEEXT_FALSE=
16288 fi
16289
16290 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16291   as_fn_error $? "conditional \"AMDEP\" was never defined.
16292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16293 fi
16294 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16295   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16297 fi
16298 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16299   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16301 fi
16302 if test -z "${HAVE_COMPACT_TRUE}" && test -z "${HAVE_COMPACT_FALSE}"; then
16303   as_fn_error $? "conditional \"HAVE_COMPACT\" was never defined.
16304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16305 fi
16306 if test -z "${HAVE_COMPRESS_TRUE}" && test -z "${HAVE_COMPRESS_FALSE}"; then
16307   as_fn_error $? "conditional \"HAVE_COMPRESS\" was never defined.
16308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16309 fi
16310 if test -z "${HAVE_CONST_TRUE}" && test -z "${HAVE_CONST_FALSE}"; then
16311   as_fn_error $? "conditional \"HAVE_CONST\" was never defined.
16312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16313 fi
16314 if test -z "${HAVE_FAR_TRUE}" && test -z "${HAVE_FAR_FALSE}"; then
16315   as_fn_error $? "conditional \"HAVE_FAR\" was never defined.
16316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16317 fi
16318 if test -z "${HAVE_LINEAR_TRUE}" && test -z "${HAVE_LINEAR_FALSE}"; then
16319   as_fn_error $? "conditional \"HAVE_LINEAR\" was never defined.
16320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16321 fi
16322 if test -z "${HAVE_LOOKAHEAD_TRUE}" && test -z "${HAVE_LOOKAHEAD_FALSE}"; then
16323   as_fn_error $? "conditional \"HAVE_LOOKAHEAD\" was never defined.
16324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16325 fi
16326 if test -z "${HAVE_MPDT_TRUE}" && test -z "${HAVE_MPDT_FALSE}"; then
16327   as_fn_error $? "conditional \"HAVE_MPDT\" was never defined.
16328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16329 fi
16330 if test -z "${HAVE_NGRAM_TRUE}" && test -z "${HAVE_NGRAM_FALSE}"; then
16331   as_fn_error $? "conditional \"HAVE_NGRAM\" was never defined.
16332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16333 fi
16334 if test -z "${HAVE_PDT_TRUE}" && test -z "${HAVE_PDT_FALSE}"; then
16335   as_fn_error $? "conditional \"HAVE_PDT\" was never defined.
16336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16337 fi
16338 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16339   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
16340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16341 fi
16342 if test -z "${HAVE_SPECIAL_TRUE}" && test -z "${HAVE_SPECIAL_FALSE}"; then
16343   as_fn_error $? "conditional \"HAVE_SPECIAL\" was never defined.
16344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16345 fi
16346 if test -z "${HAVE_BIN_TRUE}" && test -z "${HAVE_BIN_FALSE}"; then
16347   as_fn_error $? "conditional \"HAVE_BIN\" was never defined.
16348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16349 fi
16350 if test -z "${HAVE_SCRIPT_TRUE}" && test -z "${HAVE_SCRIPT_FALSE}"; then
16351   as_fn_error $? "conditional \"HAVE_SCRIPT\" was never defined.
16352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16353 fi
16354 if test -z "${HAVE_GRM_TRUE}" && test -z "${HAVE_GRM_FALSE}"; then
16355   as_fn_error $? "conditional \"HAVE_GRM\" was never defined.
16356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16357 fi
16358
16359 : "${CONFIG_STATUS=./config.status}"
16360 ac_write_fail=0
16361 ac_clean_files_save=$ac_clean_files
16362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16364 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16365 as_write_fail=0
16366 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16367 #! $SHELL
16368 # Generated by $as_me.
16369 # Run this file to recreate the current configuration.
16370 # Compiler output produced by configure, useful for debugging
16371 # configure, is in config.log if it exists.
16372
16373 debug=false
16374 ac_cs_recheck=false
16375 ac_cs_silent=false
16376
16377 SHELL=\${CONFIG_SHELL-$SHELL}
16378 export SHELL
16379 _ASEOF
16380 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16381 ## -------------------- ##
16382 ## M4sh Initialization. ##
16383 ## -------------------- ##
16384
16385 # Be more Bourne compatible
16386 DUALCASE=1; export DUALCASE # for MKS sh
16387 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16388   emulate sh
16389   NULLCMD=:
16390   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16391   # is contrary to our usage.  Disable this feature.
16392   alias -g '${1+"$@"}'='"$@"'
16393   setopt NO_GLOB_SUBST
16394 else
16395   case `(set -o) 2>/dev/null` in #(
16396   *posix*) :
16397     set -o posix ;; #(
16398   *) :
16399      ;;
16400 esac
16401 fi
16402
16403
16404 as_nl='
16405 '
16406 export as_nl
16407 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16408 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16409 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16410 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16411 # Prefer a ksh shell builtin over an external printf program on Solaris,
16412 # but without wasting forks for bash or zsh.
16413 if test -z "$BASH_VERSION$ZSH_VERSION" \
16414     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16415   as_echo='print -r --'
16416   as_echo_n='print -rn --'
16417 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16418   as_echo='printf %s\n'
16419   as_echo_n='printf %s'
16420 else
16421   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16422     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16423     as_echo_n='/usr/ucb/echo -n'
16424   else
16425     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16426     as_echo_n_body='eval
16427       arg=$1;
16428       case $arg in #(
16429       *"$as_nl"*)
16430         expr "X$arg" : "X\\(.*\\)$as_nl";
16431         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16432       esac;
16433       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16434     '
16435     export as_echo_n_body
16436     as_echo_n='sh -c $as_echo_n_body as_echo'
16437   fi
16438   export as_echo_body
16439   as_echo='sh -c $as_echo_body as_echo'
16440 fi
16441
16442 # The user is always right.
16443 if test "${PATH_SEPARATOR+set}" != set; then
16444   PATH_SEPARATOR=:
16445   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16446     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16447       PATH_SEPARATOR=';'
16448   }
16449 fi
16450
16451
16452 # IFS
16453 # We need space, tab and new line, in precisely that order.  Quoting is
16454 # there to prevent editors from complaining about space-tab.
16455 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16456 # splitting by setting IFS to empty value.)
16457 IFS=" ""        $as_nl"
16458
16459 # Find who we are.  Look in the path if we contain no directory separator.
16460 as_myself=
16461 case $0 in #((
16462   *[\\/]* ) as_myself=$0 ;;
16463   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16464 for as_dir in $PATH
16465 do
16466   IFS=$as_save_IFS
16467   test -z "$as_dir" && as_dir=.
16468     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16469   done
16470 IFS=$as_save_IFS
16471
16472      ;;
16473 esac
16474 # We did not find ourselves, most probably we were run as `sh COMMAND'
16475 # in which case we are not to be found in the path.
16476 if test "x$as_myself" = x; then
16477   as_myself=$0
16478 fi
16479 if test ! -f "$as_myself"; then
16480   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16481   exit 1
16482 fi
16483
16484 # Unset variables that we do not need and which cause bugs (e.g. in
16485 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16486 # suppresses any "Segmentation fault" message there.  '((' could
16487 # trigger a bug in pdksh 5.2.14.
16488 for as_var in BASH_ENV ENV MAIL MAILPATH
16489 do eval test x\${$as_var+set} = xset \
16490   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16491 done
16492 PS1='$ '
16493 PS2='> '
16494 PS4='+ '
16495
16496 # NLS nuisances.
16497 LC_ALL=C
16498 export LC_ALL
16499 LANGUAGE=C
16500 export LANGUAGE
16501
16502 # CDPATH.
16503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16504
16505
16506 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16507 # ----------------------------------------
16508 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16509 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16510 # script with STATUS, using 1 if that was 0.
16511 as_fn_error ()
16512 {
16513   as_status=$1; test $as_status -eq 0 && as_status=1
16514   if test "$4"; then
16515     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16516     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16517   fi
16518   $as_echo "$as_me: error: $2" >&2
16519   as_fn_exit $as_status
16520 } # as_fn_error
16521
16522
16523 # as_fn_set_status STATUS
16524 # -----------------------
16525 # Set $? to STATUS, without forking.
16526 as_fn_set_status ()
16527 {
16528   return $1
16529 } # as_fn_set_status
16530
16531 # as_fn_exit STATUS
16532 # -----------------
16533 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16534 as_fn_exit ()
16535 {
16536   set +e
16537   as_fn_set_status $1
16538   exit $1
16539 } # as_fn_exit
16540
16541 # as_fn_unset VAR
16542 # ---------------
16543 # Portably unset VAR.
16544 as_fn_unset ()
16545 {
16546   { eval $1=; unset $1;}
16547 }
16548 as_unset=as_fn_unset
16549 # as_fn_append VAR VALUE
16550 # ----------------------
16551 # Append the text in VALUE to the end of the definition contained in VAR. Take
16552 # advantage of any shell optimizations that allow amortized linear growth over
16553 # repeated appends, instead of the typical quadratic growth present in naive
16554 # implementations.
16555 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16556   eval 'as_fn_append ()
16557   {
16558     eval $1+=\$2
16559   }'
16560 else
16561   as_fn_append ()
16562   {
16563     eval $1=\$$1\$2
16564   }
16565 fi # as_fn_append
16566
16567 # as_fn_arith ARG...
16568 # ------------------
16569 # Perform arithmetic evaluation on the ARGs, and store the result in the
16570 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16571 # must be portable across $(()) and expr.
16572 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16573   eval 'as_fn_arith ()
16574   {
16575     as_val=$(( $* ))
16576   }'
16577 else
16578   as_fn_arith ()
16579   {
16580     as_val=`expr "$@" || test $? -eq 1`
16581   }
16582 fi # as_fn_arith
16583
16584
16585 if expr a : '\(a\)' >/dev/null 2>&1 &&
16586    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16587   as_expr=expr
16588 else
16589   as_expr=false
16590 fi
16591
16592 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16593   as_basename=basename
16594 else
16595   as_basename=false
16596 fi
16597
16598 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16599   as_dirname=dirname
16600 else
16601   as_dirname=false
16602 fi
16603
16604 as_me=`$as_basename -- "$0" ||
16605 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16606          X"$0" : 'X\(//\)$' \| \
16607          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16608 $as_echo X/"$0" |
16609     sed '/^.*\/\([^/][^/]*\)\/*$/{
16610             s//\1/
16611             q
16612           }
16613           /^X\/\(\/\/\)$/{
16614             s//\1/
16615             q
16616           }
16617           /^X\/\(\/\).*/{
16618             s//\1/
16619             q
16620           }
16621           s/.*/./; q'`
16622
16623 # Avoid depending upon Character Ranges.
16624 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16627 as_cr_digits='0123456789'
16628 as_cr_alnum=$as_cr_Letters$as_cr_digits
16629
16630 ECHO_C= ECHO_N= ECHO_T=
16631 case `echo -n x` in #(((((
16632 -n*)
16633   case `echo 'xy\c'` in
16634   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16635   xy)  ECHO_C='\c';;
16636   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16637        ECHO_T=' ';;
16638   esac;;
16639 *)
16640   ECHO_N='-n';;
16641 esac
16642
16643 rm -f conf$$ conf$$.exe conf$$.file
16644 if test -d conf$$.dir; then
16645   rm -f conf$$.dir/conf$$.file
16646 else
16647   rm -f conf$$.dir
16648   mkdir conf$$.dir 2>/dev/null
16649 fi
16650 if (echo >conf$$.file) 2>/dev/null; then
16651   if ln -s conf$$.file conf$$ 2>/dev/null; then
16652     as_ln_s='ln -s'
16653     # ... but there are two gotchas:
16654     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16655     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16656     # In both cases, we have to default to `cp -pR'.
16657     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16658       as_ln_s='cp -pR'
16659   elif ln conf$$.file conf$$ 2>/dev/null; then
16660     as_ln_s=ln
16661   else
16662     as_ln_s='cp -pR'
16663   fi
16664 else
16665   as_ln_s='cp -pR'
16666 fi
16667 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16668 rmdir conf$$.dir 2>/dev/null
16669
16670
16671 # as_fn_mkdir_p
16672 # -------------
16673 # Create "$as_dir" as a directory, including parents if necessary.
16674 as_fn_mkdir_p ()
16675 {
16676
16677   case $as_dir in #(
16678   -*) as_dir=./$as_dir;;
16679   esac
16680   test -d "$as_dir" || eval $as_mkdir_p || {
16681     as_dirs=
16682     while :; do
16683       case $as_dir in #(
16684       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16685       *) as_qdir=$as_dir;;
16686       esac
16687       as_dirs="'$as_qdir' $as_dirs"
16688       as_dir=`$as_dirname -- "$as_dir" ||
16689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16690          X"$as_dir" : 'X\(//\)[^/]' \| \
16691          X"$as_dir" : 'X\(//\)$' \| \
16692          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16693 $as_echo X"$as_dir" |
16694     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16695             s//\1/
16696             q
16697           }
16698           /^X\(\/\/\)[^/].*/{
16699             s//\1/
16700             q
16701           }
16702           /^X\(\/\/\)$/{
16703             s//\1/
16704             q
16705           }
16706           /^X\(\/\).*/{
16707             s//\1/
16708             q
16709           }
16710           s/.*/./; q'`
16711       test -d "$as_dir" && break
16712     done
16713     test -z "$as_dirs" || eval "mkdir $as_dirs"
16714   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16715
16716
16717 } # as_fn_mkdir_p
16718 if mkdir -p . 2>/dev/null; then
16719   as_mkdir_p='mkdir -p "$as_dir"'
16720 else
16721   test -d ./-p && rmdir ./-p
16722   as_mkdir_p=false
16723 fi
16724
16725
16726 # as_fn_executable_p FILE
16727 # -----------------------
16728 # Test if FILE is an executable regular file.
16729 as_fn_executable_p ()
16730 {
16731   test -f "$1" && test -x "$1"
16732 } # as_fn_executable_p
16733 as_test_x='test -x'
16734 as_executable_p=as_fn_executable_p
16735
16736 # Sed expression to map a string onto a valid CPP name.
16737 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16738
16739 # Sed expression to map a string onto a valid variable name.
16740 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16741
16742
16743 exec 6>&1
16744 ## ----------------------------------- ##
16745 ## Main body of $CONFIG_STATUS script. ##
16746 ## ----------------------------------- ##
16747 _ASEOF
16748 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16749
16750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16751 # Save the log message, to keep $0 and so on meaningful, and to
16752 # report actual input values of CONFIG_FILES etc. instead of their
16753 # values after options handling.
16754 ac_log="
16755 This file was extended by OpenFst $as_me 1.6.5, which was
16756 generated by GNU Autoconf 2.69.  Invocation command line was
16757
16758   CONFIG_FILES    = $CONFIG_FILES
16759   CONFIG_HEADERS  = $CONFIG_HEADERS
16760   CONFIG_LINKS    = $CONFIG_LINKS
16761   CONFIG_COMMANDS = $CONFIG_COMMANDS
16762   $ $0 $@
16763
16764 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16765 "
16766
16767 _ACEOF
16768
16769 case $ac_config_files in *"
16770 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16771 esac
16772
16773 case $ac_config_headers in *"
16774 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16775 esac
16776
16777
16778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16779 # Files that config.status was made for.
16780 config_files="$ac_config_files"
16781 config_headers="$ac_config_headers"
16782 config_commands="$ac_config_commands"
16783
16784 _ACEOF
16785
16786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16787 ac_cs_usage="\
16788 \`$as_me' instantiates files and other configuration actions
16789 from templates according to the current configuration.  Unless the files
16790 and actions are specified as TAGs, all are instantiated by default.
16791
16792 Usage: $0 [OPTION]... [TAG]...
16793
16794   -h, --help       print this help, then exit
16795   -V, --version    print version number and configuration settings, then exit
16796       --config     print configuration, then exit
16797   -q, --quiet, --silent
16798                    do not print progress messages
16799   -d, --debug      don't remove temporary files
16800       --recheck    update $as_me by reconfiguring in the same conditions
16801       --file=FILE[:TEMPLATE]
16802                    instantiate the configuration file FILE
16803       --header=FILE[:TEMPLATE]
16804                    instantiate the configuration header FILE
16805
16806 Configuration files:
16807 $config_files
16808
16809 Configuration headers:
16810 $config_headers
16811
16812 Configuration commands:
16813 $config_commands
16814
16815 Report bugs to <help@www.openfst.org>."
16816
16817 _ACEOF
16818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16819 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16820 ac_cs_version="\\
16821 OpenFst config.status 1.6.5
16822 configured by $0, generated by GNU Autoconf 2.69,
16823   with options \\"\$ac_cs_config\\"
16824
16825 Copyright (C) 2012 Free Software Foundation, Inc.
16826 This config.status script is free software; the Free Software Foundation
16827 gives unlimited permission to copy, distribute and modify it."
16828
16829 ac_pwd='$ac_pwd'
16830 srcdir='$srcdir'
16831 INSTALL='$INSTALL'
16832 MKDIR_P='$MKDIR_P'
16833 AWK='$AWK'
16834 test -n "\$AWK" || AWK=awk
16835 _ACEOF
16836
16837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16838 # The default lists apply if the user does not specify any file.
16839 ac_need_defaults=:
16840 while test $# != 0
16841 do
16842   case $1 in
16843   --*=?*)
16844     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16845     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16846     ac_shift=:
16847     ;;
16848   --*=)
16849     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16850     ac_optarg=
16851     ac_shift=:
16852     ;;
16853   *)
16854     ac_option=$1
16855     ac_optarg=$2
16856     ac_shift=shift
16857     ;;
16858   esac
16859
16860   case $ac_option in
16861   # Handling of the options.
16862   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16863     ac_cs_recheck=: ;;
16864   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16865     $as_echo "$ac_cs_version"; exit ;;
16866   --config | --confi | --conf | --con | --co | --c )
16867     $as_echo "$ac_cs_config"; exit ;;
16868   --debug | --debu | --deb | --de | --d | -d )
16869     debug=: ;;
16870   --file | --fil | --fi | --f )
16871     $ac_shift
16872     case $ac_optarg in
16873     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16874     '') as_fn_error $? "missing file argument" ;;
16875     esac
16876     as_fn_append CONFIG_FILES " '$ac_optarg'"
16877     ac_need_defaults=false;;
16878   --header | --heade | --head | --hea )
16879     $ac_shift
16880     case $ac_optarg in
16881     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16882     esac
16883     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16884     ac_need_defaults=false;;
16885   --he | --h)
16886     # Conflict between --help and --header
16887     as_fn_error $? "ambiguous option: \`$1'
16888 Try \`$0 --help' for more information.";;
16889   --help | --hel | -h )
16890     $as_echo "$ac_cs_usage"; exit ;;
16891   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16892   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16893     ac_cs_silent=: ;;
16894
16895   # This is an error.
16896   -*) as_fn_error $? "unrecognized option: \`$1'
16897 Try \`$0 --help' for more information." ;;
16898
16899   *) as_fn_append ac_config_targets " $1"
16900      ac_need_defaults=false ;;
16901
16902   esac
16903   shift
16904 done
16905
16906 ac_configure_extra_args=
16907
16908 if $ac_cs_silent; then
16909   exec 6>/dev/null
16910   ac_configure_extra_args="$ac_configure_extra_args --silent"
16911 fi
16912
16913 _ACEOF
16914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16915 if \$ac_cs_recheck; then
16916   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16917   shift
16918   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16919   CONFIG_SHELL='$SHELL'
16920   export CONFIG_SHELL
16921   exec "\$@"
16922 fi
16923
16924 _ACEOF
16925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16926 exec 5>>config.log
16927 {
16928   echo
16929   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16930 ## Running $as_me. ##
16931 _ASBOX
16932   $as_echo "$ac_log"
16933 } >&5
16934
16935 _ACEOF
16936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16937 #
16938 # INIT-COMMANDS
16939 #
16940 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16941
16942
16943 # The HP-UX ksh and POSIX shell print the target directory to stdout
16944 # if CDPATH is set.
16945 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16946
16947 sed_quote_subst='$sed_quote_subst'
16948 double_quote_subst='$double_quote_subst'
16949 delay_variable_subst='$delay_variable_subst'
16950 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16951 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16952 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16953 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16954 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16955 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16956 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16957 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16958 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16959 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16960 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16961 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16962 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16963 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16964 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16965 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16966 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16967 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16968 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16969 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16970 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16971 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16972 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16973 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16974 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16975 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16976 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16977 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16978 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16979 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16980 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16981 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16982 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16983 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16984 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16985 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16986 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16987 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16988 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16989 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16990 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16991 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16992 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16993 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16994 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16995 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16996 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16997 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16998 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16999 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17000 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17001 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17002 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17003 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17004 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17005 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17006 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"`'
17007 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17008 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17009 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17010 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17011 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17012 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17013 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17014 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17015 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17016 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17017 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17018 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17019 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17020 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17021 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17022 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17023 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17024 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17025 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17026 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17027 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17028 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17029 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17030 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17031 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17032 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17033 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17034 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17035 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17036 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17037 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17038 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17039 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17040 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17041 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17042 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17043 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17044 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17045 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17046 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17047 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17048 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17049 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17050 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17051 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17052 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17053 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17054 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17055 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17056 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17057 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17058 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17059 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17060 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17061 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17062 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17063 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17064 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17065 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17066 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17067 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17068 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17069 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17070 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17071 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17072 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17073 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17074 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17075 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17076 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17077 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17078 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17079 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17080 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17081 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17082 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17083 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17084 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17085 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17086 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17087 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17088 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17089 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17090 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17091 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17092 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17093 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17094 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17095 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17096 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17097 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17098 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17099 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17100 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17101 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17102 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17103 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17104 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17105 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17106 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17107 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17108 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17109 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17110 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17111 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17112 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17113 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17114 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17115 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17116 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17117 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17118 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17119 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17120 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17121 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17122 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17123 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17124 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17125 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17126 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17127 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17128 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17129 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17130 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17131 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17132 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17133 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17134
17135 LTCC='$LTCC'
17136 LTCFLAGS='$LTCFLAGS'
17137 compiler='$compiler_DEFAULT'
17138
17139 # A function that is used when there is no print builtin or printf.
17140 func_fallback_echo ()
17141 {
17142   eval 'cat <<_LTECHO_EOF
17143 \$1
17144 _LTECHO_EOF'
17145 }
17146
17147 # Quote evaled strings.
17148 for var in SHELL \
17149 ECHO \
17150 PATH_SEPARATOR \
17151 SED \
17152 GREP \
17153 EGREP \
17154 FGREP \
17155 LD \
17156 NM \
17157 LN_S \
17158 lt_SP2NL \
17159 lt_NL2SP \
17160 reload_flag \
17161 OBJDUMP \
17162 deplibs_check_method \
17163 file_magic_cmd \
17164 file_magic_glob \
17165 want_nocaseglob \
17166 DLLTOOL \
17167 sharedlib_from_linklib_cmd \
17168 AR \
17169 AR_FLAGS \
17170 archiver_list_spec \
17171 STRIP \
17172 RANLIB \
17173 CC \
17174 CFLAGS \
17175 compiler \
17176 lt_cv_sys_global_symbol_pipe \
17177 lt_cv_sys_global_symbol_to_cdecl \
17178 lt_cv_sys_global_symbol_to_c_name_address \
17179 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17180 nm_file_list_spec \
17181 lt_prog_compiler_no_builtin_flag \
17182 lt_prog_compiler_pic \
17183 lt_prog_compiler_wl \
17184 lt_prog_compiler_static \
17185 lt_cv_prog_compiler_c_o \
17186 need_locks \
17187 MANIFEST_TOOL \
17188 DSYMUTIL \
17189 NMEDIT \
17190 LIPO \
17191 OTOOL \
17192 OTOOL64 \
17193 shrext_cmds \
17194 export_dynamic_flag_spec \
17195 whole_archive_flag_spec \
17196 compiler_needs_object \
17197 with_gnu_ld \
17198 allow_undefined_flag \
17199 no_undefined_flag \
17200 hardcode_libdir_flag_spec \
17201 hardcode_libdir_separator \
17202 exclude_expsyms \
17203 include_expsyms \
17204 file_list_spec \
17205 variables_saved_for_relink \
17206 libname_spec \
17207 library_names_spec \
17208 soname_spec \
17209 install_override_mode \
17210 finish_eval \
17211 old_striplib \
17212 striplib \
17213 compiler_lib_search_dirs \
17214 predep_objects \
17215 postdep_objects \
17216 predeps \
17217 postdeps \
17218 compiler_lib_search_path \
17219 LD_CXX \
17220 reload_flag_CXX \
17221 compiler_CXX \
17222 lt_prog_compiler_no_builtin_flag_CXX \
17223 lt_prog_compiler_pic_CXX \
17224 lt_prog_compiler_wl_CXX \
17225 lt_prog_compiler_static_CXX \
17226 lt_cv_prog_compiler_c_o_CXX \
17227 export_dynamic_flag_spec_CXX \
17228 whole_archive_flag_spec_CXX \
17229 compiler_needs_object_CXX \
17230 with_gnu_ld_CXX \
17231 allow_undefined_flag_CXX \
17232 no_undefined_flag_CXX \
17233 hardcode_libdir_flag_spec_CXX \
17234 hardcode_libdir_separator_CXX \
17235 exclude_expsyms_CXX \
17236 include_expsyms_CXX \
17237 file_list_spec_CXX \
17238 compiler_lib_search_dirs_CXX \
17239 predep_objects_CXX \
17240 postdep_objects_CXX \
17241 predeps_CXX \
17242 postdeps_CXX \
17243 compiler_lib_search_path_CXX; do
17244     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17245     *[\\\\\\\`\\"\\\$]*)
17246       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17247       ;;
17248     *)
17249       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17250       ;;
17251     esac
17252 done
17253
17254 # Double-quote double-evaled strings.
17255 for var in reload_cmds \
17256 old_postinstall_cmds \
17257 old_postuninstall_cmds \
17258 old_archive_cmds \
17259 extract_expsyms_cmds \
17260 old_archive_from_new_cmds \
17261 old_archive_from_expsyms_cmds \
17262 archive_cmds \
17263 archive_expsym_cmds \
17264 module_cmds \
17265 module_expsym_cmds \
17266 export_symbols_cmds \
17267 prelink_cmds \
17268 postlink_cmds \
17269 postinstall_cmds \
17270 postuninstall_cmds \
17271 finish_cmds \
17272 sys_lib_search_path_spec \
17273 sys_lib_dlsearch_path_spec \
17274 reload_cmds_CXX \
17275 old_archive_cmds_CXX \
17276 old_archive_from_new_cmds_CXX \
17277 old_archive_from_expsyms_cmds_CXX \
17278 archive_cmds_CXX \
17279 archive_expsym_cmds_CXX \
17280 module_cmds_CXX \
17281 module_expsym_cmds_CXX \
17282 export_symbols_cmds_CXX \
17283 prelink_cmds_CXX \
17284 postlink_cmds_CXX; do
17285     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17286     *[\\\\\\\`\\"\\\$]*)
17287       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17288       ;;
17289     *)
17290       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17291       ;;
17292     esac
17293 done
17294
17295 ac_aux_dir='$ac_aux_dir'
17296 xsi_shell='$xsi_shell'
17297 lt_shell_append='$lt_shell_append'
17298
17299 # See if we are running on zsh, and set the options which allow our
17300 # commands through without removal of \ escapes INIT.
17301 if test -n "\${ZSH_VERSION+set}" ; then
17302    setopt NO_GLOB_SUBST
17303 fi
17304
17305
17306     PACKAGE='$PACKAGE'
17307     VERSION='$VERSION'
17308     TIMESTAMP='$TIMESTAMP'
17309     RM='$RM'
17310     ofile='$ofile'
17311
17312
17313
17314
17315
17316
17317 _ACEOF
17318
17319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17320
17321 # Handling of arguments.
17322 for ac_config_target in $ac_config_targets
17323 do
17324   case $ac_config_target in
17325     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17326     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17327     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17328     "src/include/fst/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/fst/config.h" ;;
17329     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17330     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17331     "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
17332     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
17333     "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;;
17334     "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17335     "src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;;
17336     "src/extensions/compact/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compact/Makefile" ;;
17337     "src/extensions/compress/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compress/Makefile" ;;
17338     "src/extensions/const/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/const/Makefile" ;;
17339     "src/extensions/far/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/far/Makefile" ;;
17340     "src/extensions/linear/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/linear/Makefile" ;;
17341     "src/extensions/lookahead/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/lookahead/Makefile" ;;
17342     "src/extensions/mpdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/mpdt/Makefile" ;;
17343     "src/extensions/ngram/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/ngram/Makefile" ;;
17344     "src/extensions/pdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/pdt/Makefile" ;;
17345     "src/extensions/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/python/Makefile" ;;
17346     "src/extensions/special/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/special/Makefile" ;;
17347     "src/script/Makefile") CONFIG_FILES="$CONFIG_FILES src/script/Makefile" ;;
17348
17349   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17350   esac
17351 done
17352
17353
17354 # If the user did not use the arguments to specify the items to instantiate,
17355 # then the envvar interface is used.  Set only those that are not.
17356 # We use the long form for the default assignment because of an extremely
17357 # bizarre bug on SunOS 4.1.3.
17358 if $ac_need_defaults; then
17359   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17360   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17361   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17362 fi
17363
17364 # Have a temporary directory for convenience.  Make it in the build tree
17365 # simply because there is no reason against having it here, and in addition,
17366 # creating and moving files from /tmp can sometimes cause problems.
17367 # Hook for its removal unless debugging.
17368 # Note that there is a small window in which the directory will not be cleaned:
17369 # after its creation but before its name has been assigned to `$tmp'.
17370 $debug ||
17371 {
17372   tmp= ac_tmp=
17373   trap 'exit_status=$?
17374   : "${ac_tmp:=$tmp}"
17375   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17376 ' 0
17377   trap 'as_fn_exit 1' 1 2 13 15
17378 }
17379 # Create a (secure) tmp directory for tmp files.
17380
17381 {
17382   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17383   test -d "$tmp"
17384 }  ||
17385 {
17386   tmp=./conf$$-$RANDOM
17387   (umask 077 && mkdir "$tmp")
17388 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17389 ac_tmp=$tmp
17390
17391 # Set up the scripts for CONFIG_FILES section.
17392 # No need to generate them if there are no CONFIG_FILES.
17393 # This happens for instance with `./config.status config.h'.
17394 if test -n "$CONFIG_FILES"; then
17395
17396
17397 ac_cr=`echo X | tr X '\015'`
17398 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17399 # But we know of no other shell where ac_cr would be empty at this
17400 # point, so we can use a bashism as a fallback.
17401 if test "x$ac_cr" = x; then
17402   eval ac_cr=\$\'\\r\'
17403 fi
17404 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17405 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17406   ac_cs_awk_cr='\\r'
17407 else
17408   ac_cs_awk_cr=$ac_cr
17409 fi
17410
17411 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17412 _ACEOF
17413
17414
17415 {
17416   echo "cat >conf$$subs.awk <<_ACEOF" &&
17417   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17418   echo "_ACEOF"
17419 } >conf$$subs.sh ||
17420   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17421 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17422 ac_delim='%!_!# '
17423 for ac_last_try in false false false false false :; do
17424   . ./conf$$subs.sh ||
17425     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17426
17427   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17428   if test $ac_delim_n = $ac_delim_num; then
17429     break
17430   elif $ac_last_try; then
17431     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17432   else
17433     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17434   fi
17435 done
17436 rm -f conf$$subs.sh
17437
17438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17439 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17440 _ACEOF
17441 sed -n '
17442 h
17443 s/^/S["/; s/!.*/"]=/
17444 p
17445 g
17446 s/^[^!]*!//
17447 :repl
17448 t repl
17449 s/'"$ac_delim"'$//
17450 t delim
17451 :nl
17452 h
17453 s/\(.\{148\}\)..*/\1/
17454 t more1
17455 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17456 p
17457 n
17458 b repl
17459 :more1
17460 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17461 p
17462 g
17463 s/.\{148\}//
17464 t nl
17465 :delim
17466 h
17467 s/\(.\{148\}\)..*/\1/
17468 t more2
17469 s/["\\]/\\&/g; s/^/"/; s/$/"/
17470 p
17471 b
17472 :more2
17473 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17474 p
17475 g
17476 s/.\{148\}//
17477 t delim
17478 ' <conf$$subs.awk | sed '
17479 /^[^""]/{
17480   N
17481   s/\n//
17482 }
17483 ' >>$CONFIG_STATUS || ac_write_fail=1
17484 rm -f conf$$subs.awk
17485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17486 _ACAWK
17487 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17488   for (key in S) S_is_set[key] = 1
17489   FS = "\a"
17490
17491 }
17492 {
17493   line = $ 0
17494   nfields = split(line, field, "@")
17495   substed = 0
17496   len = length(field[1])
17497   for (i = 2; i < nfields; i++) {
17498     key = field[i]
17499     keylen = length(key)
17500     if (S_is_set[key]) {
17501       value = S[key]
17502       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17503       len += length(value) + length(field[++i])
17504       substed = 1
17505     } else
17506       len += 1 + keylen
17507   }
17508
17509   print line
17510 }
17511
17512 _ACAWK
17513 _ACEOF
17514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17515 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17516   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17517 else
17518   cat
17519 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17520   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17521 _ACEOF
17522
17523 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17524 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17525 # trailing colons and then remove the whole line if VPATH becomes empty
17526 # (actually we leave an empty line to preserve line numbers).
17527 if test "x$srcdir" = x.; then
17528   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17529 h
17530 s///
17531 s/^/:/
17532 s/[      ]*$/:/
17533 s/:\$(srcdir):/:/g
17534 s/:\${srcdir}:/:/g
17535 s/:@srcdir@:/:/g
17536 s/^:*//
17537 s/:*$//
17538 x
17539 s/\(=[   ]*\).*/\1/
17540 G
17541 s/\n//
17542 s/^[^=]*=[       ]*$//
17543 }'
17544 fi
17545
17546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17547 fi # test -n "$CONFIG_FILES"
17548
17549 # Set up the scripts for CONFIG_HEADERS section.
17550 # No need to generate them if there are no CONFIG_HEADERS.
17551 # This happens for instance with `./config.status Makefile'.
17552 if test -n "$CONFIG_HEADERS"; then
17553 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17554 BEGIN {
17555 _ACEOF
17556
17557 # Transform confdefs.h into an awk script `defines.awk', embedded as
17558 # here-document in config.status, that substitutes the proper values into
17559 # config.h.in to produce config.h.
17560
17561 # Create a delimiter string that does not exist in confdefs.h, to ease
17562 # handling of long lines.
17563 ac_delim='%!_!# '
17564 for ac_last_try in false false :; do
17565   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17566   if test -z "$ac_tt"; then
17567     break
17568   elif $ac_last_try; then
17569     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17570   else
17571     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17572   fi
17573 done
17574
17575 # For the awk script, D is an array of macro values keyed by name,
17576 # likewise P contains macro parameters if any.  Preserve backslash
17577 # newline sequences.
17578
17579 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17580 sed -n '
17581 s/.\{148\}/&'"$ac_delim"'/g
17582 t rset
17583 :rset
17584 s/^[     ]*#[    ]*define[       ][      ]*/ /
17585 t def
17586 d
17587 :def
17588 s/\\$//
17589 t bsnl
17590 s/["\\]/\\&/g
17591 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17592 D["\1"]=" \3"/p
17593 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17594 d
17595 :bsnl
17596 s/["\\]/\\&/g
17597 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17598 D["\1"]=" \3\\\\\\n"\\/p
17599 t cont
17600 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17601 t cont
17602 d
17603 :cont
17604 n
17605 s/.\{148\}/&'"$ac_delim"'/g
17606 t clear
17607 :clear
17608 s/\\$//
17609 t bsnlc
17610 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17611 d
17612 :bsnlc
17613 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17614 b cont
17615 ' <confdefs.h | sed '
17616 s/'"$ac_delim"'/"\\\
17617 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17618
17619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17620   for (key in D) D_is_set[key] = 1
17621   FS = "\a"
17622 }
17623 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17624   line = \$ 0
17625   split(line, arg, " ")
17626   if (arg[1] == "#") {
17627     defundef = arg[2]
17628     mac1 = arg[3]
17629   } else {
17630     defundef = substr(arg[1], 2)
17631     mac1 = arg[2]
17632   }
17633   split(mac1, mac2, "(") #)
17634   macro = mac2[1]
17635   prefix = substr(line, 1, index(line, defundef) - 1)
17636   if (D_is_set[macro]) {
17637     # Preserve the white space surrounding the "#".
17638     print prefix "define", macro P[macro] D[macro]
17639     next
17640   } else {
17641     # Replace #undef with comments.  This is necessary, for example,
17642     # in the case of _POSIX_SOURCE, which is predefined and required
17643     # on some systems where configure will not decide to define it.
17644     if (defundef == "undef") {
17645       print "/*", prefix defundef, macro, "*/"
17646       next
17647     }
17648   }
17649 }
17650 { print }
17651 _ACAWK
17652 _ACEOF
17653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17654   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17655 fi # test -n "$CONFIG_HEADERS"
17656
17657
17658 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17659 shift
17660 for ac_tag
17661 do
17662   case $ac_tag in
17663   :[FHLC]) ac_mode=$ac_tag; continue;;
17664   esac
17665   case $ac_mode$ac_tag in
17666   :[FHL]*:*);;
17667   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17668   :[FH]-) ac_tag=-:-;;
17669   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17670   esac
17671   ac_save_IFS=$IFS
17672   IFS=:
17673   set x $ac_tag
17674   IFS=$ac_save_IFS
17675   shift
17676   ac_file=$1
17677   shift
17678
17679   case $ac_mode in
17680   :L) ac_source=$1;;
17681   :[FH])
17682     ac_file_inputs=
17683     for ac_f
17684     do
17685       case $ac_f in
17686       -) ac_f="$ac_tmp/stdin";;
17687       *) # Look for the file first in the build tree, then in the source tree
17688          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17689          # because $ac_f cannot contain `:'.
17690          test -f "$ac_f" ||
17691            case $ac_f in
17692            [\\/$]*) false;;
17693            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17694            esac ||
17695            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17696       esac
17697       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17698       as_fn_append ac_file_inputs " '$ac_f'"
17699     done
17700
17701     # Let's still pretend it is `configure' which instantiates (i.e., don't
17702     # use $as_me), people would be surprised to read:
17703     #    /* config.h.  Generated by config.status.  */
17704     configure_input='Generated from '`
17705           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17706         `' by configure.'
17707     if test x"$ac_file" != x-; then
17708       configure_input="$ac_file.  $configure_input"
17709       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17710 $as_echo "$as_me: creating $ac_file" >&6;}
17711     fi
17712     # Neutralize special characters interpreted by sed in replacement strings.
17713     case $configure_input in #(
17714     *\&* | *\|* | *\\* )
17715        ac_sed_conf_input=`$as_echo "$configure_input" |
17716        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17717     *) ac_sed_conf_input=$configure_input;;
17718     esac
17719
17720     case $ac_tag in
17721     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17722       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17723     esac
17724     ;;
17725   esac
17726
17727   ac_dir=`$as_dirname -- "$ac_file" ||
17728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17729          X"$ac_file" : 'X\(//\)[^/]' \| \
17730          X"$ac_file" : 'X\(//\)$' \| \
17731          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17732 $as_echo X"$ac_file" |
17733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17734             s//\1/
17735             q
17736           }
17737           /^X\(\/\/\)[^/].*/{
17738             s//\1/
17739             q
17740           }
17741           /^X\(\/\/\)$/{
17742             s//\1/
17743             q
17744           }
17745           /^X\(\/\).*/{
17746             s//\1/
17747             q
17748           }
17749           s/.*/./; q'`
17750   as_dir="$ac_dir"; as_fn_mkdir_p
17751   ac_builddir=.
17752
17753 case "$ac_dir" in
17754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17755 *)
17756   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17757   # A ".." for each directory in $ac_dir_suffix.
17758   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17759   case $ac_top_builddir_sub in
17760   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17761   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17762   esac ;;
17763 esac
17764 ac_abs_top_builddir=$ac_pwd
17765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17766 # for backward compatibility:
17767 ac_top_builddir=$ac_top_build_prefix
17768
17769 case $srcdir in
17770   .)  # We are building in place.
17771     ac_srcdir=.
17772     ac_top_srcdir=$ac_top_builddir_sub
17773     ac_abs_top_srcdir=$ac_pwd ;;
17774   [\\/]* | ?:[\\/]* )  # Absolute name.
17775     ac_srcdir=$srcdir$ac_dir_suffix;
17776     ac_top_srcdir=$srcdir
17777     ac_abs_top_srcdir=$srcdir ;;
17778   *) # Relative name.
17779     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17780     ac_top_srcdir=$ac_top_build_prefix$srcdir
17781     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17782 esac
17783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17784
17785
17786   case $ac_mode in
17787   :F)
17788   #
17789   # CONFIG_FILE
17790   #
17791
17792   case $INSTALL in
17793   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17794   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17795   esac
17796   ac_MKDIR_P=$MKDIR_P
17797   case $MKDIR_P in
17798   [\\/$]* | ?:[\\/]* ) ;;
17799   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17800   esac
17801 _ACEOF
17802
17803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17804 # If the template does not know about datarootdir, expand it.
17805 # FIXME: This hack should be removed a few years after 2.60.
17806 ac_datarootdir_hack=; ac_datarootdir_seen=
17807 ac_sed_dataroot='
17808 /datarootdir/ {
17809   p
17810   q
17811 }
17812 /@datadir@/p
17813 /@docdir@/p
17814 /@infodir@/p
17815 /@localedir@/p
17816 /@mandir@/p'
17817 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17818 *datarootdir*) ac_datarootdir_seen=yes;;
17819 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17820   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17821 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17822 _ACEOF
17823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17824   ac_datarootdir_hack='
17825   s&@datadir@&$datadir&g
17826   s&@docdir@&$docdir&g
17827   s&@infodir@&$infodir&g
17828   s&@localedir@&$localedir&g
17829   s&@mandir@&$mandir&g
17830   s&\\\${datarootdir}&$datarootdir&g' ;;
17831 esac
17832 _ACEOF
17833
17834 # Neutralize VPATH when `$srcdir' = `.'.
17835 # Shell code in configure.ac might set extrasub.
17836 # FIXME: do we really want to maintain this feature?
17837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17838 ac_sed_extra="$ac_vpsub
17839 $extrasub
17840 _ACEOF
17841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17842 :t
17843 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17844 s|@configure_input@|$ac_sed_conf_input|;t t
17845 s&@top_builddir@&$ac_top_builddir_sub&;t t
17846 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17847 s&@srcdir@&$ac_srcdir&;t t
17848 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17849 s&@top_srcdir@&$ac_top_srcdir&;t t
17850 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17851 s&@builddir@&$ac_builddir&;t t
17852 s&@abs_builddir@&$ac_abs_builddir&;t t
17853 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17854 s&@INSTALL@&$ac_INSTALL&;t t
17855 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17856 $ac_datarootdir_hack
17857 "
17858 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17859   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17860
17861 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17862   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17863   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17864       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17865   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17866 which seems to be undefined.  Please make sure it is defined" >&5
17867 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17868 which seems to be undefined.  Please make sure it is defined" >&2;}
17869
17870   rm -f "$ac_tmp/stdin"
17871   case $ac_file in
17872   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17873   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17874   esac \
17875   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17876  ;;
17877   :H)
17878   #
17879   # CONFIG_HEADER
17880   #
17881   if test x"$ac_file" != x-; then
17882     {
17883       $as_echo "/* $configure_input  */" \
17884       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17885     } >"$ac_tmp/config.h" \
17886       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17887     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17888       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17889 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17890     else
17891       rm -f "$ac_file"
17892       mv "$ac_tmp/config.h" "$ac_file" \
17893         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17894     fi
17895   else
17896     $as_echo "/* $configure_input  */" \
17897       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17898       || as_fn_error $? "could not create -" "$LINENO" 5
17899   fi
17900 # Compute "$ac_file"'s index in $config_headers.
17901 _am_arg="$ac_file"
17902 _am_stamp_count=1
17903 for _am_header in $config_headers :; do
17904   case $_am_header in
17905     $_am_arg | $_am_arg:* )
17906       break ;;
17907     * )
17908       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17909   esac
17910 done
17911 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17912 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17913          X"$_am_arg" : 'X\(//\)[^/]' \| \
17914          X"$_am_arg" : 'X\(//\)$' \| \
17915          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17916 $as_echo X"$_am_arg" |
17917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17918             s//\1/
17919             q
17920           }
17921           /^X\(\/\/\)[^/].*/{
17922             s//\1/
17923             q
17924           }
17925           /^X\(\/\/\)$/{
17926             s//\1/
17927             q
17928           }
17929           /^X\(\/\).*/{
17930             s//\1/
17931             q
17932           }
17933           s/.*/./; q'`/stamp-h$_am_stamp_count
17934  ;;
17935
17936   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17937 $as_echo "$as_me: executing $ac_file commands" >&6;}
17938  ;;
17939   esac
17940
17941
17942   case $ac_file$ac_mode in
17943     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17944   # Older Autoconf quotes --file arguments for eval, but not when files
17945   # are listed without --file.  Let's play safe and only enable the eval
17946   # if we detect the quoting.
17947   case $CONFIG_FILES in
17948   *\'*) eval set x "$CONFIG_FILES" ;;
17949   *)   set x $CONFIG_FILES ;;
17950   esac
17951   shift
17952   for mf
17953   do
17954     # Strip MF so we end up with the name of the file.
17955     mf=`echo "$mf" | sed -e 's/:.*$//'`
17956     # Check whether this is an Automake generated Makefile or not.
17957     # We used to match only the files named 'Makefile.in', but
17958     # some people rename them; so instead we look at the file content.
17959     # Grep'ing the first line is not enough: some people post-process
17960     # each Makefile.in and add a new line on top of each file to say so.
17961     # Grep'ing the whole file is not good either: AIX grep has a line
17962     # limit of 2048, but all sed's we know have understand at least 4000.
17963     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17964       dirpart=`$as_dirname -- "$mf" ||
17965 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17966          X"$mf" : 'X\(//\)[^/]' \| \
17967          X"$mf" : 'X\(//\)$' \| \
17968          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17969 $as_echo X"$mf" |
17970     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17971             s//\1/
17972             q
17973           }
17974           /^X\(\/\/\)[^/].*/{
17975             s//\1/
17976             q
17977           }
17978           /^X\(\/\/\)$/{
17979             s//\1/
17980             q
17981           }
17982           /^X\(\/\).*/{
17983             s//\1/
17984             q
17985           }
17986           s/.*/./; q'`
17987     else
17988       continue
17989     fi
17990     # Extract the definition of DEPDIR, am__include, and am__quote
17991     # from the Makefile without running 'make'.
17992     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17993     test -z "$DEPDIR" && continue
17994     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17995     test -z "$am__include" && continue
17996     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17997     # Find all dependency output files, they are included files with
17998     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17999     # simplest approach to changing $(DEPDIR) to its actual value in the
18000     # expansion.
18001     for file in `sed -n "
18002       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18003          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18004       # Make sure the directory exists.
18005       test -f "$dirpart/$file" && continue
18006       fdir=`$as_dirname -- "$file" ||
18007 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18008          X"$file" : 'X\(//\)[^/]' \| \
18009          X"$file" : 'X\(//\)$' \| \
18010          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18011 $as_echo X"$file" |
18012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18013             s//\1/
18014             q
18015           }
18016           /^X\(\/\/\)[^/].*/{
18017             s//\1/
18018             q
18019           }
18020           /^X\(\/\/\)$/{
18021             s//\1/
18022             q
18023           }
18024           /^X\(\/\).*/{
18025             s//\1/
18026             q
18027           }
18028           s/.*/./; q'`
18029       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18030       # echo "creating $dirpart/$file"
18031       echo '# dummy' > "$dirpart/$file"
18032     done
18033   done
18034 }
18035  ;;
18036     "libtool":C)
18037
18038     # See if we are running on zsh, and set the options which allow our
18039     # commands through without removal of \ escapes.
18040     if test -n "${ZSH_VERSION+set}" ; then
18041       setopt NO_GLOB_SUBST
18042     fi
18043
18044     cfgfile="${ofile}T"
18045     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18046     $RM "$cfgfile"
18047
18048     cat <<_LT_EOF >> "$cfgfile"
18049 #! $SHELL
18050
18051 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18052 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18053 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18054 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18055 #
18056 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18057 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18058 #                 Foundation, Inc.
18059 #   Written by Gordon Matzigkeit, 1996
18060 #
18061 #   This file is part of GNU Libtool.
18062 #
18063 # GNU Libtool is free software; you can redistribute it and/or
18064 # modify it under the terms of the GNU General Public License as
18065 # published by the Free Software Foundation; either version 2 of
18066 # the License, or (at your option) any later version.
18067 #
18068 # As a special exception to the GNU General Public License,
18069 # if you distribute this file as part of a program or library that
18070 # is built using GNU Libtool, you may include this file under the
18071 # same distribution terms that you use for the rest of that program.
18072 #
18073 # GNU Libtool is distributed in the hope that it will be useful,
18074 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18075 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18076 # GNU General Public License for more details.
18077 #
18078 # You should have received a copy of the GNU General Public License
18079 # along with GNU Libtool; see the file COPYING.  If not, a copy
18080 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18081 # obtained by writing to the Free Software Foundation, Inc.,
18082 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18083
18084
18085 # The names of the tagged configurations supported by this script.
18086 available_tags="CXX "
18087
18088 # ### BEGIN LIBTOOL CONFIG
18089
18090 # Whether or not to build static libraries.
18091 build_old_libs=$enable_static
18092
18093 # Which release of libtool.m4 was used?
18094 macro_version=$macro_version
18095 macro_revision=$macro_revision
18096
18097 # Whether or not to build shared libraries.
18098 build_libtool_libs=$enable_shared
18099
18100 # What type of objects to build.
18101 pic_mode=$pic_mode
18102
18103 # Whether or not to optimize for fast installation.
18104 fast_install=$enable_fast_install
18105
18106 # Shell to use when invoking shell scripts.
18107 SHELL=$lt_SHELL
18108
18109 # An echo program that protects backslashes.
18110 ECHO=$lt_ECHO
18111
18112 # The PATH separator for the build system.
18113 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18114
18115 # The host system.
18116 host_alias=$host_alias
18117 host=$host
18118 host_os=$host_os
18119
18120 # The build system.
18121 build_alias=$build_alias
18122 build=$build
18123 build_os=$build_os
18124
18125 # A sed program that does not truncate output.
18126 SED=$lt_SED
18127
18128 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18129 Xsed="\$SED -e 1s/^X//"
18130
18131 # A grep program that handles long lines.
18132 GREP=$lt_GREP
18133
18134 # An ERE matcher.
18135 EGREP=$lt_EGREP
18136
18137 # A literal string matcher.
18138 FGREP=$lt_FGREP
18139
18140 # A BSD- or MS-compatible name lister.
18141 NM=$lt_NM
18142
18143 # Whether we need soft or hard links.
18144 LN_S=$lt_LN_S
18145
18146 # What is the maximum length of a command?
18147 max_cmd_len=$max_cmd_len
18148
18149 # Object file suffix (normally "o").
18150 objext=$ac_objext
18151
18152 # Executable file suffix (normally "").
18153 exeext=$exeext
18154
18155 # whether the shell understands "unset".
18156 lt_unset=$lt_unset
18157
18158 # turn spaces into newlines.
18159 SP2NL=$lt_lt_SP2NL
18160
18161 # turn newlines into spaces.
18162 NL2SP=$lt_lt_NL2SP
18163
18164 # convert \$build file names to \$host format.
18165 to_host_file_cmd=$lt_cv_to_host_file_cmd
18166
18167 # convert \$build files to toolchain format.
18168 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18169
18170 # An object symbol dumper.
18171 OBJDUMP=$lt_OBJDUMP
18172
18173 # Method to check whether dependent libraries are shared objects.
18174 deplibs_check_method=$lt_deplibs_check_method
18175
18176 # Command to use when deplibs_check_method = "file_magic".
18177 file_magic_cmd=$lt_file_magic_cmd
18178
18179 # How to find potential files when deplibs_check_method = "file_magic".
18180 file_magic_glob=$lt_file_magic_glob
18181
18182 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18183 want_nocaseglob=$lt_want_nocaseglob
18184
18185 # DLL creation program.
18186 DLLTOOL=$lt_DLLTOOL
18187
18188 # Command to associate shared and link libraries.
18189 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18190
18191 # The archiver.
18192 AR=$lt_AR
18193
18194 # Flags to create an archive.
18195 AR_FLAGS=$lt_AR_FLAGS
18196
18197 # How to feed a file listing to the archiver.
18198 archiver_list_spec=$lt_archiver_list_spec
18199
18200 # A symbol stripping program.
18201 STRIP=$lt_STRIP
18202
18203 # Commands used to install an old-style archive.
18204 RANLIB=$lt_RANLIB
18205 old_postinstall_cmds=$lt_old_postinstall_cmds
18206 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18207
18208 # Whether to use a lock for old archive extraction.
18209 lock_old_archive_extraction=$lock_old_archive_extraction
18210
18211 # A C compiler.
18212 LTCC=$lt_CC
18213
18214 # LTCC compiler flags.
18215 LTCFLAGS=$lt_CFLAGS
18216
18217 # Take the output of nm and produce a listing of raw symbols and C names.
18218 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18219
18220 # Transform the output of nm in a proper C declaration.
18221 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18222
18223 # Transform the output of nm in a C name address pair.
18224 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18225
18226 # Transform the output of nm in a C name address pair when lib prefix is needed.
18227 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18228
18229 # Specify filename containing input files for \$NM.
18230 nm_file_list_spec=$lt_nm_file_list_spec
18231
18232 # The root where to search for dependent libraries,and in which our libraries should be installed.
18233 lt_sysroot=$lt_sysroot
18234
18235 # The name of the directory that contains temporary libtool files.
18236 objdir=$objdir
18237
18238 # Used to examine libraries when file_magic_cmd begins with "file".
18239 MAGIC_CMD=$MAGIC_CMD
18240
18241 # Must we lock files when doing compilation?
18242 need_locks=$lt_need_locks
18243
18244 # Manifest tool.
18245 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18246
18247 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18248 DSYMUTIL=$lt_DSYMUTIL
18249
18250 # Tool to change global to local symbols on Mac OS X.
18251 NMEDIT=$lt_NMEDIT
18252
18253 # Tool to manipulate fat objects and archives on Mac OS X.
18254 LIPO=$lt_LIPO
18255
18256 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18257 OTOOL=$lt_OTOOL
18258
18259 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18260 OTOOL64=$lt_OTOOL64
18261
18262 # Old archive suffix (normally "a").
18263 libext=$libext
18264
18265 # Shared library suffix (normally ".so").
18266 shrext_cmds=$lt_shrext_cmds
18267
18268 # The commands to extract the exported symbol list from a shared archive.
18269 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18270
18271 # Variables whose values should be saved in libtool wrapper scripts and
18272 # restored at link time.
18273 variables_saved_for_relink=$lt_variables_saved_for_relink
18274
18275 # Do we need the "lib" prefix for modules?
18276 need_lib_prefix=$need_lib_prefix
18277
18278 # Do we need a version for libraries?
18279 need_version=$need_version
18280
18281 # Library versioning type.
18282 version_type=$version_type
18283
18284 # Shared library runtime path variable.
18285 runpath_var=$runpath_var
18286
18287 # Shared library path variable.
18288 shlibpath_var=$shlibpath_var
18289
18290 # Is shlibpath searched before the hard-coded library search path?
18291 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18292
18293 # Format of library name prefix.
18294 libname_spec=$lt_libname_spec
18295
18296 # List of archive names.  First name is the real one, the rest are links.
18297 # The last name is the one that the linker finds with -lNAME
18298 library_names_spec=$lt_library_names_spec
18299
18300 # The coded name of the library, if different from the real name.
18301 soname_spec=$lt_soname_spec
18302
18303 # Permission mode override for installation of shared libraries.
18304 install_override_mode=$lt_install_override_mode
18305
18306 # Command to use after installation of a shared archive.
18307 postinstall_cmds=$lt_postinstall_cmds
18308
18309 # Command to use after uninstallation of a shared archive.
18310 postuninstall_cmds=$lt_postuninstall_cmds
18311
18312 # Commands used to finish a libtool library installation in a directory.
18313 finish_cmds=$lt_finish_cmds
18314
18315 # As "finish_cmds", except a single script fragment to be evaled but
18316 # not shown.
18317 finish_eval=$lt_finish_eval
18318
18319 # Whether we should hardcode library paths into libraries.
18320 hardcode_into_libs=$hardcode_into_libs
18321
18322 # Compile-time system search path for libraries.
18323 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18324
18325 # Run-time system search path for libraries.
18326 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18327
18328 # Whether dlopen is supported.
18329 dlopen_support=$enable_dlopen
18330
18331 # Whether dlopen of programs is supported.
18332 dlopen_self=$enable_dlopen_self
18333
18334 # Whether dlopen of statically linked programs is supported.
18335 dlopen_self_static=$enable_dlopen_self_static
18336
18337 # Commands to strip libraries.
18338 old_striplib=$lt_old_striplib
18339 striplib=$lt_striplib
18340
18341
18342 # The linker used to build libraries.
18343 LD=$lt_LD
18344
18345 # How to create reloadable object files.
18346 reload_flag=$lt_reload_flag
18347 reload_cmds=$lt_reload_cmds
18348
18349 # Commands used to build an old-style archive.
18350 old_archive_cmds=$lt_old_archive_cmds
18351
18352 # A language specific compiler.
18353 CC=$lt_compiler
18354
18355 # Is the compiler the GNU compiler?
18356 with_gcc=$GCC
18357
18358 # Compiler flag to turn off builtin functions.
18359 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18360
18361 # Additional compiler flags for building library objects.
18362 pic_flag=$lt_lt_prog_compiler_pic
18363
18364 # How to pass a linker flag through the compiler.
18365 wl=$lt_lt_prog_compiler_wl
18366
18367 # Compiler flag to prevent dynamic linking.
18368 link_static_flag=$lt_lt_prog_compiler_static
18369
18370 # Does compiler simultaneously support -c and -o options?
18371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18372
18373 # Whether or not to add -lc for building shared libraries.
18374 build_libtool_need_lc=$archive_cmds_need_lc
18375
18376 # Whether or not to disallow shared libs when runtime libs are static.
18377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18378
18379 # Compiler flag to allow reflexive dlopens.
18380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18381
18382 # Compiler flag to generate shared objects directly from archives.
18383 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18384
18385 # Whether the compiler copes with passing no objects directly.
18386 compiler_needs_object=$lt_compiler_needs_object
18387
18388 # Create an old-style archive from a shared archive.
18389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18390
18391 # Create a temporary old-style archive to link instead of a shared archive.
18392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18393
18394 # Commands used to build a shared archive.
18395 archive_cmds=$lt_archive_cmds
18396 archive_expsym_cmds=$lt_archive_expsym_cmds
18397
18398 # Commands used to build a loadable module if different from building
18399 # a shared archive.
18400 module_cmds=$lt_module_cmds
18401 module_expsym_cmds=$lt_module_expsym_cmds
18402
18403 # Whether we are building with GNU ld or not.
18404 with_gnu_ld=$lt_with_gnu_ld
18405
18406 # Flag that allows shared libraries with undefined symbols to be built.
18407 allow_undefined_flag=$lt_allow_undefined_flag
18408
18409 # Flag that enforces no undefined symbols.
18410 no_undefined_flag=$lt_no_undefined_flag
18411
18412 # Flag to hardcode \$libdir into a binary during linking.
18413 # This must work even if \$libdir does not exist
18414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18415
18416 # Whether we need a single "-rpath" flag with a separated argument.
18417 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18418
18419 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18420 # DIR into the resulting binary.
18421 hardcode_direct=$hardcode_direct
18422
18423 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18424 # DIR into the resulting binary and the resulting library dependency is
18425 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18426 # library is relocated.
18427 hardcode_direct_absolute=$hardcode_direct_absolute
18428
18429 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18430 # into the resulting binary.
18431 hardcode_minus_L=$hardcode_minus_L
18432
18433 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18434 # into the resulting binary.
18435 hardcode_shlibpath_var=$hardcode_shlibpath_var
18436
18437 # Set to "yes" if building a shared library automatically hardcodes DIR
18438 # into the library and all subsequent libraries and executables linked
18439 # against it.
18440 hardcode_automatic=$hardcode_automatic
18441
18442 # Set to yes if linker adds runtime paths of dependent libraries
18443 # to runtime path list.
18444 inherit_rpath=$inherit_rpath
18445
18446 # Whether libtool must link a program against all its dependency libraries.
18447 link_all_deplibs=$link_all_deplibs
18448
18449 # Set to "yes" if exported symbols are required.
18450 always_export_symbols=$always_export_symbols
18451
18452 # The commands to list exported symbols.
18453 export_symbols_cmds=$lt_export_symbols_cmds
18454
18455 # Symbols that should not be listed in the preloaded symbols.
18456 exclude_expsyms=$lt_exclude_expsyms
18457
18458 # Symbols that must always be exported.
18459 include_expsyms=$lt_include_expsyms
18460
18461 # Commands necessary for linking programs (against libraries) with templates.
18462 prelink_cmds=$lt_prelink_cmds
18463
18464 # Commands necessary for finishing linking programs.
18465 postlink_cmds=$lt_postlink_cmds
18466
18467 # Specify filename containing input files.
18468 file_list_spec=$lt_file_list_spec
18469
18470 # How to hardcode a shared library path into an executable.
18471 hardcode_action=$hardcode_action
18472
18473 # The directories searched by this compiler when creating a shared library.
18474 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18475
18476 # Dependencies to place before and after the objects being linked to
18477 # create a shared library.
18478 predep_objects=$lt_predep_objects
18479 postdep_objects=$lt_postdep_objects
18480 predeps=$lt_predeps
18481 postdeps=$lt_postdeps
18482
18483 # The library search path used internally by the compiler when linking
18484 # a shared library.
18485 compiler_lib_search_path=$lt_compiler_lib_search_path
18486
18487 # ### END LIBTOOL CONFIG
18488
18489 _LT_EOF
18490
18491   case $host_os in
18492   aix3*)
18493     cat <<\_LT_EOF >> "$cfgfile"
18494 # AIX sometimes has problems with the GCC collect2 program.  For some
18495 # reason, if we set the COLLECT_NAMES environment variable, the problems
18496 # vanish in a puff of smoke.
18497 if test "X${COLLECT_NAMES+set}" != Xset; then
18498   COLLECT_NAMES=
18499   export COLLECT_NAMES
18500 fi
18501 _LT_EOF
18502     ;;
18503   esac
18504
18505
18506 ltmain="$ac_aux_dir/ltmain.sh"
18507
18508
18509   # We use sed instead of cat because bash on DJGPP gets confused if
18510   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18511   # text mode, it properly converts lines to CR/LF.  This bash problem
18512   # is reportedly fixed, but why not run on old versions too?
18513   sed '$q' "$ltmain" >> "$cfgfile" \
18514      || (rm -f "$cfgfile"; exit 1)
18515
18516   if test x"$xsi_shell" = xyes; then
18517   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18518 func_dirname ()\
18519 {\
18520 \    case ${1} in\
18521 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18522 \      *  ) func_dirname_result="${3}" ;;\
18523 \    esac\
18524 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18525   && mv -f "$cfgfile.tmp" "$cfgfile" \
18526     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18527 test 0 -eq $? || _lt_function_replace_fail=:
18528
18529
18530   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18531 func_basename ()\
18532 {\
18533 \    func_basename_result="${1##*/}"\
18534 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18535   && mv -f "$cfgfile.tmp" "$cfgfile" \
18536     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18537 test 0 -eq $? || _lt_function_replace_fail=:
18538
18539
18540   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18541 func_dirname_and_basename ()\
18542 {\
18543 \    case ${1} in\
18544 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18545 \      *  ) func_dirname_result="${3}" ;;\
18546 \    esac\
18547 \    func_basename_result="${1##*/}"\
18548 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18549   && mv -f "$cfgfile.tmp" "$cfgfile" \
18550     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18551 test 0 -eq $? || _lt_function_replace_fail=:
18552
18553
18554   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18555 func_stripname ()\
18556 {\
18557 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18558 \    # positional parameters, so assign one to ordinary parameter first.\
18559 \    func_stripname_result=${3}\
18560 \    func_stripname_result=${func_stripname_result#"${1}"}\
18561 \    func_stripname_result=${func_stripname_result%"${2}"}\
18562 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18563   && mv -f "$cfgfile.tmp" "$cfgfile" \
18564     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18565 test 0 -eq $? || _lt_function_replace_fail=:
18566
18567
18568   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18569 func_split_long_opt ()\
18570 {\
18571 \    func_split_long_opt_name=${1%%=*}\
18572 \    func_split_long_opt_arg=${1#*=}\
18573 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18574   && mv -f "$cfgfile.tmp" "$cfgfile" \
18575     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18576 test 0 -eq $? || _lt_function_replace_fail=:
18577
18578
18579   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18580 func_split_short_opt ()\
18581 {\
18582 \    func_split_short_opt_arg=${1#??}\
18583 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18584 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18585   && mv -f "$cfgfile.tmp" "$cfgfile" \
18586     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18587 test 0 -eq $? || _lt_function_replace_fail=:
18588
18589
18590   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18591 func_lo2o ()\
18592 {\
18593 \    case ${1} in\
18594 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18595 \      *)    func_lo2o_result=${1} ;;\
18596 \    esac\
18597 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18598   && mv -f "$cfgfile.tmp" "$cfgfile" \
18599     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18600 test 0 -eq $? || _lt_function_replace_fail=:
18601
18602
18603   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18604 func_xform ()\
18605 {\
18606     func_xform_result=${1%.*}.lo\
18607 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18608   && mv -f "$cfgfile.tmp" "$cfgfile" \
18609     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18610 test 0 -eq $? || _lt_function_replace_fail=:
18611
18612
18613   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18614 func_arith ()\
18615 {\
18616     func_arith_result=$(( $* ))\
18617 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18618   && mv -f "$cfgfile.tmp" "$cfgfile" \
18619     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18620 test 0 -eq $? || _lt_function_replace_fail=:
18621
18622
18623   sed -e '/^func_len ()$/,/^} # func_len /c\
18624 func_len ()\
18625 {\
18626     func_len_result=${#1}\
18627 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18628   && mv -f "$cfgfile.tmp" "$cfgfile" \
18629     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18630 test 0 -eq $? || _lt_function_replace_fail=:
18631
18632 fi
18633
18634 if test x"$lt_shell_append" = xyes; then
18635   sed -e '/^func_append ()$/,/^} # func_append /c\
18636 func_append ()\
18637 {\
18638     eval "${1}+=\\${2}"\
18639 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18640   && mv -f "$cfgfile.tmp" "$cfgfile" \
18641     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18642 test 0 -eq $? || _lt_function_replace_fail=:
18643
18644
18645   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18646 func_append_quoted ()\
18647 {\
18648 \    func_quote_for_eval "${2}"\
18649 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18650 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18651   && mv -f "$cfgfile.tmp" "$cfgfile" \
18652     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18653 test 0 -eq $? || _lt_function_replace_fail=:
18654
18655
18656   # Save a `func_append' function call where possible by direct use of '+='
18657   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18658     && mv -f "$cfgfile.tmp" "$cfgfile" \
18659       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18660   test 0 -eq $? || _lt_function_replace_fail=:
18661 else
18662   # Save a `func_append' function call even when '+=' is not available
18663   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18664     && mv -f "$cfgfile.tmp" "$cfgfile" \
18665       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18666   test 0 -eq $? || _lt_function_replace_fail=:
18667 fi
18668
18669 if test x"$_lt_function_replace_fail" = x":"; then
18670   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18671 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18672 fi
18673
18674
18675    mv -f "$cfgfile" "$ofile" ||
18676     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18677   chmod +x "$ofile"
18678
18679
18680     cat <<_LT_EOF >> "$ofile"
18681
18682 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18683
18684 # The linker used to build libraries.
18685 LD=$lt_LD_CXX
18686
18687 # How to create reloadable object files.
18688 reload_flag=$lt_reload_flag_CXX
18689 reload_cmds=$lt_reload_cmds_CXX
18690
18691 # Commands used to build an old-style archive.
18692 old_archive_cmds=$lt_old_archive_cmds_CXX
18693
18694 # A language specific compiler.
18695 CC=$lt_compiler_CXX
18696
18697 # Is the compiler the GNU compiler?
18698 with_gcc=$GCC_CXX
18699
18700 # Compiler flag to turn off builtin functions.
18701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18702
18703 # Additional compiler flags for building library objects.
18704 pic_flag=$lt_lt_prog_compiler_pic_CXX
18705
18706 # How to pass a linker flag through the compiler.
18707 wl=$lt_lt_prog_compiler_wl_CXX
18708
18709 # Compiler flag to prevent dynamic linking.
18710 link_static_flag=$lt_lt_prog_compiler_static_CXX
18711
18712 # Does compiler simultaneously support -c and -o options?
18713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18714
18715 # Whether or not to add -lc for building shared libraries.
18716 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18717
18718 # Whether or not to disallow shared libs when runtime libs are static.
18719 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18720
18721 # Compiler flag to allow reflexive dlopens.
18722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18723
18724 # Compiler flag to generate shared objects directly from archives.
18725 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18726
18727 # Whether the compiler copes with passing no objects directly.
18728 compiler_needs_object=$lt_compiler_needs_object_CXX
18729
18730 # Create an old-style archive from a shared archive.
18731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18732
18733 # Create a temporary old-style archive to link instead of a shared archive.
18734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18735
18736 # Commands used to build a shared archive.
18737 archive_cmds=$lt_archive_cmds_CXX
18738 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18739
18740 # Commands used to build a loadable module if different from building
18741 # a shared archive.
18742 module_cmds=$lt_module_cmds_CXX
18743 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18744
18745 # Whether we are building with GNU ld or not.
18746 with_gnu_ld=$lt_with_gnu_ld_CXX
18747
18748 # Flag that allows shared libraries with undefined symbols to be built.
18749 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18750
18751 # Flag that enforces no undefined symbols.
18752 no_undefined_flag=$lt_no_undefined_flag_CXX
18753
18754 # Flag to hardcode \$libdir into a binary during linking.
18755 # This must work even if \$libdir does not exist
18756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18757
18758 # Whether we need a single "-rpath" flag with a separated argument.
18759 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18760
18761 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18762 # DIR into the resulting binary.
18763 hardcode_direct=$hardcode_direct_CXX
18764
18765 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18766 # DIR into the resulting binary and the resulting library dependency is
18767 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18768 # library is relocated.
18769 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18770
18771 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18772 # into the resulting binary.
18773 hardcode_minus_L=$hardcode_minus_L_CXX
18774
18775 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18776 # into the resulting binary.
18777 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18778
18779 # Set to "yes" if building a shared library automatically hardcodes DIR
18780 # into the library and all subsequent libraries and executables linked
18781 # against it.
18782 hardcode_automatic=$hardcode_automatic_CXX
18783
18784 # Set to yes if linker adds runtime paths of dependent libraries
18785 # to runtime path list.
18786 inherit_rpath=$inherit_rpath_CXX
18787
18788 # Whether libtool must link a program against all its dependency libraries.
18789 link_all_deplibs=$link_all_deplibs_CXX
18790
18791 # Set to "yes" if exported symbols are required.
18792 always_export_symbols=$always_export_symbols_CXX
18793
18794 # The commands to list exported symbols.
18795 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18796
18797 # Symbols that should not be listed in the preloaded symbols.
18798 exclude_expsyms=$lt_exclude_expsyms_CXX
18799
18800 # Symbols that must always be exported.
18801 include_expsyms=$lt_include_expsyms_CXX
18802
18803 # Commands necessary for linking programs (against libraries) with templates.
18804 prelink_cmds=$lt_prelink_cmds_CXX
18805
18806 # Commands necessary for finishing linking programs.
18807 postlink_cmds=$lt_postlink_cmds_CXX
18808
18809 # Specify filename containing input files.
18810 file_list_spec=$lt_file_list_spec_CXX
18811
18812 # How to hardcode a shared library path into an executable.
18813 hardcode_action=$hardcode_action_CXX
18814
18815 # The directories searched by this compiler when creating a shared library.
18816 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18817
18818 # Dependencies to place before and after the objects being linked to
18819 # create a shared library.
18820 predep_objects=$lt_predep_objects_CXX
18821 postdep_objects=$lt_postdep_objects_CXX
18822 predeps=$lt_predeps_CXX
18823 postdeps=$lt_postdeps_CXX
18824
18825 # The library search path used internally by the compiler when linking
18826 # a shared library.
18827 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18828
18829 # ### END LIBTOOL TAG CONFIG: CXX
18830 _LT_EOF
18831
18832  ;;
18833
18834   esac
18835 done # for ac_tag
18836
18837
18838 as_fn_exit 0
18839 _ACEOF
18840 ac_clean_files=$ac_clean_files_save
18841
18842 test $ac_write_fail = 0 ||
18843   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18844
18845
18846 # configure is writing to config.log, and then calls config.status.
18847 # config.status does its own redirection, appending to config.log.
18848 # Unfortunately, on DOS this fails, as config.log is still kept open
18849 # by configure, so config.status won't be able to write to it; its
18850 # output is simply discarded.  So we exec the FD to /dev/null,
18851 # effectively closing config.log, so it can be properly (re)opened and
18852 # appended to by config.status.  When coming back to configure, we
18853 # need to make the FD available again.
18854 if test "$no_create" != yes; then
18855   ac_cs_success=:
18856   ac_config_status_args=
18857   test "$silent" = yes &&
18858     ac_config_status_args="$ac_config_status_args --quiet"
18859   exec 5>/dev/null
18860   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18861   exec 5>>config.log
18862   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18863   # would make configure fail if this is the last instruction.
18864   $ac_cs_success || as_fn_exit 1
18865 fi
18866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18867   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18868 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18869 fi
18870