Imported Upstream version 1.7.8
[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.7.8.
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.7.8'
594 PACKAGE_STRING='OpenFst 1.7.8'
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_FSTS_FALSE
644 HAVE_FSTS_TRUE
645 HAVE_SCRIPT_FALSE
646 HAVE_SCRIPT_TRUE
647 HAVE_BIN_FALSE
648 HAVE_BIN_TRUE
649 HAVE_SPECIAL_FALSE
650 HAVE_SPECIAL_TRUE
651 PYTHON_EXTRA_LDFLAGS
652 PYTHON_EXTRA_LIBS
653 PYTHON_SITE_PKG
654 PYTHON_LIBS
655 PYTHON_CPPFLAGS
656 pkgpyexecdir
657 pyexecdir
658 pkgpythondir
659 pythondir
660 PYTHON_PLATFORM
661 PYTHON_EXEC_PREFIX
662 PYTHON_PREFIX
663 PYTHON_VERSION
664 PYTHON
665 HAVE_PYTHON_FALSE
666 HAVE_PYTHON_TRUE
667 HAVE_PDT_FALSE
668 HAVE_PDT_TRUE
669 HAVE_NGRAM_FALSE
670 HAVE_NGRAM_TRUE
671 HAVE_MPDT_FALSE
672 HAVE_MPDT_TRUE
673 HAVE_LOOKAHEAD_FALSE
674 HAVE_LOOKAHEAD_TRUE
675 HAVE_LINEAR_FALSE
676 HAVE_LINEAR_TRUE
677 HAVE_FAR_FALSE
678 HAVE_FAR_TRUE
679 HAVE_CONST_FALSE
680 HAVE_CONST_TRUE
681 HAVE_COMPRESS_FALSE
682 HAVE_COMPRESS_TRUE
683 HAVE_COMPACT_FALSE
684 HAVE_COMPACT_TRUE
685 CXXCPP
686 CPP
687 LT_SYS_LIBRARY_PATH
688 OTOOL64
689 OTOOL
690 LIPO
691 NMEDIT
692 DSYMUTIL
693 MANIFEST_TOOL
694 RANLIB
695 DLLTOOL
696 OBJDUMP
697 LN_S
698 NM
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 EGREP
704 GREP
705 SED
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 LIBTOOL
715 am__fastdepCXX_FALSE
716 am__fastdepCXX_TRUE
717 CXXDEPMODE
718 ac_ct_CXX
719 CXXFLAGS
720 CXX
721 am__fastdepCC_FALSE
722 am__fastdepCC_TRUE
723 CCDEPMODE
724 am__nodep
725 AMDEPBACKSLASH
726 AMDEP_FALSE
727 AMDEP_TRUE
728 am__include
729 DEPDIR
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 ac_ct_AR
738 AR
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 runstatedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL
805 am__quote'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_silent_rules
810 enable_dependency_tracking
811 enable_static
812 enable_shared
813 with_pic
814 enable_fast_install
815 with_aix_soname
816 with_gnu_ld
817 with_sysroot
818 enable_libtool_lock
819 enable_compact_fsts
820 enable_compress
821 enable_const_fsts
822 enable_far
823 enable_linear_fsts
824 enable_lookahead_fsts
825 enable_mpdt
826 enable_ngram_fsts
827 enable_pdt
828 enable_python
829 enable_special
830 enable_bin
831 enable_fsts
832 enable_grm
833 with_libfstdir
834 '
835       ac_precious_vars='build_alias
836 host_alias
837 target_alias
838 CC
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
843 CXX
844 CXXFLAGS
845 CCC
846 LT_SYS_LIBRARY_PATH
847 CPP
848 CXXCPP
849 PYTHON
850 PYTHON_VERSION'
851
852
853 # Initialize some variables set by options.
854 ac_init_help=
855 ac_init_version=false
856 ac_unrecognized_opts=
857 ac_unrecognized_sep=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
874
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 runstatedir='${localstatedir}/run'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir='${datarootdir}/info'
894 htmldir='${docdir}'
895 dvidir='${docdir}'
896 pdfdir='${docdir}'
897 psdir='${docdir}'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
901
902 ac_prev=
903 ac_dashdash=
904 for ac_option
905 do
906   # If the previous option needs an argument, assign it.
907   if test -n "$ac_prev"; then
908     eval $ac_prev=\$ac_option
909     ac_prev=
910     continue
911   fi
912
913   case $ac_option in
914   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915   *=)   ac_optarg= ;;
916   *)    ac_optarg=yes ;;
917   esac
918
919   # Accept the important Cygnus configure options, so we can diagnose typos.
920
921   case $ac_dashdash$ac_option in
922   --)
923     ac_dashdash=yes ;;
924
925   -bindir | --bindir | --bindi | --bind | --bin | --bi)
926     ac_prev=bindir ;;
927   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928     bindir=$ac_optarg ;;
929
930   -build | --build | --buil | --bui | --bu)
931     ac_prev=build_alias ;;
932   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933     build_alias=$ac_optarg ;;
934
935   -cache-file | --cache-file | --cache-fil | --cache-fi \
936   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937     ac_prev=cache_file ;;
938   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940     cache_file=$ac_optarg ;;
941
942   --config-cache | -C)
943     cache_file=config.cache ;;
944
945   -datadir | --datadir | --datadi | --datad)
946     ac_prev=datadir ;;
947   -datadir=* | --datadir=* | --datadi=* | --datad=*)
948     datadir=$ac_optarg ;;
949
950   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951   | --dataroo | --dataro | --datar)
952     ac_prev=datarootdir ;;
953   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955     datarootdir=$ac_optarg ;;
956
957   -disable-* | --disable-*)
958     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959     # Reject names that are not valid shell variable names.
960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961       as_fn_error $? "invalid feature name: $ac_useropt"
962     ac_useropt_orig=$ac_useropt
963     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964     case $ac_user_opts in
965       *"
966 "enable_$ac_useropt"
967 "*) ;;
968       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969          ac_unrecognized_sep=', ';;
970     esac
971     eval enable_$ac_useropt=no ;;
972
973   -docdir | --docdir | --docdi | --doc | --do)
974     ac_prev=docdir ;;
975   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976     docdir=$ac_optarg ;;
977
978   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979     ac_prev=dvidir ;;
980   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981     dvidir=$ac_optarg ;;
982
983   -enable-* | --enable-*)
984     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985     # Reject names that are not valid shell variable names.
986     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987       as_fn_error $? "invalid feature name: $ac_useropt"
988     ac_useropt_orig=$ac_useropt
989     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990     case $ac_user_opts in
991       *"
992 "enable_$ac_useropt"
993 "*) ;;
994       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995          ac_unrecognized_sep=', ';;
996     esac
997     eval enable_$ac_useropt=\$ac_optarg ;;
998
999   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001   | --exec | --exe | --ex)
1002     ac_prev=exec_prefix ;;
1003   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005   | --exec=* | --exe=* | --ex=*)
1006     exec_prefix=$ac_optarg ;;
1007
1008   -gas | --gas | --ga | --g)
1009     # Obsolete; use --with-gas.
1010     with_gas=yes ;;
1011
1012   -help | --help | --hel | --he | -h)
1013     ac_init_help=long ;;
1014   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015     ac_init_help=recursive ;;
1016   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017     ac_init_help=short ;;
1018
1019   -host | --host | --hos | --ho)
1020     ac_prev=host_alias ;;
1021   -host=* | --host=* | --hos=* | --ho=*)
1022     host_alias=$ac_optarg ;;
1023
1024   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025     ac_prev=htmldir ;;
1026   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027   | --ht=*)
1028     htmldir=$ac_optarg ;;
1029
1030   -includedir | --includedir | --includedi | --included | --include \
1031   | --includ | --inclu | --incl | --inc)
1032     ac_prev=includedir ;;
1033   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034   | --includ=* | --inclu=* | --incl=* | --inc=*)
1035     includedir=$ac_optarg ;;
1036
1037   -infodir | --infodir | --infodi | --infod | --info | --inf)
1038     ac_prev=infodir ;;
1039   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040     infodir=$ac_optarg ;;
1041
1042   -libdir | --libdir | --libdi | --libd)
1043     ac_prev=libdir ;;
1044   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045     libdir=$ac_optarg ;;
1046
1047   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048   | --libexe | --libex | --libe)
1049     ac_prev=libexecdir ;;
1050   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051   | --libexe=* | --libex=* | --libe=*)
1052     libexecdir=$ac_optarg ;;
1053
1054   -localedir | --localedir | --localedi | --localed | --locale)
1055     ac_prev=localedir ;;
1056   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057     localedir=$ac_optarg ;;
1058
1059   -localstatedir | --localstatedir | --localstatedi | --localstated \
1060   | --localstate | --localstat | --localsta | --localst | --locals)
1061     ac_prev=localstatedir ;;
1062   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064     localstatedir=$ac_optarg ;;
1065
1066   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067     ac_prev=mandir ;;
1068   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069     mandir=$ac_optarg ;;
1070
1071   -nfp | --nfp | --nf)
1072     # Obsolete; use --without-fp.
1073     with_fp=no ;;
1074
1075   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076   | --no-cr | --no-c | -n)
1077     no_create=yes ;;
1078
1079   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081     no_recursion=yes ;;
1082
1083   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085   | --oldin | --oldi | --old | --ol | --o)
1086     ac_prev=oldincludedir ;;
1087   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090     oldincludedir=$ac_optarg ;;
1091
1092   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093     ac_prev=prefix ;;
1094   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095     prefix=$ac_optarg ;;
1096
1097   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098   | --program-pre | --program-pr | --program-p)
1099     ac_prev=program_prefix ;;
1100   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102     program_prefix=$ac_optarg ;;
1103
1104   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105   | --program-suf | --program-su | --program-s)
1106     ac_prev=program_suffix ;;
1107   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109     program_suffix=$ac_optarg ;;
1110
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     ac_prev=program_transform_name ;;
1119   -program-transform-name=* | --program-transform-name=* \
1120   | --program-transform-nam=* | --program-transform-na=* \
1121   | --program-transform-n=* | --program-transform-=* \
1122   | --program-transform=* | --program-transfor=* \
1123   | --program-transfo=* | --program-transf=* \
1124   | --program-trans=* | --program-tran=* \
1125   | --progr-tra=* | --program-tr=* | --program-t=*)
1126     program_transform_name=$ac_optarg ;;
1127
1128   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129     ac_prev=pdfdir ;;
1130   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131     pdfdir=$ac_optarg ;;
1132
1133   -psdir | --psdir | --psdi | --psd | --ps)
1134     ac_prev=psdir ;;
1135   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136     psdir=$ac_optarg ;;
1137
1138   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139   | -silent | --silent | --silen | --sile | --sil)
1140     silent=yes ;;
1141
1142   -runstatedir | --runstatedir | --runstatedi | --runstated \
1143   | --runstate | --runstat | --runsta | --runst | --runs \
1144   | --run | --ru | --r)
1145     ac_prev=runstatedir ;;
1146   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1147   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1148   | --run=* | --ru=* | --r=*)
1149     runstatedir=$ac_optarg ;;
1150
1151   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152     ac_prev=sbindir ;;
1153   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154   | --sbi=* | --sb=*)
1155     sbindir=$ac_optarg ;;
1156
1157   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159   | --sharedst | --shareds | --shared | --share | --shar \
1160   | --sha | --sh)
1161     ac_prev=sharedstatedir ;;
1162   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165   | --sha=* | --sh=*)
1166     sharedstatedir=$ac_optarg ;;
1167
1168   -site | --site | --sit)
1169     ac_prev=site ;;
1170   -site=* | --site=* | --sit=*)
1171     site=$ac_optarg ;;
1172
1173   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174     ac_prev=srcdir ;;
1175   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176     srcdir=$ac_optarg ;;
1177
1178   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179   | --syscon | --sysco | --sysc | --sys | --sy)
1180     ac_prev=sysconfdir ;;
1181   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183     sysconfdir=$ac_optarg ;;
1184
1185   -target | --target | --targe | --targ | --tar | --ta | --t)
1186     ac_prev=target_alias ;;
1187   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188     target_alias=$ac_optarg ;;
1189
1190   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191     verbose=yes ;;
1192
1193   -version | --version | --versio | --versi | --vers | -V)
1194     ac_init_version=: ;;
1195
1196   -with-* | --with-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       as_fn_error $? "invalid package name: $ac_useropt"
1201     ac_useropt_orig=$ac_useropt
1202     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203     case $ac_user_opts in
1204       *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208          ac_unrecognized_sep=', ';;
1209     esac
1210     eval with_$ac_useropt=\$ac_optarg ;;
1211
1212   -without-* | --without-*)
1213     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216       as_fn_error $? "invalid package name: $ac_useropt"
1217     ac_useropt_orig=$ac_useropt
1218     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219     case $ac_user_opts in
1220       *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224          ac_unrecognized_sep=', ';;
1225     esac
1226     eval with_$ac_useropt=no ;;
1227
1228   --x)
1229     # Obsolete; use --with-x.
1230     with_x=yes ;;
1231
1232   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233   | --x-incl | --x-inc | --x-in | --x-i)
1234     ac_prev=x_includes ;;
1235   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237     x_includes=$ac_optarg ;;
1238
1239   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241     ac_prev=x_libraries ;;
1242   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244     x_libraries=$ac_optarg ;;
1245
1246   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1248     ;;
1249
1250   *=*)
1251     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252     # Reject names that are not valid shell variable names.
1253     case $ac_envvar in #(
1254       '' | [0-9]* | *[!_$as_cr_alnum]* )
1255       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256     esac
1257     eval $ac_envvar=\$ac_optarg
1258     export $ac_envvar ;;
1259
1260   *)
1261     # FIXME: should be removed in autoconf 3.0.
1262     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266     ;;
1267
1268   esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273   as_fn_error $? "missing argument to $ac_option"
1274 fi
1275
1276 if test -n "$ac_unrecognized_opts"; then
1277   case $enable_option_checking in
1278     no) ;;
1279     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281   esac
1282 fi
1283
1284 # Check all directory arguments for consistency.
1285 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286                 datadir sysconfdir sharedstatedir localstatedir includedir \
1287                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288                 libdir localedir mandir runstatedir
1289 do
1290   eval ac_val=\$$ac_var
1291   # Remove trailing slashes.
1292   case $ac_val in
1293     */ )
1294       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295       eval $ac_var=\$ac_val;;
1296   esac
1297   # Be sure to have absolute directory names.
1298   case $ac_val in
1299     [\\/$]* | ?:[\\/]* )  continue;;
1300     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301   esac
1302   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314   if test "x$build_alias" = x; then
1315     cross_compiling=maybe
1316   elif test "x$build_alias" != "x$host_alias"; then
1317     cross_compiling=yes
1318   fi
1319 fi
1320
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324 test "$silent" = yes && exec 6>/dev/null
1325
1326
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330   as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332   as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337   ac_srcdir_defaulted=yes
1338   # Try the directory containing this script, then the parent directory.
1339   ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341          X"$as_myself" : 'X\(//\)[^/]' \| \
1342          X"$as_myself" : 'X\(//\)$' \| \
1343          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 $as_echo X"$as_myself" |
1345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\/\)[^/].*/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\/\)$/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\).*/{
1358             s//\1/
1359             q
1360           }
1361           s/.*/./; q'`
1362   srcdir=$ac_confdir
1363   if test ! -r "$srcdir/$ac_unique_file"; then
1364     srcdir=..
1365   fi
1366 else
1367   ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 fi
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376         pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379   srcdir=.
1380 fi
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389   eval ac_env_${ac_var}_value=\$${ac_var}
1390   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1393
1394 #
1395 # Report the --help message.
1396 #
1397 if test "$ac_init_help" = "long"; then
1398   # Omit some internal or obsolete options to make the list less imposing.
1399   # This message is too long to be a string in the A/UX 3.1 sh.
1400   cat <<_ACEOF
1401 \`configure' configures OpenFst 1.7.8 to adapt to many kinds of systems.
1402
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE.  See below for descriptions of some of the useful variables.
1407
1408 Defaults for the options are specified in brackets.
1409
1410 Configuration:
1411   -h, --help              display this help and exit
1412       --help=short        display options specific to this package
1413       --help=recursive    display the short help of all the included packages
1414   -V, --version           display version information and exit
1415   -q, --quiet, --silent   do not print \`checking ...' messages
1416       --cache-file=FILE   cache test results in FILE [disabled]
1417   -C, --config-cache      alias for \`--cache-file=config.cache'
1418   -n, --no-create         do not create output files
1419       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1420
1421 Installation directories:
1422   --prefix=PREFIX         install architecture-independent files in PREFIX
1423                           [$ac_default_prefix]
1424   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1425                           [PREFIX]
1426
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1431
1432 For better control, use the options below.
1433
1434 Fine tuning of the installation directories:
1435   --bindir=DIR            user executables [EPREFIX/bin]
1436   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1437   --libexecdir=DIR        program executables [EPREFIX/libexec]
1438   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1439   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1440   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1441   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1442   --libdir=DIR            object code libraries [EPREFIX/lib]
1443   --includedir=DIR        C header files [PREFIX/include]
1444   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1445   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1446   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1447   --infodir=DIR           info documentation [DATAROOTDIR/info]
1448   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1449   --mandir=DIR            man documentation [DATAROOTDIR/man]
1450   --docdir=DIR            documentation root [DATAROOTDIR/doc/openfst]
1451   --htmldir=DIR           html documentation [DOCDIR]
1452   --dvidir=DIR            dvi documentation [DOCDIR]
1453   --pdfdir=DIR            pdf documentation [DOCDIR]
1454   --psdir=DIR             ps documentation [DOCDIR]
1455 _ACEOF
1456
1457   cat <<\_ACEOF
1458
1459 Program names:
1460   --program-prefix=PREFIX            prepend PREFIX to installed program names
1461   --program-suffix=SUFFIX            append SUFFIX to installed program names
1462   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464 System types:
1465   --build=BUILD     configure for building on BUILD [guessed]
1466   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471   case $ac_init_help in
1472      short | recursive ) echo "Configuration of OpenFst 1.7.8:";;
1473    esac
1474   cat <<\_ACEOF
1475
1476 Optional Features:
1477   --disable-option-checking  ignore unrecognized --enable/--with options
1478   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480   --enable-silent-rules   less verbose build output (undo: "make V=1")
1481   --disable-silent-rules  verbose build output (undo: "make V=0")
1482   --enable-dependency-tracking
1483                           do not reject slow dependency extractors
1484   --disable-dependency-tracking
1485                           speeds up one-time build
1486   --enable-static[=PKGS]  build static libraries [default=no]
1487   --enable-shared[=PKGS]  build shared libraries [default=yes]
1488   --enable-fast-install[=PKGS]
1489                           optimize for fast installation [default=yes]
1490   --disable-libtool-lock  avoid locking (might break parallel builds)
1491   --enable-compact-fsts   enable CompactFst extensions
1492   --enable-compress       enable compression extension
1493   --enable-const-fsts     enable ConstFst extensions
1494   --enable-far            enable FAR extensions
1495   --enable-linear-fsts    enable LinearTagger/ClassifierFst extensions
1496   --enable-lookahead-fsts enable LookAheadFst extensions
1497   --enable-mpdt           enable MPDT extensions
1498   --enable-ngram-fsts     enable NGramFst extension
1499   --enable-pdt            enable PDT extensions
1500   --enable-python         enable Python extensions
1501   --enable-special        enable special-matcher extensions
1502   --enable-bin            enable fst::script and command-line binaries
1503   --enable-fsts           enable all FST SOs
1504   --enable-grm            enable all dependencies of OpenGrm
1505
1506 Optional Packages:
1507   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1510                           both]
1511   --with-aix-soname=aix|svr4|both
1512                           shared library versioning (aka "SONAME") variant to
1513                           provide on AIX, [default=aix].
1514   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1515   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1516                           compiler's sysroot if not specified).
1517 --with-libfstdir=DIR fst dynamic extensions [LIBDIR/fst]
1518
1519 Some influential environment variables:
1520   CC          C compiler command
1521   CFLAGS      C compiler flags
1522   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523               nonstandard directory <lib dir>
1524   LIBS        libraries to pass to the linker, e.g. -l<library>
1525   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526               you have headers in a nonstandard directory <include dir>
1527   CXX         C++ compiler command
1528   CXXFLAGS    C++ compiler flags
1529   LT_SYS_LIBRARY_PATH
1530               User-defined run-time library search path.
1531   CPP         C preprocessor
1532   CXXCPP      C++ preprocessor
1533   PYTHON      the Python interpreter
1534   PYTHON_VERSION
1535               The installed Python version to use, for example '2.3'. This
1536               string will be appended to the Python interpreter canonical
1537               name.
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to <help@www.openfst.org>.
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548   # If there are subdirs, report their specific --help.
1549   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550     test -d "$ac_dir" ||
1551       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552       continue
1553     ac_builddir=.
1554
1555 case "$ac_dir" in
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *)
1558   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559   # A ".." for each directory in $ac_dir_suffix.
1560   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561   case $ac_top_builddir_sub in
1562   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564   esac ;;
1565 esac
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1570
1571 case $srcdir in
1572   .)  # We are building in place.
1573     ac_srcdir=.
1574     ac_top_srcdir=$ac_top_builddir_sub
1575     ac_abs_top_srcdir=$ac_pwd ;;
1576   [\\/]* | ?:[\\/]* )  # Absolute name.
1577     ac_srcdir=$srcdir$ac_dir_suffix;
1578     ac_top_srcdir=$srcdir
1579     ac_abs_top_srcdir=$srcdir ;;
1580   *) # Relative name.
1581     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582     ac_top_srcdir=$ac_top_build_prefix$srcdir
1583     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 esac
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587     cd "$ac_dir" || { ac_status=$?; continue; }
1588     # Check for guested configure.
1589     if test -f "$ac_srcdir/configure.gnu"; then
1590       echo &&
1591       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592     elif test -f "$ac_srcdir/configure"; then
1593       echo &&
1594       $SHELL "$ac_srcdir/configure" --help=recursive
1595     else
1596       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597     fi || ac_status=$?
1598     cd "$ac_pwd" || { ac_status=$?; break; }
1599   done
1600 fi
1601
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604   cat <<\_ACEOF
1605 OpenFst configure 1.7.8
1606 generated by GNU Autoconf 2.69
1607
1608 Copyright (C) 2012 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611 _ACEOF
1612   exit
1613 fi
1614
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1618
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1623 {
1624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625   rm -f conftest.$ac_objext
1626   if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629   *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633   (eval "$ac_compile") 2>conftest.err
1634   ac_status=$?
1635   if test -s conftest.err; then
1636     grep -v '^ *+' conftest.err >conftest.er1
1637     cat conftest.er1 >&5
1638     mv -f conftest.er1 conftest.err
1639   fi
1640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641   test $ac_status = 0; } && {
1642          test -z "$ac_c_werror_flag" ||
1643          test ! -s conftest.err
1644        } && test -s conftest.$ac_objext; then :
1645   ac_retval=0
1646 else
1647   $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650         ac_retval=1
1651 fi
1652   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653   as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_compile
1656
1657 # ac_fn_cxx_try_compile LINENO
1658 # ----------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_cxx_try_compile ()
1661 {
1662   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663   rm -f conftest.$ac_objext
1664   if { { ac_try="$ac_compile"
1665 case "(($ac_try" in
1666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667   *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671   (eval "$ac_compile") 2>conftest.err
1672   ac_status=$?
1673   if test -s conftest.err; then
1674     grep -v '^ *+' conftest.err >conftest.er1
1675     cat conftest.er1 >&5
1676     mv -f conftest.er1 conftest.err
1677   fi
1678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679   test $ac_status = 0; } && {
1680          test -z "$ac_cxx_werror_flag" ||
1681          test ! -s conftest.err
1682        } && test -s conftest.$ac_objext; then :
1683   ac_retval=0
1684 else
1685   $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688         ac_retval=1
1689 fi
1690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691   as_fn_set_status $ac_retval
1692
1693 } # ac_fn_cxx_try_compile
1694
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_link ()
1699 {
1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701   rm -f conftest.$ac_objext conftest$ac_exeext
1702   if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_link") 2>conftest.err
1710   ac_status=$?
1711   if test -s conftest.err; then
1712     grep -v '^ *+' conftest.err >conftest.er1
1713     cat conftest.er1 >&5
1714     mv -f conftest.er1 conftest.err
1715   fi
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; } && {
1718          test -z "$ac_c_werror_flag" ||
1719          test ! -s conftest.err
1720        } && test -s conftest$ac_exeext && {
1721          test "$cross_compiling" = yes ||
1722          test -x conftest$ac_exeext
1723        }; then :
1724   ac_retval=0
1725 else
1726   $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729         ac_retval=1
1730 fi
1731   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733   # interfere with the next link command; also delete a directory that is
1734   # left behind by Apple's compiler.  We do this before executing the actions.
1735   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737   as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_link
1740
1741 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists and can be compiled using the include files in
1744 # INCLUDES, setting the cache variable VAR accordingly.
1745 ac_fn_c_check_header_compile ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751   $as_echo_n "(cached) " >&6
1752 else
1753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h.  */
1755 $4
1756 #include <$2>
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759   eval "$3=yes"
1760 else
1761   eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 fi
1765 eval ac_res=\$$3
1766                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769
1770 } # ac_fn_c_check_header_compile
1771
1772 # ac_fn_c_try_cpp LINENO
1773 # ----------------------
1774 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_cpp ()
1776 {
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   if { { ac_try="$ac_cpp conftest.$ac_ext"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1786   ac_status=$?
1787   if test -s conftest.err; then
1788     grep -v '^ *+' conftest.err >conftest.er1
1789     cat conftest.er1 >&5
1790     mv -f conftest.er1 conftest.err
1791   fi
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } > conftest.i && {
1794          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1795          test ! -s conftest.err
1796        }; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802     ac_retval=1
1803 fi
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_cpp
1808
1809 # ac_fn_c_try_run LINENO
1810 # ----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812 # that executables *can* be run.
1813 ac_fn_c_try_run ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819   *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823   (eval "$ac_link") 2>&5
1824   ac_status=$?
1825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827   { { case "(($ac_try" in
1828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829   *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833   (eval "$ac_try") 2>&5
1834   ac_status=$?
1835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836   test $ac_status = 0; }; }; then :
1837   ac_retval=0
1838 else
1839   $as_echo "$as_me: program exited with status $ac_status" >&5
1840        $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843        ac_retval=$ac_status
1844 fi
1845   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847   as_fn_set_status $ac_retval
1848
1849 } # ac_fn_c_try_run
1850
1851 # ac_fn_c_check_func LINENO FUNC VAR
1852 # ----------------------------------
1853 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1854 ac_fn_c_check_func ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860   $as_echo_n "(cached) " >&6
1861 else
1862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h.  */
1864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1866 #define $2 innocuous_$2
1867
1868 /* System header to define __stub macros and hopefully few prototypes,
1869     which can conflict with char $2 (); below.
1870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1871     <limits.h> exists even on freestanding compilers.  */
1872
1873 #ifdef __STDC__
1874 # include <limits.h>
1875 #else
1876 # include <assert.h>
1877 #endif
1878
1879 #undef $2
1880
1881 /* Override any GCC internal prototype to avoid an error.
1882    Use char because int might match the return type of a GCC
1883    builtin and then its argument prototype would still apply.  */
1884 #ifdef __cplusplus
1885 extern "C"
1886 #endif
1887 char $2 ();
1888 /* The GNU C library defines this for functions which it implements
1889     to always fail with ENOSYS.  Some functions are actually named
1890     something starting with __ and the normal name is an alias.  */
1891 #if defined __stub_$2 || defined __stub___$2
1892 choke me
1893 #endif
1894
1895 int
1896 main ()
1897 {
1898 return $2 ();
1899   ;
1900   return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_link "$LINENO"; then :
1904   eval "$3=yes"
1905 else
1906   eval "$3=no"
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext \
1909     conftest$ac_exeext conftest.$ac_ext
1910 fi
1911 eval ac_res=\$$3
1912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915
1916 } # ac_fn_c_check_func
1917
1918 # ac_fn_cxx_try_cpp LINENO
1919 # ------------------------
1920 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_cxx_try_cpp ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   if { { ac_try="$ac_cpp conftest.$ac_ext"
1925 case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1932   ac_status=$?
1933   if test -s conftest.err; then
1934     grep -v '^ *+' conftest.err >conftest.er1
1935     cat conftest.er1 >&5
1936     mv -f conftest.er1 conftest.err
1937   fi
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; } > conftest.i && {
1940          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1941          test ! -s conftest.err
1942        }; then :
1943   ac_retval=0
1944 else
1945   $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948     ac_retval=1
1949 fi
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951   as_fn_set_status $ac_retval
1952
1953 } # ac_fn_cxx_try_cpp
1954
1955 # ac_fn_cxx_try_link LINENO
1956 # -------------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_cxx_try_link ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   rm -f conftest.$ac_objext conftest$ac_exeext
1962   if { { ac_try="$ac_link"
1963 case "(($ac_try" in
1964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965   *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969   (eval "$ac_link") 2>conftest.err
1970   ac_status=$?
1971   if test -s conftest.err; then
1972     grep -v '^ *+' conftest.err >conftest.er1
1973     cat conftest.er1 >&5
1974     mv -f conftest.er1 conftest.err
1975   fi
1976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977   test $ac_status = 0; } && {
1978          test -z "$ac_cxx_werror_flag" ||
1979          test ! -s conftest.err
1980        } && test -s conftest$ac_exeext && {
1981          test "$cross_compiling" = yes ||
1982          test -x conftest$ac_exeext
1983        }; then :
1984   ac_retval=0
1985 else
1986   $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989         ac_retval=1
1990 fi
1991   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993   # interfere with the next link command; also delete a directory that is
1994   # left behind by Apple's compiler.  We do this before executing the actions.
1995   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997   as_fn_set_status $ac_retval
1998
1999 } # ac_fn_cxx_try_link
2000
2001 # ac_fn_cxx_try_run LINENO
2002 # ------------------------
2003 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2004 # that executables *can* be run.
2005 ac_fn_cxx_try_run ()
2006 {
2007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008   if { { ac_try="$ac_link"
2009 case "(($ac_try" in
2010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011   *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015   (eval "$ac_link") 2>&5
2016   ac_status=$?
2017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2019   { { case "(($ac_try" in
2020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021   *) ac_try_echo=$ac_try;;
2022 esac
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025   (eval "$ac_try") 2>&5
2026   ac_status=$?
2027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028   test $ac_status = 0; }; }; then :
2029   ac_retval=0
2030 else
2031   $as_echo "$as_me: program exited with status $ac_status" >&5
2032        $as_echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2034
2035        ac_retval=$ac_status
2036 fi
2037   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039   as_fn_set_status $ac_retval
2040
2041 } # ac_fn_cxx_try_run
2042 cat >config.log <<_ACEOF
2043 This file contains any messages produced by compilers while
2044 running configure, to aid debugging if configure makes a mistake.
2045
2046 It was created by OpenFst $as_me 1.7.8, which was
2047 generated by GNU Autoconf 2.69.  Invocation command line was
2048
2049   $ $0 $@
2050
2051 _ACEOF
2052 exec 5>>config.log
2053 {
2054 cat <<_ASUNAME
2055 ## --------- ##
2056 ## Platform. ##
2057 ## --------- ##
2058
2059 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2060 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2061 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2062 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2063 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2064
2065 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2066 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2067
2068 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2069 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2070 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2071 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2072 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2073 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2074 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2075
2076 _ASUNAME
2077
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083     $as_echo "PATH: $as_dir"
2084   done
2085 IFS=$as_save_IFS
2086
2087 } >&5
2088
2089 cat >&5 <<_ACEOF
2090
2091
2092 ## ----------- ##
2093 ## Core tests. ##
2094 ## ----------- ##
2095
2096 _ACEOF
2097
2098
2099 # Keep a trace of the command line.
2100 # Strip out --no-create and --no-recursion so they do not pile up.
2101 # Strip out --silent because we don't want to record it for future runs.
2102 # Also quote any args containing shell meta-characters.
2103 # Make two passes to allow for proper duplicate-argument suppression.
2104 ac_configure_args=
2105 ac_configure_args0=
2106 ac_configure_args1=
2107 ac_must_keep_next=false
2108 for ac_pass in 1 2
2109 do
2110   for ac_arg
2111   do
2112     case $ac_arg in
2113     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2114     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2115     | -silent | --silent | --silen | --sile | --sil)
2116       continue ;;
2117     *\'*)
2118       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2119     esac
2120     case $ac_pass in
2121     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2122     2)
2123       as_fn_append ac_configure_args1 " '$ac_arg'"
2124       if test $ac_must_keep_next = true; then
2125         ac_must_keep_next=false # Got value, back to normal.
2126       else
2127         case $ac_arg in
2128           *=* | --config-cache | -C | -disable-* | --disable-* \
2129           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2130           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2131           | -with-* | --with-* | -without-* | --without-* | --x)
2132             case "$ac_configure_args0 " in
2133               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2134             esac
2135             ;;
2136           -* ) ac_must_keep_next=true ;;
2137         esac
2138       fi
2139       as_fn_append ac_configure_args " '$ac_arg'"
2140       ;;
2141     esac
2142   done
2143 done
2144 { ac_configure_args0=; unset ac_configure_args0;}
2145 { ac_configure_args1=; unset ac_configure_args1;}
2146
2147 # When interrupted or exit'd, cleanup temporary files, and complete
2148 # config.log.  We remove comments because anyway the quotes in there
2149 # would cause problems or look ugly.
2150 # WARNING: Use '\'' to represent an apostrophe within the trap.
2151 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2152 trap 'exit_status=$?
2153   # Save into config.log some information that might help in debugging.
2154   {
2155     echo
2156
2157     $as_echo "## ---------------- ##
2158 ## Cache variables. ##
2159 ## ---------------- ##"
2160     echo
2161     # The following way of writing the cache mishandles newlines in values,
2162 (
2163   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2164     eval ac_val=\$$ac_var
2165     case $ac_val in #(
2166     *${as_nl}*)
2167       case $ac_var in #(
2168       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2169 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2170       esac
2171       case $ac_var in #(
2172       _ | IFS | as_nl) ;; #(
2173       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2174       *) { eval $ac_var=; unset $ac_var;} ;;
2175       esac ;;
2176     esac
2177   done
2178   (set) 2>&1 |
2179     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2180     *${as_nl}ac_space=\ *)
2181       sed -n \
2182         "s/'\''/'\''\\\\'\'''\''/g;
2183           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2184       ;; #(
2185     *)
2186       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2187       ;;
2188     esac |
2189     sort
2190 )
2191     echo
2192
2193     $as_echo "## ----------------- ##
2194 ## Output variables. ##
2195 ## ----------------- ##"
2196     echo
2197     for ac_var in $ac_subst_vars
2198     do
2199       eval ac_val=\$$ac_var
2200       case $ac_val in
2201       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202       esac
2203       $as_echo "$ac_var='\''$ac_val'\''"
2204     done | sort
2205     echo
2206
2207     if test -n "$ac_subst_files"; then
2208       $as_echo "## ------------------- ##
2209 ## File substitutions. ##
2210 ## ------------------- ##"
2211       echo
2212       for ac_var in $ac_subst_files
2213       do
2214         eval ac_val=\$$ac_var
2215         case $ac_val in
2216         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2217         esac
2218         $as_echo "$ac_var='\''$ac_val'\''"
2219       done | sort
2220       echo
2221     fi
2222
2223     if test -s confdefs.h; then
2224       $as_echo "## ----------- ##
2225 ## confdefs.h. ##
2226 ## ----------- ##"
2227       echo
2228       cat confdefs.h
2229       echo
2230     fi
2231     test "$ac_signal" != 0 &&
2232       $as_echo "$as_me: caught signal $ac_signal"
2233     $as_echo "$as_me: exit $exit_status"
2234   } >&5
2235   rm -f core *.core core.conftest.* &&
2236     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2237     exit $exit_status
2238 ' 0
2239 for ac_signal in 1 2 13 15; do
2240   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2241 done
2242 ac_signal=0
2243
2244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2245 rm -f -r conftest* confdefs.h
2246
2247 $as_echo "/* confdefs.h */" > confdefs.h
2248
2249 # Predefined preprocessor variables.
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_NAME "$PACKAGE_NAME"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2257 _ACEOF
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_STRING "$PACKAGE_STRING"
2265 _ACEOF
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2269 _ACEOF
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_URL "$PACKAGE_URL"
2273 _ACEOF
2274
2275
2276 # Let the site file select an alternate cache file if it wants to.
2277 # Prefer an explicitly selected file to automatically selected ones.
2278 ac_site_file1=NONE
2279 ac_site_file2=NONE
2280 if test -n "$CONFIG_SITE"; then
2281   # We do not want a PATH search for config.site.
2282   case $CONFIG_SITE in #((
2283     -*)  ac_site_file1=./$CONFIG_SITE;;
2284     */*) ac_site_file1=$CONFIG_SITE;;
2285     *)   ac_site_file1=./$CONFIG_SITE;;
2286   esac
2287 elif test "x$prefix" != xNONE; then
2288   ac_site_file1=$prefix/share/config.site
2289   ac_site_file2=$prefix/etc/config.site
2290 else
2291   ac_site_file1=$ac_default_prefix/share/config.site
2292   ac_site_file2=$ac_default_prefix/etc/config.site
2293 fi
2294 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2295 do
2296   test "x$ac_site_file" = xNONE && continue
2297   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2298     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2299 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2300     sed 's/^/| /' "$ac_site_file" >&5
2301     . "$ac_site_file" \
2302       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 as_fn_error $? "failed to load site script $ac_site_file
2305 See \`config.log' for more details" "$LINENO" 5; }
2306   fi
2307 done
2308
2309 if test -r "$cache_file"; then
2310   # Some versions of bash will fail to source /dev/null (special files
2311   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2312   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2313     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2314 $as_echo "$as_me: loading cache $cache_file" >&6;}
2315     case $cache_file in
2316       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2317       *)                      . "./$cache_file";;
2318     esac
2319   fi
2320 else
2321   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2322 $as_echo "$as_me: creating cache $cache_file" >&6;}
2323   >$cache_file
2324 fi
2325
2326 # Check that the precious variables saved in the cache have kept the same
2327 # value.
2328 ac_cache_corrupted=false
2329 for ac_var in $ac_precious_vars; do
2330   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2331   eval ac_new_set=\$ac_env_${ac_var}_set
2332   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2333   eval ac_new_val=\$ac_env_${ac_var}_value
2334   case $ac_old_set,$ac_new_set in
2335     set,)
2336       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2337 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2338       ac_cache_corrupted=: ;;
2339     ,set)
2340       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2341 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2342       ac_cache_corrupted=: ;;
2343     ,);;
2344     *)
2345       if test "x$ac_old_val" != "x$ac_new_val"; then
2346         # differences in whitespace do not lead to failure.
2347         ac_old_val_w=`echo x $ac_old_val`
2348         ac_new_val_w=`echo x $ac_new_val`
2349         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2350           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2351 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2352           ac_cache_corrupted=:
2353         else
2354           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2355 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2356           eval $ac_var=\$ac_old_val
2357         fi
2358         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2359 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2360         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2361 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2362       fi;;
2363   esac
2364   # Pass precious variables to config.status.
2365   if test "$ac_new_set" = set; then
2366     case $ac_new_val in
2367     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2368     *) ac_arg=$ac_var=$ac_new_val ;;
2369     esac
2370     case " $ac_configure_args " in
2371       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2372       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2373     esac
2374   fi
2375 done
2376 if $ac_cache_corrupted; then
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2380 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2381   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2382 fi
2383 ## -------------------- ##
2384 ## Main body of script. ##
2385 ## -------------------- ##
2386
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392
2393
2394 am__api_version='1.16'
2395
2396 ac_aux_dir=
2397 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2398   if test -f "$ac_dir/install-sh"; then
2399     ac_aux_dir=$ac_dir
2400     ac_install_sh="$ac_aux_dir/install-sh -c"
2401     break
2402   elif test -f "$ac_dir/install.sh"; then
2403     ac_aux_dir=$ac_dir
2404     ac_install_sh="$ac_aux_dir/install.sh -c"
2405     break
2406   elif test -f "$ac_dir/shtool"; then
2407     ac_aux_dir=$ac_dir
2408     ac_install_sh="$ac_aux_dir/shtool install -c"
2409     break
2410   fi
2411 done
2412 if test -z "$ac_aux_dir"; then
2413   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2414 fi
2415
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2423
2424
2425 # Find a good install program.  We prefer a C program (faster),
2426 # so one script is as good as another.  But avoid the broken or
2427 # incompatible versions:
2428 # SysV /etc/install, /usr/sbin/install
2429 # SunOS /usr/etc/install
2430 # IRIX /sbin/install
2431 # AIX /bin/install
2432 # AmigaOS /C/install, which installs bootblocks on floppy discs
2433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2436 # OS/2's system install, which has a completely different semantic
2437 # ./install, which can be erroneously created by make from ./install.sh.
2438 # Reject install programs that cannot install multiple files.
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2440 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2441 if test -z "$INSTALL"; then
2442 if ${ac_cv_path_install+:} false; then :
2443   $as_echo_n "(cached) " >&6
2444 else
2445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450     # Account for people who put trailing slashes in PATH elements.
2451 case $as_dir/ in #((
2452   ./ | .// | /[cC]/* | \
2453   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2454   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2455   /usr/ucb/* ) ;;
2456   *)
2457     # OSF1 and SCO ODT 3.0 have their own names for install.
2458     # Don't use installbsd from OSF since it installs stuff as root
2459     # by default.
2460     for ac_prog in ginstall scoinst install; do
2461       for ac_exec_ext in '' $ac_executable_extensions; do
2462         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2463           if test $ac_prog = install &&
2464             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465             # AIX install.  It has an incompatible calling convention.
2466             :
2467           elif test $ac_prog = install &&
2468             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469             # program-specific install script used by HP pwplus--don't use.
2470             :
2471           else
2472             rm -rf conftest.one conftest.two conftest.dir
2473             echo one > conftest.one
2474             echo two > conftest.two
2475             mkdir conftest.dir
2476             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2477               test -s conftest.one && test -s conftest.two &&
2478               test -s conftest.dir/conftest.one &&
2479               test -s conftest.dir/conftest.two
2480             then
2481               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2482               break 3
2483             fi
2484           fi
2485         fi
2486       done
2487     done
2488     ;;
2489 esac
2490
2491   done
2492 IFS=$as_save_IFS
2493
2494 rm -rf conftest.one conftest.two conftest.dir
2495
2496 fi
2497   if test "${ac_cv_path_install+set}" = set; then
2498     INSTALL=$ac_cv_path_install
2499   else
2500     # As a last resort, use the slow shell script.  Don't cache a
2501     # value for INSTALL within a source directory, because that will
2502     # break other packages using the cache if that directory is
2503     # removed, or if the value is a relative name.
2504     INSTALL=$ac_install_sh
2505   fi
2506 fi
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2508 $as_echo "$INSTALL" >&6; }
2509
2510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2511 # It thinks the first close brace ends the variable substitution.
2512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2513
2514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2515
2516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2517
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2519 $as_echo_n "checking whether build environment is sane... " >&6; }
2520 # Reject unsafe characters in $srcdir or the absolute working directory
2521 # name.  Accept space and tab only in the latter.
2522 am_lf='
2523 '
2524 case `pwd` in
2525   *[\\\"\#\$\&\'\`$am_lf]*)
2526     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2527 esac
2528 case $srcdir in
2529   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2530     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2531 esac
2532
2533 # Do 'set' in a subshell so we don't clobber the current shell's
2534 # arguments.  Must try -L first in case configure is actually a
2535 # symlink; some systems play weird games with the mod time of symlinks
2536 # (eg FreeBSD returns the mod time of the symlink's containing
2537 # directory).
2538 if (
2539    am_has_slept=no
2540    for am_try in 1 2; do
2541      echo "timestamp, slept: $am_has_slept" > conftest.file
2542      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2543      if test "$*" = "X"; then
2544         # -L didn't work.
2545         set X `ls -t "$srcdir/configure" conftest.file`
2546      fi
2547      if test "$*" != "X $srcdir/configure conftest.file" \
2548         && test "$*" != "X conftest.file $srcdir/configure"; then
2549
2550         # If neither matched, then we have a broken ls.  This can happen
2551         # if, for instance, CONFIG_SHELL is bash and it inherits a
2552         # broken ls alias from the environment.  This has actually
2553         # happened.  Such a system could not be considered "sane".
2554         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2555   alias in your environment" "$LINENO" 5
2556      fi
2557      if test "$2" = conftest.file || test $am_try -eq 2; then
2558        break
2559      fi
2560      # Just in case.
2561      sleep 1
2562      am_has_slept=yes
2563    done
2564    test "$2" = conftest.file
2565    )
2566 then
2567    # Ok.
2568    :
2569 else
2570    as_fn_error $? "newly created file is older than distributed files!
2571 Check your system clock" "$LINENO" 5
2572 fi
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574 $as_echo "yes" >&6; }
2575 # If we didn't sleep, we still need to ensure time stamps of config.status and
2576 # generated files are strictly newer.
2577 am_sleep_pid=
2578 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2579   ( sleep 1 ) &
2580   am_sleep_pid=$!
2581 fi
2582
2583 rm -f conftest.file
2584
2585 test "$program_prefix" != NONE &&
2586   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2587 # Use a double $ so make ignores it.
2588 test "$program_suffix" != NONE &&
2589   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2590 # Double any \ or $.
2591 # By default was `s,x,x', remove it if useless.
2592 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2593 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2594
2595 # Expand $ac_aux_dir to an absolute path.
2596 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2597
2598 if test x"${MISSING+set}" != xset; then
2599   case $am_aux_dir in
2600   *\ * | *\     *)
2601     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2602   *)
2603     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2604   esac
2605 fi
2606 # Use eval to expand $SHELL
2607 if eval "$MISSING --is-lightweight"; then
2608   am_missing_run="$MISSING "
2609 else
2610   am_missing_run=
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2612 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2613 fi
2614
2615 if test x"${install_sh+set}" != xset; then
2616   case $am_aux_dir in
2617   *\ * | *\     *)
2618     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2619   *)
2620     install_sh="\${SHELL} $am_aux_dir/install-sh"
2621   esac
2622 fi
2623
2624 # Installed binaries are usually stripped using 'strip' when the user
2625 # run "make install-strip".  However 'strip' might not be the right
2626 # tool to use in cross-compilation environments, therefore Automake
2627 # will honor the 'STRIP' environment variable to overrule this program.
2628 if test "$cross_compiling" != no; then
2629   if test -n "$ac_tool_prefix"; then
2630   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}strip; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_STRIP+:} false; then :
2635   $as_echo_n "(cached) " >&6
2636 else
2637   if test -n "$STRIP"; then
2638   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643   IFS=$as_save_IFS
2644   test -z "$as_dir" && as_dir=.
2645     for ac_exec_ext in '' $ac_executable_extensions; do
2646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649     break 2
2650   fi
2651 done
2652   done
2653 IFS=$as_save_IFS
2654
2655 fi
2656 fi
2657 STRIP=$ac_cv_prog_STRIP
2658 if test -n "$STRIP"; then
2659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2660 $as_echo "$STRIP" >&6; }
2661 else
2662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2664 fi
2665
2666
2667 fi
2668 if test -z "$ac_cv_prog_STRIP"; then
2669   ac_ct_STRIP=$STRIP
2670   # Extract the first word of "strip", so it can be a program name with args.
2671 set dummy strip; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2675   $as_echo_n "(cached) " >&6
2676 else
2677   if test -n "$ac_ct_STRIP"; then
2678   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683   IFS=$as_save_IFS
2684   test -z "$as_dir" && as_dir=.
2685     for ac_exec_ext in '' $ac_executable_extensions; do
2686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687     ac_cv_prog_ac_ct_STRIP="strip"
2688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689     break 2
2690   fi
2691 done
2692   done
2693 IFS=$as_save_IFS
2694
2695 fi
2696 fi
2697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2698 if test -n "$ac_ct_STRIP"; then
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2700 $as_echo "$ac_ct_STRIP" >&6; }
2701 else
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 fi
2705
2706   if test "x$ac_ct_STRIP" = x; then
2707     STRIP=":"
2708   else
2709     case $cross_compiling:$ac_tool_warned in
2710 yes:)
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713 ac_tool_warned=yes ;;
2714 esac
2715     STRIP=$ac_ct_STRIP
2716   fi
2717 else
2718   STRIP="$ac_cv_prog_STRIP"
2719 fi
2720
2721 fi
2722 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2723
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2725 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2726 if test -z "$MKDIR_P"; then
2727   if ${ac_cv_path_mkdir+:} false; then :
2728   $as_echo_n "(cached) " >&6
2729 else
2730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2732 do
2733   IFS=$as_save_IFS
2734   test -z "$as_dir" && as_dir=.
2735     for ac_prog in mkdir gmkdir; do
2736          for ac_exec_ext in '' $ac_executable_extensions; do
2737            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2738            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2739              'mkdir (GNU coreutils) '* | \
2740              'mkdir (coreutils) '* | \
2741              'mkdir (fileutils) '4.1*)
2742                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2743                break 3;;
2744            esac
2745          done
2746        done
2747   done
2748 IFS=$as_save_IFS
2749
2750 fi
2751
2752   test -d ./--version && rmdir ./--version
2753   if test "${ac_cv_path_mkdir+set}" = set; then
2754     MKDIR_P="$ac_cv_path_mkdir -p"
2755   else
2756     # As a last resort, use the slow shell script.  Don't cache a
2757     # value for MKDIR_P within a source directory, because that will
2758     # break other packages using the cache if that directory is
2759     # removed, or if the value is a relative name.
2760     MKDIR_P="$ac_install_sh -d"
2761   fi
2762 fi
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2764 $as_echo "$MKDIR_P" >&6; }
2765
2766 for ac_prog in gawk mawk nawk awk
2767 do
2768   # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_AWK+:} false; then :
2773   $as_echo_n "(cached) " >&6
2774 else
2775   if test -n "$AWK"; then
2776   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781   IFS=$as_save_IFS
2782   test -z "$as_dir" && as_dir=.
2783     for ac_exec_ext in '' $ac_executable_extensions; do
2784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785     ac_cv_prog_AWK="$ac_prog"
2786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787     break 2
2788   fi
2789 done
2790   done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
2795 AWK=$ac_cv_prog_AWK
2796 if test -n "$AWK"; then
2797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2798 $as_echo "$AWK" >&6; }
2799 else
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2802 fi
2803
2804
2805   test -n "$AWK" && break
2806 done
2807
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2809 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2810 set x ${MAKE-make}
2811 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2812 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2813   $as_echo_n "(cached) " >&6
2814 else
2815   cat >conftest.make <<\_ACEOF
2816 SHELL = /bin/sh
2817 all:
2818         @echo '@@@%%%=$(MAKE)=@@@%%%'
2819 _ACEOF
2820 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2821 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2822   *@@@%%%=?*=@@@%%%*)
2823     eval ac_cv_prog_make_${ac_make}_set=yes;;
2824   *)
2825     eval ac_cv_prog_make_${ac_make}_set=no;;
2826 esac
2827 rm -f conftest.make
2828 fi
2829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2831 $as_echo "yes" >&6; }
2832   SET_MAKE=
2833 else
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836   SET_MAKE="MAKE=${MAKE-make}"
2837 fi
2838
2839 rm -rf .tst 2>/dev/null
2840 mkdir .tst 2>/dev/null
2841 if test -d .tst; then
2842   am__leading_dot=.
2843 else
2844   am__leading_dot=_
2845 fi
2846 rmdir .tst 2>/dev/null
2847
2848 # Check whether --enable-silent-rules was given.
2849 if test "${enable_silent_rules+set}" = set; then :
2850   enableval=$enable_silent_rules;
2851 fi
2852
2853 case $enable_silent_rules in # (((
2854   yes) AM_DEFAULT_VERBOSITY=0;;
2855    no) AM_DEFAULT_VERBOSITY=1;;
2856     *) AM_DEFAULT_VERBOSITY=1;;
2857 esac
2858 am_make=${MAKE-make}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2860 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2861 if ${am_cv_make_support_nested_variables+:} false; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   if $as_echo 'TRUE=$(BAR$(V))
2865 BAR0=false
2866 BAR1=true
2867 V=1
2868 am__doit:
2869         @$(TRUE)
2870 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2871   am_cv_make_support_nested_variables=yes
2872 else
2873   am_cv_make_support_nested_variables=no
2874 fi
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2877 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2878 if test $am_cv_make_support_nested_variables = yes; then
2879     AM_V='$(V)'
2880   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2881 else
2882   AM_V=$AM_DEFAULT_VERBOSITY
2883   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2884 fi
2885 AM_BACKSLASH='\'
2886
2887 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889   # is not polluted with repeated "-I."
2890   am__isrc=' -I$(srcdir)'
2891   # test to see if srcdir already configured
2892   if test -f $srcdir/config.status; then
2893     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2894   fi
2895 fi
2896
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899   if (cygpath --version) >/dev/null 2>/dev/null; then
2900     CYGPATH_W='cygpath -w'
2901   else
2902     CYGPATH_W=echo
2903   fi
2904 fi
2905
2906
2907 # Define the identity of the package.
2908  PACKAGE='openfst'
2909  VERSION='1.7.8'
2910
2911
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE "$PACKAGE"
2914 _ACEOF
2915
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define VERSION "$VERSION"
2919 _ACEOF
2920
2921 # Some tools Automake needs.
2922
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2924
2925
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2927
2928
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2930
2931
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2933
2934
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936
2937 # For better backward compatibility.  To be removed once Automake 1.9.x
2938 # dies out for good.  For more background, see:
2939 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2940 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2941 mkdir_p='$(MKDIR_P)'
2942
2943 # We need awk for the "check" target (and possibly the TAP driver).  The
2944 # system "awk" is bad on some platforms.
2945 # Always define AMTAR for backward compatibility.  Yes, it's still used
2946 # in the wild :-(  We should find a proper way to deprecate it ...
2947 AMTAR='$${TAR-tar}'
2948
2949
2950 # We'll loop over all known methods to create a tar archive until one works.
2951 _am_tools='gnutar  pax cpio none'
2952
2953 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2954
2955
2956
2957
2958
2959
2960 # POSIX will say in a future version that running "rm -f" with no argument
2961 # is OK; and we want to be able to make that assumption in our Makefile
2962 # recipes.  So use an aggressive probe to check that the usage we want is
2963 # actually supported "in the wild" to an acceptable degree.
2964 # See automake bug#10828.
2965 # To make any issue more visible, cause the running configure to be aborted
2966 # by default if the 'rm' program in use doesn't match our expectations; the
2967 # user can still override this though.
2968 if rm -f && rm -fr && rm -rf; then : OK; else
2969   cat >&2 <<'END'
2970 Oops!
2971
2972 Your 'rm' program seems unable to run without file operands specified
2973 on the command line, even when the '-f' option is present.  This is contrary
2974 to the behaviour of most rm programs out there, and not conforming with
2975 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2976
2977 Please tell bug-automake@gnu.org about your system, including the value
2978 of your $PATH and any error possibly output before this message.  This
2979 can help us improve future automake versions.
2980
2981 END
2982   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2983     echo 'Configuration will proceed anyway, since you have set the' >&2
2984     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2985     echo >&2
2986   else
2987     cat >&2 <<'END'
2988 Aborting the configuration process, to ensure you take notice of the issue.
2989
2990 You can download and install GNU coreutils to get an 'rm' implementation
2991 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2992
2993 If you want to complete the configuration process using your problematic
2994 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2995 to "yes", and re-run configure.
2996
2997 END
2998     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2999   fi
3000 fi
3001
3002 DEPDIR="${am__leading_dot}deps"
3003
3004 ac_config_commands="$ac_config_commands depfiles"
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3007 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3008 cat > confinc.mk << 'END'
3009 am__doit:
3010         @echo this is the am__doit target >confinc.out
3011 .PHONY: am__doit
3012 END
3013 am__include="#"
3014 am__quote=
3015 # BSD make does it like this.
3016 echo '.include "confinc.mk" # ignored' > confmf.BSD
3017 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3018 echo 'include confinc.mk # ignored' > confmf.GNU
3019 _am_result=no
3020 for s in GNU BSD; do
3021   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3022    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3023    ac_status=$?
3024    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025    (exit $ac_status); }
3026   case $?:`cat confinc.out 2>/dev/null` in #(
3027   '0:this is the am__doit target') :
3028     case $s in #(
3029   BSD) :
3030     am__include='.include' am__quote='"' ;; #(
3031   *) :
3032     am__include='include' am__quote='' ;;
3033 esac ;; #(
3034   *) :
3035      ;;
3036 esac
3037   if test "$am__include" != "#"; then
3038     _am_result="yes ($s style)"
3039     break
3040   fi
3041 done
3042 rm -f confinc.* confmf.*
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3044 $as_echo "${_am_result}" >&6; }
3045
3046 # Check whether --enable-dependency-tracking was given.
3047 if test "${enable_dependency_tracking+set}" = set; then :
3048   enableval=$enable_dependency_tracking;
3049 fi
3050
3051 if test "x$enable_dependency_tracking" != xno; then
3052   am_depcomp="$ac_aux_dir/depcomp"
3053   AMDEPBACKSLASH='\'
3054   am__nodep='_no'
3055 fi
3056  if test "x$enable_dependency_tracking" != xno; then
3057   AMDEP_TRUE=
3058   AMDEP_FALSE='#'
3059 else
3060   AMDEP_TRUE='#'
3061   AMDEP_FALSE=
3062 fi
3063
3064
3065 ac_ext=c
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 if test -n "$ac_tool_prefix"; then
3071   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   if test -n "$CC"; then
3079   ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086     for ac_exec_ext in '' $ac_executable_extensions; do
3087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093   done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 if test -z "$ac_cv_prog_CC"; then
3110   ac_ct_CC=$CC
3111   # Extract the first word of "gcc", so it can be a program name with args.
3112 set dummy gcc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3116   $as_echo_n "(cached) " >&6
3117 else
3118   if test -n "$ac_ct_CC"; then
3119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126     for ac_exec_ext in '' $ac_executable_extensions; do
3127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128     ac_cv_prog_ac_ct_CC="gcc"
3129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133   done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3142 else
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 fi
3146
3147   if test "x$ac_ct_CC" = x; then
3148     CC=""
3149   else
3150     case $cross_compiling:$ac_tool_warned in
3151 yes:)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3155 esac
3156     CC=$ac_ct_CC
3157   fi
3158 else
3159   CC="$ac_cv_prog_CC"
3160 fi
3161
3162 if test -z "$CC"; then
3163           if test -n "$ac_tool_prefix"; then
3164     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   if test -n "$CC"; then
3172   ac_cv_prog_CC="$CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     ac_cv_prog_CC="${ac_tool_prefix}cc"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201   fi
3202 fi
3203 if test -z "$CC"; then
3204   # Extract the first word of "cc", so it can be a program name with args.
3205 set dummy cc; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_CC+:} false; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   if test -n "$CC"; then
3212   ac_cv_prog_CC="$CC" # Let the user override the test.
3213 else
3214   ac_prog_rejected=no
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218   IFS=$as_save_IFS
3219   test -z "$as_dir" && as_dir=.
3220     for ac_exec_ext in '' $ac_executable_extensions; do
3221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3223        ac_prog_rejected=yes
3224        continue
3225      fi
3226     ac_cv_prog_CC="cc"
3227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228     break 2
3229   fi
3230 done
3231   done
3232 IFS=$as_save_IFS
3233
3234 if test $ac_prog_rejected = yes; then
3235   # We found a bogon in the path, so make sure we never use it.
3236   set dummy $ac_cv_prog_CC
3237   shift
3238   if test $# != 0; then
3239     # We chose a different compiler from the bogus one.
3240     # However, it has the same basename, so the bogon will be chosen
3241     # first if we set CC to just the basename; use the full file name.
3242     shift
3243     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3244   fi
3245 fi
3246 fi
3247 fi
3248 CC=$ac_cv_prog_CC
3249 if test -n "$CC"; then
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258 fi
3259 if test -z "$CC"; then
3260   if test -n "$ac_tool_prefix"; then
3261   for ac_prog in cl.exe
3262   do
3263     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268   $as_echo_n "(cached) " >&6
3269 else
3270   if test -n "$CC"; then
3271   ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276   IFS=$as_save_IFS
3277   test -z "$as_dir" && as_dir=.
3278     for ac_exec_ext in '' $ac_executable_extensions; do
3279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282     break 2
3283   fi
3284 done
3285   done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300     test -n "$CC" && break
3301   done
3302 fi
3303 if test -z "$CC"; then
3304   ac_ct_CC=$CC
3305   for ac_prog in cl.exe
3306 do
3307   # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3312   $as_echo_n "(cached) " >&6
3313 else
3314   if test -n "$ac_ct_CC"; then
3315   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322     for ac_exec_ext in '' $ac_executable_extensions; do
3323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324     ac_cv_prog_ac_ct_CC="$ac_prog"
3325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326     break 2
3327   fi
3328 done
3329   done
3330 IFS=$as_save_IFS
3331
3332 fi
3333 fi
3334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335 if test -n "$ac_ct_CC"; then
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3337 $as_echo "$ac_ct_CC" >&6; }
3338 else
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344   test -n "$ac_ct_CC" && break
3345 done
3346
3347   if test "x$ac_ct_CC" = x; then
3348     CC=""
3349   else
3350     case $cross_compiling:$ac_tool_warned in
3351 yes:)
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3355 esac
3356     CC=$ac_ct_CC
3357   fi
3358 fi
3359
3360 fi
3361
3362
3363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details" "$LINENO" 5; }
3367
3368 # Provide some information about the compiler.
3369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3370 set X $ac_compile
3371 ac_compiler=$2
3372 for ac_option in --version -v -V -qversion; do
3373   { { ac_try="$ac_compiler $ac_option >&5"
3374 case "(($ac_try" in
3375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376   *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3381   ac_status=$?
3382   if test -s conftest.err; then
3383     sed '10a\
3384 ... rest of stderr output deleted ...
3385          10q' conftest.err >conftest.er1
3386     cat conftest.er1 >&5
3387   fi
3388   rm -f conftest.er1 conftest.err
3389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390   test $ac_status = 0; }
3391 done
3392
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h.  */
3395
3396 int
3397 main ()
3398 {
3399
3400   ;
3401   return 0;
3402 }
3403 _ACEOF
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3408 # of exeext.
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410 $as_echo_n "checking whether the C compiler works... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3412
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3415
3416 ac_rmfiles=
3417 for ac_file in $ac_files
3418 do
3419   case $ac_file in
3420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3422   esac
3423 done
3424 rm -f $ac_rmfiles
3425
3426 if { { ac_try="$ac_link_default"
3427 case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433   (eval "$ac_link_default") 2>&5
3434   ac_status=$?
3435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436   test $ac_status = 0; }; then :
3437   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3441 # Autoconf.
3442 for ac_file in $ac_files ''
3443 do
3444   test -f "$ac_file" || continue
3445   case $ac_file in
3446     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3447         ;;
3448     [ab].out )
3449         # We found the default executable, but exeext='' is most
3450         # certainly right.
3451         break;;
3452     *.* )
3453         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454         then :; else
3455            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456         fi
3457         # We set ac_cv_exeext here because the later test for it is not
3458         # safe: cross compilers may not add the suffix if given an `-o'
3459         # argument, so we may need to know it at that point already.
3460         # Even if this section looks crufty: it has the advantage of
3461         # actually working.
3462         break;;
3463     * )
3464         break;;
3465   esac
3466 done
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3468
3469 else
3470   ac_file=''
3471 fi
3472 if test -z "$ac_file"; then :
3473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error 77 "C compiler cannot create executables
3481 See \`config.log' for more details" "$LINENO" 5; }
3482 else
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487 $as_echo_n "checking for C compiler default output file name... " >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3489 $as_echo "$ac_file" >&6; }
3490 ac_exeext=$ac_cv_exeext
3491
3492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3493 ac_clean_files=$ac_clean_files_save
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3495 $as_echo_n "checking for suffix of executables... " >&6; }
3496 if { { ac_try="$ac_link"
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_link") 2>&5
3504   ac_status=$?
3505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506   test $ac_status = 0; }; then :
3507   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3508 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3509 # work properly (i.e., refer to `conftest.exe'), while it won't with
3510 # `rm'.
3511 for ac_file in conftest.exe conftest conftest.*; do
3512   test -f "$ac_file" || continue
3513   case $ac_file in
3514     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516           break;;
3517     * ) break;;
3518   esac
3519 done
3520 else
3521   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3524 See \`config.log' for more details" "$LINENO" 5; }
3525 fi
3526 rm -f conftest conftest$ac_cv_exeext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3528 $as_echo "$ac_cv_exeext" >&6; }
3529
3530 rm -f conftest.$ac_ext
3531 EXEEXT=$ac_cv_exeext
3532 ac_exeext=$EXEEXT
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535 #include <stdio.h>
3536 int
3537 main ()
3538 {
3539 FILE *f = fopen ("conftest.out", "w");
3540  return ferror (f) || fclose (f) != 0;
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 ac_clean_files="$ac_clean_files conftest.out"
3547 # Check that the compiler produces executables we can run.  If not, either
3548 # the compiler is broken, or we cross compile.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3550 $as_echo_n "checking whether we are cross compiling... " >&6; }
3551 if test "$cross_compiling" != yes; then
3552   { { ac_try="$ac_link"
3553 case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559   (eval "$ac_link") 2>&5
3560   ac_status=$?
3561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562   test $ac_status = 0; }
3563   if { ac_try='./conftest$ac_cv_exeext'
3564   { { case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570   (eval "$ac_try") 2>&5
3571   ac_status=$?
3572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573   test $ac_status = 0; }; }; then
3574     cross_compiling=no
3575   else
3576     if test "$cross_compiling" = maybe; then
3577         cross_compiling=yes
3578     else
3579         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "cannot run C compiled programs.
3582 If you meant to cross compile, use \`--host'.
3583 See \`config.log' for more details" "$LINENO" 5; }
3584     fi
3585   fi
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3588 $as_echo "$cross_compiling" >&6; }
3589
3590 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3591 ac_clean_files=$ac_clean_files_save
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3593 $as_echo_n "checking for suffix of object files... " >&6; }
3594 if ${ac_cv_objext+:} false; then :
3595   $as_echo_n "(cached) " >&6
3596 else
3597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h.  */
3599
3600 int
3601 main ()
3602 {
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.o conftest.obj
3609 if { { ac_try="$ac_compile"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616   (eval "$ac_compile") 2>&5
3617   ac_status=$?
3618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619   test $ac_status = 0; }; then :
3620   for ac_file in conftest.o conftest.obj conftest.*; do
3621   test -f "$ac_file" || continue;
3622   case $ac_file in
3623     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3624     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3625        break;;
3626   esac
3627 done
3628 else
3629   $as_echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot compute suffix of object files: cannot compile
3635 See \`config.log' for more details" "$LINENO" 5; }
3636 fi
3637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3640 $as_echo "$ac_cv_objext" >&6; }
3641 OBJEXT=$ac_cv_objext
3642 ac_objext=$OBJEXT
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3645 if ${ac_cv_c_compiler_gnu+:} false; then :
3646   $as_echo_n "(cached) " >&6
3647 else
3648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654 #ifndef __GNUC__
3655        choke me
3656 #endif
3657
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663   ac_compiler_gnu=yes
3664 else
3665   ac_compiler_gnu=no
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3673 if test $ac_compiler_gnu = yes; then
3674   GCC=yes
3675 else
3676   GCC=
3677 fi
3678 ac_test_CFLAGS=${CFLAGS+set}
3679 ac_save_CFLAGS=$CFLAGS
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3682 if ${ac_cv_prog_cc_g+:} false; then :
3683   $as_echo_n "(cached) " >&6
3684 else
3685   ac_save_c_werror_flag=$ac_c_werror_flag
3686    ac_c_werror_flag=yes
3687    ac_cv_prog_cc_g=no
3688    CFLAGS="-g"
3689    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h.  */
3691
3692 int
3693 main ()
3694 {
3695
3696   ;
3697   return 0;
3698 }
3699 _ACEOF
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701   ac_cv_prog_cc_g=yes
3702 else
3703   CFLAGS=""
3704       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h.  */
3706
3707 int
3708 main ()
3709 {
3710
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716
3717 else
3718   ac_c_werror_flag=$ac_save_c_werror_flag
3719          CFLAGS="-g"
3720          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h.  */
3722
3723 int
3724 main ()
3725 {
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732   ac_cv_prog_cc_g=yes
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739    ac_c_werror_flag=$ac_save_c_werror_flag
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3742 $as_echo "$ac_cv_prog_cc_g" >&6; }
3743 if test "$ac_test_CFLAGS" = set; then
3744   CFLAGS=$ac_save_CFLAGS
3745 elif test $ac_cv_prog_cc_g = yes; then
3746   if test "$GCC" = yes; then
3747     CFLAGS="-g -O2"
3748   else
3749     CFLAGS="-g"
3750   fi
3751 else
3752   if test "$GCC" = yes; then
3753     CFLAGS="-O2"
3754   else
3755     CFLAGS=
3756   fi
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3760 if ${ac_cv_prog_cc_c89+:} false; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763   ac_cv_prog_cc_c89=no
3764 ac_save_CC=$CC
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h.  */
3767 #include <stdarg.h>
3768 #include <stdio.h>
3769 struct stat;
3770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3771 struct buf { int x; };
3772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773 static char *e (p, i)
3774      char **p;
3775      int i;
3776 {
3777   return p[i];
3778 }
3779 static char *f (char * (*g) (char **, int), char **p, ...)
3780 {
3781   char *s;
3782   va_list v;
3783   va_start (v,p);
3784   s = g (p, va_arg (v,int));
3785   va_end (v);
3786   return s;
3787 }
3788
3789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3790    function prototypes and stuff, but not '\xHH' hex character constants.
3791    These don't provoke an error unfortunately, instead are silently treated
3792    as 'x'.  The following induces an error, until -std is added to get
3793    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3794    array size at least.  It's necessary to write '\x00'==0 to get something
3795    that's true only with -std.  */
3796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797
3798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799    inside strings and character constants.  */
3800 #define FOO(x) 'x'
3801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802
3803 int test (int i, double x);
3804 struct s1 {int (*f) (int a);};
3805 struct s2 {int (*f) (double a);};
3806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3807 int argc;
3808 char **argv;
3809 int
3810 main ()
3811 {
3812 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3813   ;
3814   return 0;
3815 }
3816 _ACEOF
3817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819 do
3820   CC="$ac_save_CC $ac_arg"
3821   if ac_fn_c_try_compile "$LINENO"; then :
3822   ac_cv_prog_cc_c89=$ac_arg
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext
3825   test "x$ac_cv_prog_cc_c89" != "xno" && break
3826 done
3827 rm -f conftest.$ac_ext
3828 CC=$ac_save_CC
3829
3830 fi
3831 # AC_CACHE_VAL
3832 case "x$ac_cv_prog_cc_c89" in
3833   x)
3834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3835 $as_echo "none needed" >&6; } ;;
3836   xno)
3837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3838 $as_echo "unsupported" >&6; } ;;
3839   *)
3840     CC="$CC $ac_cv_prog_cc_c89"
3841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3843 esac
3844 if test "x$ac_cv_prog_cc_c89" != xno; then :
3845
3846 fi
3847
3848 ac_ext=c
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854 ac_ext=c
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3860 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3861 if ${am_cv_prog_cc_c_o+:} false; then :
3862   $as_echo_n "(cached) " >&6
3863 else
3864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h.  */
3866
3867 int
3868 main ()
3869 {
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875   # Make sure it works both with $CC and with simple cc.
3876   # Following AC_PROG_CC_C_O, we do the test twice because some
3877   # compilers refuse to overwrite an existing .o file with -o,
3878   # though they will create one.
3879   am_cv_prog_cc_c_o=yes
3880   for am_i in 1 2; do
3881     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3882    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3883    ac_status=$?
3884    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885    (exit $ac_status); } \
3886          && test -f conftest2.$ac_objext; then
3887       : OK
3888     else
3889       am_cv_prog_cc_c_o=no
3890       break
3891     fi
3892   done
3893   rm -f core conftest*
3894   unset am_i
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3897 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3898 if test "$am_cv_prog_cc_c_o" != yes; then
3899    # Losing compiler, so override with the script.
3900    # FIXME: It is wrong to rewrite CC.
3901    # But if we don't then we get into trouble of one sort or another.
3902    # A longer-term fix would be to have automake use am__CC in this case,
3903    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3904    CC="$am_aux_dir/compile $CC"
3905 fi
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911
3912
3913 depcc="$CC"   am_compiler_list=
3914
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3916 $as_echo_n "checking dependency style of $depcc... " >&6; }
3917 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3918   $as_echo_n "(cached) " >&6
3919 else
3920   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3921   # We make a subdir and do the tests there.  Otherwise we can end up
3922   # making bogus files that we don't know about and never remove.  For
3923   # instance it was reported that on HP-UX the gcc test will end up
3924   # making a dummy file named 'D' -- because '-MD' means "put the output
3925   # in D".
3926   rm -rf conftest.dir
3927   mkdir conftest.dir
3928   # Copy depcomp to subdir because otherwise we won't find it if we're
3929   # using a relative directory.
3930   cp "$am_depcomp" conftest.dir
3931   cd conftest.dir
3932   # We will build objects and dependencies in a subdirectory because
3933   # it helps to detect inapplicable dependency modes.  For instance
3934   # both Tru64's cc and ICC support -MD to output dependencies as a
3935   # side effect of compilation, but ICC will put the dependencies in
3936   # the current directory while Tru64 will put them in the object
3937   # directory.
3938   mkdir sub
3939
3940   am_cv_CC_dependencies_compiler_type=none
3941   if test "$am_compiler_list" = ""; then
3942      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3943   fi
3944   am__universal=false
3945   case " $depcc " in #(
3946      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3947      esac
3948
3949   for depmode in $am_compiler_list; do
3950     # Setup a source with many dependencies, because some compilers
3951     # like to wrap large dependency lists on column 80 (with \), and
3952     # we should not choose a depcomp mode which is confused by this.
3953     #
3954     # We need to recreate these files for each test, as the compiler may
3955     # overwrite some of them when testing with obscure command lines.
3956     # This happens at least with the AIX C compiler.
3957     : > sub/conftest.c
3958     for i in 1 2 3 4 5 6; do
3959       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3960       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3961       # Solaris 10 /bin/sh.
3962       echo '/* dummy */' > sub/conftst$i.h
3963     done
3964     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3965
3966     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3967     # mode.  It turns out that the SunPro C++ compiler does not properly
3968     # handle '-M -o', and we need to detect this.  Also, some Intel
3969     # versions had trouble with output in subdirs.
3970     am__obj=sub/conftest.${OBJEXT-o}
3971     am__minus_obj="-o $am__obj"
3972     case $depmode in
3973     gcc)
3974       # This depmode causes a compiler race in universal mode.
3975       test "$am__universal" = false || continue
3976       ;;
3977     nosideeffect)
3978       # After this tag, mechanisms are not by side-effect, so they'll
3979       # only be used when explicitly requested.
3980       if test "x$enable_dependency_tracking" = xyes; then
3981         continue
3982       else
3983         break
3984       fi
3985       ;;
3986     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3987       # This compiler won't grok '-c -o', but also, the minuso test has
3988       # not run yet.  These depmodes are late enough in the game, and
3989       # so weak that their functioning should not be impacted.
3990       am__obj=conftest.${OBJEXT-o}
3991       am__minus_obj=
3992       ;;
3993     none) break ;;
3994     esac
3995     if depmode=$depmode \
3996        source=sub/conftest.c object=$am__obj \
3997        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3998        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3999          >/dev/null 2>conftest.err &&
4000        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4001        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4002        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4003        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4004       # icc doesn't choke on unknown options, it will just issue warnings
4005       # or remarks (even with -Werror).  So we grep stderr for any message
4006       # that says an option was ignored or not supported.
4007       # When given -MP, icc 7.0 and 7.1 complain thusly:
4008       #   icc: Command line warning: ignoring option '-M'; no argument required
4009       # The diagnosis changed in icc 8.0:
4010       #   icc: Command line remark: option '-MP' not supported
4011       if (grep 'ignoring option' conftest.err ||
4012           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4013         am_cv_CC_dependencies_compiler_type=$depmode
4014         break
4015       fi
4016     fi
4017   done
4018
4019   cd ..
4020   rm -rf conftest.dir
4021 else
4022   am_cv_CC_dependencies_compiler_type=none
4023 fi
4024
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4027 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4028 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4029
4030  if
4031   test "x$enable_dependency_tracking" != xno \
4032   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4033   am__fastdepCC_TRUE=
4034   am__fastdepCC_FALSE='#'
4035 else
4036   am__fastdepCC_TRUE='#'
4037   am__fastdepCC_FALSE=
4038 fi
4039
4040
4041
4042 if test -n "$ac_tool_prefix"; then
4043   for ac_prog in ar lib "link -lib"
4044   do
4045     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 $as_echo_n "checking for $ac_word... " >&6; }
4049 if ${ac_cv_prog_AR+:} false; then :
4050   $as_echo_n "(cached) " >&6
4051 else
4052   if test -n "$AR"; then
4053   ac_cv_prog_AR="$AR" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060     for ac_exec_ext in '' $ac_executable_extensions; do
4061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064     break 2
4065   fi
4066 done
4067   done
4068 IFS=$as_save_IFS
4069
4070 fi
4071 fi
4072 AR=$ac_cv_prog_AR
4073 if test -n "$AR"; then
4074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4075 $as_echo "$AR" >&6; }
4076 else
4077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4079 fi
4080
4081
4082     test -n "$AR" && break
4083   done
4084 fi
4085 if test -z "$AR"; then
4086   ac_ct_AR=$AR
4087   for ac_prog in ar lib "link -lib"
4088 do
4089   # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy $ac_prog; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096   if test -n "$ac_ct_AR"; then
4097   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104     for ac_exec_ext in '' $ac_executable_extensions; do
4105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106     ac_cv_prog_ac_ct_AR="$ac_prog"
4107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108     break 2
4109   fi
4110 done
4111   done
4112 IFS=$as_save_IFS
4113
4114 fi
4115 fi
4116 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4117 if test -n "$ac_ct_AR"; then
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4119 $as_echo "$ac_ct_AR" >&6; }
4120 else
4121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124
4125
4126   test -n "$ac_ct_AR" && break
4127 done
4128
4129   if test "x$ac_ct_AR" = x; then
4130     AR="false"
4131   else
4132     case $cross_compiling:$ac_tool_warned in
4133 yes:)
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4137 esac
4138     AR=$ac_ct_AR
4139   fi
4140 fi
4141
4142 : ${AR=ar}
4143
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4145 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4146 if ${am_cv_ar_interface+:} false; then :
4147   $as_echo_n "(cached) " >&6
4148 else
4149   ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155    am_cv_ar_interface=ar
4156    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h.  */
4158 int some_variable = 0;
4159 _ACEOF
4160 if ac_fn_c_try_compile "$LINENO"; then :
4161   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4162       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4163   (eval $am_ar_try) 2>&5
4164   ac_status=$?
4165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166   test $ac_status = 0; }
4167       if test "$ac_status" -eq 0; then
4168         am_cv_ar_interface=ar
4169       else
4170         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4171         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4172   (eval $am_ar_try) 2>&5
4173   ac_status=$?
4174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175   test $ac_status = 0; }
4176         if test "$ac_status" -eq 0; then
4177           am_cv_ar_interface=lib
4178         else
4179           am_cv_ar_interface=unknown
4180         fi
4181       fi
4182       rm -f conftest.lib libconftest.a
4183
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186    ac_ext=c
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191
4192 fi
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4194 $as_echo "$am_cv_ar_interface" >&6; }
4195
4196 case $am_cv_ar_interface in
4197 ar)
4198   ;;
4199 lib)
4200   # Microsoft lib, so override with the ar-lib wrapper script.
4201   # FIXME: It is wrong to rewrite AR.
4202   # But if we don't then we get into trouble of one sort or another.
4203   # A longer-term fix would be to have automake use am__AR in this case,
4204   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4205   # similar.
4206   AR="$am_aux_dir/ar-lib $AR"
4207   ;;
4208 unknown)
4209   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4210   ;;
4211 esac
4212
4213
4214 ac_ext=cpp
4215 ac_cpp='$CXXCPP $CPPFLAGS'
4216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4219 if test -z "$CXX"; then
4220   if test -n "$CCC"; then
4221     CXX=$CCC
4222   else
4223     if test -n "$ac_tool_prefix"; then
4224   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4225   do
4226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_CXX+:} false; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   if test -n "$CXX"; then
4234   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241     for ac_exec_ext in '' $ac_executable_extensions; do
4242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245     break 2
4246   fi
4247 done
4248   done
4249 IFS=$as_save_IFS
4250
4251 fi
4252 fi
4253 CXX=$ac_cv_prog_CXX
4254 if test -n "$CXX"; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4256 $as_echo "$CXX" >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 fi
4261
4262
4263     test -n "$CXX" && break
4264   done
4265 fi
4266 if test -z "$CXX"; then
4267   ac_ct_CXX=$CXX
4268   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4269 do
4270   # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4275   $as_echo_n "(cached) " >&6
4276 else
4277   if test -n "$ac_ct_CXX"; then
4278   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285     for ac_exec_ext in '' $ac_executable_extensions; do
4286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287     ac_cv_prog_ac_ct_CXX="$ac_prog"
4288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292   done
4293 IFS=$as_save_IFS
4294
4295 fi
4296 fi
4297 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4298 if test -n "$ac_ct_CXX"; then
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4300 $as_echo "$ac_ct_CXX" >&6; }
4301 else
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306
4307   test -n "$ac_ct_CXX" && break
4308 done
4309
4310   if test "x$ac_ct_CXX" = x; then
4311     CXX="g++"
4312   else
4313     case $cross_compiling:$ac_tool_warned in
4314 yes:)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4318 esac
4319     CXX=$ac_ct_CXX
4320   fi
4321 fi
4322
4323   fi
4324 fi
4325 # Provide some information about the compiler.
4326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4327 set X $ac_compile
4328 ac_compiler=$2
4329 for ac_option in --version -v -V -qversion; do
4330   { { ac_try="$ac_compiler $ac_option >&5"
4331 case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 $as_echo "$ac_try_echo"; } >&5
4337   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4338   ac_status=$?
4339   if test -s conftest.err; then
4340     sed '10a\
4341 ... rest of stderr output deleted ...
4342          10q' conftest.err >conftest.er1
4343     cat conftest.er1 >&5
4344   fi
4345   rm -f conftest.er1 conftest.err
4346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347   test $ac_status = 0; }
4348 done
4349
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4351 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4352 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h.  */
4357
4358 int
4359 main ()
4360 {
4361 #ifndef __GNUC__
4362        choke me
4363 #endif
4364
4365   ;
4366   return 0;
4367 }
4368 _ACEOF
4369 if ac_fn_cxx_try_compile "$LINENO"; then :
4370   ac_compiler_gnu=yes
4371 else
4372   ac_compiler_gnu=no
4373 fi
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4376
4377 fi
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4379 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4380 if test $ac_compiler_gnu = yes; then
4381   GXX=yes
4382 else
4383   GXX=
4384 fi
4385 ac_test_CXXFLAGS=${CXXFLAGS+set}
4386 ac_save_CXXFLAGS=$CXXFLAGS
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4388 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4389 if ${ac_cv_prog_cxx_g+:} false; then :
4390   $as_echo_n "(cached) " >&6
4391 else
4392   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4393    ac_cxx_werror_flag=yes
4394    ac_cv_prog_cxx_g=no
4395    CXXFLAGS="-g"
4396    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h.  */
4398
4399 int
4400 main ()
4401 {
4402
4403   ;
4404   return 0;
4405 }
4406 _ACEOF
4407 if ac_fn_cxx_try_compile "$LINENO"; then :
4408   ac_cv_prog_cxx_g=yes
4409 else
4410   CXXFLAGS=""
4411       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h.  */
4413
4414 int
4415 main ()
4416 {
4417
4418   ;
4419   return 0;
4420 }
4421 _ACEOF
4422 if ac_fn_cxx_try_compile "$LINENO"; then :
4423
4424 else
4425   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4426          CXXFLAGS="-g"
4427          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h.  */
4429
4430 int
4431 main ()
4432 {
4433
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438 if ac_fn_cxx_try_compile "$LINENO"; then :
4439   ac_cv_prog_cxx_g=yes
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4449 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4450 if test "$ac_test_CXXFLAGS" = set; then
4451   CXXFLAGS=$ac_save_CXXFLAGS
4452 elif test $ac_cv_prog_cxx_g = yes; then
4453   if test "$GXX" = yes; then
4454     CXXFLAGS="-g -O2"
4455   else
4456     CXXFLAGS="-g"
4457   fi
4458 else
4459   if test "$GXX" = yes; then
4460     CXXFLAGS="-O2"
4461   else
4462     CXXFLAGS=
4463   fi
4464 fi
4465 ac_ext=c
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470
4471 depcc="$CXX"  am_compiler_list=
4472
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4474 $as_echo_n "checking dependency style of $depcc... " >&6; }
4475 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4476   $as_echo_n "(cached) " >&6
4477 else
4478   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4479   # We make a subdir and do the tests there.  Otherwise we can end up
4480   # making bogus files that we don't know about and never remove.  For
4481   # instance it was reported that on HP-UX the gcc test will end up
4482   # making a dummy file named 'D' -- because '-MD' means "put the output
4483   # in D".
4484   rm -rf conftest.dir
4485   mkdir conftest.dir
4486   # Copy depcomp to subdir because otherwise we won't find it if we're
4487   # using a relative directory.
4488   cp "$am_depcomp" conftest.dir
4489   cd conftest.dir
4490   # We will build objects and dependencies in a subdirectory because
4491   # it helps to detect inapplicable dependency modes.  For instance
4492   # both Tru64's cc and ICC support -MD to output dependencies as a
4493   # side effect of compilation, but ICC will put the dependencies in
4494   # the current directory while Tru64 will put them in the object
4495   # directory.
4496   mkdir sub
4497
4498   am_cv_CXX_dependencies_compiler_type=none
4499   if test "$am_compiler_list" = ""; then
4500      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4501   fi
4502   am__universal=false
4503   case " $depcc " in #(
4504      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4505      esac
4506
4507   for depmode in $am_compiler_list; do
4508     # Setup a source with many dependencies, because some compilers
4509     # like to wrap large dependency lists on column 80 (with \), and
4510     # we should not choose a depcomp mode which is confused by this.
4511     #
4512     # We need to recreate these files for each test, as the compiler may
4513     # overwrite some of them when testing with obscure command lines.
4514     # This happens at least with the AIX C compiler.
4515     : > sub/conftest.c
4516     for i in 1 2 3 4 5 6; do
4517       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4518       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4519       # Solaris 10 /bin/sh.
4520       echo '/* dummy */' > sub/conftst$i.h
4521     done
4522     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4523
4524     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4525     # mode.  It turns out that the SunPro C++ compiler does not properly
4526     # handle '-M -o', and we need to detect this.  Also, some Intel
4527     # versions had trouble with output in subdirs.
4528     am__obj=sub/conftest.${OBJEXT-o}
4529     am__minus_obj="-o $am__obj"
4530     case $depmode in
4531     gcc)
4532       # This depmode causes a compiler race in universal mode.
4533       test "$am__universal" = false || continue
4534       ;;
4535     nosideeffect)
4536       # After this tag, mechanisms are not by side-effect, so they'll
4537       # only be used when explicitly requested.
4538       if test "x$enable_dependency_tracking" = xyes; then
4539         continue
4540       else
4541         break
4542       fi
4543       ;;
4544     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4545       # This compiler won't grok '-c -o', but also, the minuso test has
4546       # not run yet.  These depmodes are late enough in the game, and
4547       # so weak that their functioning should not be impacted.
4548       am__obj=conftest.${OBJEXT-o}
4549       am__minus_obj=
4550       ;;
4551     none) break ;;
4552     esac
4553     if depmode=$depmode \
4554        source=sub/conftest.c object=$am__obj \
4555        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4556        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4557          >/dev/null 2>conftest.err &&
4558        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4559        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4560        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4561        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4562       # icc doesn't choke on unknown options, it will just issue warnings
4563       # or remarks (even with -Werror).  So we grep stderr for any message
4564       # that says an option was ignored or not supported.
4565       # When given -MP, icc 7.0 and 7.1 complain thusly:
4566       #   icc: Command line warning: ignoring option '-M'; no argument required
4567       # The diagnosis changed in icc 8.0:
4568       #   icc: Command line remark: option '-MP' not supported
4569       if (grep 'ignoring option' conftest.err ||
4570           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4571         am_cv_CXX_dependencies_compiler_type=$depmode
4572         break
4573       fi
4574     fi
4575   done
4576
4577   cd ..
4578   rm -rf conftest.dir
4579 else
4580   am_cv_CXX_dependencies_compiler_type=none
4581 fi
4582
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4585 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4586 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4587
4588  if
4589   test "x$enable_dependency_tracking" != xno \
4590   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4591   am__fastdepCXX_TRUE=
4592   am__fastdepCXX_FALSE='#'
4593 else
4594   am__fastdepCXX_TRUE='#'
4595   am__fastdepCXX_FALSE=
4596 fi
4597
4598
4599 # This library does not throw exceptions, so we do not generate exception
4600 # handling code. However, users are free to re-enable exception handling.
4601 CXX="$CXX -std=c++11 -fno-exceptions"
4602
4603 # Check whether --enable-static was given.
4604 if test "${enable_static+set}" = set; then :
4605   enableval=$enable_static; p=${PACKAGE-default}
4606     case $enableval in
4607     yes) enable_static=yes ;;
4608     no) enable_static=no ;;
4609     *)
4610      enable_static=no
4611       # Look at the argument we got.  We use all the common list separators.
4612       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4613       for pkg in $enableval; do
4614         IFS=$lt_save_ifs
4615         if test "X$pkg" = "X$p"; then
4616           enable_static=yes
4617         fi
4618       done
4619       IFS=$lt_save_ifs
4620       ;;
4621     esac
4622 else
4623   enable_static=no
4624 fi
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634 case `pwd` in
4635   *\ * | *\     *)
4636     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4637 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4638 esac
4639
4640
4641
4642 macro_version='2.4.6'
4643 macro_revision='2.4.6'
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657 ltmain=$ac_aux_dir/ltmain.sh
4658
4659 # Make sure we can run config.sub.
4660 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4661   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4662
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4664 $as_echo_n "checking build system type... " >&6; }
4665 if ${ac_cv_build+:} false; then :
4666   $as_echo_n "(cached) " >&6
4667 else
4668   ac_build_alias=$build_alias
4669 test "x$ac_build_alias" = x &&
4670   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4671 test "x$ac_build_alias" = x &&
4672   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4673 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4674   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4675
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4678 $as_echo "$ac_cv_build" >&6; }
4679 case $ac_cv_build in
4680 *-*-*) ;;
4681 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4682 esac
4683 build=$ac_cv_build
4684 ac_save_IFS=$IFS; IFS='-'
4685 set x $ac_cv_build
4686 shift
4687 build_cpu=$1
4688 build_vendor=$2
4689 shift; shift
4690 # Remember, the first character of IFS is used to create $*,
4691 # except with old shells:
4692 build_os=$*
4693 IFS=$ac_save_IFS
4694 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4695
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4698 $as_echo_n "checking host system type... " >&6; }
4699 if ${ac_cv_host+:} false; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if test "x$host_alias" = x; then
4703   ac_cv_host=$ac_cv_build
4704 else
4705   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4706     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4707 fi
4708
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4711 $as_echo "$ac_cv_host" >&6; }
4712 case $ac_cv_host in
4713 *-*-*) ;;
4714 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4715 esac
4716 host=$ac_cv_host
4717 ac_save_IFS=$IFS; IFS='-'
4718 set x $ac_cv_host
4719 shift
4720 host_cpu=$1
4721 host_vendor=$2
4722 shift; shift
4723 # Remember, the first character of IFS is used to create $*,
4724 # except with old shells:
4725 host_os=$*
4726 IFS=$ac_save_IFS
4727 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4728
4729
4730 # Backslashify metacharacters that are still active within
4731 # double-quoted strings.
4732 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4733
4734 # Same as above, but do not quote variable references.
4735 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4736
4737 # Sed substitution to delay expansion of an escaped shell variable in a
4738 # double_quote_subst'ed string.
4739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4740
4741 # Sed substitution to delay expansion of an escaped single quote.
4742 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4743
4744 # Sed substitution to avoid accidental globbing in evaled expressions
4745 no_glob_subst='s/\*/\\\*/g'
4746
4747 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4752 $as_echo_n "checking how to print strings... " >&6; }
4753 # Test print first, because it will be a builtin if present.
4754 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4755    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4756   ECHO='print -r --'
4757 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4758   ECHO='printf %s\n'
4759 else
4760   # Use this function as a fallback that always works.
4761   func_fallback_echo ()
4762   {
4763     eval 'cat <<_LTECHO_EOF
4764 $1
4765 _LTECHO_EOF'
4766   }
4767   ECHO='func_fallback_echo'
4768 fi
4769
4770 # func_echo_all arg...
4771 # Invoke $ECHO with all args, space-separated.
4772 func_echo_all ()
4773 {
4774     $ECHO ""
4775 }
4776
4777 case $ECHO in
4778   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4779 $as_echo "printf" >&6; } ;;
4780   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4781 $as_echo "print -r" >&6; } ;;
4782   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4783 $as_echo "cat" >&6; } ;;
4784 esac
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4801 if ${ac_cv_path_SED+:} false; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4805      for ac_i in 1 2 3 4 5 6 7; do
4806        ac_script="$ac_script$as_nl$ac_script"
4807      done
4808      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4809      { ac_script=; unset ac_script;}
4810      if test -z "$SED"; then
4811   ac_path_SED_found=false
4812   # Loop through the user's path and test for each of PROGNAME-LIST
4813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816   IFS=$as_save_IFS
4817   test -z "$as_dir" && as_dir=.
4818     for ac_prog in sed gsed; do
4819     for ac_exec_ext in '' $ac_executable_extensions; do
4820       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4821       as_fn_executable_p "$ac_path_SED" || continue
4822 # Check for GNU ac_path_SED and select it if it is found.
4823   # Check for GNU $ac_path_SED
4824 case `"$ac_path_SED" --version 2>&1` in
4825 *GNU*)
4826   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4827 *)
4828   ac_count=0
4829   $as_echo_n 0123456789 >"conftest.in"
4830   while :
4831   do
4832     cat "conftest.in" "conftest.in" >"conftest.tmp"
4833     mv "conftest.tmp" "conftest.in"
4834     cp "conftest.in" "conftest.nl"
4835     $as_echo '' >> "conftest.nl"
4836     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838     as_fn_arith $ac_count + 1 && ac_count=$as_val
4839     if test $ac_count -gt ${ac_path_SED_max-0}; then
4840       # Best one so far, save it but keep looking for a better one
4841       ac_cv_path_SED="$ac_path_SED"
4842       ac_path_SED_max=$ac_count
4843     fi
4844     # 10*(2^10) chars as input seems more than enough
4845     test $ac_count -gt 10 && break
4846   done
4847   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848 esac
4849
4850       $ac_path_SED_found && break 3
4851     done
4852   done
4853   done
4854 IFS=$as_save_IFS
4855   if test -z "$ac_cv_path_SED"; then
4856     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4857   fi
4858 else
4859   ac_cv_path_SED=$SED
4860 fi
4861
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4864 $as_echo "$ac_cv_path_SED" >&6; }
4865  SED="$ac_cv_path_SED"
4866   rm -f conftest.sed
4867
4868 test -z "$SED" && SED=sed
4869 Xsed="$SED -e 1s/^X//"
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4882 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4883 if ${ac_cv_path_GREP+:} false; then :
4884   $as_echo_n "(cached) " >&6
4885 else
4886   if test -z "$GREP"; then
4887   ac_path_GREP_found=false
4888   # Loop through the user's path and test for each of PROGNAME-LIST
4889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4891 do
4892   IFS=$as_save_IFS
4893   test -z "$as_dir" && as_dir=.
4894     for ac_prog in grep ggrep; do
4895     for ac_exec_ext in '' $ac_executable_extensions; do
4896       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4897       as_fn_executable_p "$ac_path_GREP" || continue
4898 # Check for GNU ac_path_GREP and select it if it is found.
4899   # Check for GNU $ac_path_GREP
4900 case `"$ac_path_GREP" --version 2>&1` in
4901 *GNU*)
4902   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4903 *)
4904   ac_count=0
4905   $as_echo_n 0123456789 >"conftest.in"
4906   while :
4907   do
4908     cat "conftest.in" "conftest.in" >"conftest.tmp"
4909     mv "conftest.tmp" "conftest.in"
4910     cp "conftest.in" "conftest.nl"
4911     $as_echo 'GREP' >> "conftest.nl"
4912     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4913     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4914     as_fn_arith $ac_count + 1 && ac_count=$as_val
4915     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4916       # Best one so far, save it but keep looking for a better one
4917       ac_cv_path_GREP="$ac_path_GREP"
4918       ac_path_GREP_max=$ac_count
4919     fi
4920     # 10*(2^10) chars as input seems more than enough
4921     test $ac_count -gt 10 && break
4922   done
4923   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4924 esac
4925
4926       $ac_path_GREP_found && break 3
4927     done
4928   done
4929   done
4930 IFS=$as_save_IFS
4931   if test -z "$ac_cv_path_GREP"; then
4932     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4933   fi
4934 else
4935   ac_cv_path_GREP=$GREP
4936 fi
4937
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4940 $as_echo "$ac_cv_path_GREP" >&6; }
4941  GREP="$ac_cv_path_GREP"
4942
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4945 $as_echo_n "checking for egrep... " >&6; }
4946 if ${ac_cv_path_EGREP+:} false; then :
4947   $as_echo_n "(cached) " >&6
4948 else
4949   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4950    then ac_cv_path_EGREP="$GREP -E"
4951    else
4952      if test -z "$EGREP"; then
4953   ac_path_EGREP_found=false
4954   # Loop through the user's path and test for each of PROGNAME-LIST
4955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960     for ac_prog in egrep; do
4961     for ac_exec_ext in '' $ac_executable_extensions; do
4962       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4963       as_fn_executable_p "$ac_path_EGREP" || continue
4964 # Check for GNU ac_path_EGREP and select it if it is found.
4965   # Check for GNU $ac_path_EGREP
4966 case `"$ac_path_EGREP" --version 2>&1` in
4967 *GNU*)
4968   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4969 *)
4970   ac_count=0
4971   $as_echo_n 0123456789 >"conftest.in"
4972   while :
4973   do
4974     cat "conftest.in" "conftest.in" >"conftest.tmp"
4975     mv "conftest.tmp" "conftest.in"
4976     cp "conftest.in" "conftest.nl"
4977     $as_echo 'EGREP' >> "conftest.nl"
4978     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4979     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4980     as_fn_arith $ac_count + 1 && ac_count=$as_val
4981     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4982       # Best one so far, save it but keep looking for a better one
4983       ac_cv_path_EGREP="$ac_path_EGREP"
4984       ac_path_EGREP_max=$ac_count
4985     fi
4986     # 10*(2^10) chars as input seems more than enough
4987     test $ac_count -gt 10 && break
4988   done
4989   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4990 esac
4991
4992       $ac_path_EGREP_found && break 3
4993     done
4994   done
4995   done
4996 IFS=$as_save_IFS
4997   if test -z "$ac_cv_path_EGREP"; then
4998     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4999   fi
5000 else
5001   ac_cv_path_EGREP=$EGREP
5002 fi
5003
5004    fi
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5007 $as_echo "$ac_cv_path_EGREP" >&6; }
5008  EGREP="$ac_cv_path_EGREP"
5009
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5012 $as_echo_n "checking for fgrep... " >&6; }
5013 if ${ac_cv_path_FGREP+:} false; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5017    then ac_cv_path_FGREP="$GREP -F"
5018    else
5019      if test -z "$FGREP"; then
5020   ac_path_FGREP_found=false
5021   # Loop through the user's path and test for each of PROGNAME-LIST
5022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027     for ac_prog in fgrep; do
5028     for ac_exec_ext in '' $ac_executable_extensions; do
5029       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5030       as_fn_executable_p "$ac_path_FGREP" || continue
5031 # Check for GNU ac_path_FGREP and select it if it is found.
5032   # Check for GNU $ac_path_FGREP
5033 case `"$ac_path_FGREP" --version 2>&1` in
5034 *GNU*)
5035   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5036 *)
5037   ac_count=0
5038   $as_echo_n 0123456789 >"conftest.in"
5039   while :
5040   do
5041     cat "conftest.in" "conftest.in" >"conftest.tmp"
5042     mv "conftest.tmp" "conftest.in"
5043     cp "conftest.in" "conftest.nl"
5044     $as_echo 'FGREP' >> "conftest.nl"
5045     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047     as_fn_arith $ac_count + 1 && ac_count=$as_val
5048     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5049       # Best one so far, save it but keep looking for a better one
5050       ac_cv_path_FGREP="$ac_path_FGREP"
5051       ac_path_FGREP_max=$ac_count
5052     fi
5053     # 10*(2^10) chars as input seems more than enough
5054     test $ac_count -gt 10 && break
5055   done
5056   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5057 esac
5058
5059       $ac_path_FGREP_found && break 3
5060     done
5061   done
5062   done
5063 IFS=$as_save_IFS
5064   if test -z "$ac_cv_path_FGREP"; then
5065     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5066   fi
5067 else
5068   ac_cv_path_FGREP=$FGREP
5069 fi
5070
5071    fi
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5074 $as_echo "$ac_cv_path_FGREP" >&6; }
5075  FGREP="$ac_cv_path_FGREP"
5076
5077
5078 test -z "$GREP" && GREP=grep
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098 # Check whether --with-gnu-ld was given.
5099 if test "${with_gnu_ld+set}" = set; then :
5100   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5101 else
5102   with_gnu_ld=no
5103 fi
5104
5105 ac_prog=ld
5106 if test yes = "$GCC"; then
5107   # Check if gcc -print-prog-name=ld gives a path.
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5109 $as_echo_n "checking for ld used by $CC... " >&6; }
5110   case $host in
5111   *-*-mingw*)
5112     # gcc leaves a trailing carriage return, which upsets mingw
5113     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5114   *)
5115     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5116   esac
5117   case $ac_prog in
5118     # Accept absolute paths.
5119     [\\/]* | ?:[\\/]*)
5120       re_direlt='/[^/][^/]*/\.\./'
5121       # Canonicalize the pathname of ld
5122       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5123       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5124         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5125       done
5126       test -z "$LD" && LD=$ac_prog
5127       ;;
5128   "")
5129     # If it fails, then pretend we aren't using GCC.
5130     ac_prog=ld
5131     ;;
5132   *)
5133     # If it is relative, then search for the first ld in PATH.
5134     with_gnu_ld=unknown
5135     ;;
5136   esac
5137 elif test yes = "$with_gnu_ld"; then
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5139 $as_echo_n "checking for GNU ld... " >&6; }
5140 else
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5142 $as_echo_n "checking for non-GNU ld... " >&6; }
5143 fi
5144 if ${lt_cv_path_LD+:} false; then :
5145   $as_echo_n "(cached) " >&6
5146 else
5147   if test -z "$LD"; then
5148   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5149   for ac_dir in $PATH; do
5150     IFS=$lt_save_ifs
5151     test -z "$ac_dir" && ac_dir=.
5152     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5153       lt_cv_path_LD=$ac_dir/$ac_prog
5154       # Check to see if the program is GNU ld.  I'd rather use --version,
5155       # but apparently some variants of GNU ld only accept -v.
5156       # Break only if it was the GNU/non-GNU ld that we prefer.
5157       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5158       *GNU* | *'with BFD'*)
5159         test no != "$with_gnu_ld" && break
5160         ;;
5161       *)
5162         test yes != "$with_gnu_ld" && break
5163         ;;
5164       esac
5165     fi
5166   done
5167   IFS=$lt_save_ifs
5168 else
5169   lt_cv_path_LD=$LD # Let the user override the test with a path.
5170 fi
5171 fi
5172
5173 LD=$lt_cv_path_LD
5174 if test -n "$LD"; then
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5176 $as_echo "$LD" >&6; }
5177 else
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5183 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5184 if ${lt_cv_prog_gnu_ld+:} false; then :
5185   $as_echo_n "(cached) " >&6
5186 else
5187   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5188 case `$LD -v 2>&1 </dev/null` in
5189 *GNU* | *'with BFD'*)
5190   lt_cv_prog_gnu_ld=yes
5191   ;;
5192 *)
5193   lt_cv_prog_gnu_ld=no
5194   ;;
5195 esac
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5198 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5199 with_gnu_ld=$lt_cv_prog_gnu_ld
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5210 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5211 if ${lt_cv_path_NM+:} false; then :
5212   $as_echo_n "(cached) " >&6
5213 else
5214   if test -n "$NM"; then
5215   # Let the user override the test.
5216   lt_cv_path_NM=$NM
5217 else
5218   lt_nm_to_check=${ac_tool_prefix}nm
5219   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5220     lt_nm_to_check="$lt_nm_to_check nm"
5221   fi
5222   for lt_tmp_nm in $lt_nm_to_check; do
5223     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5224     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5225       IFS=$lt_save_ifs
5226       test -z "$ac_dir" && ac_dir=.
5227       tmp_nm=$ac_dir/$lt_tmp_nm
5228       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5229         # Check to see if the nm accepts a BSD-compat flag.
5230         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5231         #   nm: unknown option "B" ignored
5232         # Tru64's nm complains that /dev/null is an invalid object file
5233         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5234         case $build_os in
5235         mingw*) lt_bad_file=conftest.nm/nofile ;;
5236         *) lt_bad_file=/dev/null ;;
5237         esac
5238         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5239         *$lt_bad_file* | *'Invalid file or object type'*)
5240           lt_cv_path_NM="$tmp_nm -B"
5241           break 2
5242           ;;
5243         *)
5244           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5245           */dev/null*)
5246             lt_cv_path_NM="$tmp_nm -p"
5247             break 2
5248             ;;
5249           *)
5250             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5251             continue # so that we can try to find one that supports BSD flags
5252             ;;
5253           esac
5254           ;;
5255         esac
5256       fi
5257     done
5258     IFS=$lt_save_ifs
5259   done
5260   : ${lt_cv_path_NM=no}
5261 fi
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5264 $as_echo "$lt_cv_path_NM" >&6; }
5265 if test no != "$lt_cv_path_NM"; then
5266   NM=$lt_cv_path_NM
5267 else
5268   # Didn't find any BSD compatible name lister, look for dumpbin.
5269   if test -n "$DUMPBIN"; then :
5270     # Let the user override the test.
5271   else
5272     if test -n "$ac_tool_prefix"; then
5273   for ac_prog in dumpbin "link -dump"
5274   do
5275     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_DUMPBIN+:} false; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   if test -n "$DUMPBIN"; then
5283   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288   IFS=$as_save_IFS
5289   test -z "$as_dir" && as_dir=.
5290     for ac_exec_ext in '' $ac_executable_extensions; do
5291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294     break 2
5295   fi
5296 done
5297   done
5298 IFS=$as_save_IFS
5299
5300 fi
5301 fi
5302 DUMPBIN=$ac_cv_prog_DUMPBIN
5303 if test -n "$DUMPBIN"; then
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5305 $as_echo "$DUMPBIN" >&6; }
5306 else
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311
5312     test -n "$DUMPBIN" && break
5313   done
5314 fi
5315 if test -z "$DUMPBIN"; then
5316   ac_ct_DUMPBIN=$DUMPBIN
5317   for ac_prog in dumpbin "link -dump"
5318 do
5319   # Extract the first word of "$ac_prog", so it can be a program name with args.
5320 set dummy $ac_prog; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5324   $as_echo_n "(cached) " >&6
5325 else
5326   if test -n "$ac_ct_DUMPBIN"; then
5327   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334     for ac_exec_ext in '' $ac_executable_extensions; do
5335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341   done
5342 IFS=$as_save_IFS
5343
5344 fi
5345 fi
5346 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5347 if test -n "$ac_ct_DUMPBIN"; then
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5349 $as_echo "$ac_ct_DUMPBIN" >&6; }
5350 else
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354
5355
5356   test -n "$ac_ct_DUMPBIN" && break
5357 done
5358
5359   if test "x$ac_ct_DUMPBIN" = x; then
5360     DUMPBIN=":"
5361   else
5362     case $cross_compiling:$ac_tool_warned in
5363 yes:)
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5367 esac
5368     DUMPBIN=$ac_ct_DUMPBIN
5369   fi
5370 fi
5371
5372     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5373     *COFF*)
5374       DUMPBIN="$DUMPBIN -symbols -headers"
5375       ;;
5376     *)
5377       DUMPBIN=:
5378       ;;
5379     esac
5380   fi
5381
5382   if test : != "$DUMPBIN"; then
5383     NM=$DUMPBIN
5384   fi
5385 fi
5386 test -z "$NM" && NM=nm
5387
5388
5389
5390
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5394 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5395 if ${lt_cv_nm_interface+:} false; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   lt_cv_nm_interface="BSD nm"
5399   echo "int some_variable = 0;" > conftest.$ac_ext
5400   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5401   (eval "$ac_compile" 2>conftest.err)
5402   cat conftest.err >&5
5403   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5404   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5405   cat conftest.err >&5
5406   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5407   cat conftest.out >&5
5408   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5409     lt_cv_nm_interface="MS dumpbin"
5410   fi
5411   rm -f conftest*
5412 fi
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5414 $as_echo "$lt_cv_nm_interface" >&6; }
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5417 $as_echo_n "checking whether ln -s works... " >&6; }
5418 LN_S=$as_ln_s
5419 if test "$LN_S" = "ln -s"; then
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5421 $as_echo "yes" >&6; }
5422 else
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5424 $as_echo "no, using $LN_S" >&6; }
5425 fi
5426
5427 # find the maximum length of command line arguments
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5429 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5430 if ${lt_cv_sys_max_cmd_len+:} false; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433     i=0
5434   teststring=ABCD
5435
5436   case $build_os in
5437   msdosdjgpp*)
5438     # On DJGPP, this test can blow up pretty badly due to problems in libc
5439     # (any single argument exceeding 2000 bytes causes a buffer overrun
5440     # during glob expansion).  Even if it were fixed, the result of this
5441     # check would be larger than it should be.
5442     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5443     ;;
5444
5445   gnu*)
5446     # Under GNU Hurd, this test is not required because there is
5447     # no limit to the length of command line arguments.
5448     # Libtool will interpret -1 as no limit whatsoever
5449     lt_cv_sys_max_cmd_len=-1;
5450     ;;
5451
5452   cygwin* | mingw* | cegcc*)
5453     # On Win9x/ME, this test blows up -- it succeeds, but takes
5454     # about 5 minutes as the teststring grows exponentially.
5455     # Worse, since 9x/ME are not pre-emptively multitasking,
5456     # you end up with a "frozen" computer, even though with patience
5457     # the test eventually succeeds (with a max line length of 256k).
5458     # Instead, let's just punt: use the minimum linelength reported by
5459     # all of the supported platforms: 8192 (on NT/2K/XP).
5460     lt_cv_sys_max_cmd_len=8192;
5461     ;;
5462
5463   mint*)
5464     # On MiNT this can take a long time and run out of memory.
5465     lt_cv_sys_max_cmd_len=8192;
5466     ;;
5467
5468   amigaos*)
5469     # On AmigaOS with pdksh, this test takes hours, literally.
5470     # So we just punt and use a minimum line length of 8192.
5471     lt_cv_sys_max_cmd_len=8192;
5472     ;;
5473
5474   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5475     # This has been around since 386BSD, at least.  Likely further.
5476     if test -x /sbin/sysctl; then
5477       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5478     elif test -x /usr/sbin/sysctl; then
5479       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5480     else
5481       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5482     fi
5483     # And add a safety zone
5484     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5485     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5486     ;;
5487
5488   interix*)
5489     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5490     lt_cv_sys_max_cmd_len=196608
5491     ;;
5492
5493   os2*)
5494     # The test takes a long time on OS/2.
5495     lt_cv_sys_max_cmd_len=8192
5496     ;;
5497
5498   osf*)
5499     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5500     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5501     # nice to cause kernel panics so lets avoid the loop below.
5502     # First set a reasonable default.
5503     lt_cv_sys_max_cmd_len=16384
5504     #
5505     if test -x /sbin/sysconfig; then
5506       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5507         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5508       esac
5509     fi
5510     ;;
5511   sco3.2v5*)
5512     lt_cv_sys_max_cmd_len=102400
5513     ;;
5514   sysv5* | sco5v6* | sysv4.2uw2*)
5515     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5516     if test -n "$kargmax"; then
5517       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5518     else
5519       lt_cv_sys_max_cmd_len=32768
5520     fi
5521     ;;
5522   *)
5523     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5524     if test -n "$lt_cv_sys_max_cmd_len" && \
5525        test undefined != "$lt_cv_sys_max_cmd_len"; then
5526       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5527       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5528     else
5529       # Make teststring a little bigger before we do anything with it.
5530       # a 1K string should be a reasonable start.
5531       for i in 1 2 3 4 5 6 7 8; do
5532         teststring=$teststring$teststring
5533       done
5534       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5535       # If test is not a shell built-in, we'll probably end up computing a
5536       # maximum length that is only half of the actual maximum length, but
5537       # we can't tell.
5538       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5539                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5540               test 17 != "$i" # 1/2 MB should be enough
5541       do
5542         i=`expr $i + 1`
5543         teststring=$teststring$teststring
5544       done
5545       # Only check the string length outside the loop.
5546       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5547       teststring=
5548       # Add a significant safety factor because C++ compilers can tack on
5549       # massive amounts of additional arguments before passing them to the
5550       # linker.  It appears as though 1/2 is a usable value.
5551       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5552     fi
5553     ;;
5554   esac
5555
5556 fi
5557
5558 if test -n "$lt_cv_sys_max_cmd_len"; then
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5560 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5561 else
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5563 $as_echo "none" >&6; }
5564 fi
5565 max_cmd_len=$lt_cv_sys_max_cmd_len
5566
5567
5568
5569
5570
5571
5572 : ${CP="cp -f"}
5573 : ${MV="mv -f"}
5574 : ${RM="rm -f"}
5575
5576 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5577   lt_unset=unset
5578 else
5579   lt_unset=false
5580 fi
5581
5582
5583
5584
5585
5586 # test EBCDIC or ASCII
5587 case `echo X|tr X '\101'` in
5588  A) # ASCII based system
5589     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5590   lt_SP2NL='tr \040 \012'
5591   lt_NL2SP='tr \015\012 \040\040'
5592   ;;
5593  *) # EBCDIC based system
5594   lt_SP2NL='tr \100 \n'
5595   lt_NL2SP='tr \r\n \100\100'
5596   ;;
5597 esac
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5608 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5609 if ${lt_cv_to_host_file_cmd+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   case $host in
5613   *-*-mingw* )
5614     case $build in
5615       *-*-mingw* ) # actually msys
5616         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5617         ;;
5618       *-*-cygwin* )
5619         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5620         ;;
5621       * ) # otherwise, assume *nix
5622         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5623         ;;
5624     esac
5625     ;;
5626   *-*-cygwin* )
5627     case $build in
5628       *-*-mingw* ) # actually msys
5629         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5630         ;;
5631       *-*-cygwin* )
5632         lt_cv_to_host_file_cmd=func_convert_file_noop
5633         ;;
5634       * ) # otherwise, assume *nix
5635         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5636         ;;
5637     esac
5638     ;;
5639   * ) # unhandled hosts (and "normal" native builds)
5640     lt_cv_to_host_file_cmd=func_convert_file_noop
5641     ;;
5642 esac
5643
5644 fi
5645
5646 to_host_file_cmd=$lt_cv_to_host_file_cmd
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5648 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5649
5650
5651
5652
5653
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5655 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5656 if ${lt_cv_to_tool_file_cmd+:} false; then :
5657   $as_echo_n "(cached) " >&6
5658 else
5659   #assume ordinary cross tools, or native build.
5660 lt_cv_to_tool_file_cmd=func_convert_file_noop
5661 case $host in
5662   *-*-mingw* )
5663     case $build in
5664       *-*-mingw* ) # actually msys
5665         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5666         ;;
5667     esac
5668     ;;
5669 esac
5670
5671 fi
5672
5673 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5675 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5676
5677
5678
5679
5680
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5682 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5683 if ${lt_cv_ld_reload_flag+:} false; then :
5684   $as_echo_n "(cached) " >&6
5685 else
5686   lt_cv_ld_reload_flag='-r'
5687 fi
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5689 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5690 reload_flag=$lt_cv_ld_reload_flag
5691 case $reload_flag in
5692 "" | " "*) ;;
5693 *) reload_flag=" $reload_flag" ;;
5694 esac
5695 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5696 case $host_os in
5697   cygwin* | mingw* | pw32* | cegcc*)
5698     if test yes != "$GCC"; then
5699       reload_cmds=false
5700     fi
5701     ;;
5702   darwin*)
5703     if test yes = "$GCC"; then
5704       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5705     else
5706       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5707     fi
5708     ;;
5709 esac
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719 if test -n "$ac_tool_prefix"; then
5720   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5721 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_OBJDUMP+:} false; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   if test -n "$OBJDUMP"; then
5728   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5732 do
5733   IFS=$as_save_IFS
5734   test -z "$as_dir" && as_dir=.
5735     for ac_exec_ext in '' $ac_executable_extensions; do
5736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739     break 2
5740   fi
5741 done
5742   done
5743 IFS=$as_save_IFS
5744
5745 fi
5746 fi
5747 OBJDUMP=$ac_cv_prog_OBJDUMP
5748 if test -n "$OBJDUMP"; then
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5750 $as_echo "$OBJDUMP" >&6; }
5751 else
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5754 fi
5755
5756
5757 fi
5758 if test -z "$ac_cv_prog_OBJDUMP"; then
5759   ac_ct_OBJDUMP=$OBJDUMP
5760   # Extract the first word of "objdump", so it can be a program name with args.
5761 set dummy objdump; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5765   $as_echo_n "(cached) " >&6
5766 else
5767   if test -n "$ac_ct_OBJDUMP"; then
5768   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775     for ac_exec_ext in '' $ac_executable_extensions; do
5776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782   done
5783 IFS=$as_save_IFS
5784
5785 fi
5786 fi
5787 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5788 if test -n "$ac_ct_OBJDUMP"; then
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5790 $as_echo "$ac_ct_OBJDUMP" >&6; }
5791 else
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 fi
5795
5796   if test "x$ac_ct_OBJDUMP" = x; then
5797     OBJDUMP="false"
5798   else
5799     case $cross_compiling:$ac_tool_warned in
5800 yes:)
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5803 ac_tool_warned=yes ;;
5804 esac
5805     OBJDUMP=$ac_ct_OBJDUMP
5806   fi
5807 else
5808   OBJDUMP="$ac_cv_prog_OBJDUMP"
5809 fi
5810
5811 test -z "$OBJDUMP" && OBJDUMP=objdump
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5822 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5823 if ${lt_cv_deplibs_check_method+:} false; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   lt_cv_file_magic_cmd='$MAGIC_CMD'
5827 lt_cv_file_magic_test_file=
5828 lt_cv_deplibs_check_method='unknown'
5829 # Need to set the preceding variable on all platforms that support
5830 # interlibrary dependencies.
5831 # 'none' -- dependencies not supported.
5832 # 'unknown' -- same as none, but documents that we really don't know.
5833 # 'pass_all' -- all dependencies passed with no checks.
5834 # 'test_compile' -- check by making test program.
5835 # 'file_magic [[regex]]' -- check by looking for files in library path
5836 # that responds to the $file_magic_cmd with a given extended regex.
5837 # If you have 'file' or equivalent on your system and you're not sure
5838 # whether 'pass_all' will *always* work, you probably want this one.
5839
5840 case $host_os in
5841 aix[4-9]*)
5842   lt_cv_deplibs_check_method=pass_all
5843   ;;
5844
5845 beos*)
5846   lt_cv_deplibs_check_method=pass_all
5847   ;;
5848
5849 bsdi[45]*)
5850   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5851   lt_cv_file_magic_cmd='/usr/bin/file -L'
5852   lt_cv_file_magic_test_file=/shlib/libc.so
5853   ;;
5854
5855 cygwin*)
5856   # func_win32_libid is a shell function defined in ltmain.sh
5857   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5858   lt_cv_file_magic_cmd='func_win32_libid'
5859   ;;
5860
5861 mingw* | pw32*)
5862   # Base MSYS/MinGW do not provide the 'file' command needed by
5863   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5864   # unless we find 'file', for example because we are cross-compiling.
5865   if ( file / ) >/dev/null 2>&1; then
5866     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5867     lt_cv_file_magic_cmd='func_win32_libid'
5868   else
5869     # Keep this pattern in sync with the one in func_win32_libid.
5870     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5871     lt_cv_file_magic_cmd='$OBJDUMP -f'
5872   fi
5873   ;;
5874
5875 cegcc*)
5876   # use the weaker test based on 'objdump'. See mingw*.
5877   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5878   lt_cv_file_magic_cmd='$OBJDUMP -f'
5879   ;;
5880
5881 darwin* | rhapsody*)
5882   lt_cv_deplibs_check_method=pass_all
5883   ;;
5884
5885 freebsd* | dragonfly*)
5886   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5887     case $host_cpu in
5888     i*86 )
5889       # Not sure whether the presence of OpenBSD here was a mistake.
5890       # Let's accept both of them until this is cleared up.
5891       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5892       lt_cv_file_magic_cmd=/usr/bin/file
5893       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5894       ;;
5895     esac
5896   else
5897     lt_cv_deplibs_check_method=pass_all
5898   fi
5899   ;;
5900
5901 haiku*)
5902   lt_cv_deplibs_check_method=pass_all
5903   ;;
5904
5905 hpux10.20* | hpux11*)
5906   lt_cv_file_magic_cmd=/usr/bin/file
5907   case $host_cpu in
5908   ia64*)
5909     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5910     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5911     ;;
5912   hppa*64*)
5913     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]'
5914     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5915     ;;
5916   *)
5917     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5918     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5919     ;;
5920   esac
5921   ;;
5922
5923 interix[3-9]*)
5924   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5925   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5926   ;;
5927
5928 irix5* | irix6* | nonstopux*)
5929   case $LD in
5930   *-32|*"-32 ") libmagic=32-bit;;
5931   *-n32|*"-n32 ") libmagic=N32;;
5932   *-64|*"-64 ") libmagic=64-bit;;
5933   *) libmagic=never-match;;
5934   esac
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937
5938 # This must be glibc/ELF.
5939 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5940   lt_cv_deplibs_check_method=pass_all
5941   ;;
5942
5943 netbsd* | netbsdelf*-gnu)
5944   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5945     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5946   else
5947     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5948   fi
5949   ;;
5950
5951 newos6*)
5952   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5953   lt_cv_file_magic_cmd=/usr/bin/file
5954   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5955   ;;
5956
5957 *nto* | *qnx*)
5958   lt_cv_deplibs_check_method=pass_all
5959   ;;
5960
5961 openbsd* | bitrig*)
5962   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5963     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5964   else
5965     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5966   fi
5967   ;;
5968
5969 osf3* | osf4* | osf5*)
5970   lt_cv_deplibs_check_method=pass_all
5971   ;;
5972
5973 rdos*)
5974   lt_cv_deplibs_check_method=pass_all
5975   ;;
5976
5977 solaris*)
5978   lt_cv_deplibs_check_method=pass_all
5979   ;;
5980
5981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5982   lt_cv_deplibs_check_method=pass_all
5983   ;;
5984
5985 sysv4 | sysv4.3*)
5986   case $host_vendor in
5987   motorola)
5988     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]'
5989     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5990     ;;
5991   ncr)
5992     lt_cv_deplibs_check_method=pass_all
5993     ;;
5994   sequent)
5995     lt_cv_file_magic_cmd='/bin/file'
5996     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5997     ;;
5998   sni)
5999     lt_cv_file_magic_cmd='/bin/file'
6000     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6001     lt_cv_file_magic_test_file=/lib/libc.so
6002     ;;
6003   siemens)
6004     lt_cv_deplibs_check_method=pass_all
6005     ;;
6006   pc)
6007     lt_cv_deplibs_check_method=pass_all
6008     ;;
6009   esac
6010   ;;
6011
6012 tpf*)
6013   lt_cv_deplibs_check_method=pass_all
6014   ;;
6015 os2*)
6016   lt_cv_deplibs_check_method=pass_all
6017   ;;
6018 esac
6019
6020 fi
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6022 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6023
6024 file_magic_glob=
6025 want_nocaseglob=no
6026 if test "$build" = "$host"; then
6027   case $host_os in
6028   mingw* | pw32*)
6029     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6030       want_nocaseglob=yes
6031     else
6032       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6033     fi
6034     ;;
6035   esac
6036 fi
6037
6038 file_magic_cmd=$lt_cv_file_magic_cmd
6039 deplibs_check_method=$lt_cv_deplibs_check_method
6040 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063 if test -n "$ac_tool_prefix"; then
6064   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6065 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if ${ac_cv_prog_DLLTOOL+:} false; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071   if test -n "$DLLTOOL"; then
6072   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079     for ac_exec_ext in '' $ac_executable_extensions; do
6080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086   done
6087 IFS=$as_save_IFS
6088
6089 fi
6090 fi
6091 DLLTOOL=$ac_cv_prog_DLLTOOL
6092 if test -n "$DLLTOOL"; then
6093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6094 $as_echo "$DLLTOOL" >&6; }
6095 else
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6098 fi
6099
6100
6101 fi
6102 if test -z "$ac_cv_prog_DLLTOOL"; then
6103   ac_ct_DLLTOOL=$DLLTOOL
6104   # Extract the first word of "dlltool", so it can be a program name with args.
6105 set dummy dlltool; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111   if test -n "$ac_ct_DLLTOOL"; then
6112   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119     for ac_exec_ext in '' $ac_executable_extensions; do
6120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126   done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6132 if test -n "$ac_ct_DLLTOOL"; then
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6134 $as_echo "$ac_ct_DLLTOOL" >&6; }
6135 else
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140   if test "x$ac_ct_DLLTOOL" = x; then
6141     DLLTOOL="false"
6142   else
6143     case $cross_compiling:$ac_tool_warned in
6144 yes:)
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6147 ac_tool_warned=yes ;;
6148 esac
6149     DLLTOOL=$ac_ct_DLLTOOL
6150   fi
6151 else
6152   DLLTOOL="$ac_cv_prog_DLLTOOL"
6153 fi
6154
6155 test -z "$DLLTOOL" && DLLTOOL=dlltool
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6167 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6168 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   lt_cv_sharedlib_from_linklib_cmd='unknown'
6172
6173 case $host_os in
6174 cygwin* | mingw* | pw32* | cegcc*)
6175   # two different shell functions defined in ltmain.sh;
6176   # decide which one to use based on capabilities of $DLLTOOL
6177   case `$DLLTOOL --help 2>&1` in
6178   *--identify-strict*)
6179     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6180     ;;
6181   *)
6182     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6183     ;;
6184   esac
6185   ;;
6186 *)
6187   # fallback: assume linklib IS sharedlib
6188   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6189   ;;
6190 esac
6191
6192 fi
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6194 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6195 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6196 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6197
6198
6199
6200
6201
6202
6203
6204 if test -n "$ac_tool_prefix"; then
6205   for ac_prog in ar
6206   do
6207     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if ${ac_cv_prog_AR+:} false; then :
6212   $as_echo_n "(cached) " >&6
6213 else
6214   if test -n "$AR"; then
6215   ac_cv_prog_AR="$AR" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220   IFS=$as_save_IFS
6221   test -z "$as_dir" && as_dir=.
6222     for ac_exec_ext in '' $ac_executable_extensions; do
6223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226     break 2
6227   fi
6228 done
6229   done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 AR=$ac_cv_prog_AR
6235 if test -n "$AR"; then
6236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6237 $as_echo "$AR" >&6; }
6238 else
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6241 fi
6242
6243
6244     test -n "$AR" && break
6245   done
6246 fi
6247 if test -z "$AR"; then
6248   ac_ct_AR=$AR
6249   for ac_prog in ar
6250 do
6251   # Extract the first word of "$ac_prog", so it can be a program name with args.
6252 set dummy $ac_prog; ac_word=$2
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6256   $as_echo_n "(cached) " >&6
6257 else
6258   if test -n "$ac_ct_AR"; then
6259   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264   IFS=$as_save_IFS
6265   test -z "$as_dir" && as_dir=.
6266     for ac_exec_ext in '' $ac_executable_extensions; do
6267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268     ac_cv_prog_ac_ct_AR="$ac_prog"
6269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270     break 2
6271   fi
6272 done
6273   done
6274 IFS=$as_save_IFS
6275
6276 fi
6277 fi
6278 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6279 if test -n "$ac_ct_AR"; then
6280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6281 $as_echo "$ac_ct_AR" >&6; }
6282 else
6283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6285 fi
6286
6287
6288   test -n "$ac_ct_AR" && break
6289 done
6290
6291   if test "x$ac_ct_AR" = x; then
6292     AR="false"
6293   else
6294     case $cross_compiling:$ac_tool_warned in
6295 yes:)
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6298 ac_tool_warned=yes ;;
6299 esac
6300     AR=$ac_ct_AR
6301   fi
6302 fi
6303
6304 : ${AR=ar}
6305 : ${AR_FLAGS=cr}
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6318 $as_echo_n "checking for archiver @FILE support... " >&6; }
6319 if ${lt_cv_ar_at_file+:} false; then :
6320   $as_echo_n "(cached) " >&6
6321 else
6322   lt_cv_ar_at_file=no
6323    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h.  */
6325
6326 int
6327 main ()
6328 {
6329
6330   ;
6331   return 0;
6332 }
6333 _ACEOF
6334 if ac_fn_c_try_compile "$LINENO"; then :
6335   echo conftest.$ac_objext > conftest.lst
6336       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6337       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6338   (eval $lt_ar_try) 2>&5
6339   ac_status=$?
6340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341   test $ac_status = 0; }
6342       if test 0 -eq "$ac_status"; then
6343         # Ensure the archiver fails upon bogus file names.
6344         rm -f conftest.$ac_objext libconftest.a
6345         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6346   (eval $lt_ar_try) 2>&5
6347   ac_status=$?
6348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6349   test $ac_status = 0; }
6350         if test 0 -ne "$ac_status"; then
6351           lt_cv_ar_at_file=@
6352         fi
6353       fi
6354       rm -f conftest.* libconftest.a
6355
6356 fi
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358
6359 fi
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6361 $as_echo "$lt_cv_ar_at_file" >&6; }
6362
6363 if test no = "$lt_cv_ar_at_file"; then
6364   archiver_list_spec=
6365 else
6366   archiver_list_spec=$lt_cv_ar_at_file
6367 fi
6368
6369
6370
6371
6372
6373
6374
6375 if test -n "$ac_tool_prefix"; then
6376   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}strip; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_STRIP+:} false; then :
6381   $as_echo_n "(cached) " >&6
6382 else
6383   if test -n "$STRIP"; then
6384   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391     for ac_exec_ext in '' $ac_executable_extensions; do
6392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398   done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 STRIP=$ac_cv_prog_STRIP
6404 if test -n "$STRIP"; then
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6406 $as_echo "$STRIP" >&6; }
6407 else
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412
6413 fi
6414 if test -z "$ac_cv_prog_STRIP"; then
6415   ac_ct_STRIP=$STRIP
6416   # Extract the first word of "strip", so it can be a program name with args.
6417 set dummy strip; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   if test -n "$ac_ct_STRIP"; then
6424   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431     for ac_exec_ext in '' $ac_executable_extensions; do
6432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433     ac_cv_prog_ac_ct_STRIP="strip"
6434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438   done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6444 if test -n "$ac_ct_STRIP"; then
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6446 $as_echo "$ac_ct_STRIP" >&6; }
6447 else
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6450 fi
6451
6452   if test "x$ac_ct_STRIP" = x; then
6453     STRIP=":"
6454   else
6455     case $cross_compiling:$ac_tool_warned in
6456 yes:)
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6460 esac
6461     STRIP=$ac_ct_STRIP
6462   fi
6463 else
6464   STRIP="$ac_cv_prog_STRIP"
6465 fi
6466
6467 test -z "$STRIP" && STRIP=:
6468
6469
6470
6471
6472
6473
6474 if test -n "$ac_tool_prefix"; then
6475   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_prog_RANLIB+:} false; then :
6480   $as_echo_n "(cached) " >&6
6481 else
6482   if test -n "$RANLIB"; then
6483   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488   IFS=$as_save_IFS
6489   test -z "$as_dir" && as_dir=.
6490     for ac_exec_ext in '' $ac_executable_extensions; do
6491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494     break 2
6495   fi
6496 done
6497   done
6498 IFS=$as_save_IFS
6499
6500 fi
6501 fi
6502 RANLIB=$ac_cv_prog_RANLIB
6503 if test -n "$RANLIB"; then
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6505 $as_echo "$RANLIB" >&6; }
6506 else
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6509 fi
6510
6511
6512 fi
6513 if test -z "$ac_cv_prog_RANLIB"; then
6514   ac_ct_RANLIB=$RANLIB
6515   # Extract the first word of "ranlib", so it can be a program name with args.
6516 set dummy ranlib; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6520   $as_echo_n "(cached) " >&6
6521 else
6522   if test -n "$ac_ct_RANLIB"; then
6523   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530     for ac_exec_ext in '' $ac_executable_extensions; do
6531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532     ac_cv_prog_ac_ct_RANLIB="ranlib"
6533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537   done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
6542 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6543 if test -n "$ac_ct_RANLIB"; then
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6545 $as_echo "$ac_ct_RANLIB" >&6; }
6546 else
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550
6551   if test "x$ac_ct_RANLIB" = x; then
6552     RANLIB=":"
6553   else
6554     case $cross_compiling:$ac_tool_warned in
6555 yes:)
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558 ac_tool_warned=yes ;;
6559 esac
6560     RANLIB=$ac_ct_RANLIB
6561   fi
6562 else
6563   RANLIB="$ac_cv_prog_RANLIB"
6564 fi
6565
6566 test -z "$RANLIB" && RANLIB=:
6567
6568
6569
6570
6571
6572
6573 # Determine commands to create old-style static archives.
6574 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6575 old_postinstall_cmds='chmod 644 $oldlib'
6576 old_postuninstall_cmds=
6577
6578 if test -n "$RANLIB"; then
6579   case $host_os in
6580   bitrig* | openbsd*)
6581     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6582     ;;
6583   *)
6584     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6585     ;;
6586   esac
6587   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6588 fi
6589
6590 case $host_os in
6591   darwin*)
6592     lock_old_archive_extraction=yes ;;
6593   *)
6594     lock_old_archive_extraction=no ;;
6595 esac
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635 # If no C compiler was specified, use CC.
6636 LTCC=${LTCC-"$CC"}
6637
6638 # If no C compiler flags were specified, use CFLAGS.
6639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6640
6641 # Allow CC to be a program name with arguments.
6642 compiler=$CC
6643
6644
6645 # Check for command to grab the raw symbol name followed by C symbol from nm.
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6647 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6648 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6649   $as_echo_n "(cached) " >&6
6650 else
6651
6652 # These are sane defaults that work on at least a few old systems.
6653 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6654
6655 # Character class describing NM global symbol codes.
6656 symcode='[BCDEGRST]'
6657
6658 # Regexp to match symbols that can be accessed directly from C.
6659 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6660
6661 # Define system-specific variables.
6662 case $host_os in
6663 aix*)
6664   symcode='[BCDT]'
6665   ;;
6666 cygwin* | mingw* | pw32* | cegcc*)
6667   symcode='[ABCDGISTW]'
6668   ;;
6669 hpux*)
6670   if test ia64 = "$host_cpu"; then
6671     symcode='[ABCDEGRST]'
6672   fi
6673   ;;
6674 irix* | nonstopux*)
6675   symcode='[BCDEGRST]'
6676   ;;
6677 osf*)
6678   symcode='[BCDEGQRST]'
6679   ;;
6680 solaris*)
6681   symcode='[BDRT]'
6682   ;;
6683 sco3.2v5*)
6684   symcode='[DT]'
6685   ;;
6686 sysv4.2uw2*)
6687   symcode='[DT]'
6688   ;;
6689 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6690   symcode='[ABDT]'
6691   ;;
6692 sysv4)
6693   symcode='[DFNSTU]'
6694   ;;
6695 esac
6696
6697 # If we're using GNU nm, then use its standard symbol codes.
6698 case `$NM -V 2>&1` in
6699 *GNU* | *'with BFD'*)
6700   symcode='[ABCDGIRSTW]' ;;
6701 esac
6702
6703 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6704   # Gets list of data symbols to import.
6705   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6706   # Adjust the below global symbol transforms to fixup imported variables.
6707   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6708   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6709   lt_c_name_lib_hook="\
6710   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6711   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6712 else
6713   # Disable hooks by default.
6714   lt_cv_sys_global_symbol_to_import=
6715   lt_cdecl_hook=
6716   lt_c_name_hook=
6717   lt_c_name_lib_hook=
6718 fi
6719
6720 # Transform an extracted symbol line into a proper C declaration.
6721 # Some systems (esp. on ia64) link data and code symbols differently,
6722 # so use this general approach.
6723 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6724 $lt_cdecl_hook\
6725 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6726 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6727
6728 # Transform an extracted symbol line into symbol name and symbol address
6729 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6730 $lt_c_name_hook\
6731 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6732 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6733
6734 # Transform an extracted symbol line into symbol name with lib prefix and
6735 # symbol address.
6736 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6737 $lt_c_name_lib_hook\
6738 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6739 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6740 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6741
6742 # Handle CRLF in mingw tool chain
6743 opt_cr=
6744 case $build_os in
6745 mingw*)
6746   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6747   ;;
6748 esac
6749
6750 # Try without a prefix underscore, then with it.
6751 for ac_symprfx in "" "_"; do
6752
6753   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6754   symxfrm="\\1 $ac_symprfx\\2 \\2"
6755
6756   # Write the raw and C identifiers.
6757   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6758     # Fake it for dumpbin and say T for any non-static function,
6759     # D for any global variable and I for any imported variable.
6760     # Also find C++ and __fastcall symbols from MSVC++,
6761     # which start with @ or ?.
6762     lt_cv_sys_global_symbol_pipe="$AWK '"\
6763 "     {last_section=section; section=\$ 3};"\
6764 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6765 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6766 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6767 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6768 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6769 "     \$ 0!~/External *\|/{next};"\
6770 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6771 "     {if(hide[section]) next};"\
6772 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6773 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6774 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6775 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6776 "     ' prfx=^$ac_symprfx"
6777   else
6778     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6779   fi
6780   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6781
6782   # Check to see that the pipe works correctly.
6783   pipe_works=no
6784
6785   rm -f conftest*
6786   cat > conftest.$ac_ext <<_LT_EOF
6787 #ifdef __cplusplus
6788 extern "C" {
6789 #endif
6790 char nm_test_var;
6791 void nm_test_func(void);
6792 void nm_test_func(void){}
6793 #ifdef __cplusplus
6794 }
6795 #endif
6796 int main(){nm_test_var='a';nm_test_func();return(0);}
6797 _LT_EOF
6798
6799   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6800   (eval $ac_compile) 2>&5
6801   ac_status=$?
6802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803   test $ac_status = 0; }; then
6804     # Now try to grab the symbols.
6805     nlist=conftest.nm
6806     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6807     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6808       # Try sorting and uniquifying the output.
6809       if sort "$nlist" | uniq > "$nlist"T; then
6810         mv -f "$nlist"T "$nlist"
6811       else
6812         rm -f "$nlist"T
6813       fi
6814
6815       # Make sure that we snagged all the symbols we need.
6816       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6817         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6818           cat <<_LT_EOF > conftest.$ac_ext
6819 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6820 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6821 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6822    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6823 # define LT_DLSYM_CONST
6824 #elif defined __osf__
6825 /* This system does not cope well with relocations in const data.  */
6826 # define LT_DLSYM_CONST
6827 #else
6828 # define LT_DLSYM_CONST const
6829 #endif
6830
6831 #ifdef __cplusplus
6832 extern "C" {
6833 #endif
6834
6835 _LT_EOF
6836           # Now generate the symbol file.
6837           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6838
6839           cat <<_LT_EOF >> conftest.$ac_ext
6840
6841 /* The mapping between symbol names and symbols.  */
6842 LT_DLSYM_CONST struct {
6843   const char *name;
6844   void       *address;
6845 }
6846 lt__PROGRAM__LTX_preloaded_symbols[] =
6847 {
6848   { "@PROGRAM@", (void *) 0 },
6849 _LT_EOF
6850           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6851           cat <<\_LT_EOF >> conftest.$ac_ext
6852   {0, (void *) 0}
6853 };
6854
6855 /* This works around a problem in FreeBSD linker */
6856 #ifdef FREEBSD_WORKAROUND
6857 static const void *lt_preloaded_setup() {
6858   return lt__PROGRAM__LTX_preloaded_symbols;
6859 }
6860 #endif
6861
6862 #ifdef __cplusplus
6863 }
6864 #endif
6865 _LT_EOF
6866           # Now try linking the two files.
6867           mv conftest.$ac_objext conftstm.$ac_objext
6868           lt_globsym_save_LIBS=$LIBS
6869           lt_globsym_save_CFLAGS=$CFLAGS
6870           LIBS=conftstm.$ac_objext
6871           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6872           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6873   (eval $ac_link) 2>&5
6874   ac_status=$?
6875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6877             pipe_works=yes
6878           fi
6879           LIBS=$lt_globsym_save_LIBS
6880           CFLAGS=$lt_globsym_save_CFLAGS
6881         else
6882           echo "cannot find nm_test_func in $nlist" >&5
6883         fi
6884       else
6885         echo "cannot find nm_test_var in $nlist" >&5
6886       fi
6887     else
6888       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6889     fi
6890   else
6891     echo "$progname: failed program was:" >&5
6892     cat conftest.$ac_ext >&5
6893   fi
6894   rm -rf conftest* conftst*
6895
6896   # Do not use the global_symbol_pipe unless it works.
6897   if test yes = "$pipe_works"; then
6898     break
6899   else
6900     lt_cv_sys_global_symbol_pipe=
6901   fi
6902 done
6903
6904 fi
6905
6906 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6907   lt_cv_sys_global_symbol_to_cdecl=
6908 fi
6909 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6911 $as_echo "failed" >&6; }
6912 else
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6914 $as_echo "ok" >&6; }
6915 fi
6916
6917 # Response file support.
6918 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6919   nm_file_list_spec='@'
6920 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6921   nm_file_list_spec='@'
6922 fi
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6961 $as_echo_n "checking for sysroot... " >&6; }
6962
6963 # Check whether --with-sysroot was given.
6964 if test "${with_sysroot+set}" = set; then :
6965   withval=$with_sysroot;
6966 else
6967   with_sysroot=no
6968 fi
6969
6970
6971 lt_sysroot=
6972 case $with_sysroot in #(
6973  yes)
6974    if test yes = "$GCC"; then
6975      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6976    fi
6977    ;; #(
6978  /*)
6979    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6980    ;; #(
6981  no|'')
6982    ;; #(
6983  *)
6984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6985 $as_echo "$with_sysroot" >&6; }
6986    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6987    ;;
6988 esac
6989
6990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6991 $as_echo "${lt_sysroot:-no}" >&6; }
6992
6993
6994
6995
6996
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6998 $as_echo_n "checking for a working dd... " >&6; }
6999 if ${ac_cv_path_lt_DD+:} false; then :
7000   $as_echo_n "(cached) " >&6
7001 else
7002   printf 0123456789abcdef0123456789abcdef >conftest.i
7003 cat conftest.i conftest.i >conftest2.i
7004 : ${lt_DD:=$DD}
7005 if test -z "$lt_DD"; then
7006   ac_path_lt_DD_found=false
7007   # Loop through the user's path and test for each of PROGNAME-LIST
7008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7010 do
7011   IFS=$as_save_IFS
7012   test -z "$as_dir" && as_dir=.
7013     for ac_prog in dd; do
7014     for ac_exec_ext in '' $ac_executable_extensions; do
7015       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7016       as_fn_executable_p "$ac_path_lt_DD" || continue
7017 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7018   cmp -s conftest.i conftest.out \
7019   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7020 fi
7021       $ac_path_lt_DD_found && break 3
7022     done
7023   done
7024   done
7025 IFS=$as_save_IFS
7026   if test -z "$ac_cv_path_lt_DD"; then
7027     :
7028   fi
7029 else
7030   ac_cv_path_lt_DD=$lt_DD
7031 fi
7032
7033 rm -f conftest.i conftest2.i conftest.out
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7036 $as_echo "$ac_cv_path_lt_DD" >&6; }
7037
7038
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7040 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7041 if ${lt_cv_truncate_bin+:} false; then :
7042   $as_echo_n "(cached) " >&6
7043 else
7044   printf 0123456789abcdef0123456789abcdef >conftest.i
7045 cat conftest.i conftest.i >conftest2.i
7046 lt_cv_truncate_bin=
7047 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7048   cmp -s conftest.i conftest.out \
7049   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7050 fi
7051 rm -f conftest.i conftest2.i conftest.out
7052 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7053 fi
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7055 $as_echo "$lt_cv_truncate_bin" >&6; }
7056
7057
7058
7059
7060
7061
7062
7063 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7064 func_cc_basename ()
7065 {
7066     for cc_temp in $*""; do
7067       case $cc_temp in
7068         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7069         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7070         \-*) ;;
7071         *) break;;
7072       esac
7073     done
7074     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7075 }
7076
7077 # Check whether --enable-libtool-lock was given.
7078 if test "${enable_libtool_lock+set}" = set; then :
7079   enableval=$enable_libtool_lock;
7080 fi
7081
7082 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7083
7084 # Some flags need to be propagated to the compiler or linker for good
7085 # libtool support.
7086 case $host in
7087 ia64-*-hpux*)
7088   # Find out what ABI is being produced by ac_compile, and set mode
7089   # options accordingly.
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.$ac_objext` in
7097       *ELF-32*)
7098         HPUX_IA64_MODE=32
7099         ;;
7100       *ELF-64*)
7101         HPUX_IA64_MODE=64
7102         ;;
7103     esac
7104   fi
7105   rm -rf conftest*
7106   ;;
7107 *-*-irix6*)
7108   # Find out what ABI is being produced by ac_compile, and set linker
7109   # options accordingly.
7110   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7111   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7112   (eval $ac_compile) 2>&5
7113   ac_status=$?
7114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7115   test $ac_status = 0; }; then
7116     if test yes = "$lt_cv_prog_gnu_ld"; then
7117       case `/usr/bin/file conftest.$ac_objext` in
7118         *32-bit*)
7119           LD="${LD-ld} -melf32bsmip"
7120           ;;
7121         *N32*)
7122           LD="${LD-ld} -melf32bmipn32"
7123           ;;
7124         *64-bit*)
7125           LD="${LD-ld} -melf64bmip"
7126         ;;
7127       esac
7128     else
7129       case `/usr/bin/file conftest.$ac_objext` in
7130         *32-bit*)
7131           LD="${LD-ld} -32"
7132           ;;
7133         *N32*)
7134           LD="${LD-ld} -n32"
7135           ;;
7136         *64-bit*)
7137           LD="${LD-ld} -64"
7138           ;;
7139       esac
7140     fi
7141   fi
7142   rm -rf conftest*
7143   ;;
7144
7145 mips64*-*linux*)
7146   # Find out what ABI is being produced by ac_compile, and set linker
7147   # options accordingly.
7148   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7149   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150   (eval $ac_compile) 2>&5
7151   ac_status=$?
7152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153   test $ac_status = 0; }; then
7154     emul=elf
7155     case `/usr/bin/file conftest.$ac_objext` in
7156       *32-bit*)
7157         emul="${emul}32"
7158         ;;
7159       *64-bit*)
7160         emul="${emul}64"
7161         ;;
7162     esac
7163     case `/usr/bin/file conftest.$ac_objext` in
7164       *MSB*)
7165         emul="${emul}btsmip"
7166         ;;
7167       *LSB*)
7168         emul="${emul}ltsmip"
7169         ;;
7170     esac
7171     case `/usr/bin/file conftest.$ac_objext` in
7172       *N32*)
7173         emul="${emul}n32"
7174         ;;
7175     esac
7176     LD="${LD-ld} -m $emul"
7177   fi
7178   rm -rf conftest*
7179   ;;
7180
7181 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7182 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7183   # Find out what ABI is being produced by ac_compile, and set linker
7184   # options accordingly.  Note that the listed cases only cover the
7185   # situations where additional linker options are needed (such as when
7186   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7187   # vice versa); the common cases where no linker options are needed do
7188   # not appear in the list.
7189   echo 'int i;' > conftest.$ac_ext
7190   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7191   (eval $ac_compile) 2>&5
7192   ac_status=$?
7193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7194   test $ac_status = 0; }; then
7195     case `/usr/bin/file conftest.o` in
7196       *32-bit*)
7197         case $host in
7198           x86_64-*kfreebsd*-gnu)
7199             LD="${LD-ld} -m elf_i386_fbsd"
7200             ;;
7201           x86_64-*linux*)
7202             case `/usr/bin/file conftest.o` in
7203               *x86-64*)
7204                 LD="${LD-ld} -m elf32_x86_64"
7205                 ;;
7206               *)
7207                 LD="${LD-ld} -m elf_i386"
7208                 ;;
7209             esac
7210             ;;
7211           powerpc64le-*linux*)
7212             LD="${LD-ld} -m elf32lppclinux"
7213             ;;
7214           powerpc64-*linux*)
7215             LD="${LD-ld} -m elf32ppclinux"
7216             ;;
7217           s390x-*linux*)
7218             LD="${LD-ld} -m elf_s390"
7219             ;;
7220           sparc64-*linux*)
7221             LD="${LD-ld} -m elf32_sparc"
7222             ;;
7223         esac
7224         ;;
7225       *64-bit*)
7226         case $host in
7227           x86_64-*kfreebsd*-gnu)
7228             LD="${LD-ld} -m elf_x86_64_fbsd"
7229             ;;
7230           x86_64-*linux*)
7231             LD="${LD-ld} -m elf_x86_64"
7232             ;;
7233           powerpcle-*linux*)
7234             LD="${LD-ld} -m elf64lppc"
7235             ;;
7236           powerpc-*linux*)
7237             LD="${LD-ld} -m elf64ppc"
7238             ;;
7239           s390*-*linux*|s390*-*tpf*)
7240             LD="${LD-ld} -m elf64_s390"
7241             ;;
7242           sparc*-*linux*)
7243             LD="${LD-ld} -m elf64_sparc"
7244             ;;
7245         esac
7246         ;;
7247     esac
7248   fi
7249   rm -rf conftest*
7250   ;;
7251
7252 *-*-sco3.2v5*)
7253   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7254   SAVE_CFLAGS=$CFLAGS
7255   CFLAGS="$CFLAGS -belf"
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7257 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7258 if ${lt_cv_cc_needs_belf+:} false; then :
7259   $as_echo_n "(cached) " >&6
7260 else
7261   ac_ext=c
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266
7267      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h.  */
7269
7270 int
7271 main ()
7272 {
7273
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 if ac_fn_c_try_link "$LINENO"; then :
7279   lt_cv_cc_needs_belf=yes
7280 else
7281   lt_cv_cc_needs_belf=no
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext \
7284     conftest$ac_exeext conftest.$ac_ext
7285      ac_ext=c
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7290
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7293 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7294   if test yes != "$lt_cv_cc_needs_belf"; then
7295     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7296     CFLAGS=$SAVE_CFLAGS
7297   fi
7298   ;;
7299 *-*solaris*)
7300   # Find out what ABI is being produced by ac_compile, and set linker
7301   # options accordingly.
7302   echo 'int i;' > conftest.$ac_ext
7303   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7304   (eval $ac_compile) 2>&5
7305   ac_status=$?
7306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7307   test $ac_status = 0; }; then
7308     case `/usr/bin/file conftest.o` in
7309     *64-bit*)
7310       case $lt_cv_prog_gnu_ld in
7311       yes*)
7312         case $host in
7313         i?86-*-solaris*|x86_64-*-solaris*)
7314           LD="${LD-ld} -m elf_x86_64"
7315           ;;
7316         sparc*-*-solaris*)
7317           LD="${LD-ld} -m elf64_sparc"
7318           ;;
7319         esac
7320         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7321         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7322           LD=${LD-ld}_sol2
7323         fi
7324         ;;
7325       *)
7326         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7327           LD="${LD-ld} -64"
7328         fi
7329         ;;
7330       esac
7331       ;;
7332     esac
7333   fi
7334   rm -rf conftest*
7335   ;;
7336 esac
7337
7338 need_locks=$enable_libtool_lock
7339
7340 if test -n "$ac_tool_prefix"; then
7341   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
7346   $as_echo_n "(cached) " >&6
7347 else
7348   if test -n "$MANIFEST_TOOL"; then
7349   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt"
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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7369 if test -n "$MANIFEST_TOOL"; then
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7371 $as_echo "$MANIFEST_TOOL" >&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_MANIFEST_TOOL"; then
7380   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7381   # Extract the first word of "mt", so it can be a program name with args.
7382 set dummy mt; 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_MANIFEST_TOOL+:} false; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388   if test -n "$ac_ct_MANIFEST_TOOL"; then
7389   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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_MANIFEST_TOOL="mt"
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_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7409 if test -n "$ac_ct_MANIFEST_TOOL"; then
7410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7411 $as_echo "$ac_ct_MANIFEST_TOOL" >&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_MANIFEST_TOOL" = x; then
7418     MANIFEST_TOOL=":"
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     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7427   fi
7428 else
7429   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7430 fi
7431
7432 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7434 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7435 if ${lt_cv_path_mainfest_tool+:} false; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438   lt_cv_path_mainfest_tool=no
7439   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7440   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7441   cat conftest.err >&5
7442   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7443     lt_cv_path_mainfest_tool=yes
7444   fi
7445   rm -f conftest*
7446 fi
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7448 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7449 if test yes != "$lt_cv_path_mainfest_tool"; then
7450   MANIFEST_TOOL=:
7451 fi
7452
7453
7454
7455
7456
7457
7458   case $host_os in
7459     rhapsody* | darwin*)
7460     if test -n "$ac_tool_prefix"; then
7461   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7462 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7466   $as_echo_n "(cached) " >&6
7467 else
7468   if test -n "$DSYMUTIL"; then
7469   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7470 else
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7473 do
7474   IFS=$as_save_IFS
7475   test -z "$as_dir" && as_dir=.
7476     for ac_exec_ext in '' $ac_executable_extensions; do
7477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480     break 2
7481   fi
7482 done
7483   done
7484 IFS=$as_save_IFS
7485
7486 fi
7487 fi
7488 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7489 if test -n "$DSYMUTIL"; then
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7491 $as_echo "$DSYMUTIL" >&6; }
7492 else
7493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7495 fi
7496
7497
7498 fi
7499 if test -z "$ac_cv_prog_DSYMUTIL"; then
7500   ac_ct_DSYMUTIL=$DSYMUTIL
7501   # Extract the first word of "dsymutil", so it can be a program name with args.
7502 set dummy dsymutil; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   if test -n "$ac_ct_DSYMUTIL"; then
7509   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516     for ac_exec_ext in '' $ac_executable_extensions; do
7517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523   done
7524 IFS=$as_save_IFS
7525
7526 fi
7527 fi
7528 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7529 if test -n "$ac_ct_DSYMUTIL"; then
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7531 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7532 else
7533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7535 fi
7536
7537   if test "x$ac_ct_DSYMUTIL" = x; then
7538     DSYMUTIL=":"
7539   else
7540     case $cross_compiling:$ac_tool_warned in
7541 yes:)
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544 ac_tool_warned=yes ;;
7545 esac
7546     DSYMUTIL=$ac_ct_DSYMUTIL
7547   fi
7548 else
7549   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7550 fi
7551
7552     if test -n "$ac_tool_prefix"; then
7553   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7554 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if ${ac_cv_prog_NMEDIT+:} false; then :
7558   $as_echo_n "(cached) " >&6
7559 else
7560   if test -n "$NMEDIT"; then
7561   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566   IFS=$as_save_IFS
7567   test -z "$as_dir" && as_dir=.
7568     for ac_exec_ext in '' $ac_executable_extensions; do
7569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572     break 2
7573   fi
7574 done
7575   done
7576 IFS=$as_save_IFS
7577
7578 fi
7579 fi
7580 NMEDIT=$ac_cv_prog_NMEDIT
7581 if test -n "$NMEDIT"; then
7582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7583 $as_echo "$NMEDIT" >&6; }
7584 else
7585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7587 fi
7588
7589
7590 fi
7591 if test -z "$ac_cv_prog_NMEDIT"; then
7592   ac_ct_NMEDIT=$NMEDIT
7593   # Extract the first word of "nmedit", so it can be a program name with args.
7594 set dummy nmedit; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7598   $as_echo_n "(cached) " >&6
7599 else
7600   if test -n "$ac_ct_NMEDIT"; then
7601   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608     for ac_exec_ext in '' $ac_executable_extensions; do
7609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615   done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7621 if test -n "$ac_ct_NMEDIT"; then
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7623 $as_echo "$ac_ct_NMEDIT" >&6; }
7624 else
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629   if test "x$ac_ct_NMEDIT" = x; then
7630     NMEDIT=":"
7631   else
7632     case $cross_compiling:$ac_tool_warned in
7633 yes:)
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7637 esac
7638     NMEDIT=$ac_ct_NMEDIT
7639   fi
7640 else
7641   NMEDIT="$ac_cv_prog_NMEDIT"
7642 fi
7643
7644     if test -n "$ac_tool_prefix"; then
7645   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7646 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 $as_echo_n "checking for $ac_word... " >&6; }
7649 if ${ac_cv_prog_LIPO+:} false; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   if test -n "$LIPO"; then
7653   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7654 else
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7657 do
7658   IFS=$as_save_IFS
7659   test -z "$as_dir" && as_dir=.
7660     for ac_exec_ext in '' $ac_executable_extensions; do
7661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7662     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664     break 2
7665   fi
7666 done
7667   done
7668 IFS=$as_save_IFS
7669
7670 fi
7671 fi
7672 LIPO=$ac_cv_prog_LIPO
7673 if test -n "$LIPO"; then
7674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7675 $as_echo "$LIPO" >&6; }
7676 else
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679 fi
7680
7681
7682 fi
7683 if test -z "$ac_cv_prog_LIPO"; then
7684   ac_ct_LIPO=$LIPO
7685   # Extract the first word of "lipo", so it can be a program name with args.
7686 set dummy lipo; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7690   $as_echo_n "(cached) " >&6
7691 else
7692   if test -n "$ac_ct_LIPO"; then
7693   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698   IFS=$as_save_IFS
7699   test -z "$as_dir" && as_dir=.
7700     for ac_exec_ext in '' $ac_executable_extensions; do
7701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702     ac_cv_prog_ac_ct_LIPO="lipo"
7703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704     break 2
7705   fi
7706 done
7707   done
7708 IFS=$as_save_IFS
7709
7710 fi
7711 fi
7712 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7713 if test -n "$ac_ct_LIPO"; then
7714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7715 $as_echo "$ac_ct_LIPO" >&6; }
7716 else
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7719 fi
7720
7721   if test "x$ac_ct_LIPO" = x; then
7722     LIPO=":"
7723   else
7724     case $cross_compiling:$ac_tool_warned in
7725 yes:)
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7728 ac_tool_warned=yes ;;
7729 esac
7730     LIPO=$ac_ct_LIPO
7731   fi
7732 else
7733   LIPO="$ac_cv_prog_LIPO"
7734 fi
7735
7736     if test -n "$ac_tool_prefix"; then
7737   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7738 set dummy ${ac_tool_prefix}otool; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_prog_OTOOL+:} false; then :
7742   $as_echo_n "(cached) " >&6
7743 else
7744   if test -n "$OTOOL"; then
7745   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750   IFS=$as_save_IFS
7751   test -z "$as_dir" && as_dir=.
7752     for ac_exec_ext in '' $ac_executable_extensions; do
7753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756     break 2
7757   fi
7758 done
7759   done
7760 IFS=$as_save_IFS
7761
7762 fi
7763 fi
7764 OTOOL=$ac_cv_prog_OTOOL
7765 if test -n "$OTOOL"; then
7766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7767 $as_echo "$OTOOL" >&6; }
7768 else
7769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7771 fi
7772
7773
7774 fi
7775 if test -z "$ac_cv_prog_OTOOL"; then
7776   ac_ct_OTOOL=$OTOOL
7777   # Extract the first word of "otool", so it can be a program name with args.
7778 set dummy otool; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7782   $as_echo_n "(cached) " >&6
7783 else
7784   if test -n "$ac_ct_OTOOL"; then
7785   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790   IFS=$as_save_IFS
7791   test -z "$as_dir" && as_dir=.
7792     for ac_exec_ext in '' $ac_executable_extensions; do
7793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794     ac_cv_prog_ac_ct_OTOOL="otool"
7795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796     break 2
7797   fi
7798 done
7799   done
7800 IFS=$as_save_IFS
7801
7802 fi
7803 fi
7804 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7805 if test -n "$ac_ct_OTOOL"; then
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7807 $as_echo "$ac_ct_OTOOL" >&6; }
7808 else
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7811 fi
7812
7813   if test "x$ac_ct_OTOOL" = x; then
7814     OTOOL=":"
7815   else
7816     case $cross_compiling:$ac_tool_warned in
7817 yes:)
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7820 ac_tool_warned=yes ;;
7821 esac
7822     OTOOL=$ac_ct_OTOOL
7823   fi
7824 else
7825   OTOOL="$ac_cv_prog_OTOOL"
7826 fi
7827
7828     if test -n "$ac_tool_prefix"; then
7829   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7830 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_OTOOL64+:} false; then :
7834   $as_echo_n "(cached) " >&6
7835 else
7836   if test -n "$OTOOL64"; then
7837   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842   IFS=$as_save_IFS
7843   test -z "$as_dir" && as_dir=.
7844     for ac_exec_ext in '' $ac_executable_extensions; do
7845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848     break 2
7849   fi
7850 done
7851   done
7852 IFS=$as_save_IFS
7853
7854 fi
7855 fi
7856 OTOOL64=$ac_cv_prog_OTOOL64
7857 if test -n "$OTOOL64"; then
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7859 $as_echo "$OTOOL64" >&6; }
7860 else
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865
7866 fi
7867 if test -z "$ac_cv_prog_OTOOL64"; then
7868   ac_ct_OTOOL64=$OTOOL64
7869   # Extract the first word of "otool64", so it can be a program name with args.
7870 set dummy otool64; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7874   $as_echo_n "(cached) " >&6
7875 else
7876   if test -n "$ac_ct_OTOOL64"; then
7877   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7878 else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7881 do
7882   IFS=$as_save_IFS
7883   test -z "$as_dir" && as_dir=.
7884     for ac_exec_ext in '' $ac_executable_extensions; do
7885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886     ac_cv_prog_ac_ct_OTOOL64="otool64"
7887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888     break 2
7889   fi
7890 done
7891   done
7892 IFS=$as_save_IFS
7893
7894 fi
7895 fi
7896 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7897 if test -n "$ac_ct_OTOOL64"; then
7898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7899 $as_echo "$ac_ct_OTOOL64" >&6; }
7900 else
7901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7903 fi
7904
7905   if test "x$ac_ct_OTOOL64" = x; then
7906     OTOOL64=":"
7907   else
7908     case $cross_compiling:$ac_tool_warned in
7909 yes:)
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7912 ac_tool_warned=yes ;;
7913 esac
7914     OTOOL64=$ac_ct_OTOOL64
7915   fi
7916 else
7917   OTOOL64="$ac_cv_prog_OTOOL64"
7918 fi
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7947 $as_echo_n "checking for -single_module linker flag... " >&6; }
7948 if ${lt_cv_apple_cc_single_mod+:} false; then :
7949   $as_echo_n "(cached) " >&6
7950 else
7951   lt_cv_apple_cc_single_mod=no
7952       if test -z "$LT_MULTI_MODULE"; then
7953         # By default we will add the -single_module flag. You can override
7954         # by either setting the environment variable LT_MULTI_MODULE
7955         # non-empty at configure time, or by adding -multi_module to the
7956         # link flags.
7957         rm -rf libconftest.dylib*
7958         echo "int foo(void){return 1;}" > conftest.c
7959         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7960 -dynamiclib -Wl,-single_module conftest.c" >&5
7961         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7962           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7963         _lt_result=$?
7964         # If there is a non-empty error log, and "single_module"
7965         # appears in it, assume the flag caused a linker warning
7966         if test -s conftest.err && $GREP single_module conftest.err; then
7967           cat conftest.err >&5
7968         # Otherwise, if the output was created with a 0 exit code from
7969         # the compiler, it worked.
7970         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7971           lt_cv_apple_cc_single_mod=yes
7972         else
7973           cat conftest.err >&5
7974         fi
7975         rm -rf libconftest.dylib*
7976         rm -f conftest.*
7977       fi
7978 fi
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7980 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7981
7982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7983 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7984 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7985   $as_echo_n "(cached) " >&6
7986 else
7987   lt_cv_ld_exported_symbols_list=no
7988       save_LDFLAGS=$LDFLAGS
7989       echo "_main" > conftest.sym
7990       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7991       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h.  */
7993
7994 int
7995 main ()
7996 {
7997
7998   ;
7999   return 0;
8000 }
8001 _ACEOF
8002 if ac_fn_c_try_link "$LINENO"; then :
8003   lt_cv_ld_exported_symbols_list=yes
8004 else
8005   lt_cv_ld_exported_symbols_list=no
8006 fi
8007 rm -f core conftest.err conftest.$ac_objext \
8008     conftest$ac_exeext conftest.$ac_ext
8009         LDFLAGS=$save_LDFLAGS
8010
8011 fi
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8013 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8014
8015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8016 $as_echo_n "checking for -force_load linker flag... " >&6; }
8017 if ${lt_cv_ld_force_load+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   lt_cv_ld_force_load=no
8021       cat > conftest.c << _LT_EOF
8022 int forced_loaded() { return 2;}
8023 _LT_EOF
8024       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8025       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8026       echo "$AR cr libconftest.a conftest.o" >&5
8027       $AR cr libconftest.a conftest.o 2>&5
8028       echo "$RANLIB libconftest.a" >&5
8029       $RANLIB libconftest.a 2>&5
8030       cat > conftest.c << _LT_EOF
8031 int main() { return 0;}
8032 _LT_EOF
8033       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8034       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8035       _lt_result=$?
8036       if test -s conftest.err && $GREP force_load conftest.err; then
8037         cat conftest.err >&5
8038       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8039         lt_cv_ld_force_load=yes
8040       else
8041         cat conftest.err >&5
8042       fi
8043         rm -f conftest.err libconftest.a conftest conftest.c
8044         rm -rf conftest.dSYM
8045
8046 fi
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8048 $as_echo "$lt_cv_ld_force_load" >&6; }
8049     case $host_os in
8050     rhapsody* | darwin1.[012])
8051       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8052     darwin1.*)
8053       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8054     darwin*) # darwin 5.x on
8055       # if running on 10.5 or later, the deployment target defaults
8056       # to the OS version, if on x86, and 10.4, the deployment
8057       # target defaults to 10.4. Don't you love it?
8058       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8059         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8060           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8061         10.[012][,.]*)
8062           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8063         10.*)
8064           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8065       esac
8066     ;;
8067   esac
8068     if test yes = "$lt_cv_apple_cc_single_mod"; then
8069       _lt_dar_single_mod='$single_module'
8070     fi
8071     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8072       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8073     else
8074       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8075     fi
8076     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8077       _lt_dsymutil='~$DSYMUTIL $lib || :'
8078     else
8079       _lt_dsymutil=
8080     fi
8081     ;;
8082   esac
8083
8084 # func_munge_path_list VARIABLE PATH
8085 # -----------------------------------
8086 # VARIABLE is name of variable containing _space_ separated list of
8087 # directories to be munged by the contents of PATH, which is string
8088 # having a format:
8089 # "DIR[:DIR]:"
8090 #       string "DIR[ DIR]" will be prepended to VARIABLE
8091 # ":DIR[:DIR]"
8092 #       string "DIR[ DIR]" will be appended to VARIABLE
8093 # "DIRP[:DIRP]::[DIRA:]DIRA"
8094 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8095 #       "DIRA[ DIRA]" will be appended to VARIABLE
8096 # "DIR[:DIR]"
8097 #       VARIABLE will be replaced by "DIR[ DIR]"
8098 func_munge_path_list ()
8099 {
8100     case x$2 in
8101     x)
8102         ;;
8103     *:)
8104         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8105         ;;
8106     x:*)
8107         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8108         ;;
8109     *::*)
8110         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8111         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8112         ;;
8113     *)
8114         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8115         ;;
8116     esac
8117 }
8118
8119 ac_ext=c
8120 ac_cpp='$CPP $CPPFLAGS'
8121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8125 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8126 # On Suns, sometimes $CPP names a directory.
8127 if test -n "$CPP" && test -d "$CPP"; then
8128   CPP=
8129 fi
8130 if test -z "$CPP"; then
8131   if ${ac_cv_prog_CPP+:} false; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134       # Double quotes because CPP needs to be expanded
8135     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8136     do
8137       ac_preproc_ok=false
8138 for ac_c_preproc_warn_flag in '' yes
8139 do
8140   # Use a header file that comes with gcc, so configuring glibc
8141   # with a fresh cross-compiler works.
8142   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8143   # <limits.h> exists even on freestanding compilers.
8144   # On the NeXT, cc -E runs the code through the compiler's parser,
8145   # not just through cpp. "Syntax error" is here to catch this case.
8146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h.  */
8148 #ifdef __STDC__
8149 # include <limits.h>
8150 #else
8151 # include <assert.h>
8152 #endif
8153                      Syntax error
8154 _ACEOF
8155 if ac_fn_c_try_cpp "$LINENO"; then :
8156
8157 else
8158   # Broken: fails on valid input.
8159 continue
8160 fi
8161 rm -f conftest.err conftest.i conftest.$ac_ext
8162
8163   # OK, works on sane cases.  Now check whether nonexistent headers
8164   # can be detected and how.
8165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h.  */
8167 #include <ac_nonexistent.h>
8168 _ACEOF
8169 if ac_fn_c_try_cpp "$LINENO"; then :
8170   # Broken: success on invalid input.
8171 continue
8172 else
8173   # Passes both tests.
8174 ac_preproc_ok=:
8175 break
8176 fi
8177 rm -f conftest.err conftest.i conftest.$ac_ext
8178
8179 done
8180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8181 rm -f conftest.i conftest.err conftest.$ac_ext
8182 if $ac_preproc_ok; then :
8183   break
8184 fi
8185
8186     done
8187     ac_cv_prog_CPP=$CPP
8188
8189 fi
8190   CPP=$ac_cv_prog_CPP
8191 else
8192   ac_cv_prog_CPP=$CPP
8193 fi
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8195 $as_echo "$CPP" >&6; }
8196 ac_preproc_ok=false
8197 for ac_c_preproc_warn_flag in '' yes
8198 do
8199   # Use a header file that comes with gcc, so configuring glibc
8200   # with a fresh cross-compiler works.
8201   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8202   # <limits.h> exists even on freestanding compilers.
8203   # On the NeXT, cc -E runs the code through the compiler's parser,
8204   # not just through cpp. "Syntax error" is here to catch this case.
8205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h.  */
8207 #ifdef __STDC__
8208 # include <limits.h>
8209 #else
8210 # include <assert.h>
8211 #endif
8212                      Syntax error
8213 _ACEOF
8214 if ac_fn_c_try_cpp "$LINENO"; then :
8215
8216 else
8217   # Broken: fails on valid input.
8218 continue
8219 fi
8220 rm -f conftest.err conftest.i conftest.$ac_ext
8221
8222   # OK, works on sane cases.  Now check whether nonexistent headers
8223   # can be detected and how.
8224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h.  */
8226 #include <ac_nonexistent.h>
8227 _ACEOF
8228 if ac_fn_c_try_cpp "$LINENO"; then :
8229   # Broken: success on invalid input.
8230 continue
8231 else
8232   # Passes both tests.
8233 ac_preproc_ok=:
8234 break
8235 fi
8236 rm -f conftest.err conftest.i conftest.$ac_ext
8237
8238 done
8239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8240 rm -f conftest.i conftest.err conftest.$ac_ext
8241 if $ac_preproc_ok; then :
8242
8243 else
8244   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8246 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8247 See \`config.log' for more details" "$LINENO" 5; }
8248 fi
8249
8250 ac_ext=c
8251 ac_cpp='$CPP $CPPFLAGS'
8252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8255
8256
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8258 $as_echo_n "checking for ANSI C header files... " >&6; }
8259 if ${ac_cv_header_stdc+:} false; then :
8260   $as_echo_n "(cached) " >&6
8261 else
8262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h.  */
8264 #include <stdlib.h>
8265 #include <stdarg.h>
8266 #include <string.h>
8267 #include <float.h>
8268
8269 int
8270 main ()
8271 {
8272
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_compile "$LINENO"; then :
8278   ac_cv_header_stdc=yes
8279 else
8280   ac_cv_header_stdc=no
8281 fi
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283
8284 if test $ac_cv_header_stdc = yes; then
8285   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h.  */
8288 #include <string.h>
8289
8290 _ACEOF
8291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8292   $EGREP "memchr" >/dev/null 2>&1; then :
8293
8294 else
8295   ac_cv_header_stdc=no
8296 fi
8297 rm -f conftest*
8298
8299 fi
8300
8301 if test $ac_cv_header_stdc = yes; then
8302   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h.  */
8305 #include <stdlib.h>
8306
8307 _ACEOF
8308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8309   $EGREP "free" >/dev/null 2>&1; then :
8310
8311 else
8312   ac_cv_header_stdc=no
8313 fi
8314 rm -f conftest*
8315
8316 fi
8317
8318 if test $ac_cv_header_stdc = yes; then
8319   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8320   if test "$cross_compiling" = yes; then :
8321   :
8322 else
8323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h.  */
8325 #include <ctype.h>
8326 #include <stdlib.h>
8327 #if ((' ' & 0x0FF) == 0x020)
8328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8330 #else
8331 # define ISLOWER(c) \
8332                    (('a' <= (c) && (c) <= 'i') \
8333                      || ('j' <= (c) && (c) <= 'r') \
8334                      || ('s' <= (c) && (c) <= 'z'))
8335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8336 #endif
8337
8338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8339 int
8340 main ()
8341 {
8342   int i;
8343   for (i = 0; i < 256; i++)
8344     if (XOR (islower (i), ISLOWER (i))
8345         || toupper (i) != TOUPPER (i))
8346       return 2;
8347   return 0;
8348 }
8349 _ACEOF
8350 if ac_fn_c_try_run "$LINENO"; then :
8351
8352 else
8353   ac_cv_header_stdc=no
8354 fi
8355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8356   conftest.$ac_objext conftest.beam conftest.$ac_ext
8357 fi
8358
8359 fi
8360 fi
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8362 $as_echo "$ac_cv_header_stdc" >&6; }
8363 if test $ac_cv_header_stdc = yes; then
8364
8365 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8366
8367 fi
8368
8369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8371                   inttypes.h stdint.h unistd.h
8372 do :
8373   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8374 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8375 "
8376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8377   cat >>confdefs.h <<_ACEOF
8378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8379 _ACEOF
8380
8381 fi
8382
8383 done
8384
8385
8386 for ac_header in dlfcn.h
8387 do :
8388   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8389 "
8390 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8391   cat >>confdefs.h <<_ACEOF
8392 #define HAVE_DLFCN_H 1
8393 _ACEOF
8394
8395 fi
8396
8397 done
8398
8399
8400
8401
8402 func_stripname_cnf ()
8403 {
8404   case $2 in
8405   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8406   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8407   esac
8408 } # func_stripname_cnf
8409
8410
8411
8412
8413
8414 # Set options
8415
8416
8417
8418         enable_dlopen=no
8419
8420
8421   enable_win32_dll=no
8422
8423
8424             # Check whether --enable-shared was given.
8425 if test "${enable_shared+set}" = set; then :
8426   enableval=$enable_shared; p=${PACKAGE-default}
8427     case $enableval in
8428     yes) enable_shared=yes ;;
8429     no) enable_shared=no ;;
8430     *)
8431       enable_shared=no
8432       # Look at the argument we got.  We use all the common list separators.
8433       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8434       for pkg in $enableval; do
8435         IFS=$lt_save_ifs
8436         if test "X$pkg" = "X$p"; then
8437           enable_shared=yes
8438         fi
8439       done
8440       IFS=$lt_save_ifs
8441       ;;
8442     esac
8443 else
8444   enable_shared=yes
8445 fi
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457 # Check whether --with-pic was given.
8458 if test "${with_pic+set}" = set; then :
8459   withval=$with_pic; lt_p=${PACKAGE-default}
8460     case $withval in
8461     yes|no) pic_mode=$withval ;;
8462     *)
8463       pic_mode=default
8464       # Look at the argument we got.  We use all the common list separators.
8465       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8466       for lt_pkg in $withval; do
8467         IFS=$lt_save_ifs
8468         if test "X$lt_pkg" = "X$lt_p"; then
8469           pic_mode=yes
8470         fi
8471       done
8472       IFS=$lt_save_ifs
8473       ;;
8474     esac
8475 else
8476   pic_mode=default
8477 fi
8478
8479
8480
8481
8482
8483
8484
8485
8486   # Check whether --enable-fast-install was given.
8487 if test "${enable_fast_install+set}" = set; then :
8488   enableval=$enable_fast_install; p=${PACKAGE-default}
8489     case $enableval in
8490     yes) enable_fast_install=yes ;;
8491     no) enable_fast_install=no ;;
8492     *)
8493       enable_fast_install=no
8494       # Look at the argument we got.  We use all the common list separators.
8495       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8496       for pkg in $enableval; do
8497         IFS=$lt_save_ifs
8498         if test "X$pkg" = "X$p"; then
8499           enable_fast_install=yes
8500         fi
8501       done
8502       IFS=$lt_save_ifs
8503       ;;
8504     esac
8505 else
8506   enable_fast_install=yes
8507 fi
8508
8509
8510
8511
8512
8513
8514
8515
8516   shared_archive_member_spec=
8517 case $host,$enable_shared in
8518 power*-*-aix[5-9]*,yes)
8519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8520 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8521
8522 # Check whether --with-aix-soname was given.
8523 if test "${with_aix_soname+set}" = set; then :
8524   withval=$with_aix_soname; case $withval in
8525     aix|svr4|both)
8526       ;;
8527     *)
8528       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8529       ;;
8530     esac
8531     lt_cv_with_aix_soname=$with_aix_soname
8532 else
8533   if ${lt_cv_with_aix_soname+:} false; then :
8534   $as_echo_n "(cached) " >&6
8535 else
8536   lt_cv_with_aix_soname=aix
8537 fi
8538
8539     with_aix_soname=$lt_cv_with_aix_soname
8540 fi
8541
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8543 $as_echo "$with_aix_soname" >&6; }
8544   if test aix != "$with_aix_soname"; then
8545     # For the AIX way of multilib, we name the shared archive member
8546     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8547     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8548     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8549     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8550     if test 64 = "${OBJECT_MODE-32}"; then
8551       shared_archive_member_spec=shr_64
8552     else
8553       shared_archive_member_spec=shr
8554     fi
8555   fi
8556   ;;
8557 *)
8558   with_aix_soname=aix
8559   ;;
8560 esac
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571 # This can be used to rebuild libtool when needed
8572 LIBTOOL_DEPS=$ltmain
8573
8574 # Always use our own libtool.
8575 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606 test -z "$LN_S" && LN_S="ln -s"
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621 if test -n "${ZSH_VERSION+set}"; then
8622    setopt NO_GLOB_SUBST
8623 fi
8624
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8626 $as_echo_n "checking for objdir... " >&6; }
8627 if ${lt_cv_objdir+:} false; then :
8628   $as_echo_n "(cached) " >&6
8629 else
8630   rm -f .libs 2>/dev/null
8631 mkdir .libs 2>/dev/null
8632 if test -d .libs; then
8633   lt_cv_objdir=.libs
8634 else
8635   # MS-DOS does not allow filenames that begin with a dot.
8636   lt_cv_objdir=_libs
8637 fi
8638 rmdir .libs 2>/dev/null
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8641 $as_echo "$lt_cv_objdir" >&6; }
8642 objdir=$lt_cv_objdir
8643
8644
8645
8646
8647
8648 cat >>confdefs.h <<_ACEOF
8649 #define LT_OBJDIR "$lt_cv_objdir/"
8650 _ACEOF
8651
8652
8653
8654
8655 case $host_os in
8656 aix3*)
8657   # AIX sometimes has problems with the GCC collect2 program.  For some
8658   # reason, if we set the COLLECT_NAMES environment variable, the problems
8659   # vanish in a puff of smoke.
8660   if test set != "${COLLECT_NAMES+set}"; then
8661     COLLECT_NAMES=
8662     export COLLECT_NAMES
8663   fi
8664   ;;
8665 esac
8666
8667 # Global variables:
8668 ofile=libtool
8669 can_build_shared=yes
8670
8671 # All known linkers require a '.a' archive for static linking (except MSVC,
8672 # which needs '.lib').
8673 libext=a
8674
8675 with_gnu_ld=$lt_cv_prog_gnu_ld
8676
8677 old_CC=$CC
8678 old_CFLAGS=$CFLAGS
8679
8680 # Set sane defaults for various variables
8681 test -z "$CC" && CC=cc
8682 test -z "$LTCC" && LTCC=$CC
8683 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8684 test -z "$LD" && LD=ld
8685 test -z "$ac_objext" && ac_objext=o
8686
8687 func_cc_basename $compiler
8688 cc_basename=$func_cc_basename_result
8689
8690
8691 # Only perform the check for file, if the check method requires it
8692 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8693 case $deplibs_check_method in
8694 file_magic*)
8695   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8697 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8698 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8699   $as_echo_n "(cached) " >&6
8700 else
8701   case $MAGIC_CMD in
8702 [\\/*] |  ?:[\\/]*)
8703   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8704   ;;
8705 *)
8706   lt_save_MAGIC_CMD=$MAGIC_CMD
8707   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8708   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8709   for ac_dir in $ac_dummy; do
8710     IFS=$lt_save_ifs
8711     test -z "$ac_dir" && ac_dir=.
8712     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8713       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8714       if test -n "$file_magic_test_file"; then
8715         case $deplibs_check_method in
8716         "file_magic "*)
8717           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8718           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8719           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8720             $EGREP "$file_magic_regex" > /dev/null; then
8721             :
8722           else
8723             cat <<_LT_EOF 1>&2
8724
8725 *** Warning: the command libtool uses to detect shared libraries,
8726 *** $file_magic_cmd, produces output that libtool cannot recognize.
8727 *** The result is that libtool may fail to recognize shared libraries
8728 *** as such.  This will affect the creation of libtool libraries that
8729 *** depend on shared libraries, but programs linked with such libtool
8730 *** libraries will work regardless of this problem.  Nevertheless, you
8731 *** may want to report the problem to your system manager and/or to
8732 *** bug-libtool@gnu.org
8733
8734 _LT_EOF
8735           fi ;;
8736         esac
8737       fi
8738       break
8739     fi
8740   done
8741   IFS=$lt_save_ifs
8742   MAGIC_CMD=$lt_save_MAGIC_CMD
8743   ;;
8744 esac
8745 fi
8746
8747 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8748 if test -n "$MAGIC_CMD"; then
8749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8750 $as_echo "$MAGIC_CMD" >&6; }
8751 else
8752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8754 fi
8755
8756
8757
8758
8759
8760 if test -z "$lt_cv_path_MAGIC_CMD"; then
8761   if test -n "$ac_tool_prefix"; then
8762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8763 $as_echo_n "checking for file... " >&6; }
8764 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8765   $as_echo_n "(cached) " >&6
8766 else
8767   case $MAGIC_CMD in
8768 [\\/*] |  ?:[\\/]*)
8769   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8770   ;;
8771 *)
8772   lt_save_MAGIC_CMD=$MAGIC_CMD
8773   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8774   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8775   for ac_dir in $ac_dummy; do
8776     IFS=$lt_save_ifs
8777     test -z "$ac_dir" && ac_dir=.
8778     if test -f "$ac_dir/file"; then
8779       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8780       if test -n "$file_magic_test_file"; then
8781         case $deplibs_check_method in
8782         "file_magic "*)
8783           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8784           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8785           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8786             $EGREP "$file_magic_regex" > /dev/null; then
8787             :
8788           else
8789             cat <<_LT_EOF 1>&2
8790
8791 *** Warning: the command libtool uses to detect shared libraries,
8792 *** $file_magic_cmd, produces output that libtool cannot recognize.
8793 *** The result is that libtool may fail to recognize shared libraries
8794 *** as such.  This will affect the creation of libtool libraries that
8795 *** depend on shared libraries, but programs linked with such libtool
8796 *** libraries will work regardless of this problem.  Nevertheless, you
8797 *** may want to report the problem to your system manager and/or to
8798 *** bug-libtool@gnu.org
8799
8800 _LT_EOF
8801           fi ;;
8802         esac
8803       fi
8804       break
8805     fi
8806   done
8807   IFS=$lt_save_ifs
8808   MAGIC_CMD=$lt_save_MAGIC_CMD
8809   ;;
8810 esac
8811 fi
8812
8813 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8814 if test -n "$MAGIC_CMD"; then
8815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8816 $as_echo "$MAGIC_CMD" >&6; }
8817 else
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8820 fi
8821
8822
8823   else
8824     MAGIC_CMD=:
8825   fi
8826 fi
8827
8828   fi
8829   ;;
8830 esac
8831
8832 # Use C for the default configuration in the libtool script
8833
8834 lt_save_CC=$CC
8835 ac_ext=c
8836 ac_cpp='$CPP $CPPFLAGS'
8837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8840
8841
8842 # Source file extension for C test sources.
8843 ac_ext=c
8844
8845 # Object file extension for compiled C test sources.
8846 objext=o
8847 objext=$objext
8848
8849 # Code to be used in simple compile tests
8850 lt_simple_compile_test_code="int some_variable = 0;"
8851
8852 # Code to be used in simple link tests
8853 lt_simple_link_test_code='int main(){return(0);}'
8854
8855
8856
8857
8858
8859
8860
8861 # If no C compiler was specified, use CC.
8862 LTCC=${LTCC-"$CC"}
8863
8864 # If no C compiler flags were specified, use CFLAGS.
8865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8866
8867 # Allow CC to be a program name with arguments.
8868 compiler=$CC
8869
8870 # Save the default compiler, since it gets overwritten when the other
8871 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8872 compiler_DEFAULT=$CC
8873
8874 # save warnings/boilerplate of simple test code
8875 ac_outfile=conftest.$ac_objext
8876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8878 _lt_compiler_boilerplate=`cat conftest.err`
8879 $RM conftest*
8880
8881 ac_outfile=conftest.$ac_objext
8882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8884 _lt_linker_boilerplate=`cat conftest.err`
8885 $RM -r conftest*
8886
8887
8888 ## CAVEAT EMPTOR:
8889 ## There is no encapsulation within the following macros, do not change
8890 ## the running order or otherwise move them around unless you know exactly
8891 ## what you are doing...
8892 if test -n "$compiler"; then
8893
8894 lt_prog_compiler_no_builtin_flag=
8895
8896 if test yes = "$GCC"; then
8897   case $cc_basename in
8898   nvcc*)
8899     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8900   *)
8901     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8902   esac
8903
8904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8905 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8906 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8907   $as_echo_n "(cached) " >&6
8908 else
8909   lt_cv_prog_compiler_rtti_exceptions=no
8910    ac_outfile=conftest.$ac_objext
8911    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8912    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8913    # Insert the option either (1) after the last *FLAGS variable, or
8914    # (2) before a word containing "conftest.", or (3) at the end.
8915    # Note that $ac_compile itself does not contain backslashes and begins
8916    # with a dollar sign (not a hyphen), so the echo should work correctly.
8917    # The option is referenced via a variable to avoid confusing sed.
8918    lt_compile=`echo "$ac_compile" | $SED \
8919    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8920    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8921    -e 's:$: $lt_compiler_flag:'`
8922    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8923    (eval "$lt_compile" 2>conftest.err)
8924    ac_status=$?
8925    cat conftest.err >&5
8926    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927    if (exit $ac_status) && test -s "$ac_outfile"; then
8928      # The compiler can only warn and ignore the option if not recognized
8929      # So say no if there are warnings other than the usual output.
8930      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8931      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8932      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8933        lt_cv_prog_compiler_rtti_exceptions=yes
8934      fi
8935    fi
8936    $RM conftest*
8937
8938 fi
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8940 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8941
8942 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8943     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8944 else
8945     :
8946 fi
8947
8948 fi
8949
8950
8951
8952
8953
8954
8955   lt_prog_compiler_wl=
8956 lt_prog_compiler_pic=
8957 lt_prog_compiler_static=
8958
8959
8960   if test yes = "$GCC"; then
8961     lt_prog_compiler_wl='-Wl,'
8962     lt_prog_compiler_static='-static'
8963
8964     case $host_os in
8965       aix*)
8966       # All AIX code is PIC.
8967       if test ia64 = "$host_cpu"; then
8968         # AIX 5 now supports IA64 processor
8969         lt_prog_compiler_static='-Bstatic'
8970       fi
8971       lt_prog_compiler_pic='-fPIC'
8972       ;;
8973
8974     amigaos*)
8975       case $host_cpu in
8976       powerpc)
8977             # see comment about AmigaOS4 .so support
8978             lt_prog_compiler_pic='-fPIC'
8979         ;;
8980       m68k)
8981             # FIXME: we need at least 68020 code to build shared libraries, but
8982             # adding the '-m68020' flag to GCC prevents building anything better,
8983             # like '-m68040'.
8984             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8985         ;;
8986       esac
8987       ;;
8988
8989     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8990       # PIC is the default for these OSes.
8991       ;;
8992
8993     mingw* | cygwin* | pw32* | os2* | cegcc*)
8994       # This hack is so that the source file can tell whether it is being
8995       # built for inclusion in a dll (and should export symbols for example).
8996       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8997       # (--disable-auto-import) libraries
8998       lt_prog_compiler_pic='-DDLL_EXPORT'
8999       case $host_os in
9000       os2*)
9001         lt_prog_compiler_static='$wl-static'
9002         ;;
9003       esac
9004       ;;
9005
9006     darwin* | rhapsody*)
9007       # PIC is the default on this platform
9008       # Common symbols not allowed in MH_DYLIB files
9009       lt_prog_compiler_pic='-fno-common'
9010       ;;
9011
9012     haiku*)
9013       # PIC is the default for Haiku.
9014       # The "-static" flag exists, but is broken.
9015       lt_prog_compiler_static=
9016       ;;
9017
9018     hpux*)
9019       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9020       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9021       # sets the default TLS model and affects inlining.
9022       case $host_cpu in
9023       hppa*64*)
9024         # +Z the default
9025         ;;
9026       *)
9027         lt_prog_compiler_pic='-fPIC'
9028         ;;
9029       esac
9030       ;;
9031
9032     interix[3-9]*)
9033       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9034       # Instead, we relocate shared libraries at runtime.
9035       ;;
9036
9037     msdosdjgpp*)
9038       # Just because we use GCC doesn't mean we suddenly get shared libraries
9039       # on systems that don't support them.
9040       lt_prog_compiler_can_build_shared=no
9041       enable_shared=no
9042       ;;
9043
9044     *nto* | *qnx*)
9045       # QNX uses GNU C++, but need to define -shared option too, otherwise
9046       # it will coredump.
9047       lt_prog_compiler_pic='-fPIC -shared'
9048       ;;
9049
9050     sysv4*MP*)
9051       if test -d /usr/nec; then
9052         lt_prog_compiler_pic=-Kconform_pic
9053       fi
9054       ;;
9055
9056     *)
9057       lt_prog_compiler_pic='-fPIC'
9058       ;;
9059     esac
9060
9061     case $cc_basename in
9062     nvcc*) # Cuda Compiler Driver 2.2
9063       lt_prog_compiler_wl='-Xlinker '
9064       if test -n "$lt_prog_compiler_pic"; then
9065         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9066       fi
9067       ;;
9068     esac
9069   else
9070     # PORTME Check for flag to pass linker flags through the system compiler.
9071     case $host_os in
9072     aix*)
9073       lt_prog_compiler_wl='-Wl,'
9074       if test ia64 = "$host_cpu"; then
9075         # AIX 5 now supports IA64 processor
9076         lt_prog_compiler_static='-Bstatic'
9077       else
9078         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9079       fi
9080       ;;
9081
9082     darwin* | rhapsody*)
9083       # PIC is the default on this platform
9084       # Common symbols not allowed in MH_DYLIB files
9085       lt_prog_compiler_pic='-fno-common'
9086       case $cc_basename in
9087       nagfor*)
9088         # NAG Fortran compiler
9089         lt_prog_compiler_wl='-Wl,-Wl,,'
9090         lt_prog_compiler_pic='-PIC'
9091         lt_prog_compiler_static='-Bstatic'
9092         ;;
9093       esac
9094       ;;
9095
9096     mingw* | cygwin* | pw32* | os2* | cegcc*)
9097       # This hack is so that the source file can tell whether it is being
9098       # built for inclusion in a dll (and should export symbols for example).
9099       lt_prog_compiler_pic='-DDLL_EXPORT'
9100       case $host_os in
9101       os2*)
9102         lt_prog_compiler_static='$wl-static'
9103         ;;
9104       esac
9105       ;;
9106
9107     hpux9* | hpux10* | hpux11*)
9108       lt_prog_compiler_wl='-Wl,'
9109       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9110       # not for PA HP-UX.
9111       case $host_cpu in
9112       hppa*64*|ia64*)
9113         # +Z the default
9114         ;;
9115       *)
9116         lt_prog_compiler_pic='+Z'
9117         ;;
9118       esac
9119       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9120       lt_prog_compiler_static='$wl-a ${wl}archive'
9121       ;;
9122
9123     irix5* | irix6* | nonstopux*)
9124       lt_prog_compiler_wl='-Wl,'
9125       # PIC (with -KPIC) is the default.
9126       lt_prog_compiler_static='-non_shared'
9127       ;;
9128
9129     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9130       case $cc_basename in
9131       # old Intel for x86_64, which still supported -KPIC.
9132       ecc*)
9133         lt_prog_compiler_wl='-Wl,'
9134         lt_prog_compiler_pic='-KPIC'
9135         lt_prog_compiler_static='-static'
9136         ;;
9137       # flang / f18. f95 an alias for gfortran or flang on Debian
9138       flang* | f18* | f95*)
9139         lt_prog_compiler_wl='-Wl,'
9140         lt_prog_compiler_pic='-fPIC'
9141         lt_prog_compiler_static='-static'
9142         ;;
9143       # icc used to be incompatible with GCC.
9144       # ICC 10 doesn't accept -KPIC any more.
9145       icc* | ifort*)
9146         lt_prog_compiler_wl='-Wl,'
9147         lt_prog_compiler_pic='-fPIC'
9148         lt_prog_compiler_static='-static'
9149         ;;
9150       # Lahey Fortran 8.1.
9151       lf95*)
9152         lt_prog_compiler_wl='-Wl,'
9153         lt_prog_compiler_pic='--shared'
9154         lt_prog_compiler_static='--static'
9155         ;;
9156       nagfor*)
9157         # NAG Fortran compiler
9158         lt_prog_compiler_wl='-Wl,-Wl,,'
9159         lt_prog_compiler_pic='-PIC'
9160         lt_prog_compiler_static='-Bstatic'
9161         ;;
9162       tcc*)
9163         # Fabrice Bellard et al's Tiny C Compiler
9164         lt_prog_compiler_wl='-Wl,'
9165         lt_prog_compiler_pic='-fPIC'
9166         lt_prog_compiler_static='-static'
9167         ;;
9168       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9169         # Portland Group compilers (*not* the Pentium gcc compiler,
9170         # which looks to be a dead project)
9171         lt_prog_compiler_wl='-Wl,'
9172         lt_prog_compiler_pic='-fpic'
9173         lt_prog_compiler_static='-Bstatic'
9174         ;;
9175       ccc*)
9176         lt_prog_compiler_wl='-Wl,'
9177         # All Alpha code is PIC.
9178         lt_prog_compiler_static='-non_shared'
9179         ;;
9180       xl* | bgxl* | bgf* | mpixl*)
9181         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9182         lt_prog_compiler_wl='-Wl,'
9183         lt_prog_compiler_pic='-qpic'
9184         lt_prog_compiler_static='-qstaticlink'
9185         ;;
9186       *)
9187         case `$CC -V 2>&1 | sed 5q` in
9188         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9189           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9190           lt_prog_compiler_pic='-KPIC'
9191           lt_prog_compiler_static='-Bstatic'
9192           lt_prog_compiler_wl=''
9193           ;;
9194         *Sun\ F* | *Sun*Fortran*)
9195           lt_prog_compiler_pic='-KPIC'
9196           lt_prog_compiler_static='-Bstatic'
9197           lt_prog_compiler_wl='-Qoption ld '
9198           ;;
9199         *Sun\ C*)
9200           # Sun C 5.9
9201           lt_prog_compiler_pic='-KPIC'
9202           lt_prog_compiler_static='-Bstatic'
9203           lt_prog_compiler_wl='-Wl,'
9204           ;;
9205         *Intel*\ [CF]*Compiler*)
9206           lt_prog_compiler_wl='-Wl,'
9207           lt_prog_compiler_pic='-fPIC'
9208           lt_prog_compiler_static='-static'
9209           ;;
9210         *Portland\ Group*)
9211           lt_prog_compiler_wl='-Wl,'
9212           lt_prog_compiler_pic='-fpic'
9213           lt_prog_compiler_static='-Bstatic'
9214           ;;
9215         esac
9216         ;;
9217       esac
9218       ;;
9219
9220     newsos6)
9221       lt_prog_compiler_pic='-KPIC'
9222       lt_prog_compiler_static='-Bstatic'
9223       ;;
9224
9225     *nto* | *qnx*)
9226       # QNX uses GNU C++, but need to define -shared option too, otherwise
9227       # it will coredump.
9228       lt_prog_compiler_pic='-fPIC -shared'
9229       ;;
9230
9231     osf3* | osf4* | osf5*)
9232       lt_prog_compiler_wl='-Wl,'
9233       # All OSF/1 code is PIC.
9234       lt_prog_compiler_static='-non_shared'
9235       ;;
9236
9237     rdos*)
9238       lt_prog_compiler_static='-non_shared'
9239       ;;
9240
9241     solaris*)
9242       lt_prog_compiler_pic='-KPIC'
9243       lt_prog_compiler_static='-Bstatic'
9244       case $cc_basename in
9245       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9246         lt_prog_compiler_wl='-Qoption ld ';;
9247       *)
9248         lt_prog_compiler_wl='-Wl,';;
9249       esac
9250       ;;
9251
9252     sunos4*)
9253       lt_prog_compiler_wl='-Qoption ld '
9254       lt_prog_compiler_pic='-PIC'
9255       lt_prog_compiler_static='-Bstatic'
9256       ;;
9257
9258     sysv4 | sysv4.2uw2* | sysv4.3*)
9259       lt_prog_compiler_wl='-Wl,'
9260       lt_prog_compiler_pic='-KPIC'
9261       lt_prog_compiler_static='-Bstatic'
9262       ;;
9263
9264     sysv4*MP*)
9265       if test -d /usr/nec; then
9266         lt_prog_compiler_pic='-Kconform_pic'
9267         lt_prog_compiler_static='-Bstatic'
9268       fi
9269       ;;
9270
9271     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9272       lt_prog_compiler_wl='-Wl,'
9273       lt_prog_compiler_pic='-KPIC'
9274       lt_prog_compiler_static='-Bstatic'
9275       ;;
9276
9277     unicos*)
9278       lt_prog_compiler_wl='-Wl,'
9279       lt_prog_compiler_can_build_shared=no
9280       ;;
9281
9282     uts4*)
9283       lt_prog_compiler_pic='-pic'
9284       lt_prog_compiler_static='-Bstatic'
9285       ;;
9286
9287     *)
9288       lt_prog_compiler_can_build_shared=no
9289       ;;
9290     esac
9291   fi
9292
9293 case $host_os in
9294   # For platforms that do not support PIC, -DPIC is meaningless:
9295   *djgpp*)
9296     lt_prog_compiler_pic=
9297     ;;
9298   *)
9299     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9300     ;;
9301 esac
9302
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9304 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9305 if ${lt_cv_prog_compiler_pic+:} false; then :
9306   $as_echo_n "(cached) " >&6
9307 else
9308   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9309 fi
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9311 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9312 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9313
9314 #
9315 # Check to make sure the PIC flag actually works.
9316 #
9317 if test -n "$lt_prog_compiler_pic"; then
9318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9319 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9320 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9321   $as_echo_n "(cached) " >&6
9322 else
9323   lt_cv_prog_compiler_pic_works=no
9324    ac_outfile=conftest.$ac_objext
9325    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9326    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9327    # Insert the option either (1) after the last *FLAGS variable, or
9328    # (2) before a word containing "conftest.", or (3) at the end.
9329    # Note that $ac_compile itself does not contain backslashes and begins
9330    # with a dollar sign (not a hyphen), so the echo should work correctly.
9331    # The option is referenced via a variable to avoid confusing sed.
9332    lt_compile=`echo "$ac_compile" | $SED \
9333    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9334    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9335    -e 's:$: $lt_compiler_flag:'`
9336    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9337    (eval "$lt_compile" 2>conftest.err)
9338    ac_status=$?
9339    cat conftest.err >&5
9340    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341    if (exit $ac_status) && test -s "$ac_outfile"; then
9342      # The compiler can only warn and ignore the option if not recognized
9343      # So say no if there are warnings other than the usual output.
9344      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9345      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9346      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9347        lt_cv_prog_compiler_pic_works=yes
9348      fi
9349    fi
9350    $RM conftest*
9351
9352 fi
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9354 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9355
9356 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9357     case $lt_prog_compiler_pic in
9358      "" | " "*) ;;
9359      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9360      esac
9361 else
9362     lt_prog_compiler_pic=
9363      lt_prog_compiler_can_build_shared=no
9364 fi
9365
9366 fi
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378 #
9379 # Check to make sure the static flag actually works.
9380 #
9381 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9383 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9384 if ${lt_cv_prog_compiler_static_works+:} false; then :
9385   $as_echo_n "(cached) " >&6
9386 else
9387   lt_cv_prog_compiler_static_works=no
9388    save_LDFLAGS=$LDFLAGS
9389    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9390    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9391    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9392      # The linker can only warn and ignore the option if not recognized
9393      # So say no if there are warnings
9394      if test -s conftest.err; then
9395        # Append any errors to the config.log.
9396        cat conftest.err 1>&5
9397        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9398        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9399        if diff conftest.exp conftest.er2 >/dev/null; then
9400          lt_cv_prog_compiler_static_works=yes
9401        fi
9402      else
9403        lt_cv_prog_compiler_static_works=yes
9404      fi
9405    fi
9406    $RM -r conftest*
9407    LDFLAGS=$save_LDFLAGS
9408
9409 fi
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9411 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9412
9413 if test yes = "$lt_cv_prog_compiler_static_works"; then
9414     :
9415 else
9416     lt_prog_compiler_static=
9417 fi
9418
9419
9420
9421
9422
9423
9424
9425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9427 if ${lt_cv_prog_compiler_c_o+:} false; then :
9428   $as_echo_n "(cached) " >&6
9429 else
9430   lt_cv_prog_compiler_c_o=no
9431    $RM -r conftest 2>/dev/null
9432    mkdir conftest
9433    cd conftest
9434    mkdir out
9435    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9436
9437    lt_compiler_flag="-o out/conftest2.$ac_objext"
9438    # Insert the option either (1) after the last *FLAGS variable, or
9439    # (2) before a word containing "conftest.", or (3) at the end.
9440    # Note that $ac_compile itself does not contain backslashes and begins
9441    # with a dollar sign (not a hyphen), so the echo should work correctly.
9442    lt_compile=`echo "$ac_compile" | $SED \
9443    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9444    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9445    -e 's:$: $lt_compiler_flag:'`
9446    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9447    (eval "$lt_compile" 2>out/conftest.err)
9448    ac_status=$?
9449    cat out/conftest.err >&5
9450    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9452    then
9453      # The compiler can only warn and ignore the option if not recognized
9454      # So say no if there are warnings
9455      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9456      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9457      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9458        lt_cv_prog_compiler_c_o=yes
9459      fi
9460    fi
9461    chmod u+w . 2>&5
9462    $RM conftest*
9463    # SGI C++ compiler will create directory out/ii_files/ for
9464    # template instantiation
9465    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9466    $RM out/* && rmdir out
9467    cd ..
9468    $RM -r conftest
9469    $RM conftest*
9470
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9473 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9474
9475
9476
9477
9478
9479
9480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9481 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9482 if ${lt_cv_prog_compiler_c_o+:} false; then :
9483   $as_echo_n "(cached) " >&6
9484 else
9485   lt_cv_prog_compiler_c_o=no
9486    $RM -r conftest 2>/dev/null
9487    mkdir conftest
9488    cd conftest
9489    mkdir out
9490    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9491
9492    lt_compiler_flag="-o out/conftest2.$ac_objext"
9493    # Insert the option either (1) after the last *FLAGS variable, or
9494    # (2) before a word containing "conftest.", or (3) at the end.
9495    # Note that $ac_compile itself does not contain backslashes and begins
9496    # with a dollar sign (not a hyphen), so the echo should work correctly.
9497    lt_compile=`echo "$ac_compile" | $SED \
9498    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9499    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9500    -e 's:$: $lt_compiler_flag:'`
9501    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9502    (eval "$lt_compile" 2>out/conftest.err)
9503    ac_status=$?
9504    cat out/conftest.err >&5
9505    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9507    then
9508      # The compiler can only warn and ignore the option if not recognized
9509      # So say no if there are warnings
9510      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9511      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9512      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9513        lt_cv_prog_compiler_c_o=yes
9514      fi
9515    fi
9516    chmod u+w . 2>&5
9517    $RM conftest*
9518    # SGI C++ compiler will create directory out/ii_files/ for
9519    # template instantiation
9520    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9521    $RM out/* && rmdir out
9522    cd ..
9523    $RM -r conftest
9524    $RM conftest*
9525
9526 fi
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9528 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9529
9530
9531
9532
9533 hard_links=nottested
9534 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9535   # do not overwrite the value of need_locks provided by the user
9536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9537 $as_echo_n "checking if we can lock with hard links... " >&6; }
9538   hard_links=yes
9539   $RM conftest*
9540   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9541   touch conftest.a
9542   ln conftest.a conftest.b 2>&5 || hard_links=no
9543   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9545 $as_echo "$hard_links" >&6; }
9546   if test no = "$hard_links"; then
9547     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9548 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9549     need_locks=warn
9550   fi
9551 else
9552   need_locks=no
9553 fi
9554
9555
9556
9557
9558
9559
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9561 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9562
9563   runpath_var=
9564   allow_undefined_flag=
9565   always_export_symbols=no
9566   archive_cmds=
9567   archive_expsym_cmds=
9568   compiler_needs_object=no
9569   enable_shared_with_static_runtimes=no
9570   export_dynamic_flag_spec=
9571   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9572   hardcode_automatic=no
9573   hardcode_direct=no
9574   hardcode_direct_absolute=no
9575   hardcode_libdir_flag_spec=
9576   hardcode_libdir_separator=
9577   hardcode_minus_L=no
9578   hardcode_shlibpath_var=unsupported
9579   inherit_rpath=no
9580   link_all_deplibs=unknown
9581   module_cmds=
9582   module_expsym_cmds=
9583   old_archive_from_new_cmds=
9584   old_archive_from_expsyms_cmds=
9585   thread_safe_flag_spec=
9586   whole_archive_flag_spec=
9587   # include_expsyms should be a list of space-separated symbols to be *always*
9588   # included in the symbol list
9589   include_expsyms=
9590   # exclude_expsyms can be an extended regexp of symbols to exclude
9591   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9592   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9593   # as well as any symbol that contains 'd'.
9594   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9595   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9596   # platforms (ab)use it in PIC code, but their linkers get confused if
9597   # the symbol is explicitly referenced.  Since portable code cannot
9598   # rely on this symbol name, it's probably fine to never include it in
9599   # preloaded symbol tables.
9600   # Exclude shared library initialization/finalization symbols.
9601   extract_expsyms_cmds=
9602
9603   case $host_os in
9604   cygwin* | mingw* | pw32* | cegcc*)
9605     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9606     # When not using gcc, we currently assume that we are using
9607     # Microsoft Visual C++.
9608     if test yes != "$GCC"; then
9609       with_gnu_ld=no
9610     fi
9611     ;;
9612   interix*)
9613     # we just hope/assume this is gcc and not c89 (= MSVC++)
9614     with_gnu_ld=yes
9615     ;;
9616   openbsd* | bitrig*)
9617     with_gnu_ld=no
9618     ;;
9619   linux* | k*bsd*-gnu | gnu*)
9620     link_all_deplibs=no
9621     ;;
9622   esac
9623
9624   ld_shlibs=yes
9625
9626   # On some targets, GNU ld is compatible enough with the native linker
9627   # that we're better off using the native interface for both.
9628   lt_use_gnu_ld_interface=no
9629   if test yes = "$with_gnu_ld"; then
9630     case $host_os in
9631       aix*)
9632         # The AIX port of GNU ld has always aspired to compatibility
9633         # with the native linker.  However, as the warning in the GNU ld
9634         # block says, versions before 2.19.5* couldn't really create working
9635         # shared libraries, regardless of the interface used.
9636         case `$LD -v 2>&1` in
9637           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9638           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9639           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9640           *)
9641             lt_use_gnu_ld_interface=yes
9642             ;;
9643         esac
9644         ;;
9645       *)
9646         lt_use_gnu_ld_interface=yes
9647         ;;
9648     esac
9649   fi
9650
9651   if test yes = "$lt_use_gnu_ld_interface"; then
9652     # If archive_cmds runs LD, not CC, wlarc should be empty
9653     wlarc='$wl'
9654
9655     # Set some defaults for GNU ld with shared library support. These
9656     # are reset later if shared libraries are not supported. Putting them
9657     # here allows them to be overridden if necessary.
9658     runpath_var=LD_RUN_PATH
9659     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9660     export_dynamic_flag_spec='$wl--export-dynamic'
9661     # ancient GNU ld didn't support --whole-archive et. al.
9662     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9663       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9664     else
9665       whole_archive_flag_spec=
9666     fi
9667     supports_anon_versioning=no
9668     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9669       *GNU\ gold*) supports_anon_versioning=yes ;;
9670       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9671       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9672       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9673       *\ 2.11.*) ;; # other 2.11 versions
9674       *) supports_anon_versioning=yes ;;
9675     esac
9676
9677     # See if GNU ld supports shared libraries.
9678     case $host_os in
9679     aix[3-9]*)
9680       # On AIX/PPC, the GNU linker is very broken
9681       if test ia64 != "$host_cpu"; then
9682         ld_shlibs=no
9683         cat <<_LT_EOF 1>&2
9684
9685 *** Warning: the GNU linker, at least up to release 2.19, is reported
9686 *** to be unable to reliably create shared libraries on AIX.
9687 *** Therefore, libtool is disabling shared libraries support.  If you
9688 *** really care for shared libraries, you may want to install binutils
9689 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9690 *** You will then need to restart the configuration process.
9691
9692 _LT_EOF
9693       fi
9694       ;;
9695
9696     amigaos*)
9697       case $host_cpu in
9698       powerpc)
9699             # see comment about AmigaOS4 .so support
9700             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9701             archive_expsym_cmds=''
9702         ;;
9703       m68k)
9704             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)'
9705             hardcode_libdir_flag_spec='-L$libdir'
9706             hardcode_minus_L=yes
9707         ;;
9708       esac
9709       ;;
9710
9711     beos*)
9712       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9713         allow_undefined_flag=unsupported
9714         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9715         # support --undefined.  This deserves some investigation.  FIXME
9716         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9717       else
9718         ld_shlibs=no
9719       fi
9720       ;;
9721
9722     cygwin* | mingw* | pw32* | cegcc*)
9723       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9724       # as there is no search path for DLLs.
9725       hardcode_libdir_flag_spec='-L$libdir'
9726       export_dynamic_flag_spec='$wl--export-all-symbols'
9727       allow_undefined_flag=unsupported
9728       always_export_symbols=no
9729       enable_shared_with_static_runtimes=yes
9730       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'
9731       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9732
9733       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9734         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9735         # If the export-symbols file already is a .def file, use it as
9736         # is; otherwise, prepend EXPORTS...
9737         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9738           cp $export_symbols $output_objdir/$soname.def;
9739         else
9740           echo EXPORTS > $output_objdir/$soname.def;
9741           cat $export_symbols >> $output_objdir/$soname.def;
9742         fi~
9743         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9744       else
9745         ld_shlibs=no
9746       fi
9747       ;;
9748
9749     haiku*)
9750       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9751       link_all_deplibs=yes
9752       ;;
9753
9754     os2*)
9755       hardcode_libdir_flag_spec='-L$libdir'
9756       hardcode_minus_L=yes
9757       allow_undefined_flag=unsupported
9758       shrext_cmds=.dll
9759       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9760         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9761         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9762         $ECHO EXPORTS >> $output_objdir/$libname.def~
9763         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9764         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9765         emximp -o $lib $output_objdir/$libname.def'
9766       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9767         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9768         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9769         $ECHO EXPORTS >> $output_objdir/$libname.def~
9770         prefix_cmds="$SED"~
9771         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9772           prefix_cmds="$prefix_cmds -e 1d";
9773         fi~
9774         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9775         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9776         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9777         emximp -o $lib $output_objdir/$libname.def'
9778       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9779       enable_shared_with_static_runtimes=yes
9780       ;;
9781
9782     interix[3-9]*)
9783       hardcode_direct=no
9784       hardcode_shlibpath_var=no
9785       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9786       export_dynamic_flag_spec='$wl-E'
9787       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9788       # Instead, shared libraries are loaded at an image base (0x10000000 by
9789       # default) and relocated if they conflict, which is a slow very memory
9790       # consuming and fragmenting process.  To avoid this, we pick a random,
9791       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9792       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9793       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9794       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'
9795       ;;
9796
9797     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9798       tmp_diet=no
9799       if test linux-dietlibc = "$host_os"; then
9800         case $cc_basename in
9801           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9802         esac
9803       fi
9804       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9805          && test no = "$tmp_diet"
9806       then
9807         tmp_addflag=' $pic_flag'
9808         tmp_sharedflag='-shared'
9809         case $cc_basename,$host_cpu in
9810         pgcc*)                          # Portland Group C compiler
9811           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'
9812           tmp_addflag=' $pic_flag'
9813           ;;
9814         pgf77* | pgf90* | pgf95* | pgfortran*)
9815                                         # Portland Group f77 and f90 compilers
9816           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'
9817           tmp_addflag=' $pic_flag -Mnomain' ;;
9818         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9819           tmp_addflag=' -i_dynamic' ;;
9820         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9821           tmp_addflag=' -i_dynamic -nofor_main' ;;
9822         ifc* | ifort*)                  # Intel Fortran compiler
9823           tmp_addflag=' -nofor_main' ;;
9824         lf95*)                          # Lahey Fortran 8.1
9825           whole_archive_flag_spec=
9826           tmp_sharedflag='--shared' ;;
9827         nagfor*)                        # NAGFOR 5.3
9828           tmp_sharedflag='-Wl,-shared' ;;
9829         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9830           tmp_sharedflag='-qmkshrobj'
9831           tmp_addflag= ;;
9832         nvcc*)  # Cuda Compiler Driver 2.2
9833           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'
9834           compiler_needs_object=yes
9835           ;;
9836         esac
9837         case `$CC -V 2>&1 | sed 5q` in
9838         *Sun\ C*)                       # Sun C 5.9
9839           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'
9840           compiler_needs_object=yes
9841           tmp_sharedflag='-G' ;;
9842         *Sun\ F*)                       # Sun Fortran 8.3
9843           tmp_sharedflag='-G' ;;
9844         esac
9845         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9846
9847         if test yes = "$supports_anon_versioning"; then
9848           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9849             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9850             echo "local: *; };" >> $output_objdir/$libname.ver~
9851             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9852         fi
9853
9854         case $cc_basename in
9855         tcc*)
9856           export_dynamic_flag_spec='-rdynamic'
9857           ;;
9858         xlf* | bgf* | bgxlf* | mpixlf*)
9859           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9860           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9861           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9862           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9863           if test yes = "$supports_anon_versioning"; then
9864             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9865               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9866               echo "local: *; };" >> $output_objdir/$libname.ver~
9867               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9868           fi
9869           ;;
9870         esac
9871       else
9872         ld_shlibs=no
9873       fi
9874       ;;
9875
9876     netbsd* | netbsdelf*-gnu)
9877       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9878         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9879         wlarc=
9880       else
9881         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9882         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9883       fi
9884       ;;
9885
9886     solaris*)
9887       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9888         ld_shlibs=no
9889         cat <<_LT_EOF 1>&2
9890
9891 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9892 *** create shared libraries on Solaris systems.  Therefore, libtool
9893 *** is disabling shared libraries support.  We urge you to upgrade GNU
9894 *** binutils to release 2.9.1 or newer.  Another option is to modify
9895 *** your PATH or compiler configuration so that the native linker is
9896 *** used, and then restart.
9897
9898 _LT_EOF
9899       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9900         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9901         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9902       else
9903         ld_shlibs=no
9904       fi
9905       ;;
9906
9907     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9908       case `$LD -v 2>&1` in
9909         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9910         ld_shlibs=no
9911         cat <<_LT_EOF 1>&2
9912
9913 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9914 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9915 *** is disabling shared libraries support.  We urge you to upgrade GNU
9916 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9917 *** your PATH or compiler configuration so that the native linker is
9918 *** used, and then restart.
9919
9920 _LT_EOF
9921         ;;
9922         *)
9923           # For security reasons, it is highly recommended that you always
9924           # use absolute paths for naming shared libraries, and exclude the
9925           # DT_RUNPATH tag from executables and libraries.  But doing so
9926           # requires that you compile everything twice, which is a pain.
9927           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9928             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9929             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9930             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9931           else
9932             ld_shlibs=no
9933           fi
9934         ;;
9935       esac
9936       ;;
9937
9938     sunos4*)
9939       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9940       wlarc=
9941       hardcode_direct=yes
9942       hardcode_shlibpath_var=no
9943       ;;
9944
9945     *)
9946       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9947         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9948         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9949       else
9950         ld_shlibs=no
9951       fi
9952       ;;
9953     esac
9954
9955     if test no = "$ld_shlibs"; then
9956       runpath_var=
9957       hardcode_libdir_flag_spec=
9958       export_dynamic_flag_spec=
9959       whole_archive_flag_spec=
9960     fi
9961   else
9962     # PORTME fill in a description of your system's linker (not GNU ld)
9963     case $host_os in
9964     aix3*)
9965       allow_undefined_flag=unsupported
9966       always_export_symbols=yes
9967       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'
9968       # Note: this linker hardcodes the directories in LIBPATH if there
9969       # are no directories specified by -L.
9970       hardcode_minus_L=yes
9971       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9972         # Neither direct hardcoding nor static linking is supported with a
9973         # broken collect2.
9974         hardcode_direct=unsupported
9975       fi
9976       ;;
9977
9978     aix[4-9]*)
9979       if test ia64 = "$host_cpu"; then
9980         # On IA64, the linker does run time linking by default, so we don't
9981         # have to do anything special.
9982         aix_use_runtimelinking=no
9983         exp_sym_flag='-Bexport'
9984         no_entry_flag=
9985       else
9986         # If we're using GNU nm, then we don't want the "-C" option.
9987         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9988         # Without the "-l" option, or with the "-B" option, AIX nm treats
9989         # weak defined symbols like other global defined symbols, whereas
9990         # GNU nm marks them as "W".
9991         # While the 'weak' keyword is ignored in the Export File, we need
9992         # it in the Import File for the 'aix-soname' feature, so we have
9993         # to replace the "-B" option with "-P" for AIX nm.
9994         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9995           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9996         else
9997           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9998         fi
9999         aix_use_runtimelinking=no
10000
10001         # Test if we are trying to use run time linking or normal
10002         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10003         # have runtime linking enabled, and use it for executables.
10004         # For shared libraries, we enable/disable runtime linking
10005         # depending on the kind of the shared library created -
10006         # when "with_aix_soname,aix_use_runtimelinking" is:
10007         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10008         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10009         #            lib.a           static archive
10010         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10011         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10012         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10013         #            lib.a(lib.so.V) shared, rtl:no
10014         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10015         #            lib.a           static archive
10016         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10017           for ld_flag in $LDFLAGS; do
10018           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10019             aix_use_runtimelinking=yes
10020             break
10021           fi
10022           done
10023           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10024             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10025             # so we don't have lib.a shared libs to link our executables.
10026             # We have to force runtime linking in this case.
10027             aix_use_runtimelinking=yes
10028             LDFLAGS="$LDFLAGS -Wl,-brtl"
10029           fi
10030           ;;
10031         esac
10032
10033         exp_sym_flag='-bexport'
10034         no_entry_flag='-bnoentry'
10035       fi
10036
10037       # When large executables or shared objects are built, AIX ld can
10038       # have problems creating the table of contents.  If linking a library
10039       # or program results in "error TOC overflow" add -mminimal-toc to
10040       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10041       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10042
10043       archive_cmds=''
10044       hardcode_direct=yes
10045       hardcode_direct_absolute=yes
10046       hardcode_libdir_separator=':'
10047       link_all_deplibs=yes
10048       file_list_spec='$wl-f,'
10049       case $with_aix_soname,$aix_use_runtimelinking in
10050       aix,*) ;; # traditional, no import file
10051       svr4,* | *,yes) # use import file
10052         # The Import File defines what to hardcode.
10053         hardcode_direct=no
10054         hardcode_direct_absolute=no
10055         ;;
10056       esac
10057
10058       if test yes = "$GCC"; then
10059         case $host_os in aix4.[012]|aix4.[012].*)
10060         # We only want to do this on AIX 4.2 and lower, the check
10061         # below for broken collect2 doesn't work under 4.3+
10062           collect2name=`$CC -print-prog-name=collect2`
10063           if test -f "$collect2name" &&
10064            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10065           then
10066           # We have reworked collect2
10067           :
10068           else
10069           # We have old collect2
10070           hardcode_direct=unsupported
10071           # It fails to find uninstalled libraries when the uninstalled
10072           # path is not listed in the libpath.  Setting hardcode_minus_L
10073           # to unsupported forces relinking
10074           hardcode_minus_L=yes
10075           hardcode_libdir_flag_spec='-L$libdir'
10076           hardcode_libdir_separator=
10077           fi
10078           ;;
10079         esac
10080         shared_flag='-shared'
10081         if test yes = "$aix_use_runtimelinking"; then
10082           shared_flag="$shared_flag "'$wl-G'
10083         fi
10084         # Need to ensure runtime linking is disabled for the traditional
10085         # shared library, or the linker may eventually find shared libraries
10086         # /with/ Import File - we do not want to mix them.
10087         shared_flag_aix='-shared'
10088         shared_flag_svr4='-shared $wl-G'
10089       else
10090         # not using gcc
10091         if test ia64 = "$host_cpu"; then
10092         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10093         # chokes on -Wl,-G. The following line is correct:
10094           shared_flag='-G'
10095         else
10096           if test yes = "$aix_use_runtimelinking"; then
10097             shared_flag='$wl-G'
10098           else
10099             shared_flag='$wl-bM:SRE'
10100           fi
10101           shared_flag_aix='$wl-bM:SRE'
10102           shared_flag_svr4='$wl-G'
10103         fi
10104       fi
10105
10106       export_dynamic_flag_spec='$wl-bexpall'
10107       # It seems that -bexpall does not export symbols beginning with
10108       # underscore (_), so it is better to generate a list of symbols to export.
10109       always_export_symbols=yes
10110       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10111         # Warning - without using the other runtime loading flags (-brtl),
10112         # -berok will link without error, but may produce a broken library.
10113         allow_undefined_flag='-berok'
10114         # Determine the default libpath from the value encoded in an
10115         # empty executable.
10116         if test set = "${lt_cv_aix_libpath+set}"; then
10117   aix_libpath=$lt_cv_aix_libpath
10118 else
10119   if ${lt_cv_aix_libpath_+:} false; then :
10120   $as_echo_n "(cached) " >&6
10121 else
10122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h.  */
10124
10125 int
10126 main ()
10127 {
10128
10129   ;
10130   return 0;
10131 }
10132 _ACEOF
10133 if ac_fn_c_try_link "$LINENO"; then :
10134
10135   lt_aix_libpath_sed='
10136       /Import File Strings/,/^$/ {
10137           /^0/ {
10138               s/^0  *\([^ ]*\) *$/\1/
10139               p
10140           }
10141       }'
10142   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10143   # Check for a 64-bit object if we didn't find anything.
10144   if test -z "$lt_cv_aix_libpath_"; then
10145     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10146   fi
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext \
10149     conftest$ac_exeext conftest.$ac_ext
10150   if test -z "$lt_cv_aix_libpath_"; then
10151     lt_cv_aix_libpath_=/usr/lib:/lib
10152   fi
10153
10154 fi
10155
10156   aix_libpath=$lt_cv_aix_libpath_
10157 fi
10158
10159         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10160         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10161       else
10162         if test ia64 = "$host_cpu"; then
10163           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10164           allow_undefined_flag="-z nodefs"
10165           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"
10166         else
10167          # Determine the default libpath from the value encoded in an
10168          # empty executable.
10169          if test set = "${lt_cv_aix_libpath+set}"; then
10170   aix_libpath=$lt_cv_aix_libpath
10171 else
10172   if ${lt_cv_aix_libpath_+:} false; then :
10173   $as_echo_n "(cached) " >&6
10174 else
10175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h.  */
10177
10178 int
10179 main ()
10180 {
10181
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 if ac_fn_c_try_link "$LINENO"; then :
10187
10188   lt_aix_libpath_sed='
10189       /Import File Strings/,/^$/ {
10190           /^0/ {
10191               s/^0  *\([^ ]*\) *$/\1/
10192               p
10193           }
10194       }'
10195   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10196   # Check for a 64-bit object if we didn't find anything.
10197   if test -z "$lt_cv_aix_libpath_"; then
10198     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10199   fi
10200 fi
10201 rm -f core conftest.err conftest.$ac_objext \
10202     conftest$ac_exeext conftest.$ac_ext
10203   if test -z "$lt_cv_aix_libpath_"; then
10204     lt_cv_aix_libpath_=/usr/lib:/lib
10205   fi
10206
10207 fi
10208
10209   aix_libpath=$lt_cv_aix_libpath_
10210 fi
10211
10212          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10213           # Warning - without using the other run time loading flags,
10214           # -berok will link without error, but may produce a broken library.
10215           no_undefined_flag=' $wl-bernotok'
10216           allow_undefined_flag=' $wl-berok'
10217           if test yes = "$with_gnu_ld"; then
10218             # We only use this code for GNU lds that support --whole-archive.
10219             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10220           else
10221             # Exported symbols can be pulled into shared objects from archives
10222             whole_archive_flag_spec='$convenience'
10223           fi
10224           archive_cmds_need_lc=yes
10225           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10226           # -brtl affects multiple linker settings, -berok does not and is overridden later
10227           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10228           if test svr4 != "$with_aix_soname"; then
10229             # This is similar to how AIX traditionally builds its shared libraries.
10230             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10231           fi
10232           if test aix != "$with_aix_soname"; then
10233             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10234           else
10235             # used by -dlpreopen to get the symbols
10236             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10237           fi
10238           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10239         fi
10240       fi
10241       ;;
10242
10243     amigaos*)
10244       case $host_cpu in
10245       powerpc)
10246             # see comment about AmigaOS4 .so support
10247             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10248             archive_expsym_cmds=''
10249         ;;
10250       m68k)
10251             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)'
10252             hardcode_libdir_flag_spec='-L$libdir'
10253             hardcode_minus_L=yes
10254         ;;
10255       esac
10256       ;;
10257
10258     bsdi[45]*)
10259       export_dynamic_flag_spec=-rdynamic
10260       ;;
10261
10262     cygwin* | mingw* | pw32* | cegcc*)
10263       # When not using gcc, we currently assume that we are using
10264       # Microsoft Visual C++.
10265       # hardcode_libdir_flag_spec is actually meaningless, as there is
10266       # no search path for DLLs.
10267       case $cc_basename in
10268       cl*)
10269         # Native MSVC
10270         hardcode_libdir_flag_spec=' '
10271         allow_undefined_flag=unsupported
10272         always_export_symbols=yes
10273         file_list_spec='@'
10274         # Tell ltmain to make .lib files, not .a files.
10275         libext=lib
10276         # Tell ltmain to make .dll files, not .so files.
10277         shrext_cmds=.dll
10278         # FIXME: Setting linknames here is a bad hack.
10279         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10280         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10281             cp "$export_symbols" "$output_objdir/$soname.def";
10282             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10283           else
10284             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10285           fi~
10286           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10287           linknames='
10288         # The linker will not automatically build a static lib if we build a DLL.
10289         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10290         enable_shared_with_static_runtimes=yes
10291         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10292         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10293         # Don't use ranlib
10294         old_postinstall_cmds='chmod 644 $oldlib'
10295         postlink_cmds='lt_outputfile="@OUTPUT@"~
10296           lt_tool_outputfile="@TOOL_OUTPUT@"~
10297           case $lt_outputfile in
10298             *.exe|*.EXE) ;;
10299             *)
10300               lt_outputfile=$lt_outputfile.exe
10301               lt_tool_outputfile=$lt_tool_outputfile.exe
10302               ;;
10303           esac~
10304           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10305             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10306             $RM "$lt_outputfile.manifest";
10307           fi'
10308         ;;
10309       *)
10310         # Assume MSVC wrapper
10311         hardcode_libdir_flag_spec=' '
10312         allow_undefined_flag=unsupported
10313         # Tell ltmain to make .lib files, not .a files.
10314         libext=lib
10315         # Tell ltmain to make .dll files, not .so files.
10316         shrext_cmds=.dll
10317         # FIXME: Setting linknames here is a bad hack.
10318         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10319         # The linker will automatically build a .lib file if we build a DLL.
10320         old_archive_from_new_cmds='true'
10321         # FIXME: Should let the user specify the lib program.
10322         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10323         enable_shared_with_static_runtimes=yes
10324         ;;
10325       esac
10326       ;;
10327
10328     darwin* | rhapsody*)
10329
10330
10331   archive_cmds_need_lc=no
10332   hardcode_direct=no
10333   hardcode_automatic=yes
10334   hardcode_shlibpath_var=unsupported
10335   if test yes = "$lt_cv_ld_force_load"; then
10336     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\"`'
10337
10338   else
10339     whole_archive_flag_spec=''
10340   fi
10341   link_all_deplibs=yes
10342   allow_undefined_flag=$_lt_dar_allow_undefined
10343   case $cc_basename in
10344      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10345      *) _lt_dar_can_shared=$GCC ;;
10346   esac
10347   if test yes = "$_lt_dar_can_shared"; then
10348     output_verbose_link_cmd=func_echo_all
10349     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10350     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10351     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"
10352     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"
10353
10354   else
10355   ld_shlibs=no
10356   fi
10357
10358       ;;
10359
10360     dgux*)
10361       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362       hardcode_libdir_flag_spec='-L$libdir'
10363       hardcode_shlibpath_var=no
10364       ;;
10365
10366     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10367     # support.  Future versions do this automatically, but an explicit c++rt0.o
10368     # does not break anything, and helps significantly (at the cost of a little
10369     # extra space).
10370     freebsd2.2*)
10371       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10372       hardcode_libdir_flag_spec='-R$libdir'
10373       hardcode_direct=yes
10374       hardcode_shlibpath_var=no
10375       ;;
10376
10377     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10378     freebsd2.*)
10379       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10380       hardcode_direct=yes
10381       hardcode_minus_L=yes
10382       hardcode_shlibpath_var=no
10383       ;;
10384
10385     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10386     freebsd* | dragonfly*)
10387       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10388       hardcode_libdir_flag_spec='-R$libdir'
10389       hardcode_direct=yes
10390       hardcode_shlibpath_var=no
10391       ;;
10392
10393     hpux9*)
10394       if test yes = "$GCC"; then
10395         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10396       else
10397         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10398       fi
10399       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10400       hardcode_libdir_separator=:
10401       hardcode_direct=yes
10402
10403       # hardcode_minus_L: Not really in the search PATH,
10404       # but as the default location of the library.
10405       hardcode_minus_L=yes
10406       export_dynamic_flag_spec='$wl-E'
10407       ;;
10408
10409     hpux10*)
10410       if test yes,no = "$GCC,$with_gnu_ld"; then
10411         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10412       else
10413         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10414       fi
10415       if test no = "$with_gnu_ld"; then
10416         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10417         hardcode_libdir_separator=:
10418         hardcode_direct=yes
10419         hardcode_direct_absolute=yes
10420         export_dynamic_flag_spec='$wl-E'
10421         # hardcode_minus_L: Not really in the search PATH,
10422         # but as the default location of the library.
10423         hardcode_minus_L=yes
10424       fi
10425       ;;
10426
10427     hpux11*)
10428       if test yes,no = "$GCC,$with_gnu_ld"; then
10429         case $host_cpu in
10430         hppa*64*)
10431           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10432           ;;
10433         ia64*)
10434           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10435           ;;
10436         *)
10437           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10438           ;;
10439         esac
10440       else
10441         case $host_cpu in
10442         hppa*64*)
10443           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10444           ;;
10445         ia64*)
10446           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10447           ;;
10448         *)
10449
10450           # Older versions of the 11.00 compiler do not understand -b yet
10451           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10452           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10453 $as_echo_n "checking if $CC understands -b... " >&6; }
10454 if ${lt_cv_prog_compiler__b+:} false; then :
10455   $as_echo_n "(cached) " >&6
10456 else
10457   lt_cv_prog_compiler__b=no
10458    save_LDFLAGS=$LDFLAGS
10459    LDFLAGS="$LDFLAGS -b"
10460    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10461    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10462      # The linker can only warn and ignore the option if not recognized
10463      # So say no if there are warnings
10464      if test -s conftest.err; then
10465        # Append any errors to the config.log.
10466        cat conftest.err 1>&5
10467        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10468        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10469        if diff conftest.exp conftest.er2 >/dev/null; then
10470          lt_cv_prog_compiler__b=yes
10471        fi
10472      else
10473        lt_cv_prog_compiler__b=yes
10474      fi
10475    fi
10476    $RM -r conftest*
10477    LDFLAGS=$save_LDFLAGS
10478
10479 fi
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10481 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10482
10483 if test yes = "$lt_cv_prog_compiler__b"; then
10484     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10485 else
10486     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10487 fi
10488
10489           ;;
10490         esac
10491       fi
10492       if test no = "$with_gnu_ld"; then
10493         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10494         hardcode_libdir_separator=:
10495
10496         case $host_cpu in
10497         hppa*64*|ia64*)
10498           hardcode_direct=no
10499           hardcode_shlibpath_var=no
10500           ;;
10501         *)
10502           hardcode_direct=yes
10503           hardcode_direct_absolute=yes
10504           export_dynamic_flag_spec='$wl-E'
10505
10506           # hardcode_minus_L: Not really in the search PATH,
10507           # but as the default location of the library.
10508           hardcode_minus_L=yes
10509           ;;
10510         esac
10511       fi
10512       ;;
10513
10514     irix5* | irix6* | nonstopux*)
10515       if test yes = "$GCC"; then
10516         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'
10517         # Try to use the -exported_symbol ld option, if it does not
10518         # work, assume that -exports_file does not work either and
10519         # implicitly export all symbols.
10520         # This should be the same for all languages, so no per-tag cache variable.
10521         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10522 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10523 if ${lt_cv_irix_exported_symbol+:} false; then :
10524   $as_echo_n "(cached) " >&6
10525 else
10526   save_LDFLAGS=$LDFLAGS
10527            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10528            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h.  */
10530 int foo (void) { return 0; }
10531 _ACEOF
10532 if ac_fn_c_try_link "$LINENO"; then :
10533   lt_cv_irix_exported_symbol=yes
10534 else
10535   lt_cv_irix_exported_symbol=no
10536 fi
10537 rm -f core conftest.err conftest.$ac_objext \
10538     conftest$ac_exeext conftest.$ac_ext
10539            LDFLAGS=$save_LDFLAGS
10540 fi
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10542 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10543         if test yes = "$lt_cv_irix_exported_symbol"; then
10544           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'
10545         fi
10546         link_all_deplibs=no
10547       else
10548         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'
10549         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'
10550       fi
10551       archive_cmds_need_lc='no'
10552       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10553       hardcode_libdir_separator=:
10554       inherit_rpath=yes
10555       link_all_deplibs=yes
10556       ;;
10557
10558     linux*)
10559       case $cc_basename in
10560       tcc*)
10561         # Fabrice Bellard et al's Tiny C Compiler
10562         ld_shlibs=yes
10563         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10564         ;;
10565       esac
10566       ;;
10567
10568     netbsd* | netbsdelf*-gnu)
10569       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10570         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10571       else
10572         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10573       fi
10574       hardcode_libdir_flag_spec='-R$libdir'
10575       hardcode_direct=yes
10576       hardcode_shlibpath_var=no
10577       ;;
10578
10579     newsos6)
10580       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581       hardcode_direct=yes
10582       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10583       hardcode_libdir_separator=:
10584       hardcode_shlibpath_var=no
10585       ;;
10586
10587     *nto* | *qnx*)
10588       ;;
10589
10590     openbsd* | bitrig*)
10591       if test -f /usr/libexec/ld.so; then
10592         hardcode_direct=yes
10593         hardcode_shlibpath_var=no
10594         hardcode_direct_absolute=yes
10595         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10596           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10597           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10598           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10599           export_dynamic_flag_spec='$wl-E'
10600         else
10601           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10602           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10603         fi
10604       else
10605         ld_shlibs=no
10606       fi
10607       ;;
10608
10609     os2*)
10610       hardcode_libdir_flag_spec='-L$libdir'
10611       hardcode_minus_L=yes
10612       allow_undefined_flag=unsupported
10613       shrext_cmds=.dll
10614       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10615         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10616         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10617         $ECHO EXPORTS >> $output_objdir/$libname.def~
10618         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10619         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10620         emximp -o $lib $output_objdir/$libname.def'
10621       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10622         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10623         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10624         $ECHO EXPORTS >> $output_objdir/$libname.def~
10625         prefix_cmds="$SED"~
10626         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10627           prefix_cmds="$prefix_cmds -e 1d";
10628         fi~
10629         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10630         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10631         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10632         emximp -o $lib $output_objdir/$libname.def'
10633       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10634       enable_shared_with_static_runtimes=yes
10635       ;;
10636
10637     osf3*)
10638       if test yes = "$GCC"; then
10639         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10640         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'
10641       else
10642         allow_undefined_flag=' -expect_unresolved \*'
10643         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'
10644       fi
10645       archive_cmds_need_lc='no'
10646       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10647       hardcode_libdir_separator=:
10648       ;;
10649
10650     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10651       if test yes = "$GCC"; then
10652         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10653         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'
10654         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10655       else
10656         allow_undefined_flag=' -expect_unresolved \*'
10657         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'
10658         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~
10659           $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'
10660
10661         # Both c and cxx compiler support -rpath directly
10662         hardcode_libdir_flag_spec='-rpath $libdir'
10663       fi
10664       archive_cmds_need_lc='no'
10665       hardcode_libdir_separator=:
10666       ;;
10667
10668     solaris*)
10669       no_undefined_flag=' -z defs'
10670       if test yes = "$GCC"; then
10671         wlarc='$wl'
10672         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10673         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10674           $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'
10675       else
10676         case `$CC -V 2>&1` in
10677         *"Compilers 5.0"*)
10678           wlarc=''
10679           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10681             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10682           ;;
10683         *)
10684           wlarc='$wl'
10685           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10686           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10687             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10688           ;;
10689         esac
10690       fi
10691       hardcode_libdir_flag_spec='-R$libdir'
10692       hardcode_shlibpath_var=no
10693       case $host_os in
10694       solaris2.[0-5] | solaris2.[0-5].*) ;;
10695       *)
10696         # The compiler driver will combine and reorder linker options,
10697         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10698         # but is careful enough not to reorder.
10699         # Supported since Solaris 2.6 (maybe 2.5.1?)
10700         if test yes = "$GCC"; then
10701           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10702         else
10703           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10704         fi
10705         ;;
10706       esac
10707       link_all_deplibs=yes
10708       ;;
10709
10710     sunos4*)
10711       if test sequent = "$host_vendor"; then
10712         # Use $CC to link under sequent, because it throws in some extra .o
10713         # files that make .init and .fini sections work.
10714         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10715       else
10716         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10717       fi
10718       hardcode_libdir_flag_spec='-L$libdir'
10719       hardcode_direct=yes
10720       hardcode_minus_L=yes
10721       hardcode_shlibpath_var=no
10722       ;;
10723
10724     sysv4)
10725       case $host_vendor in
10726         sni)
10727           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10728           hardcode_direct=yes # is this really true???
10729         ;;
10730         siemens)
10731           ## LD is ld it makes a PLAMLIB
10732           ## CC just makes a GrossModule.
10733           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10734           reload_cmds='$CC -r -o $output$reload_objs'
10735           hardcode_direct=no
10736         ;;
10737         motorola)
10738           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10739           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10740         ;;
10741       esac
10742       runpath_var='LD_RUN_PATH'
10743       hardcode_shlibpath_var=no
10744       ;;
10745
10746     sysv4.3*)
10747       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10748       hardcode_shlibpath_var=no
10749       export_dynamic_flag_spec='-Bexport'
10750       ;;
10751
10752     sysv4*MP*)
10753       if test -d /usr/nec; then
10754         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755         hardcode_shlibpath_var=no
10756         runpath_var=LD_RUN_PATH
10757         hardcode_runpath_var=yes
10758         ld_shlibs=yes
10759       fi
10760       ;;
10761
10762     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10763       no_undefined_flag='$wl-z,text'
10764       archive_cmds_need_lc=no
10765       hardcode_shlibpath_var=no
10766       runpath_var='LD_RUN_PATH'
10767
10768       if test yes = "$GCC"; then
10769         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10771       else
10772         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10773         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10774       fi
10775       ;;
10776
10777     sysv5* | sco3.2v5* | sco5v6*)
10778       # Note: We CANNOT use -z defs as we might desire, because we do not
10779       # link with -lc, and that would cause any symbols used from libc to
10780       # always be unresolved, which means just about no library would
10781       # ever link correctly.  If we're not using GNU ld we use -z text
10782       # though, which does catch some bad symbols but isn't as heavy-handed
10783       # as -z defs.
10784       no_undefined_flag='$wl-z,text'
10785       allow_undefined_flag='$wl-z,nodefs'
10786       archive_cmds_need_lc=no
10787       hardcode_shlibpath_var=no
10788       hardcode_libdir_flag_spec='$wl-R,$libdir'
10789       hardcode_libdir_separator=':'
10790       link_all_deplibs=yes
10791       export_dynamic_flag_spec='$wl-Bexport'
10792       runpath_var='LD_RUN_PATH'
10793
10794       if test yes = "$GCC"; then
10795         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10796         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10797       else
10798         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10799         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10800       fi
10801       ;;
10802
10803     uts4*)
10804       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10805       hardcode_libdir_flag_spec='-L$libdir'
10806       hardcode_shlibpath_var=no
10807       ;;
10808
10809     *)
10810       ld_shlibs=no
10811       ;;
10812     esac
10813
10814     if test sni = "$host_vendor"; then
10815       case $host in
10816       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10817         export_dynamic_flag_spec='$wl-Blargedynsym'
10818         ;;
10819       esac
10820     fi
10821   fi
10822
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10824 $as_echo "$ld_shlibs" >&6; }
10825 test no = "$ld_shlibs" && can_build_shared=no
10826
10827 with_gnu_ld=$with_gnu_ld
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843 #
10844 # Do we need to explicitly link libc?
10845 #
10846 case "x$archive_cmds_need_lc" in
10847 x|xyes)
10848   # Assume -lc should be added
10849   archive_cmds_need_lc=yes
10850
10851   if test yes,yes = "$GCC,$enable_shared"; then
10852     case $archive_cmds in
10853     *'~'*)
10854       # FIXME: we may have to deal with multi-command sequences.
10855       ;;
10856     '$CC '*)
10857       # Test whether the compiler implicitly links with -lc since on some
10858       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10859       # to ld, don't add -lc before -lgcc.
10860       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10861 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10862 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10863   $as_echo_n "(cached) " >&6
10864 else
10865   $RM conftest*
10866         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10867
10868         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10869   (eval $ac_compile) 2>&5
10870   ac_status=$?
10871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10872   test $ac_status = 0; } 2>conftest.err; then
10873           soname=conftest
10874           lib=conftest
10875           libobjs=conftest.$ac_objext
10876           deplibs=
10877           wl=$lt_prog_compiler_wl
10878           pic_flag=$lt_prog_compiler_pic
10879           compiler_flags=-v
10880           linker_flags=-v
10881           verstring=
10882           output_objdir=.
10883           libname=conftest
10884           lt_save_allow_undefined_flag=$allow_undefined_flag
10885           allow_undefined_flag=
10886           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10887   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10888   ac_status=$?
10889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890   test $ac_status = 0; }
10891           then
10892             lt_cv_archive_cmds_need_lc=no
10893           else
10894             lt_cv_archive_cmds_need_lc=yes
10895           fi
10896           allow_undefined_flag=$lt_save_allow_undefined_flag
10897         else
10898           cat conftest.err 1>&5
10899         fi
10900         $RM conftest*
10901
10902 fi
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10904 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10905       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10906       ;;
10907     esac
10908   fi
10909   ;;
10910 esac
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11064 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11065
11066 if test yes = "$GCC"; then
11067   case $host_os in
11068     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11069     *) lt_awk_arg='/^libraries:/' ;;
11070   esac
11071   case $host_os in
11072     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11073     *) lt_sed_strip_eq='s|=/|/|g' ;;
11074   esac
11075   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11076   case $lt_search_path_spec in
11077   *\;*)
11078     # if the path contains ";" then we assume it to be the separator
11079     # otherwise default to the standard path separator (i.e. ":") - it is
11080     # assumed that no part of a normal pathname contains ";" but that should
11081     # okay in the real world where ";" in dirpaths is itself problematic.
11082     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11083     ;;
11084   *)
11085     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11086     ;;
11087   esac
11088   # Ok, now we have the path, separated by spaces, we can step through it
11089   # and add multilib dir if necessary...
11090   lt_tmp_lt_search_path_spec=
11091   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11092   # ...but if some path component already ends with the multilib dir we assume
11093   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11094   case "$lt_multi_os_dir; $lt_search_path_spec " in
11095   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11096     lt_multi_os_dir=
11097     ;;
11098   esac
11099   for lt_sys_path in $lt_search_path_spec; do
11100     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11101       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11102     elif test -n "$lt_multi_os_dir"; then
11103       test -d "$lt_sys_path" && \
11104         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11105     fi
11106   done
11107   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11108 BEGIN {RS = " "; FS = "/|\n";} {
11109   lt_foo = "";
11110   lt_count = 0;
11111   for (lt_i = NF; lt_i > 0; lt_i--) {
11112     if ($lt_i != "" && $lt_i != ".") {
11113       if ($lt_i == "..") {
11114         lt_count++;
11115       } else {
11116         if (lt_count == 0) {
11117           lt_foo = "/" $lt_i lt_foo;
11118         } else {
11119           lt_count--;
11120         }
11121       }
11122     }
11123   }
11124   if (lt_foo != "") { lt_freq[lt_foo]++; }
11125   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11126 }'`
11127   # AWK program above erroneously prepends '/' to C:/dos/paths
11128   # for these hosts.
11129   case $host_os in
11130     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11131       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11132   esac
11133   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11134 else
11135   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11136 fi
11137 library_names_spec=
11138 libname_spec='lib$name'
11139 soname_spec=
11140 shrext_cmds=.so
11141 postinstall_cmds=
11142 postuninstall_cmds=
11143 finish_cmds=
11144 finish_eval=
11145 shlibpath_var=
11146 shlibpath_overrides_runpath=unknown
11147 version_type=none
11148 dynamic_linker="$host_os ld.so"
11149 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11150 need_lib_prefix=unknown
11151 hardcode_into_libs=no
11152
11153 # when you set need_version to no, make sure it does not cause -set_version
11154 # flags to be left without arguments
11155 need_version=unknown
11156
11157
11158
11159 case $host_os in
11160 aix3*)
11161   version_type=linux # correct to gnu/linux during the next big refactor
11162   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11163   shlibpath_var=LIBPATH
11164
11165   # AIX 3 has no versioning support, so we append a major version to the name.
11166   soname_spec='$libname$release$shared_ext$major'
11167   ;;
11168
11169 aix[4-9]*)
11170   version_type=linux # correct to gnu/linux during the next big refactor
11171   need_lib_prefix=no
11172   need_version=no
11173   hardcode_into_libs=yes
11174   if test ia64 = "$host_cpu"; then
11175     # AIX 5 supports IA64
11176     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11177     shlibpath_var=LD_LIBRARY_PATH
11178   else
11179     # With GCC up to 2.95.x, collect2 would create an import file
11180     # for dependence libraries.  The import file would start with
11181     # the line '#! .'.  This would cause the generated library to
11182     # depend on '.', always an invalid library.  This was fixed in
11183     # development snapshots of GCC prior to 3.0.
11184     case $host_os in
11185       aix4 | aix4.[01] | aix4.[01].*)
11186       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11187            echo ' yes '
11188            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11189         :
11190       else
11191         can_build_shared=no
11192       fi
11193       ;;
11194     esac
11195     # Using Import Files as archive members, it is possible to support
11196     # filename-based versioning of shared library archives on AIX. While
11197     # this would work for both with and without runtime linking, it will
11198     # prevent static linking of such archives. So we do filename-based
11199     # shared library versioning with .so extension only, which is used
11200     # when both runtime linking and shared linking is enabled.
11201     # Unfortunately, runtime linking may impact performance, so we do
11202     # not want this to be the default eventually. Also, we use the
11203     # versioned .so libs for executables only if there is the -brtl
11204     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11205     # To allow for filename-based versioning support, we need to create
11206     # libNAME.so.V as an archive file, containing:
11207     # *) an Import File, referring to the versioned filename of the
11208     #    archive as well as the shared archive member, telling the
11209     #    bitwidth (32 or 64) of that shared object, and providing the
11210     #    list of exported symbols of that shared object, eventually
11211     #    decorated with the 'weak' keyword
11212     # *) the shared object with the F_LOADONLY flag set, to really avoid
11213     #    it being seen by the linker.
11214     # At run time we better use the real file rather than another symlink,
11215     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11216
11217     case $with_aix_soname,$aix_use_runtimelinking in
11218     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11219     # soname into executable. Probably we can add versioning support to
11220     # collect2, so additional links can be useful in future.
11221     aix,yes) # traditional libtool
11222       dynamic_linker='AIX unversionable lib.so'
11223       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11224       # instead of lib<name>.a to let people know that these are not
11225       # typical AIX shared libraries.
11226       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11227       ;;
11228     aix,no) # traditional AIX only
11229       dynamic_linker='AIX lib.a(lib.so.V)'
11230       # We preserve .a as extension for shared libraries through AIX4.2
11231       # and later when we are not doing run time linking.
11232       library_names_spec='$libname$release.a $libname.a'
11233       soname_spec='$libname$release$shared_ext$major'
11234       ;;
11235     svr4,*) # full svr4 only
11236       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11237       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11238       # We do not specify a path in Import Files, so LIBPATH fires.
11239       shlibpath_overrides_runpath=yes
11240       ;;
11241     *,yes) # both, prefer svr4
11242       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11243       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11244       # unpreferred sharedlib libNAME.a needs extra handling
11245       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11246       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11247       # We do not specify a path in Import Files, so LIBPATH fires.
11248       shlibpath_overrides_runpath=yes
11249       ;;
11250     *,no) # both, prefer aix
11251       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11252       library_names_spec='$libname$release.a $libname.a'
11253       soname_spec='$libname$release$shared_ext$major'
11254       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11255       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11256       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11257       ;;
11258     esac
11259     shlibpath_var=LIBPATH
11260   fi
11261   ;;
11262
11263 amigaos*)
11264   case $host_cpu in
11265   powerpc)
11266     # Since July 2007 AmigaOS4 officially supports .so libraries.
11267     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11268     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11269     ;;
11270   m68k)
11271     library_names_spec='$libname.ixlibrary $libname.a'
11272     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11273     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11274     ;;
11275   esac
11276   ;;
11277
11278 beos*)
11279   library_names_spec='$libname$shared_ext'
11280   dynamic_linker="$host_os ld.so"
11281   shlibpath_var=LIBRARY_PATH
11282   ;;
11283
11284 bsdi[45]*)
11285   version_type=linux # correct to gnu/linux during the next big refactor
11286   need_version=no
11287   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11288   soname_spec='$libname$release$shared_ext$major'
11289   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11290   shlibpath_var=LD_LIBRARY_PATH
11291   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11292   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11293   # the default ld.so.conf also contains /usr/contrib/lib and
11294   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11295   # libtool to hard-code these into programs
11296   ;;
11297
11298 cygwin* | mingw* | pw32* | cegcc*)
11299   version_type=windows
11300   shrext_cmds=.dll
11301   need_version=no
11302   need_lib_prefix=no
11303
11304   case $GCC,$cc_basename in
11305   yes,*)
11306     # gcc
11307     library_names_spec='$libname.dll.a'
11308     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11309     postinstall_cmds='base_file=`basename \$file`~
11310       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11311       dldir=$destdir/`dirname \$dlpath`~
11312       test -d \$dldir || mkdir -p \$dldir~
11313       $install_prog $dir/$dlname \$dldir/$dlname~
11314       chmod a+x \$dldir/$dlname~
11315       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11316         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11317       fi'
11318     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11319       dlpath=$dir/\$dldll~
11320        $RM \$dlpath'
11321     shlibpath_overrides_runpath=yes
11322
11323     case $host_os in
11324     cygwin*)
11325       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11326       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11327
11328       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11329       ;;
11330     mingw* | cegcc*)
11331       # MinGW DLLs use traditional 'lib' prefix
11332       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11333       ;;
11334     pw32*)
11335       # pw32 DLLs use 'pw' prefix rather than 'lib'
11336       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11337       ;;
11338     esac
11339     dynamic_linker='Win32 ld.exe'
11340     ;;
11341
11342   *,cl*)
11343     # Native MSVC
11344     libname_spec='$name'
11345     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11346     library_names_spec='$libname.dll.lib'
11347
11348     case $build_os in
11349     mingw*)
11350       sys_lib_search_path_spec=
11351       lt_save_ifs=$IFS
11352       IFS=';'
11353       for lt_path in $LIB
11354       do
11355         IFS=$lt_save_ifs
11356         # Let DOS variable expansion print the short 8.3 style file name.
11357         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11358         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11359       done
11360       IFS=$lt_save_ifs
11361       # Convert to MSYS style.
11362       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11363       ;;
11364     cygwin*)
11365       # Convert to unix form, then to dos form, then back to unix form
11366       # but this time dos style (no spaces!) so that the unix form looks
11367       # like /cygdrive/c/PROGRA~1:/cygdr...
11368       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11369       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11370       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11371       ;;
11372     *)
11373       sys_lib_search_path_spec=$LIB
11374       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11375         # It is most probably a Windows format PATH.
11376         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11377       else
11378         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11379       fi
11380       # FIXME: find the short name or the path components, as spaces are
11381       # common. (e.g. "Program Files" -> "PROGRA~1")
11382       ;;
11383     esac
11384
11385     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11386     postinstall_cmds='base_file=`basename \$file`~
11387       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11388       dldir=$destdir/`dirname \$dlpath`~
11389       test -d \$dldir || mkdir -p \$dldir~
11390       $install_prog $dir/$dlname \$dldir/$dlname'
11391     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11392       dlpath=$dir/\$dldll~
11393        $RM \$dlpath'
11394     shlibpath_overrides_runpath=yes
11395     dynamic_linker='Win32 link.exe'
11396     ;;
11397
11398   *)
11399     # Assume MSVC wrapper
11400     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11401     dynamic_linker='Win32 ld.exe'
11402     ;;
11403   esac
11404   # FIXME: first we should search . and the directory the executable is in
11405   shlibpath_var=PATH
11406   ;;
11407
11408 darwin* | rhapsody*)
11409   dynamic_linker="$host_os dyld"
11410   version_type=darwin
11411   need_lib_prefix=no
11412   need_version=no
11413   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11414   soname_spec='$libname$release$major$shared_ext'
11415   shlibpath_overrides_runpath=yes
11416   shlibpath_var=DYLD_LIBRARY_PATH
11417   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11418
11419   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11420   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11421   ;;
11422
11423 dgux*)
11424   version_type=linux # correct to gnu/linux during the next big refactor
11425   need_lib_prefix=no
11426   need_version=no
11427   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11428   soname_spec='$libname$release$shared_ext$major'
11429   shlibpath_var=LD_LIBRARY_PATH
11430   ;;
11431
11432 freebsd* | dragonfly*)
11433   # DragonFly does not have aout.  When/if they implement a new
11434   # versioning mechanism, adjust this.
11435   if test -x /usr/bin/objformat; then
11436     objformat=`/usr/bin/objformat`
11437   else
11438     case $host_os in
11439     freebsd[23].*) objformat=aout ;;
11440     *) objformat=elf ;;
11441     esac
11442   fi
11443   version_type=freebsd-$objformat
11444   case $version_type in
11445     freebsd-elf*)
11446       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11447       soname_spec='$libname$release$shared_ext$major'
11448       need_version=no
11449       need_lib_prefix=no
11450       ;;
11451     freebsd-*)
11452       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11453       need_version=yes
11454       ;;
11455   esac
11456   shlibpath_var=LD_LIBRARY_PATH
11457   case $host_os in
11458   freebsd2.*)
11459     shlibpath_overrides_runpath=yes
11460     ;;
11461   freebsd3.[01]* | freebsdelf3.[01]*)
11462     shlibpath_overrides_runpath=yes
11463     hardcode_into_libs=yes
11464     ;;
11465   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11466   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11467     shlibpath_overrides_runpath=no
11468     hardcode_into_libs=yes
11469     ;;
11470   *) # from 4.6 on, and DragonFly
11471     shlibpath_overrides_runpath=yes
11472     hardcode_into_libs=yes
11473     ;;
11474   esac
11475   ;;
11476
11477 haiku*)
11478   version_type=linux # correct to gnu/linux during the next big refactor
11479   need_lib_prefix=no
11480   need_version=no
11481   dynamic_linker="$host_os runtime_loader"
11482   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483   soname_spec='$libname$release$shared_ext$major'
11484   shlibpath_var=LIBRARY_PATH
11485   shlibpath_overrides_runpath=no
11486   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11487   hardcode_into_libs=yes
11488   ;;
11489
11490 hpux9* | hpux10* | hpux11*)
11491   # Give a soname corresponding to the major version so that dld.sl refuses to
11492   # link against other versions.
11493   version_type=sunos
11494   need_lib_prefix=no
11495   need_version=no
11496   case $host_cpu in
11497   ia64*)
11498     shrext_cmds='.so'
11499     hardcode_into_libs=yes
11500     dynamic_linker="$host_os dld.so"
11501     shlibpath_var=LD_LIBRARY_PATH
11502     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11503     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11504     soname_spec='$libname$release$shared_ext$major'
11505     if test 32 = "$HPUX_IA64_MODE"; then
11506       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11507       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11508     else
11509       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11510       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11511     fi
11512     ;;
11513   hppa*64*)
11514     shrext_cmds='.sl'
11515     hardcode_into_libs=yes
11516     dynamic_linker="$host_os dld.sl"
11517     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11518     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11519     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11520     soname_spec='$libname$release$shared_ext$major'
11521     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11522     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11523     ;;
11524   *)
11525     shrext_cmds='.sl'
11526     dynamic_linker="$host_os dld.sl"
11527     shlibpath_var=SHLIB_PATH
11528     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11529     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530     soname_spec='$libname$release$shared_ext$major'
11531     ;;
11532   esac
11533   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11534   postinstall_cmds='chmod 555 $lib'
11535   # or fails outright, so override atomically:
11536   install_override_mode=555
11537   ;;
11538
11539 interix[3-9]*)
11540   version_type=linux # correct to gnu/linux during the next big refactor
11541   need_lib_prefix=no
11542   need_version=no
11543   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544   soname_spec='$libname$release$shared_ext$major'
11545   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11546   shlibpath_var=LD_LIBRARY_PATH
11547   shlibpath_overrides_runpath=no
11548   hardcode_into_libs=yes
11549   ;;
11550
11551 irix5* | irix6* | nonstopux*)
11552   case $host_os in
11553     nonstopux*) version_type=nonstopux ;;
11554     *)
11555         if test yes = "$lt_cv_prog_gnu_ld"; then
11556                 version_type=linux # correct to gnu/linux during the next big refactor
11557         else
11558                 version_type=irix
11559         fi ;;
11560   esac
11561   need_lib_prefix=no
11562   need_version=no
11563   soname_spec='$libname$release$shared_ext$major'
11564   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11565   case $host_os in
11566   irix5* | nonstopux*)
11567     libsuff= shlibsuff=
11568     ;;
11569   *)
11570     case $LD in # libtool.m4 will add one of these switches to LD
11571     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11572       libsuff= shlibsuff= libmagic=32-bit;;
11573     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11574       libsuff=32 shlibsuff=N32 libmagic=N32;;
11575     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11576       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11577     *) libsuff= shlibsuff= libmagic=never-match;;
11578     esac
11579     ;;
11580   esac
11581   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11582   shlibpath_overrides_runpath=no
11583   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11584   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11585   hardcode_into_libs=yes
11586   ;;
11587
11588 # No shared lib support for Linux oldld, aout, or coff.
11589 linux*oldld* | linux*aout* | linux*coff*)
11590   dynamic_linker=no
11591   ;;
11592
11593 linux*android*)
11594   version_type=none # Android doesn't support versioned libraries.
11595   need_lib_prefix=no
11596   need_version=no
11597   library_names_spec='$libname$release$shared_ext'
11598   soname_spec='$libname$release$shared_ext'
11599   finish_cmds=
11600   shlibpath_var=LD_LIBRARY_PATH
11601   shlibpath_overrides_runpath=yes
11602
11603   # This implies no fast_install, which is unacceptable.
11604   # Some rework will be needed to allow for fast_install
11605   # before this can be enabled.
11606   hardcode_into_libs=yes
11607
11608   dynamic_linker='Android linker'
11609   # Don't embed -rpath directories since the linker doesn't support them.
11610   hardcode_libdir_flag_spec='-L$libdir'
11611   ;;
11612
11613 # This must be glibc/ELF.
11614 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11615   version_type=linux # correct to gnu/linux during the next big refactor
11616   need_lib_prefix=no
11617   need_version=no
11618   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11619   soname_spec='$libname$release$shared_ext$major'
11620   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11621   shlibpath_var=LD_LIBRARY_PATH
11622   shlibpath_overrides_runpath=no
11623
11624   # Some binutils ld are patched to set DT_RUNPATH
11625   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11626   $as_echo_n "(cached) " >&6
11627 else
11628   lt_cv_shlibpath_overrides_runpath=no
11629     save_LDFLAGS=$LDFLAGS
11630     save_libdir=$libdir
11631     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11632          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h.  */
11635
11636 int
11637 main ()
11638 {
11639
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 if ac_fn_c_try_link "$LINENO"; then :
11645   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11646   lt_cv_shlibpath_overrides_runpath=yes
11647 fi
11648 fi
11649 rm -f core conftest.err conftest.$ac_objext \
11650     conftest$ac_exeext conftest.$ac_ext
11651     LDFLAGS=$save_LDFLAGS
11652     libdir=$save_libdir
11653
11654 fi
11655
11656   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11657
11658   # This implies no fast_install, which is unacceptable.
11659   # Some rework will be needed to allow for fast_install
11660   # before this can be enabled.
11661   hardcode_into_libs=yes
11662
11663   # Ideally, we could use ldconfig to report *all* directores which are
11664   # searched for libraries, however this is still not possible.  Aside from not
11665   # being certain /sbin/ldconfig is available, command
11666   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11667   # even though it is searched at run-time.  Try to do the best guess by
11668   # appending ld.so.conf contents (and includes) to the search path.
11669   if test -f /etc/ld.so.conf; then
11670     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' ' '`
11671     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11672   fi
11673
11674   # We used to test for /lib/ld.so.1 and disable shared libraries on
11675   # powerpc, because MkLinux only supported shared libraries with the
11676   # GNU dynamic linker.  Since this was broken with cross compilers,
11677   # most powerpc-linux boxes support dynamic linking these days and
11678   # people can always --disable-shared, the test was removed, and we
11679   # assume the GNU/Linux dynamic linker is in use.
11680   dynamic_linker='GNU/Linux ld.so'
11681   ;;
11682
11683 netbsdelf*-gnu)
11684   version_type=linux
11685   need_lib_prefix=no
11686   need_version=no
11687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11688   soname_spec='${libname}${release}${shared_ext}$major'
11689   shlibpath_var=LD_LIBRARY_PATH
11690   shlibpath_overrides_runpath=no
11691   hardcode_into_libs=yes
11692   dynamic_linker='NetBSD ld.elf_so'
11693   ;;
11694
11695 netbsd*)
11696   version_type=sunos
11697   need_lib_prefix=no
11698   need_version=no
11699   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11700     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11701     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11702     dynamic_linker='NetBSD (a.out) ld.so'
11703   else
11704     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11705     soname_spec='$libname$release$shared_ext$major'
11706     dynamic_linker='NetBSD ld.elf_so'
11707   fi
11708   shlibpath_var=LD_LIBRARY_PATH
11709   shlibpath_overrides_runpath=yes
11710   hardcode_into_libs=yes
11711   ;;
11712
11713 newsos6)
11714   version_type=linux # correct to gnu/linux during the next big refactor
11715   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11716   shlibpath_var=LD_LIBRARY_PATH
11717   shlibpath_overrides_runpath=yes
11718   ;;
11719
11720 *nto* | *qnx*)
11721   version_type=qnx
11722   need_lib_prefix=no
11723   need_version=no
11724   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11725   soname_spec='$libname$release$shared_ext$major'
11726   shlibpath_var=LD_LIBRARY_PATH
11727   shlibpath_overrides_runpath=no
11728   hardcode_into_libs=yes
11729   dynamic_linker='ldqnx.so'
11730   ;;
11731
11732 openbsd* | bitrig*)
11733   version_type=sunos
11734   sys_lib_dlsearch_path_spec=/usr/lib
11735   need_lib_prefix=no
11736   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11737     need_version=no
11738   else
11739     need_version=yes
11740   fi
11741   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11742   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11743   shlibpath_var=LD_LIBRARY_PATH
11744   shlibpath_overrides_runpath=yes
11745   ;;
11746
11747 os2*)
11748   libname_spec='$name'
11749   version_type=windows
11750   shrext_cmds=.dll
11751   need_version=no
11752   need_lib_prefix=no
11753   # OS/2 can only load a DLL with a base name of 8 characters or less.
11754   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11755     v=$($ECHO $release$versuffix | tr -d .-);
11756     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11757     $ECHO $n$v`$shared_ext'
11758   library_names_spec='${libname}_dll.$libext'
11759   dynamic_linker='OS/2 ld.exe'
11760   shlibpath_var=BEGINLIBPATH
11761   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11762   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11763   postinstall_cmds='base_file=`basename \$file`~
11764     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11765     dldir=$destdir/`dirname \$dlpath`~
11766     test -d \$dldir || mkdir -p \$dldir~
11767     $install_prog $dir/$dlname \$dldir/$dlname~
11768     chmod a+x \$dldir/$dlname~
11769     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11770       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11771     fi'
11772   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11773     dlpath=$dir/\$dldll~
11774     $RM \$dlpath'
11775   ;;
11776
11777 osf3* | osf4* | osf5*)
11778   version_type=osf
11779   need_lib_prefix=no
11780   need_version=no
11781   soname_spec='$libname$release$shared_ext$major'
11782   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783   shlibpath_var=LD_LIBRARY_PATH
11784   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11785   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11786   ;;
11787
11788 rdos*)
11789   dynamic_linker=no
11790   ;;
11791
11792 solaris*)
11793   version_type=linux # correct to gnu/linux during the next big refactor
11794   need_lib_prefix=no
11795   need_version=no
11796   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11797   soname_spec='$libname$release$shared_ext$major'
11798   shlibpath_var=LD_LIBRARY_PATH
11799   shlibpath_overrides_runpath=yes
11800   hardcode_into_libs=yes
11801   # ldd complains unless libraries are executable
11802   postinstall_cmds='chmod +x $lib'
11803   ;;
11804
11805 sunos4*)
11806   version_type=sunos
11807   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11808   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11809   shlibpath_var=LD_LIBRARY_PATH
11810   shlibpath_overrides_runpath=yes
11811   if test yes = "$with_gnu_ld"; then
11812     need_lib_prefix=no
11813   fi
11814   need_version=yes
11815   ;;
11816
11817 sysv4 | sysv4.3*)
11818   version_type=linux # correct to gnu/linux during the next big refactor
11819   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11820   soname_spec='$libname$release$shared_ext$major'
11821   shlibpath_var=LD_LIBRARY_PATH
11822   case $host_vendor in
11823     sni)
11824       shlibpath_overrides_runpath=no
11825       need_lib_prefix=no
11826       runpath_var=LD_RUN_PATH
11827       ;;
11828     siemens)
11829       need_lib_prefix=no
11830       ;;
11831     motorola)
11832       need_lib_prefix=no
11833       need_version=no
11834       shlibpath_overrides_runpath=no
11835       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11836       ;;
11837   esac
11838   ;;
11839
11840 sysv4*MP*)
11841   if test -d /usr/nec; then
11842     version_type=linux # correct to gnu/linux during the next big refactor
11843     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11844     soname_spec='$libname$shared_ext.$major'
11845     shlibpath_var=LD_LIBRARY_PATH
11846   fi
11847   ;;
11848
11849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11850   version_type=sco
11851   need_lib_prefix=no
11852   need_version=no
11853   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11854   soname_spec='$libname$release$shared_ext$major'
11855   shlibpath_var=LD_LIBRARY_PATH
11856   shlibpath_overrides_runpath=yes
11857   hardcode_into_libs=yes
11858   if test yes = "$with_gnu_ld"; then
11859     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11860   else
11861     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11862     case $host_os in
11863       sco3.2v5*)
11864         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11865         ;;
11866     esac
11867   fi
11868   sys_lib_dlsearch_path_spec='/usr/lib'
11869   ;;
11870
11871 tpf*)
11872   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11873   version_type=linux # correct to gnu/linux during the next big refactor
11874   need_lib_prefix=no
11875   need_version=no
11876   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11877   shlibpath_var=LD_LIBRARY_PATH
11878   shlibpath_overrides_runpath=no
11879   hardcode_into_libs=yes
11880   ;;
11881
11882 uts4*)
11883   version_type=linux # correct to gnu/linux during the next big refactor
11884   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11885   soname_spec='$libname$release$shared_ext$major'
11886   shlibpath_var=LD_LIBRARY_PATH
11887   ;;
11888
11889 *)
11890   dynamic_linker=no
11891   ;;
11892 esac
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11894 $as_echo "$dynamic_linker" >&6; }
11895 test no = "$dynamic_linker" && can_build_shared=no
11896
11897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11898 if test yes = "$GCC"; then
11899   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11900 fi
11901
11902 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11903   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11904 fi
11905
11906 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11907   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11908 fi
11909
11910 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11911 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11912
11913 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11914 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11915
11916 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11917 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12016 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12017 hardcode_action=
12018 if test -n "$hardcode_libdir_flag_spec" ||
12019    test -n "$runpath_var" ||
12020    test yes = "$hardcode_automatic"; then
12021
12022   # We can hardcode non-existent directories.
12023   if test no != "$hardcode_direct" &&
12024      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12025      # have to relink, otherwise we might link with an installed library
12026      # when we should be linking with a yet-to-be-installed one
12027      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12028      test no != "$hardcode_minus_L"; then
12029     # Linking always hardcodes the temporary library directory.
12030     hardcode_action=relink
12031   else
12032     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12033     hardcode_action=immediate
12034   fi
12035 else
12036   # We cannot hardcode anything, or else we can only hardcode existing
12037   # directories.
12038   hardcode_action=unsupported
12039 fi
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12041 $as_echo "$hardcode_action" >&6; }
12042
12043 if test relink = "$hardcode_action" ||
12044    test yes = "$inherit_rpath"; then
12045   # Fast installation is not supported
12046   enable_fast_install=no
12047 elif test yes = "$shlibpath_overrides_runpath" ||
12048      test no = "$enable_shared"; then
12049   # Fast installation is not necessary
12050   enable_fast_install=needless
12051 fi
12052
12053
12054
12055
12056
12057
12058   if test yes != "$enable_dlopen"; then
12059   enable_dlopen=unknown
12060   enable_dlopen_self=unknown
12061   enable_dlopen_self_static=unknown
12062 else
12063   lt_cv_dlopen=no
12064   lt_cv_dlopen_libs=
12065
12066   case $host_os in
12067   beos*)
12068     lt_cv_dlopen=load_add_on
12069     lt_cv_dlopen_libs=
12070     lt_cv_dlopen_self=yes
12071     ;;
12072
12073   mingw* | pw32* | cegcc*)
12074     lt_cv_dlopen=LoadLibrary
12075     lt_cv_dlopen_libs=
12076     ;;
12077
12078   cygwin*)
12079     lt_cv_dlopen=dlopen
12080     lt_cv_dlopen_libs=
12081     ;;
12082
12083   darwin*)
12084     # if libdl is installed we need to link against it
12085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12086 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12087 if ${ac_cv_lib_dl_dlopen+:} false; then :
12088   $as_echo_n "(cached) " >&6
12089 else
12090   ac_check_lib_save_LIBS=$LIBS
12091 LIBS="-ldl  $LIBS"
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h.  */
12094
12095 /* Override any GCC internal prototype to avoid an error.
12096    Use char because int might match the return type of a GCC
12097    builtin and then its argument prototype would still apply.  */
12098 #ifdef __cplusplus
12099 extern "C"
12100 #endif
12101 char dlopen ();
12102 int
12103 main ()
12104 {
12105 return dlopen ();
12106   ;
12107   return 0;
12108 }
12109 _ACEOF
12110 if ac_fn_c_try_link "$LINENO"; then :
12111   ac_cv_lib_dl_dlopen=yes
12112 else
12113   ac_cv_lib_dl_dlopen=no
12114 fi
12115 rm -f core conftest.err conftest.$ac_objext \
12116     conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_lib_save_LIBS
12118 fi
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12120 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12121 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12122   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12123 else
12124
12125     lt_cv_dlopen=dyld
12126     lt_cv_dlopen_libs=
12127     lt_cv_dlopen_self=yes
12128
12129 fi
12130
12131     ;;
12132
12133   tpf*)
12134     # Don't try to run any link tests for TPF.  We know it's impossible
12135     # because TPF is a cross-compiler, and we know how we open DSOs.
12136     lt_cv_dlopen=dlopen
12137     lt_cv_dlopen_libs=
12138     lt_cv_dlopen_self=no
12139     ;;
12140
12141   *)
12142     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12143 if test "x$ac_cv_func_shl_load" = xyes; then :
12144   lt_cv_dlopen=shl_load
12145 else
12146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12147 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12148 if ${ac_cv_lib_dld_shl_load+:} false; then :
12149   $as_echo_n "(cached) " >&6
12150 else
12151   ac_check_lib_save_LIBS=$LIBS
12152 LIBS="-ldld  $LIBS"
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h.  */
12155
12156 /* Override any GCC internal prototype to avoid an error.
12157    Use char because int might match the return type of a GCC
12158    builtin and then its argument prototype would still apply.  */
12159 #ifdef __cplusplus
12160 extern "C"
12161 #endif
12162 char shl_load ();
12163 int
12164 main ()
12165 {
12166 return shl_load ();
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 if ac_fn_c_try_link "$LINENO"; then :
12172   ac_cv_lib_dld_shl_load=yes
12173 else
12174   ac_cv_lib_dld_shl_load=no
12175 fi
12176 rm -f core conftest.err conftest.$ac_objext \
12177     conftest$ac_exeext conftest.$ac_ext
12178 LIBS=$ac_check_lib_save_LIBS
12179 fi
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12181 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12182 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12183   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12184 else
12185   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12186 if test "x$ac_cv_func_dlopen" = xyes; then :
12187   lt_cv_dlopen=dlopen
12188 else
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12190 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12191 if ${ac_cv_lib_dl_dlopen+:} false; then :
12192   $as_echo_n "(cached) " >&6
12193 else
12194   ac_check_lib_save_LIBS=$LIBS
12195 LIBS="-ldl  $LIBS"
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h.  */
12198
12199 /* Override any GCC internal prototype to avoid an error.
12200    Use char because int might match the return type of a GCC
12201    builtin and then its argument prototype would still apply.  */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char dlopen ();
12206 int
12207 main ()
12208 {
12209 return dlopen ();
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_c_try_link "$LINENO"; then :
12215   ac_cv_lib_dl_dlopen=yes
12216 else
12217   ac_cv_lib_dl_dlopen=no
12218 fi
12219 rm -f core conftest.err conftest.$ac_objext \
12220     conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12224 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12225 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12226   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12227 else
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12229 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12230 if ${ac_cv_lib_svld_dlopen+:} false; then :
12231   $as_echo_n "(cached) " >&6
12232 else
12233   ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-lsvld  $LIBS"
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h.  */
12237
12238 /* Override any GCC internal prototype to avoid an error.
12239    Use char because int might match the return type of a GCC
12240    builtin and then its argument prototype would still apply.  */
12241 #ifdef __cplusplus
12242 extern "C"
12243 #endif
12244 char dlopen ();
12245 int
12246 main ()
12247 {
12248 return dlopen ();
12249   ;
12250   return 0;
12251 }
12252 _ACEOF
12253 if ac_fn_c_try_link "$LINENO"; then :
12254   ac_cv_lib_svld_dlopen=yes
12255 else
12256   ac_cv_lib_svld_dlopen=no
12257 fi
12258 rm -f core conftest.err conftest.$ac_objext \
12259     conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12261 fi
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12263 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12264 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12265   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12266 else
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12268 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12269 if ${ac_cv_lib_dld_dld_link+:} false; then :
12270   $as_echo_n "(cached) " >&6
12271 else
12272   ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-ldld  $LIBS"
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h.  */
12276
12277 /* Override any GCC internal prototype to avoid an error.
12278    Use char because int might match the return type of a GCC
12279    builtin and then its argument prototype would still apply.  */
12280 #ifdef __cplusplus
12281 extern "C"
12282 #endif
12283 char dld_link ();
12284 int
12285 main ()
12286 {
12287 return dld_link ();
12288   ;
12289   return 0;
12290 }
12291 _ACEOF
12292 if ac_fn_c_try_link "$LINENO"; then :
12293   ac_cv_lib_dld_dld_link=yes
12294 else
12295   ac_cv_lib_dld_dld_link=no
12296 fi
12297 rm -f core conftest.err conftest.$ac_objext \
12298     conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12302 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12303 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12304   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12305 fi
12306
12307
12308 fi
12309
12310
12311 fi
12312
12313
12314 fi
12315
12316
12317 fi
12318
12319
12320 fi
12321
12322     ;;
12323   esac
12324
12325   if test no = "$lt_cv_dlopen"; then
12326     enable_dlopen=no
12327   else
12328     enable_dlopen=yes
12329   fi
12330
12331   case $lt_cv_dlopen in
12332   dlopen)
12333     save_CPPFLAGS=$CPPFLAGS
12334     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12335
12336     save_LDFLAGS=$LDFLAGS
12337     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12338
12339     save_LIBS=$LIBS
12340     LIBS="$lt_cv_dlopen_libs $LIBS"
12341
12342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12343 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12344 if ${lt_cv_dlopen_self+:} false; then :
12345   $as_echo_n "(cached) " >&6
12346 else
12347           if test yes = "$cross_compiling"; then :
12348   lt_cv_dlopen_self=cross
12349 else
12350   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12351   lt_status=$lt_dlunknown
12352   cat > conftest.$ac_ext <<_LT_EOF
12353 #line $LINENO "configure"
12354 #include "confdefs.h"
12355
12356 #if HAVE_DLFCN_H
12357 #include <dlfcn.h>
12358 #endif
12359
12360 #include <stdio.h>
12361
12362 #ifdef RTLD_GLOBAL
12363 #  define LT_DLGLOBAL           RTLD_GLOBAL
12364 #else
12365 #  ifdef DL_GLOBAL
12366 #    define LT_DLGLOBAL         DL_GLOBAL
12367 #  else
12368 #    define LT_DLGLOBAL         0
12369 #  endif
12370 #endif
12371
12372 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12373    find out it does not work in some platform. */
12374 #ifndef LT_DLLAZY_OR_NOW
12375 #  ifdef RTLD_LAZY
12376 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12377 #  else
12378 #    ifdef DL_LAZY
12379 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12380 #    else
12381 #      ifdef RTLD_NOW
12382 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12383 #      else
12384 #        ifdef DL_NOW
12385 #          define LT_DLLAZY_OR_NOW      DL_NOW
12386 #        else
12387 #          define LT_DLLAZY_OR_NOW      0
12388 #        endif
12389 #      endif
12390 #    endif
12391 #  endif
12392 #endif
12393
12394 /* When -fvisibility=hidden is used, assume the code has been annotated
12395    correspondingly for the symbols needed.  */
12396 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12397 int fnord () __attribute__((visibility("default")));
12398 #endif
12399
12400 int fnord () { return 42; }
12401 int main ()
12402 {
12403   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12404   int status = $lt_dlunknown;
12405
12406   if (self)
12407     {
12408       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12409       else
12410         {
12411           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12412           else puts (dlerror ());
12413         }
12414       /* dlclose (self); */
12415     }
12416   else
12417     puts (dlerror ());
12418
12419   return status;
12420 }
12421 _LT_EOF
12422   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12423   (eval $ac_link) 2>&5
12424   ac_status=$?
12425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12426   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12427     (./conftest; exit; ) >&5 2>/dev/null
12428     lt_status=$?
12429     case x$lt_status in
12430       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12431       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12432       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12433     esac
12434   else :
12435     # compilation failed
12436     lt_cv_dlopen_self=no
12437   fi
12438 fi
12439 rm -fr conftest*
12440
12441
12442 fi
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12444 $as_echo "$lt_cv_dlopen_self" >&6; }
12445
12446     if test yes = "$lt_cv_dlopen_self"; then
12447       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12448       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12449 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12450 if ${lt_cv_dlopen_self_static+:} false; then :
12451   $as_echo_n "(cached) " >&6
12452 else
12453           if test yes = "$cross_compiling"; then :
12454   lt_cv_dlopen_self_static=cross
12455 else
12456   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12457   lt_status=$lt_dlunknown
12458   cat > conftest.$ac_ext <<_LT_EOF
12459 #line $LINENO "configure"
12460 #include "confdefs.h"
12461
12462 #if HAVE_DLFCN_H
12463 #include <dlfcn.h>
12464 #endif
12465
12466 #include <stdio.h>
12467
12468 #ifdef RTLD_GLOBAL
12469 #  define LT_DLGLOBAL           RTLD_GLOBAL
12470 #else
12471 #  ifdef DL_GLOBAL
12472 #    define LT_DLGLOBAL         DL_GLOBAL
12473 #  else
12474 #    define LT_DLGLOBAL         0
12475 #  endif
12476 #endif
12477
12478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12479    find out it does not work in some platform. */
12480 #ifndef LT_DLLAZY_OR_NOW
12481 #  ifdef RTLD_LAZY
12482 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12483 #  else
12484 #    ifdef DL_LAZY
12485 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12486 #    else
12487 #      ifdef RTLD_NOW
12488 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12489 #      else
12490 #        ifdef DL_NOW
12491 #          define LT_DLLAZY_OR_NOW      DL_NOW
12492 #        else
12493 #          define LT_DLLAZY_OR_NOW      0
12494 #        endif
12495 #      endif
12496 #    endif
12497 #  endif
12498 #endif
12499
12500 /* When -fvisibility=hidden is used, assume the code has been annotated
12501    correspondingly for the symbols needed.  */
12502 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12503 int fnord () __attribute__((visibility("default")));
12504 #endif
12505
12506 int fnord () { return 42; }
12507 int main ()
12508 {
12509   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12510   int status = $lt_dlunknown;
12511
12512   if (self)
12513     {
12514       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12515       else
12516         {
12517           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12518           else puts (dlerror ());
12519         }
12520       /* dlclose (self); */
12521     }
12522   else
12523     puts (dlerror ());
12524
12525   return status;
12526 }
12527 _LT_EOF
12528   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12529   (eval $ac_link) 2>&5
12530   ac_status=$?
12531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12532   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12533     (./conftest; exit; ) >&5 2>/dev/null
12534     lt_status=$?
12535     case x$lt_status in
12536       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12537       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12538       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12539     esac
12540   else :
12541     # compilation failed
12542     lt_cv_dlopen_self_static=no
12543   fi
12544 fi
12545 rm -fr conftest*
12546
12547
12548 fi
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12550 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12551     fi
12552
12553     CPPFLAGS=$save_CPPFLAGS
12554     LDFLAGS=$save_LDFLAGS
12555     LIBS=$save_LIBS
12556     ;;
12557   esac
12558
12559   case $lt_cv_dlopen_self in
12560   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12561   *) enable_dlopen_self=unknown ;;
12562   esac
12563
12564   case $lt_cv_dlopen_self_static in
12565   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12566   *) enable_dlopen_self_static=unknown ;;
12567   esac
12568 fi
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586 striplib=
12587 old_striplib=
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12589 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12590 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12591   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12592   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12594 $as_echo "yes" >&6; }
12595 else
12596 # FIXME - insert some real tests, host_os isn't really good enough
12597   case $host_os in
12598   darwin*)
12599     if test -n "$STRIP"; then
12600       striplib="$STRIP -x"
12601       old_striplib="$STRIP -S"
12602       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12603 $as_echo "yes" >&6; }
12604     else
12605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12607     fi
12608     ;;
12609   *)
12610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12612     ;;
12613   esac
12614 fi
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627   # Report what library types will actually be built
12628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12629 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12631 $as_echo "$can_build_shared" >&6; }
12632
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12634 $as_echo_n "checking whether to build shared libraries... " >&6; }
12635   test no = "$can_build_shared" && enable_shared=no
12636
12637   # On AIX, shared libraries and static libraries use the same namespace, and
12638   # are all built from PIC.
12639   case $host_os in
12640   aix3*)
12641     test yes = "$enable_shared" && enable_static=no
12642     if test -n "$RANLIB"; then
12643       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12644       postinstall_cmds='$RANLIB $lib'
12645     fi
12646     ;;
12647
12648   aix[4-9]*)
12649     if test ia64 != "$host_cpu"; then
12650       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12651       yes,aix,yes) ;;                   # shared object as lib.so file only
12652       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12653       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12654       esac
12655     fi
12656     ;;
12657   esac
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12659 $as_echo "$enable_shared" >&6; }
12660
12661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12662 $as_echo_n "checking whether to build static libraries... " >&6; }
12663   # Make sure either enable_shared or enable_static is yes.
12664   test yes = "$enable_shared" || enable_static=yes
12665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12666 $as_echo "$enable_static" >&6; }
12667
12668
12669
12670
12671 fi
12672 ac_ext=c
12673 ac_cpp='$CPP $CPPFLAGS'
12674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12677
12678 CC=$lt_save_CC
12679
12680       if test -n "$CXX" && ( test no != "$CXX" &&
12681     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12682     (test g++ != "$CXX"))); then
12683   ac_ext=cpp
12684 ac_cpp='$CXXCPP $CPPFLAGS'
12685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12689 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12690 if test -z "$CXXCPP"; then
12691   if ${ac_cv_prog_CXXCPP+:} false; then :
12692   $as_echo_n "(cached) " >&6
12693 else
12694       # Double quotes because CXXCPP needs to be expanded
12695     for CXXCPP in "$CXX -E" "/lib/cpp"
12696     do
12697       ac_preproc_ok=false
12698 for ac_cxx_preproc_warn_flag in '' yes
12699 do
12700   # Use a header file that comes with gcc, so configuring glibc
12701   # with a fresh cross-compiler works.
12702   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12703   # <limits.h> exists even on freestanding compilers.
12704   # On the NeXT, cc -E runs the code through the compiler's parser,
12705   # not just through cpp. "Syntax error" is here to catch this case.
12706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h.  */
12708 #ifdef __STDC__
12709 # include <limits.h>
12710 #else
12711 # include <assert.h>
12712 #endif
12713                      Syntax error
12714 _ACEOF
12715 if ac_fn_cxx_try_cpp "$LINENO"; then :
12716
12717 else
12718   # Broken: fails on valid input.
12719 continue
12720 fi
12721 rm -f conftest.err conftest.i conftest.$ac_ext
12722
12723   # OK, works on sane cases.  Now check whether nonexistent headers
12724   # can be detected and how.
12725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h.  */
12727 #include <ac_nonexistent.h>
12728 _ACEOF
12729 if ac_fn_cxx_try_cpp "$LINENO"; then :
12730   # Broken: success on invalid input.
12731 continue
12732 else
12733   # Passes both tests.
12734 ac_preproc_ok=:
12735 break
12736 fi
12737 rm -f conftest.err conftest.i conftest.$ac_ext
12738
12739 done
12740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12741 rm -f conftest.i conftest.err conftest.$ac_ext
12742 if $ac_preproc_ok; then :
12743   break
12744 fi
12745
12746     done
12747     ac_cv_prog_CXXCPP=$CXXCPP
12748
12749 fi
12750   CXXCPP=$ac_cv_prog_CXXCPP
12751 else
12752   ac_cv_prog_CXXCPP=$CXXCPP
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12755 $as_echo "$CXXCPP" >&6; }
12756 ac_preproc_ok=false
12757 for ac_cxx_preproc_warn_flag in '' yes
12758 do
12759   # Use a header file that comes with gcc, so configuring glibc
12760   # with a fresh cross-compiler works.
12761   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12762   # <limits.h> exists even on freestanding compilers.
12763   # On the NeXT, cc -E runs the code through the compiler's parser,
12764   # not just through cpp. "Syntax error" is here to catch this case.
12765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h.  */
12767 #ifdef __STDC__
12768 # include <limits.h>
12769 #else
12770 # include <assert.h>
12771 #endif
12772                      Syntax error
12773 _ACEOF
12774 if ac_fn_cxx_try_cpp "$LINENO"; then :
12775
12776 else
12777   # Broken: fails on valid input.
12778 continue
12779 fi
12780 rm -f conftest.err conftest.i conftest.$ac_ext
12781
12782   # OK, works on sane cases.  Now check whether nonexistent headers
12783   # can be detected and how.
12784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h.  */
12786 #include <ac_nonexistent.h>
12787 _ACEOF
12788 if ac_fn_cxx_try_cpp "$LINENO"; then :
12789   # Broken: success on invalid input.
12790 continue
12791 else
12792   # Passes both tests.
12793 ac_preproc_ok=:
12794 break
12795 fi
12796 rm -f conftest.err conftest.i conftest.$ac_ext
12797
12798 done
12799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12800 rm -f conftest.i conftest.err conftest.$ac_ext
12801 if $ac_preproc_ok; then :
12802
12803 else
12804   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12806 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12807 See \`config.log' for more details" "$LINENO" 5; }
12808 fi
12809
12810 ac_ext=c
12811 ac_cpp='$CPP $CPPFLAGS'
12812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12815
12816 else
12817   _lt_caught_CXX_error=yes
12818 fi
12819
12820 ac_ext=cpp
12821 ac_cpp='$CXXCPP $CPPFLAGS'
12822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12825
12826 archive_cmds_need_lc_CXX=no
12827 allow_undefined_flag_CXX=
12828 always_export_symbols_CXX=no
12829 archive_expsym_cmds_CXX=
12830 compiler_needs_object_CXX=no
12831 export_dynamic_flag_spec_CXX=
12832 hardcode_direct_CXX=no
12833 hardcode_direct_absolute_CXX=no
12834 hardcode_libdir_flag_spec_CXX=
12835 hardcode_libdir_separator_CXX=
12836 hardcode_minus_L_CXX=no
12837 hardcode_shlibpath_var_CXX=unsupported
12838 hardcode_automatic_CXX=no
12839 inherit_rpath_CXX=no
12840 module_cmds_CXX=
12841 module_expsym_cmds_CXX=
12842 link_all_deplibs_CXX=unknown
12843 old_archive_cmds_CXX=$old_archive_cmds
12844 reload_flag_CXX=$reload_flag
12845 reload_cmds_CXX=$reload_cmds
12846 no_undefined_flag_CXX=
12847 whole_archive_flag_spec_CXX=
12848 enable_shared_with_static_runtimes_CXX=no
12849
12850 # Source file extension for C++ test sources.
12851 ac_ext=cpp
12852
12853 # Object file extension for compiled C++ test sources.
12854 objext=o
12855 objext_CXX=$objext
12856
12857 # No sense in running all these tests if we already determined that
12858 # the CXX compiler isn't working.  Some variables (like enable_shared)
12859 # are currently assumed to apply to all compilers on this platform,
12860 # and will be corrupted by setting them based on a non-working compiler.
12861 if test yes != "$_lt_caught_CXX_error"; then
12862   # Code to be used in simple compile tests
12863   lt_simple_compile_test_code="int some_variable = 0;"
12864
12865   # Code to be used in simple link tests
12866   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12867
12868   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12869
12870
12871
12872
12873
12874
12875 # If no C compiler was specified, use CC.
12876 LTCC=${LTCC-"$CC"}
12877
12878 # If no C compiler flags were specified, use CFLAGS.
12879 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12880
12881 # Allow CC to be a program name with arguments.
12882 compiler=$CC
12883
12884
12885   # save warnings/boilerplate of simple test code
12886   ac_outfile=conftest.$ac_objext
12887 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12888 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12889 _lt_compiler_boilerplate=`cat conftest.err`
12890 $RM conftest*
12891
12892   ac_outfile=conftest.$ac_objext
12893 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12894 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12895 _lt_linker_boilerplate=`cat conftest.err`
12896 $RM -r conftest*
12897
12898
12899   # Allow CC to be a program name with arguments.
12900   lt_save_CC=$CC
12901   lt_save_CFLAGS=$CFLAGS
12902   lt_save_LD=$LD
12903   lt_save_GCC=$GCC
12904   GCC=$GXX
12905   lt_save_with_gnu_ld=$with_gnu_ld
12906   lt_save_path_LD=$lt_cv_path_LD
12907   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12908     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12909   else
12910     $as_unset lt_cv_prog_gnu_ld
12911   fi
12912   if test -n "${lt_cv_path_LDCXX+set}"; then
12913     lt_cv_path_LD=$lt_cv_path_LDCXX
12914   else
12915     $as_unset lt_cv_path_LD
12916   fi
12917   test -z "${LDCXX+set}" || LD=$LDCXX
12918   CC=${CXX-"c++"}
12919   CFLAGS=$CXXFLAGS
12920   compiler=$CC
12921   compiler_CXX=$CC
12922   func_cc_basename $compiler
12923 cc_basename=$func_cc_basename_result
12924
12925
12926   if test -n "$compiler"; then
12927     # We don't want -fno-exception when compiling C++ code, so set the
12928     # no_builtin_flag separately
12929     if test yes = "$GXX"; then
12930       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12931     else
12932       lt_prog_compiler_no_builtin_flag_CXX=
12933     fi
12934
12935     if test yes = "$GXX"; then
12936       # Set up default GNU C++ configuration
12937
12938
12939
12940 # Check whether --with-gnu-ld was given.
12941 if test "${with_gnu_ld+set}" = set; then :
12942   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12943 else
12944   with_gnu_ld=no
12945 fi
12946
12947 ac_prog=ld
12948 if test yes = "$GCC"; then
12949   # Check if gcc -print-prog-name=ld gives a path.
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12951 $as_echo_n "checking for ld used by $CC... " >&6; }
12952   case $host in
12953   *-*-mingw*)
12954     # gcc leaves a trailing carriage return, which upsets mingw
12955     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12956   *)
12957     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12958   esac
12959   case $ac_prog in
12960     # Accept absolute paths.
12961     [\\/]* | ?:[\\/]*)
12962       re_direlt='/[^/][^/]*/\.\./'
12963       # Canonicalize the pathname of ld
12964       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12965       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12966         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12967       done
12968       test -z "$LD" && LD=$ac_prog
12969       ;;
12970   "")
12971     # If it fails, then pretend we aren't using GCC.
12972     ac_prog=ld
12973     ;;
12974   *)
12975     # If it is relative, then search for the first ld in PATH.
12976     with_gnu_ld=unknown
12977     ;;
12978   esac
12979 elif test yes = "$with_gnu_ld"; then
12980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12981 $as_echo_n "checking for GNU ld... " >&6; }
12982 else
12983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12984 $as_echo_n "checking for non-GNU ld... " >&6; }
12985 fi
12986 if ${lt_cv_path_LD+:} false; then :
12987   $as_echo_n "(cached) " >&6
12988 else
12989   if test -z "$LD"; then
12990   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12991   for ac_dir in $PATH; do
12992     IFS=$lt_save_ifs
12993     test -z "$ac_dir" && ac_dir=.
12994     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12995       lt_cv_path_LD=$ac_dir/$ac_prog
12996       # Check to see if the program is GNU ld.  I'd rather use --version,
12997       # but apparently some variants of GNU ld only accept -v.
12998       # Break only if it was the GNU/non-GNU ld that we prefer.
12999       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13000       *GNU* | *'with BFD'*)
13001         test no != "$with_gnu_ld" && break
13002         ;;
13003       *)
13004         test yes != "$with_gnu_ld" && break
13005         ;;
13006       esac
13007     fi
13008   done
13009   IFS=$lt_save_ifs
13010 else
13011   lt_cv_path_LD=$LD # Let the user override the test with a path.
13012 fi
13013 fi
13014
13015 LD=$lt_cv_path_LD
13016 if test -n "$LD"; then
13017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13018 $as_echo "$LD" >&6; }
13019 else
13020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13022 fi
13023 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13025 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13026 if ${lt_cv_prog_gnu_ld+:} false; then :
13027   $as_echo_n "(cached) " >&6
13028 else
13029   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13030 case `$LD -v 2>&1 </dev/null` in
13031 *GNU* | *'with BFD'*)
13032   lt_cv_prog_gnu_ld=yes
13033   ;;
13034 *)
13035   lt_cv_prog_gnu_ld=no
13036   ;;
13037 esac
13038 fi
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13040 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13041 with_gnu_ld=$lt_cv_prog_gnu_ld
13042
13043
13044
13045
13046
13047
13048
13049       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13050       # archiving commands below assume that GNU ld is being used.
13051       if test yes = "$with_gnu_ld"; then
13052         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13053         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'
13054
13055         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13056         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13057
13058         # If archive_cmds runs LD, not CC, wlarc should be empty
13059         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13060         #     investigate it a little bit more. (MM)
13061         wlarc='$wl'
13062
13063         # ancient GNU ld didn't support --whole-archive et. al.
13064         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13065           $GREP 'no-whole-archive' > /dev/null; then
13066           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13067         else
13068           whole_archive_flag_spec_CXX=
13069         fi
13070       else
13071         with_gnu_ld=no
13072         wlarc=
13073
13074         # A generic and very simple default shared library creation
13075         # command for GNU C++ for the case where it uses the native
13076         # linker, instead of GNU ld.  If possible, this setting should
13077         # overridden to take advantage of the native linker features on
13078         # the platform it is being used on.
13079         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13080       fi
13081
13082       # Commands to make compiler produce verbose output that lists
13083       # what "hidden" libraries, object files and flags are used when
13084       # linking a shared library.
13085       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13086
13087     else
13088       GXX=no
13089       with_gnu_ld=no
13090       wlarc=
13091     fi
13092
13093     # PORTME: fill in a description of your system's C++ link characteristics
13094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13096     ld_shlibs_CXX=yes
13097     case $host_os in
13098       aix3*)
13099         # FIXME: insert proper C++ library support
13100         ld_shlibs_CXX=no
13101         ;;
13102       aix[4-9]*)
13103         if test ia64 = "$host_cpu"; then
13104           # On IA64, the linker does run time linking by default, so we don't
13105           # have to do anything special.
13106           aix_use_runtimelinking=no
13107           exp_sym_flag='-Bexport'
13108           no_entry_flag=
13109         else
13110           aix_use_runtimelinking=no
13111
13112           # Test if we are trying to use run time linking or normal
13113           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13114           # have runtime linking enabled, and use it for executables.
13115           # For shared libraries, we enable/disable runtime linking
13116           # depending on the kind of the shared library created -
13117           # when "with_aix_soname,aix_use_runtimelinking" is:
13118           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13119           # "aix,yes"  lib.so          shared, rtl:yes, for executables
13120           #            lib.a           static archive
13121           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13122           #            lib.a(lib.so.V) shared, rtl:no,  for executables
13123           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13124           #            lib.a(lib.so.V) shared, rtl:no
13125           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13126           #            lib.a           static archive
13127           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13128             for ld_flag in $LDFLAGS; do
13129               case $ld_flag in
13130               *-brtl*)
13131                 aix_use_runtimelinking=yes
13132                 break
13133                 ;;
13134               esac
13135             done
13136             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13137               # With aix-soname=svr4, we create the lib.so.V shared archives only,
13138               # so we don't have lib.a shared libs to link our executables.
13139               # We have to force runtime linking in this case.
13140               aix_use_runtimelinking=yes
13141               LDFLAGS="$LDFLAGS -Wl,-brtl"
13142             fi
13143             ;;
13144           esac
13145
13146           exp_sym_flag='-bexport'
13147           no_entry_flag='-bnoentry'
13148         fi
13149
13150         # When large executables or shared objects are built, AIX ld can
13151         # have problems creating the table of contents.  If linking a library
13152         # or program results in "error TOC overflow" add -mminimal-toc to
13153         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13154         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13155
13156         archive_cmds_CXX=''
13157         hardcode_direct_CXX=yes
13158         hardcode_direct_absolute_CXX=yes
13159         hardcode_libdir_separator_CXX=':'
13160         link_all_deplibs_CXX=yes
13161         file_list_spec_CXX='$wl-f,'
13162         case $with_aix_soname,$aix_use_runtimelinking in
13163         aix,*) ;;       # no import file
13164         svr4,* | *,yes) # use import file
13165           # The Import File defines what to hardcode.
13166           hardcode_direct_CXX=no
13167           hardcode_direct_absolute_CXX=no
13168           ;;
13169         esac
13170
13171         if test yes = "$GXX"; then
13172           case $host_os in aix4.[012]|aix4.[012].*)
13173           # We only want to do this on AIX 4.2 and lower, the check
13174           # below for broken collect2 doesn't work under 4.3+
13175           collect2name=`$CC -print-prog-name=collect2`
13176           if test -f "$collect2name" &&
13177              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13178           then
13179             # We have reworked collect2
13180             :
13181           else
13182             # We have old collect2
13183             hardcode_direct_CXX=unsupported
13184             # It fails to find uninstalled libraries when the uninstalled
13185             # path is not listed in the libpath.  Setting hardcode_minus_L
13186             # to unsupported forces relinking
13187             hardcode_minus_L_CXX=yes
13188             hardcode_libdir_flag_spec_CXX='-L$libdir'
13189             hardcode_libdir_separator_CXX=
13190           fi
13191           esac
13192           shared_flag='-shared'
13193           if test yes = "$aix_use_runtimelinking"; then
13194             shared_flag=$shared_flag' $wl-G'
13195           fi
13196           # Need to ensure runtime linking is disabled for the traditional
13197           # shared library, or the linker may eventually find shared libraries
13198           # /with/ Import File - we do not want to mix them.
13199           shared_flag_aix='-shared'
13200           shared_flag_svr4='-shared $wl-G'
13201         else
13202           # not using gcc
13203           if test ia64 = "$host_cpu"; then
13204           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13205           # chokes on -Wl,-G. The following line is correct:
13206           shared_flag='-G'
13207           else
13208             if test yes = "$aix_use_runtimelinking"; then
13209               shared_flag='$wl-G'
13210             else
13211               shared_flag='$wl-bM:SRE'
13212             fi
13213             shared_flag_aix='$wl-bM:SRE'
13214             shared_flag_svr4='$wl-G'
13215           fi
13216         fi
13217
13218         export_dynamic_flag_spec_CXX='$wl-bexpall'
13219         # It seems that -bexpall does not export symbols beginning with
13220         # underscore (_), so it is better to generate a list of symbols to
13221         # export.
13222         always_export_symbols_CXX=yes
13223         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13224           # Warning - without using the other runtime loading flags (-brtl),
13225           # -berok will link without error, but may produce a broken library.
13226           # The "-G" linker flag allows undefined symbols.
13227           no_undefined_flag_CXX='-bernotok'
13228           # Determine the default libpath from the value encoded in an empty
13229           # executable.
13230           if test set = "${lt_cv_aix_libpath+set}"; then
13231   aix_libpath=$lt_cv_aix_libpath
13232 else
13233   if ${lt_cv_aix_libpath__CXX+:} false; then :
13234   $as_echo_n "(cached) " >&6
13235 else
13236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h.  */
13238
13239 int
13240 main ()
13241 {
13242
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 if ac_fn_cxx_try_link "$LINENO"; then :
13248
13249   lt_aix_libpath_sed='
13250       /Import File Strings/,/^$/ {
13251           /^0/ {
13252               s/^0  *\([^ ]*\) *$/\1/
13253               p
13254           }
13255       }'
13256   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13257   # Check for a 64-bit object if we didn't find anything.
13258   if test -z "$lt_cv_aix_libpath__CXX"; then
13259     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13260   fi
13261 fi
13262 rm -f core conftest.err conftest.$ac_objext \
13263     conftest$ac_exeext conftest.$ac_ext
13264   if test -z "$lt_cv_aix_libpath__CXX"; then
13265     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13266   fi
13267
13268 fi
13269
13270   aix_libpath=$lt_cv_aix_libpath__CXX
13271 fi
13272
13273           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13274
13275           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13276         else
13277           if test ia64 = "$host_cpu"; then
13278             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13279             allow_undefined_flag_CXX="-z nodefs"
13280             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"
13281           else
13282             # Determine the default libpath from the value encoded in an
13283             # empty executable.
13284             if test set = "${lt_cv_aix_libpath+set}"; then
13285   aix_libpath=$lt_cv_aix_libpath
13286 else
13287   if ${lt_cv_aix_libpath__CXX+:} false; then :
13288   $as_echo_n "(cached) " >&6
13289 else
13290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h.  */
13292
13293 int
13294 main ()
13295 {
13296
13297   ;
13298   return 0;
13299 }
13300 _ACEOF
13301 if ac_fn_cxx_try_link "$LINENO"; then :
13302
13303   lt_aix_libpath_sed='
13304       /Import File Strings/,/^$/ {
13305           /^0/ {
13306               s/^0  *\([^ ]*\) *$/\1/
13307               p
13308           }
13309       }'
13310   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13311   # Check for a 64-bit object if we didn't find anything.
13312   if test -z "$lt_cv_aix_libpath__CXX"; then
13313     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13314   fi
13315 fi
13316 rm -f core conftest.err conftest.$ac_objext \
13317     conftest$ac_exeext conftest.$ac_ext
13318   if test -z "$lt_cv_aix_libpath__CXX"; then
13319     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13320   fi
13321
13322 fi
13323
13324   aix_libpath=$lt_cv_aix_libpath__CXX
13325 fi
13326
13327             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13328             # Warning - without using the other run time loading flags,
13329             # -berok will link without error, but may produce a broken library.
13330             no_undefined_flag_CXX=' $wl-bernotok'
13331             allow_undefined_flag_CXX=' $wl-berok'
13332             if test yes = "$with_gnu_ld"; then
13333               # We only use this code for GNU lds that support --whole-archive.
13334               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13335             else
13336               # Exported symbols can be pulled into shared objects from archives
13337               whole_archive_flag_spec_CXX='$convenience'
13338             fi
13339             archive_cmds_need_lc_CXX=yes
13340             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13341             # -brtl affects multiple linker settings, -berok does not and is overridden later
13342             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13343             if test svr4 != "$with_aix_soname"; then
13344               # This is similar to how AIX traditionally builds its shared
13345               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13346               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13347             fi
13348             if test aix != "$with_aix_soname"; then
13349               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13350             else
13351               # used by -dlpreopen to get the symbols
13352               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13353             fi
13354             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13355           fi
13356         fi
13357         ;;
13358
13359       beos*)
13360         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13361           allow_undefined_flag_CXX=unsupported
13362           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13363           # support --undefined.  This deserves some investigation.  FIXME
13364           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13365         else
13366           ld_shlibs_CXX=no
13367         fi
13368         ;;
13369
13370       chorus*)
13371         case $cc_basename in
13372           *)
13373           # FIXME: insert proper C++ library support
13374           ld_shlibs_CXX=no
13375           ;;
13376         esac
13377         ;;
13378
13379       cygwin* | mingw* | pw32* | cegcc*)
13380         case $GXX,$cc_basename in
13381         ,cl* | no,cl*)
13382           # Native MSVC
13383           # hardcode_libdir_flag_spec is actually meaningless, as there is
13384           # no search path for DLLs.
13385           hardcode_libdir_flag_spec_CXX=' '
13386           allow_undefined_flag_CXX=unsupported
13387           always_export_symbols_CXX=yes
13388           file_list_spec_CXX='@'
13389           # Tell ltmain to make .lib files, not .a files.
13390           libext=lib
13391           # Tell ltmain to make .dll files, not .so files.
13392           shrext_cmds=.dll
13393           # FIXME: Setting linknames here is a bad hack.
13394           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13395           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13396               cp "$export_symbols" "$output_objdir/$soname.def";
13397               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13398             else
13399               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13400             fi~
13401             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13402             linknames='
13403           # The linker will not automatically build a static lib if we build a DLL.
13404           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13405           enable_shared_with_static_runtimes_CXX=yes
13406           # Don't use ranlib
13407           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13408           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13409             lt_tool_outputfile="@TOOL_OUTPUT@"~
13410             case $lt_outputfile in
13411               *.exe|*.EXE) ;;
13412               *)
13413                 lt_outputfile=$lt_outputfile.exe
13414                 lt_tool_outputfile=$lt_tool_outputfile.exe
13415                 ;;
13416             esac~
13417             func_to_tool_file "$lt_outputfile"~
13418             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13419               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13420               $RM "$lt_outputfile.manifest";
13421             fi'
13422           ;;
13423         *)
13424           # g++
13425           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13426           # as there is no search path for DLLs.
13427           hardcode_libdir_flag_spec_CXX='-L$libdir'
13428           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13429           allow_undefined_flag_CXX=unsupported
13430           always_export_symbols_CXX=no
13431           enable_shared_with_static_runtimes_CXX=yes
13432
13433           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13434             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'
13435             # If the export-symbols file already is a .def file, use it as
13436             # is; otherwise, prepend EXPORTS...
13437             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13438               cp $export_symbols $output_objdir/$soname.def;
13439             else
13440               echo EXPORTS > $output_objdir/$soname.def;
13441               cat $export_symbols >> $output_objdir/$soname.def;
13442             fi~
13443             $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'
13444           else
13445             ld_shlibs_CXX=no
13446           fi
13447           ;;
13448         esac
13449         ;;
13450       darwin* | rhapsody*)
13451
13452
13453   archive_cmds_need_lc_CXX=no
13454   hardcode_direct_CXX=no
13455   hardcode_automatic_CXX=yes
13456   hardcode_shlibpath_var_CXX=unsupported
13457   if test yes = "$lt_cv_ld_force_load"; then
13458     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\"`'
13459
13460   else
13461     whole_archive_flag_spec_CXX=''
13462   fi
13463   link_all_deplibs_CXX=yes
13464   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13465   case $cc_basename in
13466      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13467      *) _lt_dar_can_shared=$GCC ;;
13468   esac
13469   if test yes = "$_lt_dar_can_shared"; then
13470     output_verbose_link_cmd=func_echo_all
13471     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"
13472     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13473     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"
13474     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"
13475        if test yes != "$lt_cv_apple_cc_single_mod"; then
13476       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"
13477       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"
13478     fi
13479
13480   else
13481   ld_shlibs_CXX=no
13482   fi
13483
13484         ;;
13485
13486       os2*)
13487         hardcode_libdir_flag_spec_CXX='-L$libdir'
13488         hardcode_minus_L_CXX=yes
13489         allow_undefined_flag_CXX=unsupported
13490         shrext_cmds=.dll
13491         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13492           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13493           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13494           $ECHO EXPORTS >> $output_objdir/$libname.def~
13495           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13496           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13497           emximp -o $lib $output_objdir/$libname.def'
13498         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13499           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13500           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13501           $ECHO EXPORTS >> $output_objdir/$libname.def~
13502           prefix_cmds="$SED"~
13503           if test EXPORTS = "`$SED 1q $export_symbols`"; then
13504             prefix_cmds="$prefix_cmds -e 1d";
13505           fi~
13506           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13507           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13508           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13509           emximp -o $lib $output_objdir/$libname.def'
13510         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13511         enable_shared_with_static_runtimes_CXX=yes
13512         ;;
13513
13514       dgux*)
13515         case $cc_basename in
13516           ec++*)
13517             # FIXME: insert proper C++ library support
13518             ld_shlibs_CXX=no
13519             ;;
13520           ghcx*)
13521             # Green Hills C++ Compiler
13522             # FIXME: insert proper C++ library support
13523             ld_shlibs_CXX=no
13524             ;;
13525           *)
13526             # FIXME: insert proper C++ library support
13527             ld_shlibs_CXX=no
13528             ;;
13529         esac
13530         ;;
13531
13532       freebsd2.*)
13533         # C++ shared libraries reported to be fairly broken before
13534         # switch to ELF
13535         ld_shlibs_CXX=no
13536         ;;
13537
13538       freebsd-elf*)
13539         archive_cmds_need_lc_CXX=no
13540         ;;
13541
13542       freebsd* | dragonfly*)
13543         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13544         # conventions
13545         ld_shlibs_CXX=yes
13546         ;;
13547
13548       haiku*)
13549         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13550         link_all_deplibs_CXX=yes
13551         ;;
13552
13553       hpux9*)
13554         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13555         hardcode_libdir_separator_CXX=:
13556         export_dynamic_flag_spec_CXX='$wl-E'
13557         hardcode_direct_CXX=yes
13558         hardcode_minus_L_CXX=yes # Not in the search PATH,
13559                                              # but as the default
13560                                              # location of the library.
13561
13562         case $cc_basename in
13563           CC*)
13564             # FIXME: insert proper C++ library support
13565             ld_shlibs_CXX=no
13566             ;;
13567           aCC*)
13568             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13569             # Commands to make compiler produce verbose output that lists
13570             # what "hidden" libraries, object files and flags are used when
13571             # linking a shared library.
13572             #
13573             # There doesn't appear to be a way to prevent this compiler from
13574             # explicitly linking system object files so we need to strip them
13575             # from the output so that they don't get included in the library
13576             # dependencies.
13577             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"'
13578             ;;
13579           *)
13580             if test yes = "$GXX"; then
13581               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13582             else
13583               # FIXME: insert proper C++ library support
13584               ld_shlibs_CXX=no
13585             fi
13586             ;;
13587         esac
13588         ;;
13589
13590       hpux10*|hpux11*)
13591         if test no = "$with_gnu_ld"; then
13592           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13593           hardcode_libdir_separator_CXX=:
13594
13595           case $host_cpu in
13596             hppa*64*|ia64*)
13597               ;;
13598             *)
13599               export_dynamic_flag_spec_CXX='$wl-E'
13600               ;;
13601           esac
13602         fi
13603         case $host_cpu in
13604           hppa*64*|ia64*)
13605             hardcode_direct_CXX=no
13606             hardcode_shlibpath_var_CXX=no
13607             ;;
13608           *)
13609             hardcode_direct_CXX=yes
13610             hardcode_direct_absolute_CXX=yes
13611             hardcode_minus_L_CXX=yes # Not in the search PATH,
13612                                                  # but as the default
13613                                                  # location of the library.
13614             ;;
13615         esac
13616
13617         case $cc_basename in
13618           CC*)
13619             # FIXME: insert proper C++ library support
13620             ld_shlibs_CXX=no
13621             ;;
13622           aCC*)
13623             case $host_cpu in
13624               hppa*64*)
13625                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13626                 ;;
13627               ia64*)
13628                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13629                 ;;
13630               *)
13631                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13632                 ;;
13633             esac
13634             # Commands to make compiler produce verbose output that lists
13635             # what "hidden" libraries, object files and flags are used when
13636             # linking a shared library.
13637             #
13638             # There doesn't appear to be a way to prevent this compiler from
13639             # explicitly linking system object files so we need to strip them
13640             # from the output so that they don't get included in the library
13641             # dependencies.
13642             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"'
13643             ;;
13644           *)
13645             if test yes = "$GXX"; then
13646               if test no = "$with_gnu_ld"; then
13647                 case $host_cpu in
13648                   hppa*64*)
13649                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650                     ;;
13651                   ia64*)
13652                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13653                     ;;
13654                   *)
13655                     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'
13656                     ;;
13657                 esac
13658               fi
13659             else
13660               # FIXME: insert proper C++ library support
13661               ld_shlibs_CXX=no
13662             fi
13663             ;;
13664         esac
13665         ;;
13666
13667       interix[3-9]*)
13668         hardcode_direct_CXX=no
13669         hardcode_shlibpath_var_CXX=no
13670         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13671         export_dynamic_flag_spec_CXX='$wl-E'
13672         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13673         # Instead, shared libraries are loaded at an image base (0x10000000 by
13674         # default) and relocated if they conflict, which is a slow very memory
13675         # consuming and fragmenting process.  To avoid this, we pick a random,
13676         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13677         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13678         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'
13679         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'
13680         ;;
13681       irix5* | irix6*)
13682         case $cc_basename in
13683           CC*)
13684             # SGI C++
13685             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'
13686
13687             # Archives containing C++ object files must be created using
13688             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13689             # necessary to make sure instantiated templates are included
13690             # in the archive.
13691             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13692             ;;
13693           *)
13694             if test yes = "$GXX"; then
13695               if test no = "$with_gnu_ld"; then
13696                 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'
13697               else
13698                 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'
13699               fi
13700             fi
13701             link_all_deplibs_CXX=yes
13702             ;;
13703         esac
13704         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13705         hardcode_libdir_separator_CXX=:
13706         inherit_rpath_CXX=yes
13707         ;;
13708
13709       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13710         case $cc_basename in
13711           KCC*)
13712             # Kuck and Associates, Inc. (KAI) C++ Compiler
13713
13714             # KCC will only create a shared library if the output file
13715             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13716             # to its proper name (with version) after linking.
13717             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'
13718             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'
13719             # Commands to make compiler produce verbose output that lists
13720             # what "hidden" libraries, object files and flags are used when
13721             # linking a shared library.
13722             #
13723             # There doesn't appear to be a way to prevent this compiler from
13724             # explicitly linking system object files so we need to strip them
13725             # from the output so that they don't get included in the library
13726             # dependencies.
13727             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"'
13728
13729             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13730             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13731
13732             # Archives containing C++ object files must be created using
13733             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13734             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13735             ;;
13736           icpc* | ecpc* )
13737             # Intel C++
13738             with_gnu_ld=yes
13739             # version 8.0 and above of icpc choke on multiply defined symbols
13740             # if we add $predep_objects and $postdep_objects, however 7.1 and
13741             # earlier do not add the objects themselves.
13742             case `$CC -V 2>&1` in
13743               *"Version 7."*)
13744                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13745                 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'
13746                 ;;
13747               *)  # Version 8.0 or newer
13748                 tmp_idyn=
13749                 case $host_cpu in
13750                   ia64*) tmp_idyn=' -i_dynamic';;
13751                 esac
13752                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13753                 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'
13754                 ;;
13755             esac
13756             archive_cmds_need_lc_CXX=no
13757             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13758             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13759             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13760             ;;
13761           pgCC* | pgcpp*)
13762             # Portland Group C++ compiler
13763             case `$CC -V` in
13764             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13765               prelink_cmds_CXX='tpldir=Template.dir~
13766                rm -rf $tpldir~
13767                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13768                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13769               old_archive_cmds_CXX='tpldir=Template.dir~
13770                 rm -rf $tpldir~
13771                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13772                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13773                 $RANLIB $oldlib'
13774               archive_cmds_CXX='tpldir=Template.dir~
13775                 rm -rf $tpldir~
13776                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13777                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13778               archive_expsym_cmds_CXX='tpldir=Template.dir~
13779                 rm -rf $tpldir~
13780                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13781                 $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'
13782               ;;
13783             *) # Version 6 and above use weak symbols
13784               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13785               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'
13786               ;;
13787             esac
13788
13789             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13790             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13791             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'
13792             ;;
13793           cxx*)
13794             # Compaq C++
13795             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13796             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'
13797
13798             runpath_var=LD_RUN_PATH
13799             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13800             hardcode_libdir_separator_CXX=:
13801
13802             # Commands to make compiler produce verbose output that lists
13803             # what "hidden" libraries, object files and flags are used when
13804             # linking a shared library.
13805             #
13806             # There doesn't appear to be a way to prevent this compiler from
13807             # explicitly linking system object files so we need to strip them
13808             # from the output so that they don't get included in the library
13809             # dependencies.
13810             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'
13811             ;;
13812           xl* | mpixl* | bgxl*)
13813             # IBM XL 8.0 on PPC, with GNU ld
13814             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13815             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13816             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13817             if test yes = "$supports_anon_versioning"; then
13818               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13819                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13820                 echo "local: *; };" >> $output_objdir/$libname.ver~
13821                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13822             fi
13823             ;;
13824           *)
13825             case `$CC -V 2>&1 | sed 5q` in
13826             *Sun\ C*)
13827               # Sun C++ 5.9
13828               no_undefined_flag_CXX=' -zdefs'
13829               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13830               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'
13831               hardcode_libdir_flag_spec_CXX='-R$libdir'
13832               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'
13833               compiler_needs_object_CXX=yes
13834
13835               # Not sure whether something based on
13836               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13837               # would be better.
13838               output_verbose_link_cmd='func_echo_all'
13839
13840               # Archives containing C++ object files must be created using
13841               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13842               # necessary to make sure instantiated templates are included
13843               # in the archive.
13844               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13845               ;;
13846             esac
13847             ;;
13848         esac
13849         ;;
13850
13851       lynxos*)
13852         # FIXME: insert proper C++ library support
13853         ld_shlibs_CXX=no
13854         ;;
13855
13856       m88k*)
13857         # FIXME: insert proper C++ library support
13858         ld_shlibs_CXX=no
13859         ;;
13860
13861       mvs*)
13862         case $cc_basename in
13863           cxx*)
13864             # FIXME: insert proper C++ library support
13865             ld_shlibs_CXX=no
13866             ;;
13867           *)
13868             # FIXME: insert proper C++ library support
13869             ld_shlibs_CXX=no
13870             ;;
13871         esac
13872         ;;
13873
13874       netbsd*)
13875         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13876           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13877           wlarc=
13878           hardcode_libdir_flag_spec_CXX='-R$libdir'
13879           hardcode_direct_CXX=yes
13880           hardcode_shlibpath_var_CXX=no
13881         fi
13882         # Workaround some broken pre-1.5 toolchains
13883         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13884         ;;
13885
13886       *nto* | *qnx*)
13887         ld_shlibs_CXX=yes
13888         ;;
13889
13890       openbsd* | bitrig*)
13891         if test -f /usr/libexec/ld.so; then
13892           hardcode_direct_CXX=yes
13893           hardcode_shlibpath_var_CXX=no
13894           hardcode_direct_absolute_CXX=yes
13895           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13896           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13897           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13898             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13899             export_dynamic_flag_spec_CXX='$wl-E'
13900             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13901           fi
13902           output_verbose_link_cmd=func_echo_all
13903         else
13904           ld_shlibs_CXX=no
13905         fi
13906         ;;
13907
13908       osf3* | osf4* | osf5*)
13909         case $cc_basename in
13910           KCC*)
13911             # Kuck and Associates, Inc. (KAI) C++ Compiler
13912
13913             # KCC will only create a shared library if the output file
13914             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13915             # to its proper name (with version) after linking.
13916             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'
13917
13918             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13919             hardcode_libdir_separator_CXX=:
13920
13921             # Archives containing C++ object files must be created using
13922             # the KAI C++ compiler.
13923             case $host in
13924               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13925               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13926             esac
13927             ;;
13928           RCC*)
13929             # Rational C++ 2.4.1
13930             # FIXME: insert proper C++ library support
13931             ld_shlibs_CXX=no
13932             ;;
13933           cxx*)
13934             case $host in
13935               osf3*)
13936                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13937                 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'
13938                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13939                 ;;
13940               *)
13941                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13942                 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'
13943                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13944                   echo "-hidden">> $lib.exp~
13945                   $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~
13946                   $RM $lib.exp'
13947                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13948                 ;;
13949             esac
13950
13951             hardcode_libdir_separator_CXX=:
13952
13953             # Commands to make compiler produce verbose output that lists
13954             # what "hidden" libraries, object files and flags are used when
13955             # linking a shared library.
13956             #
13957             # There doesn't appear to be a way to prevent this compiler from
13958             # explicitly linking system object files so we need to strip them
13959             # from the output so that they don't get included in the library
13960             # dependencies.
13961             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"'
13962             ;;
13963           *)
13964             if test yes,no = "$GXX,$with_gnu_ld"; then
13965               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13966               case $host in
13967                 osf3*)
13968                   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'
13969                   ;;
13970                 *)
13971                   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'
13972                   ;;
13973               esac
13974
13975               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13976               hardcode_libdir_separator_CXX=:
13977
13978               # Commands to make compiler produce verbose output that lists
13979               # what "hidden" libraries, object files and flags are used when
13980               # linking a shared library.
13981               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13982
13983             else
13984               # FIXME: insert proper C++ library support
13985               ld_shlibs_CXX=no
13986             fi
13987             ;;
13988         esac
13989         ;;
13990
13991       psos*)
13992         # FIXME: insert proper C++ library support
13993         ld_shlibs_CXX=no
13994         ;;
13995
13996       sunos4*)
13997         case $cc_basename in
13998           CC*)
13999             # Sun C++ 4.x
14000             # FIXME: insert proper C++ library support
14001             ld_shlibs_CXX=no
14002             ;;
14003           lcc*)
14004             # Lucid
14005             # FIXME: insert proper C++ library support
14006             ld_shlibs_CXX=no
14007             ;;
14008           *)
14009             # FIXME: insert proper C++ library support
14010             ld_shlibs_CXX=no
14011             ;;
14012         esac
14013         ;;
14014
14015       solaris*)
14016         case $cc_basename in
14017           CC* | sunCC*)
14018             # Sun C++ 4.2, 5.x and Centerline C++
14019             archive_cmds_need_lc_CXX=yes
14020             no_undefined_flag_CXX=' -zdefs'
14021             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14022             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14023               $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'
14024
14025             hardcode_libdir_flag_spec_CXX='-R$libdir'
14026             hardcode_shlibpath_var_CXX=no
14027             case $host_os in
14028               solaris2.[0-5] | solaris2.[0-5].*) ;;
14029               *)
14030                 # The compiler driver will combine and reorder linker options,
14031                 # but understands '-z linker_flag'.
14032                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14033                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14034                 ;;
14035             esac
14036             link_all_deplibs_CXX=yes
14037
14038             output_verbose_link_cmd='func_echo_all'
14039
14040             # Archives containing C++ object files must be created using
14041             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14042             # necessary to make sure instantiated templates are included
14043             # in the archive.
14044             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14045             ;;
14046           gcx*)
14047             # Green Hills C++ Compiler
14048             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14049
14050             # The C++ compiler must be used to create the archive.
14051             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14052             ;;
14053           *)
14054             # GNU C++ compiler with Solaris linker
14055             if test yes,no = "$GXX,$with_gnu_ld"; then
14056               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14057               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14058                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14059                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14060                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14061
14062                 # Commands to make compiler produce verbose output that lists
14063                 # what "hidden" libraries, object files and flags are used when
14064                 # linking a shared library.
14065                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14066               else
14067                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14068                 # platform.
14069                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14070                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14071                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14072
14073                 # Commands to make compiler produce verbose output that lists
14074                 # what "hidden" libraries, object files and flags are used when
14075                 # linking a shared library.
14076                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14077               fi
14078
14079               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14080               case $host_os in
14081                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14082                 *)
14083                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14084                   ;;
14085               esac
14086             fi
14087             ;;
14088         esac
14089         ;;
14090
14091     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14092       no_undefined_flag_CXX='$wl-z,text'
14093       archive_cmds_need_lc_CXX=no
14094       hardcode_shlibpath_var_CXX=no
14095       runpath_var='LD_RUN_PATH'
14096
14097       case $cc_basename in
14098         CC*)
14099           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14100           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14101           ;;
14102         *)
14103           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14105           ;;
14106       esac
14107       ;;
14108
14109       sysv5* | sco3.2v5* | sco5v6*)
14110         # Note: We CANNOT use -z defs as we might desire, because we do not
14111         # link with -lc, and that would cause any symbols used from libc to
14112         # always be unresolved, which means just about no library would
14113         # ever link correctly.  If we're not using GNU ld we use -z text
14114         # though, which does catch some bad symbols but isn't as heavy-handed
14115         # as -z defs.
14116         no_undefined_flag_CXX='$wl-z,text'
14117         allow_undefined_flag_CXX='$wl-z,nodefs'
14118         archive_cmds_need_lc_CXX=no
14119         hardcode_shlibpath_var_CXX=no
14120         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14121         hardcode_libdir_separator_CXX=':'
14122         link_all_deplibs_CXX=yes
14123         export_dynamic_flag_spec_CXX='$wl-Bexport'
14124         runpath_var='LD_RUN_PATH'
14125
14126         case $cc_basename in
14127           CC*)
14128             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14129             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14130             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14131               '"$old_archive_cmds_CXX"
14132             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14133               '"$reload_cmds_CXX"
14134             ;;
14135           *)
14136             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14137             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14138             ;;
14139         esac
14140       ;;
14141
14142       tandem*)
14143         case $cc_basename in
14144           NCC*)
14145             # NonStop-UX NCC 3.20
14146             # FIXME: insert proper C++ library support
14147             ld_shlibs_CXX=no
14148             ;;
14149           *)
14150             # FIXME: insert proper C++ library support
14151             ld_shlibs_CXX=no
14152             ;;
14153         esac
14154         ;;
14155
14156       vxworks*)
14157         # FIXME: insert proper C++ library support
14158         ld_shlibs_CXX=no
14159         ;;
14160
14161       *)
14162         # FIXME: insert proper C++ library support
14163         ld_shlibs_CXX=no
14164         ;;
14165     esac
14166
14167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14168 $as_echo "$ld_shlibs_CXX" >&6; }
14169     test no = "$ld_shlibs_CXX" && can_build_shared=no
14170
14171     GCC_CXX=$GXX
14172     LD_CXX=$LD
14173
14174     ## CAVEAT EMPTOR:
14175     ## There is no encapsulation within the following macros, do not change
14176     ## the running order or otherwise move them around unless you know exactly
14177     ## what you are doing...
14178     # Dependencies to place before and after the object being linked:
14179 predep_objects_CXX=
14180 postdep_objects_CXX=
14181 predeps_CXX=
14182 postdeps_CXX=
14183 compiler_lib_search_path_CXX=
14184
14185 cat > conftest.$ac_ext <<_LT_EOF
14186 class Foo
14187 {
14188 public:
14189   Foo (void) { a = 0; }
14190 private:
14191   int a;
14192 };
14193 _LT_EOF
14194
14195
14196 _lt_libdeps_save_CFLAGS=$CFLAGS
14197 case "$CC $CFLAGS " in #(
14198 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14199 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14200 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14201 esac
14202
14203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14204   (eval $ac_compile) 2>&5
14205   ac_status=$?
14206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14207   test $ac_status = 0; }; then
14208   # Parse the compiler output and extract the necessary
14209   # objects, libraries and library flags.
14210
14211   # Sentinel used to keep track of whether or not we are before
14212   # the conftest object file.
14213   pre_test_object_deps_done=no
14214
14215   for p in `eval "$output_verbose_link_cmd"`; do
14216     case $prev$p in
14217
14218     -L* | -R* | -l*)
14219        # Some compilers place space between "-{L,R}" and the path.
14220        # Remove the space.
14221        if test x-L = "$p" ||
14222           test x-R = "$p"; then
14223          prev=$p
14224          continue
14225        fi
14226
14227        # Expand the sysroot to ease extracting the directories later.
14228        if test -z "$prev"; then
14229          case $p in
14230          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14231          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14232          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14233          esac
14234        fi
14235        case $p in
14236        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14237        esac
14238        if test no = "$pre_test_object_deps_done"; then
14239          case $prev in
14240          -L | -R)
14241            # Internal compiler library paths should come after those
14242            # provided the user.  The postdeps already come after the
14243            # user supplied libs so there is no need to process them.
14244            if test -z "$compiler_lib_search_path_CXX"; then
14245              compiler_lib_search_path_CXX=$prev$p
14246            else
14247              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14248            fi
14249            ;;
14250          # The "-l" case would never come before the object being
14251          # linked, so don't bother handling this case.
14252          esac
14253        else
14254          if test -z "$postdeps_CXX"; then
14255            postdeps_CXX=$prev$p
14256          else
14257            postdeps_CXX="${postdeps_CXX} $prev$p"
14258          fi
14259        fi
14260        prev=
14261        ;;
14262
14263     *.lto.$objext) ;; # Ignore GCC LTO objects
14264     *.$objext)
14265        # This assumes that the test object file only shows up
14266        # once in the compiler output.
14267        if test "$p" = "conftest.$objext"; then
14268          pre_test_object_deps_done=yes
14269          continue
14270        fi
14271
14272        if test no = "$pre_test_object_deps_done"; then
14273          if test -z "$predep_objects_CXX"; then
14274            predep_objects_CXX=$p
14275          else
14276            predep_objects_CXX="$predep_objects_CXX $p"
14277          fi
14278        else
14279          if test -z "$postdep_objects_CXX"; then
14280            postdep_objects_CXX=$p
14281          else
14282            postdep_objects_CXX="$postdep_objects_CXX $p"
14283          fi
14284        fi
14285        ;;
14286
14287     *) ;; # Ignore the rest.
14288
14289     esac
14290   done
14291
14292   # Clean up.
14293   rm -f a.out a.exe
14294 else
14295   echo "libtool.m4: error: problem compiling CXX test program"
14296 fi
14297
14298 $RM -f confest.$objext
14299 CFLAGS=$_lt_libdeps_save_CFLAGS
14300
14301 # PORTME: override above test on systems where it is broken
14302 case $host_os in
14303 interix[3-9]*)
14304   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14305   # hack all around it, let's just trust "g++" to DTRT.
14306   predep_objects_CXX=
14307   postdep_objects_CXX=
14308   postdeps_CXX=
14309   ;;
14310 esac
14311
14312
14313 case " $postdeps_CXX " in
14314 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14315 esac
14316  compiler_lib_search_dirs_CXX=
14317 if test -n "${compiler_lib_search_path_CXX}"; then
14318  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14319 fi
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351     lt_prog_compiler_wl_CXX=
14352 lt_prog_compiler_pic_CXX=
14353 lt_prog_compiler_static_CXX=
14354
14355
14356   # C++ specific cases for pic, static, wl, etc.
14357   if test yes = "$GXX"; then
14358     lt_prog_compiler_wl_CXX='-Wl,'
14359     lt_prog_compiler_static_CXX='-static'
14360
14361     case $host_os in
14362     aix*)
14363       # All AIX code is PIC.
14364       if test ia64 = "$host_cpu"; then
14365         # AIX 5 now supports IA64 processor
14366         lt_prog_compiler_static_CXX='-Bstatic'
14367       fi
14368       lt_prog_compiler_pic_CXX='-fPIC'
14369       ;;
14370
14371     amigaos*)
14372       case $host_cpu in
14373       powerpc)
14374             # see comment about AmigaOS4 .so support
14375             lt_prog_compiler_pic_CXX='-fPIC'
14376         ;;
14377       m68k)
14378             # FIXME: we need at least 68020 code to build shared libraries, but
14379             # adding the '-m68020' flag to GCC prevents building anything better,
14380             # like '-m68040'.
14381             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14382         ;;
14383       esac
14384       ;;
14385
14386     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14387       # PIC is the default for these OSes.
14388       ;;
14389     mingw* | cygwin* | os2* | pw32* | cegcc*)
14390       # This hack is so that the source file can tell whether it is being
14391       # built for inclusion in a dll (and should export symbols for example).
14392       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14393       # (--disable-auto-import) libraries
14394       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14395       case $host_os in
14396       os2*)
14397         lt_prog_compiler_static_CXX='$wl-static'
14398         ;;
14399       esac
14400       ;;
14401     darwin* | rhapsody*)
14402       # PIC is the default on this platform
14403       # Common symbols not allowed in MH_DYLIB files
14404       lt_prog_compiler_pic_CXX='-fno-common'
14405       ;;
14406     *djgpp*)
14407       # DJGPP does not support shared libraries at all
14408       lt_prog_compiler_pic_CXX=
14409       ;;
14410     haiku*)
14411       # PIC is the default for Haiku.
14412       # The "-static" flag exists, but is broken.
14413       lt_prog_compiler_static_CXX=
14414       ;;
14415     interix[3-9]*)
14416       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14417       # Instead, we relocate shared libraries at runtime.
14418       ;;
14419     sysv4*MP*)
14420       if test -d /usr/nec; then
14421         lt_prog_compiler_pic_CXX=-Kconform_pic
14422       fi
14423       ;;
14424     hpux*)
14425       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14426       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14427       # sets the default TLS model and affects inlining.
14428       case $host_cpu in
14429       hppa*64*)
14430         ;;
14431       *)
14432         lt_prog_compiler_pic_CXX='-fPIC'
14433         ;;
14434       esac
14435       ;;
14436     *qnx* | *nto*)
14437       # QNX uses GNU C++, but need to define -shared option too, otherwise
14438       # it will coredump.
14439       lt_prog_compiler_pic_CXX='-fPIC -shared'
14440       ;;
14441     *)
14442       lt_prog_compiler_pic_CXX='-fPIC'
14443       ;;
14444     esac
14445   else
14446     case $host_os in
14447       aix[4-9]*)
14448         # All AIX code is PIC.
14449         if test ia64 = "$host_cpu"; then
14450           # AIX 5 now supports IA64 processor
14451           lt_prog_compiler_static_CXX='-Bstatic'
14452         else
14453           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14454         fi
14455         ;;
14456       chorus*)
14457         case $cc_basename in
14458         cxch68*)
14459           # Green Hills C++ Compiler
14460           # _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"
14461           ;;
14462         esac
14463         ;;
14464       mingw* | cygwin* | os2* | pw32* | cegcc*)
14465         # This hack is so that the source file can tell whether it is being
14466         # built for inclusion in a dll (and should export symbols for example).
14467         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14468         ;;
14469       dgux*)
14470         case $cc_basename in
14471           ec++*)
14472             lt_prog_compiler_pic_CXX='-KPIC'
14473             ;;
14474           ghcx*)
14475             # Green Hills C++ Compiler
14476             lt_prog_compiler_pic_CXX='-pic'
14477             ;;
14478           *)
14479             ;;
14480         esac
14481         ;;
14482       freebsd* | dragonfly*)
14483         # FreeBSD uses GNU C++
14484         ;;
14485       hpux9* | hpux10* | hpux11*)
14486         case $cc_basename in
14487           CC*)
14488             lt_prog_compiler_wl_CXX='-Wl,'
14489             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14490             if test ia64 != "$host_cpu"; then
14491               lt_prog_compiler_pic_CXX='+Z'
14492             fi
14493             ;;
14494           aCC*)
14495             lt_prog_compiler_wl_CXX='-Wl,'
14496             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14497             case $host_cpu in
14498             hppa*64*|ia64*)
14499               # +Z the default
14500               ;;
14501             *)
14502               lt_prog_compiler_pic_CXX='+Z'
14503               ;;
14504             esac
14505             ;;
14506           *)
14507             ;;
14508         esac
14509         ;;
14510       interix*)
14511         # This is c89, which is MS Visual C++ (no shared libs)
14512         # Anyone wants to do a port?
14513         ;;
14514       irix5* | irix6* | nonstopux*)
14515         case $cc_basename in
14516           CC*)
14517             lt_prog_compiler_wl_CXX='-Wl,'
14518             lt_prog_compiler_static_CXX='-non_shared'
14519             # CC pic flag -KPIC is the default.
14520             ;;
14521           *)
14522             ;;
14523         esac
14524         ;;
14525       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14526         case $cc_basename in
14527           KCC*)
14528             # KAI C++ Compiler
14529             lt_prog_compiler_wl_CXX='--backend -Wl,'
14530             lt_prog_compiler_pic_CXX='-fPIC'
14531             ;;
14532           ecpc* )
14533             # old Intel C++ for x86_64, which still supported -KPIC.
14534             lt_prog_compiler_wl_CXX='-Wl,'
14535             lt_prog_compiler_pic_CXX='-KPIC'
14536             lt_prog_compiler_static_CXX='-static'
14537             ;;
14538           icpc* )
14539             # Intel C++, used to be incompatible with GCC.
14540             # ICC 10 doesn't accept -KPIC any more.
14541             lt_prog_compiler_wl_CXX='-Wl,'
14542             lt_prog_compiler_pic_CXX='-fPIC'
14543             lt_prog_compiler_static_CXX='-static'
14544             ;;
14545           pgCC* | pgcpp*)
14546             # Portland Group C++ compiler
14547             lt_prog_compiler_wl_CXX='-Wl,'
14548             lt_prog_compiler_pic_CXX='-fpic'
14549             lt_prog_compiler_static_CXX='-Bstatic'
14550             ;;
14551           cxx*)
14552             # Compaq C++
14553             # Make sure the PIC flag is empty.  It appears that all Alpha
14554             # Linux and Compaq Tru64 Unix objects are PIC.
14555             lt_prog_compiler_pic_CXX=
14556             lt_prog_compiler_static_CXX='-non_shared'
14557             ;;
14558           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14559             # IBM XL 8.0, 9.0 on PPC and BlueGene
14560             lt_prog_compiler_wl_CXX='-Wl,'
14561             lt_prog_compiler_pic_CXX='-qpic'
14562             lt_prog_compiler_static_CXX='-qstaticlink'
14563             ;;
14564           *)
14565             case `$CC -V 2>&1 | sed 5q` in
14566             *Sun\ C*)
14567               # Sun C++ 5.9
14568               lt_prog_compiler_pic_CXX='-KPIC'
14569               lt_prog_compiler_static_CXX='-Bstatic'
14570               lt_prog_compiler_wl_CXX='-Qoption ld '
14571               ;;
14572             esac
14573             ;;
14574         esac
14575         ;;
14576       lynxos*)
14577         ;;
14578       m88k*)
14579         ;;
14580       mvs*)
14581         case $cc_basename in
14582           cxx*)
14583             lt_prog_compiler_pic_CXX='-W c,exportall'
14584             ;;
14585           *)
14586             ;;
14587         esac
14588         ;;
14589       netbsd* | netbsdelf*-gnu)
14590         ;;
14591       *qnx* | *nto*)
14592         # QNX uses GNU C++, but need to define -shared option too, otherwise
14593         # it will coredump.
14594         lt_prog_compiler_pic_CXX='-fPIC -shared'
14595         ;;
14596       osf3* | osf4* | osf5*)
14597         case $cc_basename in
14598           KCC*)
14599             lt_prog_compiler_wl_CXX='--backend -Wl,'
14600             ;;
14601           RCC*)
14602             # Rational C++ 2.4.1
14603             lt_prog_compiler_pic_CXX='-pic'
14604             ;;
14605           cxx*)
14606             # Digital/Compaq C++
14607             lt_prog_compiler_wl_CXX='-Wl,'
14608             # Make sure the PIC flag is empty.  It appears that all Alpha
14609             # Linux and Compaq Tru64 Unix objects are PIC.
14610             lt_prog_compiler_pic_CXX=
14611             lt_prog_compiler_static_CXX='-non_shared'
14612             ;;
14613           *)
14614             ;;
14615         esac
14616         ;;
14617       psos*)
14618         ;;
14619       solaris*)
14620         case $cc_basename in
14621           CC* | sunCC*)
14622             # Sun C++ 4.2, 5.x and Centerline C++
14623             lt_prog_compiler_pic_CXX='-KPIC'
14624             lt_prog_compiler_static_CXX='-Bstatic'
14625             lt_prog_compiler_wl_CXX='-Qoption ld '
14626             ;;
14627           gcx*)
14628             # Green Hills C++ Compiler
14629             lt_prog_compiler_pic_CXX='-PIC'
14630             ;;
14631           *)
14632             ;;
14633         esac
14634         ;;
14635       sunos4*)
14636         case $cc_basename in
14637           CC*)
14638             # Sun C++ 4.x
14639             lt_prog_compiler_pic_CXX='-pic'
14640             lt_prog_compiler_static_CXX='-Bstatic'
14641             ;;
14642           lcc*)
14643             # Lucid
14644             lt_prog_compiler_pic_CXX='-pic'
14645             ;;
14646           *)
14647             ;;
14648         esac
14649         ;;
14650       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14651         case $cc_basename in
14652           CC*)
14653             lt_prog_compiler_wl_CXX='-Wl,'
14654             lt_prog_compiler_pic_CXX='-KPIC'
14655             lt_prog_compiler_static_CXX='-Bstatic'
14656             ;;
14657         esac
14658         ;;
14659       tandem*)
14660         case $cc_basename in
14661           NCC*)
14662             # NonStop-UX NCC 3.20
14663             lt_prog_compiler_pic_CXX='-KPIC'
14664             ;;
14665           *)
14666             ;;
14667         esac
14668         ;;
14669       vxworks*)
14670         ;;
14671       *)
14672         lt_prog_compiler_can_build_shared_CXX=no
14673         ;;
14674     esac
14675   fi
14676
14677 case $host_os in
14678   # For platforms that do not support PIC, -DPIC is meaningless:
14679   *djgpp*)
14680     lt_prog_compiler_pic_CXX=
14681     ;;
14682   *)
14683     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14684     ;;
14685 esac
14686
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14688 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14689 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14690   $as_echo_n "(cached) " >&6
14691 else
14692   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14693 fi
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14695 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14696 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14697
14698 #
14699 # Check to make sure the PIC flag actually works.
14700 #
14701 if test -n "$lt_prog_compiler_pic_CXX"; then
14702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14703 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14704 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14705   $as_echo_n "(cached) " >&6
14706 else
14707   lt_cv_prog_compiler_pic_works_CXX=no
14708    ac_outfile=conftest.$ac_objext
14709    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14710    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14711    # Insert the option either (1) after the last *FLAGS variable, or
14712    # (2) before a word containing "conftest.", or (3) at the end.
14713    # Note that $ac_compile itself does not contain backslashes and begins
14714    # with a dollar sign (not a hyphen), so the echo should work correctly.
14715    # The option is referenced via a variable to avoid confusing sed.
14716    lt_compile=`echo "$ac_compile" | $SED \
14717    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14719    -e 's:$: $lt_compiler_flag:'`
14720    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14721    (eval "$lt_compile" 2>conftest.err)
14722    ac_status=$?
14723    cat conftest.err >&5
14724    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725    if (exit $ac_status) && test -s "$ac_outfile"; then
14726      # The compiler can only warn and ignore the option if not recognized
14727      # So say no if there are warnings other than the usual output.
14728      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14729      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14730      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14731        lt_cv_prog_compiler_pic_works_CXX=yes
14732      fi
14733    fi
14734    $RM conftest*
14735
14736 fi
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14738 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14739
14740 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14741     case $lt_prog_compiler_pic_CXX in
14742      "" | " "*) ;;
14743      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14744      esac
14745 else
14746     lt_prog_compiler_pic_CXX=
14747      lt_prog_compiler_can_build_shared_CXX=no
14748 fi
14749
14750 fi
14751
14752
14753
14754
14755
14756 #
14757 # Check to make sure the static flag actually works.
14758 #
14759 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14761 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14762 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14763   $as_echo_n "(cached) " >&6
14764 else
14765   lt_cv_prog_compiler_static_works_CXX=no
14766    save_LDFLAGS=$LDFLAGS
14767    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14768    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14769    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14770      # The linker can only warn and ignore the option if not recognized
14771      # So say no if there are warnings
14772      if test -s conftest.err; then
14773        # Append any errors to the config.log.
14774        cat conftest.err 1>&5
14775        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14776        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14777        if diff conftest.exp conftest.er2 >/dev/null; then
14778          lt_cv_prog_compiler_static_works_CXX=yes
14779        fi
14780      else
14781        lt_cv_prog_compiler_static_works_CXX=yes
14782      fi
14783    fi
14784    $RM -r conftest*
14785    LDFLAGS=$save_LDFLAGS
14786
14787 fi
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14789 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14790
14791 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14792     :
14793 else
14794     lt_prog_compiler_static_CXX=
14795 fi
14796
14797
14798
14799
14800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14801 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14802 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14803   $as_echo_n "(cached) " >&6
14804 else
14805   lt_cv_prog_compiler_c_o_CXX=no
14806    $RM -r conftest 2>/dev/null
14807    mkdir conftest
14808    cd conftest
14809    mkdir out
14810    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14811
14812    lt_compiler_flag="-o out/conftest2.$ac_objext"
14813    # Insert the option either (1) after the last *FLAGS variable, or
14814    # (2) before a word containing "conftest.", or (3) at the end.
14815    # Note that $ac_compile itself does not contain backslashes and begins
14816    # with a dollar sign (not a hyphen), so the echo should work correctly.
14817    lt_compile=`echo "$ac_compile" | $SED \
14818    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14820    -e 's:$: $lt_compiler_flag:'`
14821    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14822    (eval "$lt_compile" 2>out/conftest.err)
14823    ac_status=$?
14824    cat out/conftest.err >&5
14825    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14827    then
14828      # The compiler can only warn and ignore the option if not recognized
14829      # So say no if there are warnings
14830      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14831      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14832      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14833        lt_cv_prog_compiler_c_o_CXX=yes
14834      fi
14835    fi
14836    chmod u+w . 2>&5
14837    $RM conftest*
14838    # SGI C++ compiler will create directory out/ii_files/ for
14839    # template instantiation
14840    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14841    $RM out/* && rmdir out
14842    cd ..
14843    $RM -r conftest
14844    $RM conftest*
14845
14846 fi
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14848 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14849
14850
14851
14852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14854 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14855   $as_echo_n "(cached) " >&6
14856 else
14857   lt_cv_prog_compiler_c_o_CXX=no
14858    $RM -r conftest 2>/dev/null
14859    mkdir conftest
14860    cd conftest
14861    mkdir out
14862    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14863
14864    lt_compiler_flag="-o out/conftest2.$ac_objext"
14865    # Insert the option either (1) after the last *FLAGS variable, or
14866    # (2) before a word containing "conftest.", or (3) at the end.
14867    # Note that $ac_compile itself does not contain backslashes and begins
14868    # with a dollar sign (not a hyphen), so the echo should work correctly.
14869    lt_compile=`echo "$ac_compile" | $SED \
14870    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14871    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14872    -e 's:$: $lt_compiler_flag:'`
14873    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14874    (eval "$lt_compile" 2>out/conftest.err)
14875    ac_status=$?
14876    cat out/conftest.err >&5
14877    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14879    then
14880      # The compiler can only warn and ignore the option if not recognized
14881      # So say no if there are warnings
14882      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14883      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14884      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14885        lt_cv_prog_compiler_c_o_CXX=yes
14886      fi
14887    fi
14888    chmod u+w . 2>&5
14889    $RM conftest*
14890    # SGI C++ compiler will create directory out/ii_files/ for
14891    # template instantiation
14892    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14893    $RM out/* && rmdir out
14894    cd ..
14895    $RM -r conftest
14896    $RM conftest*
14897
14898 fi
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14900 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14901
14902
14903
14904
14905 hard_links=nottested
14906 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14907   # do not overwrite the value of need_locks provided by the user
14908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14909 $as_echo_n "checking if we can lock with hard links... " >&6; }
14910   hard_links=yes
14911   $RM conftest*
14912   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14913   touch conftest.a
14914   ln conftest.a conftest.b 2>&5 || hard_links=no
14915   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14917 $as_echo "$hard_links" >&6; }
14918   if test no = "$hard_links"; then
14919     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14920 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14921     need_locks=warn
14922   fi
14923 else
14924   need_locks=no
14925 fi
14926
14927
14928
14929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14931
14932   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14933   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14934   case $host_os in
14935   aix[4-9]*)
14936     # If we're using GNU nm, then we don't want the "-C" option.
14937     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14938     # Without the "-l" option, or with the "-B" option, AIX nm treats
14939     # weak defined symbols like other global defined symbols, whereas
14940     # GNU nm marks them as "W".
14941     # While the 'weak' keyword is ignored in the Export File, we need
14942     # it in the Import File for the 'aix-soname' feature, so we have
14943     # to replace the "-B" option with "-P" for AIX nm.
14944     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14945       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14946     else
14947       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14948     fi
14949     ;;
14950   pw32*)
14951     export_symbols_cmds_CXX=$ltdll_cmds
14952     ;;
14953   cygwin* | mingw* | cegcc*)
14954     case $cc_basename in
14955     cl*)
14956       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14957       ;;
14958     *)
14959       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'
14960       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14961       ;;
14962     esac
14963     ;;
14964   linux* | k*bsd*-gnu | gnu*)
14965     link_all_deplibs_CXX=no
14966     ;;
14967   *)
14968     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14969     ;;
14970   esac
14971
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14973 $as_echo "$ld_shlibs_CXX" >&6; }
14974 test no = "$ld_shlibs_CXX" && can_build_shared=no
14975
14976 with_gnu_ld_CXX=$with_gnu_ld
14977
14978
14979
14980
14981
14982
14983 #
14984 # Do we need to explicitly link libc?
14985 #
14986 case "x$archive_cmds_need_lc_CXX" in
14987 x|xyes)
14988   # Assume -lc should be added
14989   archive_cmds_need_lc_CXX=yes
14990
14991   if test yes,yes = "$GCC,$enable_shared"; then
14992     case $archive_cmds_CXX in
14993     *'~'*)
14994       # FIXME: we may have to deal with multi-command sequences.
14995       ;;
14996     '$CC '*)
14997       # Test whether the compiler implicitly links with -lc since on some
14998       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999       # to ld, don't add -lc before -lgcc.
15000       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15001 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15002 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15003   $as_echo_n "(cached) " >&6
15004 else
15005   $RM conftest*
15006         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15007
15008         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15009   (eval $ac_compile) 2>&5
15010   ac_status=$?
15011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15012   test $ac_status = 0; } 2>conftest.err; then
15013           soname=conftest
15014           lib=conftest
15015           libobjs=conftest.$ac_objext
15016           deplibs=
15017           wl=$lt_prog_compiler_wl_CXX
15018           pic_flag=$lt_prog_compiler_pic_CXX
15019           compiler_flags=-v
15020           linker_flags=-v
15021           verstring=
15022           output_objdir=.
15023           libname=conftest
15024           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15025           allow_undefined_flag_CXX=
15026           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15027   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15028   ac_status=$?
15029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030   test $ac_status = 0; }
15031           then
15032             lt_cv_archive_cmds_need_lc_CXX=no
15033           else
15034             lt_cv_archive_cmds_need_lc_CXX=yes
15035           fi
15036           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15037         else
15038           cat conftest.err 1>&5
15039         fi
15040         $RM conftest*
15041
15042 fi
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15044 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15045       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15046       ;;
15047     esac
15048   fi
15049   ;;
15050 esac
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15114 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15115
15116 library_names_spec=
15117 libname_spec='lib$name'
15118 soname_spec=
15119 shrext_cmds=.so
15120 postinstall_cmds=
15121 postuninstall_cmds=
15122 finish_cmds=
15123 finish_eval=
15124 shlibpath_var=
15125 shlibpath_overrides_runpath=unknown
15126 version_type=none
15127 dynamic_linker="$host_os ld.so"
15128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15129 need_lib_prefix=unknown
15130 hardcode_into_libs=no
15131
15132 # when you set need_version to no, make sure it does not cause -set_version
15133 # flags to be left without arguments
15134 need_version=unknown
15135
15136
15137
15138 case $host_os in
15139 aix3*)
15140   version_type=linux # correct to gnu/linux during the next big refactor
15141   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15142   shlibpath_var=LIBPATH
15143
15144   # AIX 3 has no versioning support, so we append a major version to the name.
15145   soname_spec='$libname$release$shared_ext$major'
15146   ;;
15147
15148 aix[4-9]*)
15149   version_type=linux # correct to gnu/linux during the next big refactor
15150   need_lib_prefix=no
15151   need_version=no
15152   hardcode_into_libs=yes
15153   if test ia64 = "$host_cpu"; then
15154     # AIX 5 supports IA64
15155     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15156     shlibpath_var=LD_LIBRARY_PATH
15157   else
15158     # With GCC up to 2.95.x, collect2 would create an import file
15159     # for dependence libraries.  The import file would start with
15160     # the line '#! .'.  This would cause the generated library to
15161     # depend on '.', always an invalid library.  This was fixed in
15162     # development snapshots of GCC prior to 3.0.
15163     case $host_os in
15164       aix4 | aix4.[01] | aix4.[01].*)
15165       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15166            echo ' yes '
15167            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15168         :
15169       else
15170         can_build_shared=no
15171       fi
15172       ;;
15173     esac
15174     # Using Import Files as archive members, it is possible to support
15175     # filename-based versioning of shared library archives on AIX. While
15176     # this would work for both with and without runtime linking, it will
15177     # prevent static linking of such archives. So we do filename-based
15178     # shared library versioning with .so extension only, which is used
15179     # when both runtime linking and shared linking is enabled.
15180     # Unfortunately, runtime linking may impact performance, so we do
15181     # not want this to be the default eventually. Also, we use the
15182     # versioned .so libs for executables only if there is the -brtl
15183     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15184     # To allow for filename-based versioning support, we need to create
15185     # libNAME.so.V as an archive file, containing:
15186     # *) an Import File, referring to the versioned filename of the
15187     #    archive as well as the shared archive member, telling the
15188     #    bitwidth (32 or 64) of that shared object, and providing the
15189     #    list of exported symbols of that shared object, eventually
15190     #    decorated with the 'weak' keyword
15191     # *) the shared object with the F_LOADONLY flag set, to really avoid
15192     #    it being seen by the linker.
15193     # At run time we better use the real file rather than another symlink,
15194     # but for link time we create the symlink libNAME.so -> libNAME.so.V
15195
15196     case $with_aix_soname,$aix_use_runtimelinking in
15197     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15198     # soname into executable. Probably we can add versioning support to
15199     # collect2, so additional links can be useful in future.
15200     aix,yes) # traditional libtool
15201       dynamic_linker='AIX unversionable lib.so'
15202       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15203       # instead of lib<name>.a to let people know that these are not
15204       # typical AIX shared libraries.
15205       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15206       ;;
15207     aix,no) # traditional AIX only
15208       dynamic_linker='AIX lib.a(lib.so.V)'
15209       # We preserve .a as extension for shared libraries through AIX4.2
15210       # and later when we are not doing run time linking.
15211       library_names_spec='$libname$release.a $libname.a'
15212       soname_spec='$libname$release$shared_ext$major'
15213       ;;
15214     svr4,*) # full svr4 only
15215       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15216       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15217       # We do not specify a path in Import Files, so LIBPATH fires.
15218       shlibpath_overrides_runpath=yes
15219       ;;
15220     *,yes) # both, prefer svr4
15221       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15222       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15223       # unpreferred sharedlib libNAME.a needs extra handling
15224       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15225       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15226       # We do not specify a path in Import Files, so LIBPATH fires.
15227       shlibpath_overrides_runpath=yes
15228       ;;
15229     *,no) # both, prefer aix
15230       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15231       library_names_spec='$libname$release.a $libname.a'
15232       soname_spec='$libname$release$shared_ext$major'
15233       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15234       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15235       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15236       ;;
15237     esac
15238     shlibpath_var=LIBPATH
15239   fi
15240   ;;
15241
15242 amigaos*)
15243   case $host_cpu in
15244   powerpc)
15245     # Since July 2007 AmigaOS4 officially supports .so libraries.
15246     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15247     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15248     ;;
15249   m68k)
15250     library_names_spec='$libname.ixlibrary $libname.a'
15251     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15252     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15253     ;;
15254   esac
15255   ;;
15256
15257 beos*)
15258   library_names_spec='$libname$shared_ext'
15259   dynamic_linker="$host_os ld.so"
15260   shlibpath_var=LIBRARY_PATH
15261   ;;
15262
15263 bsdi[45]*)
15264   version_type=linux # correct to gnu/linux during the next big refactor
15265   need_version=no
15266   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15267   soname_spec='$libname$release$shared_ext$major'
15268   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15269   shlibpath_var=LD_LIBRARY_PATH
15270   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15271   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15272   # the default ld.so.conf also contains /usr/contrib/lib and
15273   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15274   # libtool to hard-code these into programs
15275   ;;
15276
15277 cygwin* | mingw* | pw32* | cegcc*)
15278   version_type=windows
15279   shrext_cmds=.dll
15280   need_version=no
15281   need_lib_prefix=no
15282
15283   case $GCC,$cc_basename in
15284   yes,*)
15285     # gcc
15286     library_names_spec='$libname.dll.a'
15287     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15288     postinstall_cmds='base_file=`basename \$file`~
15289       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15290       dldir=$destdir/`dirname \$dlpath`~
15291       test -d \$dldir || mkdir -p \$dldir~
15292       $install_prog $dir/$dlname \$dldir/$dlname~
15293       chmod a+x \$dldir/$dlname~
15294       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15295         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15296       fi'
15297     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15298       dlpath=$dir/\$dldll~
15299        $RM \$dlpath'
15300     shlibpath_overrides_runpath=yes
15301
15302     case $host_os in
15303     cygwin*)
15304       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15305       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15306
15307       ;;
15308     mingw* | cegcc*)
15309       # MinGW DLLs use traditional 'lib' prefix
15310       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15311       ;;
15312     pw32*)
15313       # pw32 DLLs use 'pw' prefix rather than 'lib'
15314       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15315       ;;
15316     esac
15317     dynamic_linker='Win32 ld.exe'
15318     ;;
15319
15320   *,cl*)
15321     # Native MSVC
15322     libname_spec='$name'
15323     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15324     library_names_spec='$libname.dll.lib'
15325
15326     case $build_os in
15327     mingw*)
15328       sys_lib_search_path_spec=
15329       lt_save_ifs=$IFS
15330       IFS=';'
15331       for lt_path in $LIB
15332       do
15333         IFS=$lt_save_ifs
15334         # Let DOS variable expansion print the short 8.3 style file name.
15335         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15336         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15337       done
15338       IFS=$lt_save_ifs
15339       # Convert to MSYS style.
15340       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15341       ;;
15342     cygwin*)
15343       # Convert to unix form, then to dos form, then back to unix form
15344       # but this time dos style (no spaces!) so that the unix form looks
15345       # like /cygdrive/c/PROGRA~1:/cygdr...
15346       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15347       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15348       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15349       ;;
15350     *)
15351       sys_lib_search_path_spec=$LIB
15352       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15353         # It is most probably a Windows format PATH.
15354         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15355       else
15356         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15357       fi
15358       # FIXME: find the short name or the path components, as spaces are
15359       # common. (e.g. "Program Files" -> "PROGRA~1")
15360       ;;
15361     esac
15362
15363     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15364     postinstall_cmds='base_file=`basename \$file`~
15365       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15366       dldir=$destdir/`dirname \$dlpath`~
15367       test -d \$dldir || mkdir -p \$dldir~
15368       $install_prog $dir/$dlname \$dldir/$dlname'
15369     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15370       dlpath=$dir/\$dldll~
15371        $RM \$dlpath'
15372     shlibpath_overrides_runpath=yes
15373     dynamic_linker='Win32 link.exe'
15374     ;;
15375
15376   *)
15377     # Assume MSVC wrapper
15378     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15379     dynamic_linker='Win32 ld.exe'
15380     ;;
15381   esac
15382   # FIXME: first we should search . and the directory the executable is in
15383   shlibpath_var=PATH
15384   ;;
15385
15386 darwin* | rhapsody*)
15387   dynamic_linker="$host_os dyld"
15388   version_type=darwin
15389   need_lib_prefix=no
15390   need_version=no
15391   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15392   soname_spec='$libname$release$major$shared_ext'
15393   shlibpath_overrides_runpath=yes
15394   shlibpath_var=DYLD_LIBRARY_PATH
15395   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15396
15397   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15398   ;;
15399
15400 dgux*)
15401   version_type=linux # correct to gnu/linux during the next big refactor
15402   need_lib_prefix=no
15403   need_version=no
15404   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15405   soname_spec='$libname$release$shared_ext$major'
15406   shlibpath_var=LD_LIBRARY_PATH
15407   ;;
15408
15409 freebsd* | dragonfly*)
15410   # DragonFly does not have aout.  When/if they implement a new
15411   # versioning mechanism, adjust this.
15412   if test -x /usr/bin/objformat; then
15413     objformat=`/usr/bin/objformat`
15414   else
15415     case $host_os in
15416     freebsd[23].*) objformat=aout ;;
15417     *) objformat=elf ;;
15418     esac
15419   fi
15420   version_type=freebsd-$objformat
15421   case $version_type in
15422     freebsd-elf*)
15423       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15424       soname_spec='$libname$release$shared_ext$major'
15425       need_version=no
15426       need_lib_prefix=no
15427       ;;
15428     freebsd-*)
15429       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15430       need_version=yes
15431       ;;
15432   esac
15433   shlibpath_var=LD_LIBRARY_PATH
15434   case $host_os in
15435   freebsd2.*)
15436     shlibpath_overrides_runpath=yes
15437     ;;
15438   freebsd3.[01]* | freebsdelf3.[01]*)
15439     shlibpath_overrides_runpath=yes
15440     hardcode_into_libs=yes
15441     ;;
15442   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15443   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15444     shlibpath_overrides_runpath=no
15445     hardcode_into_libs=yes
15446     ;;
15447   *) # from 4.6 on, and DragonFly
15448     shlibpath_overrides_runpath=yes
15449     hardcode_into_libs=yes
15450     ;;
15451   esac
15452   ;;
15453
15454 haiku*)
15455   version_type=linux # correct to gnu/linux during the next big refactor
15456   need_lib_prefix=no
15457   need_version=no
15458   dynamic_linker="$host_os runtime_loader"
15459   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15460   soname_spec='$libname$release$shared_ext$major'
15461   shlibpath_var=LIBRARY_PATH
15462   shlibpath_overrides_runpath=no
15463   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15464   hardcode_into_libs=yes
15465   ;;
15466
15467 hpux9* | hpux10* | hpux11*)
15468   # Give a soname corresponding to the major version so that dld.sl refuses to
15469   # link against other versions.
15470   version_type=sunos
15471   need_lib_prefix=no
15472   need_version=no
15473   case $host_cpu in
15474   ia64*)
15475     shrext_cmds='.so'
15476     hardcode_into_libs=yes
15477     dynamic_linker="$host_os dld.so"
15478     shlibpath_var=LD_LIBRARY_PATH
15479     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15480     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15481     soname_spec='$libname$release$shared_ext$major'
15482     if test 32 = "$HPUX_IA64_MODE"; then
15483       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15484       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15485     else
15486       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15487       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15488     fi
15489     ;;
15490   hppa*64*)
15491     shrext_cmds='.sl'
15492     hardcode_into_libs=yes
15493     dynamic_linker="$host_os dld.sl"
15494     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15495     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15496     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15497     soname_spec='$libname$release$shared_ext$major'
15498     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15499     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15500     ;;
15501   *)
15502     shrext_cmds='.sl'
15503     dynamic_linker="$host_os dld.sl"
15504     shlibpath_var=SHLIB_PATH
15505     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15506     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15507     soname_spec='$libname$release$shared_ext$major'
15508     ;;
15509   esac
15510   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15511   postinstall_cmds='chmod 555 $lib'
15512   # or fails outright, so override atomically:
15513   install_override_mode=555
15514   ;;
15515
15516 interix[3-9]*)
15517   version_type=linux # correct to gnu/linux during the next big refactor
15518   need_lib_prefix=no
15519   need_version=no
15520   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15521   soname_spec='$libname$release$shared_ext$major'
15522   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15523   shlibpath_var=LD_LIBRARY_PATH
15524   shlibpath_overrides_runpath=no
15525   hardcode_into_libs=yes
15526   ;;
15527
15528 irix5* | irix6* | nonstopux*)
15529   case $host_os in
15530     nonstopux*) version_type=nonstopux ;;
15531     *)
15532         if test yes = "$lt_cv_prog_gnu_ld"; then
15533                 version_type=linux # correct to gnu/linux during the next big refactor
15534         else
15535                 version_type=irix
15536         fi ;;
15537   esac
15538   need_lib_prefix=no
15539   need_version=no
15540   soname_spec='$libname$release$shared_ext$major'
15541   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15542   case $host_os in
15543   irix5* | nonstopux*)
15544     libsuff= shlibsuff=
15545     ;;
15546   *)
15547     case $LD in # libtool.m4 will add one of these switches to LD
15548     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15549       libsuff= shlibsuff= libmagic=32-bit;;
15550     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15551       libsuff=32 shlibsuff=N32 libmagic=N32;;
15552     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15553       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15554     *) libsuff= shlibsuff= libmagic=never-match;;
15555     esac
15556     ;;
15557   esac
15558   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15559   shlibpath_overrides_runpath=no
15560   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15561   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15562   hardcode_into_libs=yes
15563   ;;
15564
15565 # No shared lib support for Linux oldld, aout, or coff.
15566 linux*oldld* | linux*aout* | linux*coff*)
15567   dynamic_linker=no
15568   ;;
15569
15570 linux*android*)
15571   version_type=none # Android doesn't support versioned libraries.
15572   need_lib_prefix=no
15573   need_version=no
15574   library_names_spec='$libname$release$shared_ext'
15575   soname_spec='$libname$release$shared_ext'
15576   finish_cmds=
15577   shlibpath_var=LD_LIBRARY_PATH
15578   shlibpath_overrides_runpath=yes
15579
15580   # This implies no fast_install, which is unacceptable.
15581   # Some rework will be needed to allow for fast_install
15582   # before this can be enabled.
15583   hardcode_into_libs=yes
15584
15585   dynamic_linker='Android linker'
15586   # Don't embed -rpath directories since the linker doesn't support them.
15587   hardcode_libdir_flag_spec_CXX='-L$libdir'
15588   ;;
15589
15590 # This must be glibc/ELF.
15591 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15592   version_type=linux # correct to gnu/linux during the next big refactor
15593   need_lib_prefix=no
15594   need_version=no
15595   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15596   soname_spec='$libname$release$shared_ext$major'
15597   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15598   shlibpath_var=LD_LIBRARY_PATH
15599   shlibpath_overrides_runpath=no
15600
15601   # Some binutils ld are patched to set DT_RUNPATH
15602   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15603   $as_echo_n "(cached) " >&6
15604 else
15605   lt_cv_shlibpath_overrides_runpath=no
15606     save_LDFLAGS=$LDFLAGS
15607     save_libdir=$libdir
15608     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15609          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15610     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h.  */
15612
15613 int
15614 main ()
15615 {
15616
15617   ;
15618   return 0;
15619 }
15620 _ACEOF
15621 if ac_fn_cxx_try_link "$LINENO"; then :
15622   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15623   lt_cv_shlibpath_overrides_runpath=yes
15624 fi
15625 fi
15626 rm -f core conftest.err conftest.$ac_objext \
15627     conftest$ac_exeext conftest.$ac_ext
15628     LDFLAGS=$save_LDFLAGS
15629     libdir=$save_libdir
15630
15631 fi
15632
15633   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15634
15635   # This implies no fast_install, which is unacceptable.
15636   # Some rework will be needed to allow for fast_install
15637   # before this can be enabled.
15638   hardcode_into_libs=yes
15639
15640   # Ideally, we could use ldconfig to report *all* directores which are
15641   # searched for libraries, however this is still not possible.  Aside from not
15642   # being certain /sbin/ldconfig is available, command
15643   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15644   # even though it is searched at run-time.  Try to do the best guess by
15645   # appending ld.so.conf contents (and includes) to the search path.
15646   if test -f /etc/ld.so.conf; then
15647     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' ' '`
15648     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15649   fi
15650
15651   # We used to test for /lib/ld.so.1 and disable shared libraries on
15652   # powerpc, because MkLinux only supported shared libraries with the
15653   # GNU dynamic linker.  Since this was broken with cross compilers,
15654   # most powerpc-linux boxes support dynamic linking these days and
15655   # people can always --disable-shared, the test was removed, and we
15656   # assume the GNU/Linux dynamic linker is in use.
15657   dynamic_linker='GNU/Linux ld.so'
15658   ;;
15659
15660 netbsdelf*-gnu)
15661   version_type=linux
15662   need_lib_prefix=no
15663   need_version=no
15664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15665   soname_spec='${libname}${release}${shared_ext}$major'
15666   shlibpath_var=LD_LIBRARY_PATH
15667   shlibpath_overrides_runpath=no
15668   hardcode_into_libs=yes
15669   dynamic_linker='NetBSD ld.elf_so'
15670   ;;
15671
15672 netbsd*)
15673   version_type=sunos
15674   need_lib_prefix=no
15675   need_version=no
15676   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15677     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15678     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15679     dynamic_linker='NetBSD (a.out) ld.so'
15680   else
15681     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15682     soname_spec='$libname$release$shared_ext$major'
15683     dynamic_linker='NetBSD ld.elf_so'
15684   fi
15685   shlibpath_var=LD_LIBRARY_PATH
15686   shlibpath_overrides_runpath=yes
15687   hardcode_into_libs=yes
15688   ;;
15689
15690 newsos6)
15691   version_type=linux # correct to gnu/linux during the next big refactor
15692   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15693   shlibpath_var=LD_LIBRARY_PATH
15694   shlibpath_overrides_runpath=yes
15695   ;;
15696
15697 *nto* | *qnx*)
15698   version_type=qnx
15699   need_lib_prefix=no
15700   need_version=no
15701   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15702   soname_spec='$libname$release$shared_ext$major'
15703   shlibpath_var=LD_LIBRARY_PATH
15704   shlibpath_overrides_runpath=no
15705   hardcode_into_libs=yes
15706   dynamic_linker='ldqnx.so'
15707   ;;
15708
15709 openbsd* | bitrig*)
15710   version_type=sunos
15711   sys_lib_dlsearch_path_spec=/usr/lib
15712   need_lib_prefix=no
15713   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15714     need_version=no
15715   else
15716     need_version=yes
15717   fi
15718   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15719   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15720   shlibpath_var=LD_LIBRARY_PATH
15721   shlibpath_overrides_runpath=yes
15722   ;;
15723
15724 os2*)
15725   libname_spec='$name'
15726   version_type=windows
15727   shrext_cmds=.dll
15728   need_version=no
15729   need_lib_prefix=no
15730   # OS/2 can only load a DLL with a base name of 8 characters or less.
15731   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15732     v=$($ECHO $release$versuffix | tr -d .-);
15733     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15734     $ECHO $n$v`$shared_ext'
15735   library_names_spec='${libname}_dll.$libext'
15736   dynamic_linker='OS/2 ld.exe'
15737   shlibpath_var=BEGINLIBPATH
15738   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15739   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15740   postinstall_cmds='base_file=`basename \$file`~
15741     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15742     dldir=$destdir/`dirname \$dlpath`~
15743     test -d \$dldir || mkdir -p \$dldir~
15744     $install_prog $dir/$dlname \$dldir/$dlname~
15745     chmod a+x \$dldir/$dlname~
15746     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15747       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15748     fi'
15749   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15750     dlpath=$dir/\$dldll~
15751     $RM \$dlpath'
15752   ;;
15753
15754 osf3* | osf4* | osf5*)
15755   version_type=osf
15756   need_lib_prefix=no
15757   need_version=no
15758   soname_spec='$libname$release$shared_ext$major'
15759   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15760   shlibpath_var=LD_LIBRARY_PATH
15761   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15762   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15763   ;;
15764
15765 rdos*)
15766   dynamic_linker=no
15767   ;;
15768
15769 solaris*)
15770   version_type=linux # correct to gnu/linux during the next big refactor
15771   need_lib_prefix=no
15772   need_version=no
15773   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15774   soname_spec='$libname$release$shared_ext$major'
15775   shlibpath_var=LD_LIBRARY_PATH
15776   shlibpath_overrides_runpath=yes
15777   hardcode_into_libs=yes
15778   # ldd complains unless libraries are executable
15779   postinstall_cmds='chmod +x $lib'
15780   ;;
15781
15782 sunos4*)
15783   version_type=sunos
15784   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15785   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15786   shlibpath_var=LD_LIBRARY_PATH
15787   shlibpath_overrides_runpath=yes
15788   if test yes = "$with_gnu_ld"; then
15789     need_lib_prefix=no
15790   fi
15791   need_version=yes
15792   ;;
15793
15794 sysv4 | sysv4.3*)
15795   version_type=linux # correct to gnu/linux during the next big refactor
15796   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15797   soname_spec='$libname$release$shared_ext$major'
15798   shlibpath_var=LD_LIBRARY_PATH
15799   case $host_vendor in
15800     sni)
15801       shlibpath_overrides_runpath=no
15802       need_lib_prefix=no
15803       runpath_var=LD_RUN_PATH
15804       ;;
15805     siemens)
15806       need_lib_prefix=no
15807       ;;
15808     motorola)
15809       need_lib_prefix=no
15810       need_version=no
15811       shlibpath_overrides_runpath=no
15812       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15813       ;;
15814   esac
15815   ;;
15816
15817 sysv4*MP*)
15818   if test -d /usr/nec; then
15819     version_type=linux # correct to gnu/linux during the next big refactor
15820     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15821     soname_spec='$libname$shared_ext.$major'
15822     shlibpath_var=LD_LIBRARY_PATH
15823   fi
15824   ;;
15825
15826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15827   version_type=sco
15828   need_lib_prefix=no
15829   need_version=no
15830   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15831   soname_spec='$libname$release$shared_ext$major'
15832   shlibpath_var=LD_LIBRARY_PATH
15833   shlibpath_overrides_runpath=yes
15834   hardcode_into_libs=yes
15835   if test yes = "$with_gnu_ld"; then
15836     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15837   else
15838     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15839     case $host_os in
15840       sco3.2v5*)
15841         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15842         ;;
15843     esac
15844   fi
15845   sys_lib_dlsearch_path_spec='/usr/lib'
15846   ;;
15847
15848 tpf*)
15849   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15850   version_type=linux # correct to gnu/linux during the next big refactor
15851   need_lib_prefix=no
15852   need_version=no
15853   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15854   shlibpath_var=LD_LIBRARY_PATH
15855   shlibpath_overrides_runpath=no
15856   hardcode_into_libs=yes
15857   ;;
15858
15859 uts4*)
15860   version_type=linux # correct to gnu/linux during the next big refactor
15861   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15862   soname_spec='$libname$release$shared_ext$major'
15863   shlibpath_var=LD_LIBRARY_PATH
15864   ;;
15865
15866 *)
15867   dynamic_linker=no
15868   ;;
15869 esac
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15871 $as_echo "$dynamic_linker" >&6; }
15872 test no = "$dynamic_linker" && can_build_shared=no
15873
15874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15875 if test yes = "$GCC"; then
15876   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15877 fi
15878
15879 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15880   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15881 fi
15882
15883 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15884   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15885 fi
15886
15887 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15888 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15889
15890 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15891 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15892
15893 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15894 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15936 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15937 hardcode_action_CXX=
15938 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15939    test -n "$runpath_var_CXX" ||
15940    test yes = "$hardcode_automatic_CXX"; then
15941
15942   # We can hardcode non-existent directories.
15943   if test no != "$hardcode_direct_CXX" &&
15944      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15945      # have to relink, otherwise we might link with an installed library
15946      # when we should be linking with a yet-to-be-installed one
15947      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15948      test no != "$hardcode_minus_L_CXX"; then
15949     # Linking always hardcodes the temporary library directory.
15950     hardcode_action_CXX=relink
15951   else
15952     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15953     hardcode_action_CXX=immediate
15954   fi
15955 else
15956   # We cannot hardcode anything, or else we can only hardcode existing
15957   # directories.
15958   hardcode_action_CXX=unsupported
15959 fi
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15961 $as_echo "$hardcode_action_CXX" >&6; }
15962
15963 if test relink = "$hardcode_action_CXX" ||
15964    test yes = "$inherit_rpath_CXX"; then
15965   # Fast installation is not supported
15966   enable_fast_install=no
15967 elif test yes = "$shlibpath_overrides_runpath" ||
15968      test no = "$enable_shared"; then
15969   # Fast installation is not necessary
15970   enable_fast_install=needless
15971 fi
15972
15973
15974
15975
15976
15977
15978
15979   fi # test -n "$compiler"
15980
15981   CC=$lt_save_CC
15982   CFLAGS=$lt_save_CFLAGS
15983   LDCXX=$LD
15984   LD=$lt_save_LD
15985   GCC=$lt_save_GCC
15986   with_gnu_ld=$lt_save_with_gnu_ld
15987   lt_cv_path_LDCXX=$lt_cv_path_LD
15988   lt_cv_path_LD=$lt_save_path_LD
15989   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15990   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15991 fi # test yes != "$_lt_caught_CXX_error"
15992
15993 ac_ext=c
15994 ac_cpp='$CPP $CPPFLAGS'
15995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013         ac_config_commands="$ac_config_commands libtool"
16014
16015
16016
16017
16018 # Only expand once:
16019
16020
16021
16022 ac_config_headers="$ac_config_headers config.h src/include/fst/config.h"
16023
16024
16025 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"
16026
16027
16028 ac_ext=cpp
16029 ac_cpp='$CXXCPP $CPPFLAGS'
16030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16033
16034
16035 # Check whether --enable-compact-fsts was given.
16036 if test "${enable_compact_fsts+set}" = set; then :
16037   enableval=$enable_compact_fsts;
16038 else
16039   enable_compact_fsts=no
16040 fi
16041
16042  if test "x$enable_compact_fsts" != xno; then
16043   HAVE_COMPACT_TRUE=
16044   HAVE_COMPACT_FALSE='#'
16045 else
16046   HAVE_COMPACT_TRUE='#'
16047   HAVE_COMPACT_FALSE=
16048 fi
16049
16050
16051 # Check whether --enable-compress was given.
16052 if test "${enable_compress+set}" = set; then :
16053   enableval=$enable_compress;
16054 else
16055   enable_compress=no
16056 fi
16057
16058  if test "x$enable_compress" != xno; then
16059   HAVE_COMPRESS_TRUE=
16060   HAVE_COMPRESS_FALSE='#'
16061 else
16062   HAVE_COMPRESS_TRUE='#'
16063   HAVE_COMPRESS_FALSE=
16064 fi
16065
16066
16067 # Check whether --enable-const-fsts was given.
16068 if test "${enable_const_fsts+set}" = set; then :
16069   enableval=$enable_const_fsts;
16070 else
16071   enable_const_fsts=no
16072 fi
16073
16074  if test "x$enable_const_fsts" != xno; then
16075   HAVE_CONST_TRUE=
16076   HAVE_CONST_FALSE='#'
16077 else
16078   HAVE_CONST_TRUE='#'
16079   HAVE_CONST_FALSE=
16080 fi
16081
16082
16083 # Check whether --enable-far was given.
16084 if test "${enable_far+set}" = set; then :
16085   enableval=$enable_far;
16086 else
16087   enable_far=no
16088 fi
16089
16090  if test "x$enable_far" != xno; then
16091   HAVE_FAR_TRUE=
16092   HAVE_FAR_FALSE='#'
16093 else
16094   HAVE_FAR_TRUE='#'
16095   HAVE_FAR_FALSE=
16096 fi
16097
16098
16099 # Check whether --enable-linear-fsts was given.
16100 if test "${enable_linear_fsts+set}" = set; then :
16101   enableval=$enable_linear_fsts;
16102 else
16103   enable_linear_fsts=no
16104 fi
16105
16106  if test "x$enable_linear_fsts" != xno; then
16107   HAVE_LINEAR_TRUE=
16108   HAVE_LINEAR_FALSE='#'
16109 else
16110   HAVE_LINEAR_TRUE='#'
16111   HAVE_LINEAR_FALSE=
16112 fi
16113
16114
16115 # Check whether --enable-lookahead-fsts was given.
16116 if test "${enable_lookahead_fsts+set}" = set; then :
16117   enableval=$enable_lookahead_fsts;
16118 else
16119   enable_lookahead_fsts=no
16120 fi
16121
16122  if test "x$enable_lookahead_fsts" != xno; then
16123   HAVE_LOOKAHEAD_TRUE=
16124   HAVE_LOOKAHEAD_FALSE='#'
16125 else
16126   HAVE_LOOKAHEAD_TRUE='#'
16127   HAVE_LOOKAHEAD_FALSE=
16128 fi
16129
16130
16131 # Check whether --enable-mpdt was given.
16132 if test "${enable_mpdt+set}" = set; then :
16133   enableval=$enable_mpdt;
16134 else
16135   enable_mpdt=no
16136 fi
16137
16138  if test "x$enable_mpdt" != xno; then
16139   HAVE_MPDT_TRUE=
16140   HAVE_MPDT_FALSE='#'
16141 else
16142   HAVE_MPDT_TRUE='#'
16143   HAVE_MPDT_FALSE=
16144 fi
16145
16146
16147 # Check whether --enable-ngram-fsts was given.
16148 if test "${enable_ngram_fsts+set}" = set; then :
16149   enableval=$enable_ngram_fsts;
16150 else
16151   enable_ngram_fsts=no
16152 fi
16153
16154  if test "x$enable_ngram_fsts" != xno; then
16155   HAVE_NGRAM_TRUE=
16156   HAVE_NGRAM_FALSE='#'
16157 else
16158   HAVE_NGRAM_TRUE='#'
16159   HAVE_NGRAM_FALSE=
16160 fi
16161
16162
16163 # Check whether --enable-pdt was given.
16164 if test "${enable_pdt+set}" = set; then :
16165   enableval=$enable_pdt;
16166 else
16167   enable_pdt=no
16168 fi
16169
16170  if test "x$enable_pdt" != xno; then
16171   HAVE_PDT_TRUE=
16172   HAVE_PDT_FALSE='#'
16173 else
16174   HAVE_PDT_TRUE='#'
16175   HAVE_PDT_FALSE=
16176 fi
16177
16178
16179 # Check whether --enable-python was given.
16180 if test "${enable_python+set}" = set; then :
16181   enableval=$enable_python;
16182 else
16183   enable_python=no
16184 fi
16185
16186  if test "x$enable_python" != xno; then
16187   HAVE_PYTHON_TRUE=
16188   HAVE_PYTHON_FALSE='#'
16189 else
16190   HAVE_PYTHON_TRUE='#'
16191   HAVE_PYTHON_FALSE=
16192 fi
16193
16194 if test "x$enable_python" != xno; then
16195
16196
16197
16198
16199
16200
16201         if test -n "$PYTHON"; then
16202       # If the user set $PYTHON, use it and don't search something else.
16203       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
16204 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
16205       prog="import sys
16206 # split strings by '.' and convert to numeric.  Append some zeros
16207 # because we need at least 4 digits for the hex conversion.
16208 # map returns an iterator in Python 3.0 and a list in 2.x
16209 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16210 minverhex = 0
16211 # xrange is not present in Python 3.0 and range returns an iterator
16212 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16213 sys.exit(sys.hexversion < minverhex)"
16214   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
16215    ($PYTHON -c "$prog") >&5 2>&5
16216    ac_status=$?
16217    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218    (exit $ac_status); }; then :
16219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16220 $as_echo "yes" >&6; }
16221 else
16222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16223 $as_echo "no" >&6; }
16224                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
16225 fi
16226       am_display_PYTHON=$PYTHON
16227     else
16228       # Otherwise, try each interpreter until we find one that satisfies
16229       # VERSION.
16230       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
16231 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
16232 if ${am_cv_pathless_PYTHON+:} false; then :
16233   $as_echo_n "(cached) " >&6
16234 else
16235
16236         for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 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
16237           test "$am_cv_pathless_PYTHON" = none && break
16238           prog="import sys
16239 # split strings by '.' and convert to numeric.  Append some zeros
16240 # because we need at least 4 digits for the hex conversion.
16241 # map returns an iterator in Python 3.0 and a list in 2.x
16242 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16243 minverhex = 0
16244 # xrange is not present in Python 3.0 and range returns an iterator
16245 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16246 sys.exit(sys.hexversion < minverhex)"
16247   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
16248    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
16249    ac_status=$?
16250    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251    (exit $ac_status); }; then :
16252   break
16253 fi
16254         done
16255 fi
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
16257 $as_echo "$am_cv_pathless_PYTHON" >&6; }
16258       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
16259       if test "$am_cv_pathless_PYTHON" = none; then
16260         PYTHON=:
16261       else
16262         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16263 set dummy $am_cv_pathless_PYTHON; ac_word=$2
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16265 $as_echo_n "checking for $ac_word... " >&6; }
16266 if ${ac_cv_path_PYTHON+:} false; then :
16267   $as_echo_n "(cached) " >&6
16268 else
16269   case $PYTHON in
16270   [\\/]* | ?:[\\/]*)
16271   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16272   ;;
16273   *)
16274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16275 for as_dir in $PATH
16276 do
16277   IFS=$as_save_IFS
16278   test -z "$as_dir" && as_dir=.
16279     for ac_exec_ext in '' $ac_executable_extensions; do
16280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16281     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16283     break 2
16284   fi
16285 done
16286   done
16287 IFS=$as_save_IFS
16288
16289   ;;
16290 esac
16291 fi
16292 PYTHON=$ac_cv_path_PYTHON
16293 if test -n "$PYTHON"; then
16294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16295 $as_echo "$PYTHON" >&6; }
16296 else
16297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16298 $as_echo "no" >&6; }
16299 fi
16300
16301
16302       fi
16303       am_display_PYTHON=$am_cv_pathless_PYTHON
16304     fi
16305
16306
16307   if test "$PYTHON" = :; then
16308       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
16309   else
16310
16311
16312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16313 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16314 if ${am_cv_python_version+:} false; then :
16315   $as_echo_n "(cached) " >&6
16316 else
16317   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16318 fi
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16320 $as_echo "$am_cv_python_version" >&6; }
16321   PYTHON_VERSION=$am_cv_python_version
16322
16323
16324
16325   PYTHON_PREFIX='${prefix}'
16326
16327   PYTHON_EXEC_PREFIX='${exec_prefix}'
16328
16329
16330
16331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16332 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16333 if ${am_cv_python_platform+:} false; then :
16334   $as_echo_n "(cached) " >&6
16335 else
16336   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16337 fi
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16339 $as_echo "$am_cv_python_platform" >&6; }
16340   PYTHON_PLATFORM=$am_cv_python_platform
16341
16342
16343   # Just factor out some code duplication.
16344   am_python_setup_sysconfig="\
16345 import sys
16346 # Prefer sysconfig over distutils.sysconfig, for better compatibility
16347 # with python 3.x.  See automake bug#10227.
16348 try:
16349     import sysconfig
16350 except ImportError:
16351     can_use_sysconfig = 0
16352 else:
16353     can_use_sysconfig = 1
16354 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
16355 # <https://github.com/pypa/virtualenv/issues/118>
16356 try:
16357     from platform import python_implementation
16358     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
16359         can_use_sysconfig = 0
16360 except ImportError:
16361     pass"
16362
16363
16364             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16365 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16366 if ${am_cv_python_pythondir+:} false; then :
16367   $as_echo_n "(cached) " >&6
16368 else
16369   if test "x$prefix" = xNONE
16370      then
16371        am_py_prefix=$ac_default_prefix
16372      else
16373        am_py_prefix=$prefix
16374      fi
16375      am_cv_python_pythondir=`$PYTHON -c "
16376 $am_python_setup_sysconfig
16377 if can_use_sysconfig:
16378     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
16379 else:
16380     from distutils import sysconfig
16381     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
16382 sys.stdout.write(sitedir)"`
16383      case $am_cv_python_pythondir in
16384      $am_py_prefix*)
16385        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16386        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16387        ;;
16388      *)
16389        case $am_py_prefix in
16390          /usr|/System*) ;;
16391          *)
16392           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
16393           ;;
16394        esac
16395        ;;
16396      esac
16397
16398 fi
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16400 $as_echo "$am_cv_python_pythondir" >&6; }
16401   pythondir=$am_cv_python_pythondir
16402
16403
16404
16405   pkgpythondir=\${pythondir}/$PACKAGE
16406
16407
16408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16409 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16410 if ${am_cv_python_pyexecdir+:} false; then :
16411   $as_echo_n "(cached) " >&6
16412 else
16413   if test "x$exec_prefix" = xNONE
16414      then
16415        am_py_exec_prefix=$am_py_prefix
16416      else
16417        am_py_exec_prefix=$exec_prefix
16418      fi
16419      am_cv_python_pyexecdir=`$PYTHON -c "
16420 $am_python_setup_sysconfig
16421 if can_use_sysconfig:
16422     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
16423 else:
16424     from distutils import sysconfig
16425     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
16426 sys.stdout.write(sitedir)"`
16427      case $am_cv_python_pyexecdir in
16428      $am_py_exec_prefix*)
16429        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16430        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16431        ;;
16432      *)
16433        case $am_py_exec_prefix in
16434          /usr|/System*) ;;
16435          *)
16436            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
16437            ;;
16438        esac
16439        ;;
16440      esac
16441
16442 fi
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16444 $as_echo "$am_cv_python_pyexecdir" >&6; }
16445   pyexecdir=$am_cv_python_pyexecdir
16446
16447
16448
16449   pkgpyexecdir=\${pyexecdir}/$PACKAGE
16450
16451
16452
16453   fi
16454
16455
16456
16457         #
16458         # Allow the use of a (user set) custom python version
16459         #
16460
16461
16462         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16463 set dummy python$PYTHON_VERSION; ac_word=$2
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16465 $as_echo_n "checking for $ac_word... " >&6; }
16466 if ${ac_cv_path_PYTHON+:} false; then :
16467   $as_echo_n "(cached) " >&6
16468 else
16469   case $PYTHON in
16470   [\\/]* | ?:[\\/]*)
16471   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16472   ;;
16473   *)
16474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16475 for as_dir in $PATH
16476 do
16477   IFS=$as_save_IFS
16478   test -z "$as_dir" && as_dir=.
16479     for ac_exec_ext in '' $ac_executable_extensions; do
16480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16481     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16483     break 2
16484   fi
16485 done
16486   done
16487 IFS=$as_save_IFS
16488
16489   ;;
16490 esac
16491 fi
16492 PYTHON=$ac_cv_path_PYTHON
16493 if test -n "$PYTHON"; then
16494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16495 $as_echo "$PYTHON" >&6; }
16496 else
16497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16498 $as_echo "no" >&6; }
16499 fi
16500
16501
16502         if test -z "$PYTHON"; then
16503            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16504            PYTHON_VERSION=""
16505         fi
16506
16507         #
16508         # Check for a version of Python >= 2.1.0
16509         #
16510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
16511 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
16512         ac_supports_python_ver=`$PYTHON -c "import sys; \
16513                 ver = sys.version.split ()[0]; \
16514                 print (ver >= '2.1.0')"`
16515         if test "$ac_supports_python_ver" != "True"; then
16516                 if test -z "$PYTHON_NOVERSIONCHECK"; then
16517                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16518 $as_echo "no" >&6; }
16519                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16521 as_fn_error $? "
16522 This version of the AC_PYTHON_DEVEL macro
16523 doesn't work properly with versions of Python before
16524 2.1.0. You may need to re-run configure, setting the
16525 variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
16526 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
16527 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
16528 to something else than an empty string.
16529
16530 See \`config.log' for more details" "$LINENO" 5; }
16531                 else
16532                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
16533 $as_echo "skip at user request" >&6; }
16534                 fi
16535         else
16536                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16537 $as_echo "yes" >&6; }
16538         fi
16539
16540         #
16541         # if the macro parameter ``version'' is set, honour it
16542         #
16543         if test -n ">= '2.7'"; then
16544                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
16545 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
16546                 ac_supports_python_ver=`$PYTHON -c "import sys; \
16547                         ver = sys.version.split ()[0]; \
16548                         print (ver >= '2.7')"`
16549                 if test "$ac_supports_python_ver" = "True"; then
16550                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16551 $as_echo "yes" >&6; }
16552                 else
16553                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16554 $as_echo "no" >&6; }
16555                         as_fn_error $? "this package requires Python >= '2.7'.
16556 If you have it installed, but it isn't the default Python
16557 interpreter in your system path, please pass the PYTHON_VERSION
16558 variable to configure. See \`\`configure --help'' for reference.
16559 " "$LINENO" 5
16560                         PYTHON_VERSION=""
16561                 fi
16562         fi
16563
16564         #
16565         # Check if you have distutils, else fail
16566         #
16567         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16568 $as_echo_n "checking for the distutils Python package... " >&6; }
16569         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
16570         if test $? -eq 0; then
16571                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16572 $as_echo "yes" >&6; }
16573         else
16574                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16575 $as_echo "no" >&6; }
16576                 as_fn_error $? "cannot import Python module \"distutils\".
16577 Please check your Python installation. The error was:
16578 $ac_distutils_result" "$LINENO" 5
16579                 PYTHON_VERSION=""
16580         fi
16581
16582         #
16583         # Check for Python include path
16584         #
16585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16586 $as_echo_n "checking for Python include path... " >&6; }
16587         if test -z "$PYTHON_CPPFLAGS"; then
16588                 python_path=`$PYTHON -c "import distutils.sysconfig; \
16589                         print (distutils.sysconfig.get_python_inc ());"`
16590                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
16591                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
16592                 if test -n "${python_path}"; then
16593                         if test "${plat_python_path}" != "${python_path}"; then
16594                                 python_path="-I$python_path -I$plat_python_path"
16595                         else
16596                                 python_path="-I$python_path"
16597                         fi
16598                 fi
16599                 PYTHON_CPPFLAGS=$python_path
16600         fi
16601         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16602 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16603
16604
16605         #
16606         # Check for Python library path
16607         #
16608         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16609 $as_echo_n "checking for Python library path... " >&6; }
16610         if test -z "$PYTHON_LIBS"; then
16611                 # (makes two attempts to ensure we've got a version number
16612                 # from the interpreter)
16613                 ac_python_version=`cat<<EOD | $PYTHON -
16614
16615 # join all versioning strings, on some systems
16616 # major/minor numbers could be in different list elements
16617 from distutils.sysconfig import *
16618 e = get_config_var('VERSION')
16619 if e is not None:
16620         print(e)
16621 EOD`
16622
16623                 if test -z "$ac_python_version"; then
16624                         if test -n "$PYTHON_VERSION"; then
16625                                 ac_python_version=$PYTHON_VERSION
16626                         else
16627                                 ac_python_version=`$PYTHON -c "import sys; \
16628                                         print (sys.version[:3])"`
16629                         fi
16630                 fi
16631
16632                 # Make the versioning information available to the compiler
16633
16634 cat >>confdefs.h <<_ACEOF
16635 #define HAVE_PYTHON "$ac_python_version"
16636 _ACEOF
16637
16638
16639                 # First, the library directory:
16640                 ac_python_libdir=`cat<<EOD | $PYTHON -
16641
16642 # There should be only one
16643 import distutils.sysconfig
16644 e = distutils.sysconfig.get_config_var('LIBDIR')
16645 if e is not None:
16646         print (e)
16647 EOD`
16648
16649                 # Now, for the library:
16650                 ac_python_library=`cat<<EOD | $PYTHON -
16651
16652 import distutils.sysconfig
16653 c = distutils.sysconfig.get_config_vars()
16654 if 'LDVERSION' in c:
16655         print ('python'+c['LDVERSION'])
16656 else:
16657         print ('python'+c['VERSION'])
16658 EOD`
16659
16660                 # This small piece shamelessly adapted from PostgreSQL python macro;
16661                 # credits goes to momjian, I think. I'd like to put the right name
16662                 # in the credits, if someone can point me in the right direction... ?
16663                 #
16664                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
16665                 then
16666                         # use the official shared library
16667                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
16668                         PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
16669                 else
16670                         # old way: use libpython from python_configdir
16671                         ac_python_libdir=`$PYTHON -c \
16672                           "from distutils.sysconfig import get_python_lib as f; \
16673                           import os; \
16674                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
16675                         PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version"
16676                 fi
16677
16678                 if test -z "PYTHON_LIBS"; then
16679                         as_fn_error $? "
16680   Cannot determine location of your Python DSO. Please check it was installed with
16681   dynamic libraries enabled, or try setting PYTHON_LIBS by hand.
16682                         " "$LINENO" 5
16683                 fi
16684         fi
16685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5
16686 $as_echo "$PYTHON_LIBS" >&6; }
16687
16688
16689         #
16690         # Check for site packages
16691         #
16692         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16693 $as_echo_n "checking for Python site-packages path... " >&6; }
16694         if test -z "$PYTHON_SITE_PKG"; then
16695                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16696                         print (distutils.sysconfig.get_python_lib(0,0));"`
16697         fi
16698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16699 $as_echo "$PYTHON_SITE_PKG" >&6; }
16700
16701
16702         #
16703         # libraries which must be linked in when embedding
16704         #
16705         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
16706 $as_echo_n "checking python extra libraries... " >&6; }
16707         if test -z "$PYTHON_EXTRA_LIBS"; then
16708            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
16709                 conf = distutils.sysconfig.get_config_var; \
16710                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
16711         fi
16712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
16713 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
16714
16715
16716         #
16717         # linking flags needed when embedding
16718         #
16719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
16720 $as_echo_n "checking python extra linking flags... " >&6; }
16721         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
16722                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
16723                         conf = distutils.sysconfig.get_config_var; \
16724                         print (conf('LINKFORSHARED'))"`
16725         fi
16726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
16727 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
16728
16729
16730         #
16731         # final check to see if everything compiles alright
16732         #
16733         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16734 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16735         # save current global flags
16736         ac_save_LIBS="$LIBS"
16737         ac_save_LDFLAGS="$LDFLAGS"
16738         ac_save_CPPFLAGS="$CPPFLAGS"
16739         LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS $PYTHON_EXTRA_LIBS"
16740         LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS"
16741         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
16742         ac_ext=c
16743 ac_cpp='$CPP $CPPFLAGS'
16744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16747
16748         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h.  */
16750
16751                 #include <Python.h>
16752 int
16753 main ()
16754 {
16755 Py_Initialize();
16756   ;
16757   return 0;
16758 }
16759
16760 _ACEOF
16761 if ac_fn_c_try_link "$LINENO"; then :
16762   pythonexists=yes
16763 else
16764   pythonexists=no
16765 fi
16766 rm -f core conftest.err conftest.$ac_objext \
16767     conftest$ac_exeext conftest.$ac_ext
16768         ac_ext=cpp
16769 ac_cpp='$CXXCPP $CPPFLAGS'
16770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16773
16774         # turn back to default flags
16775         CPPFLAGS="$ac_save_CPPFLAGS"
16776         LIBS="$ac_save_LIBS"
16777         LDFLAGS="$ac_save_LDFLAGS"
16778
16779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16780 $as_echo "$pythonexists" >&6; }
16781
16782         if test ! "x$pythonexists" = "xyes"; then
16783            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16785 as_fn_error $? "
16786   Could not link test program to Python. Maybe the main Python library has been
16787   installed in some non-standard library path. If so, pass it to configure,
16788   via the LIBS environment variable.
16789   Example: ./configure LIBS=\"-L/usr/non-standard-path/python/lib\"
16790   ============================================================================
16791    ERROR!
16792    You probably have to install the development version of the Python package
16793    for your distribution.  The exact name of this package varies among them.
16794   ============================================================================
16795
16796 See \`config.log' for more details" "$LINENO" 5; }
16797           PYTHON_VERSION=""
16798         fi
16799
16800         #
16801         # all done!
16802         #
16803
16804 fi
16805
16806 # Check whether --enable-special was given.
16807 if test "${enable_special+set}" = set; then :
16808   enableval=$enable_special;
16809 else
16810   enable_special=no
16811 fi
16812
16813  if test "x$enable_special" != xno; then
16814   HAVE_SPECIAL_TRUE=
16815   HAVE_SPECIAL_FALSE='#'
16816 else
16817   HAVE_SPECIAL_TRUE='#'
16818   HAVE_SPECIAL_FALSE=
16819 fi
16820
16821
16822 # --enable-bin enables script and bin "extensions".
16823 # Check whether --enable-bin was given.
16824 if test "${enable_bin+set}" = set; then :
16825   enableval=$enable_bin;
16826 else
16827   enable_bin=yes
16828 fi
16829
16830  if test "x$enable_bin" != xno; then
16831   HAVE_BIN_TRUE=
16832   HAVE_BIN_FALSE='#'
16833 else
16834   HAVE_BIN_TRUE='#'
16835   HAVE_BIN_FALSE=
16836 fi
16837
16838  if test "x$enable_bin" != xno; then
16839   HAVE_SCRIPT_TRUE=
16840   HAVE_SCRIPT_FALSE='#'
16841 else
16842   HAVE_SCRIPT_TRUE='#'
16843   HAVE_SCRIPT_FALSE=
16844 fi
16845
16846
16847 # --enable-fsts is an alias to enable FST SO extensions: compact, const,
16848 # linear, lookahead, and ngram.
16849 # Check whether --enable-fsts was given.
16850 if test "${enable_fsts+set}" = set; then :
16851   enableval=$enable_fsts;
16852 else
16853   enable_fsts=no
16854 fi
16855
16856  if test "x$enable_fsts" != xno; then
16857   HAVE_FSTS_TRUE=
16858   HAVE_FSTS_FALSE='#'
16859 else
16860   HAVE_FSTS_TRUE='#'
16861   HAVE_FSTS_FALSE=
16862 fi
16863
16864
16865 # --enable-grm is an alias to enable all dependencies of OpenGrm: far, mpdt,
16866 # and pdt.
16867 # Check whether --enable-grm was given.
16868 if test "${enable_grm+set}" = set; then :
16869   enableval=$enable_grm;
16870 else
16871   enable_grm=no
16872 fi
16873
16874  if test "x$enable_grm" != xno; then
16875   HAVE_GRM_TRUE=
16876   HAVE_GRM_FALSE='#'
16877 else
16878   HAVE_GRM_TRUE='#'
16879   HAVE_GRM_FALSE=
16880 fi
16881
16882
16883
16884 # Check whether --with-libfstdir was given.
16885 if test "${with_libfstdir+set}" = set; then :
16886   withval=$with_libfstdir;
16887 else
16888   with_libfstdir=${libdir}/fst
16889 fi
16890
16891
16892 libfstdir=$with_libfstdir
16893
16894
16895 # Flags may be changed after configuring, so this is checked again by
16896 # weight_test.cc.  The check here is to save time in the common case,
16897 # or when someone does not run `make check`.
16898 if test "$cross_compiling" = yes; then :
16899   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16901 as_fn_error $? "cannot run test program while cross compiling
16902 See \`config.log' for more details" "$LINENO" 5; }
16903 else
16904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905 /* end confdefs.h.  */
16906
16907                  #include <cstdio>
16908
16909                  template <typename T>
16910                  bool FloatEqIsReflexive(T m) {
16911                    volatile T x = 1.111;
16912                    x *= m;
16913
16914                    T y = 1.111;
16915                    y *= m;
16916
16917                    return x == y;
16918                  }
16919
16920 int
16921 main ()
16922 {
16923
16924                  volatile double test_value = 1.1;
16925                  if (!FloatEqIsReflexive(static_cast<float>(test_value))) {
16926                    printf("float FAIL\n");
16927                    return 1;
16928                  }
16929                  if (!FloatEqIsReflexive(test_value)) {
16930                    printf("double FAIL\n");
16931                    return 1;
16932                  }
16933
16934   ;
16935   return 0;
16936 }
16937 _ACEOF
16938 if ac_fn_cxx_try_run "$LINENO"; then :
16939   echo "Float equality is good"
16940 else
16941   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16943 as_fn_error $? "Test float equality failed! Compile with -msse -mfpmath=sse if using g++.
16944 See \`config.log' for more details" "$LINENO" 5; }
16945 fi
16946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16947   conftest.$ac_objext conftest.beam conftest.$ac_ext
16948 fi
16949
16950
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16953 if ${ac_cv_lib_dl_dlopen+:} false; then :
16954   $as_echo_n "(cached) " >&6
16955 else
16956   ac_check_lib_save_LIBS=$LIBS
16957 LIBS="-ldl  $LIBS"
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h.  */
16960
16961 /* Override any GCC internal prototype to avoid an error.
16962    Use char because int might match the return type of a GCC
16963    builtin and then its argument prototype would still apply.  */
16964 #ifdef __cplusplus
16965 extern "C"
16966 #endif
16967 char dlopen ();
16968 int
16969 main ()
16970 {
16971 return dlopen ();
16972   ;
16973   return 0;
16974 }
16975 _ACEOF
16976 if ac_fn_cxx_try_link "$LINENO"; then :
16977   ac_cv_lib_dl_dlopen=yes
16978 else
16979   ac_cv_lib_dl_dlopen=no
16980 fi
16981 rm -f core conftest.err conftest.$ac_objext \
16982     conftest$ac_exeext conftest.$ac_ext
16983 LIBS=$ac_check_lib_save_LIBS
16984 fi
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16987 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16988   DL_LIBS=-ldl
16989 fi
16990
16991
16992
16993 cat >confcache <<\_ACEOF
16994 # This file is a shell script that caches the results of configure
16995 # tests run on this system so they can be shared between configure
16996 # scripts and configure runs, see configure's option --config-cache.
16997 # It is not useful on other systems.  If it contains results you don't
16998 # want to keep, you may remove or edit it.
16999 #
17000 # config.status only pays attention to the cache file if you give it
17001 # the --recheck option to rerun configure.
17002 #
17003 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17004 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17005 # following values.
17006
17007 _ACEOF
17008
17009 # The following way of writing the cache mishandles newlines in values,
17010 # but we know of no workaround that is simple, portable, and efficient.
17011 # So, we kill variables containing newlines.
17012 # Ultrix sh set writes to stderr and can't be redirected directly,
17013 # and sets the high bit in the cache file unless we assign to the vars.
17014 (
17015   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17016     eval ac_val=\$$ac_var
17017     case $ac_val in #(
17018     *${as_nl}*)
17019       case $ac_var in #(
17020       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17022       esac
17023       case $ac_var in #(
17024       _ | IFS | as_nl) ;; #(
17025       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17026       *) { eval $ac_var=; unset $ac_var;} ;;
17027       esac ;;
17028     esac
17029   done
17030
17031   (set) 2>&1 |
17032     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17033     *${as_nl}ac_space=\ *)
17034       # `set' does not quote correctly, so add quotes: double-quote
17035       # substitution turns \\\\ into \\, and sed turns \\ into \.
17036       sed -n \
17037         "s/'/'\\\\''/g;
17038           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17039       ;; #(
17040     *)
17041       # `set' quotes correctly as required by POSIX, so do not add quotes.
17042       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17043       ;;
17044     esac |
17045     sort
17046 ) |
17047   sed '
17048      /^ac_cv_env_/b end
17049      t clear
17050      :clear
17051      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17052      t end
17053      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17054      :end' >>confcache
17055 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17056   if test -w "$cache_file"; then
17057     if test "x$cache_file" != "x/dev/null"; then
17058       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17059 $as_echo "$as_me: updating cache $cache_file" >&6;}
17060       if test ! -f "$cache_file" || test -h "$cache_file"; then
17061         cat confcache >"$cache_file"
17062       else
17063         case $cache_file in #(
17064         */* | ?:*)
17065           mv -f confcache "$cache_file"$$ &&
17066           mv -f "$cache_file"$$ "$cache_file" ;; #(
17067         *)
17068           mv -f confcache "$cache_file" ;;
17069         esac
17070       fi
17071     fi
17072   else
17073     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17074 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17075   fi
17076 fi
17077 rm -f confcache
17078
17079 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17080 # Let make expand exec_prefix.
17081 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17082
17083 DEFS=-DHAVE_CONFIG_H
17084
17085 ac_libobjs=
17086 ac_ltlibobjs=
17087 U=
17088 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17089   # 1. Remove the extension, and $U if already installed.
17090   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17091   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17092   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17093   #    will be set to the directory where LIBOBJS objects are built.
17094   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17095   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17096 done
17097 LIBOBJS=$ac_libobjs
17098
17099 LTLIBOBJS=$ac_ltlibobjs
17100
17101
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17103 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17104    if test -n "$am_sleep_pid"; then
17105      # Hide warnings about reused PIDs.
17106      wait $am_sleep_pid 2>/dev/null
17107    fi
17108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17109 $as_echo "done" >&6; }
17110  if test -n "$EXEEXT"; then
17111   am__EXEEXT_TRUE=
17112   am__EXEEXT_FALSE='#'
17113 else
17114   am__EXEEXT_TRUE='#'
17115   am__EXEEXT_FALSE=
17116 fi
17117
17118 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17119   as_fn_error $? "conditional \"AMDEP\" was never defined.
17120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17121 fi
17122 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17123   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17125 fi
17126 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17127   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17129 fi
17130 if test -z "${HAVE_COMPACT_TRUE}" && test -z "${HAVE_COMPACT_FALSE}"; then
17131   as_fn_error $? "conditional \"HAVE_COMPACT\" was never defined.
17132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17133 fi
17134 if test -z "${HAVE_COMPRESS_TRUE}" && test -z "${HAVE_COMPRESS_FALSE}"; then
17135   as_fn_error $? "conditional \"HAVE_COMPRESS\" was never defined.
17136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17137 fi
17138 if test -z "${HAVE_CONST_TRUE}" && test -z "${HAVE_CONST_FALSE}"; then
17139   as_fn_error $? "conditional \"HAVE_CONST\" was never defined.
17140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17141 fi
17142 if test -z "${HAVE_FAR_TRUE}" && test -z "${HAVE_FAR_FALSE}"; then
17143   as_fn_error $? "conditional \"HAVE_FAR\" was never defined.
17144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17145 fi
17146 if test -z "${HAVE_LINEAR_TRUE}" && test -z "${HAVE_LINEAR_FALSE}"; then
17147   as_fn_error $? "conditional \"HAVE_LINEAR\" was never defined.
17148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17149 fi
17150 if test -z "${HAVE_LOOKAHEAD_TRUE}" && test -z "${HAVE_LOOKAHEAD_FALSE}"; then
17151   as_fn_error $? "conditional \"HAVE_LOOKAHEAD\" was never defined.
17152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17153 fi
17154 if test -z "${HAVE_MPDT_TRUE}" && test -z "${HAVE_MPDT_FALSE}"; then
17155   as_fn_error $? "conditional \"HAVE_MPDT\" was never defined.
17156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17157 fi
17158 if test -z "${HAVE_NGRAM_TRUE}" && test -z "${HAVE_NGRAM_FALSE}"; then
17159   as_fn_error $? "conditional \"HAVE_NGRAM\" was never defined.
17160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17161 fi
17162 if test -z "${HAVE_PDT_TRUE}" && test -z "${HAVE_PDT_FALSE}"; then
17163   as_fn_error $? "conditional \"HAVE_PDT\" was never defined.
17164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17165 fi
17166 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17167   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17169 fi
17170 if test -z "${HAVE_SPECIAL_TRUE}" && test -z "${HAVE_SPECIAL_FALSE}"; then
17171   as_fn_error $? "conditional \"HAVE_SPECIAL\" was never defined.
17172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17173 fi
17174 if test -z "${HAVE_BIN_TRUE}" && test -z "${HAVE_BIN_FALSE}"; then
17175   as_fn_error $? "conditional \"HAVE_BIN\" was never defined.
17176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17177 fi
17178 if test -z "${HAVE_SCRIPT_TRUE}" && test -z "${HAVE_SCRIPT_FALSE}"; then
17179   as_fn_error $? "conditional \"HAVE_SCRIPT\" was never defined.
17180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17181 fi
17182 if test -z "${HAVE_FSTS_TRUE}" && test -z "${HAVE_FSTS_FALSE}"; then
17183   as_fn_error $? "conditional \"HAVE_FSTS\" was never defined.
17184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17185 fi
17186 if test -z "${HAVE_GRM_TRUE}" && test -z "${HAVE_GRM_FALSE}"; then
17187   as_fn_error $? "conditional \"HAVE_GRM\" was never defined.
17188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17189 fi
17190
17191 : "${CONFIG_STATUS=./config.status}"
17192 ac_write_fail=0
17193 ac_clean_files_save=$ac_clean_files
17194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17196 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17197 as_write_fail=0
17198 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17199 #! $SHELL
17200 # Generated by $as_me.
17201 # Run this file to recreate the current configuration.
17202 # Compiler output produced by configure, useful for debugging
17203 # configure, is in config.log if it exists.
17204
17205 debug=false
17206 ac_cs_recheck=false
17207 ac_cs_silent=false
17208
17209 SHELL=\${CONFIG_SHELL-$SHELL}
17210 export SHELL
17211 _ASEOF
17212 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17213 ## -------------------- ##
17214 ## M4sh Initialization. ##
17215 ## -------------------- ##
17216
17217 # Be more Bourne compatible
17218 DUALCASE=1; export DUALCASE # for MKS sh
17219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17220   emulate sh
17221   NULLCMD=:
17222   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17223   # is contrary to our usage.  Disable this feature.
17224   alias -g '${1+"$@"}'='"$@"'
17225   setopt NO_GLOB_SUBST
17226 else
17227   case `(set -o) 2>/dev/null` in #(
17228   *posix*) :
17229     set -o posix ;; #(
17230   *) :
17231      ;;
17232 esac
17233 fi
17234
17235
17236 as_nl='
17237 '
17238 export as_nl
17239 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17240 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17243 # Prefer a ksh shell builtin over an external printf program on Solaris,
17244 # but without wasting forks for bash or zsh.
17245 if test -z "$BASH_VERSION$ZSH_VERSION" \
17246     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17247   as_echo='print -r --'
17248   as_echo_n='print -rn --'
17249 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17250   as_echo='printf %s\n'
17251   as_echo_n='printf %s'
17252 else
17253   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17254     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17255     as_echo_n='/usr/ucb/echo -n'
17256   else
17257     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17258     as_echo_n_body='eval
17259       arg=$1;
17260       case $arg in #(
17261       *"$as_nl"*)
17262         expr "X$arg" : "X\\(.*\\)$as_nl";
17263         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17264       esac;
17265       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17266     '
17267     export as_echo_n_body
17268     as_echo_n='sh -c $as_echo_n_body as_echo'
17269   fi
17270   export as_echo_body
17271   as_echo='sh -c $as_echo_body as_echo'
17272 fi
17273
17274 # The user is always right.
17275 if test "${PATH_SEPARATOR+set}" != set; then
17276   PATH_SEPARATOR=:
17277   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17278     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17279       PATH_SEPARATOR=';'
17280   }
17281 fi
17282
17283
17284 # IFS
17285 # We need space, tab and new line, in precisely that order.  Quoting is
17286 # there to prevent editors from complaining about space-tab.
17287 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17288 # splitting by setting IFS to empty value.)
17289 IFS=" ""        $as_nl"
17290
17291 # Find who we are.  Look in the path if we contain no directory separator.
17292 as_myself=
17293 case $0 in #((
17294   *[\\/]* ) as_myself=$0 ;;
17295   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17296 for as_dir in $PATH
17297 do
17298   IFS=$as_save_IFS
17299   test -z "$as_dir" && as_dir=.
17300     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17301   done
17302 IFS=$as_save_IFS
17303
17304      ;;
17305 esac
17306 # We did not find ourselves, most probably we were run as `sh COMMAND'
17307 # in which case we are not to be found in the path.
17308 if test "x$as_myself" = x; then
17309   as_myself=$0
17310 fi
17311 if test ! -f "$as_myself"; then
17312   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17313   exit 1
17314 fi
17315
17316 # Unset variables that we do not need and which cause bugs (e.g. in
17317 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17318 # suppresses any "Segmentation fault" message there.  '((' could
17319 # trigger a bug in pdksh 5.2.14.
17320 for as_var in BASH_ENV ENV MAIL MAILPATH
17321 do eval test x\${$as_var+set} = xset \
17322   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17323 done
17324 PS1='$ '
17325 PS2='> '
17326 PS4='+ '
17327
17328 # NLS nuisances.
17329 LC_ALL=C
17330 export LC_ALL
17331 LANGUAGE=C
17332 export LANGUAGE
17333
17334 # CDPATH.
17335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17336
17337
17338 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17339 # ----------------------------------------
17340 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17341 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17342 # script with STATUS, using 1 if that was 0.
17343 as_fn_error ()
17344 {
17345   as_status=$1; test $as_status -eq 0 && as_status=1
17346   if test "$4"; then
17347     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17348     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17349   fi
17350   $as_echo "$as_me: error: $2" >&2
17351   as_fn_exit $as_status
17352 } # as_fn_error
17353
17354
17355 # as_fn_set_status STATUS
17356 # -----------------------
17357 # Set $? to STATUS, without forking.
17358 as_fn_set_status ()
17359 {
17360   return $1
17361 } # as_fn_set_status
17362
17363 # as_fn_exit STATUS
17364 # -----------------
17365 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17366 as_fn_exit ()
17367 {
17368   set +e
17369   as_fn_set_status $1
17370   exit $1
17371 } # as_fn_exit
17372
17373 # as_fn_unset VAR
17374 # ---------------
17375 # Portably unset VAR.
17376 as_fn_unset ()
17377 {
17378   { eval $1=; unset $1;}
17379 }
17380 as_unset=as_fn_unset
17381 # as_fn_append VAR VALUE
17382 # ----------------------
17383 # Append the text in VALUE to the end of the definition contained in VAR. Take
17384 # advantage of any shell optimizations that allow amortized linear growth over
17385 # repeated appends, instead of the typical quadratic growth present in naive
17386 # implementations.
17387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17388   eval 'as_fn_append ()
17389   {
17390     eval $1+=\$2
17391   }'
17392 else
17393   as_fn_append ()
17394   {
17395     eval $1=\$$1\$2
17396   }
17397 fi # as_fn_append
17398
17399 # as_fn_arith ARG...
17400 # ------------------
17401 # Perform arithmetic evaluation on the ARGs, and store the result in the
17402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17403 # must be portable across $(()) and expr.
17404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17405   eval 'as_fn_arith ()
17406   {
17407     as_val=$(( $* ))
17408   }'
17409 else
17410   as_fn_arith ()
17411   {
17412     as_val=`expr "$@" || test $? -eq 1`
17413   }
17414 fi # as_fn_arith
17415
17416
17417 if expr a : '\(a\)' >/dev/null 2>&1 &&
17418    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17419   as_expr=expr
17420 else
17421   as_expr=false
17422 fi
17423
17424 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17425   as_basename=basename
17426 else
17427   as_basename=false
17428 fi
17429
17430 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17431   as_dirname=dirname
17432 else
17433   as_dirname=false
17434 fi
17435
17436 as_me=`$as_basename -- "$0" ||
17437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17438          X"$0" : 'X\(//\)$' \| \
17439          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17440 $as_echo X/"$0" |
17441     sed '/^.*\/\([^/][^/]*\)\/*$/{
17442             s//\1/
17443             q
17444           }
17445           /^X\/\(\/\/\)$/{
17446             s//\1/
17447             q
17448           }
17449           /^X\/\(\/\).*/{
17450             s//\1/
17451             q
17452           }
17453           s/.*/./; q'`
17454
17455 # Avoid depending upon Character Ranges.
17456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17459 as_cr_digits='0123456789'
17460 as_cr_alnum=$as_cr_Letters$as_cr_digits
17461
17462 ECHO_C= ECHO_N= ECHO_T=
17463 case `echo -n x` in #(((((
17464 -n*)
17465   case `echo 'xy\c'` in
17466   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17467   xy)  ECHO_C='\c';;
17468   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17469        ECHO_T=' ';;
17470   esac;;
17471 *)
17472   ECHO_N='-n';;
17473 esac
17474
17475 rm -f conf$$ conf$$.exe conf$$.file
17476 if test -d conf$$.dir; then
17477   rm -f conf$$.dir/conf$$.file
17478 else
17479   rm -f conf$$.dir
17480   mkdir conf$$.dir 2>/dev/null
17481 fi
17482 if (echo >conf$$.file) 2>/dev/null; then
17483   if ln -s conf$$.file conf$$ 2>/dev/null; then
17484     as_ln_s='ln -s'
17485     # ... but there are two gotchas:
17486     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17487     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17488     # In both cases, we have to default to `cp -pR'.
17489     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17490       as_ln_s='cp -pR'
17491   elif ln conf$$.file conf$$ 2>/dev/null; then
17492     as_ln_s=ln
17493   else
17494     as_ln_s='cp -pR'
17495   fi
17496 else
17497   as_ln_s='cp -pR'
17498 fi
17499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17500 rmdir conf$$.dir 2>/dev/null
17501
17502
17503 # as_fn_mkdir_p
17504 # -------------
17505 # Create "$as_dir" as a directory, including parents if necessary.
17506 as_fn_mkdir_p ()
17507 {
17508
17509   case $as_dir in #(
17510   -*) as_dir=./$as_dir;;
17511   esac
17512   test -d "$as_dir" || eval $as_mkdir_p || {
17513     as_dirs=
17514     while :; do
17515       case $as_dir in #(
17516       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17517       *) as_qdir=$as_dir;;
17518       esac
17519       as_dirs="'$as_qdir' $as_dirs"
17520       as_dir=`$as_dirname -- "$as_dir" ||
17521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17522          X"$as_dir" : 'X\(//\)[^/]' \| \
17523          X"$as_dir" : 'X\(//\)$' \| \
17524          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17525 $as_echo X"$as_dir" |
17526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17527             s//\1/
17528             q
17529           }
17530           /^X\(\/\/\)[^/].*/{
17531             s//\1/
17532             q
17533           }
17534           /^X\(\/\/\)$/{
17535             s//\1/
17536             q
17537           }
17538           /^X\(\/\).*/{
17539             s//\1/
17540             q
17541           }
17542           s/.*/./; q'`
17543       test -d "$as_dir" && break
17544     done
17545     test -z "$as_dirs" || eval "mkdir $as_dirs"
17546   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17547
17548
17549 } # as_fn_mkdir_p
17550 if mkdir -p . 2>/dev/null; then
17551   as_mkdir_p='mkdir -p "$as_dir"'
17552 else
17553   test -d ./-p && rmdir ./-p
17554   as_mkdir_p=false
17555 fi
17556
17557
17558 # as_fn_executable_p FILE
17559 # -----------------------
17560 # Test if FILE is an executable regular file.
17561 as_fn_executable_p ()
17562 {
17563   test -f "$1" && test -x "$1"
17564 } # as_fn_executable_p
17565 as_test_x='test -x'
17566 as_executable_p=as_fn_executable_p
17567
17568 # Sed expression to map a string onto a valid CPP name.
17569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17570
17571 # Sed expression to map a string onto a valid variable name.
17572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17573
17574
17575 exec 6>&1
17576 ## ----------------------------------- ##
17577 ## Main body of $CONFIG_STATUS script. ##
17578 ## ----------------------------------- ##
17579 _ASEOF
17580 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17581
17582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17583 # Save the log message, to keep $0 and so on meaningful, and to
17584 # report actual input values of CONFIG_FILES etc. instead of their
17585 # values after options handling.
17586 ac_log="
17587 This file was extended by OpenFst $as_me 1.7.8, which was
17588 generated by GNU Autoconf 2.69.  Invocation command line was
17589
17590   CONFIG_FILES    = $CONFIG_FILES
17591   CONFIG_HEADERS  = $CONFIG_HEADERS
17592   CONFIG_LINKS    = $CONFIG_LINKS
17593   CONFIG_COMMANDS = $CONFIG_COMMANDS
17594   $ $0 $@
17595
17596 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17597 "
17598
17599 _ACEOF
17600
17601 case $ac_config_files in *"
17602 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17603 esac
17604
17605 case $ac_config_headers in *"
17606 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17607 esac
17608
17609
17610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17611 # Files that config.status was made for.
17612 config_files="$ac_config_files"
17613 config_headers="$ac_config_headers"
17614 config_commands="$ac_config_commands"
17615
17616 _ACEOF
17617
17618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17619 ac_cs_usage="\
17620 \`$as_me' instantiates files and other configuration actions
17621 from templates according to the current configuration.  Unless the files
17622 and actions are specified as TAGs, all are instantiated by default.
17623
17624 Usage: $0 [OPTION]... [TAG]...
17625
17626   -h, --help       print this help, then exit
17627   -V, --version    print version number and configuration settings, then exit
17628       --config     print configuration, then exit
17629   -q, --quiet, --silent
17630                    do not print progress messages
17631   -d, --debug      don't remove temporary files
17632       --recheck    update $as_me by reconfiguring in the same conditions
17633       --file=FILE[:TEMPLATE]
17634                    instantiate the configuration file FILE
17635       --header=FILE[:TEMPLATE]
17636                    instantiate the configuration header FILE
17637
17638 Configuration files:
17639 $config_files
17640
17641 Configuration headers:
17642 $config_headers
17643
17644 Configuration commands:
17645 $config_commands
17646
17647 Report bugs to <help@www.openfst.org>."
17648
17649 _ACEOF
17650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17651 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17652 ac_cs_version="\\
17653 OpenFst config.status 1.7.8
17654 configured by $0, generated by GNU Autoconf 2.69,
17655   with options \\"\$ac_cs_config\\"
17656
17657 Copyright (C) 2012 Free Software Foundation, Inc.
17658 This config.status script is free software; the Free Software Foundation
17659 gives unlimited permission to copy, distribute and modify it."
17660
17661 ac_pwd='$ac_pwd'
17662 srcdir='$srcdir'
17663 INSTALL='$INSTALL'
17664 MKDIR_P='$MKDIR_P'
17665 AWK='$AWK'
17666 test -n "\$AWK" || AWK=awk
17667 _ACEOF
17668
17669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17670 # The default lists apply if the user does not specify any file.
17671 ac_need_defaults=:
17672 while test $# != 0
17673 do
17674   case $1 in
17675   --*=?*)
17676     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17677     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17678     ac_shift=:
17679     ;;
17680   --*=)
17681     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17682     ac_optarg=
17683     ac_shift=:
17684     ;;
17685   *)
17686     ac_option=$1
17687     ac_optarg=$2
17688     ac_shift=shift
17689     ;;
17690   esac
17691
17692   case $ac_option in
17693   # Handling of the options.
17694   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17695     ac_cs_recheck=: ;;
17696   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17697     $as_echo "$ac_cs_version"; exit ;;
17698   --config | --confi | --conf | --con | --co | --c )
17699     $as_echo "$ac_cs_config"; exit ;;
17700   --debug | --debu | --deb | --de | --d | -d )
17701     debug=: ;;
17702   --file | --fil | --fi | --f )
17703     $ac_shift
17704     case $ac_optarg in
17705     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17706     '') as_fn_error $? "missing file argument" ;;
17707     esac
17708     as_fn_append CONFIG_FILES " '$ac_optarg'"
17709     ac_need_defaults=false;;
17710   --header | --heade | --head | --hea )
17711     $ac_shift
17712     case $ac_optarg in
17713     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17714     esac
17715     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17716     ac_need_defaults=false;;
17717   --he | --h)
17718     # Conflict between --help and --header
17719     as_fn_error $? "ambiguous option: \`$1'
17720 Try \`$0 --help' for more information.";;
17721   --help | --hel | -h )
17722     $as_echo "$ac_cs_usage"; exit ;;
17723   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17724   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17725     ac_cs_silent=: ;;
17726
17727   # This is an error.
17728   -*) as_fn_error $? "unrecognized option: \`$1'
17729 Try \`$0 --help' for more information." ;;
17730
17731   *) as_fn_append ac_config_targets " $1"
17732      ac_need_defaults=false ;;
17733
17734   esac
17735   shift
17736 done
17737
17738 ac_configure_extra_args=
17739
17740 if $ac_cs_silent; then
17741   exec 6>/dev/null
17742   ac_configure_extra_args="$ac_configure_extra_args --silent"
17743 fi
17744
17745 _ACEOF
17746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17747 if \$ac_cs_recheck; then
17748   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17749   shift
17750   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17751   CONFIG_SHELL='$SHELL'
17752   export CONFIG_SHELL
17753   exec "\$@"
17754 fi
17755
17756 _ACEOF
17757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17758 exec 5>>config.log
17759 {
17760   echo
17761   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17762 ## Running $as_me. ##
17763 _ASBOX
17764   $as_echo "$ac_log"
17765 } >&5
17766
17767 _ACEOF
17768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17769 #
17770 # INIT-COMMANDS
17771 #
17772 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17773
17774
17775 # The HP-UX ksh and POSIX shell print the target directory to stdout
17776 # if CDPATH is set.
17777 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17778
17779 sed_quote_subst='$sed_quote_subst'
17780 double_quote_subst='$double_quote_subst'
17781 delay_variable_subst='$delay_variable_subst'
17782 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17783 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17784 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17785 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17786 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17787 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17788 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17789 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17790 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17791 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17792 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17793 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17794 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17795 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17796 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17797 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17798 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17799 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17800 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17801 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17802 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17803 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17804 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17805 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17806 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17807 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17808 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17809 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17810 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17811 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17812 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17813 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17814 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17815 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17816 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17817 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17818 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17819 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17820 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17821 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17822 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17823 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17824 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17825 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17826 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17827 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17828 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17829 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17830 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17831 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17832 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17833 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17834 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17835 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17836 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17837 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17838 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17839 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17840 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"`'
17841 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17842 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17843 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17844 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17845 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17846 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17847 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17848 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17849 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17850 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17851 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17852 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17853 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17854 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17855 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17856 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17857 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17858 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17859 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17860 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17861 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17862 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17863 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17864 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17865 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17866 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17867 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17868 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17869 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17870 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17871 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17872 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17873 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17874 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17875 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17876 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17877 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17878 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17879 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17880 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17881 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17882 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17883 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17884 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17885 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17886 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17887 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17888 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17889 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17890 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17891 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17892 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17893 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17894 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17895 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17896 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17897 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17898 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17899 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17900 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17901 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17902 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17903 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17904 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17905 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17906 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17907 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17908 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17909 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17910 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17911 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17912 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17913 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17914 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17915 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17916 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17917 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17918 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17919 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17920 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17921 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17922 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17923 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17924 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17925 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17926 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17927 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17928 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17929 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17930 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17931 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17932 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17933 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17934 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17935 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17936 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17937 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17938 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17939 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17940 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17941 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17942 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17943 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17944 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17945 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17946 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17947 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17948 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17949 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17950 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17951 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17952 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17953 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17954 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17955 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17956 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17957 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17958 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17959 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17960 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17961 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17962 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17963 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17964 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17965 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17966 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17967 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17968 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17969 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17970 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17971
17972 LTCC='$LTCC'
17973 LTCFLAGS='$LTCFLAGS'
17974 compiler='$compiler_DEFAULT'
17975
17976 # A function that is used when there is no print builtin or printf.
17977 func_fallback_echo ()
17978 {
17979   eval 'cat <<_LTECHO_EOF
17980 \$1
17981 _LTECHO_EOF'
17982 }
17983
17984 # Quote evaled strings.
17985 for var in SHELL \
17986 ECHO \
17987 PATH_SEPARATOR \
17988 SED \
17989 GREP \
17990 EGREP \
17991 FGREP \
17992 LD \
17993 NM \
17994 LN_S \
17995 lt_SP2NL \
17996 lt_NL2SP \
17997 reload_flag \
17998 OBJDUMP \
17999 deplibs_check_method \
18000 file_magic_cmd \
18001 file_magic_glob \
18002 want_nocaseglob \
18003 DLLTOOL \
18004 sharedlib_from_linklib_cmd \
18005 AR \
18006 AR_FLAGS \
18007 archiver_list_spec \
18008 STRIP \
18009 RANLIB \
18010 CC \
18011 CFLAGS \
18012 compiler \
18013 lt_cv_sys_global_symbol_pipe \
18014 lt_cv_sys_global_symbol_to_cdecl \
18015 lt_cv_sys_global_symbol_to_import \
18016 lt_cv_sys_global_symbol_to_c_name_address \
18017 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18018 lt_cv_nm_interface \
18019 nm_file_list_spec \
18020 lt_cv_truncate_bin \
18021 lt_prog_compiler_no_builtin_flag \
18022 lt_prog_compiler_pic \
18023 lt_prog_compiler_wl \
18024 lt_prog_compiler_static \
18025 lt_cv_prog_compiler_c_o \
18026 need_locks \
18027 MANIFEST_TOOL \
18028 DSYMUTIL \
18029 NMEDIT \
18030 LIPO \
18031 OTOOL \
18032 OTOOL64 \
18033 shrext_cmds \
18034 export_dynamic_flag_spec \
18035 whole_archive_flag_spec \
18036 compiler_needs_object \
18037 with_gnu_ld \
18038 allow_undefined_flag \
18039 no_undefined_flag \
18040 hardcode_libdir_flag_spec \
18041 hardcode_libdir_separator \
18042 exclude_expsyms \
18043 include_expsyms \
18044 file_list_spec \
18045 variables_saved_for_relink \
18046 libname_spec \
18047 library_names_spec \
18048 soname_spec \
18049 install_override_mode \
18050 finish_eval \
18051 old_striplib \
18052 striplib \
18053 compiler_lib_search_dirs \
18054 predep_objects \
18055 postdep_objects \
18056 predeps \
18057 postdeps \
18058 compiler_lib_search_path \
18059 LD_CXX \
18060 reload_flag_CXX \
18061 compiler_CXX \
18062 lt_prog_compiler_no_builtin_flag_CXX \
18063 lt_prog_compiler_pic_CXX \
18064 lt_prog_compiler_wl_CXX \
18065 lt_prog_compiler_static_CXX \
18066 lt_cv_prog_compiler_c_o_CXX \
18067 export_dynamic_flag_spec_CXX \
18068 whole_archive_flag_spec_CXX \
18069 compiler_needs_object_CXX \
18070 with_gnu_ld_CXX \
18071 allow_undefined_flag_CXX \
18072 no_undefined_flag_CXX \
18073 hardcode_libdir_flag_spec_CXX \
18074 hardcode_libdir_separator_CXX \
18075 exclude_expsyms_CXX \
18076 include_expsyms_CXX \
18077 file_list_spec_CXX \
18078 compiler_lib_search_dirs_CXX \
18079 predep_objects_CXX \
18080 postdep_objects_CXX \
18081 predeps_CXX \
18082 postdeps_CXX \
18083 compiler_lib_search_path_CXX; do
18084     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18085     *[\\\\\\\`\\"\\\$]*)
18086       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18087       ;;
18088     *)
18089       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18090       ;;
18091     esac
18092 done
18093
18094 # Double-quote double-evaled strings.
18095 for var in reload_cmds \
18096 old_postinstall_cmds \
18097 old_postuninstall_cmds \
18098 old_archive_cmds \
18099 extract_expsyms_cmds \
18100 old_archive_from_new_cmds \
18101 old_archive_from_expsyms_cmds \
18102 archive_cmds \
18103 archive_expsym_cmds \
18104 module_cmds \
18105 module_expsym_cmds \
18106 export_symbols_cmds \
18107 prelink_cmds \
18108 postlink_cmds \
18109 postinstall_cmds \
18110 postuninstall_cmds \
18111 finish_cmds \
18112 sys_lib_search_path_spec \
18113 configure_time_dlsearch_path \
18114 configure_time_lt_sys_library_path \
18115 reload_cmds_CXX \
18116 old_archive_cmds_CXX \
18117 old_archive_from_new_cmds_CXX \
18118 old_archive_from_expsyms_cmds_CXX \
18119 archive_cmds_CXX \
18120 archive_expsym_cmds_CXX \
18121 module_cmds_CXX \
18122 module_expsym_cmds_CXX \
18123 export_symbols_cmds_CXX \
18124 prelink_cmds_CXX \
18125 postlink_cmds_CXX; do
18126     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18127     *[\\\\\\\`\\"\\\$]*)
18128       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18129       ;;
18130     *)
18131       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18132       ;;
18133     esac
18134 done
18135
18136 ac_aux_dir='$ac_aux_dir'
18137
18138 # See if we are running on zsh, and set the options that allow our
18139 # commands through without removal of \ escapes INIT.
18140 if test -n "\${ZSH_VERSION+set}"; then
18141    setopt NO_GLOB_SUBST
18142 fi
18143
18144
18145     PACKAGE='$PACKAGE'
18146     VERSION='$VERSION'
18147     RM='$RM'
18148     ofile='$ofile'
18149
18150
18151
18152
18153
18154
18155 _ACEOF
18156
18157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18158
18159 # Handling of arguments.
18160 for ac_config_target in $ac_config_targets
18161 do
18162   case $ac_config_target in
18163     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18164     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18165     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18166     "src/include/fst/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/fst/config.h" ;;
18167     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18168     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18169     "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
18170     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18171     "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;;
18172     "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
18173     "src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;;
18174     "src/extensions/compact/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compact/Makefile" ;;
18175     "src/extensions/compress/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compress/Makefile" ;;
18176     "src/extensions/const/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/const/Makefile" ;;
18177     "src/extensions/far/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/far/Makefile" ;;
18178     "src/extensions/linear/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/linear/Makefile" ;;
18179     "src/extensions/lookahead/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/lookahead/Makefile" ;;
18180     "src/extensions/mpdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/mpdt/Makefile" ;;
18181     "src/extensions/ngram/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/ngram/Makefile" ;;
18182     "src/extensions/pdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/pdt/Makefile" ;;
18183     "src/extensions/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/python/Makefile" ;;
18184     "src/extensions/special/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/special/Makefile" ;;
18185     "src/script/Makefile") CONFIG_FILES="$CONFIG_FILES src/script/Makefile" ;;
18186
18187   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18188   esac
18189 done
18190
18191
18192 # If the user did not use the arguments to specify the items to instantiate,
18193 # then the envvar interface is used.  Set only those that are not.
18194 # We use the long form for the default assignment because of an extremely
18195 # bizarre bug on SunOS 4.1.3.
18196 if $ac_need_defaults; then
18197   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18198   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18199   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18200 fi
18201
18202 # Have a temporary directory for convenience.  Make it in the build tree
18203 # simply because there is no reason against having it here, and in addition,
18204 # creating and moving files from /tmp can sometimes cause problems.
18205 # Hook for its removal unless debugging.
18206 # Note that there is a small window in which the directory will not be cleaned:
18207 # after its creation but before its name has been assigned to `$tmp'.
18208 $debug ||
18209 {
18210   tmp= ac_tmp=
18211   trap 'exit_status=$?
18212   : "${ac_tmp:=$tmp}"
18213   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18214 ' 0
18215   trap 'as_fn_exit 1' 1 2 13 15
18216 }
18217 # Create a (secure) tmp directory for tmp files.
18218
18219 {
18220   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18221   test -d "$tmp"
18222 }  ||
18223 {
18224   tmp=./conf$$-$RANDOM
18225   (umask 077 && mkdir "$tmp")
18226 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18227 ac_tmp=$tmp
18228
18229 # Set up the scripts for CONFIG_FILES section.
18230 # No need to generate them if there are no CONFIG_FILES.
18231 # This happens for instance with `./config.status config.h'.
18232 if test -n "$CONFIG_FILES"; then
18233
18234
18235 ac_cr=`echo X | tr X '\015'`
18236 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18237 # But we know of no other shell where ac_cr would be empty at this
18238 # point, so we can use a bashism as a fallback.
18239 if test "x$ac_cr" = x; then
18240   eval ac_cr=\$\'\\r\'
18241 fi
18242 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18243 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18244   ac_cs_awk_cr='\\r'
18245 else
18246   ac_cs_awk_cr=$ac_cr
18247 fi
18248
18249 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18250 _ACEOF
18251
18252
18253 {
18254   echo "cat >conf$$subs.awk <<_ACEOF" &&
18255   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18256   echo "_ACEOF"
18257 } >conf$$subs.sh ||
18258   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18259 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18260 ac_delim='%!_!# '
18261 for ac_last_try in false false false false false :; do
18262   . ./conf$$subs.sh ||
18263     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18264
18265   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18266   if test $ac_delim_n = $ac_delim_num; then
18267     break
18268   elif $ac_last_try; then
18269     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18270   else
18271     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18272   fi
18273 done
18274 rm -f conf$$subs.sh
18275
18276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18277 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18278 _ACEOF
18279 sed -n '
18280 h
18281 s/^/S["/; s/!.*/"]=/
18282 p
18283 g
18284 s/^[^!]*!//
18285 :repl
18286 t repl
18287 s/'"$ac_delim"'$//
18288 t delim
18289 :nl
18290 h
18291 s/\(.\{148\}\)..*/\1/
18292 t more1
18293 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18294 p
18295 n
18296 b repl
18297 :more1
18298 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18299 p
18300 g
18301 s/.\{148\}//
18302 t nl
18303 :delim
18304 h
18305 s/\(.\{148\}\)..*/\1/
18306 t more2
18307 s/["\\]/\\&/g; s/^/"/; s/$/"/
18308 p
18309 b
18310 :more2
18311 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18312 p
18313 g
18314 s/.\{148\}//
18315 t delim
18316 ' <conf$$subs.awk | sed '
18317 /^[^""]/{
18318   N
18319   s/\n//
18320 }
18321 ' >>$CONFIG_STATUS || ac_write_fail=1
18322 rm -f conf$$subs.awk
18323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18324 _ACAWK
18325 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18326   for (key in S) S_is_set[key] = 1
18327   FS = "\a"
18328
18329 }
18330 {
18331   line = $ 0
18332   nfields = split(line, field, "@")
18333   substed = 0
18334   len = length(field[1])
18335   for (i = 2; i < nfields; i++) {
18336     key = field[i]
18337     keylen = length(key)
18338     if (S_is_set[key]) {
18339       value = S[key]
18340       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18341       len += length(value) + length(field[++i])
18342       substed = 1
18343     } else
18344       len += 1 + keylen
18345   }
18346
18347   print line
18348 }
18349
18350 _ACAWK
18351 _ACEOF
18352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18353 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18354   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18355 else
18356   cat
18357 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18358   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18359 _ACEOF
18360
18361 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18362 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18363 # trailing colons and then remove the whole line if VPATH becomes empty
18364 # (actually we leave an empty line to preserve line numbers).
18365 if test "x$srcdir" = x.; then
18366   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18367 h
18368 s///
18369 s/^/:/
18370 s/[      ]*$/:/
18371 s/:\$(srcdir):/:/g
18372 s/:\${srcdir}:/:/g
18373 s/:@srcdir@:/:/g
18374 s/^:*//
18375 s/:*$//
18376 x
18377 s/\(=[   ]*\).*/\1/
18378 G
18379 s/\n//
18380 s/^[^=]*=[       ]*$//
18381 }'
18382 fi
18383
18384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18385 fi # test -n "$CONFIG_FILES"
18386
18387 # Set up the scripts for CONFIG_HEADERS section.
18388 # No need to generate them if there are no CONFIG_HEADERS.
18389 # This happens for instance with `./config.status Makefile'.
18390 if test -n "$CONFIG_HEADERS"; then
18391 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18392 BEGIN {
18393 _ACEOF
18394
18395 # Transform confdefs.h into an awk script `defines.awk', embedded as
18396 # here-document in config.status, that substitutes the proper values into
18397 # config.h.in to produce config.h.
18398
18399 # Create a delimiter string that does not exist in confdefs.h, to ease
18400 # handling of long lines.
18401 ac_delim='%!_!# '
18402 for ac_last_try in false false :; do
18403   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18404   if test -z "$ac_tt"; then
18405     break
18406   elif $ac_last_try; then
18407     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18408   else
18409     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18410   fi
18411 done
18412
18413 # For the awk script, D is an array of macro values keyed by name,
18414 # likewise P contains macro parameters if any.  Preserve backslash
18415 # newline sequences.
18416
18417 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18418 sed -n '
18419 s/.\{148\}/&'"$ac_delim"'/g
18420 t rset
18421 :rset
18422 s/^[     ]*#[    ]*define[       ][      ]*/ /
18423 t def
18424 d
18425 :def
18426 s/\\$//
18427 t bsnl
18428 s/["\\]/\\&/g
18429 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18430 D["\1"]=" \3"/p
18431 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18432 d
18433 :bsnl
18434 s/["\\]/\\&/g
18435 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18436 D["\1"]=" \3\\\\\\n"\\/p
18437 t cont
18438 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18439 t cont
18440 d
18441 :cont
18442 n
18443 s/.\{148\}/&'"$ac_delim"'/g
18444 t clear
18445 :clear
18446 s/\\$//
18447 t bsnlc
18448 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18449 d
18450 :bsnlc
18451 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18452 b cont
18453 ' <confdefs.h | sed '
18454 s/'"$ac_delim"'/"\\\
18455 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18456
18457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18458   for (key in D) D_is_set[key] = 1
18459   FS = "\a"
18460 }
18461 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18462   line = \$ 0
18463   split(line, arg, " ")
18464   if (arg[1] == "#") {
18465     defundef = arg[2]
18466     mac1 = arg[3]
18467   } else {
18468     defundef = substr(arg[1], 2)
18469     mac1 = arg[2]
18470   }
18471   split(mac1, mac2, "(") #)
18472   macro = mac2[1]
18473   prefix = substr(line, 1, index(line, defundef) - 1)
18474   if (D_is_set[macro]) {
18475     # Preserve the white space surrounding the "#".
18476     print prefix "define", macro P[macro] D[macro]
18477     next
18478   } else {
18479     # Replace #undef with comments.  This is necessary, for example,
18480     # in the case of _POSIX_SOURCE, which is predefined and required
18481     # on some systems where configure will not decide to define it.
18482     if (defundef == "undef") {
18483       print "/*", prefix defundef, macro, "*/"
18484       next
18485     }
18486   }
18487 }
18488 { print }
18489 _ACAWK
18490 _ACEOF
18491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18492   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18493 fi # test -n "$CONFIG_HEADERS"
18494
18495
18496 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18497 shift
18498 for ac_tag
18499 do
18500   case $ac_tag in
18501   :[FHLC]) ac_mode=$ac_tag; continue;;
18502   esac
18503   case $ac_mode$ac_tag in
18504   :[FHL]*:*);;
18505   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18506   :[FH]-) ac_tag=-:-;;
18507   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18508   esac
18509   ac_save_IFS=$IFS
18510   IFS=:
18511   set x $ac_tag
18512   IFS=$ac_save_IFS
18513   shift
18514   ac_file=$1
18515   shift
18516
18517   case $ac_mode in
18518   :L) ac_source=$1;;
18519   :[FH])
18520     ac_file_inputs=
18521     for ac_f
18522     do
18523       case $ac_f in
18524       -) ac_f="$ac_tmp/stdin";;
18525       *) # Look for the file first in the build tree, then in the source tree
18526          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18527          # because $ac_f cannot contain `:'.
18528          test -f "$ac_f" ||
18529            case $ac_f in
18530            [\\/$]*) false;;
18531            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18532            esac ||
18533            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18534       esac
18535       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18536       as_fn_append ac_file_inputs " '$ac_f'"
18537     done
18538
18539     # Let's still pretend it is `configure' which instantiates (i.e., don't
18540     # use $as_me), people would be surprised to read:
18541     #    /* config.h.  Generated by config.status.  */
18542     configure_input='Generated from '`
18543           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18544         `' by configure.'
18545     if test x"$ac_file" != x-; then
18546       configure_input="$ac_file.  $configure_input"
18547       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18548 $as_echo "$as_me: creating $ac_file" >&6;}
18549     fi
18550     # Neutralize special characters interpreted by sed in replacement strings.
18551     case $configure_input in #(
18552     *\&* | *\|* | *\\* )
18553        ac_sed_conf_input=`$as_echo "$configure_input" |
18554        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18555     *) ac_sed_conf_input=$configure_input;;
18556     esac
18557
18558     case $ac_tag in
18559     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18560       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18561     esac
18562     ;;
18563   esac
18564
18565   ac_dir=`$as_dirname -- "$ac_file" ||
18566 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18567          X"$ac_file" : 'X\(//\)[^/]' \| \
18568          X"$ac_file" : 'X\(//\)$' \| \
18569          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18570 $as_echo X"$ac_file" |
18571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18572             s//\1/
18573             q
18574           }
18575           /^X\(\/\/\)[^/].*/{
18576             s//\1/
18577             q
18578           }
18579           /^X\(\/\/\)$/{
18580             s//\1/
18581             q
18582           }
18583           /^X\(\/\).*/{
18584             s//\1/
18585             q
18586           }
18587           s/.*/./; q'`
18588   as_dir="$ac_dir"; as_fn_mkdir_p
18589   ac_builddir=.
18590
18591 case "$ac_dir" in
18592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18593 *)
18594   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18595   # A ".." for each directory in $ac_dir_suffix.
18596   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18597   case $ac_top_builddir_sub in
18598   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18599   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18600   esac ;;
18601 esac
18602 ac_abs_top_builddir=$ac_pwd
18603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18604 # for backward compatibility:
18605 ac_top_builddir=$ac_top_build_prefix
18606
18607 case $srcdir in
18608   .)  # We are building in place.
18609     ac_srcdir=.
18610     ac_top_srcdir=$ac_top_builddir_sub
18611     ac_abs_top_srcdir=$ac_pwd ;;
18612   [\\/]* | ?:[\\/]* )  # Absolute name.
18613     ac_srcdir=$srcdir$ac_dir_suffix;
18614     ac_top_srcdir=$srcdir
18615     ac_abs_top_srcdir=$srcdir ;;
18616   *) # Relative name.
18617     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18618     ac_top_srcdir=$ac_top_build_prefix$srcdir
18619     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18620 esac
18621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18622
18623
18624   case $ac_mode in
18625   :F)
18626   #
18627   # CONFIG_FILE
18628   #
18629
18630   case $INSTALL in
18631   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18632   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18633   esac
18634   ac_MKDIR_P=$MKDIR_P
18635   case $MKDIR_P in
18636   [\\/$]* | ?:[\\/]* ) ;;
18637   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18638   esac
18639 _ACEOF
18640
18641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18642 # If the template does not know about datarootdir, expand it.
18643 # FIXME: This hack should be removed a few years after 2.60.
18644 ac_datarootdir_hack=; ac_datarootdir_seen=
18645 ac_sed_dataroot='
18646 /datarootdir/ {
18647   p
18648   q
18649 }
18650 /@datadir@/p
18651 /@docdir@/p
18652 /@infodir@/p
18653 /@localedir@/p
18654 /@mandir@/p'
18655 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18656 *datarootdir*) ac_datarootdir_seen=yes;;
18657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18658   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18659 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18660 _ACEOF
18661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18662   ac_datarootdir_hack='
18663   s&@datadir@&$datadir&g
18664   s&@docdir@&$docdir&g
18665   s&@infodir@&$infodir&g
18666   s&@localedir@&$localedir&g
18667   s&@mandir@&$mandir&g
18668   s&\\\${datarootdir}&$datarootdir&g' ;;
18669 esac
18670 _ACEOF
18671
18672 # Neutralize VPATH when `$srcdir' = `.'.
18673 # Shell code in configure.ac might set extrasub.
18674 # FIXME: do we really want to maintain this feature?
18675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18676 ac_sed_extra="$ac_vpsub
18677 $extrasub
18678 _ACEOF
18679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18680 :t
18681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18682 s|@configure_input@|$ac_sed_conf_input|;t t
18683 s&@top_builddir@&$ac_top_builddir_sub&;t t
18684 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18685 s&@srcdir@&$ac_srcdir&;t t
18686 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18687 s&@top_srcdir@&$ac_top_srcdir&;t t
18688 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18689 s&@builddir@&$ac_builddir&;t t
18690 s&@abs_builddir@&$ac_abs_builddir&;t t
18691 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18692 s&@INSTALL@&$ac_INSTALL&;t t
18693 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18694 $ac_datarootdir_hack
18695 "
18696 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18697   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18698
18699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18700   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18701   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18702       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18703   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18704 which seems to be undefined.  Please make sure it is defined" >&5
18705 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18706 which seems to be undefined.  Please make sure it is defined" >&2;}
18707
18708   rm -f "$ac_tmp/stdin"
18709   case $ac_file in
18710   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18711   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18712   esac \
18713   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18714  ;;
18715   :H)
18716   #
18717   # CONFIG_HEADER
18718   #
18719   if test x"$ac_file" != x-; then
18720     {
18721       $as_echo "/* $configure_input  */" \
18722       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18723     } >"$ac_tmp/config.h" \
18724       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18725     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18726       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18727 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18728     else
18729       rm -f "$ac_file"
18730       mv "$ac_tmp/config.h" "$ac_file" \
18731         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18732     fi
18733   else
18734     $as_echo "/* $configure_input  */" \
18735       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18736       || as_fn_error $? "could not create -" "$LINENO" 5
18737   fi
18738 # Compute "$ac_file"'s index in $config_headers.
18739 _am_arg="$ac_file"
18740 _am_stamp_count=1
18741 for _am_header in $config_headers :; do
18742   case $_am_header in
18743     $_am_arg | $_am_arg:* )
18744       break ;;
18745     * )
18746       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18747   esac
18748 done
18749 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18750 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18751          X"$_am_arg" : 'X\(//\)[^/]' \| \
18752          X"$_am_arg" : 'X\(//\)$' \| \
18753          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18754 $as_echo X"$_am_arg" |
18755     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18756             s//\1/
18757             q
18758           }
18759           /^X\(\/\/\)[^/].*/{
18760             s//\1/
18761             q
18762           }
18763           /^X\(\/\/\)$/{
18764             s//\1/
18765             q
18766           }
18767           /^X\(\/\).*/{
18768             s//\1/
18769             q
18770           }
18771           s/.*/./; q'`/stamp-h$_am_stamp_count
18772  ;;
18773
18774   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18775 $as_echo "$as_me: executing $ac_file commands" >&6;}
18776  ;;
18777   esac
18778
18779
18780   case $ac_file$ac_mode in
18781     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18782   # Older Autoconf quotes --file arguments for eval, but not when files
18783   # are listed without --file.  Let's play safe and only enable the eval
18784   # if we detect the quoting.
18785   # TODO: see whether this extra hack can be removed once we start
18786   # requiring Autoconf 2.70 or later.
18787   case $CONFIG_FILES in #(
18788   *\'*) :
18789     eval set x "$CONFIG_FILES" ;; #(
18790   *) :
18791     set x $CONFIG_FILES ;; #(
18792   *) :
18793      ;;
18794 esac
18795   shift
18796   # Used to flag and report bootstrapping failures.
18797   am_rc=0
18798   for am_mf
18799   do
18800     # Strip MF so we end up with the name of the file.
18801     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18802     # Check whether this is an Automake generated Makefile which includes
18803     # dependency-tracking related rules and includes.
18804     # Grep'ing the whole file directly is not great: AIX grep has a line
18805     # limit of 2048, but all sed's we know have understand at least 4000.
18806     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18807       || continue
18808     am_dirpart=`$as_dirname -- "$am_mf" ||
18809 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18810          X"$am_mf" : 'X\(//\)[^/]' \| \
18811          X"$am_mf" : 'X\(//\)$' \| \
18812          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18813 $as_echo X"$am_mf" |
18814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18815             s//\1/
18816             q
18817           }
18818           /^X\(\/\/\)[^/].*/{
18819             s//\1/
18820             q
18821           }
18822           /^X\(\/\/\)$/{
18823             s//\1/
18824             q
18825           }
18826           /^X\(\/\).*/{
18827             s//\1/
18828             q
18829           }
18830           s/.*/./; q'`
18831     am_filepart=`$as_basename -- "$am_mf" ||
18832 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18833          X"$am_mf" : 'X\(//\)$' \| \
18834          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18835 $as_echo X/"$am_mf" |
18836     sed '/^.*\/\([^/][^/]*\)\/*$/{
18837             s//\1/
18838             q
18839           }
18840           /^X\/\(\/\/\)$/{
18841             s//\1/
18842             q
18843           }
18844           /^X\/\(\/\).*/{
18845             s//\1/
18846             q
18847           }
18848           s/.*/./; q'`
18849     { echo "$as_me:$LINENO: cd "$am_dirpart" \
18850       && sed -e '/# am--include-marker/d' "$am_filepart" \
18851         | $MAKE -f - am--depfiles" >&5
18852    (cd "$am_dirpart" \
18853       && sed -e '/# am--include-marker/d' "$am_filepart" \
18854         | $MAKE -f - am--depfiles) >&5 2>&5
18855    ac_status=$?
18856    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857    (exit $ac_status); } || am_rc=$?
18858   done
18859   if test $am_rc -ne 0; then
18860     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18862 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18863     for automatic dependency tracking.  Try re-running configure with the
18864     '--disable-dependency-tracking' option to at least be able to build
18865     the package (albeit without support for automatic dependency tracking).
18866 See \`config.log' for more details" "$LINENO" 5; }
18867   fi
18868   { am_dirpart=; unset am_dirpart;}
18869   { am_filepart=; unset am_filepart;}
18870   { am_mf=; unset am_mf;}
18871   { am_rc=; unset am_rc;}
18872   rm -f conftest-deps.mk
18873 }
18874  ;;
18875     "libtool":C)
18876
18877     # See if we are running on zsh, and set the options that allow our
18878     # commands through without removal of \ escapes.
18879     if test -n "${ZSH_VERSION+set}"; then
18880       setopt NO_GLOB_SUBST
18881     fi
18882
18883     cfgfile=${ofile}T
18884     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18885     $RM "$cfgfile"
18886
18887     cat <<_LT_EOF >> "$cfgfile"
18888 #! $SHELL
18889 # Generated automatically by $as_me ($PACKAGE) $VERSION
18890 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18891
18892 # Provide generalized library-building support services.
18893 # Written by Gordon Matzigkeit, 1996
18894
18895 # Copyright (C) 2014 Free Software Foundation, Inc.
18896 # This is free software; see the source for copying conditions.  There is NO
18897 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18898
18899 # GNU Libtool is free software; you can redistribute it and/or modify
18900 # it under the terms of the GNU General Public License as published by
18901 # the Free Software Foundation; either version 2 of of the License, or
18902 # (at your option) any later version.
18903 #
18904 # As a special exception to the GNU General Public License, if you
18905 # distribute this file as part of a program or library that is built
18906 # using GNU Libtool, you may include this file under the  same
18907 # distribution terms that you use for the rest of that program.
18908 #
18909 # GNU Libtool is distributed in the hope that it will be useful, but
18910 # WITHOUT ANY WARRANTY; without even the implied warranty of
18911 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18912 # GNU General Public License for more details.
18913 #
18914 # You should have received a copy of the GNU General Public License
18915 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18916
18917
18918 # The names of the tagged configurations supported by this script.
18919 available_tags='CXX '
18920
18921 # Configured defaults for sys_lib_dlsearch_path munging.
18922 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18923
18924 # ### BEGIN LIBTOOL CONFIG
18925
18926 # Whether or not to build static libraries.
18927 build_old_libs=$enable_static
18928
18929 # Which release of libtool.m4 was used?
18930 macro_version=$macro_version
18931 macro_revision=$macro_revision
18932
18933 # Whether or not to build shared libraries.
18934 build_libtool_libs=$enable_shared
18935
18936 # What type of objects to build.
18937 pic_mode=$pic_mode
18938
18939 # Whether or not to optimize for fast installation.
18940 fast_install=$enable_fast_install
18941
18942 # Shared archive member basename,for filename based shared library versioning on AIX.
18943 shared_archive_member_spec=$shared_archive_member_spec
18944
18945 # Shell to use when invoking shell scripts.
18946 SHELL=$lt_SHELL
18947
18948 # An echo program that protects backslashes.
18949 ECHO=$lt_ECHO
18950
18951 # The PATH separator for the build system.
18952 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18953
18954 # The host system.
18955 host_alias=$host_alias
18956 host=$host
18957 host_os=$host_os
18958
18959 # The build system.
18960 build_alias=$build_alias
18961 build=$build
18962 build_os=$build_os
18963
18964 # A sed program that does not truncate output.
18965 SED=$lt_SED
18966
18967 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18968 Xsed="\$SED -e 1s/^X//"
18969
18970 # A grep program that handles long lines.
18971 GREP=$lt_GREP
18972
18973 # An ERE matcher.
18974 EGREP=$lt_EGREP
18975
18976 # A literal string matcher.
18977 FGREP=$lt_FGREP
18978
18979 # A BSD- or MS-compatible name lister.
18980 NM=$lt_NM
18981
18982 # Whether we need soft or hard links.
18983 LN_S=$lt_LN_S
18984
18985 # What is the maximum length of a command?
18986 max_cmd_len=$max_cmd_len
18987
18988 # Object file suffix (normally "o").
18989 objext=$ac_objext
18990
18991 # Executable file suffix (normally "").
18992 exeext=$exeext
18993
18994 # whether the shell understands "unset".
18995 lt_unset=$lt_unset
18996
18997 # turn spaces into newlines.
18998 SP2NL=$lt_lt_SP2NL
18999
19000 # turn newlines into spaces.
19001 NL2SP=$lt_lt_NL2SP
19002
19003 # convert \$build file names to \$host format.
19004 to_host_file_cmd=$lt_cv_to_host_file_cmd
19005
19006 # convert \$build files to toolchain format.
19007 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19008
19009 # An object symbol dumper.
19010 OBJDUMP=$lt_OBJDUMP
19011
19012 # Method to check whether dependent libraries are shared objects.
19013 deplibs_check_method=$lt_deplibs_check_method
19014
19015 # Command to use when deplibs_check_method = "file_magic".
19016 file_magic_cmd=$lt_file_magic_cmd
19017
19018 # How to find potential files when deplibs_check_method = "file_magic".
19019 file_magic_glob=$lt_file_magic_glob
19020
19021 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19022 want_nocaseglob=$lt_want_nocaseglob
19023
19024 # DLL creation program.
19025 DLLTOOL=$lt_DLLTOOL
19026
19027 # Command to associate shared and link libraries.
19028 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19029
19030 # The archiver.
19031 AR=$lt_AR
19032
19033 # Flags to create an archive.
19034 AR_FLAGS=$lt_AR_FLAGS
19035
19036 # How to feed a file listing to the archiver.
19037 archiver_list_spec=$lt_archiver_list_spec
19038
19039 # A symbol stripping program.
19040 STRIP=$lt_STRIP
19041
19042 # Commands used to install an old-style archive.
19043 RANLIB=$lt_RANLIB
19044 old_postinstall_cmds=$lt_old_postinstall_cmds
19045 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19046
19047 # Whether to use a lock for old archive extraction.
19048 lock_old_archive_extraction=$lock_old_archive_extraction
19049
19050 # A C compiler.
19051 LTCC=$lt_CC
19052
19053 # LTCC compiler flags.
19054 LTCFLAGS=$lt_CFLAGS
19055
19056 # Take the output of nm and produce a listing of raw symbols and C names.
19057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19058
19059 # Transform the output of nm in a proper C declaration.
19060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19061
19062 # Transform the output of nm into a list of symbols to manually relocate.
19063 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19064
19065 # Transform the output of nm in a C name address pair.
19066 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19067
19068 # Transform the output of nm in a C name address pair when lib prefix is needed.
19069 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19070
19071 # The name lister interface.
19072 nm_interface=$lt_lt_cv_nm_interface
19073
19074 # Specify filename containing input files for \$NM.
19075 nm_file_list_spec=$lt_nm_file_list_spec
19076
19077 # The root where to search for dependent libraries,and where our libraries should be installed.
19078 lt_sysroot=$lt_sysroot
19079
19080 # Command to truncate a binary pipe.
19081 lt_truncate_bin=$lt_lt_cv_truncate_bin
19082
19083 # The name of the directory that contains temporary libtool files.
19084 objdir=$objdir
19085
19086 # Used to examine libraries when file_magic_cmd begins with "file".
19087 MAGIC_CMD=$MAGIC_CMD
19088
19089 # Must we lock files when doing compilation?
19090 need_locks=$lt_need_locks
19091
19092 # Manifest tool.
19093 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19094
19095 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19096 DSYMUTIL=$lt_DSYMUTIL
19097
19098 # Tool to change global to local symbols on Mac OS X.
19099 NMEDIT=$lt_NMEDIT
19100
19101 # Tool to manipulate fat objects and archives on Mac OS X.
19102 LIPO=$lt_LIPO
19103
19104 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19105 OTOOL=$lt_OTOOL
19106
19107 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19108 OTOOL64=$lt_OTOOL64
19109
19110 # Old archive suffix (normally "a").
19111 libext=$libext
19112
19113 # Shared library suffix (normally ".so").
19114 shrext_cmds=$lt_shrext_cmds
19115
19116 # The commands to extract the exported symbol list from a shared archive.
19117 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19118
19119 # Variables whose values should be saved in libtool wrapper scripts and
19120 # restored at link time.
19121 variables_saved_for_relink=$lt_variables_saved_for_relink
19122
19123 # Do we need the "lib" prefix for modules?
19124 need_lib_prefix=$need_lib_prefix
19125
19126 # Do we need a version for libraries?
19127 need_version=$need_version
19128
19129 # Library versioning type.
19130 version_type=$version_type
19131
19132 # Shared library runtime path variable.
19133 runpath_var=$runpath_var
19134
19135 # Shared library path variable.
19136 shlibpath_var=$shlibpath_var
19137
19138 # Is shlibpath searched before the hard-coded library search path?
19139 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19140
19141 # Format of library name prefix.
19142 libname_spec=$lt_libname_spec
19143
19144 # List of archive names.  First name is the real one, the rest are links.
19145 # The last name is the one that the linker finds with -lNAME
19146 library_names_spec=$lt_library_names_spec
19147
19148 # The coded name of the library, if different from the real name.
19149 soname_spec=$lt_soname_spec
19150
19151 # Permission mode override for installation of shared libraries.
19152 install_override_mode=$lt_install_override_mode
19153
19154 # Command to use after installation of a shared archive.
19155 postinstall_cmds=$lt_postinstall_cmds
19156
19157 # Command to use after uninstallation of a shared archive.
19158 postuninstall_cmds=$lt_postuninstall_cmds
19159
19160 # Commands used to finish a libtool library installation in a directory.
19161 finish_cmds=$lt_finish_cmds
19162
19163 # As "finish_cmds", except a single script fragment to be evaled but
19164 # not shown.
19165 finish_eval=$lt_finish_eval
19166
19167 # Whether we should hardcode library paths into libraries.
19168 hardcode_into_libs=$hardcode_into_libs
19169
19170 # Compile-time system search path for libraries.
19171 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19172
19173 # Detected run-time system search path for libraries.
19174 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19175
19176 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19177 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19178
19179 # Whether dlopen is supported.
19180 dlopen_support=$enable_dlopen
19181
19182 # Whether dlopen of programs is supported.
19183 dlopen_self=$enable_dlopen_self
19184
19185 # Whether dlopen of statically linked programs is supported.
19186 dlopen_self_static=$enable_dlopen_self_static
19187
19188 # Commands to strip libraries.
19189 old_striplib=$lt_old_striplib
19190 striplib=$lt_striplib
19191
19192
19193 # The linker used to build libraries.
19194 LD=$lt_LD
19195
19196 # How to create reloadable object files.
19197 reload_flag=$lt_reload_flag
19198 reload_cmds=$lt_reload_cmds
19199
19200 # Commands used to build an old-style archive.
19201 old_archive_cmds=$lt_old_archive_cmds
19202
19203 # A language specific compiler.
19204 CC=$lt_compiler
19205
19206 # Is the compiler the GNU compiler?
19207 with_gcc=$GCC
19208
19209 # Compiler flag to turn off builtin functions.
19210 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19211
19212 # Additional compiler flags for building library objects.
19213 pic_flag=$lt_lt_prog_compiler_pic
19214
19215 # How to pass a linker flag through the compiler.
19216 wl=$lt_lt_prog_compiler_wl
19217
19218 # Compiler flag to prevent dynamic linking.
19219 link_static_flag=$lt_lt_prog_compiler_static
19220
19221 # Does compiler simultaneously support -c and -o options?
19222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19223
19224 # Whether or not to add -lc for building shared libraries.
19225 build_libtool_need_lc=$archive_cmds_need_lc
19226
19227 # Whether or not to disallow shared libs when runtime libs are static.
19228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19229
19230 # Compiler flag to allow reflexive dlopens.
19231 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19232
19233 # Compiler flag to generate shared objects directly from archives.
19234 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19235
19236 # Whether the compiler copes with passing no objects directly.
19237 compiler_needs_object=$lt_compiler_needs_object
19238
19239 # Create an old-style archive from a shared archive.
19240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19241
19242 # Create a temporary old-style archive to link instead of a shared archive.
19243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19244
19245 # Commands used to build a shared archive.
19246 archive_cmds=$lt_archive_cmds
19247 archive_expsym_cmds=$lt_archive_expsym_cmds
19248
19249 # Commands used to build a loadable module if different from building
19250 # a shared archive.
19251 module_cmds=$lt_module_cmds
19252 module_expsym_cmds=$lt_module_expsym_cmds
19253
19254 # Whether we are building with GNU ld or not.
19255 with_gnu_ld=$lt_with_gnu_ld
19256
19257 # Flag that allows shared libraries with undefined symbols to be built.
19258 allow_undefined_flag=$lt_allow_undefined_flag
19259
19260 # Flag that enforces no undefined symbols.
19261 no_undefined_flag=$lt_no_undefined_flag
19262
19263 # Flag to hardcode \$libdir into a binary during linking.
19264 # This must work even if \$libdir does not exist
19265 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19266
19267 # Whether we need a single "-rpath" flag with a separated argument.
19268 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19269
19270 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19271 # DIR into the resulting binary.
19272 hardcode_direct=$hardcode_direct
19273
19274 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19275 # DIR into the resulting binary and the resulting library dependency is
19276 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19277 # library is relocated.
19278 hardcode_direct_absolute=$hardcode_direct_absolute
19279
19280 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19281 # into the resulting binary.
19282 hardcode_minus_L=$hardcode_minus_L
19283
19284 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19285 # into the resulting binary.
19286 hardcode_shlibpath_var=$hardcode_shlibpath_var
19287
19288 # Set to "yes" if building a shared library automatically hardcodes DIR
19289 # into the library and all subsequent libraries and executables linked
19290 # against it.
19291 hardcode_automatic=$hardcode_automatic
19292
19293 # Set to yes if linker adds runtime paths of dependent libraries
19294 # to runtime path list.
19295 inherit_rpath=$inherit_rpath
19296
19297 # Whether libtool must link a program against all its dependency libraries.
19298 link_all_deplibs=$link_all_deplibs
19299
19300 # Set to "yes" if exported symbols are required.
19301 always_export_symbols=$always_export_symbols
19302
19303 # The commands to list exported symbols.
19304 export_symbols_cmds=$lt_export_symbols_cmds
19305
19306 # Symbols that should not be listed in the preloaded symbols.
19307 exclude_expsyms=$lt_exclude_expsyms
19308
19309 # Symbols that must always be exported.
19310 include_expsyms=$lt_include_expsyms
19311
19312 # Commands necessary for linking programs (against libraries) with templates.
19313 prelink_cmds=$lt_prelink_cmds
19314
19315 # Commands necessary for finishing linking programs.
19316 postlink_cmds=$lt_postlink_cmds
19317
19318 # Specify filename containing input files.
19319 file_list_spec=$lt_file_list_spec
19320
19321 # How to hardcode a shared library path into an executable.
19322 hardcode_action=$hardcode_action
19323
19324 # The directories searched by this compiler when creating a shared library.
19325 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19326
19327 # Dependencies to place before and after the objects being linked to
19328 # create a shared library.
19329 predep_objects=$lt_predep_objects
19330 postdep_objects=$lt_postdep_objects
19331 predeps=$lt_predeps
19332 postdeps=$lt_postdeps
19333
19334 # The library search path used internally by the compiler when linking
19335 # a shared library.
19336 compiler_lib_search_path=$lt_compiler_lib_search_path
19337
19338 # ### END LIBTOOL CONFIG
19339
19340 _LT_EOF
19341
19342     cat <<'_LT_EOF' >> "$cfgfile"
19343
19344 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19345
19346 # func_munge_path_list VARIABLE PATH
19347 # -----------------------------------
19348 # VARIABLE is name of variable containing _space_ separated list of
19349 # directories to be munged by the contents of PATH, which is string
19350 # having a format:
19351 # "DIR[:DIR]:"
19352 #       string "DIR[ DIR]" will be prepended to VARIABLE
19353 # ":DIR[:DIR]"
19354 #       string "DIR[ DIR]" will be appended to VARIABLE
19355 # "DIRP[:DIRP]::[DIRA:]DIRA"
19356 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19357 #       "DIRA[ DIRA]" will be appended to VARIABLE
19358 # "DIR[:DIR]"
19359 #       VARIABLE will be replaced by "DIR[ DIR]"
19360 func_munge_path_list ()
19361 {
19362     case x$2 in
19363     x)
19364         ;;
19365     *:)
19366         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19367         ;;
19368     x:*)
19369         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19370         ;;
19371     *::*)
19372         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19373         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19374         ;;
19375     *)
19376         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19377         ;;
19378     esac
19379 }
19380
19381
19382 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19383 func_cc_basename ()
19384 {
19385     for cc_temp in $*""; do
19386       case $cc_temp in
19387         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19388         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19389         \-*) ;;
19390         *) break;;
19391       esac
19392     done
19393     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19394 }
19395
19396
19397 # ### END FUNCTIONS SHARED WITH CONFIGURE
19398
19399 _LT_EOF
19400
19401   case $host_os in
19402   aix3*)
19403     cat <<\_LT_EOF >> "$cfgfile"
19404 # AIX sometimes has problems with the GCC collect2 program.  For some
19405 # reason, if we set the COLLECT_NAMES environment variable, the problems
19406 # vanish in a puff of smoke.
19407 if test set != "${COLLECT_NAMES+set}"; then
19408   COLLECT_NAMES=
19409   export COLLECT_NAMES
19410 fi
19411 _LT_EOF
19412     ;;
19413   esac
19414
19415
19416 ltmain=$ac_aux_dir/ltmain.sh
19417
19418
19419   # We use sed instead of cat because bash on DJGPP gets confused if
19420   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19421   # text mode, it properly converts lines to CR/LF.  This bash problem
19422   # is reportedly fixed, but why not run on old versions too?
19423   sed '$q' "$ltmain" >> "$cfgfile" \
19424      || (rm -f "$cfgfile"; exit 1)
19425
19426    mv -f "$cfgfile" "$ofile" ||
19427     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19428   chmod +x "$ofile"
19429
19430
19431     cat <<_LT_EOF >> "$ofile"
19432
19433 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19434
19435 # The linker used to build libraries.
19436 LD=$lt_LD_CXX
19437
19438 # How to create reloadable object files.
19439 reload_flag=$lt_reload_flag_CXX
19440 reload_cmds=$lt_reload_cmds_CXX
19441
19442 # Commands used to build an old-style archive.
19443 old_archive_cmds=$lt_old_archive_cmds_CXX
19444
19445 # A language specific compiler.
19446 CC=$lt_compiler_CXX
19447
19448 # Is the compiler the GNU compiler?
19449 with_gcc=$GCC_CXX
19450
19451 # Compiler flag to turn off builtin functions.
19452 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19453
19454 # Additional compiler flags for building library objects.
19455 pic_flag=$lt_lt_prog_compiler_pic_CXX
19456
19457 # How to pass a linker flag through the compiler.
19458 wl=$lt_lt_prog_compiler_wl_CXX
19459
19460 # Compiler flag to prevent dynamic linking.
19461 link_static_flag=$lt_lt_prog_compiler_static_CXX
19462
19463 # Does compiler simultaneously support -c and -o options?
19464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19465
19466 # Whether or not to add -lc for building shared libraries.
19467 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19468
19469 # Whether or not to disallow shared libs when runtime libs are static.
19470 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19471
19472 # Compiler flag to allow reflexive dlopens.
19473 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19474
19475 # Compiler flag to generate shared objects directly from archives.
19476 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19477
19478 # Whether the compiler copes with passing no objects directly.
19479 compiler_needs_object=$lt_compiler_needs_object_CXX
19480
19481 # Create an old-style archive from a shared archive.
19482 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19483
19484 # Create a temporary old-style archive to link instead of a shared archive.
19485 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19486
19487 # Commands used to build a shared archive.
19488 archive_cmds=$lt_archive_cmds_CXX
19489 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19490
19491 # Commands used to build a loadable module if different from building
19492 # a shared archive.
19493 module_cmds=$lt_module_cmds_CXX
19494 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19495
19496 # Whether we are building with GNU ld or not.
19497 with_gnu_ld=$lt_with_gnu_ld_CXX
19498
19499 # Flag that allows shared libraries with undefined symbols to be built.
19500 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19501
19502 # Flag that enforces no undefined symbols.
19503 no_undefined_flag=$lt_no_undefined_flag_CXX
19504
19505 # Flag to hardcode \$libdir into a binary during linking.
19506 # This must work even if \$libdir does not exist
19507 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19508
19509 # Whether we need a single "-rpath" flag with a separated argument.
19510 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19511
19512 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19513 # DIR into the resulting binary.
19514 hardcode_direct=$hardcode_direct_CXX
19515
19516 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19517 # DIR into the resulting binary and the resulting library dependency is
19518 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19519 # library is relocated.
19520 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19521
19522 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19523 # into the resulting binary.
19524 hardcode_minus_L=$hardcode_minus_L_CXX
19525
19526 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19527 # into the resulting binary.
19528 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19529
19530 # Set to "yes" if building a shared library automatically hardcodes DIR
19531 # into the library and all subsequent libraries and executables linked
19532 # against it.
19533 hardcode_automatic=$hardcode_automatic_CXX
19534
19535 # Set to yes if linker adds runtime paths of dependent libraries
19536 # to runtime path list.
19537 inherit_rpath=$inherit_rpath_CXX
19538
19539 # Whether libtool must link a program against all its dependency libraries.
19540 link_all_deplibs=$link_all_deplibs_CXX
19541
19542 # Set to "yes" if exported symbols are required.
19543 always_export_symbols=$always_export_symbols_CXX
19544
19545 # The commands to list exported symbols.
19546 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19547
19548 # Symbols that should not be listed in the preloaded symbols.
19549 exclude_expsyms=$lt_exclude_expsyms_CXX
19550
19551 # Symbols that must always be exported.
19552 include_expsyms=$lt_include_expsyms_CXX
19553
19554 # Commands necessary for linking programs (against libraries) with templates.
19555 prelink_cmds=$lt_prelink_cmds_CXX
19556
19557 # Commands necessary for finishing linking programs.
19558 postlink_cmds=$lt_postlink_cmds_CXX
19559
19560 # Specify filename containing input files.
19561 file_list_spec=$lt_file_list_spec_CXX
19562
19563 # How to hardcode a shared library path into an executable.
19564 hardcode_action=$hardcode_action_CXX
19565
19566 # The directories searched by this compiler when creating a shared library.
19567 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19568
19569 # Dependencies to place before and after the objects being linked to
19570 # create a shared library.
19571 predep_objects=$lt_predep_objects_CXX
19572 postdep_objects=$lt_postdep_objects_CXX
19573 predeps=$lt_predeps_CXX
19574 postdeps=$lt_postdeps_CXX
19575
19576 # The library search path used internally by the compiler when linking
19577 # a shared library.
19578 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19579
19580 # ### END LIBTOOL TAG CONFIG: CXX
19581 _LT_EOF
19582
19583  ;;
19584
19585   esac
19586 done # for ac_tag
19587
19588
19589 as_fn_exit 0
19590 _ACEOF
19591 ac_clean_files=$ac_clean_files_save
19592
19593 test $ac_write_fail = 0 ||
19594   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19595
19596
19597 # configure is writing to config.log, and then calls config.status.
19598 # config.status does its own redirection, appending to config.log.
19599 # Unfortunately, on DOS this fails, as config.log is still kept open
19600 # by configure, so config.status won't be able to write to it; its
19601 # output is simply discarded.  So we exec the FD to /dev/null,
19602 # effectively closing config.log, so it can be properly (re)opened and
19603 # appended to by config.status.  When coming back to configure, we
19604 # need to make the FD available again.
19605 if test "$no_create" != yes; then
19606   ac_cs_success=:
19607   ac_config_status_args=
19608   test "$silent" = yes &&
19609     ac_config_status_args="$ac_config_status_args --quiet"
19610   exec 5>/dev/null
19611   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19612   exec 5>>config.log
19613   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19614   # would make configure fail if this is the last instruction.
19615   $ac_cs_success || as_fn_exit 1
19616 fi
19617 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19618   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19619 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19620 fi
19621