Imported Upstream version 1.7.7
[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.7.
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.7'
594 PACKAGE_STRING='OpenFst 1.7.7'
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.7 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.7:";;
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.7
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.7, 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.7'
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*)
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=cru}
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     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6807   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6808   ac_status=$?
6809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810   test $ac_status = 0; } && test -s "$nlist"; then
6811       # Try sorting and uniquifying the output.
6812       if sort "$nlist" | uniq > "$nlist"T; then
6813         mv -f "$nlist"T "$nlist"
6814       else
6815         rm -f "$nlist"T
6816       fi
6817
6818       # Make sure that we snagged all the symbols we need.
6819       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6820         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6821           cat <<_LT_EOF > conftest.$ac_ext
6822 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6823 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6824 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6825    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6826 # define LT_DLSYM_CONST
6827 #elif defined __osf__
6828 /* This system does not cope well with relocations in const data.  */
6829 # define LT_DLSYM_CONST
6830 #else
6831 # define LT_DLSYM_CONST const
6832 #endif
6833
6834 #ifdef __cplusplus
6835 extern "C" {
6836 #endif
6837
6838 _LT_EOF
6839           # Now generate the symbol file.
6840           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6841
6842           cat <<_LT_EOF >> conftest.$ac_ext
6843
6844 /* The mapping between symbol names and symbols.  */
6845 LT_DLSYM_CONST struct {
6846   const char *name;
6847   void       *address;
6848 }
6849 lt__PROGRAM__LTX_preloaded_symbols[] =
6850 {
6851   { "@PROGRAM@", (void *) 0 },
6852 _LT_EOF
6853           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6854           cat <<\_LT_EOF >> conftest.$ac_ext
6855   {0, (void *) 0}
6856 };
6857
6858 /* This works around a problem in FreeBSD linker */
6859 #ifdef FREEBSD_WORKAROUND
6860 static const void *lt_preloaded_setup() {
6861   return lt__PROGRAM__LTX_preloaded_symbols;
6862 }
6863 #endif
6864
6865 #ifdef __cplusplus
6866 }
6867 #endif
6868 _LT_EOF
6869           # Now try linking the two files.
6870           mv conftest.$ac_objext conftstm.$ac_objext
6871           lt_globsym_save_LIBS=$LIBS
6872           lt_globsym_save_CFLAGS=$CFLAGS
6873           LIBS=conftstm.$ac_objext
6874           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6875           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6876   (eval $ac_link) 2>&5
6877   ac_status=$?
6878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6879   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6880             pipe_works=yes
6881           fi
6882           LIBS=$lt_globsym_save_LIBS
6883           CFLAGS=$lt_globsym_save_CFLAGS
6884         else
6885           echo "cannot find nm_test_func in $nlist" >&5
6886         fi
6887       else
6888         echo "cannot find nm_test_var in $nlist" >&5
6889       fi
6890     else
6891       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6892     fi
6893   else
6894     echo "$progname: failed program was:" >&5
6895     cat conftest.$ac_ext >&5
6896   fi
6897   rm -rf conftest* conftst*
6898
6899   # Do not use the global_symbol_pipe unless it works.
6900   if test yes = "$pipe_works"; then
6901     break
6902   else
6903     lt_cv_sys_global_symbol_pipe=
6904   fi
6905 done
6906
6907 fi
6908
6909 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6910   lt_cv_sys_global_symbol_to_cdecl=
6911 fi
6912 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6914 $as_echo "failed" >&6; }
6915 else
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6917 $as_echo "ok" >&6; }
6918 fi
6919
6920 # Response file support.
6921 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6922   nm_file_list_spec='@'
6923 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6924   nm_file_list_spec='@'
6925 fi
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
6961
6962
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6964 $as_echo_n "checking for sysroot... " >&6; }
6965
6966 # Check whether --with-sysroot was given.
6967 if test "${with_sysroot+set}" = set; then :
6968   withval=$with_sysroot;
6969 else
6970   with_sysroot=no
6971 fi
6972
6973
6974 lt_sysroot=
6975 case $with_sysroot in #(
6976  yes)
6977    if test yes = "$GCC"; then
6978      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6979    fi
6980    ;; #(
6981  /*)
6982    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6983    ;; #(
6984  no|'')
6985    ;; #(
6986  *)
6987    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6988 $as_echo "$with_sysroot" >&6; }
6989    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6990    ;;
6991 esac
6992
6993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6994 $as_echo "${lt_sysroot:-no}" >&6; }
6995
6996
6997
6998
6999
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7001 $as_echo_n "checking for a working dd... " >&6; }
7002 if ${ac_cv_path_lt_DD+:} false; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   printf 0123456789abcdef0123456789abcdef >conftest.i
7006 cat conftest.i conftest.i >conftest2.i
7007 : ${lt_DD:=$DD}
7008 if test -z "$lt_DD"; then
7009   ac_path_lt_DD_found=false
7010   # Loop through the user's path and test for each of PROGNAME-LIST
7011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014   IFS=$as_save_IFS
7015   test -z "$as_dir" && as_dir=.
7016     for ac_prog in dd; do
7017     for ac_exec_ext in '' $ac_executable_extensions; do
7018       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7019       as_fn_executable_p "$ac_path_lt_DD" || continue
7020 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7021   cmp -s conftest.i conftest.out \
7022   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7023 fi
7024       $ac_path_lt_DD_found && break 3
7025     done
7026   done
7027   done
7028 IFS=$as_save_IFS
7029   if test -z "$ac_cv_path_lt_DD"; then
7030     :
7031   fi
7032 else
7033   ac_cv_path_lt_DD=$lt_DD
7034 fi
7035
7036 rm -f conftest.i conftest2.i conftest.out
7037 fi
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7039 $as_echo "$ac_cv_path_lt_DD" >&6; }
7040
7041
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7043 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7044 if ${lt_cv_truncate_bin+:} false; then :
7045   $as_echo_n "(cached) " >&6
7046 else
7047   printf 0123456789abcdef0123456789abcdef >conftest.i
7048 cat conftest.i conftest.i >conftest2.i
7049 lt_cv_truncate_bin=
7050 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7051   cmp -s conftest.i conftest.out \
7052   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7053 fi
7054 rm -f conftest.i conftest2.i conftest.out
7055 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7056 fi
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7058 $as_echo "$lt_cv_truncate_bin" >&6; }
7059
7060
7061
7062
7063
7064
7065
7066 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7067 func_cc_basename ()
7068 {
7069     for cc_temp in $*""; do
7070       case $cc_temp in
7071         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7072         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7073         \-*) ;;
7074         *) break;;
7075       esac
7076     done
7077     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7078 }
7079
7080 # Check whether --enable-libtool-lock was given.
7081 if test "${enable_libtool_lock+set}" = set; then :
7082   enableval=$enable_libtool_lock;
7083 fi
7084
7085 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7086
7087 # Some flags need to be propagated to the compiler or linker for good
7088 # libtool support.
7089 case $host in
7090 ia64-*-hpux*)
7091   # Find out what ABI is being produced by ac_compile, and set mode
7092   # options accordingly.
7093   echo 'int i;' > conftest.$ac_ext
7094   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7095   (eval $ac_compile) 2>&5
7096   ac_status=$?
7097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098   test $ac_status = 0; }; then
7099     case `/usr/bin/file conftest.$ac_objext` in
7100       *ELF-32*)
7101         HPUX_IA64_MODE=32
7102         ;;
7103       *ELF-64*)
7104         HPUX_IA64_MODE=64
7105         ;;
7106     esac
7107   fi
7108   rm -rf conftest*
7109   ;;
7110 *-*-irix6*)
7111   # Find out what ABI is being produced by ac_compile, and set linker
7112   # options accordingly.
7113   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7114   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7115   (eval $ac_compile) 2>&5
7116   ac_status=$?
7117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7118   test $ac_status = 0; }; then
7119     if test yes = "$lt_cv_prog_gnu_ld"; then
7120       case `/usr/bin/file conftest.$ac_objext` in
7121         *32-bit*)
7122           LD="${LD-ld} -melf32bsmip"
7123           ;;
7124         *N32*)
7125           LD="${LD-ld} -melf32bmipn32"
7126           ;;
7127         *64-bit*)
7128           LD="${LD-ld} -melf64bmip"
7129         ;;
7130       esac
7131     else
7132       case `/usr/bin/file conftest.$ac_objext` in
7133         *32-bit*)
7134           LD="${LD-ld} -32"
7135           ;;
7136         *N32*)
7137           LD="${LD-ld} -n32"
7138           ;;
7139         *64-bit*)
7140           LD="${LD-ld} -64"
7141           ;;
7142       esac
7143     fi
7144   fi
7145   rm -rf conftest*
7146   ;;
7147
7148 mips64*-*linux*)
7149   # Find out what ABI is being produced by ac_compile, and set linker
7150   # options accordingly.
7151   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7152   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7153   (eval $ac_compile) 2>&5
7154   ac_status=$?
7155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7156   test $ac_status = 0; }; then
7157     emul=elf
7158     case `/usr/bin/file conftest.$ac_objext` in
7159       *32-bit*)
7160         emul="${emul}32"
7161         ;;
7162       *64-bit*)
7163         emul="${emul}64"
7164         ;;
7165     esac
7166     case `/usr/bin/file conftest.$ac_objext` in
7167       *MSB*)
7168         emul="${emul}btsmip"
7169         ;;
7170       *LSB*)
7171         emul="${emul}ltsmip"
7172         ;;
7173     esac
7174     case `/usr/bin/file conftest.$ac_objext` in
7175       *N32*)
7176         emul="${emul}n32"
7177         ;;
7178     esac
7179     LD="${LD-ld} -m $emul"
7180   fi
7181   rm -rf conftest*
7182   ;;
7183
7184 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7185 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7186   # Find out what ABI is being produced by ac_compile, and set linker
7187   # options accordingly.  Note that the listed cases only cover the
7188   # situations where additional linker options are needed (such as when
7189   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7190   # vice versa); the common cases where no linker options are needed do
7191   # not appear in the list.
7192   echo 'int i;' > conftest.$ac_ext
7193   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7194   (eval $ac_compile) 2>&5
7195   ac_status=$?
7196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197   test $ac_status = 0; }; then
7198     case `/usr/bin/file conftest.o` in
7199       *32-bit*)
7200         case $host in
7201           x86_64-*kfreebsd*-gnu)
7202             LD="${LD-ld} -m elf_i386_fbsd"
7203             ;;
7204           x86_64-*linux*)
7205             case `/usr/bin/file conftest.o` in
7206               *x86-64*)
7207                 LD="${LD-ld} -m elf32_x86_64"
7208                 ;;
7209               *)
7210                 LD="${LD-ld} -m elf_i386"
7211                 ;;
7212             esac
7213             ;;
7214           powerpc64le-*linux*)
7215             LD="${LD-ld} -m elf32lppclinux"
7216             ;;
7217           powerpc64-*linux*)
7218             LD="${LD-ld} -m elf32ppclinux"
7219             ;;
7220           s390x-*linux*)
7221             LD="${LD-ld} -m elf_s390"
7222             ;;
7223           sparc64-*linux*)
7224             LD="${LD-ld} -m elf32_sparc"
7225             ;;
7226         esac
7227         ;;
7228       *64-bit*)
7229         case $host in
7230           x86_64-*kfreebsd*-gnu)
7231             LD="${LD-ld} -m elf_x86_64_fbsd"
7232             ;;
7233           x86_64-*linux*)
7234             LD="${LD-ld} -m elf_x86_64"
7235             ;;
7236           powerpcle-*linux*)
7237             LD="${LD-ld} -m elf64lppc"
7238             ;;
7239           powerpc-*linux*)
7240             LD="${LD-ld} -m elf64ppc"
7241             ;;
7242           s390*-*linux*|s390*-*tpf*)
7243             LD="${LD-ld} -m elf64_s390"
7244             ;;
7245           sparc*-*linux*)
7246             LD="${LD-ld} -m elf64_sparc"
7247             ;;
7248         esac
7249         ;;
7250     esac
7251   fi
7252   rm -rf conftest*
7253   ;;
7254
7255 *-*-sco3.2v5*)
7256   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7257   SAVE_CFLAGS=$CFLAGS
7258   CFLAGS="$CFLAGS -belf"
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7260 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7261 if ${lt_cv_cc_needs_belf+:} false; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   ac_ext=c
7265 ac_cpp='$CPP $CPPFLAGS'
7266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269
7270      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h.  */
7272
7273 int
7274 main ()
7275 {
7276
7277   ;
7278   return 0;
7279 }
7280 _ACEOF
7281 if ac_fn_c_try_link "$LINENO"; then :
7282   lt_cv_cc_needs_belf=yes
7283 else
7284   lt_cv_cc_needs_belf=no
7285 fi
7286 rm -f core conftest.err conftest.$ac_objext \
7287     conftest$ac_exeext conftest.$ac_ext
7288      ac_ext=c
7289 ac_cpp='$CPP $CPPFLAGS'
7290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7293
7294 fi
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7296 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7297   if test yes != "$lt_cv_cc_needs_belf"; then
7298     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7299     CFLAGS=$SAVE_CFLAGS
7300   fi
7301   ;;
7302 *-*solaris*)
7303   # Find out what ABI is being produced by ac_compile, and set linker
7304   # options accordingly.
7305   echo 'int i;' > conftest.$ac_ext
7306   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7307   (eval $ac_compile) 2>&5
7308   ac_status=$?
7309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7310   test $ac_status = 0; }; then
7311     case `/usr/bin/file conftest.o` in
7312     *64-bit*)
7313       case $lt_cv_prog_gnu_ld in
7314       yes*)
7315         case $host in
7316         i?86-*-solaris*|x86_64-*-solaris*)
7317           LD="${LD-ld} -m elf_x86_64"
7318           ;;
7319         sparc*-*-solaris*)
7320           LD="${LD-ld} -m elf64_sparc"
7321           ;;
7322         esac
7323         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7324         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7325           LD=${LD-ld}_sol2
7326         fi
7327         ;;
7328       *)
7329         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7330           LD="${LD-ld} -64"
7331         fi
7332         ;;
7333       esac
7334       ;;
7335     esac
7336   fi
7337   rm -rf conftest*
7338   ;;
7339 esac
7340
7341 need_locks=$enable_libtool_lock
7342
7343 if test -n "$ac_tool_prefix"; then
7344   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7345 set dummy ${ac_tool_prefix}mt; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7349   $as_echo_n "(cached) " >&6
7350 else
7351   if test -n "$MANIFEST_TOOL"; then
7352   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359     for ac_exec_ext in '' $ac_executable_extensions; do
7360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366   done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7372 if test -n "$MANIFEST_TOOL"; then
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7374 $as_echo "$MANIFEST_TOOL" >&6; }
7375 else
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380
7381 fi
7382 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7383   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7384   # Extract the first word of "mt", so it can be a program name with args.
7385 set dummy mt; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   if test -n "$ac_ct_MANIFEST_TOOL"; then
7392   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   test -z "$as_dir" && as_dir=.
7399     for ac_exec_ext in '' $ac_executable_extensions; do
7400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403     break 2
7404   fi
7405 done
7406   done
7407 IFS=$as_save_IFS
7408
7409 fi
7410 fi
7411 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7412 if test -n "$ac_ct_MANIFEST_TOOL"; then
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7414 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7415 else
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419
7420   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7421     MANIFEST_TOOL=":"
7422   else
7423     case $cross_compiling:$ac_tool_warned in
7424 yes:)
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427 ac_tool_warned=yes ;;
7428 esac
7429     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7430   fi
7431 else
7432   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7433 fi
7434
7435 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7437 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7438 if ${lt_cv_path_mainfest_tool+:} false; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   lt_cv_path_mainfest_tool=no
7442   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7443   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7444   cat conftest.err >&5
7445   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7446     lt_cv_path_mainfest_tool=yes
7447   fi
7448   rm -f conftest*
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7451 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7452 if test yes != "$lt_cv_path_mainfest_tool"; then
7453   MANIFEST_TOOL=:
7454 fi
7455
7456
7457
7458
7459
7460
7461   case $host_os in
7462     rhapsody* | darwin*)
7463     if test -n "$ac_tool_prefix"; then
7464   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7465 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7469   $as_echo_n "(cached) " >&6
7470 else
7471   if test -n "$DSYMUTIL"; then
7472   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477   IFS=$as_save_IFS
7478   test -z "$as_dir" && as_dir=.
7479     for ac_exec_ext in '' $ac_executable_extensions; do
7480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486   done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7492 if test -n "$DSYMUTIL"; then
7493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7494 $as_echo "$DSYMUTIL" >&6; }
7495 else
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499
7500
7501 fi
7502 if test -z "$ac_cv_prog_DSYMUTIL"; then
7503   ac_ct_DSYMUTIL=$DSYMUTIL
7504   # Extract the first word of "dsymutil", so it can be a program name with args.
7505 set dummy dsymutil; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7509   $as_echo_n "(cached) " >&6
7510 else
7511   if test -n "$ac_ct_DSYMUTIL"; then
7512   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519     for ac_exec_ext in '' $ac_executable_extensions; do
7520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526   done
7527 IFS=$as_save_IFS
7528
7529 fi
7530 fi
7531 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7532 if test -n "$ac_ct_DSYMUTIL"; then
7533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7534 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7535 else
7536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540   if test "x$ac_ct_DSYMUTIL" = x; then
7541     DSYMUTIL=":"
7542   else
7543     case $cross_compiling:$ac_tool_warned in
7544 yes:)
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7547 ac_tool_warned=yes ;;
7548 esac
7549     DSYMUTIL=$ac_ct_DSYMUTIL
7550   fi
7551 else
7552   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7553 fi
7554
7555     if test -n "$ac_tool_prefix"; then
7556   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7557 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_NMEDIT+:} false; then :
7561   $as_echo_n "(cached) " >&6
7562 else
7563   if test -n "$NMEDIT"; then
7564   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569   IFS=$as_save_IFS
7570   test -z "$as_dir" && as_dir=.
7571     for ac_exec_ext in '' $ac_executable_extensions; do
7572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575     break 2
7576   fi
7577 done
7578   done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 NMEDIT=$ac_cv_prog_NMEDIT
7584 if test -n "$NMEDIT"; then
7585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7586 $as_echo "$NMEDIT" >&6; }
7587 else
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592
7593 fi
7594 if test -z "$ac_cv_prog_NMEDIT"; then
7595   ac_ct_NMEDIT=$NMEDIT
7596   # Extract the first word of "nmedit", so it can be a program name with args.
7597 set dummy nmedit; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603   if test -n "$ac_ct_NMEDIT"; then
7604   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609   IFS=$as_save_IFS
7610   test -z "$as_dir" && as_dir=.
7611     for ac_exec_ext in '' $ac_executable_extensions; do
7612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615     break 2
7616   fi
7617 done
7618   done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7624 if test -n "$ac_ct_NMEDIT"; then
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7626 $as_echo "$ac_ct_NMEDIT" >&6; }
7627 else
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632   if test "x$ac_ct_NMEDIT" = x; then
7633     NMEDIT=":"
7634   else
7635     case $cross_compiling:$ac_tool_warned in
7636 yes:)
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7640 esac
7641     NMEDIT=$ac_ct_NMEDIT
7642   fi
7643 else
7644   NMEDIT="$ac_cv_prog_NMEDIT"
7645 fi
7646
7647     if test -n "$ac_tool_prefix"; then
7648   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7649 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_LIPO+:} false; then :
7653   $as_echo_n "(cached) " >&6
7654 else
7655   if test -n "$LIPO"; then
7656   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661   IFS=$as_save_IFS
7662   test -z "$as_dir" && as_dir=.
7663     for ac_exec_ext in '' $ac_executable_extensions; do
7664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667     break 2
7668   fi
7669 done
7670   done
7671 IFS=$as_save_IFS
7672
7673 fi
7674 fi
7675 LIPO=$ac_cv_prog_LIPO
7676 if test -n "$LIPO"; then
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7678 $as_echo "$LIPO" >&6; }
7679 else
7680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7682 fi
7683
7684
7685 fi
7686 if test -z "$ac_cv_prog_LIPO"; then
7687   ac_ct_LIPO=$LIPO
7688   # Extract the first word of "lipo", so it can be a program name with args.
7689 set dummy lipo; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7693   $as_echo_n "(cached) " >&6
7694 else
7695   if test -n "$ac_ct_LIPO"; then
7696   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703     for ac_exec_ext in '' $ac_executable_extensions; do
7704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705     ac_cv_prog_ac_ct_LIPO="lipo"
7706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707     break 2
7708   fi
7709 done
7710   done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7716 if test -n "$ac_ct_LIPO"; then
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7718 $as_echo "$ac_ct_LIPO" >&6; }
7719 else
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724   if test "x$ac_ct_LIPO" = x; then
7725     LIPO=":"
7726   else
7727     case $cross_compiling:$ac_tool_warned in
7728 yes:)
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7731 ac_tool_warned=yes ;;
7732 esac
7733     LIPO=$ac_ct_LIPO
7734   fi
7735 else
7736   LIPO="$ac_cv_prog_LIPO"
7737 fi
7738
7739     if test -n "$ac_tool_prefix"; then
7740   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7741 set dummy ${ac_tool_prefix}otool; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if ${ac_cv_prog_OTOOL+:} false; then :
7745   $as_echo_n "(cached) " >&6
7746 else
7747   if test -n "$OTOOL"; then
7748   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753   IFS=$as_save_IFS
7754   test -z "$as_dir" && as_dir=.
7755     for ac_exec_ext in '' $ac_executable_extensions; do
7756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759     break 2
7760   fi
7761 done
7762   done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 OTOOL=$ac_cv_prog_OTOOL
7768 if test -n "$OTOOL"; then
7769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7770 $as_echo "$OTOOL" >&6; }
7771 else
7772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7774 fi
7775
7776
7777 fi
7778 if test -z "$ac_cv_prog_OTOOL"; then
7779   ac_ct_OTOOL=$OTOOL
7780   # Extract the first word of "otool", so it can be a program name with args.
7781 set dummy otool; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7785   $as_echo_n "(cached) " >&6
7786 else
7787   if test -n "$ac_ct_OTOOL"; then
7788   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793   IFS=$as_save_IFS
7794   test -z "$as_dir" && as_dir=.
7795     for ac_exec_ext in '' $ac_executable_extensions; do
7796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797     ac_cv_prog_ac_ct_OTOOL="otool"
7798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799     break 2
7800   fi
7801 done
7802   done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7808 if test -n "$ac_ct_OTOOL"; then
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7810 $as_echo "$ac_ct_OTOOL" >&6; }
7811 else
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816   if test "x$ac_ct_OTOOL" = x; then
7817     OTOOL=":"
7818   else
7819     case $cross_compiling:$ac_tool_warned in
7820 yes:)
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7823 ac_tool_warned=yes ;;
7824 esac
7825     OTOOL=$ac_ct_OTOOL
7826   fi
7827 else
7828   OTOOL="$ac_cv_prog_OTOOL"
7829 fi
7830
7831     if test -n "$ac_tool_prefix"; then
7832   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7833 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if ${ac_cv_prog_OTOOL64+:} false; then :
7837   $as_echo_n "(cached) " >&6
7838 else
7839   if test -n "$OTOOL64"; then
7840   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845   IFS=$as_save_IFS
7846   test -z "$as_dir" && as_dir=.
7847     for ac_exec_ext in '' $ac_executable_extensions; do
7848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851     break 2
7852   fi
7853 done
7854   done
7855 IFS=$as_save_IFS
7856
7857 fi
7858 fi
7859 OTOOL64=$ac_cv_prog_OTOOL64
7860 if test -n "$OTOOL64"; then
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7862 $as_echo "$OTOOL64" >&6; }
7863 else
7864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7866 fi
7867
7868
7869 fi
7870 if test -z "$ac_cv_prog_OTOOL64"; then
7871   ac_ct_OTOOL64=$OTOOL64
7872   # Extract the first word of "otool64", so it can be a program name with args.
7873 set dummy otool64; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7877   $as_echo_n "(cached) " >&6
7878 else
7879   if test -n "$ac_ct_OTOOL64"; then
7880   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885   IFS=$as_save_IFS
7886   test -z "$as_dir" && as_dir=.
7887     for ac_exec_ext in '' $ac_executable_extensions; do
7888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889     ac_cv_prog_ac_ct_OTOOL64="otool64"
7890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891     break 2
7892   fi
7893 done
7894   done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7900 if test -n "$ac_ct_OTOOL64"; then
7901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7902 $as_echo "$ac_ct_OTOOL64" >&6; }
7903 else
7904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908   if test "x$ac_ct_OTOOL64" = x; then
7909     OTOOL64=":"
7910   else
7911     case $cross_compiling:$ac_tool_warned in
7912 yes:)
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7915 ac_tool_warned=yes ;;
7916 esac
7917     OTOOL64=$ac_ct_OTOOL64
7918   fi
7919 else
7920   OTOOL64="$ac_cv_prog_OTOOL64"
7921 fi
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
7947
7948
7949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7950 $as_echo_n "checking for -single_module linker flag... " >&6; }
7951 if ${lt_cv_apple_cc_single_mod+:} false; then :
7952   $as_echo_n "(cached) " >&6
7953 else
7954   lt_cv_apple_cc_single_mod=no
7955       if test -z "$LT_MULTI_MODULE"; then
7956         # By default we will add the -single_module flag. You can override
7957         # by either setting the environment variable LT_MULTI_MODULE
7958         # non-empty at configure time, or by adding -multi_module to the
7959         # link flags.
7960         rm -rf libconftest.dylib*
7961         echo "int foo(void){return 1;}" > conftest.c
7962         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7963 -dynamiclib -Wl,-single_module conftest.c" >&5
7964         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7965           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7966         _lt_result=$?
7967         # If there is a non-empty error log, and "single_module"
7968         # appears in it, assume the flag caused a linker warning
7969         if test -s conftest.err && $GREP single_module conftest.err; then
7970           cat conftest.err >&5
7971         # Otherwise, if the output was created with a 0 exit code from
7972         # the compiler, it worked.
7973         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7974           lt_cv_apple_cc_single_mod=yes
7975         else
7976           cat conftest.err >&5
7977         fi
7978         rm -rf libconftest.dylib*
7979         rm -f conftest.*
7980       fi
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7983 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7984
7985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7986 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7987 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7988   $as_echo_n "(cached) " >&6
7989 else
7990   lt_cv_ld_exported_symbols_list=no
7991       save_LDFLAGS=$LDFLAGS
7992       echo "_main" > conftest.sym
7993       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h.  */
7996
7997 int
7998 main ()
7999 {
8000
8001   ;
8002   return 0;
8003 }
8004 _ACEOF
8005 if ac_fn_c_try_link "$LINENO"; then :
8006   lt_cv_ld_exported_symbols_list=yes
8007 else
8008   lt_cv_ld_exported_symbols_list=no
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext \
8011     conftest$ac_exeext conftest.$ac_ext
8012         LDFLAGS=$save_LDFLAGS
8013
8014 fi
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8016 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8017
8018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8019 $as_echo_n "checking for -force_load linker flag... " >&6; }
8020 if ${lt_cv_ld_force_load+:} false; then :
8021   $as_echo_n "(cached) " >&6
8022 else
8023   lt_cv_ld_force_load=no
8024       cat > conftest.c << _LT_EOF
8025 int forced_loaded() { return 2;}
8026 _LT_EOF
8027       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8028       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8029       echo "$AR cru libconftest.a conftest.o" >&5
8030       $AR cru libconftest.a conftest.o 2>&5
8031       echo "$RANLIB libconftest.a" >&5
8032       $RANLIB libconftest.a 2>&5
8033       cat > conftest.c << _LT_EOF
8034 int main() { return 0;}
8035 _LT_EOF
8036       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8037       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8038       _lt_result=$?
8039       if test -s conftest.err && $GREP force_load conftest.err; then
8040         cat conftest.err >&5
8041       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8042         lt_cv_ld_force_load=yes
8043       else
8044         cat conftest.err >&5
8045       fi
8046         rm -f conftest.err libconftest.a conftest conftest.c
8047         rm -rf conftest.dSYM
8048
8049 fi
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8051 $as_echo "$lt_cv_ld_force_load" >&6; }
8052     case $host_os in
8053     rhapsody* | darwin1.[012])
8054       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8055     darwin1.*)
8056       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8057     darwin*) # darwin 5.x on
8058       # if running on 10.5 or later, the deployment target defaults
8059       # to the OS version, if on x86, and 10.4, the deployment
8060       # target defaults to 10.4. Don't you love it?
8061       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8062         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8063           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8064         10.[012][,.]*)
8065           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8066         10.*)
8067           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8068       esac
8069     ;;
8070   esac
8071     if test yes = "$lt_cv_apple_cc_single_mod"; then
8072       _lt_dar_single_mod='$single_module'
8073     fi
8074     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8075       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8076     else
8077       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8078     fi
8079     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8080       _lt_dsymutil='~$DSYMUTIL $lib || :'
8081     else
8082       _lt_dsymutil=
8083     fi
8084     ;;
8085   esac
8086
8087 # func_munge_path_list VARIABLE PATH
8088 # -----------------------------------
8089 # VARIABLE is name of variable containing _space_ separated list of
8090 # directories to be munged by the contents of PATH, which is string
8091 # having a format:
8092 # "DIR[:DIR]:"
8093 #       string "DIR[ DIR]" will be prepended to VARIABLE
8094 # ":DIR[:DIR]"
8095 #       string "DIR[ DIR]" will be appended to VARIABLE
8096 # "DIRP[:DIRP]::[DIRA:]DIRA"
8097 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8098 #       "DIRA[ DIRA]" will be appended to VARIABLE
8099 # "DIR[:DIR]"
8100 #       VARIABLE will be replaced by "DIR[ DIR]"
8101 func_munge_path_list ()
8102 {
8103     case x$2 in
8104     x)
8105         ;;
8106     *:)
8107         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8108         ;;
8109     x:*)
8110         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8111         ;;
8112     *::*)
8113         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8114         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8115         ;;
8116     *)
8117         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8118         ;;
8119     esac
8120 }
8121
8122 ac_ext=c
8123 ac_cpp='$CPP $CPPFLAGS'
8124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8128 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8129 # On Suns, sometimes $CPP names a directory.
8130 if test -n "$CPP" && test -d "$CPP"; then
8131   CPP=
8132 fi
8133 if test -z "$CPP"; then
8134   if ${ac_cv_prog_CPP+:} false; then :
8135   $as_echo_n "(cached) " >&6
8136 else
8137       # Double quotes because CPP needs to be expanded
8138     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8139     do
8140       ac_preproc_ok=false
8141 for ac_c_preproc_warn_flag in '' yes
8142 do
8143   # Use a header file that comes with gcc, so configuring glibc
8144   # with a fresh cross-compiler works.
8145   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8146   # <limits.h> exists even on freestanding compilers.
8147   # On the NeXT, cc -E runs the code through the compiler's parser,
8148   # not just through cpp. "Syntax error" is here to catch this case.
8149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h.  */
8151 #ifdef __STDC__
8152 # include <limits.h>
8153 #else
8154 # include <assert.h>
8155 #endif
8156                      Syntax error
8157 _ACEOF
8158 if ac_fn_c_try_cpp "$LINENO"; then :
8159
8160 else
8161   # Broken: fails on valid input.
8162 continue
8163 fi
8164 rm -f conftest.err conftest.i conftest.$ac_ext
8165
8166   # OK, works on sane cases.  Now check whether nonexistent headers
8167   # can be detected and how.
8168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h.  */
8170 #include <ac_nonexistent.h>
8171 _ACEOF
8172 if ac_fn_c_try_cpp "$LINENO"; then :
8173   # Broken: success on invalid input.
8174 continue
8175 else
8176   # Passes both tests.
8177 ac_preproc_ok=:
8178 break
8179 fi
8180 rm -f conftest.err conftest.i conftest.$ac_ext
8181
8182 done
8183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8184 rm -f conftest.i conftest.err conftest.$ac_ext
8185 if $ac_preproc_ok; then :
8186   break
8187 fi
8188
8189     done
8190     ac_cv_prog_CPP=$CPP
8191
8192 fi
8193   CPP=$ac_cv_prog_CPP
8194 else
8195   ac_cv_prog_CPP=$CPP
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8198 $as_echo "$CPP" >&6; }
8199 ac_preproc_ok=false
8200 for ac_c_preproc_warn_flag in '' yes
8201 do
8202   # Use a header file that comes with gcc, so configuring glibc
8203   # with a fresh cross-compiler works.
8204   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8205   # <limits.h> exists even on freestanding compilers.
8206   # On the NeXT, cc -E runs the code through the compiler's parser,
8207   # not just through cpp. "Syntax error" is here to catch this case.
8208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h.  */
8210 #ifdef __STDC__
8211 # include <limits.h>
8212 #else
8213 # include <assert.h>
8214 #endif
8215                      Syntax error
8216 _ACEOF
8217 if ac_fn_c_try_cpp "$LINENO"; then :
8218
8219 else
8220   # Broken: fails on valid input.
8221 continue
8222 fi
8223 rm -f conftest.err conftest.i conftest.$ac_ext
8224
8225   # OK, works on sane cases.  Now check whether nonexistent headers
8226   # can be detected and how.
8227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h.  */
8229 #include <ac_nonexistent.h>
8230 _ACEOF
8231 if ac_fn_c_try_cpp "$LINENO"; then :
8232   # Broken: success on invalid input.
8233 continue
8234 else
8235   # Passes both tests.
8236 ac_preproc_ok=:
8237 break
8238 fi
8239 rm -f conftest.err conftest.i conftest.$ac_ext
8240
8241 done
8242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8243 rm -f conftest.i conftest.err conftest.$ac_ext
8244 if $ac_preproc_ok; then :
8245
8246 else
8247   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8249 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8250 See \`config.log' for more details" "$LINENO" 5; }
8251 fi
8252
8253 ac_ext=c
8254 ac_cpp='$CPP $CPPFLAGS'
8255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8258
8259
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8261 $as_echo_n "checking for ANSI C header files... " >&6; }
8262 if ${ac_cv_header_stdc+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h.  */
8267 #include <stdlib.h>
8268 #include <stdarg.h>
8269 #include <string.h>
8270 #include <float.h>
8271
8272 int
8273 main ()
8274 {
8275
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_compile "$LINENO"; then :
8281   ac_cv_header_stdc=yes
8282 else
8283   ac_cv_header_stdc=no
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286
8287 if test $ac_cv_header_stdc = yes; then
8288   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h.  */
8291 #include <string.h>
8292
8293 _ACEOF
8294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8295   $EGREP "memchr" >/dev/null 2>&1; then :
8296
8297 else
8298   ac_cv_header_stdc=no
8299 fi
8300 rm -f conftest*
8301
8302 fi
8303
8304 if test $ac_cv_header_stdc = yes; then
8305   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h.  */
8308 #include <stdlib.h>
8309
8310 _ACEOF
8311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8312   $EGREP "free" >/dev/null 2>&1; then :
8313
8314 else
8315   ac_cv_header_stdc=no
8316 fi
8317 rm -f conftest*
8318
8319 fi
8320
8321 if test $ac_cv_header_stdc = yes; then
8322   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8323   if test "$cross_compiling" = yes; then :
8324   :
8325 else
8326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h.  */
8328 #include <ctype.h>
8329 #include <stdlib.h>
8330 #if ((' ' & 0x0FF) == 0x020)
8331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8333 #else
8334 # define ISLOWER(c) \
8335                    (('a' <= (c) && (c) <= 'i') \
8336                      || ('j' <= (c) && (c) <= 'r') \
8337                      || ('s' <= (c) && (c) <= 'z'))
8338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8339 #endif
8340
8341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8342 int
8343 main ()
8344 {
8345   int i;
8346   for (i = 0; i < 256; i++)
8347     if (XOR (islower (i), ISLOWER (i))
8348         || toupper (i) != TOUPPER (i))
8349       return 2;
8350   return 0;
8351 }
8352 _ACEOF
8353 if ac_fn_c_try_run "$LINENO"; then :
8354
8355 else
8356   ac_cv_header_stdc=no
8357 fi
8358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8359   conftest.$ac_objext conftest.beam conftest.$ac_ext
8360 fi
8361
8362 fi
8363 fi
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8365 $as_echo "$ac_cv_header_stdc" >&6; }
8366 if test $ac_cv_header_stdc = yes; then
8367
8368 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8369
8370 fi
8371
8372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8373 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8374                   inttypes.h stdint.h unistd.h
8375 do :
8376   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8377 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8378 "
8379 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8380   cat >>confdefs.h <<_ACEOF
8381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8382 _ACEOF
8383
8384 fi
8385
8386 done
8387
8388
8389 for ac_header in dlfcn.h
8390 do :
8391   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8392 "
8393 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8394   cat >>confdefs.h <<_ACEOF
8395 #define HAVE_DLFCN_H 1
8396 _ACEOF
8397
8398 fi
8399
8400 done
8401
8402
8403
8404
8405 func_stripname_cnf ()
8406 {
8407   case $2 in
8408   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8409   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8410   esac
8411 } # func_stripname_cnf
8412
8413
8414
8415
8416
8417 # Set options
8418
8419
8420
8421         enable_dlopen=no
8422
8423
8424   enable_win32_dll=no
8425
8426
8427             # Check whether --enable-shared was given.
8428 if test "${enable_shared+set}" = set; then :
8429   enableval=$enable_shared; p=${PACKAGE-default}
8430     case $enableval in
8431     yes) enable_shared=yes ;;
8432     no) enable_shared=no ;;
8433     *)
8434       enable_shared=no
8435       # Look at the argument we got.  We use all the common list separators.
8436       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8437       for pkg in $enableval; do
8438         IFS=$lt_save_ifs
8439         if test "X$pkg" = "X$p"; then
8440           enable_shared=yes
8441         fi
8442       done
8443       IFS=$lt_save_ifs
8444       ;;
8445     esac
8446 else
8447   enable_shared=yes
8448 fi
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460 # Check whether --with-pic was given.
8461 if test "${with_pic+set}" = set; then :
8462   withval=$with_pic; lt_p=${PACKAGE-default}
8463     case $withval in
8464     yes|no) pic_mode=$withval ;;
8465     *)
8466       pic_mode=default
8467       # Look at the argument we got.  We use all the common list separators.
8468       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8469       for lt_pkg in $withval; do
8470         IFS=$lt_save_ifs
8471         if test "X$lt_pkg" = "X$lt_p"; then
8472           pic_mode=yes
8473         fi
8474       done
8475       IFS=$lt_save_ifs
8476       ;;
8477     esac
8478 else
8479   pic_mode=default
8480 fi
8481
8482
8483
8484
8485
8486
8487
8488
8489   # Check whether --enable-fast-install was given.
8490 if test "${enable_fast_install+set}" = set; then :
8491   enableval=$enable_fast_install; p=${PACKAGE-default}
8492     case $enableval in
8493     yes) enable_fast_install=yes ;;
8494     no) enable_fast_install=no ;;
8495     *)
8496       enable_fast_install=no
8497       # Look at the argument we got.  We use all the common list separators.
8498       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8499       for pkg in $enableval; do
8500         IFS=$lt_save_ifs
8501         if test "X$pkg" = "X$p"; then
8502           enable_fast_install=yes
8503         fi
8504       done
8505       IFS=$lt_save_ifs
8506       ;;
8507     esac
8508 else
8509   enable_fast_install=yes
8510 fi
8511
8512
8513
8514
8515
8516
8517
8518
8519   shared_archive_member_spec=
8520 case $host,$enable_shared in
8521 power*-*-aix[5-9]*,yes)
8522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8523 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8524
8525 # Check whether --with-aix-soname was given.
8526 if test "${with_aix_soname+set}" = set; then :
8527   withval=$with_aix_soname; case $withval in
8528     aix|svr4|both)
8529       ;;
8530     *)
8531       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8532       ;;
8533     esac
8534     lt_cv_with_aix_soname=$with_aix_soname
8535 else
8536   if ${lt_cv_with_aix_soname+:} false; then :
8537   $as_echo_n "(cached) " >&6
8538 else
8539   lt_cv_with_aix_soname=aix
8540 fi
8541
8542     with_aix_soname=$lt_cv_with_aix_soname
8543 fi
8544
8545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8546 $as_echo "$with_aix_soname" >&6; }
8547   if test aix != "$with_aix_soname"; then
8548     # For the AIX way of multilib, we name the shared archive member
8549     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8550     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8551     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8552     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8553     if test 64 = "${OBJECT_MODE-32}"; then
8554       shared_archive_member_spec=shr_64
8555     else
8556       shared_archive_member_spec=shr
8557     fi
8558   fi
8559   ;;
8560 *)
8561   with_aix_soname=aix
8562   ;;
8563 esac
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574 # This can be used to rebuild libtool when needed
8575 LIBTOOL_DEPS=$ltmain
8576
8577 # Always use our own libtool.
8578 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609 test -z "$LN_S" && LN_S="ln -s"
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624 if test -n "${ZSH_VERSION+set}"; then
8625    setopt NO_GLOB_SUBST
8626 fi
8627
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8629 $as_echo_n "checking for objdir... " >&6; }
8630 if ${lt_cv_objdir+:} false; then :
8631   $as_echo_n "(cached) " >&6
8632 else
8633   rm -f .libs 2>/dev/null
8634 mkdir .libs 2>/dev/null
8635 if test -d .libs; then
8636   lt_cv_objdir=.libs
8637 else
8638   # MS-DOS does not allow filenames that begin with a dot.
8639   lt_cv_objdir=_libs
8640 fi
8641 rmdir .libs 2>/dev/null
8642 fi
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8644 $as_echo "$lt_cv_objdir" >&6; }
8645 objdir=$lt_cv_objdir
8646
8647
8648
8649
8650
8651 cat >>confdefs.h <<_ACEOF
8652 #define LT_OBJDIR "$lt_cv_objdir/"
8653 _ACEOF
8654
8655
8656
8657
8658 case $host_os in
8659 aix3*)
8660   # AIX sometimes has problems with the GCC collect2 program.  For some
8661   # reason, if we set the COLLECT_NAMES environment variable, the problems
8662   # vanish in a puff of smoke.
8663   if test set != "${COLLECT_NAMES+set}"; then
8664     COLLECT_NAMES=
8665     export COLLECT_NAMES
8666   fi
8667   ;;
8668 esac
8669
8670 # Global variables:
8671 ofile=libtool
8672 can_build_shared=yes
8673
8674 # All known linkers require a '.a' archive for static linking (except MSVC,
8675 # which needs '.lib').
8676 libext=a
8677
8678 with_gnu_ld=$lt_cv_prog_gnu_ld
8679
8680 old_CC=$CC
8681 old_CFLAGS=$CFLAGS
8682
8683 # Set sane defaults for various variables
8684 test -z "$CC" && CC=cc
8685 test -z "$LTCC" && LTCC=$CC
8686 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8687 test -z "$LD" && LD=ld
8688 test -z "$ac_objext" && ac_objext=o
8689
8690 func_cc_basename $compiler
8691 cc_basename=$func_cc_basename_result
8692
8693
8694 # Only perform the check for file, if the check method requires it
8695 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8696 case $deplibs_check_method in
8697 file_magic*)
8698   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8700 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8701 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8702   $as_echo_n "(cached) " >&6
8703 else
8704   case $MAGIC_CMD in
8705 [\\/*] |  ?:[\\/]*)
8706   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8707   ;;
8708 *)
8709   lt_save_MAGIC_CMD=$MAGIC_CMD
8710   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8711   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8712   for ac_dir in $ac_dummy; do
8713     IFS=$lt_save_ifs
8714     test -z "$ac_dir" && ac_dir=.
8715     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8716       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8717       if test -n "$file_magic_test_file"; then
8718         case $deplibs_check_method in
8719         "file_magic "*)
8720           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8721           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8722           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8723             $EGREP "$file_magic_regex" > /dev/null; then
8724             :
8725           else
8726             cat <<_LT_EOF 1>&2
8727
8728 *** Warning: the command libtool uses to detect shared libraries,
8729 *** $file_magic_cmd, produces output that libtool cannot recognize.
8730 *** The result is that libtool may fail to recognize shared libraries
8731 *** as such.  This will affect the creation of libtool libraries that
8732 *** depend on shared libraries, but programs linked with such libtool
8733 *** libraries will work regardless of this problem.  Nevertheless, you
8734 *** may want to report the problem to your system manager and/or to
8735 *** bug-libtool@gnu.org
8736
8737 _LT_EOF
8738           fi ;;
8739         esac
8740       fi
8741       break
8742     fi
8743   done
8744   IFS=$lt_save_ifs
8745   MAGIC_CMD=$lt_save_MAGIC_CMD
8746   ;;
8747 esac
8748 fi
8749
8750 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8751 if test -n "$MAGIC_CMD"; then
8752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8753 $as_echo "$MAGIC_CMD" >&6; }
8754 else
8755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8757 fi
8758
8759
8760
8761
8762
8763 if test -z "$lt_cv_path_MAGIC_CMD"; then
8764   if test -n "$ac_tool_prefix"; then
8765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8766 $as_echo_n "checking for file... " >&6; }
8767 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8768   $as_echo_n "(cached) " >&6
8769 else
8770   case $MAGIC_CMD in
8771 [\\/*] |  ?:[\\/]*)
8772   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8773   ;;
8774 *)
8775   lt_save_MAGIC_CMD=$MAGIC_CMD
8776   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8777   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8778   for ac_dir in $ac_dummy; do
8779     IFS=$lt_save_ifs
8780     test -z "$ac_dir" && ac_dir=.
8781     if test -f "$ac_dir/file"; then
8782       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8783       if test -n "$file_magic_test_file"; then
8784         case $deplibs_check_method in
8785         "file_magic "*)
8786           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8787           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8788           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8789             $EGREP "$file_magic_regex" > /dev/null; then
8790             :
8791           else
8792             cat <<_LT_EOF 1>&2
8793
8794 *** Warning: the command libtool uses to detect shared libraries,
8795 *** $file_magic_cmd, produces output that libtool cannot recognize.
8796 *** The result is that libtool may fail to recognize shared libraries
8797 *** as such.  This will affect the creation of libtool libraries that
8798 *** depend on shared libraries, but programs linked with such libtool
8799 *** libraries will work regardless of this problem.  Nevertheless, you
8800 *** may want to report the problem to your system manager and/or to
8801 *** bug-libtool@gnu.org
8802
8803 _LT_EOF
8804           fi ;;
8805         esac
8806       fi
8807       break
8808     fi
8809   done
8810   IFS=$lt_save_ifs
8811   MAGIC_CMD=$lt_save_MAGIC_CMD
8812   ;;
8813 esac
8814 fi
8815
8816 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8817 if test -n "$MAGIC_CMD"; then
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8819 $as_echo "$MAGIC_CMD" >&6; }
8820 else
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8823 fi
8824
8825
8826   else
8827     MAGIC_CMD=:
8828   fi
8829 fi
8830
8831   fi
8832   ;;
8833 esac
8834
8835 # Use C for the default configuration in the libtool script
8836
8837 lt_save_CC=$CC
8838 ac_ext=c
8839 ac_cpp='$CPP $CPPFLAGS'
8840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8843
8844
8845 # Source file extension for C test sources.
8846 ac_ext=c
8847
8848 # Object file extension for compiled C test sources.
8849 objext=o
8850 objext=$objext
8851
8852 # Code to be used in simple compile tests
8853 lt_simple_compile_test_code="int some_variable = 0;"
8854
8855 # Code to be used in simple link tests
8856 lt_simple_link_test_code='int main(){return(0);}'
8857
8858
8859
8860
8861
8862
8863
8864 # If no C compiler was specified, use CC.
8865 LTCC=${LTCC-"$CC"}
8866
8867 # If no C compiler flags were specified, use CFLAGS.
8868 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8869
8870 # Allow CC to be a program name with arguments.
8871 compiler=$CC
8872
8873 # Save the default compiler, since it gets overwritten when the other
8874 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8875 compiler_DEFAULT=$CC
8876
8877 # save warnings/boilerplate of simple test code
8878 ac_outfile=conftest.$ac_objext
8879 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8881 _lt_compiler_boilerplate=`cat conftest.err`
8882 $RM conftest*
8883
8884 ac_outfile=conftest.$ac_objext
8885 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8887 _lt_linker_boilerplate=`cat conftest.err`
8888 $RM -r conftest*
8889
8890
8891 ## CAVEAT EMPTOR:
8892 ## There is no encapsulation within the following macros, do not change
8893 ## the running order or otherwise move them around unless you know exactly
8894 ## what you are doing...
8895 if test -n "$compiler"; then
8896
8897 lt_prog_compiler_no_builtin_flag=
8898
8899 if test yes = "$GCC"; then
8900   case $cc_basename in
8901   nvcc*)
8902     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8903   *)
8904     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8905   esac
8906
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8908 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8909 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8910   $as_echo_n "(cached) " >&6
8911 else
8912   lt_cv_prog_compiler_rtti_exceptions=no
8913    ac_outfile=conftest.$ac_objext
8914    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8916    # Insert the option either (1) after the last *FLAGS variable, or
8917    # (2) before a word containing "conftest.", or (3) at the end.
8918    # Note that $ac_compile itself does not contain backslashes and begins
8919    # with a dollar sign (not a hyphen), so the echo should work correctly.
8920    # The option is referenced via a variable to avoid confusing sed.
8921    lt_compile=`echo "$ac_compile" | $SED \
8922    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8923    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924    -e 's:$: $lt_compiler_flag:'`
8925    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8926    (eval "$lt_compile" 2>conftest.err)
8927    ac_status=$?
8928    cat conftest.err >&5
8929    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930    if (exit $ac_status) && test -s "$ac_outfile"; then
8931      # The compiler can only warn and ignore the option if not recognized
8932      # So say no if there are warnings other than the usual output.
8933      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8934      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8935      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8936        lt_cv_prog_compiler_rtti_exceptions=yes
8937      fi
8938    fi
8939    $RM conftest*
8940
8941 fi
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8943 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8944
8945 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8946     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8947 else
8948     :
8949 fi
8950
8951 fi
8952
8953
8954
8955
8956
8957
8958   lt_prog_compiler_wl=
8959 lt_prog_compiler_pic=
8960 lt_prog_compiler_static=
8961
8962
8963   if test yes = "$GCC"; then
8964     lt_prog_compiler_wl='-Wl,'
8965     lt_prog_compiler_static='-static'
8966
8967     case $host_os in
8968       aix*)
8969       # All AIX code is PIC.
8970       if test ia64 = "$host_cpu"; then
8971         # AIX 5 now supports IA64 processor
8972         lt_prog_compiler_static='-Bstatic'
8973       fi
8974       lt_prog_compiler_pic='-fPIC'
8975       ;;
8976
8977     amigaos*)
8978       case $host_cpu in
8979       powerpc)
8980             # see comment about AmigaOS4 .so support
8981             lt_prog_compiler_pic='-fPIC'
8982         ;;
8983       m68k)
8984             # FIXME: we need at least 68020 code to build shared libraries, but
8985             # adding the '-m68020' flag to GCC prevents building anything better,
8986             # like '-m68040'.
8987             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8988         ;;
8989       esac
8990       ;;
8991
8992     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8993       # PIC is the default for these OSes.
8994       ;;
8995
8996     mingw* | cygwin* | pw32* | os2* | cegcc*)
8997       # This hack is so that the source file can tell whether it is being
8998       # built for inclusion in a dll (and should export symbols for example).
8999       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9000       # (--disable-auto-import) libraries
9001       lt_prog_compiler_pic='-DDLL_EXPORT'
9002       case $host_os in
9003       os2*)
9004         lt_prog_compiler_static='$wl-static'
9005         ;;
9006       esac
9007       ;;
9008
9009     darwin* | rhapsody*)
9010       # PIC is the default on this platform
9011       # Common symbols not allowed in MH_DYLIB files
9012       lt_prog_compiler_pic='-fno-common'
9013       ;;
9014
9015     haiku*)
9016       # PIC is the default for Haiku.
9017       # The "-static" flag exists, but is broken.
9018       lt_prog_compiler_static=
9019       ;;
9020
9021     hpux*)
9022       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9023       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9024       # sets the default TLS model and affects inlining.
9025       case $host_cpu in
9026       hppa*64*)
9027         # +Z the default
9028         ;;
9029       *)
9030         lt_prog_compiler_pic='-fPIC'
9031         ;;
9032       esac
9033       ;;
9034
9035     interix[3-9]*)
9036       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9037       # Instead, we relocate shared libraries at runtime.
9038       ;;
9039
9040     msdosdjgpp*)
9041       # Just because we use GCC doesn't mean we suddenly get shared libraries
9042       # on systems that don't support them.
9043       lt_prog_compiler_can_build_shared=no
9044       enable_shared=no
9045       ;;
9046
9047     *nto* | *qnx*)
9048       # QNX uses GNU C++, but need to define -shared option too, otherwise
9049       # it will coredump.
9050       lt_prog_compiler_pic='-fPIC -shared'
9051       ;;
9052
9053     sysv4*MP*)
9054       if test -d /usr/nec; then
9055         lt_prog_compiler_pic=-Kconform_pic
9056       fi
9057       ;;
9058
9059     *)
9060       lt_prog_compiler_pic='-fPIC'
9061       ;;
9062     esac
9063
9064     case $cc_basename in
9065     nvcc*) # Cuda Compiler Driver 2.2
9066       lt_prog_compiler_wl='-Xlinker '
9067       if test -n "$lt_prog_compiler_pic"; then
9068         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9069       fi
9070       ;;
9071     esac
9072   else
9073     # PORTME Check for flag to pass linker flags through the system compiler.
9074     case $host_os in
9075     aix*)
9076       lt_prog_compiler_wl='-Wl,'
9077       if test ia64 = "$host_cpu"; then
9078         # AIX 5 now supports IA64 processor
9079         lt_prog_compiler_static='-Bstatic'
9080       else
9081         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9082       fi
9083       ;;
9084
9085     darwin* | rhapsody*)
9086       # PIC is the default on this platform
9087       # Common symbols not allowed in MH_DYLIB files
9088       lt_prog_compiler_pic='-fno-common'
9089       case $cc_basename in
9090       nagfor*)
9091         # NAG Fortran compiler
9092         lt_prog_compiler_wl='-Wl,-Wl,,'
9093         lt_prog_compiler_pic='-PIC'
9094         lt_prog_compiler_static='-Bstatic'
9095         ;;
9096       esac
9097       ;;
9098
9099     mingw* | cygwin* | pw32* | os2* | cegcc*)
9100       # This hack is so that the source file can tell whether it is being
9101       # built for inclusion in a dll (and should export symbols for example).
9102       lt_prog_compiler_pic='-DDLL_EXPORT'
9103       case $host_os in
9104       os2*)
9105         lt_prog_compiler_static='$wl-static'
9106         ;;
9107       esac
9108       ;;
9109
9110     hpux9* | hpux10* | hpux11*)
9111       lt_prog_compiler_wl='-Wl,'
9112       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9113       # not for PA HP-UX.
9114       case $host_cpu in
9115       hppa*64*|ia64*)
9116         # +Z the default
9117         ;;
9118       *)
9119         lt_prog_compiler_pic='+Z'
9120         ;;
9121       esac
9122       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9123       lt_prog_compiler_static='$wl-a ${wl}archive'
9124       ;;
9125
9126     irix5* | irix6* | nonstopux*)
9127       lt_prog_compiler_wl='-Wl,'
9128       # PIC (with -KPIC) is the default.
9129       lt_prog_compiler_static='-non_shared'
9130       ;;
9131
9132     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9133       case $cc_basename in
9134       # old Intel for x86_64, which still supported -KPIC.
9135       ecc*)
9136         lt_prog_compiler_wl='-Wl,'
9137         lt_prog_compiler_pic='-KPIC'
9138         lt_prog_compiler_static='-static'
9139         ;;
9140       # icc used to be incompatible with GCC.
9141       # ICC 10 doesn't accept -KPIC any more.
9142       icc* | ifort*)
9143         lt_prog_compiler_wl='-Wl,'
9144         lt_prog_compiler_pic='-fPIC'
9145         lt_prog_compiler_static='-static'
9146         ;;
9147       # Lahey Fortran 8.1.
9148       lf95*)
9149         lt_prog_compiler_wl='-Wl,'
9150         lt_prog_compiler_pic='--shared'
9151         lt_prog_compiler_static='--static'
9152         ;;
9153       nagfor*)
9154         # NAG Fortran compiler
9155         lt_prog_compiler_wl='-Wl,-Wl,,'
9156         lt_prog_compiler_pic='-PIC'
9157         lt_prog_compiler_static='-Bstatic'
9158         ;;
9159       tcc*)
9160         # Fabrice Bellard et al's Tiny C Compiler
9161         lt_prog_compiler_wl='-Wl,'
9162         lt_prog_compiler_pic='-fPIC'
9163         lt_prog_compiler_static='-static'
9164         ;;
9165       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9166         # Portland Group compilers (*not* the Pentium gcc compiler,
9167         # which looks to be a dead project)
9168         lt_prog_compiler_wl='-Wl,'
9169         lt_prog_compiler_pic='-fpic'
9170         lt_prog_compiler_static='-Bstatic'
9171         ;;
9172       ccc*)
9173         lt_prog_compiler_wl='-Wl,'
9174         # All Alpha code is PIC.
9175         lt_prog_compiler_static='-non_shared'
9176         ;;
9177       xl* | bgxl* | bgf* | mpixl*)
9178         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9179         lt_prog_compiler_wl='-Wl,'
9180         lt_prog_compiler_pic='-qpic'
9181         lt_prog_compiler_static='-qstaticlink'
9182         ;;
9183       *)
9184         case `$CC -V 2>&1 | sed 5q` in
9185         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9186           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9187           lt_prog_compiler_pic='-KPIC'
9188           lt_prog_compiler_static='-Bstatic'
9189           lt_prog_compiler_wl=''
9190           ;;
9191         *Sun\ F* | *Sun*Fortran*)
9192           lt_prog_compiler_pic='-KPIC'
9193           lt_prog_compiler_static='-Bstatic'
9194           lt_prog_compiler_wl='-Qoption ld '
9195           ;;
9196         *Sun\ C*)
9197           # Sun C 5.9
9198           lt_prog_compiler_pic='-KPIC'
9199           lt_prog_compiler_static='-Bstatic'
9200           lt_prog_compiler_wl='-Wl,'
9201           ;;
9202         *Intel*\ [CF]*Compiler*)
9203           lt_prog_compiler_wl='-Wl,'
9204           lt_prog_compiler_pic='-fPIC'
9205           lt_prog_compiler_static='-static'
9206           ;;
9207         *Portland\ Group*)
9208           lt_prog_compiler_wl='-Wl,'
9209           lt_prog_compiler_pic='-fpic'
9210           lt_prog_compiler_static='-Bstatic'
9211           ;;
9212         esac
9213         ;;
9214       esac
9215       ;;
9216
9217     newsos6)
9218       lt_prog_compiler_pic='-KPIC'
9219       lt_prog_compiler_static='-Bstatic'
9220       ;;
9221
9222     *nto* | *qnx*)
9223       # QNX uses GNU C++, but need to define -shared option too, otherwise
9224       # it will coredump.
9225       lt_prog_compiler_pic='-fPIC -shared'
9226       ;;
9227
9228     osf3* | osf4* | osf5*)
9229       lt_prog_compiler_wl='-Wl,'
9230       # All OSF/1 code is PIC.
9231       lt_prog_compiler_static='-non_shared'
9232       ;;
9233
9234     rdos*)
9235       lt_prog_compiler_static='-non_shared'
9236       ;;
9237
9238     solaris*)
9239       lt_prog_compiler_pic='-KPIC'
9240       lt_prog_compiler_static='-Bstatic'
9241       case $cc_basename in
9242       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9243         lt_prog_compiler_wl='-Qoption ld ';;
9244       *)
9245         lt_prog_compiler_wl='-Wl,';;
9246       esac
9247       ;;
9248
9249     sunos4*)
9250       lt_prog_compiler_wl='-Qoption ld '
9251       lt_prog_compiler_pic='-PIC'
9252       lt_prog_compiler_static='-Bstatic'
9253       ;;
9254
9255     sysv4 | sysv4.2uw2* | sysv4.3*)
9256       lt_prog_compiler_wl='-Wl,'
9257       lt_prog_compiler_pic='-KPIC'
9258       lt_prog_compiler_static='-Bstatic'
9259       ;;
9260
9261     sysv4*MP*)
9262       if test -d /usr/nec; then
9263         lt_prog_compiler_pic='-Kconform_pic'
9264         lt_prog_compiler_static='-Bstatic'
9265       fi
9266       ;;
9267
9268     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9269       lt_prog_compiler_wl='-Wl,'
9270       lt_prog_compiler_pic='-KPIC'
9271       lt_prog_compiler_static='-Bstatic'
9272       ;;
9273
9274     unicos*)
9275       lt_prog_compiler_wl='-Wl,'
9276       lt_prog_compiler_can_build_shared=no
9277       ;;
9278
9279     uts4*)
9280       lt_prog_compiler_pic='-pic'
9281       lt_prog_compiler_static='-Bstatic'
9282       ;;
9283
9284     *)
9285       lt_prog_compiler_can_build_shared=no
9286       ;;
9287     esac
9288   fi
9289
9290 case $host_os in
9291   # For platforms that do not support PIC, -DPIC is meaningless:
9292   *djgpp*)
9293     lt_prog_compiler_pic=
9294     ;;
9295   *)
9296     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9297     ;;
9298 esac
9299
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9301 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9302 if ${lt_cv_prog_compiler_pic+:} false; then :
9303   $as_echo_n "(cached) " >&6
9304 else
9305   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9306 fi
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9308 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9309 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9310
9311 #
9312 # Check to make sure the PIC flag actually works.
9313 #
9314 if test -n "$lt_prog_compiler_pic"; then
9315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9316 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9317 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9318   $as_echo_n "(cached) " >&6
9319 else
9320   lt_cv_prog_compiler_pic_works=no
9321    ac_outfile=conftest.$ac_objext
9322    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9323    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9324    # Insert the option either (1) after the last *FLAGS variable, or
9325    # (2) before a word containing "conftest.", or (3) at the end.
9326    # Note that $ac_compile itself does not contain backslashes and begins
9327    # with a dollar sign (not a hyphen), so the echo should work correctly.
9328    # The option is referenced via a variable to avoid confusing sed.
9329    lt_compile=`echo "$ac_compile" | $SED \
9330    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9331    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9332    -e 's:$: $lt_compiler_flag:'`
9333    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9334    (eval "$lt_compile" 2>conftest.err)
9335    ac_status=$?
9336    cat conftest.err >&5
9337    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338    if (exit $ac_status) && test -s "$ac_outfile"; then
9339      # The compiler can only warn and ignore the option if not recognized
9340      # So say no if there are warnings other than the usual output.
9341      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9342      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9343      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9344        lt_cv_prog_compiler_pic_works=yes
9345      fi
9346    fi
9347    $RM conftest*
9348
9349 fi
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9351 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9352
9353 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9354     case $lt_prog_compiler_pic in
9355      "" | " "*) ;;
9356      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9357      esac
9358 else
9359     lt_prog_compiler_pic=
9360      lt_prog_compiler_can_build_shared=no
9361 fi
9362
9363 fi
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375 #
9376 # Check to make sure the static flag actually works.
9377 #
9378 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9380 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9381 if ${lt_cv_prog_compiler_static_works+:} false; then :
9382   $as_echo_n "(cached) " >&6
9383 else
9384   lt_cv_prog_compiler_static_works=no
9385    save_LDFLAGS=$LDFLAGS
9386    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9387    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9388    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9389      # The linker can only warn and ignore the option if not recognized
9390      # So say no if there are warnings
9391      if test -s conftest.err; then
9392        # Append any errors to the config.log.
9393        cat conftest.err 1>&5
9394        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9395        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9396        if diff conftest.exp conftest.er2 >/dev/null; then
9397          lt_cv_prog_compiler_static_works=yes
9398        fi
9399      else
9400        lt_cv_prog_compiler_static_works=yes
9401      fi
9402    fi
9403    $RM -r conftest*
9404    LDFLAGS=$save_LDFLAGS
9405
9406 fi
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9408 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9409
9410 if test yes = "$lt_cv_prog_compiler_static_works"; then
9411     :
9412 else
9413     lt_prog_compiler_static=
9414 fi
9415
9416
9417
9418
9419
9420
9421
9422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9423 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9424 if ${lt_cv_prog_compiler_c_o+:} false; then :
9425   $as_echo_n "(cached) " >&6
9426 else
9427   lt_cv_prog_compiler_c_o=no
9428    $RM -r conftest 2>/dev/null
9429    mkdir conftest
9430    cd conftest
9431    mkdir out
9432    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9433
9434    lt_compiler_flag="-o out/conftest2.$ac_objext"
9435    # Insert the option either (1) after the last *FLAGS variable, or
9436    # (2) before a word containing "conftest.", or (3) at the end.
9437    # Note that $ac_compile itself does not contain backslashes and begins
9438    # with a dollar sign (not a hyphen), so the echo should work correctly.
9439    lt_compile=`echo "$ac_compile" | $SED \
9440    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9441    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9442    -e 's:$: $lt_compiler_flag:'`
9443    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9444    (eval "$lt_compile" 2>out/conftest.err)
9445    ac_status=$?
9446    cat out/conftest.err >&5
9447    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9449    then
9450      # The compiler can only warn and ignore the option if not recognized
9451      # So say no if there are warnings
9452      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9453      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9454      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9455        lt_cv_prog_compiler_c_o=yes
9456      fi
9457    fi
9458    chmod u+w . 2>&5
9459    $RM conftest*
9460    # SGI C++ compiler will create directory out/ii_files/ for
9461    # template instantiation
9462    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9463    $RM out/* && rmdir out
9464    cd ..
9465    $RM -r conftest
9466    $RM conftest*
9467
9468 fi
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9470 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9471
9472
9473
9474
9475
9476
9477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9478 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9479 if ${lt_cv_prog_compiler_c_o+:} false; then :
9480   $as_echo_n "(cached) " >&6
9481 else
9482   lt_cv_prog_compiler_c_o=no
9483    $RM -r conftest 2>/dev/null
9484    mkdir conftest
9485    cd conftest
9486    mkdir out
9487    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9488
9489    lt_compiler_flag="-o out/conftest2.$ac_objext"
9490    # Insert the option either (1) after the last *FLAGS variable, or
9491    # (2) before a word containing "conftest.", or (3) at the end.
9492    # Note that $ac_compile itself does not contain backslashes and begins
9493    # with a dollar sign (not a hyphen), so the echo should work correctly.
9494    lt_compile=`echo "$ac_compile" | $SED \
9495    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9496    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9497    -e 's:$: $lt_compiler_flag:'`
9498    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9499    (eval "$lt_compile" 2>out/conftest.err)
9500    ac_status=$?
9501    cat out/conftest.err >&5
9502    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9504    then
9505      # The compiler can only warn and ignore the option if not recognized
9506      # So say no if there are warnings
9507      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9508      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9509      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9510        lt_cv_prog_compiler_c_o=yes
9511      fi
9512    fi
9513    chmod u+w . 2>&5
9514    $RM conftest*
9515    # SGI C++ compiler will create directory out/ii_files/ for
9516    # template instantiation
9517    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9518    $RM out/* && rmdir out
9519    cd ..
9520    $RM -r conftest
9521    $RM conftest*
9522
9523 fi
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9525 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9526
9527
9528
9529
9530 hard_links=nottested
9531 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9532   # do not overwrite the value of need_locks provided by the user
9533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9534 $as_echo_n "checking if we can lock with hard links... " >&6; }
9535   hard_links=yes
9536   $RM conftest*
9537   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9538   touch conftest.a
9539   ln conftest.a conftest.b 2>&5 || hard_links=no
9540   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9542 $as_echo "$hard_links" >&6; }
9543   if test no = "$hard_links"; then
9544     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9545 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9546     need_locks=warn
9547   fi
9548 else
9549   need_locks=no
9550 fi
9551
9552
9553
9554
9555
9556
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9558 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9559
9560   runpath_var=
9561   allow_undefined_flag=
9562   always_export_symbols=no
9563   archive_cmds=
9564   archive_expsym_cmds=
9565   compiler_needs_object=no
9566   enable_shared_with_static_runtimes=no
9567   export_dynamic_flag_spec=
9568   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9569   hardcode_automatic=no
9570   hardcode_direct=no
9571   hardcode_direct_absolute=no
9572   hardcode_libdir_flag_spec=
9573   hardcode_libdir_separator=
9574   hardcode_minus_L=no
9575   hardcode_shlibpath_var=unsupported
9576   inherit_rpath=no
9577   link_all_deplibs=unknown
9578   module_cmds=
9579   module_expsym_cmds=
9580   old_archive_from_new_cmds=
9581   old_archive_from_expsyms_cmds=
9582   thread_safe_flag_spec=
9583   whole_archive_flag_spec=
9584   # include_expsyms should be a list of space-separated symbols to be *always*
9585   # included in the symbol list
9586   include_expsyms=
9587   # exclude_expsyms can be an extended regexp of symbols to exclude
9588   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9589   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9590   # as well as any symbol that contains 'd'.
9591   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9592   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9593   # platforms (ab)use it in PIC code, but their linkers get confused if
9594   # the symbol is explicitly referenced.  Since portable code cannot
9595   # rely on this symbol name, it's probably fine to never include it in
9596   # preloaded symbol tables.
9597   # Exclude shared library initialization/finalization symbols.
9598   extract_expsyms_cmds=
9599
9600   case $host_os in
9601   cygwin* | mingw* | pw32* | cegcc*)
9602     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9603     # When not using gcc, we currently assume that we are using
9604     # Microsoft Visual C++.
9605     if test yes != "$GCC"; then
9606       with_gnu_ld=no
9607     fi
9608     ;;
9609   interix*)
9610     # we just hope/assume this is gcc and not c89 (= MSVC++)
9611     with_gnu_ld=yes
9612     ;;
9613   openbsd* | bitrig*)
9614     with_gnu_ld=no
9615     ;;
9616   esac
9617
9618   ld_shlibs=yes
9619
9620   # On some targets, GNU ld is compatible enough with the native linker
9621   # that we're better off using the native interface for both.
9622   lt_use_gnu_ld_interface=no
9623   if test yes = "$with_gnu_ld"; then
9624     case $host_os in
9625       aix*)
9626         # The AIX port of GNU ld has always aspired to compatibility
9627         # with the native linker.  However, as the warning in the GNU ld
9628         # block says, versions before 2.19.5* couldn't really create working
9629         # shared libraries, regardless of the interface used.
9630         case `$LD -v 2>&1` in
9631           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9632           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9633           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9634           *)
9635             lt_use_gnu_ld_interface=yes
9636             ;;
9637         esac
9638         ;;
9639       *)
9640         lt_use_gnu_ld_interface=yes
9641         ;;
9642     esac
9643   fi
9644
9645   if test yes = "$lt_use_gnu_ld_interface"; then
9646     # If archive_cmds runs LD, not CC, wlarc should be empty
9647     wlarc='$wl'
9648
9649     # Set some defaults for GNU ld with shared library support. These
9650     # are reset later if shared libraries are not supported. Putting them
9651     # here allows them to be overridden if necessary.
9652     runpath_var=LD_RUN_PATH
9653     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9654     export_dynamic_flag_spec='$wl--export-dynamic'
9655     # ancient GNU ld didn't support --whole-archive et. al.
9656     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9657       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9658     else
9659       whole_archive_flag_spec=
9660     fi
9661     supports_anon_versioning=no
9662     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9663       *GNU\ gold*) supports_anon_versioning=yes ;;
9664       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9665       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9666       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9667       *\ 2.11.*) ;; # other 2.11 versions
9668       *) supports_anon_versioning=yes ;;
9669     esac
9670
9671     # See if GNU ld supports shared libraries.
9672     case $host_os in
9673     aix[3-9]*)
9674       # On AIX/PPC, the GNU linker is very broken
9675       if test ia64 != "$host_cpu"; then
9676         ld_shlibs=no
9677         cat <<_LT_EOF 1>&2
9678
9679 *** Warning: the GNU linker, at least up to release 2.19, is reported
9680 *** to be unable to reliably create shared libraries on AIX.
9681 *** Therefore, libtool is disabling shared libraries support.  If you
9682 *** really care for shared libraries, you may want to install binutils
9683 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9684 *** You will then need to restart the configuration process.
9685
9686 _LT_EOF
9687       fi
9688       ;;
9689
9690     amigaos*)
9691       case $host_cpu in
9692       powerpc)
9693             # see comment about AmigaOS4 .so support
9694             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9695             archive_expsym_cmds=''
9696         ;;
9697       m68k)
9698             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)'
9699             hardcode_libdir_flag_spec='-L$libdir'
9700             hardcode_minus_L=yes
9701         ;;
9702       esac
9703       ;;
9704
9705     beos*)
9706       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9707         allow_undefined_flag=unsupported
9708         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9709         # support --undefined.  This deserves some investigation.  FIXME
9710         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9711       else
9712         ld_shlibs=no
9713       fi
9714       ;;
9715
9716     cygwin* | mingw* | pw32* | cegcc*)
9717       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9718       # as there is no search path for DLLs.
9719       hardcode_libdir_flag_spec='-L$libdir'
9720       export_dynamic_flag_spec='$wl--export-all-symbols'
9721       allow_undefined_flag=unsupported
9722       always_export_symbols=no
9723       enable_shared_with_static_runtimes=yes
9724       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'
9725       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9726
9727       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9728         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9729         # If the export-symbols file already is a .def file, use it as
9730         # is; otherwise, prepend EXPORTS...
9731         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9732           cp $export_symbols $output_objdir/$soname.def;
9733         else
9734           echo EXPORTS > $output_objdir/$soname.def;
9735           cat $export_symbols >> $output_objdir/$soname.def;
9736         fi~
9737         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9738       else
9739         ld_shlibs=no
9740       fi
9741       ;;
9742
9743     haiku*)
9744       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9745       link_all_deplibs=yes
9746       ;;
9747
9748     os2*)
9749       hardcode_libdir_flag_spec='-L$libdir'
9750       hardcode_minus_L=yes
9751       allow_undefined_flag=unsupported
9752       shrext_cmds=.dll
9753       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9754         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9755         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9756         $ECHO EXPORTS >> $output_objdir/$libname.def~
9757         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9758         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9759         emximp -o $lib $output_objdir/$libname.def'
9760       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9761         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9762         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9763         $ECHO EXPORTS >> $output_objdir/$libname.def~
9764         prefix_cmds="$SED"~
9765         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9766           prefix_cmds="$prefix_cmds -e 1d";
9767         fi~
9768         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9769         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9770         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9771         emximp -o $lib $output_objdir/$libname.def'
9772       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9773       enable_shared_with_static_runtimes=yes
9774       ;;
9775
9776     interix[3-9]*)
9777       hardcode_direct=no
9778       hardcode_shlibpath_var=no
9779       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9780       export_dynamic_flag_spec='$wl-E'
9781       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9782       # Instead, shared libraries are loaded at an image base (0x10000000 by
9783       # default) and relocated if they conflict, which is a slow very memory
9784       # consuming and fragmenting process.  To avoid this, we pick a random,
9785       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9786       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9787       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9788       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'
9789       ;;
9790
9791     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9792       tmp_diet=no
9793       if test linux-dietlibc = "$host_os"; then
9794         case $cc_basename in
9795           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9796         esac
9797       fi
9798       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9799          && test no = "$tmp_diet"
9800       then
9801         tmp_addflag=' $pic_flag'
9802         tmp_sharedflag='-shared'
9803         case $cc_basename,$host_cpu in
9804         pgcc*)                          # Portland Group C compiler
9805           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'
9806           tmp_addflag=' $pic_flag'
9807           ;;
9808         pgf77* | pgf90* | pgf95* | pgfortran*)
9809                                         # Portland Group f77 and f90 compilers
9810           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'
9811           tmp_addflag=' $pic_flag -Mnomain' ;;
9812         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9813           tmp_addflag=' -i_dynamic' ;;
9814         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9815           tmp_addflag=' -i_dynamic -nofor_main' ;;
9816         ifc* | ifort*)                  # Intel Fortran compiler
9817           tmp_addflag=' -nofor_main' ;;
9818         lf95*)                          # Lahey Fortran 8.1
9819           whole_archive_flag_spec=
9820           tmp_sharedflag='--shared' ;;
9821         nagfor*)                        # NAGFOR 5.3
9822           tmp_sharedflag='-Wl,-shared' ;;
9823         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9824           tmp_sharedflag='-qmkshrobj'
9825           tmp_addflag= ;;
9826         nvcc*)  # Cuda Compiler Driver 2.2
9827           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'
9828           compiler_needs_object=yes
9829           ;;
9830         esac
9831         case `$CC -V 2>&1 | sed 5q` in
9832         *Sun\ C*)                       # Sun C 5.9
9833           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'
9834           compiler_needs_object=yes
9835           tmp_sharedflag='-G' ;;
9836         *Sun\ F*)                       # Sun Fortran 8.3
9837           tmp_sharedflag='-G' ;;
9838         esac
9839         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9840
9841         if test yes = "$supports_anon_versioning"; then
9842           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9843             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9844             echo "local: *; };" >> $output_objdir/$libname.ver~
9845             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9846         fi
9847
9848         case $cc_basename in
9849         tcc*)
9850           export_dynamic_flag_spec='-rdynamic'
9851           ;;
9852         xlf* | bgf* | bgxlf* | mpixlf*)
9853           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9854           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9855           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9856           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9857           if test yes = "$supports_anon_versioning"; then
9858             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9859               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9860               echo "local: *; };" >> $output_objdir/$libname.ver~
9861               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9862           fi
9863           ;;
9864         esac
9865       else
9866         ld_shlibs=no
9867       fi
9868       ;;
9869
9870     netbsd*)
9871       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9872         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9873         wlarc=
9874       else
9875         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9876         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9877       fi
9878       ;;
9879
9880     solaris*)
9881       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9882         ld_shlibs=no
9883         cat <<_LT_EOF 1>&2
9884
9885 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9886 *** create shared libraries on Solaris systems.  Therefore, libtool
9887 *** is disabling shared libraries support.  We urge you to upgrade GNU
9888 *** binutils to release 2.9.1 or newer.  Another option is to modify
9889 *** your PATH or compiler configuration so that the native linker is
9890 *** used, and then restart.
9891
9892 _LT_EOF
9893       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9894         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9895         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9896       else
9897         ld_shlibs=no
9898       fi
9899       ;;
9900
9901     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9902       case `$LD -v 2>&1` in
9903         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9904         ld_shlibs=no
9905         cat <<_LT_EOF 1>&2
9906
9907 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9908 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9909 *** is disabling shared libraries support.  We urge you to upgrade GNU
9910 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9911 *** your PATH or compiler configuration so that the native linker is
9912 *** used, and then restart.
9913
9914 _LT_EOF
9915         ;;
9916         *)
9917           # For security reasons, it is highly recommended that you always
9918           # use absolute paths for naming shared libraries, and exclude the
9919           # DT_RUNPATH tag from executables and libraries.  But doing so
9920           # requires that you compile everything twice, which is a pain.
9921           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9922             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9923             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9924             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9925           else
9926             ld_shlibs=no
9927           fi
9928         ;;
9929       esac
9930       ;;
9931
9932     sunos4*)
9933       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9934       wlarc=
9935       hardcode_direct=yes
9936       hardcode_shlibpath_var=no
9937       ;;
9938
9939     *)
9940       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9941         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9942         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9943       else
9944         ld_shlibs=no
9945       fi
9946       ;;
9947     esac
9948
9949     if test no = "$ld_shlibs"; then
9950       runpath_var=
9951       hardcode_libdir_flag_spec=
9952       export_dynamic_flag_spec=
9953       whole_archive_flag_spec=
9954     fi
9955   else
9956     # PORTME fill in a description of your system's linker (not GNU ld)
9957     case $host_os in
9958     aix3*)
9959       allow_undefined_flag=unsupported
9960       always_export_symbols=yes
9961       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'
9962       # Note: this linker hardcodes the directories in LIBPATH if there
9963       # are no directories specified by -L.
9964       hardcode_minus_L=yes
9965       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9966         # Neither direct hardcoding nor static linking is supported with a
9967         # broken collect2.
9968         hardcode_direct=unsupported
9969       fi
9970       ;;
9971
9972     aix[4-9]*)
9973       if test ia64 = "$host_cpu"; then
9974         # On IA64, the linker does run time linking by default, so we don't
9975         # have to do anything special.
9976         aix_use_runtimelinking=no
9977         exp_sym_flag='-Bexport'
9978         no_entry_flag=
9979       else
9980         # If we're using GNU nm, then we don't want the "-C" option.
9981         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9982         # Without the "-l" option, or with the "-B" option, AIX nm treats
9983         # weak defined symbols like other global defined symbols, whereas
9984         # GNU nm marks them as "W".
9985         # While the 'weak' keyword is ignored in the Export File, we need
9986         # it in the Import File for the 'aix-soname' feature, so we have
9987         # to replace the "-B" option with "-P" for AIX nm.
9988         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9989           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'
9990         else
9991           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'
9992         fi
9993         aix_use_runtimelinking=no
9994
9995         # Test if we are trying to use run time linking or normal
9996         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9997         # have runtime linking enabled, and use it for executables.
9998         # For shared libraries, we enable/disable runtime linking
9999         # depending on the kind of the shared library created -
10000         # when "with_aix_soname,aix_use_runtimelinking" is:
10001         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10002         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10003         #            lib.a           static archive
10004         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10005         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10006         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10007         #            lib.a(lib.so.V) shared, rtl:no
10008         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10009         #            lib.a           static archive
10010         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10011           for ld_flag in $LDFLAGS; do
10012           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10013             aix_use_runtimelinking=yes
10014             break
10015           fi
10016           done
10017           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10018             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10019             # so we don't have lib.a shared libs to link our executables.
10020             # We have to force runtime linking in this case.
10021             aix_use_runtimelinking=yes
10022             LDFLAGS="$LDFLAGS -Wl,-brtl"
10023           fi
10024           ;;
10025         esac
10026
10027         exp_sym_flag='-bexport'
10028         no_entry_flag='-bnoentry'
10029       fi
10030
10031       # When large executables or shared objects are built, AIX ld can
10032       # have problems creating the table of contents.  If linking a library
10033       # or program results in "error TOC overflow" add -mminimal-toc to
10034       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10035       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10036
10037       archive_cmds=''
10038       hardcode_direct=yes
10039       hardcode_direct_absolute=yes
10040       hardcode_libdir_separator=':'
10041       link_all_deplibs=yes
10042       file_list_spec='$wl-f,'
10043       case $with_aix_soname,$aix_use_runtimelinking in
10044       aix,*) ;; # traditional, no import file
10045       svr4,* | *,yes) # use import file
10046         # The Import File defines what to hardcode.
10047         hardcode_direct=no
10048         hardcode_direct_absolute=no
10049         ;;
10050       esac
10051
10052       if test yes = "$GCC"; then
10053         case $host_os in aix4.[012]|aix4.[012].*)
10054         # We only want to do this on AIX 4.2 and lower, the check
10055         # below for broken collect2 doesn't work under 4.3+
10056           collect2name=`$CC -print-prog-name=collect2`
10057           if test -f "$collect2name" &&
10058            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10059           then
10060           # We have reworked collect2
10061           :
10062           else
10063           # We have old collect2
10064           hardcode_direct=unsupported
10065           # It fails to find uninstalled libraries when the uninstalled
10066           # path is not listed in the libpath.  Setting hardcode_minus_L
10067           # to unsupported forces relinking
10068           hardcode_minus_L=yes
10069           hardcode_libdir_flag_spec='-L$libdir'
10070           hardcode_libdir_separator=
10071           fi
10072           ;;
10073         esac
10074         shared_flag='-shared'
10075         if test yes = "$aix_use_runtimelinking"; then
10076           shared_flag="$shared_flag "'$wl-G'
10077         fi
10078         # Need to ensure runtime linking is disabled for the traditional
10079         # shared library, or the linker may eventually find shared libraries
10080         # /with/ Import File - we do not want to mix them.
10081         shared_flag_aix='-shared'
10082         shared_flag_svr4='-shared $wl-G'
10083       else
10084         # not using gcc
10085         if test ia64 = "$host_cpu"; then
10086         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10087         # chokes on -Wl,-G. The following line is correct:
10088           shared_flag='-G'
10089         else
10090           if test yes = "$aix_use_runtimelinking"; then
10091             shared_flag='$wl-G'
10092           else
10093             shared_flag='$wl-bM:SRE'
10094           fi
10095           shared_flag_aix='$wl-bM:SRE'
10096           shared_flag_svr4='$wl-G'
10097         fi
10098       fi
10099
10100       export_dynamic_flag_spec='$wl-bexpall'
10101       # It seems that -bexpall does not export symbols beginning with
10102       # underscore (_), so it is better to generate a list of symbols to export.
10103       always_export_symbols=yes
10104       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10105         # Warning - without using the other runtime loading flags (-brtl),
10106         # -berok will link without error, but may produce a broken library.
10107         allow_undefined_flag='-berok'
10108         # Determine the default libpath from the value encoded in an
10109         # empty executable.
10110         if test set = "${lt_cv_aix_libpath+set}"; then
10111   aix_libpath=$lt_cv_aix_libpath
10112 else
10113   if ${lt_cv_aix_libpath_+:} false; then :
10114   $as_echo_n "(cached) " >&6
10115 else
10116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h.  */
10118
10119 int
10120 main ()
10121 {
10122
10123   ;
10124   return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128
10129   lt_aix_libpath_sed='
10130       /Import File Strings/,/^$/ {
10131           /^0/ {
10132               s/^0  *\([^ ]*\) *$/\1/
10133               p
10134           }
10135       }'
10136   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10137   # Check for a 64-bit object if we didn't find anything.
10138   if test -z "$lt_cv_aix_libpath_"; then
10139     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10140   fi
10141 fi
10142 rm -f core conftest.err conftest.$ac_objext \
10143     conftest$ac_exeext conftest.$ac_ext
10144   if test -z "$lt_cv_aix_libpath_"; then
10145     lt_cv_aix_libpath_=/usr/lib:/lib
10146   fi
10147
10148 fi
10149
10150   aix_libpath=$lt_cv_aix_libpath_
10151 fi
10152
10153         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10154         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
10155       else
10156         if test ia64 = "$host_cpu"; then
10157           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10158           allow_undefined_flag="-z nodefs"
10159           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"
10160         else
10161          # Determine the default libpath from the value encoded in an
10162          # empty executable.
10163          if test set = "${lt_cv_aix_libpath+set}"; then
10164   aix_libpath=$lt_cv_aix_libpath
10165 else
10166   if ${lt_cv_aix_libpath_+:} false; then :
10167   $as_echo_n "(cached) " >&6
10168 else
10169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h.  */
10171
10172 int
10173 main ()
10174 {
10175
10176   ;
10177   return 0;
10178 }
10179 _ACEOF
10180 if ac_fn_c_try_link "$LINENO"; then :
10181
10182   lt_aix_libpath_sed='
10183       /Import File Strings/,/^$/ {
10184           /^0/ {
10185               s/^0  *\([^ ]*\) *$/\1/
10186               p
10187           }
10188       }'
10189   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10190   # Check for a 64-bit object if we didn't find anything.
10191   if test -z "$lt_cv_aix_libpath_"; then
10192     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10193   fi
10194 fi
10195 rm -f core conftest.err conftest.$ac_objext \
10196     conftest$ac_exeext conftest.$ac_ext
10197   if test -z "$lt_cv_aix_libpath_"; then
10198     lt_cv_aix_libpath_=/usr/lib:/lib
10199   fi
10200
10201 fi
10202
10203   aix_libpath=$lt_cv_aix_libpath_
10204 fi
10205
10206          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10207           # Warning - without using the other run time loading flags,
10208           # -berok will link without error, but may produce a broken library.
10209           no_undefined_flag=' $wl-bernotok'
10210           allow_undefined_flag=' $wl-berok'
10211           if test yes = "$with_gnu_ld"; then
10212             # We only use this code for GNU lds that support --whole-archive.
10213             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10214           else
10215             # Exported symbols can be pulled into shared objects from archives
10216             whole_archive_flag_spec='$convenience'
10217           fi
10218           archive_cmds_need_lc=yes
10219           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10220           # -brtl affects multiple linker settings, -berok does not and is overridden later
10221           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10222           if test svr4 != "$with_aix_soname"; then
10223             # This is similar to how AIX traditionally builds its shared libraries.
10224             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'
10225           fi
10226           if test aix != "$with_aix_soname"; then
10227             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'
10228           else
10229             # used by -dlpreopen to get the symbols
10230             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10231           fi
10232           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10233         fi
10234       fi
10235       ;;
10236
10237     amigaos*)
10238       case $host_cpu in
10239       powerpc)
10240             # see comment about AmigaOS4 .so support
10241             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10242             archive_expsym_cmds=''
10243         ;;
10244       m68k)
10245             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)'
10246             hardcode_libdir_flag_spec='-L$libdir'
10247             hardcode_minus_L=yes
10248         ;;
10249       esac
10250       ;;
10251
10252     bsdi[45]*)
10253       export_dynamic_flag_spec=-rdynamic
10254       ;;
10255
10256     cygwin* | mingw* | pw32* | cegcc*)
10257       # When not using gcc, we currently assume that we are using
10258       # Microsoft Visual C++.
10259       # hardcode_libdir_flag_spec is actually meaningless, as there is
10260       # no search path for DLLs.
10261       case $cc_basename in
10262       cl*)
10263         # Native MSVC
10264         hardcode_libdir_flag_spec=' '
10265         allow_undefined_flag=unsupported
10266         always_export_symbols=yes
10267         file_list_spec='@'
10268         # Tell ltmain to make .lib files, not .a files.
10269         libext=lib
10270         # Tell ltmain to make .dll files, not .so files.
10271         shrext_cmds=.dll
10272         # FIXME: Setting linknames here is a bad hack.
10273         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10274         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10275             cp "$export_symbols" "$output_objdir/$soname.def";
10276             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10277           else
10278             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10279           fi~
10280           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10281           linknames='
10282         # The linker will not automatically build a static lib if we build a DLL.
10283         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10284         enable_shared_with_static_runtimes=yes
10285         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10286         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10287         # Don't use ranlib
10288         old_postinstall_cmds='chmod 644 $oldlib'
10289         postlink_cmds='lt_outputfile="@OUTPUT@"~
10290           lt_tool_outputfile="@TOOL_OUTPUT@"~
10291           case $lt_outputfile in
10292             *.exe|*.EXE) ;;
10293             *)
10294               lt_outputfile=$lt_outputfile.exe
10295               lt_tool_outputfile=$lt_tool_outputfile.exe
10296               ;;
10297           esac~
10298           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10299             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10300             $RM "$lt_outputfile.manifest";
10301           fi'
10302         ;;
10303       *)
10304         # Assume MSVC wrapper
10305         hardcode_libdir_flag_spec=' '
10306         allow_undefined_flag=unsupported
10307         # Tell ltmain to make .lib files, not .a files.
10308         libext=lib
10309         # Tell ltmain to make .dll files, not .so files.
10310         shrext_cmds=.dll
10311         # FIXME: Setting linknames here is a bad hack.
10312         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10313         # The linker will automatically build a .lib file if we build a DLL.
10314         old_archive_from_new_cmds='true'
10315         # FIXME: Should let the user specify the lib program.
10316         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10317         enable_shared_with_static_runtimes=yes
10318         ;;
10319       esac
10320       ;;
10321
10322     darwin* | rhapsody*)
10323
10324
10325   archive_cmds_need_lc=no
10326   hardcode_direct=no
10327   hardcode_automatic=yes
10328   hardcode_shlibpath_var=unsupported
10329   if test yes = "$lt_cv_ld_force_load"; then
10330     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\"`'
10331
10332   else
10333     whole_archive_flag_spec=''
10334   fi
10335   link_all_deplibs=yes
10336   allow_undefined_flag=$_lt_dar_allow_undefined
10337   case $cc_basename in
10338      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10339      *) _lt_dar_can_shared=$GCC ;;
10340   esac
10341   if test yes = "$_lt_dar_can_shared"; then
10342     output_verbose_link_cmd=func_echo_all
10343     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10344     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10345     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"
10346     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"
10347
10348   else
10349   ld_shlibs=no
10350   fi
10351
10352       ;;
10353
10354     dgux*)
10355       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10356       hardcode_libdir_flag_spec='-L$libdir'
10357       hardcode_shlibpath_var=no
10358       ;;
10359
10360     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10361     # support.  Future versions do this automatically, but an explicit c++rt0.o
10362     # does not break anything, and helps significantly (at the cost of a little
10363     # extra space).
10364     freebsd2.2*)
10365       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10366       hardcode_libdir_flag_spec='-R$libdir'
10367       hardcode_direct=yes
10368       hardcode_shlibpath_var=no
10369       ;;
10370
10371     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10372     freebsd2.*)
10373       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10374       hardcode_direct=yes
10375       hardcode_minus_L=yes
10376       hardcode_shlibpath_var=no
10377       ;;
10378
10379     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10380     freebsd* | dragonfly*)
10381       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10382       hardcode_libdir_flag_spec='-R$libdir'
10383       hardcode_direct=yes
10384       hardcode_shlibpath_var=no
10385       ;;
10386
10387     hpux9*)
10388       if test yes = "$GCC"; then
10389         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'
10390       else
10391         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'
10392       fi
10393       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10394       hardcode_libdir_separator=:
10395       hardcode_direct=yes
10396
10397       # hardcode_minus_L: Not really in the search PATH,
10398       # but as the default location of the library.
10399       hardcode_minus_L=yes
10400       export_dynamic_flag_spec='$wl-E'
10401       ;;
10402
10403     hpux10*)
10404       if test yes,no = "$GCC,$with_gnu_ld"; then
10405         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10406       else
10407         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10408       fi
10409       if test no = "$with_gnu_ld"; then
10410         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10411         hardcode_libdir_separator=:
10412         hardcode_direct=yes
10413         hardcode_direct_absolute=yes
10414         export_dynamic_flag_spec='$wl-E'
10415         # hardcode_minus_L: Not really in the search PATH,
10416         # but as the default location of the library.
10417         hardcode_minus_L=yes
10418       fi
10419       ;;
10420
10421     hpux11*)
10422       if test yes,no = "$GCC,$with_gnu_ld"; then
10423         case $host_cpu in
10424         hppa*64*)
10425           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10426           ;;
10427         ia64*)
10428           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10429           ;;
10430         *)
10431           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10432           ;;
10433         esac
10434       else
10435         case $host_cpu in
10436         hppa*64*)
10437           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10438           ;;
10439         ia64*)
10440           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10441           ;;
10442         *)
10443
10444           # Older versions of the 11.00 compiler do not understand -b yet
10445           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10446           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10447 $as_echo_n "checking if $CC understands -b... " >&6; }
10448 if ${lt_cv_prog_compiler__b+:} false; then :
10449   $as_echo_n "(cached) " >&6
10450 else
10451   lt_cv_prog_compiler__b=no
10452    save_LDFLAGS=$LDFLAGS
10453    LDFLAGS="$LDFLAGS -b"
10454    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10455    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10456      # The linker can only warn and ignore the option if not recognized
10457      # So say no if there are warnings
10458      if test -s conftest.err; then
10459        # Append any errors to the config.log.
10460        cat conftest.err 1>&5
10461        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10462        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10463        if diff conftest.exp conftest.er2 >/dev/null; then
10464          lt_cv_prog_compiler__b=yes
10465        fi
10466      else
10467        lt_cv_prog_compiler__b=yes
10468      fi
10469    fi
10470    $RM -r conftest*
10471    LDFLAGS=$save_LDFLAGS
10472
10473 fi
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10475 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10476
10477 if test yes = "$lt_cv_prog_compiler__b"; then
10478     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10479 else
10480     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10481 fi
10482
10483           ;;
10484         esac
10485       fi
10486       if test no = "$with_gnu_ld"; then
10487         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10488         hardcode_libdir_separator=:
10489
10490         case $host_cpu in
10491         hppa*64*|ia64*)
10492           hardcode_direct=no
10493           hardcode_shlibpath_var=no
10494           ;;
10495         *)
10496           hardcode_direct=yes
10497           hardcode_direct_absolute=yes
10498           export_dynamic_flag_spec='$wl-E'
10499
10500           # hardcode_minus_L: Not really in the search PATH,
10501           # but as the default location of the library.
10502           hardcode_minus_L=yes
10503           ;;
10504         esac
10505       fi
10506       ;;
10507
10508     irix5* | irix6* | nonstopux*)
10509       if test yes = "$GCC"; then
10510         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'
10511         # Try to use the -exported_symbol ld option, if it does not
10512         # work, assume that -exports_file does not work either and
10513         # implicitly export all symbols.
10514         # This should be the same for all languages, so no per-tag cache variable.
10515         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10516 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10517 if ${lt_cv_irix_exported_symbol+:} false; then :
10518   $as_echo_n "(cached) " >&6
10519 else
10520   save_LDFLAGS=$LDFLAGS
10521            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10522            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h.  */
10524 int foo (void) { return 0; }
10525 _ACEOF
10526 if ac_fn_c_try_link "$LINENO"; then :
10527   lt_cv_irix_exported_symbol=yes
10528 else
10529   lt_cv_irix_exported_symbol=no
10530 fi
10531 rm -f core conftest.err conftest.$ac_objext \
10532     conftest$ac_exeext conftest.$ac_ext
10533            LDFLAGS=$save_LDFLAGS
10534 fi
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10536 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10537         if test yes = "$lt_cv_irix_exported_symbol"; then
10538           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'
10539         fi
10540       else
10541         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'
10542         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'
10543       fi
10544       archive_cmds_need_lc='no'
10545       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10546       hardcode_libdir_separator=:
10547       inherit_rpath=yes
10548       link_all_deplibs=yes
10549       ;;
10550
10551     linux*)
10552       case $cc_basename in
10553       tcc*)
10554         # Fabrice Bellard et al's Tiny C Compiler
10555         ld_shlibs=yes
10556         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10557         ;;
10558       esac
10559       ;;
10560
10561     netbsd*)
10562       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10563         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10564       else
10565         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10566       fi
10567       hardcode_libdir_flag_spec='-R$libdir'
10568       hardcode_direct=yes
10569       hardcode_shlibpath_var=no
10570       ;;
10571
10572     newsos6)
10573       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574       hardcode_direct=yes
10575       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10576       hardcode_libdir_separator=:
10577       hardcode_shlibpath_var=no
10578       ;;
10579
10580     *nto* | *qnx*)
10581       ;;
10582
10583     openbsd* | bitrig*)
10584       if test -f /usr/libexec/ld.so; then
10585         hardcode_direct=yes
10586         hardcode_shlibpath_var=no
10587         hardcode_direct_absolute=yes
10588         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10589           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10590           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10591           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10592           export_dynamic_flag_spec='$wl-E'
10593         else
10594           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10595           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10596         fi
10597       else
10598         ld_shlibs=no
10599       fi
10600       ;;
10601
10602     os2*)
10603       hardcode_libdir_flag_spec='-L$libdir'
10604       hardcode_minus_L=yes
10605       allow_undefined_flag=unsupported
10606       shrext_cmds=.dll
10607       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10608         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10609         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10610         $ECHO EXPORTS >> $output_objdir/$libname.def~
10611         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10612         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10613         emximp -o $lib $output_objdir/$libname.def'
10614       archive_expsym_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         prefix_cmds="$SED"~
10619         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10620           prefix_cmds="$prefix_cmds -e 1d";
10621         fi~
10622         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10623         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10624         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10625         emximp -o $lib $output_objdir/$libname.def'
10626       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10627       enable_shared_with_static_runtimes=yes
10628       ;;
10629
10630     osf3*)
10631       if test yes = "$GCC"; then
10632         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10633         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'
10634       else
10635         allow_undefined_flag=' -expect_unresolved \*'
10636         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'
10637       fi
10638       archive_cmds_need_lc='no'
10639       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10640       hardcode_libdir_separator=:
10641       ;;
10642
10643     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10644       if test yes = "$GCC"; then
10645         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10646         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'
10647         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10648       else
10649         allow_undefined_flag=' -expect_unresolved \*'
10650         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'
10651         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~
10652           $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'
10653
10654         # Both c and cxx compiler support -rpath directly
10655         hardcode_libdir_flag_spec='-rpath $libdir'
10656       fi
10657       archive_cmds_need_lc='no'
10658       hardcode_libdir_separator=:
10659       ;;
10660
10661     solaris*)
10662       no_undefined_flag=' -z defs'
10663       if test yes = "$GCC"; then
10664         wlarc='$wl'
10665         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10666         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10667           $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'
10668       else
10669         case `$CC -V 2>&1` in
10670         *"Compilers 5.0"*)
10671           wlarc=''
10672           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10673           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10674             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10675           ;;
10676         *)
10677           wlarc='$wl'
10678           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10679           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10680             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10681           ;;
10682         esac
10683       fi
10684       hardcode_libdir_flag_spec='-R$libdir'
10685       hardcode_shlibpath_var=no
10686       case $host_os in
10687       solaris2.[0-5] | solaris2.[0-5].*) ;;
10688       *)
10689         # The compiler driver will combine and reorder linker options,
10690         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10691         # but is careful enough not to reorder.
10692         # Supported since Solaris 2.6 (maybe 2.5.1?)
10693         if test yes = "$GCC"; then
10694           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10695         else
10696           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10697         fi
10698         ;;
10699       esac
10700       link_all_deplibs=yes
10701       ;;
10702
10703     sunos4*)
10704       if test sequent = "$host_vendor"; then
10705         # Use $CC to link under sequent, because it throws in some extra .o
10706         # files that make .init and .fini sections work.
10707         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10708       else
10709         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10710       fi
10711       hardcode_libdir_flag_spec='-L$libdir'
10712       hardcode_direct=yes
10713       hardcode_minus_L=yes
10714       hardcode_shlibpath_var=no
10715       ;;
10716
10717     sysv4)
10718       case $host_vendor in
10719         sni)
10720           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10721           hardcode_direct=yes # is this really true???
10722         ;;
10723         siemens)
10724           ## LD is ld it makes a PLAMLIB
10725           ## CC just makes a GrossModule.
10726           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10727           reload_cmds='$CC -r -o $output$reload_objs'
10728           hardcode_direct=no
10729         ;;
10730         motorola)
10731           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10732           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10733         ;;
10734       esac
10735       runpath_var='LD_RUN_PATH'
10736       hardcode_shlibpath_var=no
10737       ;;
10738
10739     sysv4.3*)
10740       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741       hardcode_shlibpath_var=no
10742       export_dynamic_flag_spec='-Bexport'
10743       ;;
10744
10745     sysv4*MP*)
10746       if test -d /usr/nec; then
10747         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10748         hardcode_shlibpath_var=no
10749         runpath_var=LD_RUN_PATH
10750         hardcode_runpath_var=yes
10751         ld_shlibs=yes
10752       fi
10753       ;;
10754
10755     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10756       no_undefined_flag='$wl-z,text'
10757       archive_cmds_need_lc=no
10758       hardcode_shlibpath_var=no
10759       runpath_var='LD_RUN_PATH'
10760
10761       if test yes = "$GCC"; then
10762         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10764       else
10765         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10767       fi
10768       ;;
10769
10770     sysv5* | sco3.2v5* | sco5v6*)
10771       # Note: We CANNOT use -z defs as we might desire, because we do not
10772       # link with -lc, and that would cause any symbols used from libc to
10773       # always be unresolved, which means just about no library would
10774       # ever link correctly.  If we're not using GNU ld we use -z text
10775       # though, which does catch some bad symbols but isn't as heavy-handed
10776       # as -z defs.
10777       no_undefined_flag='$wl-z,text'
10778       allow_undefined_flag='$wl-z,nodefs'
10779       archive_cmds_need_lc=no
10780       hardcode_shlibpath_var=no
10781       hardcode_libdir_flag_spec='$wl-R,$libdir'
10782       hardcode_libdir_separator=':'
10783       link_all_deplibs=yes
10784       export_dynamic_flag_spec='$wl-Bexport'
10785       runpath_var='LD_RUN_PATH'
10786
10787       if test yes = "$GCC"; then
10788         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10790       else
10791         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10793       fi
10794       ;;
10795
10796     uts4*)
10797       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10798       hardcode_libdir_flag_spec='-L$libdir'
10799       hardcode_shlibpath_var=no
10800       ;;
10801
10802     *)
10803       ld_shlibs=no
10804       ;;
10805     esac
10806
10807     if test sni = "$host_vendor"; then
10808       case $host in
10809       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10810         export_dynamic_flag_spec='$wl-Blargedynsym'
10811         ;;
10812       esac
10813     fi
10814   fi
10815
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10817 $as_echo "$ld_shlibs" >&6; }
10818 test no = "$ld_shlibs" && can_build_shared=no
10819
10820 with_gnu_ld=$with_gnu_ld
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836 #
10837 # Do we need to explicitly link libc?
10838 #
10839 case "x$archive_cmds_need_lc" in
10840 x|xyes)
10841   # Assume -lc should be added
10842   archive_cmds_need_lc=yes
10843
10844   if test yes,yes = "$GCC,$enable_shared"; then
10845     case $archive_cmds in
10846     *'~'*)
10847       # FIXME: we may have to deal with multi-command sequences.
10848       ;;
10849     '$CC '*)
10850       # Test whether the compiler implicitly links with -lc since on some
10851       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10852       # to ld, don't add -lc before -lgcc.
10853       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10854 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10855 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10856   $as_echo_n "(cached) " >&6
10857 else
10858   $RM conftest*
10859         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10860
10861         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10862   (eval $ac_compile) 2>&5
10863   ac_status=$?
10864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10865   test $ac_status = 0; } 2>conftest.err; then
10866           soname=conftest
10867           lib=conftest
10868           libobjs=conftest.$ac_objext
10869           deplibs=
10870           wl=$lt_prog_compiler_wl
10871           pic_flag=$lt_prog_compiler_pic
10872           compiler_flags=-v
10873           linker_flags=-v
10874           verstring=
10875           output_objdir=.
10876           libname=conftest
10877           lt_save_allow_undefined_flag=$allow_undefined_flag
10878           allow_undefined_flag=
10879           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10880   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10881   ac_status=$?
10882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10883   test $ac_status = 0; }
10884           then
10885             lt_cv_archive_cmds_need_lc=no
10886           else
10887             lt_cv_archive_cmds_need_lc=yes
10888           fi
10889           allow_undefined_flag=$lt_save_allow_undefined_flag
10890         else
10891           cat conftest.err 1>&5
10892         fi
10893         $RM conftest*
10894
10895 fi
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10897 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10898       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10899       ;;
10900     esac
10901   fi
10902   ;;
10903 esac
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11057 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11058
11059 if test yes = "$GCC"; then
11060   case $host_os in
11061     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11062     *) lt_awk_arg='/^libraries:/' ;;
11063   esac
11064   case $host_os in
11065     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11066     *) lt_sed_strip_eq='s|=/|/|g' ;;
11067   esac
11068   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11069   case $lt_search_path_spec in
11070   *\;*)
11071     # if the path contains ";" then we assume it to be the separator
11072     # otherwise default to the standard path separator (i.e. ":") - it is
11073     # assumed that no part of a normal pathname contains ";" but that should
11074     # okay in the real world where ";" in dirpaths is itself problematic.
11075     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11076     ;;
11077   *)
11078     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11079     ;;
11080   esac
11081   # Ok, now we have the path, separated by spaces, we can step through it
11082   # and add multilib dir if necessary...
11083   lt_tmp_lt_search_path_spec=
11084   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11085   # ...but if some path component already ends with the multilib dir we assume
11086   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11087   case "$lt_multi_os_dir; $lt_search_path_spec " in
11088   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11089     lt_multi_os_dir=
11090     ;;
11091   esac
11092   for lt_sys_path in $lt_search_path_spec; do
11093     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11094       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11095     elif test -n "$lt_multi_os_dir"; then
11096       test -d "$lt_sys_path" && \
11097         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11098     fi
11099   done
11100   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11101 BEGIN {RS = " "; FS = "/|\n";} {
11102   lt_foo = "";
11103   lt_count = 0;
11104   for (lt_i = NF; lt_i > 0; lt_i--) {
11105     if ($lt_i != "" && $lt_i != ".") {
11106       if ($lt_i == "..") {
11107         lt_count++;
11108       } else {
11109         if (lt_count == 0) {
11110           lt_foo = "/" $lt_i lt_foo;
11111         } else {
11112           lt_count--;
11113         }
11114       }
11115     }
11116   }
11117   if (lt_foo != "") { lt_freq[lt_foo]++; }
11118   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11119 }'`
11120   # AWK program above erroneously prepends '/' to C:/dos/paths
11121   # for these hosts.
11122   case $host_os in
11123     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11124       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11125   esac
11126   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11127 else
11128   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11129 fi
11130 library_names_spec=
11131 libname_spec='lib$name'
11132 soname_spec=
11133 shrext_cmds=.so
11134 postinstall_cmds=
11135 postuninstall_cmds=
11136 finish_cmds=
11137 finish_eval=
11138 shlibpath_var=
11139 shlibpath_overrides_runpath=unknown
11140 version_type=none
11141 dynamic_linker="$host_os ld.so"
11142 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11143 need_lib_prefix=unknown
11144 hardcode_into_libs=no
11145
11146 # when you set need_version to no, make sure it does not cause -set_version
11147 # flags to be left without arguments
11148 need_version=unknown
11149
11150
11151
11152 case $host_os in
11153 aix3*)
11154   version_type=linux # correct to gnu/linux during the next big refactor
11155   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11156   shlibpath_var=LIBPATH
11157
11158   # AIX 3 has no versioning support, so we append a major version to the name.
11159   soname_spec='$libname$release$shared_ext$major'
11160   ;;
11161
11162 aix[4-9]*)
11163   version_type=linux # correct to gnu/linux during the next big refactor
11164   need_lib_prefix=no
11165   need_version=no
11166   hardcode_into_libs=yes
11167   if test ia64 = "$host_cpu"; then
11168     # AIX 5 supports IA64
11169     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11170     shlibpath_var=LD_LIBRARY_PATH
11171   else
11172     # With GCC up to 2.95.x, collect2 would create an import file
11173     # for dependence libraries.  The import file would start with
11174     # the line '#! .'.  This would cause the generated library to
11175     # depend on '.', always an invalid library.  This was fixed in
11176     # development snapshots of GCC prior to 3.0.
11177     case $host_os in
11178       aix4 | aix4.[01] | aix4.[01].*)
11179       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11180            echo ' yes '
11181            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11182         :
11183       else
11184         can_build_shared=no
11185       fi
11186       ;;
11187     esac
11188     # Using Import Files as archive members, it is possible to support
11189     # filename-based versioning of shared library archives on AIX. While
11190     # this would work for both with and without runtime linking, it will
11191     # prevent static linking of such archives. So we do filename-based
11192     # shared library versioning with .so extension only, which is used
11193     # when both runtime linking and shared linking is enabled.
11194     # Unfortunately, runtime linking may impact performance, so we do
11195     # not want this to be the default eventually. Also, we use the
11196     # versioned .so libs for executables only if there is the -brtl
11197     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11198     # To allow for filename-based versioning support, we need to create
11199     # libNAME.so.V as an archive file, containing:
11200     # *) an Import File, referring to the versioned filename of the
11201     #    archive as well as the shared archive member, telling the
11202     #    bitwidth (32 or 64) of that shared object, and providing the
11203     #    list of exported symbols of that shared object, eventually
11204     #    decorated with the 'weak' keyword
11205     # *) the shared object with the F_LOADONLY flag set, to really avoid
11206     #    it being seen by the linker.
11207     # At run time we better use the real file rather than another symlink,
11208     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11209
11210     case $with_aix_soname,$aix_use_runtimelinking in
11211     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11212     # soname into executable. Probably we can add versioning support to
11213     # collect2, so additional links can be useful in future.
11214     aix,yes) # traditional libtool
11215       dynamic_linker='AIX unversionable lib.so'
11216       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11217       # instead of lib<name>.a to let people know that these are not
11218       # typical AIX shared libraries.
11219       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220       ;;
11221     aix,no) # traditional AIX only
11222       dynamic_linker='AIX lib.a(lib.so.V)'
11223       # We preserve .a as extension for shared libraries through AIX4.2
11224       # and later when we are not doing run time linking.
11225       library_names_spec='$libname$release.a $libname.a'
11226       soname_spec='$libname$release$shared_ext$major'
11227       ;;
11228     svr4,*) # full svr4 only
11229       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11230       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11231       # We do not specify a path in Import Files, so LIBPATH fires.
11232       shlibpath_overrides_runpath=yes
11233       ;;
11234     *,yes) # both, prefer svr4
11235       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11236       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11237       # unpreferred sharedlib libNAME.a needs extra handling
11238       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"'
11239       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"'
11240       # We do not specify a path in Import Files, so LIBPATH fires.
11241       shlibpath_overrides_runpath=yes
11242       ;;
11243     *,no) # both, prefer aix
11244       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11245       library_names_spec='$libname$release.a $libname.a'
11246       soname_spec='$libname$release$shared_ext$major'
11247       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11248       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)'
11249       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"'
11250       ;;
11251     esac
11252     shlibpath_var=LIBPATH
11253   fi
11254   ;;
11255
11256 amigaos*)
11257   case $host_cpu in
11258   powerpc)
11259     # Since July 2007 AmigaOS4 officially supports .so libraries.
11260     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11261     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11262     ;;
11263   m68k)
11264     library_names_spec='$libname.ixlibrary $libname.a'
11265     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11266     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'
11267     ;;
11268   esac
11269   ;;
11270
11271 beos*)
11272   library_names_spec='$libname$shared_ext'
11273   dynamic_linker="$host_os ld.so"
11274   shlibpath_var=LIBRARY_PATH
11275   ;;
11276
11277 bsdi[45]*)
11278   version_type=linux # correct to gnu/linux during the next big refactor
11279   need_version=no
11280   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11281   soname_spec='$libname$release$shared_ext$major'
11282   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11283   shlibpath_var=LD_LIBRARY_PATH
11284   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11285   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11286   # the default ld.so.conf also contains /usr/contrib/lib and
11287   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11288   # libtool to hard-code these into programs
11289   ;;
11290
11291 cygwin* | mingw* | pw32* | cegcc*)
11292   version_type=windows
11293   shrext_cmds=.dll
11294   need_version=no
11295   need_lib_prefix=no
11296
11297   case $GCC,$cc_basename in
11298   yes,*)
11299     # gcc
11300     library_names_spec='$libname.dll.a'
11301     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11302     postinstall_cmds='base_file=`basename \$file`~
11303       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11304       dldir=$destdir/`dirname \$dlpath`~
11305       test -d \$dldir || mkdir -p \$dldir~
11306       $install_prog $dir/$dlname \$dldir/$dlname~
11307       chmod a+x \$dldir/$dlname~
11308       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11309         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11310       fi'
11311     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11312       dlpath=$dir/\$dldll~
11313        $RM \$dlpath'
11314     shlibpath_overrides_runpath=yes
11315
11316     case $host_os in
11317     cygwin*)
11318       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11319       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11320
11321       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11322       ;;
11323     mingw* | cegcc*)
11324       # MinGW DLLs use traditional 'lib' prefix
11325       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11326       ;;
11327     pw32*)
11328       # pw32 DLLs use 'pw' prefix rather than 'lib'
11329       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11330       ;;
11331     esac
11332     dynamic_linker='Win32 ld.exe'
11333     ;;
11334
11335   *,cl*)
11336     # Native MSVC
11337     libname_spec='$name'
11338     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11339     library_names_spec='$libname.dll.lib'
11340
11341     case $build_os in
11342     mingw*)
11343       sys_lib_search_path_spec=
11344       lt_save_ifs=$IFS
11345       IFS=';'
11346       for lt_path in $LIB
11347       do
11348         IFS=$lt_save_ifs
11349         # Let DOS variable expansion print the short 8.3 style file name.
11350         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11351         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11352       done
11353       IFS=$lt_save_ifs
11354       # Convert to MSYS style.
11355       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11356       ;;
11357     cygwin*)
11358       # Convert to unix form, then to dos form, then back to unix form
11359       # but this time dos style (no spaces!) so that the unix form looks
11360       # like /cygdrive/c/PROGRA~1:/cygdr...
11361       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11362       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11363       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11364       ;;
11365     *)
11366       sys_lib_search_path_spec=$LIB
11367       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11368         # It is most probably a Windows format PATH.
11369         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11370       else
11371         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11372       fi
11373       # FIXME: find the short name or the path components, as spaces are
11374       # common. (e.g. "Program Files" -> "PROGRA~1")
11375       ;;
11376     esac
11377
11378     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11379     postinstall_cmds='base_file=`basename \$file`~
11380       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11381       dldir=$destdir/`dirname \$dlpath`~
11382       test -d \$dldir || mkdir -p \$dldir~
11383       $install_prog $dir/$dlname \$dldir/$dlname'
11384     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11385       dlpath=$dir/\$dldll~
11386        $RM \$dlpath'
11387     shlibpath_overrides_runpath=yes
11388     dynamic_linker='Win32 link.exe'
11389     ;;
11390
11391   *)
11392     # Assume MSVC wrapper
11393     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11394     dynamic_linker='Win32 ld.exe'
11395     ;;
11396   esac
11397   # FIXME: first we should search . and the directory the executable is in
11398   shlibpath_var=PATH
11399   ;;
11400
11401 darwin* | rhapsody*)
11402   dynamic_linker="$host_os dyld"
11403   version_type=darwin
11404   need_lib_prefix=no
11405   need_version=no
11406   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11407   soname_spec='$libname$release$major$shared_ext'
11408   shlibpath_overrides_runpath=yes
11409   shlibpath_var=DYLD_LIBRARY_PATH
11410   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11411
11412   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11413   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11414   ;;
11415
11416 dgux*)
11417   version_type=linux # correct to gnu/linux during the next big refactor
11418   need_lib_prefix=no
11419   need_version=no
11420   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11421   soname_spec='$libname$release$shared_ext$major'
11422   shlibpath_var=LD_LIBRARY_PATH
11423   ;;
11424
11425 freebsd* | dragonfly*)
11426   # DragonFly does not have aout.  When/if they implement a new
11427   # versioning mechanism, adjust this.
11428   if test -x /usr/bin/objformat; then
11429     objformat=`/usr/bin/objformat`
11430   else
11431     case $host_os in
11432     freebsd[23].*) objformat=aout ;;
11433     *) objformat=elf ;;
11434     esac
11435   fi
11436   version_type=freebsd-$objformat
11437   case $version_type in
11438     freebsd-elf*)
11439       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11440       soname_spec='$libname$release$shared_ext$major'
11441       need_version=no
11442       need_lib_prefix=no
11443       ;;
11444     freebsd-*)
11445       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11446       need_version=yes
11447       ;;
11448   esac
11449   shlibpath_var=LD_LIBRARY_PATH
11450   case $host_os in
11451   freebsd2.*)
11452     shlibpath_overrides_runpath=yes
11453     ;;
11454   freebsd3.[01]* | freebsdelf3.[01]*)
11455     shlibpath_overrides_runpath=yes
11456     hardcode_into_libs=yes
11457     ;;
11458   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11459   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11460     shlibpath_overrides_runpath=no
11461     hardcode_into_libs=yes
11462     ;;
11463   *) # from 4.6 on, and DragonFly
11464     shlibpath_overrides_runpath=yes
11465     hardcode_into_libs=yes
11466     ;;
11467   esac
11468   ;;
11469
11470 haiku*)
11471   version_type=linux # correct to gnu/linux during the next big refactor
11472   need_lib_prefix=no
11473   need_version=no
11474   dynamic_linker="$host_os runtime_loader"
11475   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476   soname_spec='$libname$release$shared_ext$major'
11477   shlibpath_var=LIBRARY_PATH
11478   shlibpath_overrides_runpath=no
11479   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11480   hardcode_into_libs=yes
11481   ;;
11482
11483 hpux9* | hpux10* | hpux11*)
11484   # Give a soname corresponding to the major version so that dld.sl refuses to
11485   # link against other versions.
11486   version_type=sunos
11487   need_lib_prefix=no
11488   need_version=no
11489   case $host_cpu in
11490   ia64*)
11491     shrext_cmds='.so'
11492     hardcode_into_libs=yes
11493     dynamic_linker="$host_os dld.so"
11494     shlibpath_var=LD_LIBRARY_PATH
11495     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11496     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11497     soname_spec='$libname$release$shared_ext$major'
11498     if test 32 = "$HPUX_IA64_MODE"; then
11499       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11500       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11501     else
11502       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11503       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11504     fi
11505     ;;
11506   hppa*64*)
11507     shrext_cmds='.sl'
11508     hardcode_into_libs=yes
11509     dynamic_linker="$host_os dld.sl"
11510     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11511     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11512     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11513     soname_spec='$libname$release$shared_ext$major'
11514     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11515     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11516     ;;
11517   *)
11518     shrext_cmds='.sl'
11519     dynamic_linker="$host_os dld.sl"
11520     shlibpath_var=SHLIB_PATH
11521     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11522     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523     soname_spec='$libname$release$shared_ext$major'
11524     ;;
11525   esac
11526   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11527   postinstall_cmds='chmod 555 $lib'
11528   # or fails outright, so override atomically:
11529   install_override_mode=555
11530   ;;
11531
11532 interix[3-9]*)
11533   version_type=linux # correct to gnu/linux during the next big refactor
11534   need_lib_prefix=no
11535   need_version=no
11536   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11537   soname_spec='$libname$release$shared_ext$major'
11538   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11539   shlibpath_var=LD_LIBRARY_PATH
11540   shlibpath_overrides_runpath=no
11541   hardcode_into_libs=yes
11542   ;;
11543
11544 irix5* | irix6* | nonstopux*)
11545   case $host_os in
11546     nonstopux*) version_type=nonstopux ;;
11547     *)
11548         if test yes = "$lt_cv_prog_gnu_ld"; then
11549                 version_type=linux # correct to gnu/linux during the next big refactor
11550         else
11551                 version_type=irix
11552         fi ;;
11553   esac
11554   need_lib_prefix=no
11555   need_version=no
11556   soname_spec='$libname$release$shared_ext$major'
11557   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11558   case $host_os in
11559   irix5* | nonstopux*)
11560     libsuff= shlibsuff=
11561     ;;
11562   *)
11563     case $LD in # libtool.m4 will add one of these switches to LD
11564     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11565       libsuff= shlibsuff= libmagic=32-bit;;
11566     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11567       libsuff=32 shlibsuff=N32 libmagic=N32;;
11568     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11569       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11570     *) libsuff= shlibsuff= libmagic=never-match;;
11571     esac
11572     ;;
11573   esac
11574   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11575   shlibpath_overrides_runpath=no
11576   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11577   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11578   hardcode_into_libs=yes
11579   ;;
11580
11581 # No shared lib support for Linux oldld, aout, or coff.
11582 linux*oldld* | linux*aout* | linux*coff*)
11583   dynamic_linker=no
11584   ;;
11585
11586 linux*android*)
11587   version_type=none # Android doesn't support versioned libraries.
11588   need_lib_prefix=no
11589   need_version=no
11590   library_names_spec='$libname$release$shared_ext'
11591   soname_spec='$libname$release$shared_ext'
11592   finish_cmds=
11593   shlibpath_var=LD_LIBRARY_PATH
11594   shlibpath_overrides_runpath=yes
11595
11596   # This implies no fast_install, which is unacceptable.
11597   # Some rework will be needed to allow for fast_install
11598   # before this can be enabled.
11599   hardcode_into_libs=yes
11600
11601   dynamic_linker='Android linker'
11602   # Don't embed -rpath directories since the linker doesn't support them.
11603   hardcode_libdir_flag_spec='-L$libdir'
11604   ;;
11605
11606 # This must be glibc/ELF.
11607 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11608   version_type=linux # correct to gnu/linux during the next big refactor
11609   need_lib_prefix=no
11610   need_version=no
11611   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11612   soname_spec='$libname$release$shared_ext$major'
11613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11614   shlibpath_var=LD_LIBRARY_PATH
11615   shlibpath_overrides_runpath=no
11616
11617   # Some binutils ld are patched to set DT_RUNPATH
11618   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11619   $as_echo_n "(cached) " >&6
11620 else
11621   lt_cv_shlibpath_overrides_runpath=no
11622     save_LDFLAGS=$LDFLAGS
11623     save_libdir=$libdir
11624     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11625          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11626     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h.  */
11628
11629 int
11630 main ()
11631 {
11632
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 if ac_fn_c_try_link "$LINENO"; then :
11638   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11639   lt_cv_shlibpath_overrides_runpath=yes
11640 fi
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext \
11643     conftest$ac_exeext conftest.$ac_ext
11644     LDFLAGS=$save_LDFLAGS
11645     libdir=$save_libdir
11646
11647 fi
11648
11649   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11650
11651   # This implies no fast_install, which is unacceptable.
11652   # Some rework will be needed to allow for fast_install
11653   # before this can be enabled.
11654   hardcode_into_libs=yes
11655
11656   # Ideally, we could use ldconfig to report *all* directores which are
11657   # searched for libraries, however this is still not possible.  Aside from not
11658   # being certain /sbin/ldconfig is available, command
11659   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11660   # even though it is searched at run-time.  Try to do the best guess by
11661   # appending ld.so.conf contents (and includes) to the search path.
11662   if test -f /etc/ld.so.conf; then
11663     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' ' '`
11664     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11665   fi
11666
11667   # We used to test for /lib/ld.so.1 and disable shared libraries on
11668   # powerpc, because MkLinux only supported shared libraries with the
11669   # GNU dynamic linker.  Since this was broken with cross compilers,
11670   # most powerpc-linux boxes support dynamic linking these days and
11671   # people can always --disable-shared, the test was removed, and we
11672   # assume the GNU/Linux dynamic linker is in use.
11673   dynamic_linker='GNU/Linux ld.so'
11674   ;;
11675
11676 netbsd*)
11677   version_type=sunos
11678   need_lib_prefix=no
11679   need_version=no
11680   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11681     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11682     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11683     dynamic_linker='NetBSD (a.out) ld.so'
11684   else
11685     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686     soname_spec='$libname$release$shared_ext$major'
11687     dynamic_linker='NetBSD ld.elf_so'
11688   fi
11689   shlibpath_var=LD_LIBRARY_PATH
11690   shlibpath_overrides_runpath=yes
11691   hardcode_into_libs=yes
11692   ;;
11693
11694 newsos6)
11695   version_type=linux # correct to gnu/linux during the next big refactor
11696   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11697   shlibpath_var=LD_LIBRARY_PATH
11698   shlibpath_overrides_runpath=yes
11699   ;;
11700
11701 *nto* | *qnx*)
11702   version_type=qnx
11703   need_lib_prefix=no
11704   need_version=no
11705   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706   soname_spec='$libname$release$shared_ext$major'
11707   shlibpath_var=LD_LIBRARY_PATH
11708   shlibpath_overrides_runpath=no
11709   hardcode_into_libs=yes
11710   dynamic_linker='ldqnx.so'
11711   ;;
11712
11713 openbsd* | bitrig*)
11714   version_type=sunos
11715   sys_lib_dlsearch_path_spec=/usr/lib
11716   need_lib_prefix=no
11717   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11718     need_version=no
11719   else
11720     need_version=yes
11721   fi
11722   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11723   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11724   shlibpath_var=LD_LIBRARY_PATH
11725   shlibpath_overrides_runpath=yes
11726   ;;
11727
11728 os2*)
11729   libname_spec='$name'
11730   version_type=windows
11731   shrext_cmds=.dll
11732   need_version=no
11733   need_lib_prefix=no
11734   # OS/2 can only load a DLL with a base name of 8 characters or less.
11735   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11736     v=$($ECHO $release$versuffix | tr -d .-);
11737     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11738     $ECHO $n$v`$shared_ext'
11739   library_names_spec='${libname}_dll.$libext'
11740   dynamic_linker='OS/2 ld.exe'
11741   shlibpath_var=BEGINLIBPATH
11742   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11743   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11744   postinstall_cmds='base_file=`basename \$file`~
11745     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11746     dldir=$destdir/`dirname \$dlpath`~
11747     test -d \$dldir || mkdir -p \$dldir~
11748     $install_prog $dir/$dlname \$dldir/$dlname~
11749     chmod a+x \$dldir/$dlname~
11750     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11751       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11752     fi'
11753   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11754     dlpath=$dir/\$dldll~
11755     $RM \$dlpath'
11756   ;;
11757
11758 osf3* | osf4* | osf5*)
11759   version_type=osf
11760   need_lib_prefix=no
11761   need_version=no
11762   soname_spec='$libname$release$shared_ext$major'
11763   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11764   shlibpath_var=LD_LIBRARY_PATH
11765   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11766   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11767   ;;
11768
11769 rdos*)
11770   dynamic_linker=no
11771   ;;
11772
11773 solaris*)
11774   version_type=linux # correct to gnu/linux during the next big refactor
11775   need_lib_prefix=no
11776   need_version=no
11777   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11778   soname_spec='$libname$release$shared_ext$major'
11779   shlibpath_var=LD_LIBRARY_PATH
11780   shlibpath_overrides_runpath=yes
11781   hardcode_into_libs=yes
11782   # ldd complains unless libraries are executable
11783   postinstall_cmds='chmod +x $lib'
11784   ;;
11785
11786 sunos4*)
11787   version_type=sunos
11788   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11789   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11790   shlibpath_var=LD_LIBRARY_PATH
11791   shlibpath_overrides_runpath=yes
11792   if test yes = "$with_gnu_ld"; then
11793     need_lib_prefix=no
11794   fi
11795   need_version=yes
11796   ;;
11797
11798 sysv4 | sysv4.3*)
11799   version_type=linux # correct to gnu/linux during the next big refactor
11800   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11801   soname_spec='$libname$release$shared_ext$major'
11802   shlibpath_var=LD_LIBRARY_PATH
11803   case $host_vendor in
11804     sni)
11805       shlibpath_overrides_runpath=no
11806       need_lib_prefix=no
11807       runpath_var=LD_RUN_PATH
11808       ;;
11809     siemens)
11810       need_lib_prefix=no
11811       ;;
11812     motorola)
11813       need_lib_prefix=no
11814       need_version=no
11815       shlibpath_overrides_runpath=no
11816       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11817       ;;
11818   esac
11819   ;;
11820
11821 sysv4*MP*)
11822   if test -d /usr/nec; then
11823     version_type=linux # correct to gnu/linux during the next big refactor
11824     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11825     soname_spec='$libname$shared_ext.$major'
11826     shlibpath_var=LD_LIBRARY_PATH
11827   fi
11828   ;;
11829
11830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11831   version_type=sco
11832   need_lib_prefix=no
11833   need_version=no
11834   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11835   soname_spec='$libname$release$shared_ext$major'
11836   shlibpath_var=LD_LIBRARY_PATH
11837   shlibpath_overrides_runpath=yes
11838   hardcode_into_libs=yes
11839   if test yes = "$with_gnu_ld"; then
11840     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11841   else
11842     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11843     case $host_os in
11844       sco3.2v5*)
11845         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11846         ;;
11847     esac
11848   fi
11849   sys_lib_dlsearch_path_spec='/usr/lib'
11850   ;;
11851
11852 tpf*)
11853   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11854   version_type=linux # correct to gnu/linux during the next big refactor
11855   need_lib_prefix=no
11856   need_version=no
11857   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858   shlibpath_var=LD_LIBRARY_PATH
11859   shlibpath_overrides_runpath=no
11860   hardcode_into_libs=yes
11861   ;;
11862
11863 uts4*)
11864   version_type=linux # correct to gnu/linux during the next big refactor
11865   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11866   soname_spec='$libname$release$shared_ext$major'
11867   shlibpath_var=LD_LIBRARY_PATH
11868   ;;
11869
11870 *)
11871   dynamic_linker=no
11872   ;;
11873 esac
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11875 $as_echo "$dynamic_linker" >&6; }
11876 test no = "$dynamic_linker" && can_build_shared=no
11877
11878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11879 if test yes = "$GCC"; then
11880   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11881 fi
11882
11883 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11884   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11885 fi
11886
11887 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11888   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11889 fi
11890
11891 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11892 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11893
11894 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11895 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11896
11897 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11898 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11997 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11998 hardcode_action=
11999 if test -n "$hardcode_libdir_flag_spec" ||
12000    test -n "$runpath_var" ||
12001    test yes = "$hardcode_automatic"; then
12002
12003   # We can hardcode non-existent directories.
12004   if test no != "$hardcode_direct" &&
12005      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12006      # have to relink, otherwise we might link with an installed library
12007      # when we should be linking with a yet-to-be-installed one
12008      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12009      test no != "$hardcode_minus_L"; then
12010     # Linking always hardcodes the temporary library directory.
12011     hardcode_action=relink
12012   else
12013     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12014     hardcode_action=immediate
12015   fi
12016 else
12017   # We cannot hardcode anything, or else we can only hardcode existing
12018   # directories.
12019   hardcode_action=unsupported
12020 fi
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12022 $as_echo "$hardcode_action" >&6; }
12023
12024 if test relink = "$hardcode_action" ||
12025    test yes = "$inherit_rpath"; then
12026   # Fast installation is not supported
12027   enable_fast_install=no
12028 elif test yes = "$shlibpath_overrides_runpath" ||
12029      test no = "$enable_shared"; then
12030   # Fast installation is not necessary
12031   enable_fast_install=needless
12032 fi
12033
12034
12035
12036
12037
12038
12039   if test yes != "$enable_dlopen"; then
12040   enable_dlopen=unknown
12041   enable_dlopen_self=unknown
12042   enable_dlopen_self_static=unknown
12043 else
12044   lt_cv_dlopen=no
12045   lt_cv_dlopen_libs=
12046
12047   case $host_os in
12048   beos*)
12049     lt_cv_dlopen=load_add_on
12050     lt_cv_dlopen_libs=
12051     lt_cv_dlopen_self=yes
12052     ;;
12053
12054   mingw* | pw32* | cegcc*)
12055     lt_cv_dlopen=LoadLibrary
12056     lt_cv_dlopen_libs=
12057     ;;
12058
12059   cygwin*)
12060     lt_cv_dlopen=dlopen
12061     lt_cv_dlopen_libs=
12062     ;;
12063
12064   darwin*)
12065     # if libdl is installed we need to link against it
12066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12067 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12068 if ${ac_cv_lib_dl_dlopen+:} false; then :
12069   $as_echo_n "(cached) " >&6
12070 else
12071   ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-ldl  $LIBS"
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h.  */
12075
12076 /* Override any GCC internal prototype to avoid an error.
12077    Use char because int might match the return type of a GCC
12078    builtin and then its argument prototype would still apply.  */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char dlopen ();
12083 int
12084 main ()
12085 {
12086 return dlopen ();
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 if ac_fn_c_try_link "$LINENO"; then :
12092   ac_cv_lib_dl_dlopen=yes
12093 else
12094   ac_cv_lib_dl_dlopen=no
12095 fi
12096 rm -f core conftest.err conftest.$ac_objext \
12097     conftest$ac_exeext conftest.$ac_ext
12098 LIBS=$ac_check_lib_save_LIBS
12099 fi
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12101 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12102 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12103   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12104 else
12105
12106     lt_cv_dlopen=dyld
12107     lt_cv_dlopen_libs=
12108     lt_cv_dlopen_self=yes
12109
12110 fi
12111
12112     ;;
12113
12114   tpf*)
12115     # Don't try to run any link tests for TPF.  We know it's impossible
12116     # because TPF is a cross-compiler, and we know how we open DSOs.
12117     lt_cv_dlopen=dlopen
12118     lt_cv_dlopen_libs=
12119     lt_cv_dlopen_self=no
12120     ;;
12121
12122   *)
12123     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12124 if test "x$ac_cv_func_shl_load" = xyes; then :
12125   lt_cv_dlopen=shl_load
12126 else
12127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12128 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12129 if ${ac_cv_lib_dld_shl_load+:} false; then :
12130   $as_echo_n "(cached) " >&6
12131 else
12132   ac_check_lib_save_LIBS=$LIBS
12133 LIBS="-ldld  $LIBS"
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h.  */
12136
12137 /* Override any GCC internal prototype to avoid an error.
12138    Use char because int might match the return type of a GCC
12139    builtin and then its argument prototype would still apply.  */
12140 #ifdef __cplusplus
12141 extern "C"
12142 #endif
12143 char shl_load ();
12144 int
12145 main ()
12146 {
12147 return shl_load ();
12148   ;
12149   return 0;
12150 }
12151 _ACEOF
12152 if ac_fn_c_try_link "$LINENO"; then :
12153   ac_cv_lib_dld_shl_load=yes
12154 else
12155   ac_cv_lib_dld_shl_load=no
12156 fi
12157 rm -f core conftest.err conftest.$ac_objext \
12158     conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12160 fi
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12162 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12163 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12164   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12165 else
12166   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12167 if test "x$ac_cv_func_dlopen" = xyes; then :
12168   lt_cv_dlopen=dlopen
12169 else
12170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12171 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12172 if ${ac_cv_lib_dl_dlopen+:} false; then :
12173   $as_echo_n "(cached) " >&6
12174 else
12175   ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-ldl  $LIBS"
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h.  */
12179
12180 /* Override any GCC internal prototype to avoid an error.
12181    Use char because int might match the return type of a GCC
12182    builtin and then its argument prototype would still apply.  */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char dlopen ();
12187 int
12188 main ()
12189 {
12190 return dlopen ();
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_link "$LINENO"; then :
12196   ac_cv_lib_dl_dlopen=yes
12197 else
12198   ac_cv_lib_dl_dlopen=no
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext \
12201     conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12203 fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12205 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12206 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12207   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12208 else
12209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12210 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12211 if ${ac_cv_lib_svld_dlopen+:} false; then :
12212   $as_echo_n "(cached) " >&6
12213 else
12214   ac_check_lib_save_LIBS=$LIBS
12215 LIBS="-lsvld  $LIBS"
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h.  */
12218
12219 /* Override any GCC internal prototype to avoid an error.
12220    Use char because int might match the return type of a GCC
12221    builtin and then its argument prototype would still apply.  */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 char dlopen ();
12226 int
12227 main ()
12228 {
12229 return dlopen ();
12230   ;
12231   return 0;
12232 }
12233 _ACEOF
12234 if ac_fn_c_try_link "$LINENO"; then :
12235   ac_cv_lib_svld_dlopen=yes
12236 else
12237   ac_cv_lib_svld_dlopen=no
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext \
12240     conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12244 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12245 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12246   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12247 else
12248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12249 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12250 if ${ac_cv_lib_dld_dld_link+:} false; then :
12251   $as_echo_n "(cached) " >&6
12252 else
12253   ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-ldld  $LIBS"
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h.  */
12257
12258 /* Override any GCC internal prototype to avoid an error.
12259    Use char because int might match the return type of a GCC
12260    builtin and then its argument prototype would still apply.  */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char dld_link ();
12265 int
12266 main ()
12267 {
12268 return dld_link ();
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 if ac_fn_c_try_link "$LINENO"; then :
12274   ac_cv_lib_dld_dld_link=yes
12275 else
12276   ac_cv_lib_dld_dld_link=no
12277 fi
12278 rm -f core conftest.err conftest.$ac_objext \
12279     conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12281 fi
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12283 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12284 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12285   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12286 fi
12287
12288
12289 fi
12290
12291
12292 fi
12293
12294
12295 fi
12296
12297
12298 fi
12299
12300
12301 fi
12302
12303     ;;
12304   esac
12305
12306   if test no = "$lt_cv_dlopen"; then
12307     enable_dlopen=no
12308   else
12309     enable_dlopen=yes
12310   fi
12311
12312   case $lt_cv_dlopen in
12313   dlopen)
12314     save_CPPFLAGS=$CPPFLAGS
12315     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12316
12317     save_LDFLAGS=$LDFLAGS
12318     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12319
12320     save_LIBS=$LIBS
12321     LIBS="$lt_cv_dlopen_libs $LIBS"
12322
12323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12324 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12325 if ${lt_cv_dlopen_self+:} false; then :
12326   $as_echo_n "(cached) " >&6
12327 else
12328           if test yes = "$cross_compiling"; then :
12329   lt_cv_dlopen_self=cross
12330 else
12331   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12332   lt_status=$lt_dlunknown
12333   cat > conftest.$ac_ext <<_LT_EOF
12334 #line $LINENO "configure"
12335 #include "confdefs.h"
12336
12337 #if HAVE_DLFCN_H
12338 #include <dlfcn.h>
12339 #endif
12340
12341 #include <stdio.h>
12342
12343 #ifdef RTLD_GLOBAL
12344 #  define LT_DLGLOBAL           RTLD_GLOBAL
12345 #else
12346 #  ifdef DL_GLOBAL
12347 #    define LT_DLGLOBAL         DL_GLOBAL
12348 #  else
12349 #    define LT_DLGLOBAL         0
12350 #  endif
12351 #endif
12352
12353 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12354    find out it does not work in some platform. */
12355 #ifndef LT_DLLAZY_OR_NOW
12356 #  ifdef RTLD_LAZY
12357 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12358 #  else
12359 #    ifdef DL_LAZY
12360 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12361 #    else
12362 #      ifdef RTLD_NOW
12363 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12364 #      else
12365 #        ifdef DL_NOW
12366 #          define LT_DLLAZY_OR_NOW      DL_NOW
12367 #        else
12368 #          define LT_DLLAZY_OR_NOW      0
12369 #        endif
12370 #      endif
12371 #    endif
12372 #  endif
12373 #endif
12374
12375 /* When -fvisibility=hidden is used, assume the code has been annotated
12376    correspondingly for the symbols needed.  */
12377 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12378 int fnord () __attribute__((visibility("default")));
12379 #endif
12380
12381 int fnord () { return 42; }
12382 int main ()
12383 {
12384   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12385   int status = $lt_dlunknown;
12386
12387   if (self)
12388     {
12389       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12390       else
12391         {
12392           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12393           else puts (dlerror ());
12394         }
12395       /* dlclose (self); */
12396     }
12397   else
12398     puts (dlerror ());
12399
12400   return status;
12401 }
12402 _LT_EOF
12403   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12404   (eval $ac_link) 2>&5
12405   ac_status=$?
12406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12407   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12408     (./conftest; exit; ) >&5 2>/dev/null
12409     lt_status=$?
12410     case x$lt_status in
12411       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12412       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12413       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12414     esac
12415   else :
12416     # compilation failed
12417     lt_cv_dlopen_self=no
12418   fi
12419 fi
12420 rm -fr conftest*
12421
12422
12423 fi
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12425 $as_echo "$lt_cv_dlopen_self" >&6; }
12426
12427     if test yes = "$lt_cv_dlopen_self"; then
12428       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12429       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12430 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12431 if ${lt_cv_dlopen_self_static+:} false; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434           if test yes = "$cross_compiling"; then :
12435   lt_cv_dlopen_self_static=cross
12436 else
12437   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12438   lt_status=$lt_dlunknown
12439   cat > conftest.$ac_ext <<_LT_EOF
12440 #line $LINENO "configure"
12441 #include "confdefs.h"
12442
12443 #if HAVE_DLFCN_H
12444 #include <dlfcn.h>
12445 #endif
12446
12447 #include <stdio.h>
12448
12449 #ifdef RTLD_GLOBAL
12450 #  define LT_DLGLOBAL           RTLD_GLOBAL
12451 #else
12452 #  ifdef DL_GLOBAL
12453 #    define LT_DLGLOBAL         DL_GLOBAL
12454 #  else
12455 #    define LT_DLGLOBAL         0
12456 #  endif
12457 #endif
12458
12459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12460    find out it does not work in some platform. */
12461 #ifndef LT_DLLAZY_OR_NOW
12462 #  ifdef RTLD_LAZY
12463 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12464 #  else
12465 #    ifdef DL_LAZY
12466 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12467 #    else
12468 #      ifdef RTLD_NOW
12469 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12470 #      else
12471 #        ifdef DL_NOW
12472 #          define LT_DLLAZY_OR_NOW      DL_NOW
12473 #        else
12474 #          define LT_DLLAZY_OR_NOW      0
12475 #        endif
12476 #      endif
12477 #    endif
12478 #  endif
12479 #endif
12480
12481 /* When -fvisibility=hidden is used, assume the code has been annotated
12482    correspondingly for the symbols needed.  */
12483 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12484 int fnord () __attribute__((visibility("default")));
12485 #endif
12486
12487 int fnord () { return 42; }
12488 int main ()
12489 {
12490   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12491   int status = $lt_dlunknown;
12492
12493   if (self)
12494     {
12495       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12496       else
12497         {
12498           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12499           else puts (dlerror ());
12500         }
12501       /* dlclose (self); */
12502     }
12503   else
12504     puts (dlerror ());
12505
12506   return status;
12507 }
12508 _LT_EOF
12509   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12510   (eval $ac_link) 2>&5
12511   ac_status=$?
12512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12514     (./conftest; exit; ) >&5 2>/dev/null
12515     lt_status=$?
12516     case x$lt_status in
12517       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12518       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12519       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12520     esac
12521   else :
12522     # compilation failed
12523     lt_cv_dlopen_self_static=no
12524   fi
12525 fi
12526 rm -fr conftest*
12527
12528
12529 fi
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12531 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12532     fi
12533
12534     CPPFLAGS=$save_CPPFLAGS
12535     LDFLAGS=$save_LDFLAGS
12536     LIBS=$save_LIBS
12537     ;;
12538   esac
12539
12540   case $lt_cv_dlopen_self in
12541   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12542   *) enable_dlopen_self=unknown ;;
12543   esac
12544
12545   case $lt_cv_dlopen_self_static in
12546   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12547   *) enable_dlopen_self_static=unknown ;;
12548   esac
12549 fi
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567 striplib=
12568 old_striplib=
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12570 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12571 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12572   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12573   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 $as_echo "yes" >&6; }
12576 else
12577 # FIXME - insert some real tests, host_os isn't really good enough
12578   case $host_os in
12579   darwin*)
12580     if test -n "$STRIP"; then
12581       striplib="$STRIP -x"
12582       old_striplib="$STRIP -S"
12583       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12584 $as_echo "yes" >&6; }
12585     else
12586       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12588     fi
12589     ;;
12590   *)
12591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12593     ;;
12594   esac
12595 fi
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608   # Report what library types will actually be built
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12610 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12612 $as_echo "$can_build_shared" >&6; }
12613
12614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12615 $as_echo_n "checking whether to build shared libraries... " >&6; }
12616   test no = "$can_build_shared" && enable_shared=no
12617
12618   # On AIX, shared libraries and static libraries use the same namespace, and
12619   # are all built from PIC.
12620   case $host_os in
12621   aix3*)
12622     test yes = "$enable_shared" && enable_static=no
12623     if test -n "$RANLIB"; then
12624       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12625       postinstall_cmds='$RANLIB $lib'
12626     fi
12627     ;;
12628
12629   aix[4-9]*)
12630     if test ia64 != "$host_cpu"; then
12631       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12632       yes,aix,yes) ;;                   # shared object as lib.so file only
12633       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12634       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12635       esac
12636     fi
12637     ;;
12638   esac
12639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12640 $as_echo "$enable_shared" >&6; }
12641
12642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12643 $as_echo_n "checking whether to build static libraries... " >&6; }
12644   # Make sure either enable_shared or enable_static is yes.
12645   test yes = "$enable_shared" || enable_static=yes
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12647 $as_echo "$enable_static" >&6; }
12648
12649
12650
12651
12652 fi
12653 ac_ext=c
12654 ac_cpp='$CPP $CPPFLAGS'
12655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12658
12659 CC=$lt_save_CC
12660
12661       if test -n "$CXX" && ( test no != "$CXX" &&
12662     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12663     (test g++ != "$CXX"))); then
12664   ac_ext=cpp
12665 ac_cpp='$CXXCPP $CPPFLAGS'
12666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12670 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12671 if test -z "$CXXCPP"; then
12672   if ${ac_cv_prog_CXXCPP+:} false; then :
12673   $as_echo_n "(cached) " >&6
12674 else
12675       # Double quotes because CXXCPP needs to be expanded
12676     for CXXCPP in "$CXX -E" "/lib/cpp"
12677     do
12678       ac_preproc_ok=false
12679 for ac_cxx_preproc_warn_flag in '' yes
12680 do
12681   # Use a header file that comes with gcc, so configuring glibc
12682   # with a fresh cross-compiler works.
12683   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12684   # <limits.h> exists even on freestanding compilers.
12685   # On the NeXT, cc -E runs the code through the compiler's parser,
12686   # not just through cpp. "Syntax error" is here to catch this case.
12687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h.  */
12689 #ifdef __STDC__
12690 # include <limits.h>
12691 #else
12692 # include <assert.h>
12693 #endif
12694                      Syntax error
12695 _ACEOF
12696 if ac_fn_cxx_try_cpp "$LINENO"; then :
12697
12698 else
12699   # Broken: fails on valid input.
12700 continue
12701 fi
12702 rm -f conftest.err conftest.i conftest.$ac_ext
12703
12704   # OK, works on sane cases.  Now check whether nonexistent headers
12705   # can be detected and how.
12706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h.  */
12708 #include <ac_nonexistent.h>
12709 _ACEOF
12710 if ac_fn_cxx_try_cpp "$LINENO"; then :
12711   # Broken: success on invalid input.
12712 continue
12713 else
12714   # Passes both tests.
12715 ac_preproc_ok=:
12716 break
12717 fi
12718 rm -f conftest.err conftest.i conftest.$ac_ext
12719
12720 done
12721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12722 rm -f conftest.i conftest.err conftest.$ac_ext
12723 if $ac_preproc_ok; then :
12724   break
12725 fi
12726
12727     done
12728     ac_cv_prog_CXXCPP=$CXXCPP
12729
12730 fi
12731   CXXCPP=$ac_cv_prog_CXXCPP
12732 else
12733   ac_cv_prog_CXXCPP=$CXXCPP
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12736 $as_echo "$CXXCPP" >&6; }
12737 ac_preproc_ok=false
12738 for ac_cxx_preproc_warn_flag in '' yes
12739 do
12740   # Use a header file that comes with gcc, so configuring glibc
12741   # with a fresh cross-compiler works.
12742   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12743   # <limits.h> exists even on freestanding compilers.
12744   # On the NeXT, cc -E runs the code through the compiler's parser,
12745   # not just through cpp. "Syntax error" is here to catch this case.
12746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h.  */
12748 #ifdef __STDC__
12749 # include <limits.h>
12750 #else
12751 # include <assert.h>
12752 #endif
12753                      Syntax error
12754 _ACEOF
12755 if ac_fn_cxx_try_cpp "$LINENO"; then :
12756
12757 else
12758   # Broken: fails on valid input.
12759 continue
12760 fi
12761 rm -f conftest.err conftest.i conftest.$ac_ext
12762
12763   # OK, works on sane cases.  Now check whether nonexistent headers
12764   # can be detected and how.
12765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h.  */
12767 #include <ac_nonexistent.h>
12768 _ACEOF
12769 if ac_fn_cxx_try_cpp "$LINENO"; then :
12770   # Broken: success on invalid input.
12771 continue
12772 else
12773   # Passes both tests.
12774 ac_preproc_ok=:
12775 break
12776 fi
12777 rm -f conftest.err conftest.i conftest.$ac_ext
12778
12779 done
12780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12781 rm -f conftest.i conftest.err conftest.$ac_ext
12782 if $ac_preproc_ok; then :
12783
12784 else
12785   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12787 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12788 See \`config.log' for more details" "$LINENO" 5; }
12789 fi
12790
12791 ac_ext=c
12792 ac_cpp='$CPP $CPPFLAGS'
12793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12796
12797 else
12798   _lt_caught_CXX_error=yes
12799 fi
12800
12801 ac_ext=cpp
12802 ac_cpp='$CXXCPP $CPPFLAGS'
12803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12806
12807 archive_cmds_need_lc_CXX=no
12808 allow_undefined_flag_CXX=
12809 always_export_symbols_CXX=no
12810 archive_expsym_cmds_CXX=
12811 compiler_needs_object_CXX=no
12812 export_dynamic_flag_spec_CXX=
12813 hardcode_direct_CXX=no
12814 hardcode_direct_absolute_CXX=no
12815 hardcode_libdir_flag_spec_CXX=
12816 hardcode_libdir_separator_CXX=
12817 hardcode_minus_L_CXX=no
12818 hardcode_shlibpath_var_CXX=unsupported
12819 hardcode_automatic_CXX=no
12820 inherit_rpath_CXX=no
12821 module_cmds_CXX=
12822 module_expsym_cmds_CXX=
12823 link_all_deplibs_CXX=unknown
12824 old_archive_cmds_CXX=$old_archive_cmds
12825 reload_flag_CXX=$reload_flag
12826 reload_cmds_CXX=$reload_cmds
12827 no_undefined_flag_CXX=
12828 whole_archive_flag_spec_CXX=
12829 enable_shared_with_static_runtimes_CXX=no
12830
12831 # Source file extension for C++ test sources.
12832 ac_ext=cpp
12833
12834 # Object file extension for compiled C++ test sources.
12835 objext=o
12836 objext_CXX=$objext
12837
12838 # No sense in running all these tests if we already determined that
12839 # the CXX compiler isn't working.  Some variables (like enable_shared)
12840 # are currently assumed to apply to all compilers on this platform,
12841 # and will be corrupted by setting them based on a non-working compiler.
12842 if test yes != "$_lt_caught_CXX_error"; then
12843   # Code to be used in simple compile tests
12844   lt_simple_compile_test_code="int some_variable = 0;"
12845
12846   # Code to be used in simple link tests
12847   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12848
12849   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12850
12851
12852
12853
12854
12855
12856 # If no C compiler was specified, use CC.
12857 LTCC=${LTCC-"$CC"}
12858
12859 # If no C compiler flags were specified, use CFLAGS.
12860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12861
12862 # Allow CC to be a program name with arguments.
12863 compiler=$CC
12864
12865
12866   # save warnings/boilerplate of simple test code
12867   ac_outfile=conftest.$ac_objext
12868 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12870 _lt_compiler_boilerplate=`cat conftest.err`
12871 $RM conftest*
12872
12873   ac_outfile=conftest.$ac_objext
12874 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12875 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12876 _lt_linker_boilerplate=`cat conftest.err`
12877 $RM -r conftest*
12878
12879
12880   # Allow CC to be a program name with arguments.
12881   lt_save_CC=$CC
12882   lt_save_CFLAGS=$CFLAGS
12883   lt_save_LD=$LD
12884   lt_save_GCC=$GCC
12885   GCC=$GXX
12886   lt_save_with_gnu_ld=$with_gnu_ld
12887   lt_save_path_LD=$lt_cv_path_LD
12888   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12889     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12890   else
12891     $as_unset lt_cv_prog_gnu_ld
12892   fi
12893   if test -n "${lt_cv_path_LDCXX+set}"; then
12894     lt_cv_path_LD=$lt_cv_path_LDCXX
12895   else
12896     $as_unset lt_cv_path_LD
12897   fi
12898   test -z "${LDCXX+set}" || LD=$LDCXX
12899   CC=${CXX-"c++"}
12900   CFLAGS=$CXXFLAGS
12901   compiler=$CC
12902   compiler_CXX=$CC
12903   func_cc_basename $compiler
12904 cc_basename=$func_cc_basename_result
12905
12906
12907   if test -n "$compiler"; then
12908     # We don't want -fno-exception when compiling C++ code, so set the
12909     # no_builtin_flag separately
12910     if test yes = "$GXX"; then
12911       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12912     else
12913       lt_prog_compiler_no_builtin_flag_CXX=
12914     fi
12915
12916     if test yes = "$GXX"; then
12917       # Set up default GNU C++ configuration
12918
12919
12920
12921 # Check whether --with-gnu-ld was given.
12922 if test "${with_gnu_ld+set}" = set; then :
12923   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12924 else
12925   with_gnu_ld=no
12926 fi
12927
12928 ac_prog=ld
12929 if test yes = "$GCC"; then
12930   # Check if gcc -print-prog-name=ld gives a path.
12931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12932 $as_echo_n "checking for ld used by $CC... " >&6; }
12933   case $host in
12934   *-*-mingw*)
12935     # gcc leaves a trailing carriage return, which upsets mingw
12936     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12937   *)
12938     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12939   esac
12940   case $ac_prog in
12941     # Accept absolute paths.
12942     [\\/]* | ?:[\\/]*)
12943       re_direlt='/[^/][^/]*/\.\./'
12944       # Canonicalize the pathname of ld
12945       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12946       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12947         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12948       done
12949       test -z "$LD" && LD=$ac_prog
12950       ;;
12951   "")
12952     # If it fails, then pretend we aren't using GCC.
12953     ac_prog=ld
12954     ;;
12955   *)
12956     # If it is relative, then search for the first ld in PATH.
12957     with_gnu_ld=unknown
12958     ;;
12959   esac
12960 elif test yes = "$with_gnu_ld"; then
12961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12962 $as_echo_n "checking for GNU ld... " >&6; }
12963 else
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12965 $as_echo_n "checking for non-GNU ld... " >&6; }
12966 fi
12967 if ${lt_cv_path_LD+:} false; then :
12968   $as_echo_n "(cached) " >&6
12969 else
12970   if test -z "$LD"; then
12971   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12972   for ac_dir in $PATH; do
12973     IFS=$lt_save_ifs
12974     test -z "$ac_dir" && ac_dir=.
12975     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12976       lt_cv_path_LD=$ac_dir/$ac_prog
12977       # Check to see if the program is GNU ld.  I'd rather use --version,
12978       # but apparently some variants of GNU ld only accept -v.
12979       # Break only if it was the GNU/non-GNU ld that we prefer.
12980       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12981       *GNU* | *'with BFD'*)
12982         test no != "$with_gnu_ld" && break
12983         ;;
12984       *)
12985         test yes != "$with_gnu_ld" && break
12986         ;;
12987       esac
12988     fi
12989   done
12990   IFS=$lt_save_ifs
12991 else
12992   lt_cv_path_LD=$LD # Let the user override the test with a path.
12993 fi
12994 fi
12995
12996 LD=$lt_cv_path_LD
12997 if test -n "$LD"; then
12998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12999 $as_echo "$LD" >&6; }
13000 else
13001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13003 fi
13004 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13006 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13007 if ${lt_cv_prog_gnu_ld+:} false; then :
13008   $as_echo_n "(cached) " >&6
13009 else
13010   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13011 case `$LD -v 2>&1 </dev/null` in
13012 *GNU* | *'with BFD'*)
13013   lt_cv_prog_gnu_ld=yes
13014   ;;
13015 *)
13016   lt_cv_prog_gnu_ld=no
13017   ;;
13018 esac
13019 fi
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13021 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13022 with_gnu_ld=$lt_cv_prog_gnu_ld
13023
13024
13025
13026
13027
13028
13029
13030       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13031       # archiving commands below assume that GNU ld is being used.
13032       if test yes = "$with_gnu_ld"; then
13033         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13034         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'
13035
13036         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13037         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13038
13039         # If archive_cmds runs LD, not CC, wlarc should be empty
13040         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13041         #     investigate it a little bit more. (MM)
13042         wlarc='$wl'
13043
13044         # ancient GNU ld didn't support --whole-archive et. al.
13045         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13046           $GREP 'no-whole-archive' > /dev/null; then
13047           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13048         else
13049           whole_archive_flag_spec_CXX=
13050         fi
13051       else
13052         with_gnu_ld=no
13053         wlarc=
13054
13055         # A generic and very simple default shared library creation
13056         # command for GNU C++ for the case where it uses the native
13057         # linker, instead of GNU ld.  If possible, this setting should
13058         # overridden to take advantage of the native linker features on
13059         # the platform it is being used on.
13060         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13061       fi
13062
13063       # Commands to make compiler produce verbose output that lists
13064       # what "hidden" libraries, object files and flags are used when
13065       # linking a shared library.
13066       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13067
13068     else
13069       GXX=no
13070       with_gnu_ld=no
13071       wlarc=
13072     fi
13073
13074     # PORTME: fill in a description of your system's C++ link characteristics
13075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13076 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13077     ld_shlibs_CXX=yes
13078     case $host_os in
13079       aix3*)
13080         # FIXME: insert proper C++ library support
13081         ld_shlibs_CXX=no
13082         ;;
13083       aix[4-9]*)
13084         if test ia64 = "$host_cpu"; then
13085           # On IA64, the linker does run time linking by default, so we don't
13086           # have to do anything special.
13087           aix_use_runtimelinking=no
13088           exp_sym_flag='-Bexport'
13089           no_entry_flag=
13090         else
13091           aix_use_runtimelinking=no
13092
13093           # Test if we are trying to use run time linking or normal
13094           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13095           # have runtime linking enabled, and use it for executables.
13096           # For shared libraries, we enable/disable runtime linking
13097           # depending on the kind of the shared library created -
13098           # when "with_aix_soname,aix_use_runtimelinking" is:
13099           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13100           # "aix,yes"  lib.so          shared, rtl:yes, for executables
13101           #            lib.a           static archive
13102           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13103           #            lib.a(lib.so.V) shared, rtl:no,  for executables
13104           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13105           #            lib.a(lib.so.V) shared, rtl:no
13106           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13107           #            lib.a           static archive
13108           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13109             for ld_flag in $LDFLAGS; do
13110               case $ld_flag in
13111               *-brtl*)
13112                 aix_use_runtimelinking=yes
13113                 break
13114                 ;;
13115               esac
13116             done
13117             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13118               # With aix-soname=svr4, we create the lib.so.V shared archives only,
13119               # so we don't have lib.a shared libs to link our executables.
13120               # We have to force runtime linking in this case.
13121               aix_use_runtimelinking=yes
13122               LDFLAGS="$LDFLAGS -Wl,-brtl"
13123             fi
13124             ;;
13125           esac
13126
13127           exp_sym_flag='-bexport'
13128           no_entry_flag='-bnoentry'
13129         fi
13130
13131         # When large executables or shared objects are built, AIX ld can
13132         # have problems creating the table of contents.  If linking a library
13133         # or program results in "error TOC overflow" add -mminimal-toc to
13134         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13135         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13136
13137         archive_cmds_CXX=''
13138         hardcode_direct_CXX=yes
13139         hardcode_direct_absolute_CXX=yes
13140         hardcode_libdir_separator_CXX=':'
13141         link_all_deplibs_CXX=yes
13142         file_list_spec_CXX='$wl-f,'
13143         case $with_aix_soname,$aix_use_runtimelinking in
13144         aix,*) ;;       # no import file
13145         svr4,* | *,yes) # use import file
13146           # The Import File defines what to hardcode.
13147           hardcode_direct_CXX=no
13148           hardcode_direct_absolute_CXX=no
13149           ;;
13150         esac
13151
13152         if test yes = "$GXX"; then
13153           case $host_os in aix4.[012]|aix4.[012].*)
13154           # We only want to do this on AIX 4.2 and lower, the check
13155           # below for broken collect2 doesn't work under 4.3+
13156           collect2name=`$CC -print-prog-name=collect2`
13157           if test -f "$collect2name" &&
13158              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13159           then
13160             # We have reworked collect2
13161             :
13162           else
13163             # We have old collect2
13164             hardcode_direct_CXX=unsupported
13165             # It fails to find uninstalled libraries when the uninstalled
13166             # path is not listed in the libpath.  Setting hardcode_minus_L
13167             # to unsupported forces relinking
13168             hardcode_minus_L_CXX=yes
13169             hardcode_libdir_flag_spec_CXX='-L$libdir'
13170             hardcode_libdir_separator_CXX=
13171           fi
13172           esac
13173           shared_flag='-shared'
13174           if test yes = "$aix_use_runtimelinking"; then
13175             shared_flag=$shared_flag' $wl-G'
13176           fi
13177           # Need to ensure runtime linking is disabled for the traditional
13178           # shared library, or the linker may eventually find shared libraries
13179           # /with/ Import File - we do not want to mix them.
13180           shared_flag_aix='-shared'
13181           shared_flag_svr4='-shared $wl-G'
13182         else
13183           # not using gcc
13184           if test ia64 = "$host_cpu"; then
13185           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13186           # chokes on -Wl,-G. The following line is correct:
13187           shared_flag='-G'
13188           else
13189             if test yes = "$aix_use_runtimelinking"; then
13190               shared_flag='$wl-G'
13191             else
13192               shared_flag='$wl-bM:SRE'
13193             fi
13194             shared_flag_aix='$wl-bM:SRE'
13195             shared_flag_svr4='$wl-G'
13196           fi
13197         fi
13198
13199         export_dynamic_flag_spec_CXX='$wl-bexpall'
13200         # It seems that -bexpall does not export symbols beginning with
13201         # underscore (_), so it is better to generate a list of symbols to
13202         # export.
13203         always_export_symbols_CXX=yes
13204         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13205           # Warning - without using the other runtime loading flags (-brtl),
13206           # -berok will link without error, but may produce a broken library.
13207           # The "-G" linker flag allows undefined symbols.
13208           no_undefined_flag_CXX='-bernotok'
13209           # Determine the default libpath from the value encoded in an empty
13210           # executable.
13211           if test set = "${lt_cv_aix_libpath+set}"; then
13212   aix_libpath=$lt_cv_aix_libpath
13213 else
13214   if ${lt_cv_aix_libpath__CXX+:} false; then :
13215   $as_echo_n "(cached) " >&6
13216 else
13217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h.  */
13219
13220 int
13221 main ()
13222 {
13223
13224   ;
13225   return 0;
13226 }
13227 _ACEOF
13228 if ac_fn_cxx_try_link "$LINENO"; then :
13229
13230   lt_aix_libpath_sed='
13231       /Import File Strings/,/^$/ {
13232           /^0/ {
13233               s/^0  *\([^ ]*\) *$/\1/
13234               p
13235           }
13236       }'
13237   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13238   # Check for a 64-bit object if we didn't find anything.
13239   if test -z "$lt_cv_aix_libpath__CXX"; then
13240     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13241   fi
13242 fi
13243 rm -f core conftest.err conftest.$ac_objext \
13244     conftest$ac_exeext conftest.$ac_ext
13245   if test -z "$lt_cv_aix_libpath__CXX"; then
13246     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13247   fi
13248
13249 fi
13250
13251   aix_libpath=$lt_cv_aix_libpath__CXX
13252 fi
13253
13254           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13255
13256           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
13257         else
13258           if test ia64 = "$host_cpu"; then
13259             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13260             allow_undefined_flag_CXX="-z nodefs"
13261             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"
13262           else
13263             # Determine the default libpath from the value encoded in an
13264             # empty executable.
13265             if test set = "${lt_cv_aix_libpath+set}"; then
13266   aix_libpath=$lt_cv_aix_libpath
13267 else
13268   if ${lt_cv_aix_libpath__CXX+:} false; then :
13269   $as_echo_n "(cached) " >&6
13270 else
13271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h.  */
13273
13274 int
13275 main ()
13276 {
13277
13278   ;
13279   return 0;
13280 }
13281 _ACEOF
13282 if ac_fn_cxx_try_link "$LINENO"; then :
13283
13284   lt_aix_libpath_sed='
13285       /Import File Strings/,/^$/ {
13286           /^0/ {
13287               s/^0  *\([^ ]*\) *$/\1/
13288               p
13289           }
13290       }'
13291   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13292   # Check for a 64-bit object if we didn't find anything.
13293   if test -z "$lt_cv_aix_libpath__CXX"; then
13294     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13295   fi
13296 fi
13297 rm -f core conftest.err conftest.$ac_objext \
13298     conftest$ac_exeext conftest.$ac_ext
13299   if test -z "$lt_cv_aix_libpath__CXX"; then
13300     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13301   fi
13302
13303 fi
13304
13305   aix_libpath=$lt_cv_aix_libpath__CXX
13306 fi
13307
13308             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13309             # Warning - without using the other run time loading flags,
13310             # -berok will link without error, but may produce a broken library.
13311             no_undefined_flag_CXX=' $wl-bernotok'
13312             allow_undefined_flag_CXX=' $wl-berok'
13313             if test yes = "$with_gnu_ld"; then
13314               # We only use this code for GNU lds that support --whole-archive.
13315               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13316             else
13317               # Exported symbols can be pulled into shared objects from archives
13318               whole_archive_flag_spec_CXX='$convenience'
13319             fi
13320             archive_cmds_need_lc_CXX=yes
13321             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13322             # -brtl affects multiple linker settings, -berok does not and is overridden later
13323             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13324             if test svr4 != "$with_aix_soname"; then
13325               # This is similar to how AIX traditionally builds its shared
13326               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13327               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'
13328             fi
13329             if test aix != "$with_aix_soname"; then
13330               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'
13331             else
13332               # used by -dlpreopen to get the symbols
13333               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13334             fi
13335             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13336           fi
13337         fi
13338         ;;
13339
13340       beos*)
13341         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13342           allow_undefined_flag_CXX=unsupported
13343           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13344           # support --undefined.  This deserves some investigation.  FIXME
13345           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13346         else
13347           ld_shlibs_CXX=no
13348         fi
13349         ;;
13350
13351       chorus*)
13352         case $cc_basename in
13353           *)
13354           # FIXME: insert proper C++ library support
13355           ld_shlibs_CXX=no
13356           ;;
13357         esac
13358         ;;
13359
13360       cygwin* | mingw* | pw32* | cegcc*)
13361         case $GXX,$cc_basename in
13362         ,cl* | no,cl*)
13363           # Native MSVC
13364           # hardcode_libdir_flag_spec is actually meaningless, as there is
13365           # no search path for DLLs.
13366           hardcode_libdir_flag_spec_CXX=' '
13367           allow_undefined_flag_CXX=unsupported
13368           always_export_symbols_CXX=yes
13369           file_list_spec_CXX='@'
13370           # Tell ltmain to make .lib files, not .a files.
13371           libext=lib
13372           # Tell ltmain to make .dll files, not .so files.
13373           shrext_cmds=.dll
13374           # FIXME: Setting linknames here is a bad hack.
13375           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13376           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13377               cp "$export_symbols" "$output_objdir/$soname.def";
13378               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13379             else
13380               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13381             fi~
13382             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13383             linknames='
13384           # The linker will not automatically build a static lib if we build a DLL.
13385           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13386           enable_shared_with_static_runtimes_CXX=yes
13387           # Don't use ranlib
13388           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13389           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13390             lt_tool_outputfile="@TOOL_OUTPUT@"~
13391             case $lt_outputfile in
13392               *.exe|*.EXE) ;;
13393               *)
13394                 lt_outputfile=$lt_outputfile.exe
13395                 lt_tool_outputfile=$lt_tool_outputfile.exe
13396                 ;;
13397             esac~
13398             func_to_tool_file "$lt_outputfile"~
13399             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13400               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13401               $RM "$lt_outputfile.manifest";
13402             fi'
13403           ;;
13404         *)
13405           # g++
13406           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13407           # as there is no search path for DLLs.
13408           hardcode_libdir_flag_spec_CXX='-L$libdir'
13409           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13410           allow_undefined_flag_CXX=unsupported
13411           always_export_symbols_CXX=no
13412           enable_shared_with_static_runtimes_CXX=yes
13413
13414           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13415             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'
13416             # If the export-symbols file already is a .def file, use it as
13417             # is; otherwise, prepend EXPORTS...
13418             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13419               cp $export_symbols $output_objdir/$soname.def;
13420             else
13421               echo EXPORTS > $output_objdir/$soname.def;
13422               cat $export_symbols >> $output_objdir/$soname.def;
13423             fi~
13424             $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'
13425           else
13426             ld_shlibs_CXX=no
13427           fi
13428           ;;
13429         esac
13430         ;;
13431       darwin* | rhapsody*)
13432
13433
13434   archive_cmds_need_lc_CXX=no
13435   hardcode_direct_CXX=no
13436   hardcode_automatic_CXX=yes
13437   hardcode_shlibpath_var_CXX=unsupported
13438   if test yes = "$lt_cv_ld_force_load"; then
13439     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\"`'
13440
13441   else
13442     whole_archive_flag_spec_CXX=''
13443   fi
13444   link_all_deplibs_CXX=yes
13445   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13446   case $cc_basename in
13447      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13448      *) _lt_dar_can_shared=$GCC ;;
13449   esac
13450   if test yes = "$_lt_dar_can_shared"; then
13451     output_verbose_link_cmd=func_echo_all
13452     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"
13453     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13454     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"
13455     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"
13456        if test yes != "$lt_cv_apple_cc_single_mod"; then
13457       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"
13458       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"
13459     fi
13460
13461   else
13462   ld_shlibs_CXX=no
13463   fi
13464
13465         ;;
13466
13467       os2*)
13468         hardcode_libdir_flag_spec_CXX='-L$libdir'
13469         hardcode_minus_L_CXX=yes
13470         allow_undefined_flag_CXX=unsupported
13471         shrext_cmds=.dll
13472         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13473           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13474           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13475           $ECHO EXPORTS >> $output_objdir/$libname.def~
13476           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13477           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13478           emximp -o $lib $output_objdir/$libname.def'
13479         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13480           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13481           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13482           $ECHO EXPORTS >> $output_objdir/$libname.def~
13483           prefix_cmds="$SED"~
13484           if test EXPORTS = "`$SED 1q $export_symbols`"; then
13485             prefix_cmds="$prefix_cmds -e 1d";
13486           fi~
13487           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13488           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13489           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13490           emximp -o $lib $output_objdir/$libname.def'
13491         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13492         enable_shared_with_static_runtimes_CXX=yes
13493         ;;
13494
13495       dgux*)
13496         case $cc_basename in
13497           ec++*)
13498             # FIXME: insert proper C++ library support
13499             ld_shlibs_CXX=no
13500             ;;
13501           ghcx*)
13502             # Green Hills C++ Compiler
13503             # FIXME: insert proper C++ library support
13504             ld_shlibs_CXX=no
13505             ;;
13506           *)
13507             # FIXME: insert proper C++ library support
13508             ld_shlibs_CXX=no
13509             ;;
13510         esac
13511         ;;
13512
13513       freebsd2.*)
13514         # C++ shared libraries reported to be fairly broken before
13515         # switch to ELF
13516         ld_shlibs_CXX=no
13517         ;;
13518
13519       freebsd-elf*)
13520         archive_cmds_need_lc_CXX=no
13521         ;;
13522
13523       freebsd* | dragonfly*)
13524         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13525         # conventions
13526         ld_shlibs_CXX=yes
13527         ;;
13528
13529       haiku*)
13530         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13531         link_all_deplibs_CXX=yes
13532         ;;
13533
13534       hpux9*)
13535         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13536         hardcode_libdir_separator_CXX=:
13537         export_dynamic_flag_spec_CXX='$wl-E'
13538         hardcode_direct_CXX=yes
13539         hardcode_minus_L_CXX=yes # Not in the search PATH,
13540                                              # but as the default
13541                                              # location of the library.
13542
13543         case $cc_basename in
13544           CC*)
13545             # FIXME: insert proper C++ library support
13546             ld_shlibs_CXX=no
13547             ;;
13548           aCC*)
13549             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'
13550             # Commands to make compiler produce verbose output that lists
13551             # what "hidden" libraries, object files and flags are used when
13552             # linking a shared library.
13553             #
13554             # There doesn't appear to be a way to prevent this compiler from
13555             # explicitly linking system object files so we need to strip them
13556             # from the output so that they don't get included in the library
13557             # dependencies.
13558             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"'
13559             ;;
13560           *)
13561             if test yes = "$GXX"; then
13562               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'
13563             else
13564               # FIXME: insert proper C++ library support
13565               ld_shlibs_CXX=no
13566             fi
13567             ;;
13568         esac
13569         ;;
13570
13571       hpux10*|hpux11*)
13572         if test no = "$with_gnu_ld"; then
13573           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13574           hardcode_libdir_separator_CXX=:
13575
13576           case $host_cpu in
13577             hppa*64*|ia64*)
13578               ;;
13579             *)
13580               export_dynamic_flag_spec_CXX='$wl-E'
13581               ;;
13582           esac
13583         fi
13584         case $host_cpu in
13585           hppa*64*|ia64*)
13586             hardcode_direct_CXX=no
13587             hardcode_shlibpath_var_CXX=no
13588             ;;
13589           *)
13590             hardcode_direct_CXX=yes
13591             hardcode_direct_absolute_CXX=yes
13592             hardcode_minus_L_CXX=yes # Not in the search PATH,
13593                                                  # but as the default
13594                                                  # location of the library.
13595             ;;
13596         esac
13597
13598         case $cc_basename in
13599           CC*)
13600             # FIXME: insert proper C++ library support
13601             ld_shlibs_CXX=no
13602             ;;
13603           aCC*)
13604             case $host_cpu in
13605               hppa*64*)
13606                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13607                 ;;
13608               ia64*)
13609                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13610                 ;;
13611               *)
13612                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13613                 ;;
13614             esac
13615             # Commands to make compiler produce verbose output that lists
13616             # what "hidden" libraries, object files and flags are used when
13617             # linking a shared library.
13618             #
13619             # There doesn't appear to be a way to prevent this compiler from
13620             # explicitly linking system object files so we need to strip them
13621             # from the output so that they don't get included in the library
13622             # dependencies.
13623             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"'
13624             ;;
13625           *)
13626             if test yes = "$GXX"; then
13627               if test no = "$with_gnu_ld"; then
13628                 case $host_cpu in
13629                   hppa*64*)
13630                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13631                     ;;
13632                   ia64*)
13633                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13634                     ;;
13635                   *)
13636                     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'
13637                     ;;
13638                 esac
13639               fi
13640             else
13641               # FIXME: insert proper C++ library support
13642               ld_shlibs_CXX=no
13643             fi
13644             ;;
13645         esac
13646         ;;
13647
13648       interix[3-9]*)
13649         hardcode_direct_CXX=no
13650         hardcode_shlibpath_var_CXX=no
13651         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13652         export_dynamic_flag_spec_CXX='$wl-E'
13653         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13654         # Instead, shared libraries are loaded at an image base (0x10000000 by
13655         # default) and relocated if they conflict, which is a slow very memory
13656         # consuming and fragmenting process.  To avoid this, we pick a random,
13657         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13658         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13659         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'
13660         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'
13661         ;;
13662       irix5* | irix6*)
13663         case $cc_basename in
13664           CC*)
13665             # SGI C++
13666             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'
13667
13668             # Archives containing C++ object files must be created using
13669             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13670             # necessary to make sure instantiated templates are included
13671             # in the archive.
13672             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13673             ;;
13674           *)
13675             if test yes = "$GXX"; then
13676               if test no = "$with_gnu_ld"; then
13677                 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'
13678               else
13679                 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'
13680               fi
13681             fi
13682             link_all_deplibs_CXX=yes
13683             ;;
13684         esac
13685         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13686         hardcode_libdir_separator_CXX=:
13687         inherit_rpath_CXX=yes
13688         ;;
13689
13690       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13691         case $cc_basename in
13692           KCC*)
13693             # Kuck and Associates, Inc. (KAI) C++ Compiler
13694
13695             # KCC will only create a shared library if the output file
13696             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13697             # to its proper name (with version) after linking.
13698             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'
13699             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'
13700             # Commands to make compiler produce verbose output that lists
13701             # what "hidden" libraries, object files and flags are used when
13702             # linking a shared library.
13703             #
13704             # There doesn't appear to be a way to prevent this compiler from
13705             # explicitly linking system object files so we need to strip them
13706             # from the output so that they don't get included in the library
13707             # dependencies.
13708             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"'
13709
13710             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13711             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13712
13713             # Archives containing C++ object files must be created using
13714             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13715             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13716             ;;
13717           icpc* | ecpc* )
13718             # Intel C++
13719             with_gnu_ld=yes
13720             # version 8.0 and above of icpc choke on multiply defined symbols
13721             # if we add $predep_objects and $postdep_objects, however 7.1 and
13722             # earlier do not add the objects themselves.
13723             case `$CC -V 2>&1` in
13724               *"Version 7."*)
13725                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13726                 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'
13727                 ;;
13728               *)  # Version 8.0 or newer
13729                 tmp_idyn=
13730                 case $host_cpu in
13731                   ia64*) tmp_idyn=' -i_dynamic';;
13732                 esac
13733                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13734                 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'
13735                 ;;
13736             esac
13737             archive_cmds_need_lc_CXX=no
13738             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13739             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13740             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13741             ;;
13742           pgCC* | pgcpp*)
13743             # Portland Group C++ compiler
13744             case `$CC -V` in
13745             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13746               prelink_cmds_CXX='tpldir=Template.dir~
13747                rm -rf $tpldir~
13748                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13749                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13750               old_archive_cmds_CXX='tpldir=Template.dir~
13751                 rm -rf $tpldir~
13752                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13753                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13754                 $RANLIB $oldlib'
13755               archive_cmds_CXX='tpldir=Template.dir~
13756                 rm -rf $tpldir~
13757                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13758                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13759               archive_expsym_cmds_CXX='tpldir=Template.dir~
13760                 rm -rf $tpldir~
13761                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13762                 $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'
13763               ;;
13764             *) # Version 6 and above use weak symbols
13765               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13766               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'
13767               ;;
13768             esac
13769
13770             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13771             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13772             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'
13773             ;;
13774           cxx*)
13775             # Compaq C++
13776             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13777             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'
13778
13779             runpath_var=LD_RUN_PATH
13780             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13781             hardcode_libdir_separator_CXX=:
13782
13783             # Commands to make compiler produce verbose output that lists
13784             # what "hidden" libraries, object files and flags are used when
13785             # linking a shared library.
13786             #
13787             # There doesn't appear to be a way to prevent this compiler from
13788             # explicitly linking system object files so we need to strip them
13789             # from the output so that they don't get included in the library
13790             # dependencies.
13791             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'
13792             ;;
13793           xl* | mpixl* | bgxl*)
13794             # IBM XL 8.0 on PPC, with GNU ld
13795             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13796             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13797             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13798             if test yes = "$supports_anon_versioning"; then
13799               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13800                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13801                 echo "local: *; };" >> $output_objdir/$libname.ver~
13802                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13803             fi
13804             ;;
13805           *)
13806             case `$CC -V 2>&1 | sed 5q` in
13807             *Sun\ C*)
13808               # Sun C++ 5.9
13809               no_undefined_flag_CXX=' -zdefs'
13810               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13811               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'
13812               hardcode_libdir_flag_spec_CXX='-R$libdir'
13813               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'
13814               compiler_needs_object_CXX=yes
13815
13816               # Not sure whether something based on
13817               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13818               # would be better.
13819               output_verbose_link_cmd='func_echo_all'
13820
13821               # Archives containing C++ object files must be created using
13822               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13823               # necessary to make sure instantiated templates are included
13824               # in the archive.
13825               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13826               ;;
13827             esac
13828             ;;
13829         esac
13830         ;;
13831
13832       lynxos*)
13833         # FIXME: insert proper C++ library support
13834         ld_shlibs_CXX=no
13835         ;;
13836
13837       m88k*)
13838         # FIXME: insert proper C++ library support
13839         ld_shlibs_CXX=no
13840         ;;
13841
13842       mvs*)
13843         case $cc_basename in
13844           cxx*)
13845             # FIXME: insert proper C++ library support
13846             ld_shlibs_CXX=no
13847             ;;
13848           *)
13849             # FIXME: insert proper C++ library support
13850             ld_shlibs_CXX=no
13851             ;;
13852         esac
13853         ;;
13854
13855       netbsd*)
13856         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13857           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13858           wlarc=
13859           hardcode_libdir_flag_spec_CXX='-R$libdir'
13860           hardcode_direct_CXX=yes
13861           hardcode_shlibpath_var_CXX=no
13862         fi
13863         # Workaround some broken pre-1.5 toolchains
13864         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13865         ;;
13866
13867       *nto* | *qnx*)
13868         ld_shlibs_CXX=yes
13869         ;;
13870
13871       openbsd* | bitrig*)
13872         if test -f /usr/libexec/ld.so; then
13873           hardcode_direct_CXX=yes
13874           hardcode_shlibpath_var_CXX=no
13875           hardcode_direct_absolute_CXX=yes
13876           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13877           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13878           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13879             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13880             export_dynamic_flag_spec_CXX='$wl-E'
13881             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13882           fi
13883           output_verbose_link_cmd=func_echo_all
13884         else
13885           ld_shlibs_CXX=no
13886         fi
13887         ;;
13888
13889       osf3* | osf4* | osf5*)
13890         case $cc_basename in
13891           KCC*)
13892             # Kuck and Associates, Inc. (KAI) C++ Compiler
13893
13894             # KCC will only create a shared library if the output file
13895             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13896             # to its proper name (with version) after linking.
13897             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'
13898
13899             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13900             hardcode_libdir_separator_CXX=:
13901
13902             # Archives containing C++ object files must be created using
13903             # the KAI C++ compiler.
13904             case $host in
13905               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13906               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13907             esac
13908             ;;
13909           RCC*)
13910             # Rational C++ 2.4.1
13911             # FIXME: insert proper C++ library support
13912             ld_shlibs_CXX=no
13913             ;;
13914           cxx*)
13915             case $host in
13916               osf3*)
13917                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13918                 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'
13919                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13920                 ;;
13921               *)
13922                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13923                 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'
13924                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13925                   echo "-hidden">> $lib.exp~
13926                   $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~
13927                   $RM $lib.exp'
13928                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13929                 ;;
13930             esac
13931
13932             hardcode_libdir_separator_CXX=:
13933
13934             # Commands to make compiler produce verbose output that lists
13935             # what "hidden" libraries, object files and flags are used when
13936             # linking a shared library.
13937             #
13938             # There doesn't appear to be a way to prevent this compiler from
13939             # explicitly linking system object files so we need to strip them
13940             # from the output so that they don't get included in the library
13941             # dependencies.
13942             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"'
13943             ;;
13944           *)
13945             if test yes,no = "$GXX,$with_gnu_ld"; then
13946               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13947               case $host in
13948                 osf3*)
13949                   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'
13950                   ;;
13951                 *)
13952                   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'
13953                   ;;
13954               esac
13955
13956               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13957               hardcode_libdir_separator_CXX=:
13958
13959               # Commands to make compiler produce verbose output that lists
13960               # what "hidden" libraries, object files and flags are used when
13961               # linking a shared library.
13962               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13963
13964             else
13965               # FIXME: insert proper C++ library support
13966               ld_shlibs_CXX=no
13967             fi
13968             ;;
13969         esac
13970         ;;
13971
13972       psos*)
13973         # FIXME: insert proper C++ library support
13974         ld_shlibs_CXX=no
13975         ;;
13976
13977       sunos4*)
13978         case $cc_basename in
13979           CC*)
13980             # Sun C++ 4.x
13981             # FIXME: insert proper C++ library support
13982             ld_shlibs_CXX=no
13983             ;;
13984           lcc*)
13985             # Lucid
13986             # FIXME: insert proper C++ library support
13987             ld_shlibs_CXX=no
13988             ;;
13989           *)
13990             # FIXME: insert proper C++ library support
13991             ld_shlibs_CXX=no
13992             ;;
13993         esac
13994         ;;
13995
13996       solaris*)
13997         case $cc_basename in
13998           CC* | sunCC*)
13999             # Sun C++ 4.2, 5.x and Centerline C++
14000             archive_cmds_need_lc_CXX=yes
14001             no_undefined_flag_CXX=' -zdefs'
14002             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14003             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14004               $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'
14005
14006             hardcode_libdir_flag_spec_CXX='-R$libdir'
14007             hardcode_shlibpath_var_CXX=no
14008             case $host_os in
14009               solaris2.[0-5] | solaris2.[0-5].*) ;;
14010               *)
14011                 # The compiler driver will combine and reorder linker options,
14012                 # but understands '-z linker_flag'.
14013                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14014                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14015                 ;;
14016             esac
14017             link_all_deplibs_CXX=yes
14018
14019             output_verbose_link_cmd='func_echo_all'
14020
14021             # Archives containing C++ object files must be created using
14022             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14023             # necessary to make sure instantiated templates are included
14024             # in the archive.
14025             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14026             ;;
14027           gcx*)
14028             # Green Hills C++ Compiler
14029             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14030
14031             # The C++ compiler must be used to create the archive.
14032             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14033             ;;
14034           *)
14035             # GNU C++ compiler with Solaris linker
14036             if test yes,no = "$GXX,$with_gnu_ld"; then
14037               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14038               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14039                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14040                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14041                   $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'
14042
14043                 # Commands to make compiler produce verbose output that lists
14044                 # what "hidden" libraries, object files and flags are used when
14045                 # linking a shared library.
14046                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14047               else
14048                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14049                 # platform.
14050                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14051                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14052                   $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'
14053
14054                 # Commands to make compiler produce verbose output that lists
14055                 # what "hidden" libraries, object files and flags are used when
14056                 # linking a shared library.
14057                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14058               fi
14059
14060               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14061               case $host_os in
14062                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14063                 *)
14064                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14065                   ;;
14066               esac
14067             fi
14068             ;;
14069         esac
14070         ;;
14071
14072     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14073       no_undefined_flag_CXX='$wl-z,text'
14074       archive_cmds_need_lc_CXX=no
14075       hardcode_shlibpath_var_CXX=no
14076       runpath_var='LD_RUN_PATH'
14077
14078       case $cc_basename in
14079         CC*)
14080           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14081           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14082           ;;
14083         *)
14084           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14085           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14086           ;;
14087       esac
14088       ;;
14089
14090       sysv5* | sco3.2v5* | sco5v6*)
14091         # Note: We CANNOT use -z defs as we might desire, because we do not
14092         # link with -lc, and that would cause any symbols used from libc to
14093         # always be unresolved, which means just about no library would
14094         # ever link correctly.  If we're not using GNU ld we use -z text
14095         # though, which does catch some bad symbols but isn't as heavy-handed
14096         # as -z defs.
14097         no_undefined_flag_CXX='$wl-z,text'
14098         allow_undefined_flag_CXX='$wl-z,nodefs'
14099         archive_cmds_need_lc_CXX=no
14100         hardcode_shlibpath_var_CXX=no
14101         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14102         hardcode_libdir_separator_CXX=':'
14103         link_all_deplibs_CXX=yes
14104         export_dynamic_flag_spec_CXX='$wl-Bexport'
14105         runpath_var='LD_RUN_PATH'
14106
14107         case $cc_basename in
14108           CC*)
14109             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14110             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14111             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14112               '"$old_archive_cmds_CXX"
14113             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14114               '"$reload_cmds_CXX"
14115             ;;
14116           *)
14117             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14118             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14119             ;;
14120         esac
14121       ;;
14122
14123       tandem*)
14124         case $cc_basename in
14125           NCC*)
14126             # NonStop-UX NCC 3.20
14127             # FIXME: insert proper C++ library support
14128             ld_shlibs_CXX=no
14129             ;;
14130           *)
14131             # FIXME: insert proper C++ library support
14132             ld_shlibs_CXX=no
14133             ;;
14134         esac
14135         ;;
14136
14137       vxworks*)
14138         # FIXME: insert proper C++ library support
14139         ld_shlibs_CXX=no
14140         ;;
14141
14142       *)
14143         # FIXME: insert proper C++ library support
14144         ld_shlibs_CXX=no
14145         ;;
14146     esac
14147
14148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14149 $as_echo "$ld_shlibs_CXX" >&6; }
14150     test no = "$ld_shlibs_CXX" && can_build_shared=no
14151
14152     GCC_CXX=$GXX
14153     LD_CXX=$LD
14154
14155     ## CAVEAT EMPTOR:
14156     ## There is no encapsulation within the following macros, do not change
14157     ## the running order or otherwise move them around unless you know exactly
14158     ## what you are doing...
14159     # Dependencies to place before and after the object being linked:
14160 predep_objects_CXX=
14161 postdep_objects_CXX=
14162 predeps_CXX=
14163 postdeps_CXX=
14164 compiler_lib_search_path_CXX=
14165
14166 cat > conftest.$ac_ext <<_LT_EOF
14167 class Foo
14168 {
14169 public:
14170   Foo (void) { a = 0; }
14171 private:
14172   int a;
14173 };
14174 _LT_EOF
14175
14176
14177 _lt_libdeps_save_CFLAGS=$CFLAGS
14178 case "$CC $CFLAGS " in #(
14179 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14180 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14181 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14182 esac
14183
14184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14185   (eval $ac_compile) 2>&5
14186   ac_status=$?
14187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14188   test $ac_status = 0; }; then
14189   # Parse the compiler output and extract the necessary
14190   # objects, libraries and library flags.
14191
14192   # Sentinel used to keep track of whether or not we are before
14193   # the conftest object file.
14194   pre_test_object_deps_done=no
14195
14196   for p in `eval "$output_verbose_link_cmd"`; do
14197     case $prev$p in
14198
14199     -L* | -R* | -l*)
14200        # Some compilers place space between "-{L,R}" and the path.
14201        # Remove the space.
14202        if test x-L = "$p" ||
14203           test x-R = "$p"; then
14204          prev=$p
14205          continue
14206        fi
14207
14208        # Expand the sysroot to ease extracting the directories later.
14209        if test -z "$prev"; then
14210          case $p in
14211          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14212          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14213          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14214          esac
14215        fi
14216        case $p in
14217        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14218        esac
14219        if test no = "$pre_test_object_deps_done"; then
14220          case $prev in
14221          -L | -R)
14222            # Internal compiler library paths should come after those
14223            # provided the user.  The postdeps already come after the
14224            # user supplied libs so there is no need to process them.
14225            if test -z "$compiler_lib_search_path_CXX"; then
14226              compiler_lib_search_path_CXX=$prev$p
14227            else
14228              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14229            fi
14230            ;;
14231          # The "-l" case would never come before the object being
14232          # linked, so don't bother handling this case.
14233          esac
14234        else
14235          if test -z "$postdeps_CXX"; then
14236            postdeps_CXX=$prev$p
14237          else
14238            postdeps_CXX="${postdeps_CXX} $prev$p"
14239          fi
14240        fi
14241        prev=
14242        ;;
14243
14244     *.lto.$objext) ;; # Ignore GCC LTO objects
14245     *.$objext)
14246        # This assumes that the test object file only shows up
14247        # once in the compiler output.
14248        if test "$p" = "conftest.$objext"; then
14249          pre_test_object_deps_done=yes
14250          continue
14251        fi
14252
14253        if test no = "$pre_test_object_deps_done"; then
14254          if test -z "$predep_objects_CXX"; then
14255            predep_objects_CXX=$p
14256          else
14257            predep_objects_CXX="$predep_objects_CXX $p"
14258          fi
14259        else
14260          if test -z "$postdep_objects_CXX"; then
14261            postdep_objects_CXX=$p
14262          else
14263            postdep_objects_CXX="$postdep_objects_CXX $p"
14264          fi
14265        fi
14266        ;;
14267
14268     *) ;; # Ignore the rest.
14269
14270     esac
14271   done
14272
14273   # Clean up.
14274   rm -f a.out a.exe
14275 else
14276   echo "libtool.m4: error: problem compiling CXX test program"
14277 fi
14278
14279 $RM -f confest.$objext
14280 CFLAGS=$_lt_libdeps_save_CFLAGS
14281
14282 # PORTME: override above test on systems where it is broken
14283 case $host_os in
14284 interix[3-9]*)
14285   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14286   # hack all around it, let's just trust "g++" to DTRT.
14287   predep_objects_CXX=
14288   postdep_objects_CXX=
14289   postdeps_CXX=
14290   ;;
14291 esac
14292
14293
14294 case " $postdeps_CXX " in
14295 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14296 esac
14297  compiler_lib_search_dirs_CXX=
14298 if test -n "${compiler_lib_search_path_CXX}"; then
14299  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14300 fi
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332     lt_prog_compiler_wl_CXX=
14333 lt_prog_compiler_pic_CXX=
14334 lt_prog_compiler_static_CXX=
14335
14336
14337   # C++ specific cases for pic, static, wl, etc.
14338   if test yes = "$GXX"; then
14339     lt_prog_compiler_wl_CXX='-Wl,'
14340     lt_prog_compiler_static_CXX='-static'
14341
14342     case $host_os in
14343     aix*)
14344       # All AIX code is PIC.
14345       if test ia64 = "$host_cpu"; then
14346         # AIX 5 now supports IA64 processor
14347         lt_prog_compiler_static_CXX='-Bstatic'
14348       fi
14349       lt_prog_compiler_pic_CXX='-fPIC'
14350       ;;
14351
14352     amigaos*)
14353       case $host_cpu in
14354       powerpc)
14355             # see comment about AmigaOS4 .so support
14356             lt_prog_compiler_pic_CXX='-fPIC'
14357         ;;
14358       m68k)
14359             # FIXME: we need at least 68020 code to build shared libraries, but
14360             # adding the '-m68020' flag to GCC prevents building anything better,
14361             # like '-m68040'.
14362             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14363         ;;
14364       esac
14365       ;;
14366
14367     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14368       # PIC is the default for these OSes.
14369       ;;
14370     mingw* | cygwin* | os2* | pw32* | cegcc*)
14371       # This hack is so that the source file can tell whether it is being
14372       # built for inclusion in a dll (and should export symbols for example).
14373       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14374       # (--disable-auto-import) libraries
14375       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14376       case $host_os in
14377       os2*)
14378         lt_prog_compiler_static_CXX='$wl-static'
14379         ;;
14380       esac
14381       ;;
14382     darwin* | rhapsody*)
14383       # PIC is the default on this platform
14384       # Common symbols not allowed in MH_DYLIB files
14385       lt_prog_compiler_pic_CXX='-fno-common'
14386       ;;
14387     *djgpp*)
14388       # DJGPP does not support shared libraries at all
14389       lt_prog_compiler_pic_CXX=
14390       ;;
14391     haiku*)
14392       # PIC is the default for Haiku.
14393       # The "-static" flag exists, but is broken.
14394       lt_prog_compiler_static_CXX=
14395       ;;
14396     interix[3-9]*)
14397       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14398       # Instead, we relocate shared libraries at runtime.
14399       ;;
14400     sysv4*MP*)
14401       if test -d /usr/nec; then
14402         lt_prog_compiler_pic_CXX=-Kconform_pic
14403       fi
14404       ;;
14405     hpux*)
14406       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14407       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14408       # sets the default TLS model and affects inlining.
14409       case $host_cpu in
14410       hppa*64*)
14411         ;;
14412       *)
14413         lt_prog_compiler_pic_CXX='-fPIC'
14414         ;;
14415       esac
14416       ;;
14417     *qnx* | *nto*)
14418       # QNX uses GNU C++, but need to define -shared option too, otherwise
14419       # it will coredump.
14420       lt_prog_compiler_pic_CXX='-fPIC -shared'
14421       ;;
14422     *)
14423       lt_prog_compiler_pic_CXX='-fPIC'
14424       ;;
14425     esac
14426   else
14427     case $host_os in
14428       aix[4-9]*)
14429         # All AIX code is PIC.
14430         if test ia64 = "$host_cpu"; then
14431           # AIX 5 now supports IA64 processor
14432           lt_prog_compiler_static_CXX='-Bstatic'
14433         else
14434           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14435         fi
14436         ;;
14437       chorus*)
14438         case $cc_basename in
14439         cxch68*)
14440           # Green Hills C++ Compiler
14441           # _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"
14442           ;;
14443         esac
14444         ;;
14445       mingw* | cygwin* | os2* | pw32* | cegcc*)
14446         # This hack is so that the source file can tell whether it is being
14447         # built for inclusion in a dll (and should export symbols for example).
14448         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14449         ;;
14450       dgux*)
14451         case $cc_basename in
14452           ec++*)
14453             lt_prog_compiler_pic_CXX='-KPIC'
14454             ;;
14455           ghcx*)
14456             # Green Hills C++ Compiler
14457             lt_prog_compiler_pic_CXX='-pic'
14458             ;;
14459           *)
14460             ;;
14461         esac
14462         ;;
14463       freebsd* | dragonfly*)
14464         # FreeBSD uses GNU C++
14465         ;;
14466       hpux9* | hpux10* | hpux11*)
14467         case $cc_basename in
14468           CC*)
14469             lt_prog_compiler_wl_CXX='-Wl,'
14470             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14471             if test ia64 != "$host_cpu"; then
14472               lt_prog_compiler_pic_CXX='+Z'
14473             fi
14474             ;;
14475           aCC*)
14476             lt_prog_compiler_wl_CXX='-Wl,'
14477             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14478             case $host_cpu in
14479             hppa*64*|ia64*)
14480               # +Z the default
14481               ;;
14482             *)
14483               lt_prog_compiler_pic_CXX='+Z'
14484               ;;
14485             esac
14486             ;;
14487           *)
14488             ;;
14489         esac
14490         ;;
14491       interix*)
14492         # This is c89, which is MS Visual C++ (no shared libs)
14493         # Anyone wants to do a port?
14494         ;;
14495       irix5* | irix6* | nonstopux*)
14496         case $cc_basename in
14497           CC*)
14498             lt_prog_compiler_wl_CXX='-Wl,'
14499             lt_prog_compiler_static_CXX='-non_shared'
14500             # CC pic flag -KPIC is the default.
14501             ;;
14502           *)
14503             ;;
14504         esac
14505         ;;
14506       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14507         case $cc_basename in
14508           KCC*)
14509             # KAI C++ Compiler
14510             lt_prog_compiler_wl_CXX='--backend -Wl,'
14511             lt_prog_compiler_pic_CXX='-fPIC'
14512             ;;
14513           ecpc* )
14514             # old Intel C++ for x86_64, which still supported -KPIC.
14515             lt_prog_compiler_wl_CXX='-Wl,'
14516             lt_prog_compiler_pic_CXX='-KPIC'
14517             lt_prog_compiler_static_CXX='-static'
14518             ;;
14519           icpc* )
14520             # Intel C++, used to be incompatible with GCC.
14521             # ICC 10 doesn't accept -KPIC any more.
14522             lt_prog_compiler_wl_CXX='-Wl,'
14523             lt_prog_compiler_pic_CXX='-fPIC'
14524             lt_prog_compiler_static_CXX='-static'
14525             ;;
14526           pgCC* | pgcpp*)
14527             # Portland Group C++ compiler
14528             lt_prog_compiler_wl_CXX='-Wl,'
14529             lt_prog_compiler_pic_CXX='-fpic'
14530             lt_prog_compiler_static_CXX='-Bstatic'
14531             ;;
14532           cxx*)
14533             # Compaq C++
14534             # Make sure the PIC flag is empty.  It appears that all Alpha
14535             # Linux and Compaq Tru64 Unix objects are PIC.
14536             lt_prog_compiler_pic_CXX=
14537             lt_prog_compiler_static_CXX='-non_shared'
14538             ;;
14539           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14540             # IBM XL 8.0, 9.0 on PPC and BlueGene
14541             lt_prog_compiler_wl_CXX='-Wl,'
14542             lt_prog_compiler_pic_CXX='-qpic'
14543             lt_prog_compiler_static_CXX='-qstaticlink'
14544             ;;
14545           *)
14546             case `$CC -V 2>&1 | sed 5q` in
14547             *Sun\ C*)
14548               # Sun C++ 5.9
14549               lt_prog_compiler_pic_CXX='-KPIC'
14550               lt_prog_compiler_static_CXX='-Bstatic'
14551               lt_prog_compiler_wl_CXX='-Qoption ld '
14552               ;;
14553             esac
14554             ;;
14555         esac
14556         ;;
14557       lynxos*)
14558         ;;
14559       m88k*)
14560         ;;
14561       mvs*)
14562         case $cc_basename in
14563           cxx*)
14564             lt_prog_compiler_pic_CXX='-W c,exportall'
14565             ;;
14566           *)
14567             ;;
14568         esac
14569         ;;
14570       netbsd*)
14571         ;;
14572       *qnx* | *nto*)
14573         # QNX uses GNU C++, but need to define -shared option too, otherwise
14574         # it will coredump.
14575         lt_prog_compiler_pic_CXX='-fPIC -shared'
14576         ;;
14577       osf3* | osf4* | osf5*)
14578         case $cc_basename in
14579           KCC*)
14580             lt_prog_compiler_wl_CXX='--backend -Wl,'
14581             ;;
14582           RCC*)
14583             # Rational C++ 2.4.1
14584             lt_prog_compiler_pic_CXX='-pic'
14585             ;;
14586           cxx*)
14587             # Digital/Compaq C++
14588             lt_prog_compiler_wl_CXX='-Wl,'
14589             # Make sure the PIC flag is empty.  It appears that all Alpha
14590             # Linux and Compaq Tru64 Unix objects are PIC.
14591             lt_prog_compiler_pic_CXX=
14592             lt_prog_compiler_static_CXX='-non_shared'
14593             ;;
14594           *)
14595             ;;
14596         esac
14597         ;;
14598       psos*)
14599         ;;
14600       solaris*)
14601         case $cc_basename in
14602           CC* | sunCC*)
14603             # Sun C++ 4.2, 5.x and Centerline C++
14604             lt_prog_compiler_pic_CXX='-KPIC'
14605             lt_prog_compiler_static_CXX='-Bstatic'
14606             lt_prog_compiler_wl_CXX='-Qoption ld '
14607             ;;
14608           gcx*)
14609             # Green Hills C++ Compiler
14610             lt_prog_compiler_pic_CXX='-PIC'
14611             ;;
14612           *)
14613             ;;
14614         esac
14615         ;;
14616       sunos4*)
14617         case $cc_basename in
14618           CC*)
14619             # Sun C++ 4.x
14620             lt_prog_compiler_pic_CXX='-pic'
14621             lt_prog_compiler_static_CXX='-Bstatic'
14622             ;;
14623           lcc*)
14624             # Lucid
14625             lt_prog_compiler_pic_CXX='-pic'
14626             ;;
14627           *)
14628             ;;
14629         esac
14630         ;;
14631       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14632         case $cc_basename in
14633           CC*)
14634             lt_prog_compiler_wl_CXX='-Wl,'
14635             lt_prog_compiler_pic_CXX='-KPIC'
14636             lt_prog_compiler_static_CXX='-Bstatic'
14637             ;;
14638         esac
14639         ;;
14640       tandem*)
14641         case $cc_basename in
14642           NCC*)
14643             # NonStop-UX NCC 3.20
14644             lt_prog_compiler_pic_CXX='-KPIC'
14645             ;;
14646           *)
14647             ;;
14648         esac
14649         ;;
14650       vxworks*)
14651         ;;
14652       *)
14653         lt_prog_compiler_can_build_shared_CXX=no
14654         ;;
14655     esac
14656   fi
14657
14658 case $host_os in
14659   # For platforms that do not support PIC, -DPIC is meaningless:
14660   *djgpp*)
14661     lt_prog_compiler_pic_CXX=
14662     ;;
14663   *)
14664     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14665     ;;
14666 esac
14667
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14669 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14670 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14671   $as_echo_n "(cached) " >&6
14672 else
14673   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14674 fi
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14676 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14677 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14678
14679 #
14680 # Check to make sure the PIC flag actually works.
14681 #
14682 if test -n "$lt_prog_compiler_pic_CXX"; then
14683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14684 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14685 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14686   $as_echo_n "(cached) " >&6
14687 else
14688   lt_cv_prog_compiler_pic_works_CXX=no
14689    ac_outfile=conftest.$ac_objext
14690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14691    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14692    # Insert the option either (1) after the last *FLAGS variable, or
14693    # (2) before a word containing "conftest.", or (3) at the end.
14694    # Note that $ac_compile itself does not contain backslashes and begins
14695    # with a dollar sign (not a hyphen), so the echo should work correctly.
14696    # The option is referenced via a variable to avoid confusing sed.
14697    lt_compile=`echo "$ac_compile" | $SED \
14698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14700    -e 's:$: $lt_compiler_flag:'`
14701    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14702    (eval "$lt_compile" 2>conftest.err)
14703    ac_status=$?
14704    cat conftest.err >&5
14705    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706    if (exit $ac_status) && test -s "$ac_outfile"; then
14707      # The compiler can only warn and ignore the option if not recognized
14708      # So say no if there are warnings other than the usual output.
14709      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14710      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14711      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14712        lt_cv_prog_compiler_pic_works_CXX=yes
14713      fi
14714    fi
14715    $RM conftest*
14716
14717 fi
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14719 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14720
14721 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14722     case $lt_prog_compiler_pic_CXX in
14723      "" | " "*) ;;
14724      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14725      esac
14726 else
14727     lt_prog_compiler_pic_CXX=
14728      lt_prog_compiler_can_build_shared_CXX=no
14729 fi
14730
14731 fi
14732
14733
14734
14735
14736
14737 #
14738 # Check to make sure the static flag actually works.
14739 #
14740 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14742 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14743 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14744   $as_echo_n "(cached) " >&6
14745 else
14746   lt_cv_prog_compiler_static_works_CXX=no
14747    save_LDFLAGS=$LDFLAGS
14748    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14749    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14750    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14751      # The linker can only warn and ignore the option if not recognized
14752      # So say no if there are warnings
14753      if test -s conftest.err; then
14754        # Append any errors to the config.log.
14755        cat conftest.err 1>&5
14756        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14757        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14758        if diff conftest.exp conftest.er2 >/dev/null; then
14759          lt_cv_prog_compiler_static_works_CXX=yes
14760        fi
14761      else
14762        lt_cv_prog_compiler_static_works_CXX=yes
14763      fi
14764    fi
14765    $RM -r conftest*
14766    LDFLAGS=$save_LDFLAGS
14767
14768 fi
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14770 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14771
14772 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14773     :
14774 else
14775     lt_prog_compiler_static_CXX=
14776 fi
14777
14778
14779
14780
14781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14782 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14783 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14784   $as_echo_n "(cached) " >&6
14785 else
14786   lt_cv_prog_compiler_c_o_CXX=no
14787    $RM -r conftest 2>/dev/null
14788    mkdir conftest
14789    cd conftest
14790    mkdir out
14791    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14792
14793    lt_compiler_flag="-o out/conftest2.$ac_objext"
14794    # Insert the option either (1) after the last *FLAGS variable, or
14795    # (2) before a word containing "conftest.", or (3) at the end.
14796    # Note that $ac_compile itself does not contain backslashes and begins
14797    # with a dollar sign (not a hyphen), so the echo should work correctly.
14798    lt_compile=`echo "$ac_compile" | $SED \
14799    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14801    -e 's:$: $lt_compiler_flag:'`
14802    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14803    (eval "$lt_compile" 2>out/conftest.err)
14804    ac_status=$?
14805    cat out/conftest.err >&5
14806    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14808    then
14809      # The compiler can only warn and ignore the option if not recognized
14810      # So say no if there are warnings
14811      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14812      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14813      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14814        lt_cv_prog_compiler_c_o_CXX=yes
14815      fi
14816    fi
14817    chmod u+w . 2>&5
14818    $RM conftest*
14819    # SGI C++ compiler will create directory out/ii_files/ for
14820    # template instantiation
14821    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14822    $RM out/* && rmdir out
14823    cd ..
14824    $RM -r conftest
14825    $RM conftest*
14826
14827 fi
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14829 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14830
14831
14832
14833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14834 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14835 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14836   $as_echo_n "(cached) " >&6
14837 else
14838   lt_cv_prog_compiler_c_o_CXX=no
14839    $RM -r conftest 2>/dev/null
14840    mkdir conftest
14841    cd conftest
14842    mkdir out
14843    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14844
14845    lt_compiler_flag="-o out/conftest2.$ac_objext"
14846    # Insert the option either (1) after the last *FLAGS variable, or
14847    # (2) before a word containing "conftest.", or (3) at the end.
14848    # Note that $ac_compile itself does not contain backslashes and begins
14849    # with a dollar sign (not a hyphen), so the echo should work correctly.
14850    lt_compile=`echo "$ac_compile" | $SED \
14851    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14852    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14853    -e 's:$: $lt_compiler_flag:'`
14854    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14855    (eval "$lt_compile" 2>out/conftest.err)
14856    ac_status=$?
14857    cat out/conftest.err >&5
14858    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14860    then
14861      # The compiler can only warn and ignore the option if not recognized
14862      # So say no if there are warnings
14863      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14864      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14865      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14866        lt_cv_prog_compiler_c_o_CXX=yes
14867      fi
14868    fi
14869    chmod u+w . 2>&5
14870    $RM conftest*
14871    # SGI C++ compiler will create directory out/ii_files/ for
14872    # template instantiation
14873    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14874    $RM out/* && rmdir out
14875    cd ..
14876    $RM -r conftest
14877    $RM conftest*
14878
14879 fi
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14881 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14882
14883
14884
14885
14886 hard_links=nottested
14887 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14888   # do not overwrite the value of need_locks provided by the user
14889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14890 $as_echo_n "checking if we can lock with hard links... " >&6; }
14891   hard_links=yes
14892   $RM conftest*
14893   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14894   touch conftest.a
14895   ln conftest.a conftest.b 2>&5 || hard_links=no
14896   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14898 $as_echo "$hard_links" >&6; }
14899   if test no = "$hard_links"; then
14900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14901 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14902     need_locks=warn
14903   fi
14904 else
14905   need_locks=no
14906 fi
14907
14908
14909
14910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14911 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14912
14913   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14914   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14915   case $host_os in
14916   aix[4-9]*)
14917     # If we're using GNU nm, then we don't want the "-C" option.
14918     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14919     # Without the "-l" option, or with the "-B" option, AIX nm treats
14920     # weak defined symbols like other global defined symbols, whereas
14921     # GNU nm marks them as "W".
14922     # While the 'weak' keyword is ignored in the Export File, we need
14923     # it in the Import File for the 'aix-soname' feature, so we have
14924     # to replace the "-B" option with "-P" for AIX nm.
14925     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14926       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'
14927     else
14928       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'
14929     fi
14930     ;;
14931   pw32*)
14932     export_symbols_cmds_CXX=$ltdll_cmds
14933     ;;
14934   cygwin* | mingw* | cegcc*)
14935     case $cc_basename in
14936     cl*)
14937       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14938       ;;
14939     *)
14940       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'
14941       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14942       ;;
14943     esac
14944     ;;
14945   *)
14946     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14947     ;;
14948   esac
14949
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14951 $as_echo "$ld_shlibs_CXX" >&6; }
14952 test no = "$ld_shlibs_CXX" && can_build_shared=no
14953
14954 with_gnu_ld_CXX=$with_gnu_ld
14955
14956
14957
14958
14959
14960
14961 #
14962 # Do we need to explicitly link libc?
14963 #
14964 case "x$archive_cmds_need_lc_CXX" in
14965 x|xyes)
14966   # Assume -lc should be added
14967   archive_cmds_need_lc_CXX=yes
14968
14969   if test yes,yes = "$GCC,$enable_shared"; then
14970     case $archive_cmds_CXX in
14971     *'~'*)
14972       # FIXME: we may have to deal with multi-command sequences.
14973       ;;
14974     '$CC '*)
14975       # Test whether the compiler implicitly links with -lc since on some
14976       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14977       # to ld, don't add -lc before -lgcc.
14978       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14979 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14980 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14981   $as_echo_n "(cached) " >&6
14982 else
14983   $RM conftest*
14984         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14985
14986         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14987   (eval $ac_compile) 2>&5
14988   ac_status=$?
14989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14990   test $ac_status = 0; } 2>conftest.err; then
14991           soname=conftest
14992           lib=conftest
14993           libobjs=conftest.$ac_objext
14994           deplibs=
14995           wl=$lt_prog_compiler_wl_CXX
14996           pic_flag=$lt_prog_compiler_pic_CXX
14997           compiler_flags=-v
14998           linker_flags=-v
14999           verstring=
15000           output_objdir=.
15001           libname=conftest
15002           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15003           allow_undefined_flag_CXX=
15004           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15005   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15006   ac_status=$?
15007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15008   test $ac_status = 0; }
15009           then
15010             lt_cv_archive_cmds_need_lc_CXX=no
15011           else
15012             lt_cv_archive_cmds_need_lc_CXX=yes
15013           fi
15014           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15015         else
15016           cat conftest.err 1>&5
15017         fi
15018         $RM conftest*
15019
15020 fi
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15022 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15023       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15024       ;;
15025     esac
15026   fi
15027   ;;
15028 esac
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15092 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15093
15094 library_names_spec=
15095 libname_spec='lib$name'
15096 soname_spec=
15097 shrext_cmds=.so
15098 postinstall_cmds=
15099 postuninstall_cmds=
15100 finish_cmds=
15101 finish_eval=
15102 shlibpath_var=
15103 shlibpath_overrides_runpath=unknown
15104 version_type=none
15105 dynamic_linker="$host_os ld.so"
15106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15107 need_lib_prefix=unknown
15108 hardcode_into_libs=no
15109
15110 # when you set need_version to no, make sure it does not cause -set_version
15111 # flags to be left without arguments
15112 need_version=unknown
15113
15114
15115
15116 case $host_os in
15117 aix3*)
15118   version_type=linux # correct to gnu/linux during the next big refactor
15119   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15120   shlibpath_var=LIBPATH
15121
15122   # AIX 3 has no versioning support, so we append a major version to the name.
15123   soname_spec='$libname$release$shared_ext$major'
15124   ;;
15125
15126 aix[4-9]*)
15127   version_type=linux # correct to gnu/linux during the next big refactor
15128   need_lib_prefix=no
15129   need_version=no
15130   hardcode_into_libs=yes
15131   if test ia64 = "$host_cpu"; then
15132     # AIX 5 supports IA64
15133     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15134     shlibpath_var=LD_LIBRARY_PATH
15135   else
15136     # With GCC up to 2.95.x, collect2 would create an import file
15137     # for dependence libraries.  The import file would start with
15138     # the line '#! .'.  This would cause the generated library to
15139     # depend on '.', always an invalid library.  This was fixed in
15140     # development snapshots of GCC prior to 3.0.
15141     case $host_os in
15142       aix4 | aix4.[01] | aix4.[01].*)
15143       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15144            echo ' yes '
15145            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15146         :
15147       else
15148         can_build_shared=no
15149       fi
15150       ;;
15151     esac
15152     # Using Import Files as archive members, it is possible to support
15153     # filename-based versioning of shared library archives on AIX. While
15154     # this would work for both with and without runtime linking, it will
15155     # prevent static linking of such archives. So we do filename-based
15156     # shared library versioning with .so extension only, which is used
15157     # when both runtime linking and shared linking is enabled.
15158     # Unfortunately, runtime linking may impact performance, so we do
15159     # not want this to be the default eventually. Also, we use the
15160     # versioned .so libs for executables only if there is the -brtl
15161     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15162     # To allow for filename-based versioning support, we need to create
15163     # libNAME.so.V as an archive file, containing:
15164     # *) an Import File, referring to the versioned filename of the
15165     #    archive as well as the shared archive member, telling the
15166     #    bitwidth (32 or 64) of that shared object, and providing the
15167     #    list of exported symbols of that shared object, eventually
15168     #    decorated with the 'weak' keyword
15169     # *) the shared object with the F_LOADONLY flag set, to really avoid
15170     #    it being seen by the linker.
15171     # At run time we better use the real file rather than another symlink,
15172     # but for link time we create the symlink libNAME.so -> libNAME.so.V
15173
15174     case $with_aix_soname,$aix_use_runtimelinking in
15175     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15176     # soname into executable. Probably we can add versioning support to
15177     # collect2, so additional links can be useful in future.
15178     aix,yes) # traditional libtool
15179       dynamic_linker='AIX unversionable lib.so'
15180       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15181       # instead of lib<name>.a to let people know that these are not
15182       # typical AIX shared libraries.
15183       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15184       ;;
15185     aix,no) # traditional AIX only
15186       dynamic_linker='AIX lib.a(lib.so.V)'
15187       # We preserve .a as extension for shared libraries through AIX4.2
15188       # and later when we are not doing run time linking.
15189       library_names_spec='$libname$release.a $libname.a'
15190       soname_spec='$libname$release$shared_ext$major'
15191       ;;
15192     svr4,*) # full svr4 only
15193       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15194       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15195       # We do not specify a path in Import Files, so LIBPATH fires.
15196       shlibpath_overrides_runpath=yes
15197       ;;
15198     *,yes) # both, prefer svr4
15199       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15200       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15201       # unpreferred sharedlib libNAME.a needs extra handling
15202       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"'
15203       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"'
15204       # We do not specify a path in Import Files, so LIBPATH fires.
15205       shlibpath_overrides_runpath=yes
15206       ;;
15207     *,no) # both, prefer aix
15208       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15209       library_names_spec='$libname$release.a $libname.a'
15210       soname_spec='$libname$release$shared_ext$major'
15211       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15212       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)'
15213       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"'
15214       ;;
15215     esac
15216     shlibpath_var=LIBPATH
15217   fi
15218   ;;
15219
15220 amigaos*)
15221   case $host_cpu in
15222   powerpc)
15223     # Since July 2007 AmigaOS4 officially supports .so libraries.
15224     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15225     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15226     ;;
15227   m68k)
15228     library_names_spec='$libname.ixlibrary $libname.a'
15229     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15230     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'
15231     ;;
15232   esac
15233   ;;
15234
15235 beos*)
15236   library_names_spec='$libname$shared_ext'
15237   dynamic_linker="$host_os ld.so"
15238   shlibpath_var=LIBRARY_PATH
15239   ;;
15240
15241 bsdi[45]*)
15242   version_type=linux # correct to gnu/linux during the next big refactor
15243   need_version=no
15244   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15245   soname_spec='$libname$release$shared_ext$major'
15246   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15247   shlibpath_var=LD_LIBRARY_PATH
15248   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15249   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15250   # the default ld.so.conf also contains /usr/contrib/lib and
15251   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15252   # libtool to hard-code these into programs
15253   ;;
15254
15255 cygwin* | mingw* | pw32* | cegcc*)
15256   version_type=windows
15257   shrext_cmds=.dll
15258   need_version=no
15259   need_lib_prefix=no
15260
15261   case $GCC,$cc_basename in
15262   yes,*)
15263     # gcc
15264     library_names_spec='$libname.dll.a'
15265     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15266     postinstall_cmds='base_file=`basename \$file`~
15267       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15268       dldir=$destdir/`dirname \$dlpath`~
15269       test -d \$dldir || mkdir -p \$dldir~
15270       $install_prog $dir/$dlname \$dldir/$dlname~
15271       chmod a+x \$dldir/$dlname~
15272       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15273         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15274       fi'
15275     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15276       dlpath=$dir/\$dldll~
15277        $RM \$dlpath'
15278     shlibpath_overrides_runpath=yes
15279
15280     case $host_os in
15281     cygwin*)
15282       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15283       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15284
15285       ;;
15286     mingw* | cegcc*)
15287       # MinGW DLLs use traditional 'lib' prefix
15288       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15289       ;;
15290     pw32*)
15291       # pw32 DLLs use 'pw' prefix rather than 'lib'
15292       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15293       ;;
15294     esac
15295     dynamic_linker='Win32 ld.exe'
15296     ;;
15297
15298   *,cl*)
15299     # Native MSVC
15300     libname_spec='$name'
15301     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15302     library_names_spec='$libname.dll.lib'
15303
15304     case $build_os in
15305     mingw*)
15306       sys_lib_search_path_spec=
15307       lt_save_ifs=$IFS
15308       IFS=';'
15309       for lt_path in $LIB
15310       do
15311         IFS=$lt_save_ifs
15312         # Let DOS variable expansion print the short 8.3 style file name.
15313         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15314         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15315       done
15316       IFS=$lt_save_ifs
15317       # Convert to MSYS style.
15318       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15319       ;;
15320     cygwin*)
15321       # Convert to unix form, then to dos form, then back to unix form
15322       # but this time dos style (no spaces!) so that the unix form looks
15323       # like /cygdrive/c/PROGRA~1:/cygdr...
15324       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15325       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15326       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15327       ;;
15328     *)
15329       sys_lib_search_path_spec=$LIB
15330       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15331         # It is most probably a Windows format PATH.
15332         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15333       else
15334         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15335       fi
15336       # FIXME: find the short name or the path components, as spaces are
15337       # common. (e.g. "Program Files" -> "PROGRA~1")
15338       ;;
15339     esac
15340
15341     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15342     postinstall_cmds='base_file=`basename \$file`~
15343       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15344       dldir=$destdir/`dirname \$dlpath`~
15345       test -d \$dldir || mkdir -p \$dldir~
15346       $install_prog $dir/$dlname \$dldir/$dlname'
15347     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15348       dlpath=$dir/\$dldll~
15349        $RM \$dlpath'
15350     shlibpath_overrides_runpath=yes
15351     dynamic_linker='Win32 link.exe'
15352     ;;
15353
15354   *)
15355     # Assume MSVC wrapper
15356     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15357     dynamic_linker='Win32 ld.exe'
15358     ;;
15359   esac
15360   # FIXME: first we should search . and the directory the executable is in
15361   shlibpath_var=PATH
15362   ;;
15363
15364 darwin* | rhapsody*)
15365   dynamic_linker="$host_os dyld"
15366   version_type=darwin
15367   need_lib_prefix=no
15368   need_version=no
15369   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15370   soname_spec='$libname$release$major$shared_ext'
15371   shlibpath_overrides_runpath=yes
15372   shlibpath_var=DYLD_LIBRARY_PATH
15373   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15374
15375   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15376   ;;
15377
15378 dgux*)
15379   version_type=linux # correct to gnu/linux during the next big refactor
15380   need_lib_prefix=no
15381   need_version=no
15382   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15383   soname_spec='$libname$release$shared_ext$major'
15384   shlibpath_var=LD_LIBRARY_PATH
15385   ;;
15386
15387 freebsd* | dragonfly*)
15388   # DragonFly does not have aout.  When/if they implement a new
15389   # versioning mechanism, adjust this.
15390   if test -x /usr/bin/objformat; then
15391     objformat=`/usr/bin/objformat`
15392   else
15393     case $host_os in
15394     freebsd[23].*) objformat=aout ;;
15395     *) objformat=elf ;;
15396     esac
15397   fi
15398   version_type=freebsd-$objformat
15399   case $version_type in
15400     freebsd-elf*)
15401       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15402       soname_spec='$libname$release$shared_ext$major'
15403       need_version=no
15404       need_lib_prefix=no
15405       ;;
15406     freebsd-*)
15407       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15408       need_version=yes
15409       ;;
15410   esac
15411   shlibpath_var=LD_LIBRARY_PATH
15412   case $host_os in
15413   freebsd2.*)
15414     shlibpath_overrides_runpath=yes
15415     ;;
15416   freebsd3.[01]* | freebsdelf3.[01]*)
15417     shlibpath_overrides_runpath=yes
15418     hardcode_into_libs=yes
15419     ;;
15420   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15421   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15422     shlibpath_overrides_runpath=no
15423     hardcode_into_libs=yes
15424     ;;
15425   *) # from 4.6 on, and DragonFly
15426     shlibpath_overrides_runpath=yes
15427     hardcode_into_libs=yes
15428     ;;
15429   esac
15430   ;;
15431
15432 haiku*)
15433   version_type=linux # correct to gnu/linux during the next big refactor
15434   need_lib_prefix=no
15435   need_version=no
15436   dynamic_linker="$host_os runtime_loader"
15437   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15438   soname_spec='$libname$release$shared_ext$major'
15439   shlibpath_var=LIBRARY_PATH
15440   shlibpath_overrides_runpath=no
15441   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15442   hardcode_into_libs=yes
15443   ;;
15444
15445 hpux9* | hpux10* | hpux11*)
15446   # Give a soname corresponding to the major version so that dld.sl refuses to
15447   # link against other versions.
15448   version_type=sunos
15449   need_lib_prefix=no
15450   need_version=no
15451   case $host_cpu in
15452   ia64*)
15453     shrext_cmds='.so'
15454     hardcode_into_libs=yes
15455     dynamic_linker="$host_os dld.so"
15456     shlibpath_var=LD_LIBRARY_PATH
15457     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15458     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15459     soname_spec='$libname$release$shared_ext$major'
15460     if test 32 = "$HPUX_IA64_MODE"; then
15461       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15462       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15463     else
15464       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15465       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15466     fi
15467     ;;
15468   hppa*64*)
15469     shrext_cmds='.sl'
15470     hardcode_into_libs=yes
15471     dynamic_linker="$host_os dld.sl"
15472     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15473     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15474     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15475     soname_spec='$libname$release$shared_ext$major'
15476     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15477     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15478     ;;
15479   *)
15480     shrext_cmds='.sl'
15481     dynamic_linker="$host_os dld.sl"
15482     shlibpath_var=SHLIB_PATH
15483     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15484     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15485     soname_spec='$libname$release$shared_ext$major'
15486     ;;
15487   esac
15488   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15489   postinstall_cmds='chmod 555 $lib'
15490   # or fails outright, so override atomically:
15491   install_override_mode=555
15492   ;;
15493
15494 interix[3-9]*)
15495   version_type=linux # correct to gnu/linux during the next big refactor
15496   need_lib_prefix=no
15497   need_version=no
15498   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15499   soname_spec='$libname$release$shared_ext$major'
15500   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15501   shlibpath_var=LD_LIBRARY_PATH
15502   shlibpath_overrides_runpath=no
15503   hardcode_into_libs=yes
15504   ;;
15505
15506 irix5* | irix6* | nonstopux*)
15507   case $host_os in
15508     nonstopux*) version_type=nonstopux ;;
15509     *)
15510         if test yes = "$lt_cv_prog_gnu_ld"; then
15511                 version_type=linux # correct to gnu/linux during the next big refactor
15512         else
15513                 version_type=irix
15514         fi ;;
15515   esac
15516   need_lib_prefix=no
15517   need_version=no
15518   soname_spec='$libname$release$shared_ext$major'
15519   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15520   case $host_os in
15521   irix5* | nonstopux*)
15522     libsuff= shlibsuff=
15523     ;;
15524   *)
15525     case $LD in # libtool.m4 will add one of these switches to LD
15526     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15527       libsuff= shlibsuff= libmagic=32-bit;;
15528     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15529       libsuff=32 shlibsuff=N32 libmagic=N32;;
15530     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15531       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15532     *) libsuff= shlibsuff= libmagic=never-match;;
15533     esac
15534     ;;
15535   esac
15536   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15537   shlibpath_overrides_runpath=no
15538   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15539   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15540   hardcode_into_libs=yes
15541   ;;
15542
15543 # No shared lib support for Linux oldld, aout, or coff.
15544 linux*oldld* | linux*aout* | linux*coff*)
15545   dynamic_linker=no
15546   ;;
15547
15548 linux*android*)
15549   version_type=none # Android doesn't support versioned libraries.
15550   need_lib_prefix=no
15551   need_version=no
15552   library_names_spec='$libname$release$shared_ext'
15553   soname_spec='$libname$release$shared_ext'
15554   finish_cmds=
15555   shlibpath_var=LD_LIBRARY_PATH
15556   shlibpath_overrides_runpath=yes
15557
15558   # This implies no fast_install, which is unacceptable.
15559   # Some rework will be needed to allow for fast_install
15560   # before this can be enabled.
15561   hardcode_into_libs=yes
15562
15563   dynamic_linker='Android linker'
15564   # Don't embed -rpath directories since the linker doesn't support them.
15565   hardcode_libdir_flag_spec_CXX='-L$libdir'
15566   ;;
15567
15568 # This must be glibc/ELF.
15569 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15570   version_type=linux # correct to gnu/linux during the next big refactor
15571   need_lib_prefix=no
15572   need_version=no
15573   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15574   soname_spec='$libname$release$shared_ext$major'
15575   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15576   shlibpath_var=LD_LIBRARY_PATH
15577   shlibpath_overrides_runpath=no
15578
15579   # Some binutils ld are patched to set DT_RUNPATH
15580   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15581   $as_echo_n "(cached) " >&6
15582 else
15583   lt_cv_shlibpath_overrides_runpath=no
15584     save_LDFLAGS=$LDFLAGS
15585     save_libdir=$libdir
15586     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15587          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15588     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h.  */
15590
15591 int
15592 main ()
15593 {
15594
15595   ;
15596   return 0;
15597 }
15598 _ACEOF
15599 if ac_fn_cxx_try_link "$LINENO"; then :
15600   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15601   lt_cv_shlibpath_overrides_runpath=yes
15602 fi
15603 fi
15604 rm -f core conftest.err conftest.$ac_objext \
15605     conftest$ac_exeext conftest.$ac_ext
15606     LDFLAGS=$save_LDFLAGS
15607     libdir=$save_libdir
15608
15609 fi
15610
15611   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15612
15613   # This implies no fast_install, which is unacceptable.
15614   # Some rework will be needed to allow for fast_install
15615   # before this can be enabled.
15616   hardcode_into_libs=yes
15617
15618   # Ideally, we could use ldconfig to report *all* directores which are
15619   # searched for libraries, however this is still not possible.  Aside from not
15620   # being certain /sbin/ldconfig is available, command
15621   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15622   # even though it is searched at run-time.  Try to do the best guess by
15623   # appending ld.so.conf contents (and includes) to the search path.
15624   if test -f /etc/ld.so.conf; then
15625     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' ' '`
15626     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15627   fi
15628
15629   # We used to test for /lib/ld.so.1 and disable shared libraries on
15630   # powerpc, because MkLinux only supported shared libraries with the
15631   # GNU dynamic linker.  Since this was broken with cross compilers,
15632   # most powerpc-linux boxes support dynamic linking these days and
15633   # people can always --disable-shared, the test was removed, and we
15634   # assume the GNU/Linux dynamic linker is in use.
15635   dynamic_linker='GNU/Linux ld.so'
15636   ;;
15637
15638 netbsd*)
15639   version_type=sunos
15640   need_lib_prefix=no
15641   need_version=no
15642   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15643     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15644     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15645     dynamic_linker='NetBSD (a.out) ld.so'
15646   else
15647     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15648     soname_spec='$libname$release$shared_ext$major'
15649     dynamic_linker='NetBSD ld.elf_so'
15650   fi
15651   shlibpath_var=LD_LIBRARY_PATH
15652   shlibpath_overrides_runpath=yes
15653   hardcode_into_libs=yes
15654   ;;
15655
15656 newsos6)
15657   version_type=linux # correct to gnu/linux during the next big refactor
15658   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15659   shlibpath_var=LD_LIBRARY_PATH
15660   shlibpath_overrides_runpath=yes
15661   ;;
15662
15663 *nto* | *qnx*)
15664   version_type=qnx
15665   need_lib_prefix=no
15666   need_version=no
15667   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15668   soname_spec='$libname$release$shared_ext$major'
15669   shlibpath_var=LD_LIBRARY_PATH
15670   shlibpath_overrides_runpath=no
15671   hardcode_into_libs=yes
15672   dynamic_linker='ldqnx.so'
15673   ;;
15674
15675 openbsd* | bitrig*)
15676   version_type=sunos
15677   sys_lib_dlsearch_path_spec=/usr/lib
15678   need_lib_prefix=no
15679   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15680     need_version=no
15681   else
15682     need_version=yes
15683   fi
15684   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15685   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15686   shlibpath_var=LD_LIBRARY_PATH
15687   shlibpath_overrides_runpath=yes
15688   ;;
15689
15690 os2*)
15691   libname_spec='$name'
15692   version_type=windows
15693   shrext_cmds=.dll
15694   need_version=no
15695   need_lib_prefix=no
15696   # OS/2 can only load a DLL with a base name of 8 characters or less.
15697   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15698     v=$($ECHO $release$versuffix | tr -d .-);
15699     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15700     $ECHO $n$v`$shared_ext'
15701   library_names_spec='${libname}_dll.$libext'
15702   dynamic_linker='OS/2 ld.exe'
15703   shlibpath_var=BEGINLIBPATH
15704   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15705   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15706   postinstall_cmds='base_file=`basename \$file`~
15707     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15708     dldir=$destdir/`dirname \$dlpath`~
15709     test -d \$dldir || mkdir -p \$dldir~
15710     $install_prog $dir/$dlname \$dldir/$dlname~
15711     chmod a+x \$dldir/$dlname~
15712     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15713       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15714     fi'
15715   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15716     dlpath=$dir/\$dldll~
15717     $RM \$dlpath'
15718   ;;
15719
15720 osf3* | osf4* | osf5*)
15721   version_type=osf
15722   need_lib_prefix=no
15723   need_version=no
15724   soname_spec='$libname$release$shared_ext$major'
15725   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15726   shlibpath_var=LD_LIBRARY_PATH
15727   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15728   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15729   ;;
15730
15731 rdos*)
15732   dynamic_linker=no
15733   ;;
15734
15735 solaris*)
15736   version_type=linux # correct to gnu/linux during the next big refactor
15737   need_lib_prefix=no
15738   need_version=no
15739   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15740   soname_spec='$libname$release$shared_ext$major'
15741   shlibpath_var=LD_LIBRARY_PATH
15742   shlibpath_overrides_runpath=yes
15743   hardcode_into_libs=yes
15744   # ldd complains unless libraries are executable
15745   postinstall_cmds='chmod +x $lib'
15746   ;;
15747
15748 sunos4*)
15749   version_type=sunos
15750   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15751   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15752   shlibpath_var=LD_LIBRARY_PATH
15753   shlibpath_overrides_runpath=yes
15754   if test yes = "$with_gnu_ld"; then
15755     need_lib_prefix=no
15756   fi
15757   need_version=yes
15758   ;;
15759
15760 sysv4 | sysv4.3*)
15761   version_type=linux # correct to gnu/linux during the next big refactor
15762   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15763   soname_spec='$libname$release$shared_ext$major'
15764   shlibpath_var=LD_LIBRARY_PATH
15765   case $host_vendor in
15766     sni)
15767       shlibpath_overrides_runpath=no
15768       need_lib_prefix=no
15769       runpath_var=LD_RUN_PATH
15770       ;;
15771     siemens)
15772       need_lib_prefix=no
15773       ;;
15774     motorola)
15775       need_lib_prefix=no
15776       need_version=no
15777       shlibpath_overrides_runpath=no
15778       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15779       ;;
15780   esac
15781   ;;
15782
15783 sysv4*MP*)
15784   if test -d /usr/nec; then
15785     version_type=linux # correct to gnu/linux during the next big refactor
15786     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15787     soname_spec='$libname$shared_ext.$major'
15788     shlibpath_var=LD_LIBRARY_PATH
15789   fi
15790   ;;
15791
15792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15793   version_type=sco
15794   need_lib_prefix=no
15795   need_version=no
15796   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15797   soname_spec='$libname$release$shared_ext$major'
15798   shlibpath_var=LD_LIBRARY_PATH
15799   shlibpath_overrides_runpath=yes
15800   hardcode_into_libs=yes
15801   if test yes = "$with_gnu_ld"; then
15802     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15803   else
15804     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15805     case $host_os in
15806       sco3.2v5*)
15807         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15808         ;;
15809     esac
15810   fi
15811   sys_lib_dlsearch_path_spec='/usr/lib'
15812   ;;
15813
15814 tpf*)
15815   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15816   version_type=linux # correct to gnu/linux during the next big refactor
15817   need_lib_prefix=no
15818   need_version=no
15819   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15820   shlibpath_var=LD_LIBRARY_PATH
15821   shlibpath_overrides_runpath=no
15822   hardcode_into_libs=yes
15823   ;;
15824
15825 uts4*)
15826   version_type=linux # correct to gnu/linux during the next big refactor
15827   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15828   soname_spec='$libname$release$shared_ext$major'
15829   shlibpath_var=LD_LIBRARY_PATH
15830   ;;
15831
15832 *)
15833   dynamic_linker=no
15834   ;;
15835 esac
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15837 $as_echo "$dynamic_linker" >&6; }
15838 test no = "$dynamic_linker" && can_build_shared=no
15839
15840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15841 if test yes = "$GCC"; then
15842   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15843 fi
15844
15845 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15846   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15847 fi
15848
15849 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15850   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15851 fi
15852
15853 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15854 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15855
15856 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15857 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15858
15859 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15860 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15902 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15903 hardcode_action_CXX=
15904 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15905    test -n "$runpath_var_CXX" ||
15906    test yes = "$hardcode_automatic_CXX"; then
15907
15908   # We can hardcode non-existent directories.
15909   if test no != "$hardcode_direct_CXX" &&
15910      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15911      # have to relink, otherwise we might link with an installed library
15912      # when we should be linking with a yet-to-be-installed one
15913      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15914      test no != "$hardcode_minus_L_CXX"; then
15915     # Linking always hardcodes the temporary library directory.
15916     hardcode_action_CXX=relink
15917   else
15918     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15919     hardcode_action_CXX=immediate
15920   fi
15921 else
15922   # We cannot hardcode anything, or else we can only hardcode existing
15923   # directories.
15924   hardcode_action_CXX=unsupported
15925 fi
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15927 $as_echo "$hardcode_action_CXX" >&6; }
15928
15929 if test relink = "$hardcode_action_CXX" ||
15930    test yes = "$inherit_rpath_CXX"; then
15931   # Fast installation is not supported
15932   enable_fast_install=no
15933 elif test yes = "$shlibpath_overrides_runpath" ||
15934      test no = "$enable_shared"; then
15935   # Fast installation is not necessary
15936   enable_fast_install=needless
15937 fi
15938
15939
15940
15941
15942
15943
15944
15945   fi # test -n "$compiler"
15946
15947   CC=$lt_save_CC
15948   CFLAGS=$lt_save_CFLAGS
15949   LDCXX=$LD
15950   LD=$lt_save_LD
15951   GCC=$lt_save_GCC
15952   with_gnu_ld=$lt_save_with_gnu_ld
15953   lt_cv_path_LDCXX=$lt_cv_path_LD
15954   lt_cv_path_LD=$lt_save_path_LD
15955   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15956   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15957 fi # test yes != "$_lt_caught_CXX_error"
15958
15959 ac_ext=c
15960 ac_cpp='$CPP $CPPFLAGS'
15961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979         ac_config_commands="$ac_config_commands libtool"
15980
15981
15982
15983
15984 # Only expand once:
15985
15986
15987
15988 ac_config_headers="$ac_config_headers config.h src/include/fst/config.h"
15989
15990
15991 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"
15992
15993
15994 ac_ext=cpp
15995 ac_cpp='$CXXCPP $CPPFLAGS'
15996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15999
16000
16001 # Check whether --enable-compact-fsts was given.
16002 if test "${enable_compact_fsts+set}" = set; then :
16003   enableval=$enable_compact_fsts;
16004 else
16005   enable_compact_fsts=no
16006 fi
16007
16008  if test "x$enable_compact_fsts" != xno; then
16009   HAVE_COMPACT_TRUE=
16010   HAVE_COMPACT_FALSE='#'
16011 else
16012   HAVE_COMPACT_TRUE='#'
16013   HAVE_COMPACT_FALSE=
16014 fi
16015
16016
16017 # Check whether --enable-compress was given.
16018 if test "${enable_compress+set}" = set; then :
16019   enableval=$enable_compress;
16020 else
16021   enable_compress=no
16022 fi
16023
16024  if test "x$enable_compress" != xno; then
16025   HAVE_COMPRESS_TRUE=
16026   HAVE_COMPRESS_FALSE='#'
16027 else
16028   HAVE_COMPRESS_TRUE='#'
16029   HAVE_COMPRESS_FALSE=
16030 fi
16031
16032
16033 # Check whether --enable-const-fsts was given.
16034 if test "${enable_const_fsts+set}" = set; then :
16035   enableval=$enable_const_fsts;
16036 else
16037   enable_const_fsts=no
16038 fi
16039
16040  if test "x$enable_const_fsts" != xno; then
16041   HAVE_CONST_TRUE=
16042   HAVE_CONST_FALSE='#'
16043 else
16044   HAVE_CONST_TRUE='#'
16045   HAVE_CONST_FALSE=
16046 fi
16047
16048
16049 # Check whether --enable-far was given.
16050 if test "${enable_far+set}" = set; then :
16051   enableval=$enable_far;
16052 else
16053   enable_far=no
16054 fi
16055
16056  if test "x$enable_far" != xno; then
16057   HAVE_FAR_TRUE=
16058   HAVE_FAR_FALSE='#'
16059 else
16060   HAVE_FAR_TRUE='#'
16061   HAVE_FAR_FALSE=
16062 fi
16063
16064
16065 # Check whether --enable-linear-fsts was given.
16066 if test "${enable_linear_fsts+set}" = set; then :
16067   enableval=$enable_linear_fsts;
16068 else
16069   enable_linear_fsts=no
16070 fi
16071
16072  if test "x$enable_linear_fsts" != xno; then
16073   HAVE_LINEAR_TRUE=
16074   HAVE_LINEAR_FALSE='#'
16075 else
16076   HAVE_LINEAR_TRUE='#'
16077   HAVE_LINEAR_FALSE=
16078 fi
16079
16080
16081 # Check whether --enable-lookahead-fsts was given.
16082 if test "${enable_lookahead_fsts+set}" = set; then :
16083   enableval=$enable_lookahead_fsts;
16084 else
16085   enable_lookahead_fsts=no
16086 fi
16087
16088  if test "x$enable_lookahead_fsts" != xno; then
16089   HAVE_LOOKAHEAD_TRUE=
16090   HAVE_LOOKAHEAD_FALSE='#'
16091 else
16092   HAVE_LOOKAHEAD_TRUE='#'
16093   HAVE_LOOKAHEAD_FALSE=
16094 fi
16095
16096
16097 # Check whether --enable-mpdt was given.
16098 if test "${enable_mpdt+set}" = set; then :
16099   enableval=$enable_mpdt;
16100 else
16101   enable_mpdt=no
16102 fi
16103
16104  if test "x$enable_mpdt" != xno; then
16105   HAVE_MPDT_TRUE=
16106   HAVE_MPDT_FALSE='#'
16107 else
16108   HAVE_MPDT_TRUE='#'
16109   HAVE_MPDT_FALSE=
16110 fi
16111
16112
16113 # Check whether --enable-ngram-fsts was given.
16114 if test "${enable_ngram_fsts+set}" = set; then :
16115   enableval=$enable_ngram_fsts;
16116 else
16117   enable_ngram_fsts=no
16118 fi
16119
16120  if test "x$enable_ngram_fsts" != xno; then
16121   HAVE_NGRAM_TRUE=
16122   HAVE_NGRAM_FALSE='#'
16123 else
16124   HAVE_NGRAM_TRUE='#'
16125   HAVE_NGRAM_FALSE=
16126 fi
16127
16128
16129 # Check whether --enable-pdt was given.
16130 if test "${enable_pdt+set}" = set; then :
16131   enableval=$enable_pdt;
16132 else
16133   enable_pdt=no
16134 fi
16135
16136  if test "x$enable_pdt" != xno; then
16137   HAVE_PDT_TRUE=
16138   HAVE_PDT_FALSE='#'
16139 else
16140   HAVE_PDT_TRUE='#'
16141   HAVE_PDT_FALSE=
16142 fi
16143
16144
16145 # Check whether --enable-python was given.
16146 if test "${enable_python+set}" = set; then :
16147   enableval=$enable_python;
16148 else
16149   enable_python=no
16150 fi
16151
16152  if test "x$enable_python" != xno; then
16153   HAVE_PYTHON_TRUE=
16154   HAVE_PYTHON_FALSE='#'
16155 else
16156   HAVE_PYTHON_TRUE='#'
16157   HAVE_PYTHON_FALSE=
16158 fi
16159
16160 if test "x$enable_python" != xno; then
16161
16162
16163
16164
16165
16166
16167         if test -n "$PYTHON"; then
16168       # If the user set $PYTHON, use it and don't search something else.
16169       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
16170 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
16171       prog="import sys
16172 # split strings by '.' and convert to numeric.  Append some zeros
16173 # because we need at least 4 digits for the hex conversion.
16174 # map returns an iterator in Python 3.0 and a list in 2.x
16175 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16176 minverhex = 0
16177 # xrange is not present in Python 3.0 and range returns an iterator
16178 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16179 sys.exit(sys.hexversion < minverhex)"
16180   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
16181    ($PYTHON -c "$prog") >&5 2>&5
16182    ac_status=$?
16183    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184    (exit $ac_status); }; then :
16185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16186 $as_echo "yes" >&6; }
16187 else
16188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189 $as_echo "no" >&6; }
16190                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
16191 fi
16192       am_display_PYTHON=$PYTHON
16193     else
16194       # Otherwise, try each interpreter until we find one that satisfies
16195       # VERSION.
16196       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
16197 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
16198 if ${am_cv_pathless_PYTHON+:} false; then :
16199   $as_echo_n "(cached) " >&6
16200 else
16201
16202         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
16203           test "$am_cv_pathless_PYTHON" = none && break
16204           prog="import sys
16205 # split strings by '.' and convert to numeric.  Append some zeros
16206 # because we need at least 4 digits for the hex conversion.
16207 # map returns an iterator in Python 3.0 and a list in 2.x
16208 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16209 minverhex = 0
16210 # xrange is not present in Python 3.0 and range returns an iterator
16211 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16212 sys.exit(sys.hexversion < minverhex)"
16213   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
16214    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
16215    ac_status=$?
16216    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217    (exit $ac_status); }; then :
16218   break
16219 fi
16220         done
16221 fi
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
16223 $as_echo "$am_cv_pathless_PYTHON" >&6; }
16224       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
16225       if test "$am_cv_pathless_PYTHON" = none; then
16226         PYTHON=:
16227       else
16228         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16229 set dummy $am_cv_pathless_PYTHON; ac_word=$2
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16231 $as_echo_n "checking for $ac_word... " >&6; }
16232 if ${ac_cv_path_PYTHON+:} false; then :
16233   $as_echo_n "(cached) " >&6
16234 else
16235   case $PYTHON in
16236   [\\/]* | ?:[\\/]*)
16237   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16238   ;;
16239   *)
16240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16241 for as_dir in $PATH
16242 do
16243   IFS=$as_save_IFS
16244   test -z "$as_dir" && as_dir=.
16245     for ac_exec_ext in '' $ac_executable_extensions; do
16246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16247     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16249     break 2
16250   fi
16251 done
16252   done
16253 IFS=$as_save_IFS
16254
16255   ;;
16256 esac
16257 fi
16258 PYTHON=$ac_cv_path_PYTHON
16259 if test -n "$PYTHON"; then
16260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16261 $as_echo "$PYTHON" >&6; }
16262 else
16263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16264 $as_echo "no" >&6; }
16265 fi
16266
16267
16268       fi
16269       am_display_PYTHON=$am_cv_pathless_PYTHON
16270     fi
16271
16272
16273   if test "$PYTHON" = :; then
16274       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
16275   else
16276
16277
16278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16279 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16280 if ${am_cv_python_version+:} false; then :
16281   $as_echo_n "(cached) " >&6
16282 else
16283   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16284 fi
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16286 $as_echo "$am_cv_python_version" >&6; }
16287   PYTHON_VERSION=$am_cv_python_version
16288
16289
16290
16291   PYTHON_PREFIX='${prefix}'
16292
16293   PYTHON_EXEC_PREFIX='${exec_prefix}'
16294
16295
16296
16297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16298 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16299 if ${am_cv_python_platform+:} false; then :
16300   $as_echo_n "(cached) " >&6
16301 else
16302   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16303 fi
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16305 $as_echo "$am_cv_python_platform" >&6; }
16306   PYTHON_PLATFORM=$am_cv_python_platform
16307
16308
16309   # Just factor out some code duplication.
16310   am_python_setup_sysconfig="\
16311 import sys
16312 # Prefer sysconfig over distutils.sysconfig, for better compatibility
16313 # with python 3.x.  See automake bug#10227.
16314 try:
16315     import sysconfig
16316 except ImportError:
16317     can_use_sysconfig = 0
16318 else:
16319     can_use_sysconfig = 1
16320 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
16321 # <https://github.com/pypa/virtualenv/issues/118>
16322 try:
16323     from platform import python_implementation
16324     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
16325         can_use_sysconfig = 0
16326 except ImportError:
16327     pass"
16328
16329
16330             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16331 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16332 if ${am_cv_python_pythondir+:} false; then :
16333   $as_echo_n "(cached) " >&6
16334 else
16335   if test "x$prefix" = xNONE
16336      then
16337        am_py_prefix=$ac_default_prefix
16338      else
16339        am_py_prefix=$prefix
16340      fi
16341      am_cv_python_pythondir=`$PYTHON -c "
16342 $am_python_setup_sysconfig
16343 if can_use_sysconfig:
16344     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
16345 else:
16346     from distutils import sysconfig
16347     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
16348 sys.stdout.write(sitedir)"`
16349      case $am_cv_python_pythondir in
16350      $am_py_prefix*)
16351        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16352        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16353        ;;
16354      *)
16355        case $am_py_prefix in
16356          /usr|/System*) ;;
16357          *)
16358           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
16359           ;;
16360        esac
16361        ;;
16362      esac
16363
16364 fi
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16366 $as_echo "$am_cv_python_pythondir" >&6; }
16367   pythondir=$am_cv_python_pythondir
16368
16369
16370
16371   pkgpythondir=\${pythondir}/$PACKAGE
16372
16373
16374         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16375 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16376 if ${am_cv_python_pyexecdir+:} false; then :
16377   $as_echo_n "(cached) " >&6
16378 else
16379   if test "x$exec_prefix" = xNONE
16380      then
16381        am_py_exec_prefix=$am_py_prefix
16382      else
16383        am_py_exec_prefix=$exec_prefix
16384      fi
16385      am_cv_python_pyexecdir=`$PYTHON -c "
16386 $am_python_setup_sysconfig
16387 if can_use_sysconfig:
16388     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
16389 else:
16390     from distutils import sysconfig
16391     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
16392 sys.stdout.write(sitedir)"`
16393      case $am_cv_python_pyexecdir in
16394      $am_py_exec_prefix*)
16395        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16396        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16397        ;;
16398      *)
16399        case $am_py_exec_prefix in
16400          /usr|/System*) ;;
16401          *)
16402            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
16403            ;;
16404        esac
16405        ;;
16406      esac
16407
16408 fi
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16410 $as_echo "$am_cv_python_pyexecdir" >&6; }
16411   pyexecdir=$am_cv_python_pyexecdir
16412
16413
16414
16415   pkgpyexecdir=\${pyexecdir}/$PACKAGE
16416
16417
16418
16419   fi
16420
16421
16422
16423         #
16424         # Allow the use of a (user set) custom python version
16425         #
16426
16427
16428         # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16429 set dummy python$PYTHON_VERSION; ac_word=$2
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16431 $as_echo_n "checking for $ac_word... " >&6; }
16432 if ${ac_cv_path_PYTHON+:} false; then :
16433   $as_echo_n "(cached) " >&6
16434 else
16435   case $PYTHON in
16436   [\\/]* | ?:[\\/]*)
16437   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16438   ;;
16439   *)
16440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16441 for as_dir in $PATH
16442 do
16443   IFS=$as_save_IFS
16444   test -z "$as_dir" && as_dir=.
16445     for ac_exec_ext in '' $ac_executable_extensions; do
16446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16447     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16449     break 2
16450   fi
16451 done
16452   done
16453 IFS=$as_save_IFS
16454
16455   ;;
16456 esac
16457 fi
16458 PYTHON=$ac_cv_path_PYTHON
16459 if test -n "$PYTHON"; then
16460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16461 $as_echo "$PYTHON" >&6; }
16462 else
16463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16464 $as_echo "no" >&6; }
16465 fi
16466
16467
16468         if test -z "$PYTHON"; then
16469            as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16470            PYTHON_VERSION=""
16471         fi
16472
16473         #
16474         # Check for a version of Python >= 2.1.0
16475         #
16476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
16477 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
16478         ac_supports_python_ver=`$PYTHON -c "import sys; \
16479                 ver = sys.version.split ()[0]; \
16480                 print (ver >= '2.1.0')"`
16481         if test "$ac_supports_python_ver" != "True"; then
16482                 if test -z "$PYTHON_NOVERSIONCHECK"; then
16483                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484 $as_echo "no" >&6; }
16485                         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16487 as_fn_error $? "
16488 This version of the AC_PYTHON_DEVEL macro
16489 doesn't work properly with versions of Python before
16490 2.1.0. You may need to re-run configure, setting the
16491 variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
16492 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
16493 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
16494 to something else than an empty string.
16495
16496 See \`config.log' for more details" "$LINENO" 5; }
16497                 else
16498                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
16499 $as_echo "skip at user request" >&6; }
16500                 fi
16501         else
16502                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16503 $as_echo "yes" >&6; }
16504         fi
16505
16506         #
16507         # if the macro parameter ``version'' is set, honour it
16508         #
16509         if test -n ">= '2.7'"; then
16510                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
16511 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
16512                 ac_supports_python_ver=`$PYTHON -c "import sys; \
16513                         ver = sys.version.split ()[0]; \
16514                         print (ver >= '2.7')"`
16515                 if test "$ac_supports_python_ver" = "True"; then
16516                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16517 $as_echo "yes" >&6; }
16518                 else
16519                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16520 $as_echo "no" >&6; }
16521                         as_fn_error $? "this package requires Python >= '2.7'.
16522 If you have it installed, but it isn't the default Python
16523 interpreter in your system path, please pass the PYTHON_VERSION
16524 variable to configure. See \`\`configure --help'' for reference.
16525 " "$LINENO" 5
16526                         PYTHON_VERSION=""
16527                 fi
16528         fi
16529
16530         #
16531         # Check if you have distutils, else fail
16532         #
16533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16534 $as_echo_n "checking for the distutils Python package... " >&6; }
16535         ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
16536         if test $? -eq 0; then
16537                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16538 $as_echo "yes" >&6; }
16539         else
16540                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16541 $as_echo "no" >&6; }
16542                 as_fn_error $? "cannot import Python module \"distutils\".
16543 Please check your Python installation. The error was:
16544 $ac_distutils_result" "$LINENO" 5
16545                 PYTHON_VERSION=""
16546         fi
16547
16548         #
16549         # Check for Python include path
16550         #
16551         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16552 $as_echo_n "checking for Python include path... " >&6; }
16553         if test -z "$PYTHON_CPPFLAGS"; then
16554                 python_path=`$PYTHON -c "import distutils.sysconfig; \
16555                         print (distutils.sysconfig.get_python_inc ());"`
16556                 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
16557                         print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
16558                 if test -n "${python_path}"; then
16559                         if test "${plat_python_path}" != "${python_path}"; then
16560                                 python_path="-I$python_path -I$plat_python_path"
16561                         else
16562                                 python_path="-I$python_path"
16563                         fi
16564                 fi
16565                 PYTHON_CPPFLAGS=$python_path
16566         fi
16567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16568 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16569
16570
16571         #
16572         # Check for Python library path
16573         #
16574         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16575 $as_echo_n "checking for Python library path... " >&6; }
16576         if test -z "$PYTHON_LIBS"; then
16577                 # (makes two attempts to ensure we've got a version number
16578                 # from the interpreter)
16579                 ac_python_version=`cat<<EOD | $PYTHON -
16580
16581 # join all versioning strings, on some systems
16582 # major/minor numbers could be in different list elements
16583 from distutils.sysconfig import *
16584 e = get_config_var('VERSION')
16585 if e is not None:
16586         print(e)
16587 EOD`
16588
16589                 if test -z "$ac_python_version"; then
16590                         if test -n "$PYTHON_VERSION"; then
16591                                 ac_python_version=$PYTHON_VERSION
16592                         else
16593                                 ac_python_version=`$PYTHON -c "import sys; \
16594                                         print (sys.version[:3])"`
16595                         fi
16596                 fi
16597
16598                 # Make the versioning information available to the compiler
16599
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_PYTHON "$ac_python_version"
16602 _ACEOF
16603
16604
16605                 # First, the library directory:
16606                 ac_python_libdir=`cat<<EOD | $PYTHON -
16607
16608 # There should be only one
16609 import distutils.sysconfig
16610 e = distutils.sysconfig.get_config_var('LIBDIR')
16611 if e is not None:
16612         print (e)
16613 EOD`
16614
16615                 # Now, for the library:
16616                 ac_python_library=`cat<<EOD | $PYTHON -
16617
16618 import distutils.sysconfig
16619 c = distutils.sysconfig.get_config_vars()
16620 if 'LDVERSION' in c:
16621         print ('python'+c['LDVERSION'])
16622 else:
16623         print ('python'+c['VERSION'])
16624 EOD`
16625
16626                 # This small piece shamelessly adapted from PostgreSQL python macro;
16627                 # credits goes to momjian, I think. I'd like to put the right name
16628                 # in the credits, if someone can point me in the right direction... ?
16629                 #
16630                 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
16631                 then
16632                         # use the official shared library
16633                         ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
16634                         PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
16635                 else
16636                         # old way: use libpython from python_configdir
16637                         ac_python_libdir=`$PYTHON -c \
16638                           "from distutils.sysconfig import get_python_lib as f; \
16639                           import os; \
16640                           print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
16641                         PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version"
16642                 fi
16643
16644                 if test -z "PYTHON_LIBS"; then
16645                         as_fn_error $? "
16646   Cannot determine location of your Python DSO. Please check it was installed with
16647   dynamic libraries enabled, or try setting PYTHON_LIBS by hand.
16648                         " "$LINENO" 5
16649                 fi
16650         fi
16651         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5
16652 $as_echo "$PYTHON_LIBS" >&6; }
16653
16654
16655         #
16656         # Check for site packages
16657         #
16658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16659 $as_echo_n "checking for Python site-packages path... " >&6; }
16660         if test -z "$PYTHON_SITE_PKG"; then
16661                 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16662                         print (distutils.sysconfig.get_python_lib(0,0));"`
16663         fi
16664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16665 $as_echo "$PYTHON_SITE_PKG" >&6; }
16666
16667
16668         #
16669         # libraries which must be linked in when embedding
16670         #
16671         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
16672 $as_echo_n "checking python extra libraries... " >&6; }
16673         if test -z "$PYTHON_EXTRA_LIBS"; then
16674            PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
16675                 conf = distutils.sysconfig.get_config_var; \
16676                 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
16677         fi
16678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
16679 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
16680
16681
16682         #
16683         # linking flags needed when embedding
16684         #
16685         { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
16686 $as_echo_n "checking python extra linking flags... " >&6; }
16687         if test -z "$PYTHON_EXTRA_LDFLAGS"; then
16688                 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
16689                         conf = distutils.sysconfig.get_config_var; \
16690                         print (conf('LINKFORSHARED'))"`
16691         fi
16692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
16693 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
16694
16695
16696         #
16697         # final check to see if everything compiles alright
16698         #
16699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16700 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16701         # save current global flags
16702         ac_save_LIBS="$LIBS"
16703         ac_save_LDFLAGS="$LDFLAGS"
16704         ac_save_CPPFLAGS="$CPPFLAGS"
16705         LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS $PYTHON_EXTRA_LIBS"
16706         LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS"
16707         CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
16708         ac_ext=c
16709 ac_cpp='$CPP $CPPFLAGS'
16710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16713
16714         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715 /* end confdefs.h.  */
16716
16717                 #include <Python.h>
16718 int
16719 main ()
16720 {
16721 Py_Initialize();
16722   ;
16723   return 0;
16724 }
16725
16726 _ACEOF
16727 if ac_fn_c_try_link "$LINENO"; then :
16728   pythonexists=yes
16729 else
16730   pythonexists=no
16731 fi
16732 rm -f core conftest.err conftest.$ac_objext \
16733     conftest$ac_exeext conftest.$ac_ext
16734         ac_ext=cpp
16735 ac_cpp='$CXXCPP $CPPFLAGS'
16736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16739
16740         # turn back to default flags
16741         CPPFLAGS="$ac_save_CPPFLAGS"
16742         LIBS="$ac_save_LIBS"
16743         LDFLAGS="$ac_save_LDFLAGS"
16744
16745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16746 $as_echo "$pythonexists" >&6; }
16747
16748         if test ! "x$pythonexists" = "xyes"; then
16749            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16751 as_fn_error $? "
16752   Could not link test program to Python. Maybe the main Python library has been
16753   installed in some non-standard library path. If so, pass it to configure,
16754   via the LIBS environment variable.
16755   Example: ./configure LIBS=\"-L/usr/non-standard-path/python/lib\"
16756   ============================================================================
16757    ERROR!
16758    You probably have to install the development version of the Python package
16759    for your distribution.  The exact name of this package varies among them.
16760   ============================================================================
16761
16762 See \`config.log' for more details" "$LINENO" 5; }
16763           PYTHON_VERSION=""
16764         fi
16765
16766         #
16767         # all done!
16768         #
16769
16770 fi
16771
16772 # Check whether --enable-special was given.
16773 if test "${enable_special+set}" = set; then :
16774   enableval=$enable_special;
16775 else
16776   enable_special=no
16777 fi
16778
16779  if test "x$enable_special" != xno; then
16780   HAVE_SPECIAL_TRUE=
16781   HAVE_SPECIAL_FALSE='#'
16782 else
16783   HAVE_SPECIAL_TRUE='#'
16784   HAVE_SPECIAL_FALSE=
16785 fi
16786
16787
16788 # --enable-bin enables script and bin "extensions".
16789 # Check whether --enable-bin was given.
16790 if test "${enable_bin+set}" = set; then :
16791   enableval=$enable_bin;
16792 else
16793   enable_bin=yes
16794 fi
16795
16796  if test "x$enable_bin" != xno; then
16797   HAVE_BIN_TRUE=
16798   HAVE_BIN_FALSE='#'
16799 else
16800   HAVE_BIN_TRUE='#'
16801   HAVE_BIN_FALSE=
16802 fi
16803
16804  if test "x$enable_bin" != xno; then
16805   HAVE_SCRIPT_TRUE=
16806   HAVE_SCRIPT_FALSE='#'
16807 else
16808   HAVE_SCRIPT_TRUE='#'
16809   HAVE_SCRIPT_FALSE=
16810 fi
16811
16812
16813 # --enable-fsts is an alias to enable FST SO extensions: compact, const,
16814 # linear, lookahead, and ngram.
16815 # Check whether --enable-fsts was given.
16816 if test "${enable_fsts+set}" = set; then :
16817   enableval=$enable_fsts;
16818 else
16819   enable_fsts=no
16820 fi
16821
16822  if test "x$enable_fsts" != xno; then
16823   HAVE_FSTS_TRUE=
16824   HAVE_FSTS_FALSE='#'
16825 else
16826   HAVE_FSTS_TRUE='#'
16827   HAVE_FSTS_FALSE=
16828 fi
16829
16830
16831 # --enable-grm is an alias to enable all dependencies of OpenGrm: far, mpdt,
16832 # and pdt.
16833 # Check whether --enable-grm was given.
16834 if test "${enable_grm+set}" = set; then :
16835   enableval=$enable_grm;
16836 else
16837   enable_grm=no
16838 fi
16839
16840  if test "x$enable_grm" != xno; then
16841   HAVE_GRM_TRUE=
16842   HAVE_GRM_FALSE='#'
16843 else
16844   HAVE_GRM_TRUE='#'
16845   HAVE_GRM_FALSE=
16846 fi
16847
16848
16849
16850 # Check whether --with-libfstdir was given.
16851 if test "${with_libfstdir+set}" = set; then :
16852   withval=$with_libfstdir;
16853 else
16854   with_libfstdir=${libdir}/fst
16855 fi
16856
16857
16858 libfstdir=$with_libfstdir
16859
16860
16861 # Flags may be changed after configuring, so this is checked again by
16862 # weight_test.cc.  The check here is to save time in the common case,
16863 # or when someone does not run `make check`.
16864 if test "$cross_compiling" = yes; then :
16865   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16867 as_fn_error $? "cannot run test program while cross compiling
16868 See \`config.log' for more details" "$LINENO" 5; }
16869 else
16870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h.  */
16872
16873                  #include <cstdio>
16874
16875                  template <typename T>
16876                  bool FloatEqIsReflexive(T m) {
16877                    volatile T x = 1.111;
16878                    x *= m;
16879
16880                    T y = 1.111;
16881                    y *= m;
16882
16883                    return x == y;
16884                  }
16885
16886 int
16887 main ()
16888 {
16889
16890                  volatile double test_value = 1.1;
16891                  if (!FloatEqIsReflexive(static_cast<float>(test_value))) {
16892                    printf("float FAIL\n");
16893                    return 1;
16894                  }
16895                  if (!FloatEqIsReflexive(test_value)) {
16896                    printf("double FAIL\n");
16897                    return 1;
16898                  }
16899
16900   ;
16901   return 0;
16902 }
16903 _ACEOF
16904 if ac_fn_cxx_try_run "$LINENO"; then :
16905   echo "Float equality is good"
16906 else
16907   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16909 as_fn_error $? "Test float equality failed! Compile with -msse -mfpmath=sse if using g++.
16910 See \`config.log' for more details" "$LINENO" 5; }
16911 fi
16912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16913   conftest.$ac_objext conftest.beam conftest.$ac_ext
16914 fi
16915
16916
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16918 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16919 if ${ac_cv_lib_dl_dlopen+:} false; then :
16920   $as_echo_n "(cached) " >&6
16921 else
16922   ac_check_lib_save_LIBS=$LIBS
16923 LIBS="-ldl  $LIBS"
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h.  */
16926
16927 /* Override any GCC internal prototype to avoid an error.
16928    Use char because int might match the return type of a GCC
16929    builtin and then its argument prototype would still apply.  */
16930 #ifdef __cplusplus
16931 extern "C"
16932 #endif
16933 char dlopen ();
16934 int
16935 main ()
16936 {
16937 return dlopen ();
16938   ;
16939   return 0;
16940 }
16941 _ACEOF
16942 if ac_fn_cxx_try_link "$LINENO"; then :
16943   ac_cv_lib_dl_dlopen=yes
16944 else
16945   ac_cv_lib_dl_dlopen=no
16946 fi
16947 rm -f core conftest.err conftest.$ac_objext \
16948     conftest$ac_exeext conftest.$ac_ext
16949 LIBS=$ac_check_lib_save_LIBS
16950 fi
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16952 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16953 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16954   DL_LIBS=-ldl
16955 fi
16956
16957
16958
16959 cat >confcache <<\_ACEOF
16960 # This file is a shell script that caches the results of configure
16961 # tests run on this system so they can be shared between configure
16962 # scripts and configure runs, see configure's option --config-cache.
16963 # It is not useful on other systems.  If it contains results you don't
16964 # want to keep, you may remove or edit it.
16965 #
16966 # config.status only pays attention to the cache file if you give it
16967 # the --recheck option to rerun configure.
16968 #
16969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16971 # following values.
16972
16973 _ACEOF
16974
16975 # The following way of writing the cache mishandles newlines in values,
16976 # but we know of no workaround that is simple, portable, and efficient.
16977 # So, we kill variables containing newlines.
16978 # Ultrix sh set writes to stderr and can't be redirected directly,
16979 # and sets the high bit in the cache file unless we assign to the vars.
16980 (
16981   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16982     eval ac_val=\$$ac_var
16983     case $ac_val in #(
16984     *${as_nl}*)
16985       case $ac_var in #(
16986       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16987 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16988       esac
16989       case $ac_var in #(
16990       _ | IFS | as_nl) ;; #(
16991       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16992       *) { eval $ac_var=; unset $ac_var;} ;;
16993       esac ;;
16994     esac
16995   done
16996
16997   (set) 2>&1 |
16998     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16999     *${as_nl}ac_space=\ *)
17000       # `set' does not quote correctly, so add quotes: double-quote
17001       # substitution turns \\\\ into \\, and sed turns \\ into \.
17002       sed -n \
17003         "s/'/'\\\\''/g;
17004           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17005       ;; #(
17006     *)
17007       # `set' quotes correctly as required by POSIX, so do not add quotes.
17008       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17009       ;;
17010     esac |
17011     sort
17012 ) |
17013   sed '
17014      /^ac_cv_env_/b end
17015      t clear
17016      :clear
17017      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17018      t end
17019      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17020      :end' >>confcache
17021 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17022   if test -w "$cache_file"; then
17023     if test "x$cache_file" != "x/dev/null"; then
17024       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17025 $as_echo "$as_me: updating cache $cache_file" >&6;}
17026       if test ! -f "$cache_file" || test -h "$cache_file"; then
17027         cat confcache >"$cache_file"
17028       else
17029         case $cache_file in #(
17030         */* | ?:*)
17031           mv -f confcache "$cache_file"$$ &&
17032           mv -f "$cache_file"$$ "$cache_file" ;; #(
17033         *)
17034           mv -f confcache "$cache_file" ;;
17035         esac
17036       fi
17037     fi
17038   else
17039     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17040 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17041   fi
17042 fi
17043 rm -f confcache
17044
17045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17046 # Let make expand exec_prefix.
17047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17048
17049 DEFS=-DHAVE_CONFIG_H
17050
17051 ac_libobjs=
17052 ac_ltlibobjs=
17053 U=
17054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17055   # 1. Remove the extension, and $U if already installed.
17056   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17057   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17058   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17059   #    will be set to the directory where LIBOBJS objects are built.
17060   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17061   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17062 done
17063 LIBOBJS=$ac_libobjs
17064
17065 LTLIBOBJS=$ac_ltlibobjs
17066
17067
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17069 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17070    if test -n "$am_sleep_pid"; then
17071      # Hide warnings about reused PIDs.
17072      wait $am_sleep_pid 2>/dev/null
17073    fi
17074    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17075 $as_echo "done" >&6; }
17076  if test -n "$EXEEXT"; then
17077   am__EXEEXT_TRUE=
17078   am__EXEEXT_FALSE='#'
17079 else
17080   am__EXEEXT_TRUE='#'
17081   am__EXEEXT_FALSE=
17082 fi
17083
17084 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17085   as_fn_error $? "conditional \"AMDEP\" was never defined.
17086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17087 fi
17088 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17089   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17091 fi
17092 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17093   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17095 fi
17096 if test -z "${HAVE_COMPACT_TRUE}" && test -z "${HAVE_COMPACT_FALSE}"; then
17097   as_fn_error $? "conditional \"HAVE_COMPACT\" was never defined.
17098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17099 fi
17100 if test -z "${HAVE_COMPRESS_TRUE}" && test -z "${HAVE_COMPRESS_FALSE}"; then
17101   as_fn_error $? "conditional \"HAVE_COMPRESS\" was never defined.
17102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17103 fi
17104 if test -z "${HAVE_CONST_TRUE}" && test -z "${HAVE_CONST_FALSE}"; then
17105   as_fn_error $? "conditional \"HAVE_CONST\" was never defined.
17106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17107 fi
17108 if test -z "${HAVE_FAR_TRUE}" && test -z "${HAVE_FAR_FALSE}"; then
17109   as_fn_error $? "conditional \"HAVE_FAR\" was never defined.
17110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17111 fi
17112 if test -z "${HAVE_LINEAR_TRUE}" && test -z "${HAVE_LINEAR_FALSE}"; then
17113   as_fn_error $? "conditional \"HAVE_LINEAR\" was never defined.
17114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17115 fi
17116 if test -z "${HAVE_LOOKAHEAD_TRUE}" && test -z "${HAVE_LOOKAHEAD_FALSE}"; then
17117   as_fn_error $? "conditional \"HAVE_LOOKAHEAD\" was never defined.
17118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17119 fi
17120 if test -z "${HAVE_MPDT_TRUE}" && test -z "${HAVE_MPDT_FALSE}"; then
17121   as_fn_error $? "conditional \"HAVE_MPDT\" was never defined.
17122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17123 fi
17124 if test -z "${HAVE_NGRAM_TRUE}" && test -z "${HAVE_NGRAM_FALSE}"; then
17125   as_fn_error $? "conditional \"HAVE_NGRAM\" was never defined.
17126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17127 fi
17128 if test -z "${HAVE_PDT_TRUE}" && test -z "${HAVE_PDT_FALSE}"; then
17129   as_fn_error $? "conditional \"HAVE_PDT\" was never defined.
17130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17131 fi
17132 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17133   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17135 fi
17136 if test -z "${HAVE_SPECIAL_TRUE}" && test -z "${HAVE_SPECIAL_FALSE}"; then
17137   as_fn_error $? "conditional \"HAVE_SPECIAL\" was never defined.
17138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17139 fi
17140 if test -z "${HAVE_BIN_TRUE}" && test -z "${HAVE_BIN_FALSE}"; then
17141   as_fn_error $? "conditional \"HAVE_BIN\" was never defined.
17142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17143 fi
17144 if test -z "${HAVE_SCRIPT_TRUE}" && test -z "${HAVE_SCRIPT_FALSE}"; then
17145   as_fn_error $? "conditional \"HAVE_SCRIPT\" was never defined.
17146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17147 fi
17148 if test -z "${HAVE_FSTS_TRUE}" && test -z "${HAVE_FSTS_FALSE}"; then
17149   as_fn_error $? "conditional \"HAVE_FSTS\" was never defined.
17150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17151 fi
17152 if test -z "${HAVE_GRM_TRUE}" && test -z "${HAVE_GRM_FALSE}"; then
17153   as_fn_error $? "conditional \"HAVE_GRM\" was never defined.
17154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17155 fi
17156
17157 : "${CONFIG_STATUS=./config.status}"
17158 ac_write_fail=0
17159 ac_clean_files_save=$ac_clean_files
17160 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17162 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17163 as_write_fail=0
17164 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17165 #! $SHELL
17166 # Generated by $as_me.
17167 # Run this file to recreate the current configuration.
17168 # Compiler output produced by configure, useful for debugging
17169 # configure, is in config.log if it exists.
17170
17171 debug=false
17172 ac_cs_recheck=false
17173 ac_cs_silent=false
17174
17175 SHELL=\${CONFIG_SHELL-$SHELL}
17176 export SHELL
17177 _ASEOF
17178 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17179 ## -------------------- ##
17180 ## M4sh Initialization. ##
17181 ## -------------------- ##
17182
17183 # Be more Bourne compatible
17184 DUALCASE=1; export DUALCASE # for MKS sh
17185 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17186   emulate sh
17187   NULLCMD=:
17188   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17189   # is contrary to our usage.  Disable this feature.
17190   alias -g '${1+"$@"}'='"$@"'
17191   setopt NO_GLOB_SUBST
17192 else
17193   case `(set -o) 2>/dev/null` in #(
17194   *posix*) :
17195     set -o posix ;; #(
17196   *) :
17197      ;;
17198 esac
17199 fi
17200
17201
17202 as_nl='
17203 '
17204 export as_nl
17205 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17206 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17209 # Prefer a ksh shell builtin over an external printf program on Solaris,
17210 # but without wasting forks for bash or zsh.
17211 if test -z "$BASH_VERSION$ZSH_VERSION" \
17212     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17213   as_echo='print -r --'
17214   as_echo_n='print -rn --'
17215 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17216   as_echo='printf %s\n'
17217   as_echo_n='printf %s'
17218 else
17219   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17220     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17221     as_echo_n='/usr/ucb/echo -n'
17222   else
17223     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17224     as_echo_n_body='eval
17225       arg=$1;
17226       case $arg in #(
17227       *"$as_nl"*)
17228         expr "X$arg" : "X\\(.*\\)$as_nl";
17229         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17230       esac;
17231       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17232     '
17233     export as_echo_n_body
17234     as_echo_n='sh -c $as_echo_n_body as_echo'
17235   fi
17236   export as_echo_body
17237   as_echo='sh -c $as_echo_body as_echo'
17238 fi
17239
17240 # The user is always right.
17241 if test "${PATH_SEPARATOR+set}" != set; then
17242   PATH_SEPARATOR=:
17243   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17244     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17245       PATH_SEPARATOR=';'
17246   }
17247 fi
17248
17249
17250 # IFS
17251 # We need space, tab and new line, in precisely that order.  Quoting is
17252 # there to prevent editors from complaining about space-tab.
17253 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17254 # splitting by setting IFS to empty value.)
17255 IFS=" ""        $as_nl"
17256
17257 # Find who we are.  Look in the path if we contain no directory separator.
17258 as_myself=
17259 case $0 in #((
17260   *[\\/]* ) as_myself=$0 ;;
17261   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17262 for as_dir in $PATH
17263 do
17264   IFS=$as_save_IFS
17265   test -z "$as_dir" && as_dir=.
17266     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17267   done
17268 IFS=$as_save_IFS
17269
17270      ;;
17271 esac
17272 # We did not find ourselves, most probably we were run as `sh COMMAND'
17273 # in which case we are not to be found in the path.
17274 if test "x$as_myself" = x; then
17275   as_myself=$0
17276 fi
17277 if test ! -f "$as_myself"; then
17278   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17279   exit 1
17280 fi
17281
17282 # Unset variables that we do not need and which cause bugs (e.g. in
17283 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17284 # suppresses any "Segmentation fault" message there.  '((' could
17285 # trigger a bug in pdksh 5.2.14.
17286 for as_var in BASH_ENV ENV MAIL MAILPATH
17287 do eval test x\${$as_var+set} = xset \
17288   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17289 done
17290 PS1='$ '
17291 PS2='> '
17292 PS4='+ '
17293
17294 # NLS nuisances.
17295 LC_ALL=C
17296 export LC_ALL
17297 LANGUAGE=C
17298 export LANGUAGE
17299
17300 # CDPATH.
17301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17302
17303
17304 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17305 # ----------------------------------------
17306 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17307 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17308 # script with STATUS, using 1 if that was 0.
17309 as_fn_error ()
17310 {
17311   as_status=$1; test $as_status -eq 0 && as_status=1
17312   if test "$4"; then
17313     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17314     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17315   fi
17316   $as_echo "$as_me: error: $2" >&2
17317   as_fn_exit $as_status
17318 } # as_fn_error
17319
17320
17321 # as_fn_set_status STATUS
17322 # -----------------------
17323 # Set $? to STATUS, without forking.
17324 as_fn_set_status ()
17325 {
17326   return $1
17327 } # as_fn_set_status
17328
17329 # as_fn_exit STATUS
17330 # -----------------
17331 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17332 as_fn_exit ()
17333 {
17334   set +e
17335   as_fn_set_status $1
17336   exit $1
17337 } # as_fn_exit
17338
17339 # as_fn_unset VAR
17340 # ---------------
17341 # Portably unset VAR.
17342 as_fn_unset ()
17343 {
17344   { eval $1=; unset $1;}
17345 }
17346 as_unset=as_fn_unset
17347 # as_fn_append VAR VALUE
17348 # ----------------------
17349 # Append the text in VALUE to the end of the definition contained in VAR. Take
17350 # advantage of any shell optimizations that allow amortized linear growth over
17351 # repeated appends, instead of the typical quadratic growth present in naive
17352 # implementations.
17353 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17354   eval 'as_fn_append ()
17355   {
17356     eval $1+=\$2
17357   }'
17358 else
17359   as_fn_append ()
17360   {
17361     eval $1=\$$1\$2
17362   }
17363 fi # as_fn_append
17364
17365 # as_fn_arith ARG...
17366 # ------------------
17367 # Perform arithmetic evaluation on the ARGs, and store the result in the
17368 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17369 # must be portable across $(()) and expr.
17370 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17371   eval 'as_fn_arith ()
17372   {
17373     as_val=$(( $* ))
17374   }'
17375 else
17376   as_fn_arith ()
17377   {
17378     as_val=`expr "$@" || test $? -eq 1`
17379   }
17380 fi # as_fn_arith
17381
17382
17383 if expr a : '\(a\)' >/dev/null 2>&1 &&
17384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17385   as_expr=expr
17386 else
17387   as_expr=false
17388 fi
17389
17390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17391   as_basename=basename
17392 else
17393   as_basename=false
17394 fi
17395
17396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17397   as_dirname=dirname
17398 else
17399   as_dirname=false
17400 fi
17401
17402 as_me=`$as_basename -- "$0" ||
17403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17404          X"$0" : 'X\(//\)$' \| \
17405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17406 $as_echo X/"$0" |
17407     sed '/^.*\/\([^/][^/]*\)\/*$/{
17408             s//\1/
17409             q
17410           }
17411           /^X\/\(\/\/\)$/{
17412             s//\1/
17413             q
17414           }
17415           /^X\/\(\/\).*/{
17416             s//\1/
17417             q
17418           }
17419           s/.*/./; q'`
17420
17421 # Avoid depending upon Character Ranges.
17422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17425 as_cr_digits='0123456789'
17426 as_cr_alnum=$as_cr_Letters$as_cr_digits
17427
17428 ECHO_C= ECHO_N= ECHO_T=
17429 case `echo -n x` in #(((((
17430 -n*)
17431   case `echo 'xy\c'` in
17432   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17433   xy)  ECHO_C='\c';;
17434   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17435        ECHO_T=' ';;
17436   esac;;
17437 *)
17438   ECHO_N='-n';;
17439 esac
17440
17441 rm -f conf$$ conf$$.exe conf$$.file
17442 if test -d conf$$.dir; then
17443   rm -f conf$$.dir/conf$$.file
17444 else
17445   rm -f conf$$.dir
17446   mkdir conf$$.dir 2>/dev/null
17447 fi
17448 if (echo >conf$$.file) 2>/dev/null; then
17449   if ln -s conf$$.file conf$$ 2>/dev/null; then
17450     as_ln_s='ln -s'
17451     # ... but there are two gotchas:
17452     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17453     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17454     # In both cases, we have to default to `cp -pR'.
17455     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17456       as_ln_s='cp -pR'
17457   elif ln conf$$.file conf$$ 2>/dev/null; then
17458     as_ln_s=ln
17459   else
17460     as_ln_s='cp -pR'
17461   fi
17462 else
17463   as_ln_s='cp -pR'
17464 fi
17465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17466 rmdir conf$$.dir 2>/dev/null
17467
17468
17469 # as_fn_mkdir_p
17470 # -------------
17471 # Create "$as_dir" as a directory, including parents if necessary.
17472 as_fn_mkdir_p ()
17473 {
17474
17475   case $as_dir in #(
17476   -*) as_dir=./$as_dir;;
17477   esac
17478   test -d "$as_dir" || eval $as_mkdir_p || {
17479     as_dirs=
17480     while :; do
17481       case $as_dir in #(
17482       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17483       *) as_qdir=$as_dir;;
17484       esac
17485       as_dirs="'$as_qdir' $as_dirs"
17486       as_dir=`$as_dirname -- "$as_dir" ||
17487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17488          X"$as_dir" : 'X\(//\)[^/]' \| \
17489          X"$as_dir" : 'X\(//\)$' \| \
17490          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17491 $as_echo X"$as_dir" |
17492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17493             s//\1/
17494             q
17495           }
17496           /^X\(\/\/\)[^/].*/{
17497             s//\1/
17498             q
17499           }
17500           /^X\(\/\/\)$/{
17501             s//\1/
17502             q
17503           }
17504           /^X\(\/\).*/{
17505             s//\1/
17506             q
17507           }
17508           s/.*/./; q'`
17509       test -d "$as_dir" && break
17510     done
17511     test -z "$as_dirs" || eval "mkdir $as_dirs"
17512   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17513
17514
17515 } # as_fn_mkdir_p
17516 if mkdir -p . 2>/dev/null; then
17517   as_mkdir_p='mkdir -p "$as_dir"'
17518 else
17519   test -d ./-p && rmdir ./-p
17520   as_mkdir_p=false
17521 fi
17522
17523
17524 # as_fn_executable_p FILE
17525 # -----------------------
17526 # Test if FILE is an executable regular file.
17527 as_fn_executable_p ()
17528 {
17529   test -f "$1" && test -x "$1"
17530 } # as_fn_executable_p
17531 as_test_x='test -x'
17532 as_executable_p=as_fn_executable_p
17533
17534 # Sed expression to map a string onto a valid CPP name.
17535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17536
17537 # Sed expression to map a string onto a valid variable name.
17538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17539
17540
17541 exec 6>&1
17542 ## ----------------------------------- ##
17543 ## Main body of $CONFIG_STATUS script. ##
17544 ## ----------------------------------- ##
17545 _ASEOF
17546 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17547
17548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17549 # Save the log message, to keep $0 and so on meaningful, and to
17550 # report actual input values of CONFIG_FILES etc. instead of their
17551 # values after options handling.
17552 ac_log="
17553 This file was extended by OpenFst $as_me 1.7.7, which was
17554 generated by GNU Autoconf 2.69.  Invocation command line was
17555
17556   CONFIG_FILES    = $CONFIG_FILES
17557   CONFIG_HEADERS  = $CONFIG_HEADERS
17558   CONFIG_LINKS    = $CONFIG_LINKS
17559   CONFIG_COMMANDS = $CONFIG_COMMANDS
17560   $ $0 $@
17561
17562 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17563 "
17564
17565 _ACEOF
17566
17567 case $ac_config_files in *"
17568 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17569 esac
17570
17571 case $ac_config_headers in *"
17572 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17573 esac
17574
17575
17576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17577 # Files that config.status was made for.
17578 config_files="$ac_config_files"
17579 config_headers="$ac_config_headers"
17580 config_commands="$ac_config_commands"
17581
17582 _ACEOF
17583
17584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17585 ac_cs_usage="\
17586 \`$as_me' instantiates files and other configuration actions
17587 from templates according to the current configuration.  Unless the files
17588 and actions are specified as TAGs, all are instantiated by default.
17589
17590 Usage: $0 [OPTION]... [TAG]...
17591
17592   -h, --help       print this help, then exit
17593   -V, --version    print version number and configuration settings, then exit
17594       --config     print configuration, then exit
17595   -q, --quiet, --silent
17596                    do not print progress messages
17597   -d, --debug      don't remove temporary files
17598       --recheck    update $as_me by reconfiguring in the same conditions
17599       --file=FILE[:TEMPLATE]
17600                    instantiate the configuration file FILE
17601       --header=FILE[:TEMPLATE]
17602                    instantiate the configuration header FILE
17603
17604 Configuration files:
17605 $config_files
17606
17607 Configuration headers:
17608 $config_headers
17609
17610 Configuration commands:
17611 $config_commands
17612
17613 Report bugs to <help@www.openfst.org>."
17614
17615 _ACEOF
17616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17617 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17618 ac_cs_version="\\
17619 OpenFst config.status 1.7.7
17620 configured by $0, generated by GNU Autoconf 2.69,
17621   with options \\"\$ac_cs_config\\"
17622
17623 Copyright (C) 2012 Free Software Foundation, Inc.
17624 This config.status script is free software; the Free Software Foundation
17625 gives unlimited permission to copy, distribute and modify it."
17626
17627 ac_pwd='$ac_pwd'
17628 srcdir='$srcdir'
17629 INSTALL='$INSTALL'
17630 MKDIR_P='$MKDIR_P'
17631 AWK='$AWK'
17632 test -n "\$AWK" || AWK=awk
17633 _ACEOF
17634
17635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17636 # The default lists apply if the user does not specify any file.
17637 ac_need_defaults=:
17638 while test $# != 0
17639 do
17640   case $1 in
17641   --*=?*)
17642     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17643     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17644     ac_shift=:
17645     ;;
17646   --*=)
17647     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17648     ac_optarg=
17649     ac_shift=:
17650     ;;
17651   *)
17652     ac_option=$1
17653     ac_optarg=$2
17654     ac_shift=shift
17655     ;;
17656   esac
17657
17658   case $ac_option in
17659   # Handling of the options.
17660   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17661     ac_cs_recheck=: ;;
17662   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17663     $as_echo "$ac_cs_version"; exit ;;
17664   --config | --confi | --conf | --con | --co | --c )
17665     $as_echo "$ac_cs_config"; exit ;;
17666   --debug | --debu | --deb | --de | --d | -d )
17667     debug=: ;;
17668   --file | --fil | --fi | --f )
17669     $ac_shift
17670     case $ac_optarg in
17671     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17672     '') as_fn_error $? "missing file argument" ;;
17673     esac
17674     as_fn_append CONFIG_FILES " '$ac_optarg'"
17675     ac_need_defaults=false;;
17676   --header | --heade | --head | --hea )
17677     $ac_shift
17678     case $ac_optarg in
17679     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17680     esac
17681     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17682     ac_need_defaults=false;;
17683   --he | --h)
17684     # Conflict between --help and --header
17685     as_fn_error $? "ambiguous option: \`$1'
17686 Try \`$0 --help' for more information.";;
17687   --help | --hel | -h )
17688     $as_echo "$ac_cs_usage"; exit ;;
17689   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17690   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17691     ac_cs_silent=: ;;
17692
17693   # This is an error.
17694   -*) as_fn_error $? "unrecognized option: \`$1'
17695 Try \`$0 --help' for more information." ;;
17696
17697   *) as_fn_append ac_config_targets " $1"
17698      ac_need_defaults=false ;;
17699
17700   esac
17701   shift
17702 done
17703
17704 ac_configure_extra_args=
17705
17706 if $ac_cs_silent; then
17707   exec 6>/dev/null
17708   ac_configure_extra_args="$ac_configure_extra_args --silent"
17709 fi
17710
17711 _ACEOF
17712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17713 if \$ac_cs_recheck; then
17714   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17715   shift
17716   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17717   CONFIG_SHELL='$SHELL'
17718   export CONFIG_SHELL
17719   exec "\$@"
17720 fi
17721
17722 _ACEOF
17723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17724 exec 5>>config.log
17725 {
17726   echo
17727   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17728 ## Running $as_me. ##
17729 _ASBOX
17730   $as_echo "$ac_log"
17731 } >&5
17732
17733 _ACEOF
17734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17735 #
17736 # INIT-COMMANDS
17737 #
17738 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17739
17740
17741 # The HP-UX ksh and POSIX shell print the target directory to stdout
17742 # if CDPATH is set.
17743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17744
17745 sed_quote_subst='$sed_quote_subst'
17746 double_quote_subst='$double_quote_subst'
17747 delay_variable_subst='$delay_variable_subst'
17748 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17749 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17750 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17751 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17752 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17753 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17754 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17755 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17756 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17757 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17758 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17759 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17760 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17761 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17762 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17763 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17764 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17765 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17766 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17767 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17768 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17769 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17770 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17771 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17772 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17773 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17774 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17775 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17776 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17777 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17778 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17779 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17780 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17781 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17782 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17783 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17784 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17785 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17786 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17787 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17788 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17789 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17790 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17791 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17792 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17793 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17794 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17795 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17796 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17797 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17798 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17799 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17800 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17801 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17802 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17803 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17804 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17805 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17806 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"`'
17807 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17808 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17809 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17810 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17811 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17812 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17813 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17814 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17815 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17816 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17817 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17818 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17819 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17820 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17821 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17822 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17823 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17824 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17825 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17826 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17827 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17828 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17829 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17830 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17831 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17832 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17833 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17834 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17835 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17836 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17837 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17838 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17839 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17840 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17841 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17842 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17843 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17844 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17845 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17846 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17847 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17848 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17849 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17850 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17851 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17852 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17853 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17854 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17855 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17856 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17857 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17858 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17859 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17860 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17861 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17862 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17863 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17864 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17865 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17866 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17867 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17868 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17869 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17870 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17871 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17872 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17873 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17874 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17875 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17876 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17877 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17878 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17879 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17880 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17881 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17882 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17883 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17884 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17885 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17886 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17887 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17888 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17889 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17890 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17891 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17892 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17893 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17894 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17895 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17896 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17897 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17898 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17899 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17900 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17901 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17902 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17903 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17904 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17905 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17906 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17907 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17908 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17909 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17910 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17911 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17912 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17913 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17914 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17915 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17916 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17917 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17918 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17919 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17920 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17921 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17922 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17923 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17924 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17925 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17926 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17927 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17928 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17929 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17930 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17931 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17932 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17933 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17934 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17935 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17936 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17937
17938 LTCC='$LTCC'
17939 LTCFLAGS='$LTCFLAGS'
17940 compiler='$compiler_DEFAULT'
17941
17942 # A function that is used when there is no print builtin or printf.
17943 func_fallback_echo ()
17944 {
17945   eval 'cat <<_LTECHO_EOF
17946 \$1
17947 _LTECHO_EOF'
17948 }
17949
17950 # Quote evaled strings.
17951 for var in SHELL \
17952 ECHO \
17953 PATH_SEPARATOR \
17954 SED \
17955 GREP \
17956 EGREP \
17957 FGREP \
17958 LD \
17959 NM \
17960 LN_S \
17961 lt_SP2NL \
17962 lt_NL2SP \
17963 reload_flag \
17964 OBJDUMP \
17965 deplibs_check_method \
17966 file_magic_cmd \
17967 file_magic_glob \
17968 want_nocaseglob \
17969 DLLTOOL \
17970 sharedlib_from_linklib_cmd \
17971 AR \
17972 AR_FLAGS \
17973 archiver_list_spec \
17974 STRIP \
17975 RANLIB \
17976 CC \
17977 CFLAGS \
17978 compiler \
17979 lt_cv_sys_global_symbol_pipe \
17980 lt_cv_sys_global_symbol_to_cdecl \
17981 lt_cv_sys_global_symbol_to_import \
17982 lt_cv_sys_global_symbol_to_c_name_address \
17983 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17984 lt_cv_nm_interface \
17985 nm_file_list_spec \
17986 lt_cv_truncate_bin \
17987 lt_prog_compiler_no_builtin_flag \
17988 lt_prog_compiler_pic \
17989 lt_prog_compiler_wl \
17990 lt_prog_compiler_static \
17991 lt_cv_prog_compiler_c_o \
17992 need_locks \
17993 MANIFEST_TOOL \
17994 DSYMUTIL \
17995 NMEDIT \
17996 LIPO \
17997 OTOOL \
17998 OTOOL64 \
17999 shrext_cmds \
18000 export_dynamic_flag_spec \
18001 whole_archive_flag_spec \
18002 compiler_needs_object \
18003 with_gnu_ld \
18004 allow_undefined_flag \
18005 no_undefined_flag \
18006 hardcode_libdir_flag_spec \
18007 hardcode_libdir_separator \
18008 exclude_expsyms \
18009 include_expsyms \
18010 file_list_spec \
18011 variables_saved_for_relink \
18012 libname_spec \
18013 library_names_spec \
18014 soname_spec \
18015 install_override_mode \
18016 finish_eval \
18017 old_striplib \
18018 striplib \
18019 compiler_lib_search_dirs \
18020 predep_objects \
18021 postdep_objects \
18022 predeps \
18023 postdeps \
18024 compiler_lib_search_path \
18025 LD_CXX \
18026 reload_flag_CXX \
18027 compiler_CXX \
18028 lt_prog_compiler_no_builtin_flag_CXX \
18029 lt_prog_compiler_pic_CXX \
18030 lt_prog_compiler_wl_CXX \
18031 lt_prog_compiler_static_CXX \
18032 lt_cv_prog_compiler_c_o_CXX \
18033 export_dynamic_flag_spec_CXX \
18034 whole_archive_flag_spec_CXX \
18035 compiler_needs_object_CXX \
18036 with_gnu_ld_CXX \
18037 allow_undefined_flag_CXX \
18038 no_undefined_flag_CXX \
18039 hardcode_libdir_flag_spec_CXX \
18040 hardcode_libdir_separator_CXX \
18041 exclude_expsyms_CXX \
18042 include_expsyms_CXX \
18043 file_list_spec_CXX \
18044 compiler_lib_search_dirs_CXX \
18045 predep_objects_CXX \
18046 postdep_objects_CXX \
18047 predeps_CXX \
18048 postdeps_CXX \
18049 compiler_lib_search_path_CXX; do
18050     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18051     *[\\\\\\\`\\"\\\$]*)
18052       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18053       ;;
18054     *)
18055       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18056       ;;
18057     esac
18058 done
18059
18060 # Double-quote double-evaled strings.
18061 for var in reload_cmds \
18062 old_postinstall_cmds \
18063 old_postuninstall_cmds \
18064 old_archive_cmds \
18065 extract_expsyms_cmds \
18066 old_archive_from_new_cmds \
18067 old_archive_from_expsyms_cmds \
18068 archive_cmds \
18069 archive_expsym_cmds \
18070 module_cmds \
18071 module_expsym_cmds \
18072 export_symbols_cmds \
18073 prelink_cmds \
18074 postlink_cmds \
18075 postinstall_cmds \
18076 postuninstall_cmds \
18077 finish_cmds \
18078 sys_lib_search_path_spec \
18079 configure_time_dlsearch_path \
18080 configure_time_lt_sys_library_path \
18081 reload_cmds_CXX \
18082 old_archive_cmds_CXX \
18083 old_archive_from_new_cmds_CXX \
18084 old_archive_from_expsyms_cmds_CXX \
18085 archive_cmds_CXX \
18086 archive_expsym_cmds_CXX \
18087 module_cmds_CXX \
18088 module_expsym_cmds_CXX \
18089 export_symbols_cmds_CXX \
18090 prelink_cmds_CXX \
18091 postlink_cmds_CXX; do
18092     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18093     *[\\\\\\\`\\"\\\$]*)
18094       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18095       ;;
18096     *)
18097       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18098       ;;
18099     esac
18100 done
18101
18102 ac_aux_dir='$ac_aux_dir'
18103
18104 # See if we are running on zsh, and set the options that allow our
18105 # commands through without removal of \ escapes INIT.
18106 if test -n "\${ZSH_VERSION+set}"; then
18107    setopt NO_GLOB_SUBST
18108 fi
18109
18110
18111     PACKAGE='$PACKAGE'
18112     VERSION='$VERSION'
18113     RM='$RM'
18114     ofile='$ofile'
18115
18116
18117
18118
18119
18120
18121 _ACEOF
18122
18123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18124
18125 # Handling of arguments.
18126 for ac_config_target in $ac_config_targets
18127 do
18128   case $ac_config_target in
18129     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18130     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18131     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18132     "src/include/fst/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/fst/config.h" ;;
18133     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18134     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18135     "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
18136     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18137     "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;;
18138     "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
18139     "src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;;
18140     "src/extensions/compact/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compact/Makefile" ;;
18141     "src/extensions/compress/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compress/Makefile" ;;
18142     "src/extensions/const/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/const/Makefile" ;;
18143     "src/extensions/far/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/far/Makefile" ;;
18144     "src/extensions/linear/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/linear/Makefile" ;;
18145     "src/extensions/lookahead/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/lookahead/Makefile" ;;
18146     "src/extensions/mpdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/mpdt/Makefile" ;;
18147     "src/extensions/ngram/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/ngram/Makefile" ;;
18148     "src/extensions/pdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/pdt/Makefile" ;;
18149     "src/extensions/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/python/Makefile" ;;
18150     "src/extensions/special/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/special/Makefile" ;;
18151     "src/script/Makefile") CONFIG_FILES="$CONFIG_FILES src/script/Makefile" ;;
18152
18153   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18154   esac
18155 done
18156
18157
18158 # If the user did not use the arguments to specify the items to instantiate,
18159 # then the envvar interface is used.  Set only those that are not.
18160 # We use the long form for the default assignment because of an extremely
18161 # bizarre bug on SunOS 4.1.3.
18162 if $ac_need_defaults; then
18163   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18164   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18165   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18166 fi
18167
18168 # Have a temporary directory for convenience.  Make it in the build tree
18169 # simply because there is no reason against having it here, and in addition,
18170 # creating and moving files from /tmp can sometimes cause problems.
18171 # Hook for its removal unless debugging.
18172 # Note that there is a small window in which the directory will not be cleaned:
18173 # after its creation but before its name has been assigned to `$tmp'.
18174 $debug ||
18175 {
18176   tmp= ac_tmp=
18177   trap 'exit_status=$?
18178   : "${ac_tmp:=$tmp}"
18179   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18180 ' 0
18181   trap 'as_fn_exit 1' 1 2 13 15
18182 }
18183 # Create a (secure) tmp directory for tmp files.
18184
18185 {
18186   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18187   test -d "$tmp"
18188 }  ||
18189 {
18190   tmp=./conf$$-$RANDOM
18191   (umask 077 && mkdir "$tmp")
18192 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18193 ac_tmp=$tmp
18194
18195 # Set up the scripts for CONFIG_FILES section.
18196 # No need to generate them if there are no CONFIG_FILES.
18197 # This happens for instance with `./config.status config.h'.
18198 if test -n "$CONFIG_FILES"; then
18199
18200
18201 ac_cr=`echo X | tr X '\015'`
18202 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18203 # But we know of no other shell where ac_cr would be empty at this
18204 # point, so we can use a bashism as a fallback.
18205 if test "x$ac_cr" = x; then
18206   eval ac_cr=\$\'\\r\'
18207 fi
18208 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18209 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18210   ac_cs_awk_cr='\\r'
18211 else
18212   ac_cs_awk_cr=$ac_cr
18213 fi
18214
18215 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18216 _ACEOF
18217
18218
18219 {
18220   echo "cat >conf$$subs.awk <<_ACEOF" &&
18221   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18222   echo "_ACEOF"
18223 } >conf$$subs.sh ||
18224   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18225 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18226 ac_delim='%!_!# '
18227 for ac_last_try in false false false false false :; do
18228   . ./conf$$subs.sh ||
18229     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18230
18231   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18232   if test $ac_delim_n = $ac_delim_num; then
18233     break
18234   elif $ac_last_try; then
18235     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18236   else
18237     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18238   fi
18239 done
18240 rm -f conf$$subs.sh
18241
18242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18243 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18244 _ACEOF
18245 sed -n '
18246 h
18247 s/^/S["/; s/!.*/"]=/
18248 p
18249 g
18250 s/^[^!]*!//
18251 :repl
18252 t repl
18253 s/'"$ac_delim"'$//
18254 t delim
18255 :nl
18256 h
18257 s/\(.\{148\}\)..*/\1/
18258 t more1
18259 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18260 p
18261 n
18262 b repl
18263 :more1
18264 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18265 p
18266 g
18267 s/.\{148\}//
18268 t nl
18269 :delim
18270 h
18271 s/\(.\{148\}\)..*/\1/
18272 t more2
18273 s/["\\]/\\&/g; s/^/"/; s/$/"/
18274 p
18275 b
18276 :more2
18277 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18278 p
18279 g
18280 s/.\{148\}//
18281 t delim
18282 ' <conf$$subs.awk | sed '
18283 /^[^""]/{
18284   N
18285   s/\n//
18286 }
18287 ' >>$CONFIG_STATUS || ac_write_fail=1
18288 rm -f conf$$subs.awk
18289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18290 _ACAWK
18291 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18292   for (key in S) S_is_set[key] = 1
18293   FS = "\a"
18294
18295 }
18296 {
18297   line = $ 0
18298   nfields = split(line, field, "@")
18299   substed = 0
18300   len = length(field[1])
18301   for (i = 2; i < nfields; i++) {
18302     key = field[i]
18303     keylen = length(key)
18304     if (S_is_set[key]) {
18305       value = S[key]
18306       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18307       len += length(value) + length(field[++i])
18308       substed = 1
18309     } else
18310       len += 1 + keylen
18311   }
18312
18313   print line
18314 }
18315
18316 _ACAWK
18317 _ACEOF
18318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18319 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18320   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18321 else
18322   cat
18323 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18324   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18325 _ACEOF
18326
18327 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18328 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18329 # trailing colons and then remove the whole line if VPATH becomes empty
18330 # (actually we leave an empty line to preserve line numbers).
18331 if test "x$srcdir" = x.; then
18332   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18333 h
18334 s///
18335 s/^/:/
18336 s/[      ]*$/:/
18337 s/:\$(srcdir):/:/g
18338 s/:\${srcdir}:/:/g
18339 s/:@srcdir@:/:/g
18340 s/^:*//
18341 s/:*$//
18342 x
18343 s/\(=[   ]*\).*/\1/
18344 G
18345 s/\n//
18346 s/^[^=]*=[       ]*$//
18347 }'
18348 fi
18349
18350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18351 fi # test -n "$CONFIG_FILES"
18352
18353 # Set up the scripts for CONFIG_HEADERS section.
18354 # No need to generate them if there are no CONFIG_HEADERS.
18355 # This happens for instance with `./config.status Makefile'.
18356 if test -n "$CONFIG_HEADERS"; then
18357 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18358 BEGIN {
18359 _ACEOF
18360
18361 # Transform confdefs.h into an awk script `defines.awk', embedded as
18362 # here-document in config.status, that substitutes the proper values into
18363 # config.h.in to produce config.h.
18364
18365 # Create a delimiter string that does not exist in confdefs.h, to ease
18366 # handling of long lines.
18367 ac_delim='%!_!# '
18368 for ac_last_try in false false :; do
18369   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18370   if test -z "$ac_tt"; then
18371     break
18372   elif $ac_last_try; then
18373     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18374   else
18375     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18376   fi
18377 done
18378
18379 # For the awk script, D is an array of macro values keyed by name,
18380 # likewise P contains macro parameters if any.  Preserve backslash
18381 # newline sequences.
18382
18383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18384 sed -n '
18385 s/.\{148\}/&'"$ac_delim"'/g
18386 t rset
18387 :rset
18388 s/^[     ]*#[    ]*define[       ][      ]*/ /
18389 t def
18390 d
18391 :def
18392 s/\\$//
18393 t bsnl
18394 s/["\\]/\\&/g
18395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18396 D["\1"]=" \3"/p
18397 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18398 d
18399 :bsnl
18400 s/["\\]/\\&/g
18401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18402 D["\1"]=" \3\\\\\\n"\\/p
18403 t cont
18404 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18405 t cont
18406 d
18407 :cont
18408 n
18409 s/.\{148\}/&'"$ac_delim"'/g
18410 t clear
18411 :clear
18412 s/\\$//
18413 t bsnlc
18414 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18415 d
18416 :bsnlc
18417 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18418 b cont
18419 ' <confdefs.h | sed '
18420 s/'"$ac_delim"'/"\\\
18421 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18422
18423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18424   for (key in D) D_is_set[key] = 1
18425   FS = "\a"
18426 }
18427 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18428   line = \$ 0
18429   split(line, arg, " ")
18430   if (arg[1] == "#") {
18431     defundef = arg[2]
18432     mac1 = arg[3]
18433   } else {
18434     defundef = substr(arg[1], 2)
18435     mac1 = arg[2]
18436   }
18437   split(mac1, mac2, "(") #)
18438   macro = mac2[1]
18439   prefix = substr(line, 1, index(line, defundef) - 1)
18440   if (D_is_set[macro]) {
18441     # Preserve the white space surrounding the "#".
18442     print prefix "define", macro P[macro] D[macro]
18443     next
18444   } else {
18445     # Replace #undef with comments.  This is necessary, for example,
18446     # in the case of _POSIX_SOURCE, which is predefined and required
18447     # on some systems where configure will not decide to define it.
18448     if (defundef == "undef") {
18449       print "/*", prefix defundef, macro, "*/"
18450       next
18451     }
18452   }
18453 }
18454 { print }
18455 _ACAWK
18456 _ACEOF
18457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18458   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18459 fi # test -n "$CONFIG_HEADERS"
18460
18461
18462 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18463 shift
18464 for ac_tag
18465 do
18466   case $ac_tag in
18467   :[FHLC]) ac_mode=$ac_tag; continue;;
18468   esac
18469   case $ac_mode$ac_tag in
18470   :[FHL]*:*);;
18471   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18472   :[FH]-) ac_tag=-:-;;
18473   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18474   esac
18475   ac_save_IFS=$IFS
18476   IFS=:
18477   set x $ac_tag
18478   IFS=$ac_save_IFS
18479   shift
18480   ac_file=$1
18481   shift
18482
18483   case $ac_mode in
18484   :L) ac_source=$1;;
18485   :[FH])
18486     ac_file_inputs=
18487     for ac_f
18488     do
18489       case $ac_f in
18490       -) ac_f="$ac_tmp/stdin";;
18491       *) # Look for the file first in the build tree, then in the source tree
18492          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18493          # because $ac_f cannot contain `:'.
18494          test -f "$ac_f" ||
18495            case $ac_f in
18496            [\\/$]*) false;;
18497            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18498            esac ||
18499            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18500       esac
18501       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18502       as_fn_append ac_file_inputs " '$ac_f'"
18503     done
18504
18505     # Let's still pretend it is `configure' which instantiates (i.e., don't
18506     # use $as_me), people would be surprised to read:
18507     #    /* config.h.  Generated by config.status.  */
18508     configure_input='Generated from '`
18509           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18510         `' by configure.'
18511     if test x"$ac_file" != x-; then
18512       configure_input="$ac_file.  $configure_input"
18513       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18514 $as_echo "$as_me: creating $ac_file" >&6;}
18515     fi
18516     # Neutralize special characters interpreted by sed in replacement strings.
18517     case $configure_input in #(
18518     *\&* | *\|* | *\\* )
18519        ac_sed_conf_input=`$as_echo "$configure_input" |
18520        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18521     *) ac_sed_conf_input=$configure_input;;
18522     esac
18523
18524     case $ac_tag in
18525     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18526       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18527     esac
18528     ;;
18529   esac
18530
18531   ac_dir=`$as_dirname -- "$ac_file" ||
18532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18533          X"$ac_file" : 'X\(//\)[^/]' \| \
18534          X"$ac_file" : 'X\(//\)$' \| \
18535          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18536 $as_echo X"$ac_file" |
18537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18538             s//\1/
18539             q
18540           }
18541           /^X\(\/\/\)[^/].*/{
18542             s//\1/
18543             q
18544           }
18545           /^X\(\/\/\)$/{
18546             s//\1/
18547             q
18548           }
18549           /^X\(\/\).*/{
18550             s//\1/
18551             q
18552           }
18553           s/.*/./; q'`
18554   as_dir="$ac_dir"; as_fn_mkdir_p
18555   ac_builddir=.
18556
18557 case "$ac_dir" in
18558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18559 *)
18560   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18561   # A ".." for each directory in $ac_dir_suffix.
18562   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18563   case $ac_top_builddir_sub in
18564   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18565   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18566   esac ;;
18567 esac
18568 ac_abs_top_builddir=$ac_pwd
18569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18570 # for backward compatibility:
18571 ac_top_builddir=$ac_top_build_prefix
18572
18573 case $srcdir in
18574   .)  # We are building in place.
18575     ac_srcdir=.
18576     ac_top_srcdir=$ac_top_builddir_sub
18577     ac_abs_top_srcdir=$ac_pwd ;;
18578   [\\/]* | ?:[\\/]* )  # Absolute name.
18579     ac_srcdir=$srcdir$ac_dir_suffix;
18580     ac_top_srcdir=$srcdir
18581     ac_abs_top_srcdir=$srcdir ;;
18582   *) # Relative name.
18583     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18584     ac_top_srcdir=$ac_top_build_prefix$srcdir
18585     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18586 esac
18587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18588
18589
18590   case $ac_mode in
18591   :F)
18592   #
18593   # CONFIG_FILE
18594   #
18595
18596   case $INSTALL in
18597   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18598   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18599   esac
18600   ac_MKDIR_P=$MKDIR_P
18601   case $MKDIR_P in
18602   [\\/$]* | ?:[\\/]* ) ;;
18603   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18604   esac
18605 _ACEOF
18606
18607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18608 # If the template does not know about datarootdir, expand it.
18609 # FIXME: This hack should be removed a few years after 2.60.
18610 ac_datarootdir_hack=; ac_datarootdir_seen=
18611 ac_sed_dataroot='
18612 /datarootdir/ {
18613   p
18614   q
18615 }
18616 /@datadir@/p
18617 /@docdir@/p
18618 /@infodir@/p
18619 /@localedir@/p
18620 /@mandir@/p'
18621 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18622 *datarootdir*) ac_datarootdir_seen=yes;;
18623 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18624   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18625 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18626 _ACEOF
18627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18628   ac_datarootdir_hack='
18629   s&@datadir@&$datadir&g
18630   s&@docdir@&$docdir&g
18631   s&@infodir@&$infodir&g
18632   s&@localedir@&$localedir&g
18633   s&@mandir@&$mandir&g
18634   s&\\\${datarootdir}&$datarootdir&g' ;;
18635 esac
18636 _ACEOF
18637
18638 # Neutralize VPATH when `$srcdir' = `.'.
18639 # Shell code in configure.ac might set extrasub.
18640 # FIXME: do we really want to maintain this feature?
18641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18642 ac_sed_extra="$ac_vpsub
18643 $extrasub
18644 _ACEOF
18645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18646 :t
18647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18648 s|@configure_input@|$ac_sed_conf_input|;t t
18649 s&@top_builddir@&$ac_top_builddir_sub&;t t
18650 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18651 s&@srcdir@&$ac_srcdir&;t t
18652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18653 s&@top_srcdir@&$ac_top_srcdir&;t t
18654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18655 s&@builddir@&$ac_builddir&;t t
18656 s&@abs_builddir@&$ac_abs_builddir&;t t
18657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18658 s&@INSTALL@&$ac_INSTALL&;t t
18659 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18660 $ac_datarootdir_hack
18661 "
18662 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18663   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18664
18665 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18666   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18667   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18668       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18669   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18670 which seems to be undefined.  Please make sure it is defined" >&5
18671 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18672 which seems to be undefined.  Please make sure it is defined" >&2;}
18673
18674   rm -f "$ac_tmp/stdin"
18675   case $ac_file in
18676   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18677   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18678   esac \
18679   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18680  ;;
18681   :H)
18682   #
18683   # CONFIG_HEADER
18684   #
18685   if test x"$ac_file" != x-; then
18686     {
18687       $as_echo "/* $configure_input  */" \
18688       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18689     } >"$ac_tmp/config.h" \
18690       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18691     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18692       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18693 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18694     else
18695       rm -f "$ac_file"
18696       mv "$ac_tmp/config.h" "$ac_file" \
18697         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18698     fi
18699   else
18700     $as_echo "/* $configure_input  */" \
18701       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18702       || as_fn_error $? "could not create -" "$LINENO" 5
18703   fi
18704 # Compute "$ac_file"'s index in $config_headers.
18705 _am_arg="$ac_file"
18706 _am_stamp_count=1
18707 for _am_header in $config_headers :; do
18708   case $_am_header in
18709     $_am_arg | $_am_arg:* )
18710       break ;;
18711     * )
18712       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18713   esac
18714 done
18715 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18716 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18717          X"$_am_arg" : 'X\(//\)[^/]' \| \
18718          X"$_am_arg" : 'X\(//\)$' \| \
18719          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18720 $as_echo X"$_am_arg" |
18721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18722             s//\1/
18723             q
18724           }
18725           /^X\(\/\/\)[^/].*/{
18726             s//\1/
18727             q
18728           }
18729           /^X\(\/\/\)$/{
18730             s//\1/
18731             q
18732           }
18733           /^X\(\/\).*/{
18734             s//\1/
18735             q
18736           }
18737           s/.*/./; q'`/stamp-h$_am_stamp_count
18738  ;;
18739
18740   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18741 $as_echo "$as_me: executing $ac_file commands" >&6;}
18742  ;;
18743   esac
18744
18745
18746   case $ac_file$ac_mode in
18747     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18748   # Older Autoconf quotes --file arguments for eval, but not when files
18749   # are listed without --file.  Let's play safe and only enable the eval
18750   # if we detect the quoting.
18751   # TODO: see whether this extra hack can be removed once we start
18752   # requiring Autoconf 2.70 or later.
18753   case $CONFIG_FILES in #(
18754   *\'*) :
18755     eval set x "$CONFIG_FILES" ;; #(
18756   *) :
18757     set x $CONFIG_FILES ;; #(
18758   *) :
18759      ;;
18760 esac
18761   shift
18762   # Used to flag and report bootstrapping failures.
18763   am_rc=0
18764   for am_mf
18765   do
18766     # Strip MF so we end up with the name of the file.
18767     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18768     # Check whether this is an Automake generated Makefile which includes
18769     # dependency-tracking related rules and includes.
18770     # Grep'ing the whole file directly is not great: AIX grep has a line
18771     # limit of 2048, but all sed's we know have understand at least 4000.
18772     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18773       || continue
18774     am_dirpart=`$as_dirname -- "$am_mf" ||
18775 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18776          X"$am_mf" : 'X\(//\)[^/]' \| \
18777          X"$am_mf" : 'X\(//\)$' \| \
18778          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18779 $as_echo X"$am_mf" |
18780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18781             s//\1/
18782             q
18783           }
18784           /^X\(\/\/\)[^/].*/{
18785             s//\1/
18786             q
18787           }
18788           /^X\(\/\/\)$/{
18789             s//\1/
18790             q
18791           }
18792           /^X\(\/\).*/{
18793             s//\1/
18794             q
18795           }
18796           s/.*/./; q'`
18797     am_filepart=`$as_basename -- "$am_mf" ||
18798 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18799          X"$am_mf" : 'X\(//\)$' \| \
18800          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18801 $as_echo X/"$am_mf" |
18802     sed '/^.*\/\([^/][^/]*\)\/*$/{
18803             s//\1/
18804             q
18805           }
18806           /^X\/\(\/\/\)$/{
18807             s//\1/
18808             q
18809           }
18810           /^X\/\(\/\).*/{
18811             s//\1/
18812             q
18813           }
18814           s/.*/./; q'`
18815     { echo "$as_me:$LINENO: cd "$am_dirpart" \
18816       && sed -e '/# am--include-marker/d' "$am_filepart" \
18817         | $MAKE -f - am--depfiles" >&5
18818    (cd "$am_dirpart" \
18819       && sed -e '/# am--include-marker/d' "$am_filepart" \
18820         | $MAKE -f - am--depfiles) >&5 2>&5
18821    ac_status=$?
18822    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823    (exit $ac_status); } || am_rc=$?
18824   done
18825   if test $am_rc -ne 0; then
18826     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18828 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18829     for automatic dependency tracking.  Try re-running configure with the
18830     '--disable-dependency-tracking' option to at least be able to build
18831     the package (albeit without support for automatic dependency tracking).
18832 See \`config.log' for more details" "$LINENO" 5; }
18833   fi
18834   { am_dirpart=; unset am_dirpart;}
18835   { am_filepart=; unset am_filepart;}
18836   { am_mf=; unset am_mf;}
18837   { am_rc=; unset am_rc;}
18838   rm -f conftest-deps.mk
18839 }
18840  ;;
18841     "libtool":C)
18842
18843     # See if we are running on zsh, and set the options that allow our
18844     # commands through without removal of \ escapes.
18845     if test -n "${ZSH_VERSION+set}"; then
18846       setopt NO_GLOB_SUBST
18847     fi
18848
18849     cfgfile=${ofile}T
18850     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18851     $RM "$cfgfile"
18852
18853     cat <<_LT_EOF >> "$cfgfile"
18854 #! $SHELL
18855 # Generated automatically by $as_me ($PACKAGE) $VERSION
18856 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18857 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18858
18859 # Provide generalized library-building support services.
18860 # Written by Gordon Matzigkeit, 1996
18861
18862 # Copyright (C) 2014 Free Software Foundation, Inc.
18863 # This is free software; see the source for copying conditions.  There is NO
18864 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18865
18866 # GNU Libtool is free software; you can redistribute it and/or modify
18867 # it under the terms of the GNU General Public License as published by
18868 # the Free Software Foundation; either version 2 of of the License, or
18869 # (at your option) any later version.
18870 #
18871 # As a special exception to the GNU General Public License, if you
18872 # distribute this file as part of a program or library that is built
18873 # using GNU Libtool, you may include this file under the  same
18874 # distribution terms that you use for the rest of that program.
18875 #
18876 # GNU Libtool is distributed in the hope that it will be useful, but
18877 # WITHOUT ANY WARRANTY; without even the implied warranty of
18878 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18879 # GNU General Public License for more details.
18880 #
18881 # You should have received a copy of the GNU General Public License
18882 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18883
18884
18885 # The names of the tagged configurations supported by this script.
18886 available_tags='CXX '
18887
18888 # Configured defaults for sys_lib_dlsearch_path munging.
18889 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18890
18891 # ### BEGIN LIBTOOL CONFIG
18892
18893 # Whether or not to build static libraries.
18894 build_old_libs=$enable_static
18895
18896 # Which release of libtool.m4 was used?
18897 macro_version=$macro_version
18898 macro_revision=$macro_revision
18899
18900 # Whether or not to build shared libraries.
18901 build_libtool_libs=$enable_shared
18902
18903 # What type of objects to build.
18904 pic_mode=$pic_mode
18905
18906 # Whether or not to optimize for fast installation.
18907 fast_install=$enable_fast_install
18908
18909 # Shared archive member basename,for filename based shared library versioning on AIX.
18910 shared_archive_member_spec=$shared_archive_member_spec
18911
18912 # Shell to use when invoking shell scripts.
18913 SHELL=$lt_SHELL
18914
18915 # An echo program that protects backslashes.
18916 ECHO=$lt_ECHO
18917
18918 # The PATH separator for the build system.
18919 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18920
18921 # The host system.
18922 host_alias=$host_alias
18923 host=$host
18924 host_os=$host_os
18925
18926 # The build system.
18927 build_alias=$build_alias
18928 build=$build
18929 build_os=$build_os
18930
18931 # A sed program that does not truncate output.
18932 SED=$lt_SED
18933
18934 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18935 Xsed="\$SED -e 1s/^X//"
18936
18937 # A grep program that handles long lines.
18938 GREP=$lt_GREP
18939
18940 # An ERE matcher.
18941 EGREP=$lt_EGREP
18942
18943 # A literal string matcher.
18944 FGREP=$lt_FGREP
18945
18946 # A BSD- or MS-compatible name lister.
18947 NM=$lt_NM
18948
18949 # Whether we need soft or hard links.
18950 LN_S=$lt_LN_S
18951
18952 # What is the maximum length of a command?
18953 max_cmd_len=$max_cmd_len
18954
18955 # Object file suffix (normally "o").
18956 objext=$ac_objext
18957
18958 # Executable file suffix (normally "").
18959 exeext=$exeext
18960
18961 # whether the shell understands "unset".
18962 lt_unset=$lt_unset
18963
18964 # turn spaces into newlines.
18965 SP2NL=$lt_lt_SP2NL
18966
18967 # turn newlines into spaces.
18968 NL2SP=$lt_lt_NL2SP
18969
18970 # convert \$build file names to \$host format.
18971 to_host_file_cmd=$lt_cv_to_host_file_cmd
18972
18973 # convert \$build files to toolchain format.
18974 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18975
18976 # An object symbol dumper.
18977 OBJDUMP=$lt_OBJDUMP
18978
18979 # Method to check whether dependent libraries are shared objects.
18980 deplibs_check_method=$lt_deplibs_check_method
18981
18982 # Command to use when deplibs_check_method = "file_magic".
18983 file_magic_cmd=$lt_file_magic_cmd
18984
18985 # How to find potential files when deplibs_check_method = "file_magic".
18986 file_magic_glob=$lt_file_magic_glob
18987
18988 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18989 want_nocaseglob=$lt_want_nocaseglob
18990
18991 # DLL creation program.
18992 DLLTOOL=$lt_DLLTOOL
18993
18994 # Command to associate shared and link libraries.
18995 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18996
18997 # The archiver.
18998 AR=$lt_AR
18999
19000 # Flags to create an archive.
19001 AR_FLAGS=$lt_AR_FLAGS
19002
19003 # How to feed a file listing to the archiver.
19004 archiver_list_spec=$lt_archiver_list_spec
19005
19006 # A symbol stripping program.
19007 STRIP=$lt_STRIP
19008
19009 # Commands used to install an old-style archive.
19010 RANLIB=$lt_RANLIB
19011 old_postinstall_cmds=$lt_old_postinstall_cmds
19012 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19013
19014 # Whether to use a lock for old archive extraction.
19015 lock_old_archive_extraction=$lock_old_archive_extraction
19016
19017 # A C compiler.
19018 LTCC=$lt_CC
19019
19020 # LTCC compiler flags.
19021 LTCFLAGS=$lt_CFLAGS
19022
19023 # Take the output of nm and produce a listing of raw symbols and C names.
19024 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19025
19026 # Transform the output of nm in a proper C declaration.
19027 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19028
19029 # Transform the output of nm into a list of symbols to manually relocate.
19030 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19031
19032 # Transform the output of nm in a C name address pair.
19033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19034
19035 # Transform the output of nm in a C name address pair when lib prefix is needed.
19036 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19037
19038 # The name lister interface.
19039 nm_interface=$lt_lt_cv_nm_interface
19040
19041 # Specify filename containing input files for \$NM.
19042 nm_file_list_spec=$lt_nm_file_list_spec
19043
19044 # The root where to search for dependent libraries,and where our libraries should be installed.
19045 lt_sysroot=$lt_sysroot
19046
19047 # Command to truncate a binary pipe.
19048 lt_truncate_bin=$lt_lt_cv_truncate_bin
19049
19050 # The name of the directory that contains temporary libtool files.
19051 objdir=$objdir
19052
19053 # Used to examine libraries when file_magic_cmd begins with "file".
19054 MAGIC_CMD=$MAGIC_CMD
19055
19056 # Must we lock files when doing compilation?
19057 need_locks=$lt_need_locks
19058
19059 # Manifest tool.
19060 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19061
19062 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19063 DSYMUTIL=$lt_DSYMUTIL
19064
19065 # Tool to change global to local symbols on Mac OS X.
19066 NMEDIT=$lt_NMEDIT
19067
19068 # Tool to manipulate fat objects and archives on Mac OS X.
19069 LIPO=$lt_LIPO
19070
19071 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19072 OTOOL=$lt_OTOOL
19073
19074 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19075 OTOOL64=$lt_OTOOL64
19076
19077 # Old archive suffix (normally "a").
19078 libext=$libext
19079
19080 # Shared library suffix (normally ".so").
19081 shrext_cmds=$lt_shrext_cmds
19082
19083 # The commands to extract the exported symbol list from a shared archive.
19084 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19085
19086 # Variables whose values should be saved in libtool wrapper scripts and
19087 # restored at link time.
19088 variables_saved_for_relink=$lt_variables_saved_for_relink
19089
19090 # Do we need the "lib" prefix for modules?
19091 need_lib_prefix=$need_lib_prefix
19092
19093 # Do we need a version for libraries?
19094 need_version=$need_version
19095
19096 # Library versioning type.
19097 version_type=$version_type
19098
19099 # Shared library runtime path variable.
19100 runpath_var=$runpath_var
19101
19102 # Shared library path variable.
19103 shlibpath_var=$shlibpath_var
19104
19105 # Is shlibpath searched before the hard-coded library search path?
19106 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19107
19108 # Format of library name prefix.
19109 libname_spec=$lt_libname_spec
19110
19111 # List of archive names.  First name is the real one, the rest are links.
19112 # The last name is the one that the linker finds with -lNAME
19113 library_names_spec=$lt_library_names_spec
19114
19115 # The coded name of the library, if different from the real name.
19116 soname_spec=$lt_soname_spec
19117
19118 # Permission mode override for installation of shared libraries.
19119 install_override_mode=$lt_install_override_mode
19120
19121 # Command to use after installation of a shared archive.
19122 postinstall_cmds=$lt_postinstall_cmds
19123
19124 # Command to use after uninstallation of a shared archive.
19125 postuninstall_cmds=$lt_postuninstall_cmds
19126
19127 # Commands used to finish a libtool library installation in a directory.
19128 finish_cmds=$lt_finish_cmds
19129
19130 # As "finish_cmds", except a single script fragment to be evaled but
19131 # not shown.
19132 finish_eval=$lt_finish_eval
19133
19134 # Whether we should hardcode library paths into libraries.
19135 hardcode_into_libs=$hardcode_into_libs
19136
19137 # Compile-time system search path for libraries.
19138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19139
19140 # Detected run-time system search path for libraries.
19141 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19142
19143 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19144 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19145
19146 # Whether dlopen is supported.
19147 dlopen_support=$enable_dlopen
19148
19149 # Whether dlopen of programs is supported.
19150 dlopen_self=$enable_dlopen_self
19151
19152 # Whether dlopen of statically linked programs is supported.
19153 dlopen_self_static=$enable_dlopen_self_static
19154
19155 # Commands to strip libraries.
19156 old_striplib=$lt_old_striplib
19157 striplib=$lt_striplib
19158
19159
19160 # The linker used to build libraries.
19161 LD=$lt_LD
19162
19163 # How to create reloadable object files.
19164 reload_flag=$lt_reload_flag
19165 reload_cmds=$lt_reload_cmds
19166
19167 # Commands used to build an old-style archive.
19168 old_archive_cmds=$lt_old_archive_cmds
19169
19170 # A language specific compiler.
19171 CC=$lt_compiler
19172
19173 # Is the compiler the GNU compiler?
19174 with_gcc=$GCC
19175
19176 # Compiler flag to turn off builtin functions.
19177 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19178
19179 # Additional compiler flags for building library objects.
19180 pic_flag=$lt_lt_prog_compiler_pic
19181
19182 # How to pass a linker flag through the compiler.
19183 wl=$lt_lt_prog_compiler_wl
19184
19185 # Compiler flag to prevent dynamic linking.
19186 link_static_flag=$lt_lt_prog_compiler_static
19187
19188 # Does compiler simultaneously support -c and -o options?
19189 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19190
19191 # Whether or not to add -lc for building shared libraries.
19192 build_libtool_need_lc=$archive_cmds_need_lc
19193
19194 # Whether or not to disallow shared libs when runtime libs are static.
19195 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19196
19197 # Compiler flag to allow reflexive dlopens.
19198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19199
19200 # Compiler flag to generate shared objects directly from archives.
19201 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19202
19203 # Whether the compiler copes with passing no objects directly.
19204 compiler_needs_object=$lt_compiler_needs_object
19205
19206 # Create an old-style archive from a shared archive.
19207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19208
19209 # Create a temporary old-style archive to link instead of a shared archive.
19210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19211
19212 # Commands used to build a shared archive.
19213 archive_cmds=$lt_archive_cmds
19214 archive_expsym_cmds=$lt_archive_expsym_cmds
19215
19216 # Commands used to build a loadable module if different from building
19217 # a shared archive.
19218 module_cmds=$lt_module_cmds
19219 module_expsym_cmds=$lt_module_expsym_cmds
19220
19221 # Whether we are building with GNU ld or not.
19222 with_gnu_ld=$lt_with_gnu_ld
19223
19224 # Flag that allows shared libraries with undefined symbols to be built.
19225 allow_undefined_flag=$lt_allow_undefined_flag
19226
19227 # Flag that enforces no undefined symbols.
19228 no_undefined_flag=$lt_no_undefined_flag
19229
19230 # Flag to hardcode \$libdir into a binary during linking.
19231 # This must work even if \$libdir does not exist
19232 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19233
19234 # Whether we need a single "-rpath" flag with a separated argument.
19235 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19236
19237 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19238 # DIR into the resulting binary.
19239 hardcode_direct=$hardcode_direct
19240
19241 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19242 # DIR into the resulting binary and the resulting library dependency is
19243 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19244 # library is relocated.
19245 hardcode_direct_absolute=$hardcode_direct_absolute
19246
19247 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19248 # into the resulting binary.
19249 hardcode_minus_L=$hardcode_minus_L
19250
19251 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19252 # into the resulting binary.
19253 hardcode_shlibpath_var=$hardcode_shlibpath_var
19254
19255 # Set to "yes" if building a shared library automatically hardcodes DIR
19256 # into the library and all subsequent libraries and executables linked
19257 # against it.
19258 hardcode_automatic=$hardcode_automatic
19259
19260 # Set to yes if linker adds runtime paths of dependent libraries
19261 # to runtime path list.
19262 inherit_rpath=$inherit_rpath
19263
19264 # Whether libtool must link a program against all its dependency libraries.
19265 link_all_deplibs=$link_all_deplibs
19266
19267 # Set to "yes" if exported symbols are required.
19268 always_export_symbols=$always_export_symbols
19269
19270 # The commands to list exported symbols.
19271 export_symbols_cmds=$lt_export_symbols_cmds
19272
19273 # Symbols that should not be listed in the preloaded symbols.
19274 exclude_expsyms=$lt_exclude_expsyms
19275
19276 # Symbols that must always be exported.
19277 include_expsyms=$lt_include_expsyms
19278
19279 # Commands necessary for linking programs (against libraries) with templates.
19280 prelink_cmds=$lt_prelink_cmds
19281
19282 # Commands necessary for finishing linking programs.
19283 postlink_cmds=$lt_postlink_cmds
19284
19285 # Specify filename containing input files.
19286 file_list_spec=$lt_file_list_spec
19287
19288 # How to hardcode a shared library path into an executable.
19289 hardcode_action=$hardcode_action
19290
19291 # The directories searched by this compiler when creating a shared library.
19292 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19293
19294 # Dependencies to place before and after the objects being linked to
19295 # create a shared library.
19296 predep_objects=$lt_predep_objects
19297 postdep_objects=$lt_postdep_objects
19298 predeps=$lt_predeps
19299 postdeps=$lt_postdeps
19300
19301 # The library search path used internally by the compiler when linking
19302 # a shared library.
19303 compiler_lib_search_path=$lt_compiler_lib_search_path
19304
19305 # ### END LIBTOOL CONFIG
19306
19307 _LT_EOF
19308
19309     cat <<'_LT_EOF' >> "$cfgfile"
19310
19311 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19312
19313 # func_munge_path_list VARIABLE PATH
19314 # -----------------------------------
19315 # VARIABLE is name of variable containing _space_ separated list of
19316 # directories to be munged by the contents of PATH, which is string
19317 # having a format:
19318 # "DIR[:DIR]:"
19319 #       string "DIR[ DIR]" will be prepended to VARIABLE
19320 # ":DIR[:DIR]"
19321 #       string "DIR[ DIR]" will be appended to VARIABLE
19322 # "DIRP[:DIRP]::[DIRA:]DIRA"
19323 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19324 #       "DIRA[ DIRA]" will be appended to VARIABLE
19325 # "DIR[:DIR]"
19326 #       VARIABLE will be replaced by "DIR[ DIR]"
19327 func_munge_path_list ()
19328 {
19329     case x$2 in
19330     x)
19331         ;;
19332     *:)
19333         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19334         ;;
19335     x:*)
19336         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19337         ;;
19338     *::*)
19339         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19340         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19341         ;;
19342     *)
19343         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19344         ;;
19345     esac
19346 }
19347
19348
19349 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19350 func_cc_basename ()
19351 {
19352     for cc_temp in $*""; do
19353       case $cc_temp in
19354         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19355         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19356         \-*) ;;
19357         *) break;;
19358       esac
19359     done
19360     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19361 }
19362
19363
19364 # ### END FUNCTIONS SHARED WITH CONFIGURE
19365
19366 _LT_EOF
19367
19368   case $host_os in
19369   aix3*)
19370     cat <<\_LT_EOF >> "$cfgfile"
19371 # AIX sometimes has problems with the GCC collect2 program.  For some
19372 # reason, if we set the COLLECT_NAMES environment variable, the problems
19373 # vanish in a puff of smoke.
19374 if test set != "${COLLECT_NAMES+set}"; then
19375   COLLECT_NAMES=
19376   export COLLECT_NAMES
19377 fi
19378 _LT_EOF
19379     ;;
19380   esac
19381
19382
19383 ltmain=$ac_aux_dir/ltmain.sh
19384
19385
19386   # We use sed instead of cat because bash on DJGPP gets confused if
19387   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19388   # text mode, it properly converts lines to CR/LF.  This bash problem
19389   # is reportedly fixed, but why not run on old versions too?
19390   sed '$q' "$ltmain" >> "$cfgfile" \
19391      || (rm -f "$cfgfile"; exit 1)
19392
19393    mv -f "$cfgfile" "$ofile" ||
19394     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19395   chmod +x "$ofile"
19396
19397
19398     cat <<_LT_EOF >> "$ofile"
19399
19400 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19401
19402 # The linker used to build libraries.
19403 LD=$lt_LD_CXX
19404
19405 # How to create reloadable object files.
19406 reload_flag=$lt_reload_flag_CXX
19407 reload_cmds=$lt_reload_cmds_CXX
19408
19409 # Commands used to build an old-style archive.
19410 old_archive_cmds=$lt_old_archive_cmds_CXX
19411
19412 # A language specific compiler.
19413 CC=$lt_compiler_CXX
19414
19415 # Is the compiler the GNU compiler?
19416 with_gcc=$GCC_CXX
19417
19418 # Compiler flag to turn off builtin functions.
19419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19420
19421 # Additional compiler flags for building library objects.
19422 pic_flag=$lt_lt_prog_compiler_pic_CXX
19423
19424 # How to pass a linker flag through the compiler.
19425 wl=$lt_lt_prog_compiler_wl_CXX
19426
19427 # Compiler flag to prevent dynamic linking.
19428 link_static_flag=$lt_lt_prog_compiler_static_CXX
19429
19430 # Does compiler simultaneously support -c and -o options?
19431 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19432
19433 # Whether or not to add -lc for building shared libraries.
19434 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19435
19436 # Whether or not to disallow shared libs when runtime libs are static.
19437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19438
19439 # Compiler flag to allow reflexive dlopens.
19440 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19441
19442 # Compiler flag to generate shared objects directly from archives.
19443 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19444
19445 # Whether the compiler copes with passing no objects directly.
19446 compiler_needs_object=$lt_compiler_needs_object_CXX
19447
19448 # Create an old-style archive from a shared archive.
19449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19450
19451 # Create a temporary old-style archive to link instead of a shared archive.
19452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19453
19454 # Commands used to build a shared archive.
19455 archive_cmds=$lt_archive_cmds_CXX
19456 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19457
19458 # Commands used to build a loadable module if different from building
19459 # a shared archive.
19460 module_cmds=$lt_module_cmds_CXX
19461 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19462
19463 # Whether we are building with GNU ld or not.
19464 with_gnu_ld=$lt_with_gnu_ld_CXX
19465
19466 # Flag that allows shared libraries with undefined symbols to be built.
19467 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19468
19469 # Flag that enforces no undefined symbols.
19470 no_undefined_flag=$lt_no_undefined_flag_CXX
19471
19472 # Flag to hardcode \$libdir into a binary during linking.
19473 # This must work even if \$libdir does not exist
19474 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19475
19476 # Whether we need a single "-rpath" flag with a separated argument.
19477 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19478
19479 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19480 # DIR into the resulting binary.
19481 hardcode_direct=$hardcode_direct_CXX
19482
19483 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19484 # DIR into the resulting binary and the resulting library dependency is
19485 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19486 # library is relocated.
19487 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19488
19489 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19490 # into the resulting binary.
19491 hardcode_minus_L=$hardcode_minus_L_CXX
19492
19493 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19494 # into the resulting binary.
19495 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19496
19497 # Set to "yes" if building a shared library automatically hardcodes DIR
19498 # into the library and all subsequent libraries and executables linked
19499 # against it.
19500 hardcode_automatic=$hardcode_automatic_CXX
19501
19502 # Set to yes if linker adds runtime paths of dependent libraries
19503 # to runtime path list.
19504 inherit_rpath=$inherit_rpath_CXX
19505
19506 # Whether libtool must link a program against all its dependency libraries.
19507 link_all_deplibs=$link_all_deplibs_CXX
19508
19509 # Set to "yes" if exported symbols are required.
19510 always_export_symbols=$always_export_symbols_CXX
19511
19512 # The commands to list exported symbols.
19513 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19514
19515 # Symbols that should not be listed in the preloaded symbols.
19516 exclude_expsyms=$lt_exclude_expsyms_CXX
19517
19518 # Symbols that must always be exported.
19519 include_expsyms=$lt_include_expsyms_CXX
19520
19521 # Commands necessary for linking programs (against libraries) with templates.
19522 prelink_cmds=$lt_prelink_cmds_CXX
19523
19524 # Commands necessary for finishing linking programs.
19525 postlink_cmds=$lt_postlink_cmds_CXX
19526
19527 # Specify filename containing input files.
19528 file_list_spec=$lt_file_list_spec_CXX
19529
19530 # How to hardcode a shared library path into an executable.
19531 hardcode_action=$hardcode_action_CXX
19532
19533 # The directories searched by this compiler when creating a shared library.
19534 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19535
19536 # Dependencies to place before and after the objects being linked to
19537 # create a shared library.
19538 predep_objects=$lt_predep_objects_CXX
19539 postdep_objects=$lt_postdep_objects_CXX
19540 predeps=$lt_predeps_CXX
19541 postdeps=$lt_postdeps_CXX
19542
19543 # The library search path used internally by the compiler when linking
19544 # a shared library.
19545 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19546
19547 # ### END LIBTOOL TAG CONFIG: CXX
19548 _LT_EOF
19549
19550  ;;
19551
19552   esac
19553 done # for ac_tag
19554
19555
19556 as_fn_exit 0
19557 _ACEOF
19558 ac_clean_files=$ac_clean_files_save
19559
19560 test $ac_write_fail = 0 ||
19561   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19562
19563
19564 # configure is writing to config.log, and then calls config.status.
19565 # config.status does its own redirection, appending to config.log.
19566 # Unfortunately, on DOS this fails, as config.log is still kept open
19567 # by configure, so config.status won't be able to write to it; its
19568 # output is simply discarded.  So we exec the FD to /dev/null,
19569 # effectively closing config.log, so it can be properly (re)opened and
19570 # appended to by config.status.  When coming back to configure, we
19571 # need to make the FD available again.
19572 if test "$no_create" != yes; then
19573   ac_cs_success=:
19574   ac_config_status_args=
19575   test "$silent" = yes &&
19576     ac_config_status_args="$ac_config_status_args --quiet"
19577   exec 5>/dev/null
19578   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19579   exec 5>>config.log
19580   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19581   # would make configure fail if this is the last instruction.
19582   $ac_cs_success || as_fn_exit 1
19583 fi
19584 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19585   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19586 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19587 fi
19588