Fixed include path (again).
[platform/upstream/libconfig.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libconfig 1.5.
4 #
5 # Report bugs to <hyperrealm@gmail.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: hyperrealm@gmail.com 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='libconfig'
592 PACKAGE_TARNAME='libconfig'
593 PACKAGE_VERSION='1.5'
594 PACKAGE_STRING='libconfig 1.5'
595 PACKAGE_BUGREPORT='hyperrealm@gmail.com'
596 PACKAGE_URL='http://www.hyperrealm.com/main.php?s=libconfig'
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_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 GNU_WIN_FALSE
639 GNU_WIN_TRUE
640 BUILDEXAMPLES_FALSE
641 BUILDEXAMPLES_TRUE
642 BUILDCXX_FALSE
643 BUILDCXX_TRUE
644 YFLAGS
645 YACC
646 LEXLIB
647 LEX_OUTPUT_ROOT
648 LEX
649 AS
650 CXXCPP
651 am__fastdepCXX_FALSE
652 am__fastdepCXX_TRUE
653 CXXDEPMODE
654 ac_ct_CXX
655 CXXFLAGS
656 CXX
657 OTOOL64
658 OTOOL
659 LIPO
660 NMEDIT
661 DSYMUTIL
662 MANIFEST_TOOL
663 RANLIB
664 ac_ct_AR
665 AR
666 DLLTOOL
667 OBJDUMP
668 LN_S
669 NM
670 ac_ct_DUMPBIN
671 DUMPBIN
672 LD
673 FGREP
674 SED
675 LIBTOOL
676 EGREP
677 GREP
678 CPP
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
695 CC
696 AM_BACKSLASH
697 AM_DEFAULT_VERBOSITY
698 AM_DEFAULT_V
699 AM_V
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_os
724 target_vendor
725 target_cpu
726 target
727 host_os
728 host_vendor
729 host_cpu
730 host
731 build_os
732 build_vendor
733 build_cpu
734 build
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_URL
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_silent_rules
777 enable_dependency_tracking
778 enable_shared
779 enable_static
780 with_pic
781 enable_fast_install
782 with_gnu_ld
783 with_sysroot
784 enable_libtool_lock
785 enable_cxx
786 enable_examples
787 '
788       ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CC
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 CPP
797 CXX
798 CXXFLAGS
799 CCC
800 CXXCPP
801 YACC
802 YFLAGS'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857   # If the previous option needs an argument, assign it.
858   if test -n "$ac_prev"; then
859     eval $ac_prev=\$ac_option
860     ac_prev=
861     continue
862   fi
863
864   case $ac_option in
865   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866   *=)   ac_optarg= ;;
867   *)    ac_optarg=yes ;;
868   esac
869
870   # Accept the important Cygnus configure options, so we can diagnose typos.
871
872   case $ac_dashdash$ac_option in
873   --)
874     ac_dashdash=yes ;;
875
876   -bindir | --bindir | --bindi | --bind | --bin | --bi)
877     ac_prev=bindir ;;
878   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879     bindir=$ac_optarg ;;
880
881   -build | --build | --buil | --bui | --bu)
882     ac_prev=build_alias ;;
883   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884     build_alias=$ac_optarg ;;
885
886   -cache-file | --cache-file | --cache-fil | --cache-fi \
887   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888     ac_prev=cache_file ;;
889   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891     cache_file=$ac_optarg ;;
892
893   --config-cache | -C)
894     cache_file=config.cache ;;
895
896   -datadir | --datadir | --datadi | --datad)
897     ac_prev=datadir ;;
898   -datadir=* | --datadir=* | --datadi=* | --datad=*)
899     datadir=$ac_optarg ;;
900
901   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902   | --dataroo | --dataro | --datar)
903     ac_prev=datarootdir ;;
904   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906     datarootdir=$ac_optarg ;;
907
908   -disable-* | --disable-*)
909     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910     # Reject names that are not valid shell variable names.
911     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912       as_fn_error $? "invalid feature name: $ac_useropt"
913     ac_useropt_orig=$ac_useropt
914     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915     case $ac_user_opts in
916       *"
917 "enable_$ac_useropt"
918 "*) ;;
919       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920          ac_unrecognized_sep=', ';;
921     esac
922     eval enable_$ac_useropt=no ;;
923
924   -docdir | --docdir | --docdi | --doc | --do)
925     ac_prev=docdir ;;
926   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927     docdir=$ac_optarg ;;
928
929   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930     ac_prev=dvidir ;;
931   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932     dvidir=$ac_optarg ;;
933
934   -enable-* | --enable-*)
935     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938       as_fn_error $? "invalid feature name: $ac_useropt"
939     ac_useropt_orig=$ac_useropt
940     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941     case $ac_user_opts in
942       *"
943 "enable_$ac_useropt"
944 "*) ;;
945       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946          ac_unrecognized_sep=', ';;
947     esac
948     eval enable_$ac_useropt=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       as_fn_error $? "invalid package name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146       *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150          ac_unrecognized_sep=', ';;
1151     esac
1152     eval with_$ac_useropt=\$ac_optarg ;;
1153
1154   -without-* | --without-*)
1155     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158       as_fn_error $? "invalid package name: $ac_useropt"
1159     ac_useropt_orig=$ac_useropt
1160     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161     case $ac_user_opts in
1162       *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166          ac_unrecognized_sep=', ';;
1167     esac
1168     eval with_$ac_useropt=no ;;
1169
1170   --x)
1171     # Obsolete; use --with-x.
1172     with_x=yes ;;
1173
1174   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175   | --x-incl | --x-inc | --x-in | --x-i)
1176     ac_prev=x_includes ;;
1177   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179     x_includes=$ac_optarg ;;
1180
1181   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183     ac_prev=x_libraries ;;
1184   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186     x_libraries=$ac_optarg ;;
1187
1188   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1190     ;;
1191
1192   *=*)
1193     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194     # Reject names that are not valid shell variable names.
1195     case $ac_envvar in #(
1196       '' | [0-9]* | *[!_$as_cr_alnum]* )
1197       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198     esac
1199     eval $ac_envvar=\$ac_optarg
1200     export $ac_envvar ;;
1201
1202   *)
1203     # FIXME: should be removed in autoconf 3.0.
1204     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208     ;;
1209
1210   esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215   as_fn_error $? "missing argument to $ac_option"
1216 fi
1217
1218 if test -n "$ac_unrecognized_opts"; then
1219   case $enable_option_checking in
1220     no) ;;
1221     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223   esac
1224 fi
1225
1226 # Check all directory arguments for consistency.
1227 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228                 datadir sysconfdir sharedstatedir localstatedir includedir \
1229                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230                 libdir localedir mandir
1231 do
1232   eval ac_val=\$$ac_var
1233   # Remove trailing slashes.
1234   case $ac_val in
1235     */ )
1236       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237       eval $ac_var=\$ac_val;;
1238   esac
1239   # Be sure to have absolute directory names.
1240   case $ac_val in
1241     [\\/$]* | ?:[\\/]* )  continue;;
1242     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243   esac
1244   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1246
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1253
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256   if test "x$build_alias" = x; then
1257     cross_compiling=maybe
1258   elif test "x$build_alias" != "x$host_alias"; then
1259     cross_compiling=yes
1260   fi
1261 fi
1262
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266 test "$silent" = yes && exec 6>/dev/null
1267
1268
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272   as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274   as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279   ac_srcdir_defaulted=yes
1280   # Try the directory containing this script, then the parent directory.
1281   ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283          X"$as_myself" : 'X\(//\)[^/]' \| \
1284          X"$as_myself" : 'X\(//\)$' \| \
1285          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288             s//\1/
1289             q
1290           }
1291           /^X\(\/\/\)[^/].*/{
1292             s//\1/
1293             q
1294           }
1295           /^X\(\/\/\)$/{
1296             s//\1/
1297             q
1298           }
1299           /^X\(\/\).*/{
1300             s//\1/
1301             q
1302           }
1303           s/.*/./; q'`
1304   srcdir=$ac_confdir
1305   if test ! -r "$srcdir/$ac_unique_file"; then
1306     srcdir=..
1307   fi
1308 else
1309   ac_srcdir_defaulted=no
1310 fi
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314 fi
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318         pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321   srcdir=.
1322 fi
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331   eval ac_env_${ac_var}_value=\$${ac_var}
1332   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1335
1336 #
1337 # Report the --help message.
1338 #
1339 if test "$ac_init_help" = "long"; then
1340   # Omit some internal or obsolete options to make the list less imposing.
1341   # This message is too long to be a string in the A/UX 3.1 sh.
1342   cat <<_ACEOF
1343 \`configure' configures libconfig 1.5 to adapt to many kinds of systems.
1344
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350 Defaults for the options are specified in brackets.
1351
1352 Configuration:
1353   -h, --help              display this help and exit
1354       --help=short        display options specific to this package
1355       --help=recursive    display the short help of all the included packages
1356   -V, --version           display version information and exit
1357   -q, --quiet, --silent   do not print \`checking ...' messages
1358       --cache-file=FILE   cache test results in FILE [disabled]
1359   -C, --config-cache      alias for \`--cache-file=config.cache'
1360   -n, --no-create         do not create output files
1361       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1362
1363 Installation directories:
1364   --prefix=PREFIX         install architecture-independent files in PREFIX
1365                           [$ac_default_prefix]
1366   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                           [PREFIX]
1368
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1373
1374 For better control, use the options below.
1375
1376 Fine tuning of the installation directories:
1377   --bindir=DIR            user executables [EPREFIX/bin]
1378   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379   --libexecdir=DIR        program executables [EPREFIX/libexec]
1380   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383   --libdir=DIR            object code libraries [EPREFIX/lib]
1384   --includedir=DIR        C header files [PREFIX/include]
1385   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1386   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1387   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1388   --infodir=DIR           info documentation [DATAROOTDIR/info]
1389   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1390   --mandir=DIR            man documentation [DATAROOTDIR/man]
1391   --docdir=DIR            documentation root [DATAROOTDIR/doc/libconfig]
1392   --htmldir=DIR           html documentation [DOCDIR]
1393   --dvidir=DIR            dvi documentation [DOCDIR]
1394   --pdfdir=DIR            pdf documentation [DOCDIR]
1395   --psdir=DIR             ps documentation [DOCDIR]
1396 _ACEOF
1397
1398   cat <<\_ACEOF
1399
1400 Program names:
1401   --program-prefix=PREFIX            prepend PREFIX to installed program names
1402   --program-suffix=SUFFIX            append SUFFIX to installed program names
1403   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1404
1405 System types:
1406   --build=BUILD     configure for building on BUILD [guessed]
1407   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1408   --target=TARGET   configure for building compilers for TARGET [HOST]
1409 _ACEOF
1410 fi
1411
1412 if test -n "$ac_init_help"; then
1413   case $ac_init_help in
1414      short | recursive ) echo "Configuration of libconfig 1.5:";;
1415    esac
1416   cat <<\_ACEOF
1417
1418 Optional Features:
1419   --disable-option-checking  ignore unrecognized --enable/--with options
1420   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422   --enable-silent-rules   less verbose build output (undo: "make V=1")
1423   --disable-silent-rules  verbose build output (undo: "make V=0")
1424   --enable-dependency-tracking
1425                           do not reject slow dependency extractors
1426   --disable-dependency-tracking
1427                           speeds up one-time build
1428   --enable-shared[=PKGS]  build shared libraries [default=yes]
1429   --enable-static[=PKGS]  build static libraries [default=yes]
1430   --enable-fast-install[=PKGS]
1431                           optimize for fast installation [default=yes]
1432   --disable-libtool-lock  avoid locking (might break parallel builds)
1433   --disable-cxx           Disable building of the C++ library
1434   --disable-examples      Disable building of the example programs
1435
1436 Optional Packages:
1437   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1440                           both]
1441   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1442   --with-sysroot=DIR Search for dependent libraries within DIR
1443                         (or the compiler's sysroot if not specified).
1444
1445 Some influential environment variables:
1446   CC          C compiler command
1447   CFLAGS      C compiler flags
1448   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1449               nonstandard directory <lib dir>
1450   LIBS        libraries to pass to the linker, e.g. -l<library>
1451   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452               you have headers in a nonstandard directory <include dir>
1453   CPP         C preprocessor
1454   CXX         C++ compiler command
1455   CXXFLAGS    C++ compiler flags
1456   CXXCPP      C++ preprocessor
1457   YACC        The `Yet Another Compiler Compiler' implementation to use.
1458               Defaults to the first program found out of: `bison -y', `byacc',
1459               `yacc'.
1460   YFLAGS      The list of arguments that will be passed by default to $YACC.
1461               This script will default YFLAGS to the empty string to avoid a
1462               default value of `-d' given by some make applications.
1463
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to <hyperrealm@gmail.com>.
1468 libconfig home page: <http://www.hyperrealm.com/main.php?s=libconfig>.
1469 _ACEOF
1470 ac_status=$?
1471 fi
1472
1473 if test "$ac_init_help" = "recursive"; then
1474   # If there are subdirs, report their specific --help.
1475   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476     test -d "$ac_dir" ||
1477       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478       continue
1479     ac_builddir=.
1480
1481 case "$ac_dir" in
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *)
1484   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1485   # A ".." for each directory in $ac_dir_suffix.
1486   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1487   case $ac_top_builddir_sub in
1488   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490   esac ;;
1491 esac
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1496
1497 case $srcdir in
1498   .)  # We are building in place.
1499     ac_srcdir=.
1500     ac_top_srcdir=$ac_top_builddir_sub
1501     ac_abs_top_srcdir=$ac_pwd ;;
1502   [\\/]* | ?:[\\/]* )  # Absolute name.
1503     ac_srcdir=$srcdir$ac_dir_suffix;
1504     ac_top_srcdir=$srcdir
1505     ac_abs_top_srcdir=$srcdir ;;
1506   *) # Relative name.
1507     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508     ac_top_srcdir=$ac_top_build_prefix$srcdir
1509     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 esac
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512
1513     cd "$ac_dir" || { ac_status=$?; continue; }
1514     # Check for guested configure.
1515     if test -f "$ac_srcdir/configure.gnu"; then
1516       echo &&
1517       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518     elif test -f "$ac_srcdir/configure"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure" --help=recursive
1521     else
1522       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523     fi || ac_status=$?
1524     cd "$ac_pwd" || { ac_status=$?; break; }
1525   done
1526 fi
1527
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530   cat <<\_ACEOF
1531 libconfig configure 1.5
1532 generated by GNU Autoconf 2.69
1533
1534 Copyright (C) 2012 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537 _ACEOF
1538   exit
1539 fi
1540
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1544
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1549 {
1550   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551   rm -f conftest.$ac_objext
1552   if { { ac_try="$ac_compile"
1553 case "(($ac_try" in
1554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555   *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559   (eval "$ac_compile") 2>conftest.err
1560   ac_status=$?
1561   if test -s conftest.err; then
1562     grep -v '^ *+' conftest.err >conftest.er1
1563     cat conftest.er1 >&5
1564     mv -f conftest.er1 conftest.err
1565   fi
1566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567   test $ac_status = 0; } && {
1568          test -z "$ac_c_werror_flag" ||
1569          test ! -s conftest.err
1570        } && test -s conftest.$ac_objext; then :
1571   ac_retval=0
1572 else
1573   $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1575
1576         ac_retval=1
1577 fi
1578   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579   as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_compile
1582
1583 # ac_fn_c_try_cpp LINENO
1584 # ----------------------
1585 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_cpp ()
1587 {
1588   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589   if { { ac_try="$ac_cpp conftest.$ac_ext"
1590 case "(($ac_try" in
1591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592   *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1597   ac_status=$?
1598   if test -s conftest.err; then
1599     grep -v '^ *+' conftest.err >conftest.er1
1600     cat conftest.er1 >&5
1601     mv -f conftest.er1 conftest.err
1602   fi
1603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604   test $ac_status = 0; } > conftest.i && {
1605          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1606          test ! -s conftest.err
1607        }; then :
1608   ac_retval=0
1609 else
1610   $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613     ac_retval=1
1614 fi
1615   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616   as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_cpp
1619
1620 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1623 # the include files in INCLUDES and setting the cache variable VAR
1624 # accordingly.
1625 ac_fn_c_check_header_mongrel ()
1626 {
1627   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628   if eval \${$3+:} false; then :
1629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632   $as_echo_n "(cached) " >&6
1633 fi
1634 eval ac_res=\$$3
1635                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1637 else
1638   # Is the header compilable?
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1640 $as_echo_n "checking $2 usability... " >&6; }
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h.  */
1643 $4
1644 #include <$2>
1645 _ACEOF
1646 if ac_fn_c_try_compile "$LINENO"; then :
1647   ac_header_compiler=yes
1648 else
1649   ac_header_compiler=no
1650 fi
1651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1653 $as_echo "$ac_header_compiler" >&6; }
1654
1655 # Is the header present?
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1657 $as_echo_n "checking $2 presence... " >&6; }
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h.  */
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_cpp "$LINENO"; then :
1663   ac_header_preproc=yes
1664 else
1665   ac_header_preproc=no
1666 fi
1667 rm -f conftest.err conftest.i conftest.$ac_ext
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1669 $as_echo "$ac_header_preproc" >&6; }
1670
1671 # So?  What about this header?
1672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1673   yes:no: )
1674     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1675 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1676     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1677 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678     ;;
1679   no:yes:* )
1680     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1681 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1682     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1683 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1684     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1685 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1687 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1688     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 ( $as_echo "## ----------------------------------- ##
1691 ## Report this to hyperrealm@gmail.com ##
1692 ## ----------------------------------- ##"
1693      ) | sed "s/^/$as_me: WARNING:     /" >&2
1694     ;;
1695 esac
1696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699   $as_echo_n "(cached) " >&6
1700 else
1701   eval "$3=\$ac_header_compiler"
1702 fi
1703 eval ac_res=\$$3
1704                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 fi
1707   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709 } # ac_fn_c_check_header_mongrel
1710
1711 # ac_fn_c_try_run LINENO
1712 # ----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1714 # that executables *can* be run.
1715 ac_fn_c_try_run ()
1716 {
1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718   if { { ac_try="$ac_link"
1719 case "(($ac_try" in
1720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721   *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725   (eval "$ac_link") 2>&5
1726   ac_status=$?
1727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1729   { { case "(($ac_try" in
1730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731   *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735   (eval "$ac_try") 2>&5
1736   ac_status=$?
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; }; }; then :
1739   ac_retval=0
1740 else
1741   $as_echo "$as_me: program exited with status $ac_status" >&5
1742        $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745        ac_retval=$ac_status
1746 fi
1747   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749   as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_run
1752
1753 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists and can be compiled using the include files in
1756 # INCLUDES, setting the cache variable VAR accordingly.
1757 ac_fn_c_check_header_compile ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763   $as_echo_n "(cached) " >&6
1764 else
1765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h.  */
1767 $4
1768 #include <$2>
1769 _ACEOF
1770 if ac_fn_c_try_compile "$LINENO"; then :
1771   eval "$3=yes"
1772 else
1773   eval "$3=no"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_header_compile
1783
1784 # ac_fn_c_try_link LINENO
1785 # -----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_c_try_link ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   rm -f conftest.$ac_objext conftest$ac_exeext
1791   if { { ac_try="$ac_link"
1792 case "(($ac_try" in
1793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794   *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798   (eval "$ac_link") 2>conftest.err
1799   ac_status=$?
1800   if test -s conftest.err; then
1801     grep -v '^ *+' conftest.err >conftest.er1
1802     cat conftest.er1 >&5
1803     mv -f conftest.er1 conftest.err
1804   fi
1805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806   test $ac_status = 0; } && {
1807          test -z "$ac_c_werror_flag" ||
1808          test ! -s conftest.err
1809        } && test -s conftest$ac_exeext && {
1810          test "$cross_compiling" = yes ||
1811          test -x conftest$ac_exeext
1812        }; then :
1813   ac_retval=0
1814 else
1815   $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818         ac_retval=1
1819 fi
1820   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822   # interfere with the next link command; also delete a directory that is
1823   # left behind by Apple's compiler.  We do this before executing the actions.
1824   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826   as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_link
1829
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839   $as_echo_n "(cached) " >&6
1840 else
1841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h.  */
1843 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1845 #define $2 innocuous_$2
1846
1847 /* System header to define __stub macros and hopefully few prototypes,
1848     which can conflict with char $2 (); below.
1849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850     <limits.h> exists even on freestanding compilers.  */
1851
1852 #ifdef __STDC__
1853 # include <limits.h>
1854 #else
1855 # include <assert.h>
1856 #endif
1857
1858 #undef $2
1859
1860 /* Override any GCC internal prototype to avoid an error.
1861    Use char because int might match the return type of a GCC
1862    builtin and then its argument prototype would still apply.  */
1863 #ifdef __cplusplus
1864 extern "C"
1865 #endif
1866 char $2 ();
1867 /* The GNU C library defines this for functions which it implements
1868     to always fail with ENOSYS.  Some functions are actually named
1869     something starting with __ and the normal name is an alias.  */
1870 #if defined __stub_$2 || defined __stub___$2
1871 choke me
1872 #endif
1873
1874 int
1875 main ()
1876 {
1877 return $2 ();
1878   ;
1879   return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_link "$LINENO"; then :
1883   eval "$3=yes"
1884 else
1885   eval "$3=no"
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext \
1888     conftest$ac_exeext conftest.$ac_ext
1889 fi
1890 eval ac_res=\$$3
1891                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895 } # ac_fn_c_check_func
1896
1897 # ac_fn_cxx_try_compile LINENO
1898 # ----------------------------
1899 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_cxx_try_compile ()
1901 {
1902   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903   rm -f conftest.$ac_objext
1904   if { { ac_try="$ac_compile"
1905 case "(($ac_try" in
1906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907   *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911   (eval "$ac_compile") 2>conftest.err
1912   ac_status=$?
1913   if test -s conftest.err; then
1914     grep -v '^ *+' conftest.err >conftest.er1
1915     cat conftest.er1 >&5
1916     mv -f conftest.er1 conftest.err
1917   fi
1918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919   test $ac_status = 0; } && {
1920          test -z "$ac_cxx_werror_flag" ||
1921          test ! -s conftest.err
1922        } && test -s conftest.$ac_objext; then :
1923   ac_retval=0
1924 else
1925   $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928         ac_retval=1
1929 fi
1930   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931   as_fn_set_status $ac_retval
1932
1933 } # ac_fn_cxx_try_compile
1934
1935 # ac_fn_cxx_try_cpp LINENO
1936 # ------------------------
1937 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_cxx_try_cpp ()
1939 {
1940   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941   if { { ac_try="$ac_cpp conftest.$ac_ext"
1942 case "(($ac_try" in
1943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944   *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949   ac_status=$?
1950   if test -s conftest.err; then
1951     grep -v '^ *+' conftest.err >conftest.er1
1952     cat conftest.er1 >&5
1953     mv -f conftest.er1 conftest.err
1954   fi
1955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956   test $ac_status = 0; } > conftest.i && {
1957          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1958          test ! -s conftest.err
1959        }; then :
1960   ac_retval=0
1961 else
1962   $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965     ac_retval=1
1966 fi
1967   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968   as_fn_set_status $ac_retval
1969
1970 } # ac_fn_cxx_try_cpp
1971
1972 # ac_fn_cxx_try_link LINENO
1973 # -------------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded.
1975 ac_fn_cxx_try_link ()
1976 {
1977   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978   rm -f conftest.$ac_objext conftest$ac_exeext
1979   if { { ac_try="$ac_link"
1980 case "(($ac_try" in
1981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982   *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986   (eval "$ac_link") 2>conftest.err
1987   ac_status=$?
1988   if test -s conftest.err; then
1989     grep -v '^ *+' conftest.err >conftest.er1
1990     cat conftest.er1 >&5
1991     mv -f conftest.er1 conftest.err
1992   fi
1993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994   test $ac_status = 0; } && {
1995          test -z "$ac_cxx_werror_flag" ||
1996          test ! -s conftest.err
1997        } && test -s conftest$ac_exeext && {
1998          test "$cross_compiling" = yes ||
1999          test -x conftest$ac_exeext
2000        }; then :
2001   ac_retval=0
2002 else
2003   $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2005
2006         ac_retval=1
2007 fi
2008   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2009   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2010   # interfere with the next link command; also delete a directory that is
2011   # left behind by Apple's compiler.  We do this before executing the actions.
2012   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014   as_fn_set_status $ac_retval
2015
2016 } # ac_fn_cxx_try_link
2017 cat >config.log <<_ACEOF
2018 This file contains any messages produced by compilers while
2019 running configure, to aid debugging if configure makes a mistake.
2020
2021 It was created by libconfig $as_me 1.5, which was
2022 generated by GNU Autoconf 2.69.  Invocation command line was
2023
2024   $ $0 $@
2025
2026 _ACEOF
2027 exec 5>>config.log
2028 {
2029 cat <<_ASUNAME
2030 ## --------- ##
2031 ## Platform. ##
2032 ## --------- ##
2033
2034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2039
2040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2041 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2042
2043 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2044 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2046 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2047 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2048 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2049 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2050
2051 _ASUNAME
2052
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058     $as_echo "PATH: $as_dir"
2059   done
2060 IFS=$as_save_IFS
2061
2062 } >&5
2063
2064 cat >&5 <<_ACEOF
2065
2066
2067 ## ----------- ##
2068 ## Core tests. ##
2069 ## ----------- ##
2070
2071 _ACEOF
2072
2073
2074 # Keep a trace of the command line.
2075 # Strip out --no-create and --no-recursion so they do not pile up.
2076 # Strip out --silent because we don't want to record it for future runs.
2077 # Also quote any args containing shell meta-characters.
2078 # Make two passes to allow for proper duplicate-argument suppression.
2079 ac_configure_args=
2080 ac_configure_args0=
2081 ac_configure_args1=
2082 ac_must_keep_next=false
2083 for ac_pass in 1 2
2084 do
2085   for ac_arg
2086   do
2087     case $ac_arg in
2088     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090     | -silent | --silent | --silen | --sile | --sil)
2091       continue ;;
2092     *\'*)
2093       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2094     esac
2095     case $ac_pass in
2096     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2097     2)
2098       as_fn_append ac_configure_args1 " '$ac_arg'"
2099       if test $ac_must_keep_next = true; then
2100         ac_must_keep_next=false # Got value, back to normal.
2101       else
2102         case $ac_arg in
2103           *=* | --config-cache | -C | -disable-* | --disable-* \
2104           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106           | -with-* | --with-* | -without-* | --without-* | --x)
2107             case "$ac_configure_args0 " in
2108               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109             esac
2110             ;;
2111           -* ) ac_must_keep_next=true ;;
2112         esac
2113       fi
2114       as_fn_append ac_configure_args " '$ac_arg'"
2115       ;;
2116     esac
2117   done
2118 done
2119 { ac_configure_args0=; unset ac_configure_args0;}
2120 { ac_configure_args1=; unset ac_configure_args1;}
2121
2122 # When interrupted or exit'd, cleanup temporary files, and complete
2123 # config.log.  We remove comments because anyway the quotes in there
2124 # would cause problems or look ugly.
2125 # WARNING: Use '\'' to represent an apostrophe within the trap.
2126 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2127 trap 'exit_status=$?
2128   # Save into config.log some information that might help in debugging.
2129   {
2130     echo
2131
2132     $as_echo "## ---------------- ##
2133 ## Cache variables. ##
2134 ## ---------------- ##"
2135     echo
2136     # The following way of writing the cache mishandles newlines in values,
2137 (
2138   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139     eval ac_val=\$$ac_var
2140     case $ac_val in #(
2141     *${as_nl}*)
2142       case $ac_var in #(
2143       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145       esac
2146       case $ac_var in #(
2147       _ | IFS | as_nl) ;; #(
2148       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149       *) { eval $ac_var=; unset $ac_var;} ;;
2150       esac ;;
2151     esac
2152   done
2153   (set) 2>&1 |
2154     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155     *${as_nl}ac_space=\ *)
2156       sed -n \
2157         "s/'\''/'\''\\\\'\'''\''/g;
2158           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159       ;; #(
2160     *)
2161       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162       ;;
2163     esac |
2164     sort
2165 )
2166     echo
2167
2168     $as_echo "## ----------------- ##
2169 ## Output variables. ##
2170 ## ----------------- ##"
2171     echo
2172     for ac_var in $ac_subst_vars
2173     do
2174       eval ac_val=\$$ac_var
2175       case $ac_val in
2176       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177       esac
2178       $as_echo "$ac_var='\''$ac_val'\''"
2179     done | sort
2180     echo
2181
2182     if test -n "$ac_subst_files"; then
2183       $as_echo "## ------------------- ##
2184 ## File substitutions. ##
2185 ## ------------------- ##"
2186       echo
2187       for ac_var in $ac_subst_files
2188       do
2189         eval ac_val=\$$ac_var
2190         case $ac_val in
2191         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192         esac
2193         $as_echo "$ac_var='\''$ac_val'\''"
2194       done | sort
2195       echo
2196     fi
2197
2198     if test -s confdefs.h; then
2199       $as_echo "## ----------- ##
2200 ## confdefs.h. ##
2201 ## ----------- ##"
2202       echo
2203       cat confdefs.h
2204       echo
2205     fi
2206     test "$ac_signal" != 0 &&
2207       $as_echo "$as_me: caught signal $ac_signal"
2208     $as_echo "$as_me: exit $exit_status"
2209   } >&5
2210   rm -f core *.core core.conftest.* &&
2211     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2212     exit $exit_status
2213 ' 0
2214 for ac_signal in 1 2 13 15; do
2215   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2216 done
2217 ac_signal=0
2218
2219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2220 rm -f -r conftest* confdefs.h
2221
2222 $as_echo "/* confdefs.h */" > confdefs.h
2223
2224 # Predefined preprocessor variables.
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_NAME "$PACKAGE_NAME"
2228 _ACEOF
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2232 _ACEOF
2233
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2236 _ACEOF
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_STRING "$PACKAGE_STRING"
2240 _ACEOF
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244 _ACEOF
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_URL "$PACKAGE_URL"
2248 _ACEOF
2249
2250
2251 # Let the site file select an alternate cache file if it wants to.
2252 # Prefer an explicitly selected file to automatically selected ones.
2253 ac_site_file1=NONE
2254 ac_site_file2=NONE
2255 if test -n "$CONFIG_SITE"; then
2256   # We do not want a PATH search for config.site.
2257   case $CONFIG_SITE in #((
2258     -*)  ac_site_file1=./$CONFIG_SITE;;
2259     */*) ac_site_file1=$CONFIG_SITE;;
2260     *)   ac_site_file1=./$CONFIG_SITE;;
2261   esac
2262 elif test "x$prefix" != xNONE; then
2263   ac_site_file1=$prefix/share/config.site
2264   ac_site_file2=$prefix/etc/config.site
2265 else
2266   ac_site_file1=$ac_default_prefix/share/config.site
2267   ac_site_file2=$ac_default_prefix/etc/config.site
2268 fi
2269 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270 do
2271   test "x$ac_site_file" = xNONE && continue
2272   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2273     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275     sed 's/^/| /' "$ac_site_file" >&5
2276     . "$ac_site_file" \
2277       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279 as_fn_error $? "failed to load site script $ac_site_file
2280 See \`config.log' for more details" "$LINENO" 5; }
2281   fi
2282 done
2283
2284 if test -r "$cache_file"; then
2285   # Some versions of bash will fail to source /dev/null (special files
2286   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2287   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2288     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289 $as_echo "$as_me: loading cache $cache_file" >&6;}
2290     case $cache_file in
2291       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292       *)                      . "./$cache_file";;
2293     esac
2294   fi
2295 else
2296   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297 $as_echo "$as_me: creating cache $cache_file" >&6;}
2298   >$cache_file
2299 fi
2300
2301 # Check that the precious variables saved in the cache have kept the same
2302 # value.
2303 ac_cache_corrupted=false
2304 for ac_var in $ac_precious_vars; do
2305   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306   eval ac_new_set=\$ac_env_${ac_var}_set
2307   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308   eval ac_new_val=\$ac_env_${ac_var}_value
2309   case $ac_old_set,$ac_new_set in
2310     set,)
2311       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2313       ac_cache_corrupted=: ;;
2314     ,set)
2315       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2317       ac_cache_corrupted=: ;;
2318     ,);;
2319     *)
2320       if test "x$ac_old_val" != "x$ac_new_val"; then
2321         # differences in whitespace do not lead to failure.
2322         ac_old_val_w=`echo x $ac_old_val`
2323         ac_new_val_w=`echo x $ac_new_val`
2324         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327           ac_cache_corrupted=:
2328         else
2329           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331           eval $ac_var=\$ac_old_val
2332         fi
2333         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2334 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2335         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2336 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2337       fi;;
2338   esac
2339   # Pass precious variables to config.status.
2340   if test "$ac_new_set" = set; then
2341     case $ac_new_val in
2342     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2343     *) ac_arg=$ac_var=$ac_new_val ;;
2344     esac
2345     case " $ac_configure_args " in
2346       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2347       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2348     esac
2349   fi
2350 done
2351 if $ac_cache_corrupted; then
2352   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2356   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2357 fi
2358 ## -------------------- ##
2359 ## Main body of script. ##
2360 ## -------------------- ##
2361
2362 ac_ext=c
2363 ac_cpp='$CPP $CPPFLAGS'
2364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367
2368
2369 ac_aux_dir=
2370 for ac_dir in aux-build "$srcdir"/aux-build; do
2371   if test -f "$ac_dir/install-sh"; then
2372     ac_aux_dir=$ac_dir
2373     ac_install_sh="$ac_aux_dir/install-sh -c"
2374     break
2375   elif test -f "$ac_dir/install.sh"; then
2376     ac_aux_dir=$ac_dir
2377     ac_install_sh="$ac_aux_dir/install.sh -c"
2378     break
2379   elif test -f "$ac_dir/shtool"; then
2380     ac_aux_dir=$ac_dir
2381     ac_install_sh="$ac_aux_dir/shtool install -c"
2382     break
2383   fi
2384 done
2385 if test -z "$ac_aux_dir"; then
2386   as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux-build \"$srcdir\"/aux-build" "$LINENO" 5
2387 fi
2388
2389 # These three variables are undocumented and unsupported,
2390 # and are intended to be withdrawn in a future Autoconf release.
2391 # They can cause serious problems if a builder's source tree is in a directory
2392 # whose full name contains unusual characters.
2393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2395 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2396
2397
2398
2399 # Make sure we can run config.sub.
2400 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2401   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2402
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2404 $as_echo_n "checking build system type... " >&6; }
2405 if ${ac_cv_build+:} false; then :
2406   $as_echo_n "(cached) " >&6
2407 else
2408   ac_build_alias=$build_alias
2409 test "x$ac_build_alias" = x &&
2410   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2411 test "x$ac_build_alias" = x &&
2412   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2413 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2414   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2415
2416 fi
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2418 $as_echo "$ac_cv_build" >&6; }
2419 case $ac_cv_build in
2420 *-*-*) ;;
2421 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2422 esac
2423 build=$ac_cv_build
2424 ac_save_IFS=$IFS; IFS='-'
2425 set x $ac_cv_build
2426 shift
2427 build_cpu=$1
2428 build_vendor=$2
2429 shift; shift
2430 # Remember, the first character of IFS is used to create $*,
2431 # except with old shells:
2432 build_os=$*
2433 IFS=$ac_save_IFS
2434 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2435
2436
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2438 $as_echo_n "checking host system type... " >&6; }
2439 if ${ac_cv_host+:} false; then :
2440   $as_echo_n "(cached) " >&6
2441 else
2442   if test "x$host_alias" = x; then
2443   ac_cv_host=$ac_cv_build
2444 else
2445   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2446     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2447 fi
2448
2449 fi
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2451 $as_echo "$ac_cv_host" >&6; }
2452 case $ac_cv_host in
2453 *-*-*) ;;
2454 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2455 esac
2456 host=$ac_cv_host
2457 ac_save_IFS=$IFS; IFS='-'
2458 set x $ac_cv_host
2459 shift
2460 host_cpu=$1
2461 host_vendor=$2
2462 shift; shift
2463 # Remember, the first character of IFS is used to create $*,
2464 # except with old shells:
2465 host_os=$*
2466 IFS=$ac_save_IFS
2467 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2468
2469
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2471 $as_echo_n "checking target system type... " >&6; }
2472 if ${ac_cv_target+:} false; then :
2473   $as_echo_n "(cached) " >&6
2474 else
2475   if test "x$target_alias" = x; then
2476   ac_cv_target=$ac_cv_host
2477 else
2478   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2479     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2480 fi
2481
2482 fi
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2484 $as_echo "$ac_cv_target" >&6; }
2485 case $ac_cv_target in
2486 *-*-*) ;;
2487 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2488 esac
2489 target=$ac_cv_target
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_target
2492 shift
2493 target_cpu=$1
2494 target_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 target_os=$*
2499 IFS=$ac_save_IFS
2500 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2501
2502
2503 # The aliases save the names the user supplied, while $host etc.
2504 # will get canonicalized.
2505 test -n "$target_alias" &&
2506   test "$program_prefix$program_suffix$program_transform_name" = \
2507     NONENONEs,x,x, &&
2508   program_prefix=${target_alias}-
2509 am__api_version='1.14'
2510
2511 # Find a good install program.  We prefer a C program (faster),
2512 # so one script is as good as another.  But avoid the broken or
2513 # incompatible versions:
2514 # SysV /etc/install, /usr/sbin/install
2515 # SunOS /usr/etc/install
2516 # IRIX /sbin/install
2517 # AIX /bin/install
2518 # AmigaOS /C/install, which installs bootblocks on floppy discs
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # OS/2's system install, which has a completely different semantic
2523 # ./install, which can be erroneously created by make from ./install.sh.
2524 # Reject install programs that cannot install multiple files.
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2527 if test -z "$INSTALL"; then
2528 if ${ac_cv_path_install+:} false; then :
2529   $as_echo_n "(cached) " >&6
2530 else
2531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536     # Account for people who put trailing slashes in PATH elements.
2537 case $as_dir/ in #((
2538   ./ | .// | /[cC]/* | \
2539   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2540   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2541   /usr/ucb/* ) ;;
2542   *)
2543     # OSF1 and SCO ODT 3.0 have their own names for install.
2544     # Don't use installbsd from OSF since it installs stuff as root
2545     # by default.
2546     for ac_prog in ginstall scoinst install; do
2547       for ac_exec_ext in '' $ac_executable_extensions; do
2548         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2549           if test $ac_prog = install &&
2550             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551             # AIX install.  It has an incompatible calling convention.
2552             :
2553           elif test $ac_prog = install &&
2554             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555             # program-specific install script used by HP pwplus--don't use.
2556             :
2557           else
2558             rm -rf conftest.one conftest.two conftest.dir
2559             echo one > conftest.one
2560             echo two > conftest.two
2561             mkdir conftest.dir
2562             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2563               test -s conftest.one && test -s conftest.two &&
2564               test -s conftest.dir/conftest.one &&
2565               test -s conftest.dir/conftest.two
2566             then
2567               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2568               break 3
2569             fi
2570           fi
2571         fi
2572       done
2573     done
2574     ;;
2575 esac
2576
2577   done
2578 IFS=$as_save_IFS
2579
2580 rm -rf conftest.one conftest.two conftest.dir
2581
2582 fi
2583   if test "${ac_cv_path_install+set}" = set; then
2584     INSTALL=$ac_cv_path_install
2585   else
2586     # As a last resort, use the slow shell script.  Don't cache a
2587     # value for INSTALL within a source directory, because that will
2588     # break other packages using the cache if that directory is
2589     # removed, or if the value is a relative name.
2590     INSTALL=$ac_install_sh
2591   fi
2592 fi
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2594 $as_echo "$INSTALL" >&6; }
2595
2596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2597 # It thinks the first close brace ends the variable substitution.
2598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2599
2600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2601
2602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2603
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2605 $as_echo_n "checking whether build environment is sane... " >&6; }
2606 # Reject unsafe characters in $srcdir or the absolute working directory
2607 # name.  Accept space and tab only in the latter.
2608 am_lf='
2609 '
2610 case `pwd` in
2611   *[\\\"\#\$\&\'\`$am_lf]*)
2612     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2613 esac
2614 case $srcdir in
2615   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2616     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2617 esac
2618
2619 # Do 'set' in a subshell so we don't clobber the current shell's
2620 # arguments.  Must try -L first in case configure is actually a
2621 # symlink; some systems play weird games with the mod time of symlinks
2622 # (eg FreeBSD returns the mod time of the symlink's containing
2623 # directory).
2624 if (
2625    am_has_slept=no
2626    for am_try in 1 2; do
2627      echo "timestamp, slept: $am_has_slept" > conftest.file
2628      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2629      if test "$*" = "X"; then
2630         # -L didn't work.
2631         set X `ls -t "$srcdir/configure" conftest.file`
2632      fi
2633      if test "$*" != "X $srcdir/configure conftest.file" \
2634         && test "$*" != "X conftest.file $srcdir/configure"; then
2635
2636         # If neither matched, then we have a broken ls.  This can happen
2637         # if, for instance, CONFIG_SHELL is bash and it inherits a
2638         # broken ls alias from the environment.  This has actually
2639         # happened.  Such a system could not be considered "sane".
2640         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2641   alias in your environment" "$LINENO" 5
2642      fi
2643      if test "$2" = conftest.file || test $am_try -eq 2; then
2644        break
2645      fi
2646      # Just in case.
2647      sleep 1
2648      am_has_slept=yes
2649    done
2650    test "$2" = conftest.file
2651    )
2652 then
2653    # Ok.
2654    :
2655 else
2656    as_fn_error $? "newly created file is older than distributed files!
2657 Check your system clock" "$LINENO" 5
2658 fi
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660 $as_echo "yes" >&6; }
2661 # If we didn't sleep, we still need to ensure time stamps of config.status and
2662 # generated files are strictly newer.
2663 am_sleep_pid=
2664 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2665   ( sleep 1 ) &
2666   am_sleep_pid=$!
2667 fi
2668
2669 rm -f conftest.file
2670
2671 test "$program_prefix" != NONE &&
2672   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2673 # Use a double $ so make ignores it.
2674 test "$program_suffix" != NONE &&
2675   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2676 # Double any \ or $.
2677 # By default was `s,x,x', remove it if useless.
2678 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2679 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2680
2681 # expand $ac_aux_dir to an absolute path
2682 am_aux_dir=`cd $ac_aux_dir && pwd`
2683
2684 if test x"${MISSING+set}" != xset; then
2685   case $am_aux_dir in
2686   *\ * | *\     *)
2687     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2688   *)
2689     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2690   esac
2691 fi
2692 # Use eval to expand $SHELL
2693 if eval "$MISSING --is-lightweight"; then
2694   am_missing_run="$MISSING "
2695 else
2696   am_missing_run=
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2698 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2699 fi
2700
2701 if test x"${install_sh}" != xset; then
2702   case $am_aux_dir in
2703   *\ * | *\     *)
2704     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2705   *)
2706     install_sh="\${SHELL} $am_aux_dir/install-sh"
2707   esac
2708 fi
2709
2710 # Installed binaries are usually stripped using 'strip' when the user
2711 # run "make install-strip".  However 'strip' might not be the right
2712 # tool to use in cross-compilation environments, therefore Automake
2713 # will honor the 'STRIP' environment variable to overrule this program.
2714 if test "$cross_compiling" != no; then
2715   if test -n "$ac_tool_prefix"; then
2716   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}strip; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_STRIP+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   if test -n "$STRIP"; then
2724   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731     for ac_exec_ext in '' $ac_executable_extensions; do
2732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738   done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 STRIP=$ac_cv_prog_STRIP
2744 if test -n "$STRIP"; then
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2746 $as_echo "$STRIP" >&6; }
2747 else
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752
2753 fi
2754 if test -z "$ac_cv_prog_STRIP"; then
2755   ac_ct_STRIP=$STRIP
2756   # Extract the first word of "strip", so it can be a program name with args.
2757 set dummy strip; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2761   $as_echo_n "(cached) " >&6
2762 else
2763   if test -n "$ac_ct_STRIP"; then
2764   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769   IFS=$as_save_IFS
2770   test -z "$as_dir" && as_dir=.
2771     for ac_exec_ext in '' $ac_executable_extensions; do
2772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773     ac_cv_prog_ac_ct_STRIP="strip"
2774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775     break 2
2776   fi
2777 done
2778   done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2784 if test -n "$ac_ct_STRIP"; then
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2786 $as_echo "$ac_ct_STRIP" >&6; }
2787 else
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792   if test "x$ac_ct_STRIP" = x; then
2793     STRIP=":"
2794   else
2795     case $cross_compiling:$ac_tool_warned in
2796 yes:)
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2800 esac
2801     STRIP=$ac_ct_STRIP
2802   fi
2803 else
2804   STRIP="$ac_cv_prog_STRIP"
2805 fi
2806
2807 fi
2808 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2811 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2812 if test -z "$MKDIR_P"; then
2813   if ${ac_cv_path_mkdir+:} false; then :
2814   $as_echo_n "(cached) " >&6
2815 else
2816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821     for ac_prog in mkdir gmkdir; do
2822          for ac_exec_ext in '' $ac_executable_extensions; do
2823            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2824            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2825              'mkdir (GNU coreutils) '* | \
2826              'mkdir (coreutils) '* | \
2827              'mkdir (fileutils) '4.1*)
2828                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2829                break 3;;
2830            esac
2831          done
2832        done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837
2838   test -d ./--version && rmdir ./--version
2839   if test "${ac_cv_path_mkdir+set}" = set; then
2840     MKDIR_P="$ac_cv_path_mkdir -p"
2841   else
2842     # As a last resort, use the slow shell script.  Don't cache a
2843     # value for MKDIR_P within a source directory, because that will
2844     # break other packages using the cache if that directory is
2845     # removed, or if the value is a relative name.
2846     MKDIR_P="$ac_install_sh -d"
2847   fi
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2850 $as_echo "$MKDIR_P" >&6; }
2851
2852 for ac_prog in gawk mawk nawk awk
2853 do
2854   # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy $ac_prog; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_AWK+:} false; then :
2859   $as_echo_n "(cached) " >&6
2860 else
2861   if test -n "$AWK"; then
2862   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867   IFS=$as_save_IFS
2868   test -z "$as_dir" && as_dir=.
2869     for ac_exec_ext in '' $ac_executable_extensions; do
2870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871     ac_cv_prog_AWK="$ac_prog"
2872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873     break 2
2874   fi
2875 done
2876   done
2877 IFS=$as_save_IFS
2878
2879 fi
2880 fi
2881 AWK=$ac_cv_prog_AWK
2882 if test -n "$AWK"; then
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2884 $as_echo "$AWK" >&6; }
2885 else
2886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888 fi
2889
2890
2891   test -n "$AWK" && break
2892 done
2893
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2895 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2896 set x ${MAKE-make}
2897 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2898 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2899   $as_echo_n "(cached) " >&6
2900 else
2901   cat >conftest.make <<\_ACEOF
2902 SHELL = /bin/sh
2903 all:
2904         @echo '@@@%%%=$(MAKE)=@@@%%%'
2905 _ACEOF
2906 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2907 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2908   *@@@%%%=?*=@@@%%%*)
2909     eval ac_cv_prog_make_${ac_make}_set=yes;;
2910   *)
2911     eval ac_cv_prog_make_${ac_make}_set=no;;
2912 esac
2913 rm -f conftest.make
2914 fi
2915 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917 $as_echo "yes" >&6; }
2918   SET_MAKE=
2919 else
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922   SET_MAKE="MAKE=${MAKE-make}"
2923 fi
2924
2925 rm -rf .tst 2>/dev/null
2926 mkdir .tst 2>/dev/null
2927 if test -d .tst; then
2928   am__leading_dot=.
2929 else
2930   am__leading_dot=_
2931 fi
2932 rmdir .tst 2>/dev/null
2933
2934 # Check whether --enable-silent-rules was given.
2935 if test "${enable_silent_rules+set}" = set; then :
2936   enableval=$enable_silent_rules;
2937 fi
2938
2939 case $enable_silent_rules in # (((
2940   yes) AM_DEFAULT_VERBOSITY=0;;
2941    no) AM_DEFAULT_VERBOSITY=1;;
2942     *) AM_DEFAULT_VERBOSITY=1;;
2943 esac
2944 am_make=${MAKE-make}
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2946 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2947 if ${am_cv_make_support_nested_variables+:} false; then :
2948   $as_echo_n "(cached) " >&6
2949 else
2950   if $as_echo 'TRUE=$(BAR$(V))
2951 BAR0=false
2952 BAR1=true
2953 V=1
2954 am__doit:
2955         @$(TRUE)
2956 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2957   am_cv_make_support_nested_variables=yes
2958 else
2959   am_cv_make_support_nested_variables=no
2960 fi
2961 fi
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2963 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2964 if test $am_cv_make_support_nested_variables = yes; then
2965     AM_V='$(V)'
2966   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2967 else
2968   AM_V=$AM_DEFAULT_VERBOSITY
2969   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2970 fi
2971 AM_BACKSLASH='\'
2972
2973 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2974   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2975   # is not polluted with repeated "-I."
2976   am__isrc=' -I$(srcdir)'
2977   # test to see if srcdir already configured
2978   if test -f $srcdir/config.status; then
2979     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2980   fi
2981 fi
2982
2983 # test whether we have cygpath
2984 if test -z "$CYGPATH_W"; then
2985   if (cygpath --version) >/dev/null 2>/dev/null; then
2986     CYGPATH_W='cygpath -w'
2987   else
2988     CYGPATH_W=echo
2989   fi
2990 fi
2991
2992
2993 # Define the identity of the package.
2994  PACKAGE='libconfig'
2995  VERSION='1.5'
2996
2997
2998 cat >>confdefs.h <<_ACEOF
2999 #define PACKAGE "$PACKAGE"
3000 _ACEOF
3001
3002
3003 cat >>confdefs.h <<_ACEOF
3004 #define VERSION "$VERSION"
3005 _ACEOF
3006
3007 # Some tools Automake needs.
3008
3009 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3010
3011
3012 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3013
3014
3015 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3016
3017
3018 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3019
3020
3021 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3022
3023 # For better backward compatibility.  To be removed once Automake 1.9.x
3024 # dies out for good.  For more background, see:
3025 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3026 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3027 mkdir_p='$(MKDIR_P)'
3028
3029 # We need awk for the "check" target.  The system "awk" is bad on
3030 # some platforms.
3031 # Always define AMTAR for backward compatibility.  Yes, it's still used
3032 # in the wild :-(  We should find a proper way to deprecate it ...
3033 AMTAR='$${TAR-tar}'
3034
3035
3036 # We'll loop over all known methods to create a tar archive until one works.
3037 _am_tools='gnutar  pax cpio none'
3038
3039 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3040
3041
3042
3043
3044
3045
3046 # POSIX will say in a future version that running "rm -f" with no argument
3047 # is OK; and we want to be able to make that assumption in our Makefile
3048 # recipes.  So use an aggressive probe to check that the usage we want is
3049 # actually supported "in the wild" to an acceptable degree.
3050 # See automake bug#10828.
3051 # To make any issue more visible, cause the running configure to be aborted
3052 # by default if the 'rm' program in use doesn't match our expectations; the
3053 # user can still override this though.
3054 if rm -f && rm -fr && rm -rf; then : OK; else
3055   cat >&2 <<'END'
3056 Oops!
3057
3058 Your 'rm' program seems unable to run without file operands specified
3059 on the command line, even when the '-f' option is present.  This is contrary
3060 to the behaviour of most rm programs out there, and not conforming with
3061 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3062
3063 Please tell bug-automake@gnu.org about your system, including the value
3064 of your $PATH and any error possibly output before this message.  This
3065 can help us improve future automake versions.
3066
3067 END
3068   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3069     echo 'Configuration will proceed anyway, since you have set the' >&2
3070     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3071     echo >&2
3072   else
3073     cat >&2 <<'END'
3074 Aborting the configuration process, to ensure you take notice of the issue.
3075
3076 You can download and install GNU coreutils to get an 'rm' implementation
3077 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3078
3079 If you want to complete the configuration process using your problematic
3080 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3081 to "yes", and re-run configure.
3082
3083 END
3084     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3085   fi
3086 fi
3087 ac_config_headers="$ac_config_headers ac_config.h"
3088
3089
3090 # Check whether --enable-silent-rules was given.
3091 if test "${enable_silent_rules+set}" = set; then :
3092   enableval=$enable_silent_rules;
3093 fi
3094
3095 case $enable_silent_rules in # (((
3096   yes) AM_DEFAULT_VERBOSITY=0;;
3097    no) AM_DEFAULT_VERBOSITY=1;;
3098     *) AM_DEFAULT_VERBOSITY=0;;
3099 esac
3100 am_make=${MAKE-make}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3102 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3103 if ${am_cv_make_support_nested_variables+:} false; then :
3104   $as_echo_n "(cached) " >&6
3105 else
3106   if $as_echo 'TRUE=$(BAR$(V))
3107 BAR0=false
3108 BAR1=true
3109 V=1
3110 am__doit:
3111         @$(TRUE)
3112 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3113   am_cv_make_support_nested_variables=yes
3114 else
3115   am_cv_make_support_nested_variables=no
3116 fi
3117 fi
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3119 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3120 if test $am_cv_make_support_nested_variables = yes; then
3121     AM_V='$(V)'
3122   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3123 else
3124   AM_V=$AM_DEFAULT_VERBOSITY
3125   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3126 fi
3127 AM_BACKSLASH='\'
3128
3129
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: libconfig - made with pride in California" >&5
3131 $as_echo "$as_me: libconfig - made with pride in California" >&6;}
3132 sleep 3
3133
3134
3135 cat >>confdefs.h <<_ACEOF
3136 #define TARGET "${target}"
3137 _ACEOF
3138
3139
3140 # Enable GNU extensions.
3141 DEPDIR="${am__leading_dot}deps"
3142
3143 ac_config_commands="$ac_config_commands depfiles"
3144
3145
3146 am_make=${MAKE-make}
3147 cat > confinc << 'END'
3148 am__doit:
3149         @echo this is the am__doit target
3150 .PHONY: am__doit
3151 END
3152 # If we don't find an include directive, just comment out the code.
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3154 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3155 am__include="#"
3156 am__quote=
3157 _am_result=none
3158 # First try GNU make style include.
3159 echo "include confinc" > confmf
3160 # Ignore all kinds of additional output from 'make'.
3161 case `$am_make -s -f confmf 2> /dev/null` in #(
3162 *the\ am__doit\ target*)
3163   am__include=include
3164   am__quote=
3165   _am_result=GNU
3166   ;;
3167 esac
3168 # Now try BSD make style include.
3169 if test "$am__include" = "#"; then
3170    echo '.include "confinc"' > confmf
3171    case `$am_make -s -f confmf 2> /dev/null` in #(
3172    *the\ am__doit\ target*)
3173      am__include=.include
3174      am__quote="\""
3175      _am_result=BSD
3176      ;;
3177    esac
3178 fi
3179
3180
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3182 $as_echo "$_am_result" >&6; }
3183 rm -f confinc confmf
3184
3185 # Check whether --enable-dependency-tracking was given.
3186 if test "${enable_dependency_tracking+set}" = set; then :
3187   enableval=$enable_dependency_tracking;
3188 fi
3189
3190 if test "x$enable_dependency_tracking" != xno; then
3191   am_depcomp="$ac_aux_dir/depcomp"
3192   AMDEPBACKSLASH='\'
3193   am__nodep='_no'
3194 fi
3195  if test "x$enable_dependency_tracking" != xno; then
3196   AMDEP_TRUE=
3197   AMDEP_FALSE='#'
3198 else
3199   AMDEP_TRUE='#'
3200   AMDEP_FALSE=
3201 fi
3202
3203
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209 if test -n "$ac_tool_prefix"; then
3210   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3211 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_CC+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   if test -n "$CC"; then
3218   ac_cv_prog_CC="$CC" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223   IFS=$as_save_IFS
3224   test -z "$as_dir" && as_dir=.
3225     for ac_exec_ext in '' $ac_executable_extensions; do
3226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229     break 2
3230   fi
3231 done
3232   done
3233 IFS=$as_save_IFS
3234
3235 fi
3236 fi
3237 CC=$ac_cv_prog_CC
3238 if test -n "$CC"; then
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3240 $as_echo "$CC" >&6; }
3241 else
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 fi
3245
3246
3247 fi
3248 if test -z "$ac_cv_prog_CC"; then
3249   ac_ct_CC=$CC
3250   # Extract the first word of "gcc", so it can be a program name with args.
3251 set dummy gcc; ac_word=$2
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3255   $as_echo_n "(cached) " >&6
3256 else
3257   if test -n "$ac_ct_CC"; then
3258   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263   IFS=$as_save_IFS
3264   test -z "$as_dir" && as_dir=.
3265     for ac_exec_ext in '' $ac_executable_extensions; do
3266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267     ac_cv_prog_ac_ct_CC="gcc"
3268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269     break 2
3270   fi
3271 done
3272   done
3273 IFS=$as_save_IFS
3274
3275 fi
3276 fi
3277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3278 if test -n "$ac_ct_CC"; then
3279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3280 $as_echo "$ac_ct_CC" >&6; }
3281 else
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 fi
3285
3286   if test "x$ac_ct_CC" = x; then
3287     CC=""
3288   else
3289     case $cross_compiling:$ac_tool_warned in
3290 yes:)
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3293 ac_tool_warned=yes ;;
3294 esac
3295     CC=$ac_ct_CC
3296   fi
3297 else
3298   CC="$ac_cv_prog_CC"
3299 fi
3300
3301 if test -z "$CC"; then
3302           if test -n "$ac_tool_prefix"; then
3303     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}cc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308   $as_echo_n "(cached) " >&6
3309 else
3310   if test -n "$CC"; then
3311   ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318     for ac_exec_ext in '' $ac_executable_extensions; do
3319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320     ac_cv_prog_CC="${ac_tool_prefix}cc"
3321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322     break 2
3323   fi
3324 done
3325   done
3326 IFS=$as_save_IFS
3327
3328 fi
3329 fi
3330 CC=$ac_cv_prog_CC
3331 if test -n "$CC"; then
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3334 else
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 fi
3338
3339
3340   fi
3341 fi
3342 if test -z "$CC"; then
3343   # Extract the first word of "cc", so it can be a program name with args.
3344 set dummy cc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_CC+:} false; then :
3348   $as_echo_n "(cached) " >&6
3349 else
3350   if test -n "$CC"; then
3351   ac_cv_prog_CC="$CC" # Let the user override the test.
3352 else
3353   ac_prog_rejected=no
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357   IFS=$as_save_IFS
3358   test -z "$as_dir" && as_dir=.
3359     for ac_exec_ext in '' $ac_executable_extensions; do
3360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3362        ac_prog_rejected=yes
3363        continue
3364      fi
3365     ac_cv_prog_CC="cc"
3366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367     break 2
3368   fi
3369 done
3370   done
3371 IFS=$as_save_IFS
3372
3373 if test $ac_prog_rejected = yes; then
3374   # We found a bogon in the path, so make sure we never use it.
3375   set dummy $ac_cv_prog_CC
3376   shift
3377   if test $# != 0; then
3378     # We chose a different compiler from the bogus one.
3379     # However, it has the same basename, so the bogon will be chosen
3380     # first if we set CC to just the basename; use the full file name.
3381     shift
3382     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3383   fi
3384 fi
3385 fi
3386 fi
3387 CC=$ac_cv_prog_CC
3388 if test -n "$CC"; then
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3390 $as_echo "$CC" >&6; }
3391 else
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396
3397 fi
3398 if test -z "$CC"; then
3399   if test -n "$ac_tool_prefix"; then
3400   for ac_prog in cl.exe
3401   do
3402     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407   $as_echo_n "(cached) " >&6
3408 else
3409   if test -n "$CC"; then
3410   ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415   IFS=$as_save_IFS
3416   test -z "$as_dir" && as_dir=.
3417     for ac_exec_ext in '' $ac_executable_extensions; do
3418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421     break 2
3422   fi
3423 done
3424   done
3425 IFS=$as_save_IFS
3426
3427 fi
3428 fi
3429 CC=$ac_cv_prog_CC
3430 if test -n "$CC"; then
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 $as_echo "$CC" >&6; }
3433 else
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438
3439     test -n "$CC" && break
3440   done
3441 fi
3442 if test -z "$CC"; then
3443   ac_ct_CC=$CC
3444   for ac_prog in cl.exe
3445 do
3446   # Extract the first word of "$ac_prog", so it can be a program name with args.
3447 set dummy $ac_prog; ac_word=$2
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3451   $as_echo_n "(cached) " >&6
3452 else
3453   if test -n "$ac_ct_CC"; then
3454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459   IFS=$as_save_IFS
3460   test -z "$as_dir" && as_dir=.
3461     for ac_exec_ext in '' $ac_executable_extensions; do
3462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463     ac_cv_prog_ac_ct_CC="$ac_prog"
3464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465     break 2
3466   fi
3467 done
3468   done
3469 IFS=$as_save_IFS
3470
3471 fi
3472 fi
3473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3474 if test -n "$ac_ct_CC"; then
3475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3476 $as_echo "$ac_ct_CC" >&6; }
3477 else
3478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3480 fi
3481
3482
3483   test -n "$ac_ct_CC" && break
3484 done
3485
3486   if test "x$ac_ct_CC" = x; then
3487     CC=""
3488   else
3489     case $cross_compiling:$ac_tool_warned in
3490 yes:)
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3493 ac_tool_warned=yes ;;
3494 esac
3495     CC=$ac_ct_CC
3496   fi
3497 fi
3498
3499 fi
3500
3501
3502 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504 as_fn_error $? "no acceptable C compiler found in \$PATH
3505 See \`config.log' for more details" "$LINENO" 5; }
3506
3507 # Provide some information about the compiler.
3508 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3509 set X $ac_compile
3510 ac_compiler=$2
3511 for ac_option in --version -v -V -qversion; do
3512   { { ac_try="$ac_compiler $ac_option >&5"
3513 case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3520   ac_status=$?
3521   if test -s conftest.err; then
3522     sed '10a\
3523 ... rest of stderr output deleted ...
3524          10q' conftest.err >conftest.er1
3525     cat conftest.er1 >&5
3526   fi
3527   rm -f conftest.er1 conftest.err
3528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529   test $ac_status = 0; }
3530 done
3531
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h.  */
3534
3535 int
3536 main ()
3537 {
3538
3539   ;
3540   return 0;
3541 }
3542 _ACEOF
3543 ac_clean_files_save=$ac_clean_files
3544 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3545 # Try to create an executable without -o first, disregard a.out.
3546 # It will help us diagnose broken compilers, and finding out an intuition
3547 # of exeext.
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3549 $as_echo_n "checking whether the C compiler works... " >&6; }
3550 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3551
3552 # The possible output files:
3553 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3554
3555 ac_rmfiles=
3556 for ac_file in $ac_files
3557 do
3558   case $ac_file in
3559     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3561   esac
3562 done
3563 rm -f $ac_rmfiles
3564
3565 if { { ac_try="$ac_link_default"
3566 case "(($ac_try" in
3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568   *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572   (eval "$ac_link_default") 2>&5
3573   ac_status=$?
3574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575   test $ac_status = 0; }; then :
3576   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3577 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3578 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3579 # so that the user can short-circuit this test for compilers unknown to
3580 # Autoconf.
3581 for ac_file in $ac_files ''
3582 do
3583   test -f "$ac_file" || continue
3584   case $ac_file in
3585     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3586         ;;
3587     [ab].out )
3588         # We found the default executable, but exeext='' is most
3589         # certainly right.
3590         break;;
3591     *.* )
3592         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3593         then :; else
3594            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3595         fi
3596         # We set ac_cv_exeext here because the later test for it is not
3597         # safe: cross compilers may not add the suffix if given an `-o'
3598         # argument, so we may need to know it at that point already.
3599         # Even if this section looks crufty: it has the advantage of
3600         # actually working.
3601         break;;
3602     * )
3603         break;;
3604   esac
3605 done
3606 test "$ac_cv_exeext" = no && ac_cv_exeext=
3607
3608 else
3609   ac_file=''
3610 fi
3611 if test -z "$ac_file"; then :
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3614 $as_echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error 77 "C compiler cannot create executables
3620 See \`config.log' for more details" "$LINENO" 5; }
3621 else
3622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3623 $as_echo "yes" >&6; }
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3626 $as_echo_n "checking for C compiler default output file name... " >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3628 $as_echo "$ac_file" >&6; }
3629 ac_exeext=$ac_cv_exeext
3630
3631 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3632 ac_clean_files=$ac_clean_files_save
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3634 $as_echo_n "checking for suffix of executables... " >&6; }
3635 if { { ac_try="$ac_link"
3636 case "(($ac_try" in
3637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638   *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642   (eval "$ac_link") 2>&5
3643   ac_status=$?
3644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645   test $ac_status = 0; }; then :
3646   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3647 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3648 # work properly (i.e., refer to `conftest.exe'), while it won't with
3649 # `rm'.
3650 for ac_file in conftest.exe conftest conftest.*; do
3651   test -f "$ac_file" || continue
3652   case $ac_file in
3653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3654     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655           break;;
3656     * ) break;;
3657   esac
3658 done
3659 else
3660   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3663 See \`config.log' for more details" "$LINENO" 5; }
3664 fi
3665 rm -f conftest conftest$ac_cv_exeext
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3667 $as_echo "$ac_cv_exeext" >&6; }
3668
3669 rm -f conftest.$ac_ext
3670 EXEEXT=$ac_cv_exeext
3671 ac_exeext=$EXEEXT
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h.  */
3674 #include <stdio.h>
3675 int
3676 main ()
3677 {
3678 FILE *f = fopen ("conftest.out", "w");
3679  return ferror (f) || fclose (f) != 0;
3680
3681   ;
3682   return 0;
3683 }
3684 _ACEOF
3685 ac_clean_files="$ac_clean_files conftest.out"
3686 # Check that the compiler produces executables we can run.  If not, either
3687 # the compiler is broken, or we cross compile.
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3689 $as_echo_n "checking whether we are cross compiling... " >&6; }
3690 if test "$cross_compiling" != yes; then
3691   { { ac_try="$ac_link"
3692 case "(($ac_try" in
3693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694   *) ac_try_echo=$ac_try;;
3695 esac
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698   (eval "$ac_link") 2>&5
3699   ac_status=$?
3700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701   test $ac_status = 0; }
3702   if { ac_try='./conftest$ac_cv_exeext'
3703   { { case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 $as_echo "$ac_try_echo"; } >&5
3709   (eval "$ac_try") 2>&5
3710   ac_status=$?
3711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712   test $ac_status = 0; }; }; then
3713     cross_compiling=no
3714   else
3715     if test "$cross_compiling" = maybe; then
3716         cross_compiling=yes
3717     else
3718         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error $? "cannot run C compiled programs.
3721 If you meant to cross compile, use \`--host'.
3722 See \`config.log' for more details" "$LINENO" 5; }
3723     fi
3724   fi
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3727 $as_echo "$cross_compiling" >&6; }
3728
3729 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3730 ac_clean_files=$ac_clean_files_save
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3732 $as_echo_n "checking for suffix of object files... " >&6; }
3733 if ${ac_cv_objext+:} false; then :
3734   $as_echo_n "(cached) " >&6
3735 else
3736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h.  */
3738
3739 int
3740 main ()
3741 {
3742
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 rm -f conftest.o conftest.obj
3748 if { { ac_try="$ac_compile"
3749 case "(($ac_try" in
3750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751   *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755   (eval "$ac_compile") 2>&5
3756   ac_status=$?
3757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758   test $ac_status = 0; }; then :
3759   for ac_file in conftest.o conftest.obj conftest.*; do
3760   test -f "$ac_file" || continue;
3761   case $ac_file in
3762     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3763     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3764        break;;
3765   esac
3766 done
3767 else
3768   $as_echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773 as_fn_error $? "cannot compute suffix of object files: cannot compile
3774 See \`config.log' for more details" "$LINENO" 5; }
3775 fi
3776 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3779 $as_echo "$ac_cv_objext" >&6; }
3780 OBJEXT=$ac_cv_objext
3781 ac_objext=$OBJEXT
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3783 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3784 if ${ac_cv_c_compiler_gnu+:} false; then :
3785   $as_echo_n "(cached) " >&6
3786 else
3787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h.  */
3789
3790 int
3791 main ()
3792 {
3793 #ifndef __GNUC__
3794        choke me
3795 #endif
3796
3797   ;
3798   return 0;
3799 }
3800 _ACEOF
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802   ac_compiler_gnu=yes
3803 else
3804   ac_compiler_gnu=no
3805 fi
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3808
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3811 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3812 if test $ac_compiler_gnu = yes; then
3813   GCC=yes
3814 else
3815   GCC=
3816 fi
3817 ac_test_CFLAGS=${CFLAGS+set}
3818 ac_save_CFLAGS=$CFLAGS
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3820 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3821 if ${ac_cv_prog_cc_g+:} false; then :
3822   $as_echo_n "(cached) " >&6
3823 else
3824   ac_save_c_werror_flag=$ac_c_werror_flag
3825    ac_c_werror_flag=yes
3826    ac_cv_prog_cc_g=no
3827    CFLAGS="-g"
3828    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h.  */
3830
3831 int
3832 main ()
3833 {
3834
3835   ;
3836   return 0;
3837 }
3838 _ACEOF
3839 if ac_fn_c_try_compile "$LINENO"; then :
3840   ac_cv_prog_cc_g=yes
3841 else
3842   CFLAGS=""
3843       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h.  */
3845
3846 int
3847 main ()
3848 {
3849
3850   ;
3851   return 0;
3852 }
3853 _ACEOF
3854 if ac_fn_c_try_compile "$LINENO"; then :
3855
3856 else
3857   ac_c_werror_flag=$ac_save_c_werror_flag
3858          CFLAGS="-g"
3859          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h.  */
3861
3862 int
3863 main ()
3864 {
3865
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 if ac_fn_c_try_compile "$LINENO"; then :
3871   ac_cv_prog_cc_g=yes
3872 fi
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 fi
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 fi
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878    ac_c_werror_flag=$ac_save_c_werror_flag
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3881 $as_echo "$ac_cv_prog_cc_g" >&6; }
3882 if test "$ac_test_CFLAGS" = set; then
3883   CFLAGS=$ac_save_CFLAGS
3884 elif test $ac_cv_prog_cc_g = yes; then
3885   if test "$GCC" = yes; then
3886     CFLAGS="-g -O2"
3887   else
3888     CFLAGS="-g"
3889   fi
3890 else
3891   if test "$GCC" = yes; then
3892     CFLAGS="-O2"
3893   else
3894     CFLAGS=
3895   fi
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3898 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3899 if ${ac_cv_prog_cc_c89+:} false; then :
3900   $as_echo_n "(cached) " >&6
3901 else
3902   ac_cv_prog_cc_c89=no
3903 ac_save_CC=$CC
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906 #include <stdarg.h>
3907 #include <stdio.h>
3908 struct stat;
3909 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3910 struct buf { int x; };
3911 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3912 static char *e (p, i)
3913      char **p;
3914      int i;
3915 {
3916   return p[i];
3917 }
3918 static char *f (char * (*g) (char **, int), char **p, ...)
3919 {
3920   char *s;
3921   va_list v;
3922   va_start (v,p);
3923   s = g (p, va_arg (v,int));
3924   va_end (v);
3925   return s;
3926 }
3927
3928 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3929    function prototypes and stuff, but not '\xHH' hex character constants.
3930    These don't provoke an error unfortunately, instead are silently treated
3931    as 'x'.  The following induces an error, until -std is added to get
3932    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3933    array size at least.  It's necessary to write '\x00'==0 to get something
3934    that's true only with -std.  */
3935 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3936
3937 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3938    inside strings and character constants.  */
3939 #define FOO(x) 'x'
3940 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3941
3942 int test (int i, double x);
3943 struct s1 {int (*f) (int a);};
3944 struct s2 {int (*f) (double a);};
3945 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3946 int argc;
3947 char **argv;
3948 int
3949 main ()
3950 {
3951 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3952   ;
3953   return 0;
3954 }
3955 _ACEOF
3956 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3957         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3958 do
3959   CC="$ac_save_CC $ac_arg"
3960   if ac_fn_c_try_compile "$LINENO"; then :
3961   ac_cv_prog_cc_c89=$ac_arg
3962 fi
3963 rm -f core conftest.err conftest.$ac_objext
3964   test "x$ac_cv_prog_cc_c89" != "xno" && break
3965 done
3966 rm -f conftest.$ac_ext
3967 CC=$ac_save_CC
3968
3969 fi
3970 # AC_CACHE_VAL
3971 case "x$ac_cv_prog_cc_c89" in
3972   x)
3973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3974 $as_echo "none needed" >&6; } ;;
3975   xno)
3976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3977 $as_echo "unsupported" >&6; } ;;
3978   *)
3979     CC="$CC $ac_cv_prog_cc_c89"
3980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3981 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3982 esac
3983 if test "x$ac_cv_prog_cc_c89" != xno; then :
3984
3985 fi
3986
3987 ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992
3993 ac_ext=c
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3999 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4000 if ${am_cv_prog_cc_c_o+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h.  */
4005
4006 int
4007 main ()
4008 {
4009
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014   # Make sure it works both with $CC and with simple cc.
4015   # Following AC_PROG_CC_C_O, we do the test twice because some
4016   # compilers refuse to overwrite an existing .o file with -o,
4017   # though they will create one.
4018   am_cv_prog_cc_c_o=yes
4019   for am_i in 1 2; do
4020     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4021    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4022    ac_status=$?
4023    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024    (exit $ac_status); } \
4025          && test -f conftest2.$ac_objext; then
4026       : OK
4027     else
4028       am_cv_prog_cc_c_o=no
4029       break
4030     fi
4031   done
4032   rm -f core conftest*
4033   unset am_i
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4036 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4037 if test "$am_cv_prog_cc_c_o" != yes; then
4038    # Losing compiler, so override with the script.
4039    # FIXME: It is wrong to rewrite CC.
4040    # But if we don't then we get into trouble of one sort or another.
4041    # A longer-term fix would be to have automake use am__CC in this case,
4042    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4043    CC="$am_aux_dir/compile $CC"
4044 fi
4045 ac_ext=c
4046 ac_cpp='$CPP $CPPFLAGS'
4047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050
4051
4052 depcc="$CC"   am_compiler_list=
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4055 $as_echo_n "checking dependency style of $depcc... " >&6; }
4056 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4057   $as_echo_n "(cached) " >&6
4058 else
4059   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4060   # We make a subdir and do the tests there.  Otherwise we can end up
4061   # making bogus files that we don't know about and never remove.  For
4062   # instance it was reported that on HP-UX the gcc test will end up
4063   # making a dummy file named 'D' -- because '-MD' means "put the output
4064   # in D".
4065   rm -rf conftest.dir
4066   mkdir conftest.dir
4067   # Copy depcomp to subdir because otherwise we won't find it if we're
4068   # using a relative directory.
4069   cp "$am_depcomp" conftest.dir
4070   cd conftest.dir
4071   # We will build objects and dependencies in a subdirectory because
4072   # it helps to detect inapplicable dependency modes.  For instance
4073   # both Tru64's cc and ICC support -MD to output dependencies as a
4074   # side effect of compilation, but ICC will put the dependencies in
4075   # the current directory while Tru64 will put them in the object
4076   # directory.
4077   mkdir sub
4078
4079   am_cv_CC_dependencies_compiler_type=none
4080   if test "$am_compiler_list" = ""; then
4081      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4082   fi
4083   am__universal=false
4084   case " $depcc " in #(
4085      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4086      esac
4087
4088   for depmode in $am_compiler_list; do
4089     # Setup a source with many dependencies, because some compilers
4090     # like to wrap large dependency lists on column 80 (with \), and
4091     # we should not choose a depcomp mode which is confused by this.
4092     #
4093     # We need to recreate these files for each test, as the compiler may
4094     # overwrite some of them when testing with obscure command lines.
4095     # This happens at least with the AIX C compiler.
4096     : > sub/conftest.c
4097     for i in 1 2 3 4 5 6; do
4098       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4099       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4100       # Solaris 10 /bin/sh.
4101       echo '/* dummy */' > sub/conftst$i.h
4102     done
4103     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4104
4105     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4106     # mode.  It turns out that the SunPro C++ compiler does not properly
4107     # handle '-M -o', and we need to detect this.  Also, some Intel
4108     # versions had trouble with output in subdirs.
4109     am__obj=sub/conftest.${OBJEXT-o}
4110     am__minus_obj="-o $am__obj"
4111     case $depmode in
4112     gcc)
4113       # This depmode causes a compiler race in universal mode.
4114       test "$am__universal" = false || continue
4115       ;;
4116     nosideeffect)
4117       # After this tag, mechanisms are not by side-effect, so they'll
4118       # only be used when explicitly requested.
4119       if test "x$enable_dependency_tracking" = xyes; then
4120         continue
4121       else
4122         break
4123       fi
4124       ;;
4125     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4126       # This compiler won't grok '-c -o', but also, the minuso test has
4127       # not run yet.  These depmodes are late enough in the game, and
4128       # so weak that their functioning should not be impacted.
4129       am__obj=conftest.${OBJEXT-o}
4130       am__minus_obj=
4131       ;;
4132     none) break ;;
4133     esac
4134     if depmode=$depmode \
4135        source=sub/conftest.c object=$am__obj \
4136        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4137        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4138          >/dev/null 2>conftest.err &&
4139        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4140        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4141        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4142        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4143       # icc doesn't choke on unknown options, it will just issue warnings
4144       # or remarks (even with -Werror).  So we grep stderr for any message
4145       # that says an option was ignored or not supported.
4146       # When given -MP, icc 7.0 and 7.1 complain thusly:
4147       #   icc: Command line warning: ignoring option '-M'; no argument required
4148       # The diagnosis changed in icc 8.0:
4149       #   icc: Command line remark: option '-MP' not supported
4150       if (grep 'ignoring option' conftest.err ||
4151           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4152         am_cv_CC_dependencies_compiler_type=$depmode
4153         break
4154       fi
4155     fi
4156   done
4157
4158   cd ..
4159   rm -rf conftest.dir
4160 else
4161   am_cv_CC_dependencies_compiler_type=none
4162 fi
4163
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4166 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4167 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4168
4169  if
4170   test "x$enable_dependency_tracking" != xno \
4171   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4172   am__fastdepCC_TRUE=
4173   am__fastdepCC_FALSE='#'
4174 else
4175   am__fastdepCC_TRUE='#'
4176   am__fastdepCC_FALSE=
4177 fi
4178
4179
4180
4181 ac_ext=c
4182 ac_cpp='$CPP $CPPFLAGS'
4183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4187 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4188 # On Suns, sometimes $CPP names a directory.
4189 if test -n "$CPP" && test -d "$CPP"; then
4190   CPP=
4191 fi
4192 if test -z "$CPP"; then
4193   if ${ac_cv_prog_CPP+:} false; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196       # Double quotes because CPP needs to be expanded
4197     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4198     do
4199       ac_preproc_ok=false
4200 for ac_c_preproc_warn_flag in '' yes
4201 do
4202   # Use a header file that comes with gcc, so configuring glibc
4203   # with a fresh cross-compiler works.
4204   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205   # <limits.h> exists even on freestanding compilers.
4206   # On the NeXT, cc -E runs the code through the compiler's parser,
4207   # not just through cpp. "Syntax error" is here to catch this case.
4208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h.  */
4210 #ifdef __STDC__
4211 # include <limits.h>
4212 #else
4213 # include <assert.h>
4214 #endif
4215                      Syntax error
4216 _ACEOF
4217 if ac_fn_c_try_cpp "$LINENO"; then :
4218
4219 else
4220   # Broken: fails on valid input.
4221 continue
4222 fi
4223 rm -f conftest.err conftest.i conftest.$ac_ext
4224
4225   # OK, works on sane cases.  Now check whether nonexistent headers
4226   # can be detected and how.
4227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h.  */
4229 #include <ac_nonexistent.h>
4230 _ACEOF
4231 if ac_fn_c_try_cpp "$LINENO"; then :
4232   # Broken: success on invalid input.
4233 continue
4234 else
4235   # Passes both tests.
4236 ac_preproc_ok=:
4237 break
4238 fi
4239 rm -f conftest.err conftest.i conftest.$ac_ext
4240
4241 done
4242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4243 rm -f conftest.i conftest.err conftest.$ac_ext
4244 if $ac_preproc_ok; then :
4245   break
4246 fi
4247
4248     done
4249     ac_cv_prog_CPP=$CPP
4250
4251 fi
4252   CPP=$ac_cv_prog_CPP
4253 else
4254   ac_cv_prog_CPP=$CPP
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4257 $as_echo "$CPP" >&6; }
4258 ac_preproc_ok=false
4259 for ac_c_preproc_warn_flag in '' yes
4260 do
4261   # Use a header file that comes with gcc, so configuring glibc
4262   # with a fresh cross-compiler works.
4263   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4264   # <limits.h> exists even on freestanding compilers.
4265   # On the NeXT, cc -E runs the code through the compiler's parser,
4266   # not just through cpp. "Syntax error" is here to catch this case.
4267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h.  */
4269 #ifdef __STDC__
4270 # include <limits.h>
4271 #else
4272 # include <assert.h>
4273 #endif
4274                      Syntax error
4275 _ACEOF
4276 if ac_fn_c_try_cpp "$LINENO"; then :
4277
4278 else
4279   # Broken: fails on valid input.
4280 continue
4281 fi
4282 rm -f conftest.err conftest.i conftest.$ac_ext
4283
4284   # OK, works on sane cases.  Now check whether nonexistent headers
4285   # can be detected and how.
4286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h.  */
4288 #include <ac_nonexistent.h>
4289 _ACEOF
4290 if ac_fn_c_try_cpp "$LINENO"; then :
4291   # Broken: success on invalid input.
4292 continue
4293 else
4294   # Passes both tests.
4295 ac_preproc_ok=:
4296 break
4297 fi
4298 rm -f conftest.err conftest.i conftest.$ac_ext
4299
4300 done
4301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4302 rm -f conftest.i conftest.err conftest.$ac_ext
4303 if $ac_preproc_ok; then :
4304
4305 else
4306   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4309 See \`config.log' for more details" "$LINENO" 5; }
4310 fi
4311
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4320 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4321 if ${ac_cv_path_GREP+:} false; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324   if test -z "$GREP"; then
4325   ac_path_GREP_found=false
4326   # Loop through the user's path and test for each of PROGNAME-LIST
4327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 do
4330   IFS=$as_save_IFS
4331   test -z "$as_dir" && as_dir=.
4332     for ac_prog in grep ggrep; do
4333     for ac_exec_ext in '' $ac_executable_extensions; do
4334       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4335       as_fn_executable_p "$ac_path_GREP" || continue
4336 # Check for GNU ac_path_GREP and select it if it is found.
4337   # Check for GNU $ac_path_GREP
4338 case `"$ac_path_GREP" --version 2>&1` in
4339 *GNU*)
4340   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4341 *)
4342   ac_count=0
4343   $as_echo_n 0123456789 >"conftest.in"
4344   while :
4345   do
4346     cat "conftest.in" "conftest.in" >"conftest.tmp"
4347     mv "conftest.tmp" "conftest.in"
4348     cp "conftest.in" "conftest.nl"
4349     $as_echo 'GREP' >> "conftest.nl"
4350     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4352     as_fn_arith $ac_count + 1 && ac_count=$as_val
4353     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4354       # Best one so far, save it but keep looking for a better one
4355       ac_cv_path_GREP="$ac_path_GREP"
4356       ac_path_GREP_max=$ac_count
4357     fi
4358     # 10*(2^10) chars as input seems more than enough
4359     test $ac_count -gt 10 && break
4360   done
4361   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362 esac
4363
4364       $ac_path_GREP_found && break 3
4365     done
4366   done
4367   done
4368 IFS=$as_save_IFS
4369   if test -z "$ac_cv_path_GREP"; then
4370     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4371   fi
4372 else
4373   ac_cv_path_GREP=$GREP
4374 fi
4375
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4378 $as_echo "$ac_cv_path_GREP" >&6; }
4379  GREP="$ac_cv_path_GREP"
4380
4381
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4383 $as_echo_n "checking for egrep... " >&6; }
4384 if ${ac_cv_path_EGREP+:} false; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4388    then ac_cv_path_EGREP="$GREP -E"
4389    else
4390      if test -z "$EGREP"; then
4391   ac_path_EGREP_found=false
4392   # Loop through the user's path and test for each of PROGNAME-LIST
4393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398     for ac_prog in egrep; do
4399     for ac_exec_ext in '' $ac_executable_extensions; do
4400       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4401       as_fn_executable_p "$ac_path_EGREP" || continue
4402 # Check for GNU ac_path_EGREP and select it if it is found.
4403   # Check for GNU $ac_path_EGREP
4404 case `"$ac_path_EGREP" --version 2>&1` in
4405 *GNU*)
4406   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4407 *)
4408   ac_count=0
4409   $as_echo_n 0123456789 >"conftest.in"
4410   while :
4411   do
4412     cat "conftest.in" "conftest.in" >"conftest.tmp"
4413     mv "conftest.tmp" "conftest.in"
4414     cp "conftest.in" "conftest.nl"
4415     $as_echo 'EGREP' >> "conftest.nl"
4416     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418     as_fn_arith $ac_count + 1 && ac_count=$as_val
4419     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4420       # Best one so far, save it but keep looking for a better one
4421       ac_cv_path_EGREP="$ac_path_EGREP"
4422       ac_path_EGREP_max=$ac_count
4423     fi
4424     # 10*(2^10) chars as input seems more than enough
4425     test $ac_count -gt 10 && break
4426   done
4427   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428 esac
4429
4430       $ac_path_EGREP_found && break 3
4431     done
4432   done
4433   done
4434 IFS=$as_save_IFS
4435   if test -z "$ac_cv_path_EGREP"; then
4436     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4437   fi
4438 else
4439   ac_cv_path_EGREP=$EGREP
4440 fi
4441
4442    fi
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4445 $as_echo "$ac_cv_path_EGREP" >&6; }
4446  EGREP="$ac_cv_path_EGREP"
4447
4448
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4450 $as_echo_n "checking for ANSI C header files... " >&6; }
4451 if ${ac_cv_header_stdc+:} false; then :
4452   $as_echo_n "(cached) " >&6
4453 else
4454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h.  */
4456 #include <stdlib.h>
4457 #include <stdarg.h>
4458 #include <string.h>
4459 #include <float.h>
4460
4461 int
4462 main ()
4463 {
4464
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470   ac_cv_header_stdc=yes
4471 else
4472   ac_cv_header_stdc=no
4473 fi
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475
4476 if test $ac_cv_header_stdc = yes; then
4477   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h.  */
4480 #include <string.h>
4481
4482 _ACEOF
4483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484   $EGREP "memchr" >/dev/null 2>&1; then :
4485
4486 else
4487   ac_cv_header_stdc=no
4488 fi
4489 rm -f conftest*
4490
4491 fi
4492
4493 if test $ac_cv_header_stdc = yes; then
4494   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h.  */
4497 #include <stdlib.h>
4498
4499 _ACEOF
4500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4501   $EGREP "free" >/dev/null 2>&1; then :
4502
4503 else
4504   ac_cv_header_stdc=no
4505 fi
4506 rm -f conftest*
4507
4508 fi
4509
4510 if test $ac_cv_header_stdc = yes; then
4511   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4512   if test "$cross_compiling" = yes; then :
4513   :
4514 else
4515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h.  */
4517 #include <ctype.h>
4518 #include <stdlib.h>
4519 #if ((' ' & 0x0FF) == 0x020)
4520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4522 #else
4523 # define ISLOWER(c) \
4524                    (('a' <= (c) && (c) <= 'i') \
4525                      || ('j' <= (c) && (c) <= 'r') \
4526                      || ('s' <= (c) && (c) <= 'z'))
4527 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4528 #endif
4529
4530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4531 int
4532 main ()
4533 {
4534   int i;
4535   for (i = 0; i < 256; i++)
4536     if (XOR (islower (i), ISLOWER (i))
4537         || toupper (i) != TOUPPER (i))
4538       return 2;
4539   return 0;
4540 }
4541 _ACEOF
4542 if ac_fn_c_try_run "$LINENO"; then :
4543
4544 else
4545   ac_cv_header_stdc=no
4546 fi
4547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4548   conftest.$ac_objext conftest.beam conftest.$ac_ext
4549 fi
4550
4551 fi
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4554 $as_echo "$ac_cv_header_stdc" >&6; }
4555 if test $ac_cv_header_stdc = yes; then
4556
4557 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4558
4559 fi
4560
4561 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4562 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4563                   inttypes.h stdint.h unistd.h
4564 do :
4565   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4566 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4567 "
4568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4569   cat >>confdefs.h <<_ACEOF
4570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571 _ACEOF
4572
4573 fi
4574
4575 done
4576
4577
4578
4579   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4580 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4581   MINIX=yes
4582 else
4583   MINIX=
4584 fi
4585
4586
4587   if test "$MINIX" = yes; then
4588
4589 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4590
4591
4592 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4593
4594
4595 $as_echo "#define _MINIX 1" >>confdefs.h
4596
4597   fi
4598
4599
4600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4601 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4602 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h.  */
4607
4608 #         define __EXTENSIONS__ 1
4609           $ac_includes_default
4610 int
4611 main ()
4612 {
4613
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619   ac_cv_safe_to_define___extensions__=yes
4620 else
4621   ac_cv_safe_to_define___extensions__=no
4622 fi
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4626 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4627   test $ac_cv_safe_to_define___extensions__ = yes &&
4628     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4629
4630   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4631
4632   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4633
4634   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4635
4636   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4637
4638
4639
4640
4641 case `pwd` in
4642   *\ * | *\     *)
4643     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4644 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4645 esac
4646
4647
4648
4649 macro_version='2.4.2'
4650 macro_revision='1.3337'
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664 ltmain="$ac_aux_dir/ltmain.sh"
4665
4666 # Backslashify metacharacters that are still active within
4667 # double-quoted strings.
4668 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4669
4670 # Same as above, but do not quote variable references.
4671 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4672
4673 # Sed substitution to delay expansion of an escaped shell variable in a
4674 # double_quote_subst'ed string.
4675 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4676
4677 # Sed substitution to delay expansion of an escaped single quote.
4678 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4679
4680 # Sed substitution to avoid accidental globbing in evaled expressions
4681 no_glob_subst='s/\*/\\\*/g'
4682
4683 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4685 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4688 $as_echo_n "checking how to print strings... " >&6; }
4689 # Test print first, because it will be a builtin if present.
4690 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4691    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4692   ECHO='print -r --'
4693 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4694   ECHO='printf %s\n'
4695 else
4696   # Use this function as a fallback that always works.
4697   func_fallback_echo ()
4698   {
4699     eval 'cat <<_LTECHO_EOF
4700 $1
4701 _LTECHO_EOF'
4702   }
4703   ECHO='func_fallback_echo'
4704 fi
4705
4706 # func_echo_all arg...
4707 # Invoke $ECHO with all args, space-separated.
4708 func_echo_all ()
4709 {
4710     $ECHO ""
4711 }
4712
4713 case "$ECHO" in
4714   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4715 $as_echo "printf" >&6; } ;;
4716   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4717 $as_echo "print -r" >&6; } ;;
4718   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4719 $as_echo "cat" >&6; } ;;
4720 esac
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4736 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4737 if ${ac_cv_path_SED+:} false; then :
4738   $as_echo_n "(cached) " >&6
4739 else
4740             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4741      for ac_i in 1 2 3 4 5 6 7; do
4742        ac_script="$ac_script$as_nl$ac_script"
4743      done
4744      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4745      { ac_script=; unset ac_script;}
4746      if test -z "$SED"; then
4747   ac_path_SED_found=false
4748   # Loop through the user's path and test for each of PROGNAME-LIST
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_prog in sed gsed; do
4755     for ac_exec_ext in '' $ac_executable_extensions; do
4756       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4757       as_fn_executable_p "$ac_path_SED" || continue
4758 # Check for GNU ac_path_SED and select it if it is found.
4759   # Check for GNU $ac_path_SED
4760 case `"$ac_path_SED" --version 2>&1` in
4761 *GNU*)
4762   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4763 *)
4764   ac_count=0
4765   $as_echo_n 0123456789 >"conftest.in"
4766   while :
4767   do
4768     cat "conftest.in" "conftest.in" >"conftest.tmp"
4769     mv "conftest.tmp" "conftest.in"
4770     cp "conftest.in" "conftest.nl"
4771     $as_echo '' >> "conftest.nl"
4772     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4773     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4774     as_fn_arith $ac_count + 1 && ac_count=$as_val
4775     if test $ac_count -gt ${ac_path_SED_max-0}; then
4776       # Best one so far, save it but keep looking for a better one
4777       ac_cv_path_SED="$ac_path_SED"
4778       ac_path_SED_max=$ac_count
4779     fi
4780     # 10*(2^10) chars as input seems more than enough
4781     test $ac_count -gt 10 && break
4782   done
4783   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4784 esac
4785
4786       $ac_path_SED_found && break 3
4787     done
4788   done
4789   done
4790 IFS=$as_save_IFS
4791   if test -z "$ac_cv_path_SED"; then
4792     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4793   fi
4794 else
4795   ac_cv_path_SED=$SED
4796 fi
4797
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4800 $as_echo "$ac_cv_path_SED" >&6; }
4801  SED="$ac_cv_path_SED"
4802   rm -f conftest.sed
4803
4804 test -z "$SED" && SED=sed
4805 Xsed="$SED -e 1s/^X//"
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4818 $as_echo_n "checking for fgrep... " >&6; }
4819 if ${ac_cv_path_FGREP+:} false; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4823    then ac_cv_path_FGREP="$GREP -F"
4824    else
4825      if test -z "$FGREP"; then
4826   ac_path_FGREP_found=false
4827   # Loop through the user's path and test for each of PROGNAME-LIST
4828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833     for ac_prog in fgrep; do
4834     for ac_exec_ext in '' $ac_executable_extensions; do
4835       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4836       as_fn_executable_p "$ac_path_FGREP" || continue
4837 # Check for GNU ac_path_FGREP and select it if it is found.
4838   # Check for GNU $ac_path_FGREP
4839 case `"$ac_path_FGREP" --version 2>&1` in
4840 *GNU*)
4841   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4842 *)
4843   ac_count=0
4844   $as_echo_n 0123456789 >"conftest.in"
4845   while :
4846   do
4847     cat "conftest.in" "conftest.in" >"conftest.tmp"
4848     mv "conftest.tmp" "conftest.in"
4849     cp "conftest.in" "conftest.nl"
4850     $as_echo 'FGREP' >> "conftest.nl"
4851     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4852     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4853     as_fn_arith $ac_count + 1 && ac_count=$as_val
4854     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4855       # Best one so far, save it but keep looking for a better one
4856       ac_cv_path_FGREP="$ac_path_FGREP"
4857       ac_path_FGREP_max=$ac_count
4858     fi
4859     # 10*(2^10) chars as input seems more than enough
4860     test $ac_count -gt 10 && break
4861   done
4862   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4863 esac
4864
4865       $ac_path_FGREP_found && break 3
4866     done
4867   done
4868   done
4869 IFS=$as_save_IFS
4870   if test -z "$ac_cv_path_FGREP"; then
4871     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4872   fi
4873 else
4874   ac_cv_path_FGREP=$FGREP
4875 fi
4876
4877    fi
4878 fi
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4880 $as_echo "$ac_cv_path_FGREP" >&6; }
4881  FGREP="$ac_cv_path_FGREP"
4882
4883
4884 test -z "$GREP" && GREP=grep
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904 # Check whether --with-gnu-ld was given.
4905 if test "${with_gnu_ld+set}" = set; then :
4906   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4907 else
4908   with_gnu_ld=no
4909 fi
4910
4911 ac_prog=ld
4912 if test "$GCC" = yes; then
4913   # Check if gcc -print-prog-name=ld gives a path.
4914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4915 $as_echo_n "checking for ld used by $CC... " >&6; }
4916   case $host in
4917   *-*-mingw*)
4918     # gcc leaves a trailing carriage return which upsets mingw
4919     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4920   *)
4921     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4922   esac
4923   case $ac_prog in
4924     # Accept absolute paths.
4925     [\\/]* | ?:[\\/]*)
4926       re_direlt='/[^/][^/]*/\.\./'
4927       # Canonicalize the pathname of ld
4928       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4929       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4930         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4931       done
4932       test -z "$LD" && LD="$ac_prog"
4933       ;;
4934   "")
4935     # If it fails, then pretend we aren't using GCC.
4936     ac_prog=ld
4937     ;;
4938   *)
4939     # If it is relative, then search for the first ld in PATH.
4940     with_gnu_ld=unknown
4941     ;;
4942   esac
4943 elif test "$with_gnu_ld" = yes; then
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4945 $as_echo_n "checking for GNU ld... " >&6; }
4946 else
4947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4948 $as_echo_n "checking for non-GNU ld... " >&6; }
4949 fi
4950 if ${lt_cv_path_LD+:} false; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   if test -z "$LD"; then
4954   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4955   for ac_dir in $PATH; do
4956     IFS="$lt_save_ifs"
4957     test -z "$ac_dir" && ac_dir=.
4958     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4959       lt_cv_path_LD="$ac_dir/$ac_prog"
4960       # Check to see if the program is GNU ld.  I'd rather use --version,
4961       # but apparently some variants of GNU ld only accept -v.
4962       # Break only if it was the GNU/non-GNU ld that we prefer.
4963       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4964       *GNU* | *'with BFD'*)
4965         test "$with_gnu_ld" != no && break
4966         ;;
4967       *)
4968         test "$with_gnu_ld" != yes && break
4969         ;;
4970       esac
4971     fi
4972   done
4973   IFS="$lt_save_ifs"
4974 else
4975   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4976 fi
4977 fi
4978
4979 LD="$lt_cv_path_LD"
4980 if test -n "$LD"; then
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4982 $as_echo "$LD" >&6; }
4983 else
4984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4986 fi
4987 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4989 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4990 if ${lt_cv_prog_gnu_ld+:} false; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4994 case `$LD -v 2>&1 </dev/null` in
4995 *GNU* | *'with BFD'*)
4996   lt_cv_prog_gnu_ld=yes
4997   ;;
4998 *)
4999   lt_cv_prog_gnu_ld=no
5000   ;;
5001 esac
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5004 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5005 with_gnu_ld=$lt_cv_prog_gnu_ld
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5016 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5017 if ${lt_cv_path_NM+:} false; then :
5018   $as_echo_n "(cached) " >&6
5019 else
5020   if test -n "$NM"; then
5021   # Let the user override the test.
5022   lt_cv_path_NM="$NM"
5023 else
5024   lt_nm_to_check="${ac_tool_prefix}nm"
5025   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5026     lt_nm_to_check="$lt_nm_to_check nm"
5027   fi
5028   for lt_tmp_nm in $lt_nm_to_check; do
5029     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5030     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5031       IFS="$lt_save_ifs"
5032       test -z "$ac_dir" && ac_dir=.
5033       tmp_nm="$ac_dir/$lt_tmp_nm"
5034       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5035         # Check to see if the nm accepts a BSD-compat flag.
5036         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5037         #   nm: unknown option "B" ignored
5038         # Tru64's nm complains that /dev/null is an invalid object file
5039         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5040         */dev/null* | *'Invalid file or object type'*)
5041           lt_cv_path_NM="$tmp_nm -B"
5042           break
5043           ;;
5044         *)
5045           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5046           */dev/null*)
5047             lt_cv_path_NM="$tmp_nm -p"
5048             break
5049             ;;
5050           *)
5051             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5052             continue # so that we can try to find one that supports BSD flags
5053             ;;
5054           esac
5055           ;;
5056         esac
5057       fi
5058     done
5059     IFS="$lt_save_ifs"
5060   done
5061   : ${lt_cv_path_NM=no}
5062 fi
5063 fi
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5065 $as_echo "$lt_cv_path_NM" >&6; }
5066 if test "$lt_cv_path_NM" != "no"; then
5067   NM="$lt_cv_path_NM"
5068 else
5069   # Didn't find any BSD compatible name lister, look for dumpbin.
5070   if test -n "$DUMPBIN"; then :
5071     # Let the user override the test.
5072   else
5073     if test -n "$ac_tool_prefix"; then
5074   for ac_prog in dumpbin "link -dump"
5075   do
5076     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_prog_DUMPBIN+:} false; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   if test -n "$DUMPBIN"; then
5084   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089   IFS=$as_save_IFS
5090   test -z "$as_dir" && as_dir=.
5091     for ac_exec_ext in '' $ac_executable_extensions; do
5092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095     break 2
5096   fi
5097 done
5098   done
5099 IFS=$as_save_IFS
5100
5101 fi
5102 fi
5103 DUMPBIN=$ac_cv_prog_DUMPBIN
5104 if test -n "$DUMPBIN"; then
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5106 $as_echo "$DUMPBIN" >&6; }
5107 else
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5110 fi
5111
5112
5113     test -n "$DUMPBIN" && break
5114   done
5115 fi
5116 if test -z "$DUMPBIN"; then
5117   ac_ct_DUMPBIN=$DUMPBIN
5118   for ac_prog in dumpbin "link -dump"
5119 do
5120   # Extract the first word of "$ac_prog", so it can be a program name with args.
5121 set dummy $ac_prog; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5125   $as_echo_n "(cached) " >&6
5126 else
5127   if test -n "$ac_ct_DUMPBIN"; then
5128   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133   IFS=$as_save_IFS
5134   test -z "$as_dir" && as_dir=.
5135     for ac_exec_ext in '' $ac_executable_extensions; do
5136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139     break 2
5140   fi
5141 done
5142   done
5143 IFS=$as_save_IFS
5144
5145 fi
5146 fi
5147 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5148 if test -n "$ac_ct_DUMPBIN"; then
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5150 $as_echo "$ac_ct_DUMPBIN" >&6; }
5151 else
5152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5154 fi
5155
5156
5157   test -n "$ac_ct_DUMPBIN" && break
5158 done
5159
5160   if test "x$ac_ct_DUMPBIN" = x; then
5161     DUMPBIN=":"
5162   else
5163     case $cross_compiling:$ac_tool_warned in
5164 yes:)
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167 ac_tool_warned=yes ;;
5168 esac
5169     DUMPBIN=$ac_ct_DUMPBIN
5170   fi
5171 fi
5172
5173     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5174     *COFF*)
5175       DUMPBIN="$DUMPBIN -symbols"
5176       ;;
5177     *)
5178       DUMPBIN=:
5179       ;;
5180     esac
5181   fi
5182
5183   if test "$DUMPBIN" != ":"; then
5184     NM="$DUMPBIN"
5185   fi
5186 fi
5187 test -z "$NM" && NM=nm
5188
5189
5190
5191
5192
5193
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5195 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5196 if ${lt_cv_nm_interface+:} false; then :
5197   $as_echo_n "(cached) " >&6
5198 else
5199   lt_cv_nm_interface="BSD nm"
5200   echo "int some_variable = 0;" > conftest.$ac_ext
5201   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5202   (eval "$ac_compile" 2>conftest.err)
5203   cat conftest.err >&5
5204   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5205   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5206   cat conftest.err >&5
5207   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5208   cat conftest.out >&5
5209   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5210     lt_cv_nm_interface="MS dumpbin"
5211   fi
5212   rm -f conftest*
5213 fi
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5215 $as_echo "$lt_cv_nm_interface" >&6; }
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5218 $as_echo_n "checking whether ln -s works... " >&6; }
5219 LN_S=$as_ln_s
5220 if test "$LN_S" = "ln -s"; then
5221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5222 $as_echo "yes" >&6; }
5223 else
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5225 $as_echo "no, using $LN_S" >&6; }
5226 fi
5227
5228 # find the maximum length of command line arguments
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5230 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5231 if ${lt_cv_sys_max_cmd_len+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234     i=0
5235   teststring="ABCD"
5236
5237   case $build_os in
5238   msdosdjgpp*)
5239     # On DJGPP, this test can blow up pretty badly due to problems in libc
5240     # (any single argument exceeding 2000 bytes causes a buffer overrun
5241     # during glob expansion).  Even if it were fixed, the result of this
5242     # check would be larger than it should be.
5243     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5244     ;;
5245
5246   gnu*)
5247     # Under GNU Hurd, this test is not required because there is
5248     # no limit to the length of command line arguments.
5249     # Libtool will interpret -1 as no limit whatsoever
5250     lt_cv_sys_max_cmd_len=-1;
5251     ;;
5252
5253   cygwin* | mingw* | cegcc*)
5254     # On Win9x/ME, this test blows up -- it succeeds, but takes
5255     # about 5 minutes as the teststring grows exponentially.
5256     # Worse, since 9x/ME are not pre-emptively multitasking,
5257     # you end up with a "frozen" computer, even though with patience
5258     # the test eventually succeeds (with a max line length of 256k).
5259     # Instead, let's just punt: use the minimum linelength reported by
5260     # all of the supported platforms: 8192 (on NT/2K/XP).
5261     lt_cv_sys_max_cmd_len=8192;
5262     ;;
5263
5264   mint*)
5265     # On MiNT this can take a long time and run out of memory.
5266     lt_cv_sys_max_cmd_len=8192;
5267     ;;
5268
5269   amigaos*)
5270     # On AmigaOS with pdksh, this test takes hours, literally.
5271     # So we just punt and use a minimum line length of 8192.
5272     lt_cv_sys_max_cmd_len=8192;
5273     ;;
5274
5275   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5276     # This has been around since 386BSD, at least.  Likely further.
5277     if test -x /sbin/sysctl; then
5278       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5279     elif test -x /usr/sbin/sysctl; then
5280       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5281     else
5282       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5283     fi
5284     # And add a safety zone
5285     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5286     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5287     ;;
5288
5289   interix*)
5290     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5291     lt_cv_sys_max_cmd_len=196608
5292     ;;
5293
5294   os2*)
5295     # The test takes a long time on OS/2.
5296     lt_cv_sys_max_cmd_len=8192
5297     ;;
5298
5299   osf*)
5300     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5301     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5302     # nice to cause kernel panics so lets avoid the loop below.
5303     # First set a reasonable default.
5304     lt_cv_sys_max_cmd_len=16384
5305     #
5306     if test -x /sbin/sysconfig; then
5307       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5308         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5309       esac
5310     fi
5311     ;;
5312   sco3.2v5*)
5313     lt_cv_sys_max_cmd_len=102400
5314     ;;
5315   sysv5* | sco5v6* | sysv4.2uw2*)
5316     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5317     if test -n "$kargmax"; then
5318       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5319     else
5320       lt_cv_sys_max_cmd_len=32768
5321     fi
5322     ;;
5323   *)
5324     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5325     if test -n "$lt_cv_sys_max_cmd_len"; then
5326       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5327       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5328     else
5329       # Make teststring a little bigger before we do anything with it.
5330       # a 1K string should be a reasonable start.
5331       for i in 1 2 3 4 5 6 7 8 ; do
5332         teststring=$teststring$teststring
5333       done
5334       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5335       # If test is not a shell built-in, we'll probably end up computing a
5336       # maximum length that is only half of the actual maximum length, but
5337       # we can't tell.
5338       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5339                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5340               test $i != 17 # 1/2 MB should be enough
5341       do
5342         i=`expr $i + 1`
5343         teststring=$teststring$teststring
5344       done
5345       # Only check the string length outside the loop.
5346       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5347       teststring=
5348       # Add a significant safety factor because C++ compilers can tack on
5349       # massive amounts of additional arguments before passing them to the
5350       # linker.  It appears as though 1/2 is a usable value.
5351       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5352     fi
5353     ;;
5354   esac
5355
5356 fi
5357
5358 if test -n $lt_cv_sys_max_cmd_len ; then
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5360 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5361 else
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5363 $as_echo "none" >&6; }
5364 fi
5365 max_cmd_len=$lt_cv_sys_max_cmd_len
5366
5367
5368
5369
5370
5371
5372 : ${CP="cp -f"}
5373 : ${MV="mv -f"}
5374 : ${RM="rm -f"}
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5377 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5378 # Try some XSI features
5379 xsi_shell=no
5380 ( _lt_dummy="a/b/c"
5381   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5382       = c,a/b,b/c, \
5383     && eval 'test $(( 1 + 1 )) -eq 2 \
5384     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5385   && xsi_shell=yes
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5387 $as_echo "$xsi_shell" >&6; }
5388
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5391 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5392 lt_shell_append=no
5393 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5394     >/dev/null 2>&1 \
5395   && lt_shell_append=yes
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5397 $as_echo "$lt_shell_append" >&6; }
5398
5399
5400 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5401   lt_unset=unset
5402 else
5403   lt_unset=false
5404 fi
5405
5406
5407
5408
5409
5410 # test EBCDIC or ASCII
5411 case `echo X|tr X '\101'` in
5412  A) # ASCII based system
5413     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5414   lt_SP2NL='tr \040 \012'
5415   lt_NL2SP='tr \015\012 \040\040'
5416   ;;
5417  *) # EBCDIC based system
5418   lt_SP2NL='tr \100 \n'
5419   lt_NL2SP='tr \r\n \100\100'
5420   ;;
5421 esac
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5432 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5433 if ${lt_cv_to_host_file_cmd+:} false; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   case $host in
5437   *-*-mingw* )
5438     case $build in
5439       *-*-mingw* ) # actually msys
5440         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5441         ;;
5442       *-*-cygwin* )
5443         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5444         ;;
5445       * ) # otherwise, assume *nix
5446         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5447         ;;
5448     esac
5449     ;;
5450   *-*-cygwin* )
5451     case $build in
5452       *-*-mingw* ) # actually msys
5453         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5454         ;;
5455       *-*-cygwin* )
5456         lt_cv_to_host_file_cmd=func_convert_file_noop
5457         ;;
5458       * ) # otherwise, assume *nix
5459         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5460         ;;
5461     esac
5462     ;;
5463   * ) # unhandled hosts (and "normal" native builds)
5464     lt_cv_to_host_file_cmd=func_convert_file_noop
5465     ;;
5466 esac
5467
5468 fi
5469
5470 to_host_file_cmd=$lt_cv_to_host_file_cmd
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5472 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5473
5474
5475
5476
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5479 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5480 if ${lt_cv_to_tool_file_cmd+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   #assume ordinary cross tools, or native build.
5484 lt_cv_to_tool_file_cmd=func_convert_file_noop
5485 case $host in
5486   *-*-mingw* )
5487     case $build in
5488       *-*-mingw* ) # actually msys
5489         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5490         ;;
5491     esac
5492     ;;
5493 esac
5494
5495 fi
5496
5497 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5499 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5500
5501
5502
5503
5504
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5506 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5507 if ${lt_cv_ld_reload_flag+:} false; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510   lt_cv_ld_reload_flag='-r'
5511 fi
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5513 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5514 reload_flag=$lt_cv_ld_reload_flag
5515 case $reload_flag in
5516 "" | " "*) ;;
5517 *) reload_flag=" $reload_flag" ;;
5518 esac
5519 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5520 case $host_os in
5521   cygwin* | mingw* | pw32* | cegcc*)
5522     if test "$GCC" != yes; then
5523       reload_cmds=false
5524     fi
5525     ;;
5526   darwin*)
5527     if test "$GCC" = yes; then
5528       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5529     else
5530       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5531     fi
5532     ;;
5533 esac
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 if test -n "$ac_tool_prefix"; then
5544   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5545 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_OBJDUMP+:} false; then :
5549   $as_echo_n "(cached) " >&6
5550 else
5551   if test -n "$OBJDUMP"; then
5552   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557   IFS=$as_save_IFS
5558   test -z "$as_dir" && as_dir=.
5559     for ac_exec_ext in '' $ac_executable_extensions; do
5560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563     break 2
5564   fi
5565 done
5566   done
5567 IFS=$as_save_IFS
5568
5569 fi
5570 fi
5571 OBJDUMP=$ac_cv_prog_OBJDUMP
5572 if test -n "$OBJDUMP"; then
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5574 $as_echo "$OBJDUMP" >&6; }
5575 else
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5578 fi
5579
5580
5581 fi
5582 if test -z "$ac_cv_prog_OBJDUMP"; then
5583   ac_ct_OBJDUMP=$OBJDUMP
5584   # Extract the first word of "objdump", so it can be a program name with args.
5585 set dummy objdump; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5589   $as_echo_n "(cached) " >&6
5590 else
5591   if test -n "$ac_ct_OBJDUMP"; then
5592   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597   IFS=$as_save_IFS
5598   test -z "$as_dir" && as_dir=.
5599     for ac_exec_ext in '' $ac_executable_extensions; do
5600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603     break 2
5604   fi
5605 done
5606   done
5607 IFS=$as_save_IFS
5608
5609 fi
5610 fi
5611 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5612 if test -n "$ac_ct_OBJDUMP"; then
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5614 $as_echo "$ac_ct_OBJDUMP" >&6; }
5615 else
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5618 fi
5619
5620   if test "x$ac_ct_OBJDUMP" = x; then
5621     OBJDUMP="false"
5622   else
5623     case $cross_compiling:$ac_tool_warned in
5624 yes:)
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned=yes ;;
5628 esac
5629     OBJDUMP=$ac_ct_OBJDUMP
5630   fi
5631 else
5632   OBJDUMP="$ac_cv_prog_OBJDUMP"
5633 fi
5634
5635 test -z "$OBJDUMP" && OBJDUMP=objdump
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5646 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5647 if ${lt_cv_deplibs_check_method+:} false; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   lt_cv_file_magic_cmd='$MAGIC_CMD'
5651 lt_cv_file_magic_test_file=
5652 lt_cv_deplibs_check_method='unknown'
5653 # Need to set the preceding variable on all platforms that support
5654 # interlibrary dependencies.
5655 # 'none' -- dependencies not supported.
5656 # `unknown' -- same as none, but documents that we really don't know.
5657 # 'pass_all' -- all dependencies passed with no checks.
5658 # 'test_compile' -- check by making test program.
5659 # 'file_magic [[regex]]' -- check by looking for files in library path
5660 # which responds to the $file_magic_cmd with a given extended regex.
5661 # If you have `file' or equivalent on your system and you're not sure
5662 # whether `pass_all' will *always* work, you probably want this one.
5663
5664 case $host_os in
5665 aix[4-9]*)
5666   lt_cv_deplibs_check_method=pass_all
5667   ;;
5668
5669 beos*)
5670   lt_cv_deplibs_check_method=pass_all
5671   ;;
5672
5673 bsdi[45]*)
5674   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5675   lt_cv_file_magic_cmd='/usr/bin/file -L'
5676   lt_cv_file_magic_test_file=/shlib/libc.so
5677   ;;
5678
5679 cygwin*)
5680   # func_win32_libid is a shell function defined in ltmain.sh
5681   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5682   lt_cv_file_magic_cmd='func_win32_libid'
5683   ;;
5684
5685 mingw* | pw32*)
5686   # Base MSYS/MinGW do not provide the 'file' command needed by
5687   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5688   # unless we find 'file', for example because we are cross-compiling.
5689   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5690   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5691     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5692     lt_cv_file_magic_cmd='func_win32_libid'
5693   else
5694     # Keep this pattern in sync with the one in func_win32_libid.
5695     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5696     lt_cv_file_magic_cmd='$OBJDUMP -f'
5697   fi
5698   ;;
5699
5700 cegcc*)
5701   # use the weaker test based on 'objdump'. See mingw*.
5702   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5703   lt_cv_file_magic_cmd='$OBJDUMP -f'
5704   ;;
5705
5706 darwin* | rhapsody*)
5707   lt_cv_deplibs_check_method=pass_all
5708   ;;
5709
5710 freebsd* | dragonfly*)
5711   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5712     case $host_cpu in
5713     i*86 )
5714       # Not sure whether the presence of OpenBSD here was a mistake.
5715       # Let's accept both of them until this is cleared up.
5716       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5717       lt_cv_file_magic_cmd=/usr/bin/file
5718       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5719       ;;
5720     esac
5721   else
5722     lt_cv_deplibs_check_method=pass_all
5723   fi
5724   ;;
5725
5726 gnu*)
5727   lt_cv_deplibs_check_method=pass_all
5728   ;;
5729
5730 haiku*)
5731   lt_cv_deplibs_check_method=pass_all
5732   ;;
5733
5734 hpux10.20* | hpux11*)
5735   lt_cv_file_magic_cmd=/usr/bin/file
5736   case $host_cpu in
5737   ia64*)
5738     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5739     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5740     ;;
5741   hppa*64*)
5742     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]'
5743     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5744     ;;
5745   *)
5746     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5747     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5748     ;;
5749   esac
5750   ;;
5751
5752 interix[3-9]*)
5753   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5754   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5755   ;;
5756
5757 irix5* | irix6* | nonstopux*)
5758   case $LD in
5759   *-32|*"-32 ") libmagic=32-bit;;
5760   *-n32|*"-n32 ") libmagic=N32;;
5761   *-64|*"-64 ") libmagic=64-bit;;
5762   *) libmagic=never-match;;
5763   esac
5764   lt_cv_deplibs_check_method=pass_all
5765   ;;
5766
5767 # This must be glibc/ELF.
5768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5769   lt_cv_deplibs_check_method=pass_all
5770   ;;
5771
5772 netbsd*)
5773   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5774     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5775   else
5776     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5777   fi
5778   ;;
5779
5780 newos6*)
5781   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5782   lt_cv_file_magic_cmd=/usr/bin/file
5783   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5784   ;;
5785
5786 *nto* | *qnx*)
5787   lt_cv_deplibs_check_method=pass_all
5788   ;;
5789
5790 openbsd*)
5791   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5792     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5793   else
5794     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5795   fi
5796   ;;
5797
5798 osf3* | osf4* | osf5*)
5799   lt_cv_deplibs_check_method=pass_all
5800   ;;
5801
5802 rdos*)
5803   lt_cv_deplibs_check_method=pass_all
5804   ;;
5805
5806 solaris*)
5807   lt_cv_deplibs_check_method=pass_all
5808   ;;
5809
5810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5811   lt_cv_deplibs_check_method=pass_all
5812   ;;
5813
5814 sysv4 | sysv4.3*)
5815   case $host_vendor in
5816   motorola)
5817     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]'
5818     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5819     ;;
5820   ncr)
5821     lt_cv_deplibs_check_method=pass_all
5822     ;;
5823   sequent)
5824     lt_cv_file_magic_cmd='/bin/file'
5825     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5826     ;;
5827   sni)
5828     lt_cv_file_magic_cmd='/bin/file'
5829     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5830     lt_cv_file_magic_test_file=/lib/libc.so
5831     ;;
5832   siemens)
5833     lt_cv_deplibs_check_method=pass_all
5834     ;;
5835   pc)
5836     lt_cv_deplibs_check_method=pass_all
5837     ;;
5838   esac
5839   ;;
5840
5841 tpf*)
5842   lt_cv_deplibs_check_method=pass_all
5843   ;;
5844 esac
5845
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5848 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5849
5850 file_magic_glob=
5851 want_nocaseglob=no
5852 if test "$build" = "$host"; then
5853   case $host_os in
5854   mingw* | pw32*)
5855     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5856       want_nocaseglob=yes
5857     else
5858       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5859     fi
5860     ;;
5861   esac
5862 fi
5863
5864 file_magic_cmd=$lt_cv_file_magic_cmd
5865 deplibs_check_method=$lt_cv_deplibs_check_method
5866 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889 if test -n "$ac_tool_prefix"; then
5890   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if ${ac_cv_prog_DLLTOOL+:} false; then :
5895   $as_echo_n "(cached) " >&6
5896 else
5897   if test -n "$DLLTOOL"; then
5898   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905     for ac_exec_ext in '' $ac_executable_extensions; do
5906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912   done
5913 IFS=$as_save_IFS
5914
5915 fi
5916 fi
5917 DLLTOOL=$ac_cv_prog_DLLTOOL
5918 if test -n "$DLLTOOL"; then
5919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5920 $as_echo "$DLLTOOL" >&6; }
5921 else
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5924 fi
5925
5926
5927 fi
5928 if test -z "$ac_cv_prog_DLLTOOL"; then
5929   ac_ct_DLLTOOL=$DLLTOOL
5930   # Extract the first word of "dlltool", so it can be a program name with args.
5931 set dummy dlltool; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5935   $as_echo_n "(cached) " >&6
5936 else
5937   if test -n "$ac_ct_DLLTOOL"; then
5938   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945     for ac_exec_ext in '' $ac_executable_extensions; do
5946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952   done
5953 IFS=$as_save_IFS
5954
5955 fi
5956 fi
5957 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5958 if test -n "$ac_ct_DLLTOOL"; then
5959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5960 $as_echo "$ac_ct_DLLTOOL" >&6; }
5961 else
5962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5964 fi
5965
5966   if test "x$ac_ct_DLLTOOL" = x; then
5967     DLLTOOL="false"
5968   else
5969     case $cross_compiling:$ac_tool_warned in
5970 yes:)
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5973 ac_tool_warned=yes ;;
5974 esac
5975     DLLTOOL=$ac_ct_DLLTOOL
5976   fi
5977 else
5978   DLLTOOL="$ac_cv_prog_DLLTOOL"
5979 fi
5980
5981 test -z "$DLLTOOL" && DLLTOOL=dlltool
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5993 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5994 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5995   $as_echo_n "(cached) " >&6
5996 else
5997   lt_cv_sharedlib_from_linklib_cmd='unknown'
5998
5999 case $host_os in
6000 cygwin* | mingw* | pw32* | cegcc*)
6001   # two different shell functions defined in ltmain.sh
6002   # decide which to use based on capabilities of $DLLTOOL
6003   case `$DLLTOOL --help 2>&1` in
6004   *--identify-strict*)
6005     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6006     ;;
6007   *)
6008     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6009     ;;
6010   esac
6011   ;;
6012 *)
6013   # fallback: assume linklib IS sharedlib
6014   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6015   ;;
6016 esac
6017
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6020 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6021 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6022 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6023
6024
6025
6026
6027
6028
6029
6030 if test -n "$ac_tool_prefix"; then
6031   for ac_prog in ar
6032   do
6033     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if ${ac_cv_prog_AR+:} false; then :
6038   $as_echo_n "(cached) " >&6
6039 else
6040   if test -n "$AR"; then
6041   ac_cv_prog_AR="$AR" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048     for ac_exec_ext in '' $ac_executable_extensions; do
6049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052     break 2
6053   fi
6054 done
6055   done
6056 IFS=$as_save_IFS
6057
6058 fi
6059 fi
6060 AR=$ac_cv_prog_AR
6061 if test -n "$AR"; then
6062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6063 $as_echo "$AR" >&6; }
6064 else
6065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6067 fi
6068
6069
6070     test -n "$AR" && break
6071   done
6072 fi
6073 if test -z "$AR"; then
6074   ac_ct_AR=$AR
6075   for ac_prog in ar
6076 do
6077   # Extract the first word of "$ac_prog", so it can be a program name with args.
6078 set dummy $ac_prog; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084   if test -n "$ac_ct_AR"; then
6085   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092     for ac_exec_ext in '' $ac_executable_extensions; do
6093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094     ac_cv_prog_ac_ct_AR="$ac_prog"
6095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099   done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6105 if test -n "$ac_ct_AR"; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6107 $as_echo "$ac_ct_AR" >&6; }
6108 else
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113
6114   test -n "$ac_ct_AR" && break
6115 done
6116
6117   if test "x$ac_ct_AR" = x; then
6118     AR="false"
6119   else
6120     case $cross_compiling:$ac_tool_warned in
6121 yes:)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6125 esac
6126     AR=$ac_ct_AR
6127   fi
6128 fi
6129
6130 : ${AR=ar}
6131 : ${AR_FLAGS=cru}
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6144 $as_echo_n "checking for archiver @FILE support... " >&6; }
6145 if ${lt_cv_ar_at_file+:} false; then :
6146   $as_echo_n "(cached) " >&6
6147 else
6148   lt_cv_ar_at_file=no
6149    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h.  */
6151
6152 int
6153 main ()
6154 {
6155
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161   echo conftest.$ac_objext > conftest.lst
6162       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6163       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6164   (eval $lt_ar_try) 2>&5
6165   ac_status=$?
6166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167   test $ac_status = 0; }
6168       if test "$ac_status" -eq 0; then
6169         # Ensure the archiver fails upon bogus file names.
6170         rm -f conftest.$ac_objext libconftest.a
6171         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6172   (eval $lt_ar_try) 2>&5
6173   ac_status=$?
6174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6175   test $ac_status = 0; }
6176         if test "$ac_status" -ne 0; then
6177           lt_cv_ar_at_file=@
6178         fi
6179       fi
6180       rm -f conftest.* libconftest.a
6181
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6187 $as_echo "$lt_cv_ar_at_file" >&6; }
6188
6189 if test "x$lt_cv_ar_at_file" = xno; then
6190   archiver_list_spec=
6191 else
6192   archiver_list_spec=$lt_cv_ar_at_file
6193 fi
6194
6195
6196
6197
6198
6199
6200
6201 if test -n "$ac_tool_prefix"; then
6202   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6203 set dummy ${ac_tool_prefix}strip; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_STRIP+:} false; then :
6207   $as_echo_n "(cached) " >&6
6208 else
6209   if test -n "$STRIP"; then
6210   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215   IFS=$as_save_IFS
6216   test -z "$as_dir" && as_dir=.
6217     for ac_exec_ext in '' $ac_executable_extensions; do
6218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221     break 2
6222   fi
6223 done
6224   done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 STRIP=$ac_cv_prog_STRIP
6230 if test -n "$STRIP"; then
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6232 $as_echo "$STRIP" >&6; }
6233 else
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238
6239 fi
6240 if test -z "$ac_cv_prog_STRIP"; then
6241   ac_ct_STRIP=$STRIP
6242   # Extract the first word of "strip", so it can be a program name with args.
6243 set dummy strip; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   if test -n "$ac_ct_STRIP"; then
6250   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255   IFS=$as_save_IFS
6256   test -z "$as_dir" && as_dir=.
6257     for ac_exec_ext in '' $ac_executable_extensions; do
6258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259     ac_cv_prog_ac_ct_STRIP="strip"
6260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261     break 2
6262   fi
6263 done
6264   done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6270 if test -n "$ac_ct_STRIP"; then
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6272 $as_echo "$ac_ct_STRIP" >&6; }
6273 else
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6276 fi
6277
6278   if test "x$ac_ct_STRIP" = x; then
6279     STRIP=":"
6280   else
6281     case $cross_compiling:$ac_tool_warned in
6282 yes:)
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6285 ac_tool_warned=yes ;;
6286 esac
6287     STRIP=$ac_ct_STRIP
6288   fi
6289 else
6290   STRIP="$ac_cv_prog_STRIP"
6291 fi
6292
6293 test -z "$STRIP" && STRIP=:
6294
6295
6296
6297
6298
6299
6300 if test -n "$ac_tool_prefix"; then
6301   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_RANLIB+:} false; then :
6306   $as_echo_n "(cached) " >&6
6307 else
6308   if test -n "$RANLIB"; then
6309   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316     for ac_exec_ext in '' $ac_executable_extensions; do
6317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323   done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 RANLIB=$ac_cv_prog_RANLIB
6329 if test -n "$RANLIB"; then
6330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6331 $as_echo "$RANLIB" >&6; }
6332 else
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6335 fi
6336
6337
6338 fi
6339 if test -z "$ac_cv_prog_RANLIB"; then
6340   ac_ct_RANLIB=$RANLIB
6341   # Extract the first word of "ranlib", so it can be a program name with args.
6342 set dummy ranlib; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6346   $as_echo_n "(cached) " >&6
6347 else
6348   if test -n "$ac_ct_RANLIB"; then
6349   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6350 else
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356     for ac_exec_ext in '' $ac_executable_extensions; do
6357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358     ac_cv_prog_ac_ct_RANLIB="ranlib"
6359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363   done
6364 IFS=$as_save_IFS
6365
6366 fi
6367 fi
6368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6369 if test -n "$ac_ct_RANLIB"; then
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6371 $as_echo "$ac_ct_RANLIB" >&6; }
6372 else
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376
6377   if test "x$ac_ct_RANLIB" = x; then
6378     RANLIB=":"
6379   else
6380     case $cross_compiling:$ac_tool_warned in
6381 yes:)
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384 ac_tool_warned=yes ;;
6385 esac
6386     RANLIB=$ac_ct_RANLIB
6387   fi
6388 else
6389   RANLIB="$ac_cv_prog_RANLIB"
6390 fi
6391
6392 test -z "$RANLIB" && RANLIB=:
6393
6394
6395
6396
6397
6398
6399 # Determine commands to create old-style static archives.
6400 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6401 old_postinstall_cmds='chmod 644 $oldlib'
6402 old_postuninstall_cmds=
6403
6404 if test -n "$RANLIB"; then
6405   case $host_os in
6406   openbsd*)
6407     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6408     ;;
6409   *)
6410     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6411     ;;
6412   esac
6413   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6414 fi
6415
6416 case $host_os in
6417   darwin*)
6418     lock_old_archive_extraction=yes ;;
6419   *)
6420     lock_old_archive_extraction=no ;;
6421 esac
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461 # If no C compiler was specified, use CC.
6462 LTCC=${LTCC-"$CC"}
6463
6464 # If no C compiler flags were specified, use CFLAGS.
6465 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6466
6467 # Allow CC to be a program name with arguments.
6468 compiler=$CC
6469
6470
6471 # Check for command to grab the raw symbol name followed by C symbol from nm.
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6473 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6474 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477
6478 # These are sane defaults that work on at least a few old systems.
6479 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6480
6481 # Character class describing NM global symbol codes.
6482 symcode='[BCDEGRST]'
6483
6484 # Regexp to match symbols that can be accessed directly from C.
6485 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6486
6487 # Define system-specific variables.
6488 case $host_os in
6489 aix*)
6490   symcode='[BCDT]'
6491   ;;
6492 cygwin* | mingw* | pw32* | cegcc*)
6493   symcode='[ABCDGISTW]'
6494   ;;
6495 hpux*)
6496   if test "$host_cpu" = ia64; then
6497     symcode='[ABCDEGRST]'
6498   fi
6499   ;;
6500 irix* | nonstopux*)
6501   symcode='[BCDEGRST]'
6502   ;;
6503 osf*)
6504   symcode='[BCDEGQRST]'
6505   ;;
6506 solaris*)
6507   symcode='[BDRT]'
6508   ;;
6509 sco3.2v5*)
6510   symcode='[DT]'
6511   ;;
6512 sysv4.2uw2*)
6513   symcode='[DT]'
6514   ;;
6515 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6516   symcode='[ABDT]'
6517   ;;
6518 sysv4)
6519   symcode='[DFNSTU]'
6520   ;;
6521 esac
6522
6523 # If we're using GNU nm, then use its standard symbol codes.
6524 case `$NM -V 2>&1` in
6525 *GNU* | *'with BFD'*)
6526   symcode='[ABCDGIRSTW]' ;;
6527 esac
6528
6529 # Transform an extracted symbol line into a proper C declaration.
6530 # Some systems (esp. on ia64) link data and code symbols differently,
6531 # so use this general approach.
6532 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6533
6534 # Transform an extracted symbol line into symbol name and symbol address
6535 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6536 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6537
6538 # Handle CRLF in mingw tool chain
6539 opt_cr=
6540 case $build_os in
6541 mingw*)
6542   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6543   ;;
6544 esac
6545
6546 # Try without a prefix underscore, then with it.
6547 for ac_symprfx in "" "_"; do
6548
6549   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6550   symxfrm="\\1 $ac_symprfx\\2 \\2"
6551
6552   # Write the raw and C identifiers.
6553   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6554     # Fake it for dumpbin and say T for any non-static function
6555     # and D for any global variable.
6556     # Also find C++ and __fastcall symbols from MSVC++,
6557     # which start with @ or ?.
6558     lt_cv_sys_global_symbol_pipe="$AWK '"\
6559 "     {last_section=section; section=\$ 3};"\
6560 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6561 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6562 "     \$ 0!~/External *\|/{next};"\
6563 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6564 "     {if(hide[section]) next};"\
6565 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6566 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6567 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6568 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6569 "     ' prfx=^$ac_symprfx"
6570   else
6571     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6572   fi
6573   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6574
6575   # Check to see that the pipe works correctly.
6576   pipe_works=no
6577
6578   rm -f conftest*
6579   cat > conftest.$ac_ext <<_LT_EOF
6580 #ifdef __cplusplus
6581 extern "C" {
6582 #endif
6583 char nm_test_var;
6584 void nm_test_func(void);
6585 void nm_test_func(void){}
6586 #ifdef __cplusplus
6587 }
6588 #endif
6589 int main(){nm_test_var='a';nm_test_func();return(0);}
6590 _LT_EOF
6591
6592   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593   (eval $ac_compile) 2>&5
6594   ac_status=$?
6595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596   test $ac_status = 0; }; then
6597     # Now try to grab the symbols.
6598     nlist=conftest.nm
6599     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6600   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6601   ac_status=$?
6602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603   test $ac_status = 0; } && test -s "$nlist"; then
6604       # Try sorting and uniquifying the output.
6605       if sort "$nlist" | uniq > "$nlist"T; then
6606         mv -f "$nlist"T "$nlist"
6607       else
6608         rm -f "$nlist"T
6609       fi
6610
6611       # Make sure that we snagged all the symbols we need.
6612       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6613         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6614           cat <<_LT_EOF > conftest.$ac_ext
6615 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6616 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6617 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6618    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6619 # define LT_DLSYM_CONST
6620 #elif defined(__osf__)
6621 /* This system does not cope well with relocations in const data.  */
6622 # define LT_DLSYM_CONST
6623 #else
6624 # define LT_DLSYM_CONST const
6625 #endif
6626
6627 #ifdef __cplusplus
6628 extern "C" {
6629 #endif
6630
6631 _LT_EOF
6632           # Now generate the symbol file.
6633           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6634
6635           cat <<_LT_EOF >> conftest.$ac_ext
6636
6637 /* The mapping between symbol names and symbols.  */
6638 LT_DLSYM_CONST struct {
6639   const char *name;
6640   void       *address;
6641 }
6642 lt__PROGRAM__LTX_preloaded_symbols[] =
6643 {
6644   { "@PROGRAM@", (void *) 0 },
6645 _LT_EOF
6646           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6647           cat <<\_LT_EOF >> conftest.$ac_ext
6648   {0, (void *) 0}
6649 };
6650
6651 /* This works around a problem in FreeBSD linker */
6652 #ifdef FREEBSD_WORKAROUND
6653 static const void *lt_preloaded_setup() {
6654   return lt__PROGRAM__LTX_preloaded_symbols;
6655 }
6656 #endif
6657
6658 #ifdef __cplusplus
6659 }
6660 #endif
6661 _LT_EOF
6662           # Now try linking the two files.
6663           mv conftest.$ac_objext conftstm.$ac_objext
6664           lt_globsym_save_LIBS=$LIBS
6665           lt_globsym_save_CFLAGS=$CFLAGS
6666           LIBS="conftstm.$ac_objext"
6667           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6668           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6669   (eval $ac_link) 2>&5
6670   ac_status=$?
6671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6672   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6673             pipe_works=yes
6674           fi
6675           LIBS=$lt_globsym_save_LIBS
6676           CFLAGS=$lt_globsym_save_CFLAGS
6677         else
6678           echo "cannot find nm_test_func in $nlist" >&5
6679         fi
6680       else
6681         echo "cannot find nm_test_var in $nlist" >&5
6682       fi
6683     else
6684       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6685     fi
6686   else
6687     echo "$progname: failed program was:" >&5
6688     cat conftest.$ac_ext >&5
6689   fi
6690   rm -rf conftest* conftst*
6691
6692   # Do not use the global_symbol_pipe unless it works.
6693   if test "$pipe_works" = yes; then
6694     break
6695   else
6696     lt_cv_sys_global_symbol_pipe=
6697   fi
6698 done
6699
6700 fi
6701
6702 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6703   lt_cv_sys_global_symbol_to_cdecl=
6704 fi
6705 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6707 $as_echo "failed" >&6; }
6708 else
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6710 $as_echo "ok" >&6; }
6711 fi
6712
6713 # Response file support.
6714 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6715   nm_file_list_spec='@'
6716 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6717   nm_file_list_spec='@'
6718 fi
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6747 $as_echo_n "checking for sysroot... " >&6; }
6748
6749 # Check whether --with-sysroot was given.
6750 if test "${with_sysroot+set}" = set; then :
6751   withval=$with_sysroot;
6752 else
6753   with_sysroot=no
6754 fi
6755
6756
6757 lt_sysroot=
6758 case ${with_sysroot} in #(
6759  yes)
6760    if test "$GCC" = yes; then
6761      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6762    fi
6763    ;; #(
6764  /*)
6765    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6766    ;; #(
6767  no|'')
6768    ;; #(
6769  *)
6770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6771 $as_echo "${with_sysroot}" >&6; }
6772    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6773    ;;
6774 esac
6775
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6777 $as_echo "${lt_sysroot:-no}" >&6; }
6778
6779
6780
6781
6782
6783 # Check whether --enable-libtool-lock was given.
6784 if test "${enable_libtool_lock+set}" = set; then :
6785   enableval=$enable_libtool_lock;
6786 fi
6787
6788 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6789
6790 # Some flags need to be propagated to the compiler or linker for good
6791 # libtool support.
6792 case $host in
6793 ia64-*-hpux*)
6794   # Find out which ABI we are using.
6795   echo 'int i;' > conftest.$ac_ext
6796   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6797   (eval $ac_compile) 2>&5
6798   ac_status=$?
6799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800   test $ac_status = 0; }; then
6801     case `/usr/bin/file conftest.$ac_objext` in
6802       *ELF-32*)
6803         HPUX_IA64_MODE="32"
6804         ;;
6805       *ELF-64*)
6806         HPUX_IA64_MODE="64"
6807         ;;
6808     esac
6809   fi
6810   rm -rf conftest*
6811   ;;
6812 *-*-irix6*)
6813   # Find out which ABI we are using.
6814   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6815   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6816   (eval $ac_compile) 2>&5
6817   ac_status=$?
6818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6819   test $ac_status = 0; }; then
6820     if test "$lt_cv_prog_gnu_ld" = yes; then
6821       case `/usr/bin/file conftest.$ac_objext` in
6822         *32-bit*)
6823           LD="${LD-ld} -melf32bsmip"
6824           ;;
6825         *N32*)
6826           LD="${LD-ld} -melf32bmipn32"
6827           ;;
6828         *64-bit*)
6829           LD="${LD-ld} -melf64bmip"
6830         ;;
6831       esac
6832     else
6833       case `/usr/bin/file conftest.$ac_objext` in
6834         *32-bit*)
6835           LD="${LD-ld} -32"
6836           ;;
6837         *N32*)
6838           LD="${LD-ld} -n32"
6839           ;;
6840         *64-bit*)
6841           LD="${LD-ld} -64"
6842           ;;
6843       esac
6844     fi
6845   fi
6846   rm -rf conftest*
6847   ;;
6848
6849 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6850 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6851   # Find out which ABI we are using.
6852   echo 'int i;' > conftest.$ac_ext
6853   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6854   (eval $ac_compile) 2>&5
6855   ac_status=$?
6856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857   test $ac_status = 0; }; then
6858     case `/usr/bin/file conftest.o` in
6859       *32-bit*)
6860         case $host in
6861           x86_64-*kfreebsd*-gnu)
6862             LD="${LD-ld} -m elf_i386_fbsd"
6863             ;;
6864           x86_64-*linux*)
6865             LD="${LD-ld} -m elf_i386"
6866             ;;
6867           ppc64-*linux*|powerpc64-*linux*)
6868             LD="${LD-ld} -m elf32ppclinux"
6869             ;;
6870           s390x-*linux*)
6871             LD="${LD-ld} -m elf_s390"
6872             ;;
6873           sparc64-*linux*)
6874             LD="${LD-ld} -m elf32_sparc"
6875             ;;
6876         esac
6877         ;;
6878       *64-bit*)
6879         case $host in
6880           x86_64-*kfreebsd*-gnu)
6881             LD="${LD-ld} -m elf_x86_64_fbsd"
6882             ;;
6883           x86_64-*linux*)
6884             LD="${LD-ld} -m elf_x86_64"
6885             ;;
6886           ppc*-*linux*|powerpc*-*linux*)
6887             LD="${LD-ld} -m elf64ppc"
6888             ;;
6889           s390*-*linux*|s390*-*tpf*)
6890             LD="${LD-ld} -m elf64_s390"
6891             ;;
6892           sparc*-*linux*)
6893             LD="${LD-ld} -m elf64_sparc"
6894             ;;
6895         esac
6896         ;;
6897     esac
6898   fi
6899   rm -rf conftest*
6900   ;;
6901
6902 *-*-sco3.2v5*)
6903   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6904   SAVE_CFLAGS="$CFLAGS"
6905   CFLAGS="$CFLAGS -belf"
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6907 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6908 if ${lt_cv_cc_needs_belf+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   ac_ext=c
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916
6917      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h.  */
6919
6920 int
6921 main ()
6922 {
6923
6924   ;
6925   return 0;
6926 }
6927 _ACEOF
6928 if ac_fn_c_try_link "$LINENO"; then :
6929   lt_cv_cc_needs_belf=yes
6930 else
6931   lt_cv_cc_needs_belf=no
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext \
6934     conftest$ac_exeext conftest.$ac_ext
6935      ac_ext=c
6936 ac_cpp='$CPP $CPPFLAGS'
6937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6940
6941 fi
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6943 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6944   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6945     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6946     CFLAGS="$SAVE_CFLAGS"
6947   fi
6948   ;;
6949 *-*solaris*)
6950   # Find out which ABI we are using.
6951   echo 'int i;' > conftest.$ac_ext
6952   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6953   (eval $ac_compile) 2>&5
6954   ac_status=$?
6955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956   test $ac_status = 0; }; then
6957     case `/usr/bin/file conftest.o` in
6958     *64-bit*)
6959       case $lt_cv_prog_gnu_ld in
6960       yes*)
6961         case $host in
6962         i?86-*-solaris*)
6963           LD="${LD-ld} -m elf_x86_64"
6964           ;;
6965         sparc*-*-solaris*)
6966           LD="${LD-ld} -m elf64_sparc"
6967           ;;
6968         esac
6969         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6970         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6971           LD="${LD-ld}_sol2"
6972         fi
6973         ;;
6974       *)
6975         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6976           LD="${LD-ld} -64"
6977         fi
6978         ;;
6979       esac
6980       ;;
6981     esac
6982   fi
6983   rm -rf conftest*
6984   ;;
6985 esac
6986
6987 need_locks="$enable_libtool_lock"
6988
6989 if test -n "$ac_tool_prefix"; then
6990   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}mt; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   if test -n "$MANIFEST_TOOL"; then
6998   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005     for ac_exec_ext in '' $ac_executable_extensions; do
7006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012   done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7018 if test -n "$MANIFEST_TOOL"; then
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7020 $as_echo "$MANIFEST_TOOL" >&6; }
7021 else
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026
7027 fi
7028 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7029   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7030   # Extract the first word of "mt", so it can be a program name with args.
7031 set dummy mt; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   if test -n "$ac_ct_MANIFEST_TOOL"; then
7038   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043   IFS=$as_save_IFS
7044   test -z "$as_dir" && as_dir=.
7045     for ac_exec_ext in '' $ac_executable_extensions; do
7046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049     break 2
7050   fi
7051 done
7052   done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7058 if test -n "$ac_ct_MANIFEST_TOOL"; then
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7060 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7061 else
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7067     MANIFEST_TOOL=":"
7068   else
7069     case $cross_compiling:$ac_tool_warned in
7070 yes:)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7074 esac
7075     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7076   fi
7077 else
7078   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7079 fi
7080
7081 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7083 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7084 if ${lt_cv_path_mainfest_tool+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   lt_cv_path_mainfest_tool=no
7088   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7089   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7090   cat conftest.err >&5
7091   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7092     lt_cv_path_mainfest_tool=yes
7093   fi
7094   rm -f conftest*
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7097 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7098 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7099   MANIFEST_TOOL=:
7100 fi
7101
7102
7103
7104
7105
7106
7107   case $host_os in
7108     rhapsody* | darwin*)
7109     if test -n "$ac_tool_prefix"; then
7110   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7115   $as_echo_n "(cached) " >&6
7116 else
7117   if test -n "$DSYMUTIL"; then
7118   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123   IFS=$as_save_IFS
7124   test -z "$as_dir" && as_dir=.
7125     for ac_exec_ext in '' $ac_executable_extensions; do
7126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129     break 2
7130   fi
7131 done
7132   done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7138 if test -n "$DSYMUTIL"; then
7139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7140 $as_echo "$DSYMUTIL" >&6; }
7141 else
7142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_DSYMUTIL"; then
7149   ac_ct_DSYMUTIL=$DSYMUTIL
7150   # Extract the first word of "dsymutil", so it can be a program name with args.
7151 set dummy dsymutil; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7155   $as_echo_n "(cached) " >&6
7156 else
7157   if test -n "$ac_ct_DSYMUTIL"; then
7158   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165     for ac_exec_ext in '' $ac_executable_extensions; do
7166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172   done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7178 if test -n "$ac_ct_DSYMUTIL"; then
7179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7180 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7181 else
7182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186   if test "x$ac_ct_DSYMUTIL" = x; then
7187     DSYMUTIL=":"
7188   else
7189     case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195     DSYMUTIL=$ac_ct_DSYMUTIL
7196   fi
7197 else
7198   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7199 fi
7200
7201     if test -n "$ac_tool_prefix"; then
7202   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_NMEDIT+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   if test -n "$NMEDIT"; then
7210   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224   done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 NMEDIT=$ac_cv_prog_NMEDIT
7230 if test -n "$NMEDIT"; then
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7232 $as_echo "$NMEDIT" >&6; }
7233 else
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238
7239 fi
7240 if test -z "$ac_cv_prog_NMEDIT"; then
7241   ac_ct_NMEDIT=$NMEDIT
7242   # Extract the first word of "nmedit", so it can be a program name with args.
7243 set dummy nmedit; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7247   $as_echo_n "(cached) " >&6
7248 else
7249   if test -n "$ac_ct_NMEDIT"; then
7250   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255   IFS=$as_save_IFS
7256   test -z "$as_dir" && as_dir=.
7257     for ac_exec_ext in '' $ac_executable_extensions; do
7258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261     break 2
7262   fi
7263 done
7264   done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7270 if test -n "$ac_ct_NMEDIT"; then
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7272 $as_echo "$ac_ct_NMEDIT" >&6; }
7273 else
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278   if test "x$ac_ct_NMEDIT" = x; then
7279     NMEDIT=":"
7280   else
7281     case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287     NMEDIT=$ac_ct_NMEDIT
7288   fi
7289 else
7290   NMEDIT="$ac_cv_prog_NMEDIT"
7291 fi
7292
7293     if test -n "$ac_tool_prefix"; then
7294   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_LIPO+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   if test -n "$LIPO"; then
7302   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 LIPO=$ac_cv_prog_LIPO
7322 if test -n "$LIPO"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7324 $as_echo "$LIPO" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330
7331 fi
7332 if test -z "$ac_cv_prog_LIPO"; then
7333   ac_ct_LIPO=$LIPO
7334   # Extract the first word of "lipo", so it can be a program name with args.
7335 set dummy lipo; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if test -n "$ac_ct_LIPO"; then
7342   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351     ac_cv_prog_ac_ct_LIPO="lipo"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7362 if test -n "$ac_ct_LIPO"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7364 $as_echo "$ac_ct_LIPO" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370   if test "x$ac_ct_LIPO" = x; then
7371     LIPO=":"
7372   else
7373     case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379     LIPO=$ac_ct_LIPO
7380   fi
7381 else
7382   LIPO="$ac_cv_prog_LIPO"
7383 fi
7384
7385     if test -n "$ac_tool_prefix"; then
7386   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}otool; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_OTOOL+:} false; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   if test -n "$OTOOL"; then
7394   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401     for ac_exec_ext in '' $ac_executable_extensions; do
7402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408   done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 OTOOL=$ac_cv_prog_OTOOL
7414 if test -n "$OTOOL"; then
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7416 $as_echo "$OTOOL" >&6; }
7417 else
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422
7423 fi
7424 if test -z "$ac_cv_prog_OTOOL"; then
7425   ac_ct_OTOOL=$OTOOL
7426   # Extract the first word of "otool", so it can be a program name with args.
7427 set dummy otool; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7431   $as_echo_n "(cached) " >&6
7432 else
7433   if test -n "$ac_ct_OTOOL"; then
7434   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441     for ac_exec_ext in '' $ac_executable_extensions; do
7442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443     ac_cv_prog_ac_ct_OTOOL="otool"
7444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445     break 2
7446   fi
7447 done
7448   done
7449 IFS=$as_save_IFS
7450
7451 fi
7452 fi
7453 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7454 if test -n "$ac_ct_OTOOL"; then
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7456 $as_echo "$ac_ct_OTOOL" >&6; }
7457 else
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462   if test "x$ac_ct_OTOOL" = x; then
7463     OTOOL=":"
7464   else
7465     case $cross_compiling:$ac_tool_warned in
7466 yes:)
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7470 esac
7471     OTOOL=$ac_ct_OTOOL
7472   fi
7473 else
7474   OTOOL="$ac_cv_prog_OTOOL"
7475 fi
7476
7477     if test -n "$ac_tool_prefix"; then
7478   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7479 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_OTOOL64+:} false; then :
7483   $as_echo_n "(cached) " >&6
7484 else
7485   if test -n "$OTOOL64"; then
7486   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491   IFS=$as_save_IFS
7492   test -z "$as_dir" && as_dir=.
7493     for ac_exec_ext in '' $ac_executable_extensions; do
7494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497     break 2
7498   fi
7499 done
7500   done
7501 IFS=$as_save_IFS
7502
7503 fi
7504 fi
7505 OTOOL64=$ac_cv_prog_OTOOL64
7506 if test -n "$OTOOL64"; then
7507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7508 $as_echo "$OTOOL64" >&6; }
7509 else
7510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7512 fi
7513
7514
7515 fi
7516 if test -z "$ac_cv_prog_OTOOL64"; then
7517   ac_ct_OTOOL64=$OTOOL64
7518   # Extract the first word of "otool64", so it can be a program name with args.
7519 set dummy otool64; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7523   $as_echo_n "(cached) " >&6
7524 else
7525   if test -n "$ac_ct_OTOOL64"; then
7526   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533     for ac_exec_ext in '' $ac_executable_extensions; do
7534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535     ac_cv_prog_ac_ct_OTOOL64="otool64"
7536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540   done
7541 IFS=$as_save_IFS
7542
7543 fi
7544 fi
7545 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7546 if test -n "$ac_ct_OTOOL64"; then
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7548 $as_echo "$ac_ct_OTOOL64" >&6; }
7549 else
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7552 fi
7553
7554   if test "x$ac_ct_OTOOL64" = x; then
7555     OTOOL64=":"
7556   else
7557     case $cross_compiling:$ac_tool_warned in
7558 yes:)
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7561 ac_tool_warned=yes ;;
7562 esac
7563     OTOOL64=$ac_ct_OTOOL64
7564   fi
7565 else
7566   OTOOL64="$ac_cv_prog_OTOOL64"
7567 fi
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7596 $as_echo_n "checking for -single_module linker flag... " >&6; }
7597 if ${lt_cv_apple_cc_single_mod+:} false; then :
7598   $as_echo_n "(cached) " >&6
7599 else
7600   lt_cv_apple_cc_single_mod=no
7601       if test -z "${LT_MULTI_MODULE}"; then
7602         # By default we will add the -single_module flag. You can override
7603         # by either setting the environment variable LT_MULTI_MODULE
7604         # non-empty at configure time, or by adding -multi_module to the
7605         # link flags.
7606         rm -rf libconftest.dylib*
7607         echo "int foo(void){return 1;}" > conftest.c
7608         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7609 -dynamiclib -Wl,-single_module conftest.c" >&5
7610         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7611           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7612         _lt_result=$?
7613         # If there is a non-empty error log, and "single_module"
7614         # appears in it, assume the flag caused a linker warning
7615         if test -s conftest.err && $GREP single_module conftest.err; then
7616           cat conftest.err >&5
7617         # Otherwise, if the output was created with a 0 exit code from
7618         # the compiler, it worked.
7619         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7620           lt_cv_apple_cc_single_mod=yes
7621         else
7622           cat conftest.err >&5
7623         fi
7624         rm -rf libconftest.dylib*
7625         rm -f conftest.*
7626       fi
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7629 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7630
7631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7632 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7633 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   lt_cv_ld_exported_symbols_list=no
7637       save_LDFLAGS=$LDFLAGS
7638       echo "_main" > conftest.sym
7639       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7640       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h.  */
7642
7643 int
7644 main ()
7645 {
7646
7647   ;
7648   return 0;
7649 }
7650 _ACEOF
7651 if ac_fn_c_try_link "$LINENO"; then :
7652   lt_cv_ld_exported_symbols_list=yes
7653 else
7654   lt_cv_ld_exported_symbols_list=no
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext \
7657     conftest$ac_exeext conftest.$ac_ext
7658         LDFLAGS="$save_LDFLAGS"
7659
7660 fi
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7662 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7663
7664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7665 $as_echo_n "checking for -force_load linker flag... " >&6; }
7666 if ${lt_cv_ld_force_load+:} false; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669   lt_cv_ld_force_load=no
7670       cat > conftest.c << _LT_EOF
7671 int forced_loaded() { return 2;}
7672 _LT_EOF
7673       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7674       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7675       echo "$AR cru libconftest.a conftest.o" >&5
7676       $AR cru libconftest.a conftest.o 2>&5
7677       echo "$RANLIB libconftest.a" >&5
7678       $RANLIB libconftest.a 2>&5
7679       cat > conftest.c << _LT_EOF
7680 int main() { return 0;}
7681 _LT_EOF
7682       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7683       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7684       _lt_result=$?
7685       if test -s conftest.err && $GREP force_load conftest.err; then
7686         cat conftest.err >&5
7687       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7688         lt_cv_ld_force_load=yes
7689       else
7690         cat conftest.err >&5
7691       fi
7692         rm -f conftest.err libconftest.a conftest conftest.c
7693         rm -rf conftest.dSYM
7694
7695 fi
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7697 $as_echo "$lt_cv_ld_force_load" >&6; }
7698     case $host_os in
7699     rhapsody* | darwin1.[012])
7700       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7701     darwin1.*)
7702       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7703     darwin*) # darwin 5.x on
7704       # if running on 10.5 or later, the deployment target defaults
7705       # to the OS version, if on x86, and 10.4, the deployment
7706       # target defaults to 10.4. Don't you love it?
7707       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7708         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7709           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7710         10.[012]*)
7711           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7712         10.*)
7713           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7714       esac
7715     ;;
7716   esac
7717     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7718       _lt_dar_single_mod='$single_module'
7719     fi
7720     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7721       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7722     else
7723       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7724     fi
7725     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7726       _lt_dsymutil='~$DSYMUTIL $lib || :'
7727     else
7728       _lt_dsymutil=
7729     fi
7730     ;;
7731   esac
7732
7733 for ac_header in dlfcn.h
7734 do :
7735   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7736 "
7737 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7738   cat >>confdefs.h <<_ACEOF
7739 #define HAVE_DLFCN_H 1
7740 _ACEOF
7741
7742 fi
7743
7744 done
7745
7746
7747
7748
7749
7750 # Set options
7751
7752
7753
7754         enable_dlopen=no
7755
7756
7757   enable_win32_dll=no
7758
7759
7760             # Check whether --enable-shared was given.
7761 if test "${enable_shared+set}" = set; then :
7762   enableval=$enable_shared; p=${PACKAGE-default}
7763     case $enableval in
7764     yes) enable_shared=yes ;;
7765     no) enable_shared=no ;;
7766     *)
7767       enable_shared=no
7768       # Look at the argument we got.  We use all the common list separators.
7769       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7770       for pkg in $enableval; do
7771         IFS="$lt_save_ifs"
7772         if test "X$pkg" = "X$p"; then
7773           enable_shared=yes
7774         fi
7775       done
7776       IFS="$lt_save_ifs"
7777       ;;
7778     esac
7779 else
7780   enable_shared=yes
7781 fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791   # Check whether --enable-static was given.
7792 if test "${enable_static+set}" = set; then :
7793   enableval=$enable_static; p=${PACKAGE-default}
7794     case $enableval in
7795     yes) enable_static=yes ;;
7796     no) enable_static=no ;;
7797     *)
7798      enable_static=no
7799       # Look at the argument we got.  We use all the common list separators.
7800       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7801       for pkg in $enableval; do
7802         IFS="$lt_save_ifs"
7803         if test "X$pkg" = "X$p"; then
7804           enable_static=yes
7805         fi
7806       done
7807       IFS="$lt_save_ifs"
7808       ;;
7809     esac
7810 else
7811   enable_static=yes
7812 fi
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823 # Check whether --with-pic was given.
7824 if test "${with_pic+set}" = set; then :
7825   withval=$with_pic; lt_p=${PACKAGE-default}
7826     case $withval in
7827     yes|no) pic_mode=$withval ;;
7828     *)
7829       pic_mode=default
7830       # Look at the argument we got.  We use all the common list separators.
7831       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7832       for lt_pkg in $withval; do
7833         IFS="$lt_save_ifs"
7834         if test "X$lt_pkg" = "X$lt_p"; then
7835           pic_mode=yes
7836         fi
7837       done
7838       IFS="$lt_save_ifs"
7839       ;;
7840     esac
7841 else
7842   pic_mode=default
7843 fi
7844
7845
7846 test -z "$pic_mode" && pic_mode=default
7847
7848
7849
7850
7851
7852
7853
7854   # Check whether --enable-fast-install was given.
7855 if test "${enable_fast_install+set}" = set; then :
7856   enableval=$enable_fast_install; p=${PACKAGE-default}
7857     case $enableval in
7858     yes) enable_fast_install=yes ;;
7859     no) enable_fast_install=no ;;
7860     *)
7861       enable_fast_install=no
7862       # Look at the argument we got.  We use all the common list separators.
7863       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7864       for pkg in $enableval; do
7865         IFS="$lt_save_ifs"
7866         if test "X$pkg" = "X$p"; then
7867           enable_fast_install=yes
7868         fi
7869       done
7870       IFS="$lt_save_ifs"
7871       ;;
7872     esac
7873 else
7874   enable_fast_install=yes
7875 fi
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887 # This can be used to rebuild libtool when needed
7888 LIBTOOL_DEPS="$ltmain"
7889
7890 # Always use our own libtool.
7891 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922 test -z "$LN_S" && LN_S="ln -s"
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937 if test -n "${ZSH_VERSION+set}" ; then
7938    setopt NO_GLOB_SUBST
7939 fi
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7942 $as_echo_n "checking for objdir... " >&6; }
7943 if ${lt_cv_objdir+:} false; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946   rm -f .libs 2>/dev/null
7947 mkdir .libs 2>/dev/null
7948 if test -d .libs; then
7949   lt_cv_objdir=.libs
7950 else
7951   # MS-DOS does not allow filenames that begin with a dot.
7952   lt_cv_objdir=_libs
7953 fi
7954 rmdir .libs 2>/dev/null
7955 fi
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7957 $as_echo "$lt_cv_objdir" >&6; }
7958 objdir=$lt_cv_objdir
7959
7960
7961
7962
7963
7964 cat >>confdefs.h <<_ACEOF
7965 #define LT_OBJDIR "$lt_cv_objdir/"
7966 _ACEOF
7967
7968
7969
7970
7971 case $host_os in
7972 aix3*)
7973   # AIX sometimes has problems with the GCC collect2 program.  For some
7974   # reason, if we set the COLLECT_NAMES environment variable, the problems
7975   # vanish in a puff of smoke.
7976   if test "X${COLLECT_NAMES+set}" != Xset; then
7977     COLLECT_NAMES=
7978     export COLLECT_NAMES
7979   fi
7980   ;;
7981 esac
7982
7983 # Global variables:
7984 ofile=libtool
7985 can_build_shared=yes
7986
7987 # All known linkers require a `.a' archive for static linking (except MSVC,
7988 # which needs '.lib').
7989 libext=a
7990
7991 with_gnu_ld="$lt_cv_prog_gnu_ld"
7992
7993 old_CC="$CC"
7994 old_CFLAGS="$CFLAGS"
7995
7996 # Set sane defaults for various variables
7997 test -z "$CC" && CC=cc
7998 test -z "$LTCC" && LTCC=$CC
7999 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8000 test -z "$LD" && LD=ld
8001 test -z "$ac_objext" && ac_objext=o
8002
8003 for cc_temp in $compiler""; do
8004   case $cc_temp in
8005     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8006     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8007     \-*) ;;
8008     *) break;;
8009   esac
8010 done
8011 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8012
8013
8014 # Only perform the check for file, if the check method requires it
8015 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8016 case $deplibs_check_method in
8017 file_magic*)
8018   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8020 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8021 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8022   $as_echo_n "(cached) " >&6
8023 else
8024   case $MAGIC_CMD in
8025 [\\/*] |  ?:[\\/]*)
8026   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8027   ;;
8028 *)
8029   lt_save_MAGIC_CMD="$MAGIC_CMD"
8030   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8031   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8032   for ac_dir in $ac_dummy; do
8033     IFS="$lt_save_ifs"
8034     test -z "$ac_dir" && ac_dir=.
8035     if test -f $ac_dir/${ac_tool_prefix}file; then
8036       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8037       if test -n "$file_magic_test_file"; then
8038         case $deplibs_check_method in
8039         "file_magic "*)
8040           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8041           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8043             $EGREP "$file_magic_regex" > /dev/null; then
8044             :
8045           else
8046             cat <<_LT_EOF 1>&2
8047
8048 *** Warning: the command libtool uses to detect shared libraries,
8049 *** $file_magic_cmd, produces output that libtool cannot recognize.
8050 *** The result is that libtool may fail to recognize shared libraries
8051 *** as such.  This will affect the creation of libtool libraries that
8052 *** depend on shared libraries, but programs linked with such libtool
8053 *** libraries will work regardless of this problem.  Nevertheless, you
8054 *** may want to report the problem to your system manager and/or to
8055 *** bug-libtool@gnu.org
8056
8057 _LT_EOF
8058           fi ;;
8059         esac
8060       fi
8061       break
8062     fi
8063   done
8064   IFS="$lt_save_ifs"
8065   MAGIC_CMD="$lt_save_MAGIC_CMD"
8066   ;;
8067 esac
8068 fi
8069
8070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8071 if test -n "$MAGIC_CMD"; then
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8073 $as_echo "$MAGIC_CMD" >&6; }
8074 else
8075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8077 fi
8078
8079
8080
8081
8082
8083 if test -z "$lt_cv_path_MAGIC_CMD"; then
8084   if test -n "$ac_tool_prefix"; then
8085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8086 $as_echo_n "checking for file... " >&6; }
8087 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8088   $as_echo_n "(cached) " >&6
8089 else
8090   case $MAGIC_CMD in
8091 [\\/*] |  ?:[\\/]*)
8092   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8093   ;;
8094 *)
8095   lt_save_MAGIC_CMD="$MAGIC_CMD"
8096   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8097   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8098   for ac_dir in $ac_dummy; do
8099     IFS="$lt_save_ifs"
8100     test -z "$ac_dir" && ac_dir=.
8101     if test -f $ac_dir/file; then
8102       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8103       if test -n "$file_magic_test_file"; then
8104         case $deplibs_check_method in
8105         "file_magic "*)
8106           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8107           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8108           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8109             $EGREP "$file_magic_regex" > /dev/null; then
8110             :
8111           else
8112             cat <<_LT_EOF 1>&2
8113
8114 *** Warning: the command libtool uses to detect shared libraries,
8115 *** $file_magic_cmd, produces output that libtool cannot recognize.
8116 *** The result is that libtool may fail to recognize shared libraries
8117 *** as such.  This will affect the creation of libtool libraries that
8118 *** depend on shared libraries, but programs linked with such libtool
8119 *** libraries will work regardless of this problem.  Nevertheless, you
8120 *** may want to report the problem to your system manager and/or to
8121 *** bug-libtool@gnu.org
8122
8123 _LT_EOF
8124           fi ;;
8125         esac
8126       fi
8127       break
8128     fi
8129   done
8130   IFS="$lt_save_ifs"
8131   MAGIC_CMD="$lt_save_MAGIC_CMD"
8132   ;;
8133 esac
8134 fi
8135
8136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8137 if test -n "$MAGIC_CMD"; then
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8139 $as_echo "$MAGIC_CMD" >&6; }
8140 else
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8143 fi
8144
8145
8146   else
8147     MAGIC_CMD=:
8148   fi
8149 fi
8150
8151   fi
8152   ;;
8153 esac
8154
8155 # Use C for the default configuration in the libtool script
8156
8157 lt_save_CC="$CC"
8158 ac_ext=c
8159 ac_cpp='$CPP $CPPFLAGS'
8160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163
8164
8165 # Source file extension for C test sources.
8166 ac_ext=c
8167
8168 # Object file extension for compiled C test sources.
8169 objext=o
8170 objext=$objext
8171
8172 # Code to be used in simple compile tests
8173 lt_simple_compile_test_code="int some_variable = 0;"
8174
8175 # Code to be used in simple link tests
8176 lt_simple_link_test_code='int main(){return(0);}'
8177
8178
8179
8180
8181
8182
8183
8184 # If no C compiler was specified, use CC.
8185 LTCC=${LTCC-"$CC"}
8186
8187 # If no C compiler flags were specified, use CFLAGS.
8188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8189
8190 # Allow CC to be a program name with arguments.
8191 compiler=$CC
8192
8193 # Save the default compiler, since it gets overwritten when the other
8194 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8195 compiler_DEFAULT=$CC
8196
8197 # save warnings/boilerplate of simple test code
8198 ac_outfile=conftest.$ac_objext
8199 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8200 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8201 _lt_compiler_boilerplate=`cat conftest.err`
8202 $RM conftest*
8203
8204 ac_outfile=conftest.$ac_objext
8205 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8206 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8207 _lt_linker_boilerplate=`cat conftest.err`
8208 $RM -r conftest*
8209
8210
8211 ## CAVEAT EMPTOR:
8212 ## There is no encapsulation within the following macros, do not change
8213 ## the running order or otherwise move them around unless you know exactly
8214 ## what you are doing...
8215 if test -n "$compiler"; then
8216
8217 lt_prog_compiler_no_builtin_flag=
8218
8219 if test "$GCC" = yes; then
8220   case $cc_basename in
8221   nvcc*)
8222     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8223   *)
8224     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8225   esac
8226
8227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8228 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8229 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   lt_cv_prog_compiler_rtti_exceptions=no
8233    ac_outfile=conftest.$ac_objext
8234    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8235    lt_compiler_flag="-fno-rtti -fno-exceptions"
8236    # Insert the option either (1) after the last *FLAGS variable, or
8237    # (2) before a word containing "conftest.", or (3) at the end.
8238    # Note that $ac_compile itself does not contain backslashes and begins
8239    # with a dollar sign (not a hyphen), so the echo should work correctly.
8240    # The option is referenced via a variable to avoid confusing sed.
8241    lt_compile=`echo "$ac_compile" | $SED \
8242    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8243    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8244    -e 's:$: $lt_compiler_flag:'`
8245    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8246    (eval "$lt_compile" 2>conftest.err)
8247    ac_status=$?
8248    cat conftest.err >&5
8249    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250    if (exit $ac_status) && test -s "$ac_outfile"; then
8251      # The compiler can only warn and ignore the option if not recognized
8252      # So say no if there are warnings other than the usual output.
8253      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8254      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8256        lt_cv_prog_compiler_rtti_exceptions=yes
8257      fi
8258    fi
8259    $RM conftest*
8260
8261 fi
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8263 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8264
8265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8266     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8267 else
8268     :
8269 fi
8270
8271 fi
8272
8273
8274
8275
8276
8277
8278   lt_prog_compiler_wl=
8279 lt_prog_compiler_pic=
8280 lt_prog_compiler_static=
8281
8282
8283   if test "$GCC" = yes; then
8284     lt_prog_compiler_wl='-Wl,'
8285     lt_prog_compiler_static='-static'
8286
8287     case $host_os in
8288       aix*)
8289       # All AIX code is PIC.
8290       if test "$host_cpu" = ia64; then
8291         # AIX 5 now supports IA64 processor
8292         lt_prog_compiler_static='-Bstatic'
8293       fi
8294       ;;
8295
8296     amigaos*)
8297       case $host_cpu in
8298       powerpc)
8299             # see comment about AmigaOS4 .so support
8300             lt_prog_compiler_pic='-fPIC'
8301         ;;
8302       m68k)
8303             # FIXME: we need at least 68020 code to build shared libraries, but
8304             # adding the `-m68020' flag to GCC prevents building anything better,
8305             # like `-m68040'.
8306             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8307         ;;
8308       esac
8309       ;;
8310
8311     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8312       # PIC is the default for these OSes.
8313       ;;
8314
8315     mingw* | cygwin* | pw32* | os2* | cegcc*)
8316       # This hack is so that the source file can tell whether it is being
8317       # built for inclusion in a dll (and should export symbols for example).
8318       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8319       # (--disable-auto-import) libraries
8320       lt_prog_compiler_pic='-DDLL_EXPORT'
8321       ;;
8322
8323     darwin* | rhapsody*)
8324       # PIC is the default on this platform
8325       # Common symbols not allowed in MH_DYLIB files
8326       lt_prog_compiler_pic='-fno-common'
8327       ;;
8328
8329     haiku*)
8330       # PIC is the default for Haiku.
8331       # The "-static" flag exists, but is broken.
8332       lt_prog_compiler_static=
8333       ;;
8334
8335     hpux*)
8336       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8337       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8338       # sets the default TLS model and affects inlining.
8339       case $host_cpu in
8340       hppa*64*)
8341         # +Z the default
8342         ;;
8343       *)
8344         lt_prog_compiler_pic='-fPIC'
8345         ;;
8346       esac
8347       ;;
8348
8349     interix[3-9]*)
8350       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8351       # Instead, we relocate shared libraries at runtime.
8352       ;;
8353
8354     msdosdjgpp*)
8355       # Just because we use GCC doesn't mean we suddenly get shared libraries
8356       # on systems that don't support them.
8357       lt_prog_compiler_can_build_shared=no
8358       enable_shared=no
8359       ;;
8360
8361     *nto* | *qnx*)
8362       # QNX uses GNU C++, but need to define -shared option too, otherwise
8363       # it will coredump.
8364       lt_prog_compiler_pic='-fPIC -shared'
8365       ;;
8366
8367     sysv4*MP*)
8368       if test -d /usr/nec; then
8369         lt_prog_compiler_pic=-Kconform_pic
8370       fi
8371       ;;
8372
8373     *)
8374       lt_prog_compiler_pic='-fPIC'
8375       ;;
8376     esac
8377
8378     case $cc_basename in
8379     nvcc*) # Cuda Compiler Driver 2.2
8380       lt_prog_compiler_wl='-Xlinker '
8381       if test -n "$lt_prog_compiler_pic"; then
8382         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8383       fi
8384       ;;
8385     esac
8386   else
8387     # PORTME Check for flag to pass linker flags through the system compiler.
8388     case $host_os in
8389     aix*)
8390       lt_prog_compiler_wl='-Wl,'
8391       if test "$host_cpu" = ia64; then
8392         # AIX 5 now supports IA64 processor
8393         lt_prog_compiler_static='-Bstatic'
8394       else
8395         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8396       fi
8397       ;;
8398
8399     mingw* | cygwin* | pw32* | os2* | cegcc*)
8400       # This hack is so that the source file can tell whether it is being
8401       # built for inclusion in a dll (and should export symbols for example).
8402       lt_prog_compiler_pic='-DDLL_EXPORT'
8403       ;;
8404
8405     hpux9* | hpux10* | hpux11*)
8406       lt_prog_compiler_wl='-Wl,'
8407       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8408       # not for PA HP-UX.
8409       case $host_cpu in
8410       hppa*64*|ia64*)
8411         # +Z the default
8412         ;;
8413       *)
8414         lt_prog_compiler_pic='+Z'
8415         ;;
8416       esac
8417       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8418       lt_prog_compiler_static='${wl}-a ${wl}archive'
8419       ;;
8420
8421     irix5* | irix6* | nonstopux*)
8422       lt_prog_compiler_wl='-Wl,'
8423       # PIC (with -KPIC) is the default.
8424       lt_prog_compiler_static='-non_shared'
8425       ;;
8426
8427     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8428       case $cc_basename in
8429       # old Intel for x86_64 which still supported -KPIC.
8430       ecc*)
8431         lt_prog_compiler_wl='-Wl,'
8432         lt_prog_compiler_pic='-KPIC'
8433         lt_prog_compiler_static='-static'
8434         ;;
8435       # icc used to be incompatible with GCC.
8436       # ICC 10 doesn't accept -KPIC any more.
8437       icc* | ifort*)
8438         lt_prog_compiler_wl='-Wl,'
8439         lt_prog_compiler_pic='-fPIC'
8440         lt_prog_compiler_static='-static'
8441         ;;
8442       # Lahey Fortran 8.1.
8443       lf95*)
8444         lt_prog_compiler_wl='-Wl,'
8445         lt_prog_compiler_pic='--shared'
8446         lt_prog_compiler_static='--static'
8447         ;;
8448       nagfor*)
8449         # NAG Fortran compiler
8450         lt_prog_compiler_wl='-Wl,-Wl,,'
8451         lt_prog_compiler_pic='-PIC'
8452         lt_prog_compiler_static='-Bstatic'
8453         ;;
8454       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8455         # Portland Group compilers (*not* the Pentium gcc compiler,
8456         # which looks to be a dead project)
8457         lt_prog_compiler_wl='-Wl,'
8458         lt_prog_compiler_pic='-fpic'
8459         lt_prog_compiler_static='-Bstatic'
8460         ;;
8461       ccc*)
8462         lt_prog_compiler_wl='-Wl,'
8463         # All Alpha code is PIC.
8464         lt_prog_compiler_static='-non_shared'
8465         ;;
8466       xl* | bgxl* | bgf* | mpixl*)
8467         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8468         lt_prog_compiler_wl='-Wl,'
8469         lt_prog_compiler_pic='-qpic'
8470         lt_prog_compiler_static='-qstaticlink'
8471         ;;
8472       *)
8473         case `$CC -V 2>&1 | sed 5q` in
8474         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8475           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8476           lt_prog_compiler_pic='-KPIC'
8477           lt_prog_compiler_static='-Bstatic'
8478           lt_prog_compiler_wl=''
8479           ;;
8480         *Sun\ F* | *Sun*Fortran*)
8481           lt_prog_compiler_pic='-KPIC'
8482           lt_prog_compiler_static='-Bstatic'
8483           lt_prog_compiler_wl='-Qoption ld '
8484           ;;
8485         *Sun\ C*)
8486           # Sun C 5.9
8487           lt_prog_compiler_pic='-KPIC'
8488           lt_prog_compiler_static='-Bstatic'
8489           lt_prog_compiler_wl='-Wl,'
8490           ;;
8491         *Intel*\ [CF]*Compiler*)
8492           lt_prog_compiler_wl='-Wl,'
8493           lt_prog_compiler_pic='-fPIC'
8494           lt_prog_compiler_static='-static'
8495           ;;
8496         *Portland\ Group*)
8497           lt_prog_compiler_wl='-Wl,'
8498           lt_prog_compiler_pic='-fpic'
8499           lt_prog_compiler_static='-Bstatic'
8500           ;;
8501         esac
8502         ;;
8503       esac
8504       ;;
8505
8506     newsos6)
8507       lt_prog_compiler_pic='-KPIC'
8508       lt_prog_compiler_static='-Bstatic'
8509       ;;
8510
8511     *nto* | *qnx*)
8512       # QNX uses GNU C++, but need to define -shared option too, otherwise
8513       # it will coredump.
8514       lt_prog_compiler_pic='-fPIC -shared'
8515       ;;
8516
8517     osf3* | osf4* | osf5*)
8518       lt_prog_compiler_wl='-Wl,'
8519       # All OSF/1 code is PIC.
8520       lt_prog_compiler_static='-non_shared'
8521       ;;
8522
8523     rdos*)
8524       lt_prog_compiler_static='-non_shared'
8525       ;;
8526
8527     solaris*)
8528       lt_prog_compiler_pic='-KPIC'
8529       lt_prog_compiler_static='-Bstatic'
8530       case $cc_basename in
8531       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8532         lt_prog_compiler_wl='-Qoption ld ';;
8533       *)
8534         lt_prog_compiler_wl='-Wl,';;
8535       esac
8536       ;;
8537
8538     sunos4*)
8539       lt_prog_compiler_wl='-Qoption ld '
8540       lt_prog_compiler_pic='-PIC'
8541       lt_prog_compiler_static='-Bstatic'
8542       ;;
8543
8544     sysv4 | sysv4.2uw2* | sysv4.3*)
8545       lt_prog_compiler_wl='-Wl,'
8546       lt_prog_compiler_pic='-KPIC'
8547       lt_prog_compiler_static='-Bstatic'
8548       ;;
8549
8550     sysv4*MP*)
8551       if test -d /usr/nec ;then
8552         lt_prog_compiler_pic='-Kconform_pic'
8553         lt_prog_compiler_static='-Bstatic'
8554       fi
8555       ;;
8556
8557     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8558       lt_prog_compiler_wl='-Wl,'
8559       lt_prog_compiler_pic='-KPIC'
8560       lt_prog_compiler_static='-Bstatic'
8561       ;;
8562
8563     unicos*)
8564       lt_prog_compiler_wl='-Wl,'
8565       lt_prog_compiler_can_build_shared=no
8566       ;;
8567
8568     uts4*)
8569       lt_prog_compiler_pic='-pic'
8570       lt_prog_compiler_static='-Bstatic'
8571       ;;
8572
8573     *)
8574       lt_prog_compiler_can_build_shared=no
8575       ;;
8576     esac
8577   fi
8578
8579 case $host_os in
8580   # For platforms which do not support PIC, -DPIC is meaningless:
8581   *djgpp*)
8582     lt_prog_compiler_pic=
8583     ;;
8584   *)
8585     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8586     ;;
8587 esac
8588
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8590 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8591 if ${lt_cv_prog_compiler_pic+:} false; then :
8592   $as_echo_n "(cached) " >&6
8593 else
8594   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8595 fi
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8597 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8598 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8599
8600 #
8601 # Check to make sure the PIC flag actually works.
8602 #
8603 if test -n "$lt_prog_compiler_pic"; then
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8605 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8606 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8607   $as_echo_n "(cached) " >&6
8608 else
8609   lt_cv_prog_compiler_pic_works=no
8610    ac_outfile=conftest.$ac_objext
8611    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8612    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8613    # Insert the option either (1) after the last *FLAGS variable, or
8614    # (2) before a word containing "conftest.", or (3) at the end.
8615    # Note that $ac_compile itself does not contain backslashes and begins
8616    # with a dollar sign (not a hyphen), so the echo should work correctly.
8617    # The option is referenced via a variable to avoid confusing sed.
8618    lt_compile=`echo "$ac_compile" | $SED \
8619    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621    -e 's:$: $lt_compiler_flag:'`
8622    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8623    (eval "$lt_compile" 2>conftest.err)
8624    ac_status=$?
8625    cat conftest.err >&5
8626    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627    if (exit $ac_status) && test -s "$ac_outfile"; then
8628      # The compiler can only warn and ignore the option if not recognized
8629      # So say no if there are warnings other than the usual output.
8630      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8631      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8632      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8633        lt_cv_prog_compiler_pic_works=yes
8634      fi
8635    fi
8636    $RM conftest*
8637
8638 fi
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8640 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8641
8642 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8643     case $lt_prog_compiler_pic in
8644      "" | " "*) ;;
8645      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8646      esac
8647 else
8648     lt_prog_compiler_pic=
8649      lt_prog_compiler_can_build_shared=no
8650 fi
8651
8652 fi
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664 #
8665 # Check to make sure the static flag actually works.
8666 #
8667 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8669 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8670 if ${lt_cv_prog_compiler_static_works+:} false; then :
8671   $as_echo_n "(cached) " >&6
8672 else
8673   lt_cv_prog_compiler_static_works=no
8674    save_LDFLAGS="$LDFLAGS"
8675    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8676    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8677    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8678      # The linker can only warn and ignore the option if not recognized
8679      # So say no if there are warnings
8680      if test -s conftest.err; then
8681        # Append any errors to the config.log.
8682        cat conftest.err 1>&5
8683        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8684        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8685        if diff conftest.exp conftest.er2 >/dev/null; then
8686          lt_cv_prog_compiler_static_works=yes
8687        fi
8688      else
8689        lt_cv_prog_compiler_static_works=yes
8690      fi
8691    fi
8692    $RM -r conftest*
8693    LDFLAGS="$save_LDFLAGS"
8694
8695 fi
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8697 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8698
8699 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8700     :
8701 else
8702     lt_prog_compiler_static=
8703 fi
8704
8705
8706
8707
8708
8709
8710
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8712 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8713 if ${lt_cv_prog_compiler_c_o+:} false; then :
8714   $as_echo_n "(cached) " >&6
8715 else
8716   lt_cv_prog_compiler_c_o=no
8717    $RM -r conftest 2>/dev/null
8718    mkdir conftest
8719    cd conftest
8720    mkdir out
8721    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8722
8723    lt_compiler_flag="-o out/conftest2.$ac_objext"
8724    # Insert the option either (1) after the last *FLAGS variable, or
8725    # (2) before a word containing "conftest.", or (3) at the end.
8726    # Note that $ac_compile itself does not contain backslashes and begins
8727    # with a dollar sign (not a hyphen), so the echo should work correctly.
8728    lt_compile=`echo "$ac_compile" | $SED \
8729    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8730    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8731    -e 's:$: $lt_compiler_flag:'`
8732    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8733    (eval "$lt_compile" 2>out/conftest.err)
8734    ac_status=$?
8735    cat out/conftest.err >&5
8736    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8738    then
8739      # The compiler can only warn and ignore the option if not recognized
8740      # So say no if there are warnings
8741      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8742      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8743      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8744        lt_cv_prog_compiler_c_o=yes
8745      fi
8746    fi
8747    chmod u+w . 2>&5
8748    $RM conftest*
8749    # SGI C++ compiler will create directory out/ii_files/ for
8750    # template instantiation
8751    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8752    $RM out/* && rmdir out
8753    cd ..
8754    $RM -r conftest
8755    $RM conftest*
8756
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8759 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8760
8761
8762
8763
8764
8765
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8767 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8768 if ${lt_cv_prog_compiler_c_o+:} false; then :
8769   $as_echo_n "(cached) " >&6
8770 else
8771   lt_cv_prog_compiler_c_o=no
8772    $RM -r conftest 2>/dev/null
8773    mkdir conftest
8774    cd conftest
8775    mkdir out
8776    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8777
8778    lt_compiler_flag="-o out/conftest2.$ac_objext"
8779    # Insert the option either (1) after the last *FLAGS variable, or
8780    # (2) before a word containing "conftest.", or (3) at the end.
8781    # Note that $ac_compile itself does not contain backslashes and begins
8782    # with a dollar sign (not a hyphen), so the echo should work correctly.
8783    lt_compile=`echo "$ac_compile" | $SED \
8784    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8785    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8786    -e 's:$: $lt_compiler_flag:'`
8787    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8788    (eval "$lt_compile" 2>out/conftest.err)
8789    ac_status=$?
8790    cat out/conftest.err >&5
8791    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8793    then
8794      # The compiler can only warn and ignore the option if not recognized
8795      # So say no if there are warnings
8796      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8797      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8798      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8799        lt_cv_prog_compiler_c_o=yes
8800      fi
8801    fi
8802    chmod u+w . 2>&5
8803    $RM conftest*
8804    # SGI C++ compiler will create directory out/ii_files/ for
8805    # template instantiation
8806    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8807    $RM out/* && rmdir out
8808    cd ..
8809    $RM -r conftest
8810    $RM conftest*
8811
8812 fi
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8814 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8815
8816
8817
8818
8819 hard_links="nottested"
8820 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8821   # do not overwrite the value of need_locks provided by the user
8822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8823 $as_echo_n "checking if we can lock with hard links... " >&6; }
8824   hard_links=yes
8825   $RM conftest*
8826   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8827   touch conftest.a
8828   ln conftest.a conftest.b 2>&5 || hard_links=no
8829   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8831 $as_echo "$hard_links" >&6; }
8832   if test "$hard_links" = no; then
8833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8834 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8835     need_locks=warn
8836   fi
8837 else
8838   need_locks=no
8839 fi
8840
8841
8842
8843
8844
8845
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8848
8849   runpath_var=
8850   allow_undefined_flag=
8851   always_export_symbols=no
8852   archive_cmds=
8853   archive_expsym_cmds=
8854   compiler_needs_object=no
8855   enable_shared_with_static_runtimes=no
8856   export_dynamic_flag_spec=
8857   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8858   hardcode_automatic=no
8859   hardcode_direct=no
8860   hardcode_direct_absolute=no
8861   hardcode_libdir_flag_spec=
8862   hardcode_libdir_separator=
8863   hardcode_minus_L=no
8864   hardcode_shlibpath_var=unsupported
8865   inherit_rpath=no
8866   link_all_deplibs=unknown
8867   module_cmds=
8868   module_expsym_cmds=
8869   old_archive_from_new_cmds=
8870   old_archive_from_expsyms_cmds=
8871   thread_safe_flag_spec=
8872   whole_archive_flag_spec=
8873   # include_expsyms should be a list of space-separated symbols to be *always*
8874   # included in the symbol list
8875   include_expsyms=
8876   # exclude_expsyms can be an extended regexp of symbols to exclude
8877   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8878   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8879   # as well as any symbol that contains `d'.
8880   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8881   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8882   # platforms (ab)use it in PIC code, but their linkers get confused if
8883   # the symbol is explicitly referenced.  Since portable code cannot
8884   # rely on this symbol name, it's probably fine to never include it in
8885   # preloaded symbol tables.
8886   # Exclude shared library initialization/finalization symbols.
8887   extract_expsyms_cmds=
8888
8889   case $host_os in
8890   cygwin* | mingw* | pw32* | cegcc*)
8891     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8892     # When not using gcc, we currently assume that we are using
8893     # Microsoft Visual C++.
8894     if test "$GCC" != yes; then
8895       with_gnu_ld=no
8896     fi
8897     ;;
8898   interix*)
8899     # we just hope/assume this is gcc and not c89 (= MSVC++)
8900     with_gnu_ld=yes
8901     ;;
8902   openbsd*)
8903     with_gnu_ld=no
8904     ;;
8905   esac
8906
8907   ld_shlibs=yes
8908
8909   # On some targets, GNU ld is compatible enough with the native linker
8910   # that we're better off using the native interface for both.
8911   lt_use_gnu_ld_interface=no
8912   if test "$with_gnu_ld" = yes; then
8913     case $host_os in
8914       aix*)
8915         # The AIX port of GNU ld has always aspired to compatibility
8916         # with the native linker.  However, as the warning in the GNU ld
8917         # block says, versions before 2.19.5* couldn't really create working
8918         # shared libraries, regardless of the interface used.
8919         case `$LD -v 2>&1` in
8920           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8921           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8922           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8923           *)
8924             lt_use_gnu_ld_interface=yes
8925             ;;
8926         esac
8927         ;;
8928       *)
8929         lt_use_gnu_ld_interface=yes
8930         ;;
8931     esac
8932   fi
8933
8934   if test "$lt_use_gnu_ld_interface" = yes; then
8935     # If archive_cmds runs LD, not CC, wlarc should be empty
8936     wlarc='${wl}'
8937
8938     # Set some defaults for GNU ld with shared library support. These
8939     # are reset later if shared libraries are not supported. Putting them
8940     # here allows them to be overridden if necessary.
8941     runpath_var=LD_RUN_PATH
8942     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8943     export_dynamic_flag_spec='${wl}--export-dynamic'
8944     # ancient GNU ld didn't support --whole-archive et. al.
8945     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8946       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8947     else
8948       whole_archive_flag_spec=
8949     fi
8950     supports_anon_versioning=no
8951     case `$LD -v 2>&1` in
8952       *GNU\ gold*) supports_anon_versioning=yes ;;
8953       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8954       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8955       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8956       *\ 2.11.*) ;; # other 2.11 versions
8957       *) supports_anon_versioning=yes ;;
8958     esac
8959
8960     # See if GNU ld supports shared libraries.
8961     case $host_os in
8962     aix[3-9]*)
8963       # On AIX/PPC, the GNU linker is very broken
8964       if test "$host_cpu" != ia64; then
8965         ld_shlibs=no
8966         cat <<_LT_EOF 1>&2
8967
8968 *** Warning: the GNU linker, at least up to release 2.19, is reported
8969 *** to be unable to reliably create shared libraries on AIX.
8970 *** Therefore, libtool is disabling shared libraries support.  If you
8971 *** really care for shared libraries, you may want to install binutils
8972 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8973 *** You will then need to restart the configuration process.
8974
8975 _LT_EOF
8976       fi
8977       ;;
8978
8979     amigaos*)
8980       case $host_cpu in
8981       powerpc)
8982             # see comment about AmigaOS4 .so support
8983             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984             archive_expsym_cmds=''
8985         ;;
8986       m68k)
8987             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)'
8988             hardcode_libdir_flag_spec='-L$libdir'
8989             hardcode_minus_L=yes
8990         ;;
8991       esac
8992       ;;
8993
8994     beos*)
8995       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8996         allow_undefined_flag=unsupported
8997         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8998         # support --undefined.  This deserves some investigation.  FIXME
8999         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000       else
9001         ld_shlibs=no
9002       fi
9003       ;;
9004
9005     cygwin* | mingw* | pw32* | cegcc*)
9006       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9007       # as there is no search path for DLLs.
9008       hardcode_libdir_flag_spec='-L$libdir'
9009       export_dynamic_flag_spec='${wl}--export-all-symbols'
9010       allow_undefined_flag=unsupported
9011       always_export_symbols=no
9012       enable_shared_with_static_runtimes=yes
9013       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'
9014       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9015
9016       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9017         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9018         # If the export-symbols file already is a .def file (1st line
9019         # is EXPORTS), use it as is; otherwise, prepend...
9020         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9021           cp $export_symbols $output_objdir/$soname.def;
9022         else
9023           echo EXPORTS > $output_objdir/$soname.def;
9024           cat $export_symbols >> $output_objdir/$soname.def;
9025         fi~
9026         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9027       else
9028         ld_shlibs=no
9029       fi
9030       ;;
9031
9032     haiku*)
9033       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034       link_all_deplibs=yes
9035       ;;
9036
9037     interix[3-9]*)
9038       hardcode_direct=no
9039       hardcode_shlibpath_var=no
9040       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9041       export_dynamic_flag_spec='${wl}-E'
9042       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9043       # Instead, shared libraries are loaded at an image base (0x10000000 by
9044       # default) and relocated if they conflict, which is a slow very memory
9045       # consuming and fragmenting process.  To avoid this, we pick a random,
9046       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9047       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9048       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9049       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'
9050       ;;
9051
9052     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9053       tmp_diet=no
9054       if test "$host_os" = linux-dietlibc; then
9055         case $cc_basename in
9056           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9057         esac
9058       fi
9059       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9060          && test "$tmp_diet" = no
9061       then
9062         tmp_addflag=' $pic_flag'
9063         tmp_sharedflag='-shared'
9064         case $cc_basename,$host_cpu in
9065         pgcc*)                          # Portland Group C compiler
9066           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'
9067           tmp_addflag=' $pic_flag'
9068           ;;
9069         pgf77* | pgf90* | pgf95* | pgfortran*)
9070                                         # Portland Group f77 and f90 compilers
9071           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'
9072           tmp_addflag=' $pic_flag -Mnomain' ;;
9073         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9074           tmp_addflag=' -i_dynamic' ;;
9075         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9076           tmp_addflag=' -i_dynamic -nofor_main' ;;
9077         ifc* | ifort*)                  # Intel Fortran compiler
9078           tmp_addflag=' -nofor_main' ;;
9079         lf95*)                          # Lahey Fortran 8.1
9080           whole_archive_flag_spec=
9081           tmp_sharedflag='--shared' ;;
9082         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9083           tmp_sharedflag='-qmkshrobj'
9084           tmp_addflag= ;;
9085         nvcc*)  # Cuda Compiler Driver 2.2
9086           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'
9087           compiler_needs_object=yes
9088           ;;
9089         esac
9090         case `$CC -V 2>&1 | sed 5q` in
9091         *Sun\ C*)                       # Sun C 5.9
9092           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'
9093           compiler_needs_object=yes
9094           tmp_sharedflag='-G' ;;
9095         *Sun\ F*)                       # Sun Fortran 8.3
9096           tmp_sharedflag='-G' ;;
9097         esac
9098         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9099
9100         if test "x$supports_anon_versioning" = xyes; then
9101           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9102             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9103             echo "local: *; };" >> $output_objdir/$libname.ver~
9104             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9105         fi
9106
9107         case $cc_basename in
9108         xlf* | bgf* | bgxlf* | mpixlf*)
9109           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9110           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9111           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9112           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9113           if test "x$supports_anon_versioning" = xyes; then
9114             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9115               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9116               echo "local: *; };" >> $output_objdir/$libname.ver~
9117               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9118           fi
9119           ;;
9120         esac
9121       else
9122         ld_shlibs=no
9123       fi
9124       ;;
9125
9126     netbsd*)
9127       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9128         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9129         wlarc=
9130       else
9131         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9133       fi
9134       ;;
9135
9136     solaris*)
9137       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9138         ld_shlibs=no
9139         cat <<_LT_EOF 1>&2
9140
9141 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9142 *** create shared libraries on Solaris systems.  Therefore, libtool
9143 *** is disabling shared libraries support.  We urge you to upgrade GNU
9144 *** binutils to release 2.9.1 or newer.  Another option is to modify
9145 *** your PATH or compiler configuration so that the native linker is
9146 *** used, and then restart.
9147
9148 _LT_EOF
9149       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9150         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9152       else
9153         ld_shlibs=no
9154       fi
9155       ;;
9156
9157     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9158       case `$LD -v 2>&1` in
9159         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9160         ld_shlibs=no
9161         cat <<_LT_EOF 1>&2
9162
9163 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9164 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9165 *** is disabling shared libraries support.  We urge you to upgrade GNU
9166 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9167 *** your PATH or compiler configuration so that the native linker is
9168 *** used, and then restart.
9169
9170 _LT_EOF
9171         ;;
9172         *)
9173           # For security reasons, it is highly recommended that you always
9174           # use absolute paths for naming shared libraries, and exclude the
9175           # DT_RUNPATH tag from executables and libraries.  But doing so
9176           # requires that you compile everything twice, which is a pain.
9177           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9178             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9179             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9180             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9181           else
9182             ld_shlibs=no
9183           fi
9184         ;;
9185       esac
9186       ;;
9187
9188     sunos4*)
9189       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9190       wlarc=
9191       hardcode_direct=yes
9192       hardcode_shlibpath_var=no
9193       ;;
9194
9195     *)
9196       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9197         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9199       else
9200         ld_shlibs=no
9201       fi
9202       ;;
9203     esac
9204
9205     if test "$ld_shlibs" = no; then
9206       runpath_var=
9207       hardcode_libdir_flag_spec=
9208       export_dynamic_flag_spec=
9209       whole_archive_flag_spec=
9210     fi
9211   else
9212     # PORTME fill in a description of your system's linker (not GNU ld)
9213     case $host_os in
9214     aix3*)
9215       allow_undefined_flag=unsupported
9216       always_export_symbols=yes
9217       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'
9218       # Note: this linker hardcodes the directories in LIBPATH if there
9219       # are no directories specified by -L.
9220       hardcode_minus_L=yes
9221       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9222         # Neither direct hardcoding nor static linking is supported with a
9223         # broken collect2.
9224         hardcode_direct=unsupported
9225       fi
9226       ;;
9227
9228     aix[4-9]*)
9229       if test "$host_cpu" = ia64; then
9230         # On IA64, the linker does run time linking by default, so we don't
9231         # have to do anything special.
9232         aix_use_runtimelinking=no
9233         exp_sym_flag='-Bexport'
9234         no_entry_flag=""
9235       else
9236         # If we're using GNU nm, then we don't want the "-C" option.
9237         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9238         # Also, AIX nm treats weak defined symbols like other global
9239         # defined symbols, whereas GNU nm marks them as "W".
9240         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9241           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9242         else
9243           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9244         fi
9245         aix_use_runtimelinking=no
9246
9247         # Test if we are trying to use run time linking or normal
9248         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9249         # need to do runtime linking.
9250         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9251           for ld_flag in $LDFLAGS; do
9252           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9253             aix_use_runtimelinking=yes
9254             break
9255           fi
9256           done
9257           ;;
9258         esac
9259
9260         exp_sym_flag='-bexport'
9261         no_entry_flag='-bnoentry'
9262       fi
9263
9264       # When large executables or shared objects are built, AIX ld can
9265       # have problems creating the table of contents.  If linking a library
9266       # or program results in "error TOC overflow" add -mminimal-toc to
9267       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9268       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9269
9270       archive_cmds=''
9271       hardcode_direct=yes
9272       hardcode_direct_absolute=yes
9273       hardcode_libdir_separator=':'
9274       link_all_deplibs=yes
9275       file_list_spec='${wl}-f,'
9276
9277       if test "$GCC" = yes; then
9278         case $host_os in aix4.[012]|aix4.[012].*)
9279         # We only want to do this on AIX 4.2 and lower, the check
9280         # below for broken collect2 doesn't work under 4.3+
9281           collect2name=`${CC} -print-prog-name=collect2`
9282           if test -f "$collect2name" &&
9283            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9284           then
9285           # We have reworked collect2
9286           :
9287           else
9288           # We have old collect2
9289           hardcode_direct=unsupported
9290           # It fails to find uninstalled libraries when the uninstalled
9291           # path is not listed in the libpath.  Setting hardcode_minus_L
9292           # to unsupported forces relinking
9293           hardcode_minus_L=yes
9294           hardcode_libdir_flag_spec='-L$libdir'
9295           hardcode_libdir_separator=
9296           fi
9297           ;;
9298         esac
9299         shared_flag='-shared'
9300         if test "$aix_use_runtimelinking" = yes; then
9301           shared_flag="$shared_flag "'${wl}-G'
9302         fi
9303       else
9304         # not using gcc
9305         if test "$host_cpu" = ia64; then
9306         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9307         # chokes on -Wl,-G. The following line is correct:
9308           shared_flag='-G'
9309         else
9310           if test "$aix_use_runtimelinking" = yes; then
9311             shared_flag='${wl}-G'
9312           else
9313             shared_flag='${wl}-bM:SRE'
9314           fi
9315         fi
9316       fi
9317
9318       export_dynamic_flag_spec='${wl}-bexpall'
9319       # It seems that -bexpall does not export symbols beginning with
9320       # underscore (_), so it is better to generate a list of symbols to export.
9321       always_export_symbols=yes
9322       if test "$aix_use_runtimelinking" = yes; then
9323         # Warning - without using the other runtime loading flags (-brtl),
9324         # -berok will link without error, but may produce a broken library.
9325         allow_undefined_flag='-berok'
9326         # Determine the default libpath from the value encoded in an
9327         # empty executable.
9328         if test "${lt_cv_aix_libpath+set}" = set; then
9329   aix_libpath=$lt_cv_aix_libpath
9330 else
9331   if ${lt_cv_aix_libpath_+:} false; then :
9332   $as_echo_n "(cached) " >&6
9333 else
9334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h.  */
9336
9337 int
9338 main ()
9339 {
9340
9341   ;
9342   return 0;
9343 }
9344 _ACEOF
9345 if ac_fn_c_try_link "$LINENO"; then :
9346
9347   lt_aix_libpath_sed='
9348       /Import File Strings/,/^$/ {
9349           /^0/ {
9350               s/^0  *\([^ ]*\) *$/\1/
9351               p
9352           }
9353       }'
9354   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9355   # Check for a 64-bit object if we didn't find anything.
9356   if test -z "$lt_cv_aix_libpath_"; then
9357     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9358   fi
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext \
9361     conftest$ac_exeext conftest.$ac_ext
9362   if test -z "$lt_cv_aix_libpath_"; then
9363     lt_cv_aix_libpath_="/usr/lib:/lib"
9364   fi
9365
9366 fi
9367
9368   aix_libpath=$lt_cv_aix_libpath_
9369 fi
9370
9371         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9372         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9373       else
9374         if test "$host_cpu" = ia64; then
9375           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9376           allow_undefined_flag="-z nodefs"
9377           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"
9378         else
9379          # Determine the default libpath from the value encoded in an
9380          # empty executable.
9381          if test "${lt_cv_aix_libpath+set}" = set; then
9382   aix_libpath=$lt_cv_aix_libpath
9383 else
9384   if ${lt_cv_aix_libpath_+:} false; then :
9385   $as_echo_n "(cached) " >&6
9386 else
9387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h.  */
9389
9390 int
9391 main ()
9392 {
9393
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"; then :
9399
9400   lt_aix_libpath_sed='
9401       /Import File Strings/,/^$/ {
9402           /^0/ {
9403               s/^0  *\([^ ]*\) *$/\1/
9404               p
9405           }
9406       }'
9407   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9408   # Check for a 64-bit object if we didn't find anything.
9409   if test -z "$lt_cv_aix_libpath_"; then
9410     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9411   fi
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext \
9414     conftest$ac_exeext conftest.$ac_ext
9415   if test -z "$lt_cv_aix_libpath_"; then
9416     lt_cv_aix_libpath_="/usr/lib:/lib"
9417   fi
9418
9419 fi
9420
9421   aix_libpath=$lt_cv_aix_libpath_
9422 fi
9423
9424          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9425           # Warning - without using the other run time loading flags,
9426           # -berok will link without error, but may produce a broken library.
9427           no_undefined_flag=' ${wl}-bernotok'
9428           allow_undefined_flag=' ${wl}-berok'
9429           if test "$with_gnu_ld" = yes; then
9430             # We only use this code for GNU lds that support --whole-archive.
9431             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9432           else
9433             # Exported symbols can be pulled into shared objects from archives
9434             whole_archive_flag_spec='$convenience'
9435           fi
9436           archive_cmds_need_lc=yes
9437           # This is similar to how AIX traditionally builds its shared libraries.
9438           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9439         fi
9440       fi
9441       ;;
9442
9443     amigaos*)
9444       case $host_cpu in
9445       powerpc)
9446             # see comment about AmigaOS4 .so support
9447             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448             archive_expsym_cmds=''
9449         ;;
9450       m68k)
9451             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)'
9452             hardcode_libdir_flag_spec='-L$libdir'
9453             hardcode_minus_L=yes
9454         ;;
9455       esac
9456       ;;
9457
9458     bsdi[45]*)
9459       export_dynamic_flag_spec=-rdynamic
9460       ;;
9461
9462     cygwin* | mingw* | pw32* | cegcc*)
9463       # When not using gcc, we currently assume that we are using
9464       # Microsoft Visual C++.
9465       # hardcode_libdir_flag_spec is actually meaningless, as there is
9466       # no search path for DLLs.
9467       case $cc_basename in
9468       cl*)
9469         # Native MSVC
9470         hardcode_libdir_flag_spec=' '
9471         allow_undefined_flag=unsupported
9472         always_export_symbols=yes
9473         file_list_spec='@'
9474         # Tell ltmain to make .lib files, not .a files.
9475         libext=lib
9476         # Tell ltmain to make .dll files, not .so files.
9477         shrext_cmds=".dll"
9478         # FIXME: Setting linknames here is a bad hack.
9479         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9480         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9481             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9482           else
9483             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9484           fi~
9485           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9486           linknames='
9487         # The linker will not automatically build a static lib if we build a DLL.
9488         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9489         enable_shared_with_static_runtimes=yes
9490         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9491         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9492         # Don't use ranlib
9493         old_postinstall_cmds='chmod 644 $oldlib'
9494         postlink_cmds='lt_outputfile="@OUTPUT@"~
9495           lt_tool_outputfile="@TOOL_OUTPUT@"~
9496           case $lt_outputfile in
9497             *.exe|*.EXE) ;;
9498             *)
9499               lt_outputfile="$lt_outputfile.exe"
9500               lt_tool_outputfile="$lt_tool_outputfile.exe"
9501               ;;
9502           esac~
9503           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9504             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9505             $RM "$lt_outputfile.manifest";
9506           fi'
9507         ;;
9508       *)
9509         # Assume MSVC wrapper
9510         hardcode_libdir_flag_spec=' '
9511         allow_undefined_flag=unsupported
9512         # Tell ltmain to make .lib files, not .a files.
9513         libext=lib
9514         # Tell ltmain to make .dll files, not .so files.
9515         shrext_cmds=".dll"
9516         # FIXME: Setting linknames here is a bad hack.
9517         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9518         # The linker will automatically build a .lib file if we build a DLL.
9519         old_archive_from_new_cmds='true'
9520         # FIXME: Should let the user specify the lib program.
9521         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9522         enable_shared_with_static_runtimes=yes
9523         ;;
9524       esac
9525       ;;
9526
9527     darwin* | rhapsody*)
9528
9529
9530   archive_cmds_need_lc=no
9531   hardcode_direct=no
9532   hardcode_automatic=yes
9533   hardcode_shlibpath_var=unsupported
9534   if test "$lt_cv_ld_force_load" = "yes"; then
9535     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\"`'
9536
9537   else
9538     whole_archive_flag_spec=''
9539   fi
9540   link_all_deplibs=yes
9541   allow_undefined_flag="$_lt_dar_allow_undefined"
9542   case $cc_basename in
9543      ifort*) _lt_dar_can_shared=yes ;;
9544      *) _lt_dar_can_shared=$GCC ;;
9545   esac
9546   if test "$_lt_dar_can_shared" = "yes"; then
9547     output_verbose_link_cmd=func_echo_all
9548     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9549     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9550     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}"
9551     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}"
9552
9553   else
9554   ld_shlibs=no
9555   fi
9556
9557       ;;
9558
9559     dgux*)
9560       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9561       hardcode_libdir_flag_spec='-L$libdir'
9562       hardcode_shlibpath_var=no
9563       ;;
9564
9565     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9566     # support.  Future versions do this automatically, but an explicit c++rt0.o
9567     # does not break anything, and helps significantly (at the cost of a little
9568     # extra space).
9569     freebsd2.2*)
9570       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9571       hardcode_libdir_flag_spec='-R$libdir'
9572       hardcode_direct=yes
9573       hardcode_shlibpath_var=no
9574       ;;
9575
9576     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9577     freebsd2.*)
9578       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9579       hardcode_direct=yes
9580       hardcode_minus_L=yes
9581       hardcode_shlibpath_var=no
9582       ;;
9583
9584     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9585     freebsd* | dragonfly*)
9586       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9587       hardcode_libdir_flag_spec='-R$libdir'
9588       hardcode_direct=yes
9589       hardcode_shlibpath_var=no
9590       ;;
9591
9592     hpux9*)
9593       if test "$GCC" = yes; then
9594         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9595       else
9596         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9597       fi
9598       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9599       hardcode_libdir_separator=:
9600       hardcode_direct=yes
9601
9602       # hardcode_minus_L: Not really in the search PATH,
9603       # but as the default location of the library.
9604       hardcode_minus_L=yes
9605       export_dynamic_flag_spec='${wl}-E'
9606       ;;
9607
9608     hpux10*)
9609       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9610         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9611       else
9612         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9613       fi
9614       if test "$with_gnu_ld" = no; then
9615         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9616         hardcode_libdir_separator=:
9617         hardcode_direct=yes
9618         hardcode_direct_absolute=yes
9619         export_dynamic_flag_spec='${wl}-E'
9620         # hardcode_minus_L: Not really in the search PATH,
9621         # but as the default location of the library.
9622         hardcode_minus_L=yes
9623       fi
9624       ;;
9625
9626     hpux11*)
9627       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9628         case $host_cpu in
9629         hppa*64*)
9630           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9631           ;;
9632         ia64*)
9633           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9634           ;;
9635         *)
9636           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9637           ;;
9638         esac
9639       else
9640         case $host_cpu in
9641         hppa*64*)
9642           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9643           ;;
9644         ia64*)
9645           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9646           ;;
9647         *)
9648
9649           # Older versions of the 11.00 compiler do not understand -b yet
9650           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9651           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9652 $as_echo_n "checking if $CC understands -b... " >&6; }
9653 if ${lt_cv_prog_compiler__b+:} false; then :
9654   $as_echo_n "(cached) " >&6
9655 else
9656   lt_cv_prog_compiler__b=no
9657    save_LDFLAGS="$LDFLAGS"
9658    LDFLAGS="$LDFLAGS -b"
9659    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9660    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9661      # The linker can only warn and ignore the option if not recognized
9662      # So say no if there are warnings
9663      if test -s conftest.err; then
9664        # Append any errors to the config.log.
9665        cat conftest.err 1>&5
9666        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9667        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9668        if diff conftest.exp conftest.er2 >/dev/null; then
9669          lt_cv_prog_compiler__b=yes
9670        fi
9671      else
9672        lt_cv_prog_compiler__b=yes
9673      fi
9674    fi
9675    $RM -r conftest*
9676    LDFLAGS="$save_LDFLAGS"
9677
9678 fi
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9680 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9681
9682 if test x"$lt_cv_prog_compiler__b" = xyes; then
9683     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9684 else
9685     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9686 fi
9687
9688           ;;
9689         esac
9690       fi
9691       if test "$with_gnu_ld" = no; then
9692         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9693         hardcode_libdir_separator=:
9694
9695         case $host_cpu in
9696         hppa*64*|ia64*)
9697           hardcode_direct=no
9698           hardcode_shlibpath_var=no
9699           ;;
9700         *)
9701           hardcode_direct=yes
9702           hardcode_direct_absolute=yes
9703           export_dynamic_flag_spec='${wl}-E'
9704
9705           # hardcode_minus_L: Not really in the search PATH,
9706           # but as the default location of the library.
9707           hardcode_minus_L=yes
9708           ;;
9709         esac
9710       fi
9711       ;;
9712
9713     irix5* | irix6* | nonstopux*)
9714       if test "$GCC" = yes; then
9715         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'
9716         # Try to use the -exported_symbol ld option, if it does not
9717         # work, assume that -exports_file does not work either and
9718         # implicitly export all symbols.
9719         # This should be the same for all languages, so no per-tag cache variable.
9720         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9721 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9722 if ${lt_cv_irix_exported_symbol+:} false; then :
9723   $as_echo_n "(cached) " >&6
9724 else
9725   save_LDFLAGS="$LDFLAGS"
9726            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9727            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h.  */
9729 int foo (void) { return 0; }
9730 _ACEOF
9731 if ac_fn_c_try_link "$LINENO"; then :
9732   lt_cv_irix_exported_symbol=yes
9733 else
9734   lt_cv_irix_exported_symbol=no
9735 fi
9736 rm -f core conftest.err conftest.$ac_objext \
9737     conftest$ac_exeext conftest.$ac_ext
9738            LDFLAGS="$save_LDFLAGS"
9739 fi
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9741 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9742         if test "$lt_cv_irix_exported_symbol" = yes; then
9743           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'
9744         fi
9745       else
9746         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'
9747         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'
9748       fi
9749       archive_cmds_need_lc='no'
9750       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9751       hardcode_libdir_separator=:
9752       inherit_rpath=yes
9753       link_all_deplibs=yes
9754       ;;
9755
9756     netbsd*)
9757       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9758         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9759       else
9760         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9761       fi
9762       hardcode_libdir_flag_spec='-R$libdir'
9763       hardcode_direct=yes
9764       hardcode_shlibpath_var=no
9765       ;;
9766
9767     newsos6)
9768       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769       hardcode_direct=yes
9770       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9771       hardcode_libdir_separator=:
9772       hardcode_shlibpath_var=no
9773       ;;
9774
9775     *nto* | *qnx*)
9776       ;;
9777
9778     openbsd*)
9779       if test -f /usr/libexec/ld.so; then
9780         hardcode_direct=yes
9781         hardcode_shlibpath_var=no
9782         hardcode_direct_absolute=yes
9783         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9784           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9785           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9786           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9787           export_dynamic_flag_spec='${wl}-E'
9788         else
9789           case $host_os in
9790            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9791              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9792              hardcode_libdir_flag_spec='-R$libdir'
9793              ;;
9794            *)
9795              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9796              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9797              ;;
9798           esac
9799         fi
9800       else
9801         ld_shlibs=no
9802       fi
9803       ;;
9804
9805     os2*)
9806       hardcode_libdir_flag_spec='-L$libdir'
9807       hardcode_minus_L=yes
9808       allow_undefined_flag=unsupported
9809       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9810       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9811       ;;
9812
9813     osf3*)
9814       if test "$GCC" = yes; then
9815         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9816         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'
9817       else
9818         allow_undefined_flag=' -expect_unresolved \*'
9819         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'
9820       fi
9821       archive_cmds_need_lc='no'
9822       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9823       hardcode_libdir_separator=:
9824       ;;
9825
9826     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9827       if test "$GCC" = yes; then
9828         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9829         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'
9830         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9831       else
9832         allow_undefined_flag=' -expect_unresolved \*'
9833         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'
9834         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~
9835         $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'
9836
9837         # Both c and cxx compiler support -rpath directly
9838         hardcode_libdir_flag_spec='-rpath $libdir'
9839       fi
9840       archive_cmds_need_lc='no'
9841       hardcode_libdir_separator=:
9842       ;;
9843
9844     solaris*)
9845       no_undefined_flag=' -z defs'
9846       if test "$GCC" = yes; then
9847         wlarc='${wl}'
9848         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9849         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9850           $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'
9851       else
9852         case `$CC -V 2>&1` in
9853         *"Compilers 5.0"*)
9854           wlarc=''
9855           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9857           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9858           ;;
9859         *)
9860           wlarc='${wl}'
9861           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9862           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9863           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9864           ;;
9865         esac
9866       fi
9867       hardcode_libdir_flag_spec='-R$libdir'
9868       hardcode_shlibpath_var=no
9869       case $host_os in
9870       solaris2.[0-5] | solaris2.[0-5].*) ;;
9871       *)
9872         # The compiler driver will combine and reorder linker options,
9873         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9874         # but is careful enough not to reorder.
9875         # Supported since Solaris 2.6 (maybe 2.5.1?)
9876         if test "$GCC" = yes; then
9877           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9878         else
9879           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9880         fi
9881         ;;
9882       esac
9883       link_all_deplibs=yes
9884       ;;
9885
9886     sunos4*)
9887       if test "x$host_vendor" = xsequent; then
9888         # Use $CC to link under sequent, because it throws in some extra .o
9889         # files that make .init and .fini sections work.
9890         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9891       else
9892         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9893       fi
9894       hardcode_libdir_flag_spec='-L$libdir'
9895       hardcode_direct=yes
9896       hardcode_minus_L=yes
9897       hardcode_shlibpath_var=no
9898       ;;
9899
9900     sysv4)
9901       case $host_vendor in
9902         sni)
9903           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904           hardcode_direct=yes # is this really true???
9905         ;;
9906         siemens)
9907           ## LD is ld it makes a PLAMLIB
9908           ## CC just makes a GrossModule.
9909           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9910           reload_cmds='$CC -r -o $output$reload_objs'
9911           hardcode_direct=no
9912         ;;
9913         motorola)
9914           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9915           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9916         ;;
9917       esac
9918       runpath_var='LD_RUN_PATH'
9919       hardcode_shlibpath_var=no
9920       ;;
9921
9922     sysv4.3*)
9923       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9924       hardcode_shlibpath_var=no
9925       export_dynamic_flag_spec='-Bexport'
9926       ;;
9927
9928     sysv4*MP*)
9929       if test -d /usr/nec; then
9930         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9931         hardcode_shlibpath_var=no
9932         runpath_var=LD_RUN_PATH
9933         hardcode_runpath_var=yes
9934         ld_shlibs=yes
9935       fi
9936       ;;
9937
9938     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9939       no_undefined_flag='${wl}-z,text'
9940       archive_cmds_need_lc=no
9941       hardcode_shlibpath_var=no
9942       runpath_var='LD_RUN_PATH'
9943
9944       if test "$GCC" = yes; then
9945         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947       else
9948         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9949         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9950       fi
9951       ;;
9952
9953     sysv5* | sco3.2v5* | sco5v6*)
9954       # Note: We can NOT use -z defs as we might desire, because we do not
9955       # link with -lc, and that would cause any symbols used from libc to
9956       # always be unresolved, which means just about no library would
9957       # ever link correctly.  If we're not using GNU ld we use -z text
9958       # though, which does catch some bad symbols but isn't as heavy-handed
9959       # as -z defs.
9960       no_undefined_flag='${wl}-z,text'
9961       allow_undefined_flag='${wl}-z,nodefs'
9962       archive_cmds_need_lc=no
9963       hardcode_shlibpath_var=no
9964       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9965       hardcode_libdir_separator=':'
9966       link_all_deplibs=yes
9967       export_dynamic_flag_spec='${wl}-Bexport'
9968       runpath_var='LD_RUN_PATH'
9969
9970       if test "$GCC" = yes; then
9971         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9972         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9973       else
9974         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9975         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9976       fi
9977       ;;
9978
9979     uts4*)
9980       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981       hardcode_libdir_flag_spec='-L$libdir'
9982       hardcode_shlibpath_var=no
9983       ;;
9984
9985     *)
9986       ld_shlibs=no
9987       ;;
9988     esac
9989
9990     if test x$host_vendor = xsni; then
9991       case $host in
9992       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9993         export_dynamic_flag_spec='${wl}-Blargedynsym'
9994         ;;
9995       esac
9996     fi
9997   fi
9998
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10000 $as_echo "$ld_shlibs" >&6; }
10001 test "$ld_shlibs" = no && can_build_shared=no
10002
10003 with_gnu_ld=$with_gnu_ld
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019 #
10020 # Do we need to explicitly link libc?
10021 #
10022 case "x$archive_cmds_need_lc" in
10023 x|xyes)
10024   # Assume -lc should be added
10025   archive_cmds_need_lc=yes
10026
10027   if test "$enable_shared" = yes && test "$GCC" = yes; then
10028     case $archive_cmds in
10029     *'~'*)
10030       # FIXME: we may have to deal with multi-command sequences.
10031       ;;
10032     '$CC '*)
10033       # Test whether the compiler implicitly links with -lc since on some
10034       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10035       # to ld, don't add -lc before -lgcc.
10036       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10037 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10038 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10039   $as_echo_n "(cached) " >&6
10040 else
10041   $RM conftest*
10042         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10043
10044         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10045   (eval $ac_compile) 2>&5
10046   ac_status=$?
10047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10048   test $ac_status = 0; } 2>conftest.err; then
10049           soname=conftest
10050           lib=conftest
10051           libobjs=conftest.$ac_objext
10052           deplibs=
10053           wl=$lt_prog_compiler_wl
10054           pic_flag=$lt_prog_compiler_pic
10055           compiler_flags=-v
10056           linker_flags=-v
10057           verstring=
10058           output_objdir=.
10059           libname=conftest
10060           lt_save_allow_undefined_flag=$allow_undefined_flag
10061           allow_undefined_flag=
10062           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10063   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10064   ac_status=$?
10065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10066   test $ac_status = 0; }
10067           then
10068             lt_cv_archive_cmds_need_lc=no
10069           else
10070             lt_cv_archive_cmds_need_lc=yes
10071           fi
10072           allow_undefined_flag=$lt_save_allow_undefined_flag
10073         else
10074           cat conftest.err 1>&5
10075         fi
10076         $RM conftest*
10077
10078 fi
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10080 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10081       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10082       ;;
10083     esac
10084   fi
10085   ;;
10086 esac
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10240 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10241
10242 if test "$GCC" = yes; then
10243   case $host_os in
10244     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10245     *) lt_awk_arg="/^libraries:/" ;;
10246   esac
10247   case $host_os in
10248     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10249     *) lt_sed_strip_eq="s,=/,/,g" ;;
10250   esac
10251   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10252   case $lt_search_path_spec in
10253   *\;*)
10254     # if the path contains ";" then we assume it to be the separator
10255     # otherwise default to the standard path separator (i.e. ":") - it is
10256     # assumed that no part of a normal pathname contains ";" but that should
10257     # okay in the real world where ";" in dirpaths is itself problematic.
10258     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10259     ;;
10260   *)
10261     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10262     ;;
10263   esac
10264   # Ok, now we have the path, separated by spaces, we can step through it
10265   # and add multilib dir if necessary.
10266   lt_tmp_lt_search_path_spec=
10267   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10268   for lt_sys_path in $lt_search_path_spec; do
10269     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10270       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10271     else
10272       test -d "$lt_sys_path" && \
10273         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10274     fi
10275   done
10276   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10277 BEGIN {RS=" "; FS="/|\n";} {
10278   lt_foo="";
10279   lt_count=0;
10280   for (lt_i = NF; lt_i > 0; lt_i--) {
10281     if ($lt_i != "" && $lt_i != ".") {
10282       if ($lt_i == "..") {
10283         lt_count++;
10284       } else {
10285         if (lt_count == 0) {
10286           lt_foo="/" $lt_i lt_foo;
10287         } else {
10288           lt_count--;
10289         }
10290       }
10291     }
10292   }
10293   if (lt_foo != "") { lt_freq[lt_foo]++; }
10294   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10295 }'`
10296   # AWK program above erroneously prepends '/' to C:/dos/paths
10297   # for these hosts.
10298   case $host_os in
10299     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10300       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10301   esac
10302   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10303 else
10304   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10305 fi
10306 library_names_spec=
10307 libname_spec='lib$name'
10308 soname_spec=
10309 shrext_cmds=".so"
10310 postinstall_cmds=
10311 postuninstall_cmds=
10312 finish_cmds=
10313 finish_eval=
10314 shlibpath_var=
10315 shlibpath_overrides_runpath=unknown
10316 version_type=none
10317 dynamic_linker="$host_os ld.so"
10318 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10319 need_lib_prefix=unknown
10320 hardcode_into_libs=no
10321
10322 # when you set need_version to no, make sure it does not cause -set_version
10323 # flags to be left without arguments
10324 need_version=unknown
10325
10326 case $host_os in
10327 aix3*)
10328   version_type=linux # correct to gnu/linux during the next big refactor
10329   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10330   shlibpath_var=LIBPATH
10331
10332   # AIX 3 has no versioning support, so we append a major version to the name.
10333   soname_spec='${libname}${release}${shared_ext}$major'
10334   ;;
10335
10336 aix[4-9]*)
10337   version_type=linux # correct to gnu/linux during the next big refactor
10338   need_lib_prefix=no
10339   need_version=no
10340   hardcode_into_libs=yes
10341   if test "$host_cpu" = ia64; then
10342     # AIX 5 supports IA64
10343     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10344     shlibpath_var=LD_LIBRARY_PATH
10345   else
10346     # With GCC up to 2.95.x, collect2 would create an import file
10347     # for dependence libraries.  The import file would start with
10348     # the line `#! .'.  This would cause the generated library to
10349     # depend on `.', always an invalid library.  This was fixed in
10350     # development snapshots of GCC prior to 3.0.
10351     case $host_os in
10352       aix4 | aix4.[01] | aix4.[01].*)
10353       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10354            echo ' yes '
10355            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10356         :
10357       else
10358         can_build_shared=no
10359       fi
10360       ;;
10361     esac
10362     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10363     # soname into executable. Probably we can add versioning support to
10364     # collect2, so additional links can be useful in future.
10365     if test "$aix_use_runtimelinking" = yes; then
10366       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10367       # instead of lib<name>.a to let people know that these are not
10368       # typical AIX shared libraries.
10369       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370     else
10371       # We preserve .a as extension for shared libraries through AIX4.2
10372       # and later when we are not doing run time linking.
10373       library_names_spec='${libname}${release}.a $libname.a'
10374       soname_spec='${libname}${release}${shared_ext}$major'
10375     fi
10376     shlibpath_var=LIBPATH
10377   fi
10378   ;;
10379
10380 amigaos*)
10381   case $host_cpu in
10382   powerpc)
10383     # Since July 2007 AmigaOS4 officially supports .so libraries.
10384     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10385     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386     ;;
10387   m68k)
10388     library_names_spec='$libname.ixlibrary $libname.a'
10389     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10390     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10391     ;;
10392   esac
10393   ;;
10394
10395 beos*)
10396   library_names_spec='${libname}${shared_ext}'
10397   dynamic_linker="$host_os ld.so"
10398   shlibpath_var=LIBRARY_PATH
10399   ;;
10400
10401 bsdi[45]*)
10402   version_type=linux # correct to gnu/linux during the next big refactor
10403   need_version=no
10404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405   soname_spec='${libname}${release}${shared_ext}$major'
10406   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10407   shlibpath_var=LD_LIBRARY_PATH
10408   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10409   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10410   # the default ld.so.conf also contains /usr/contrib/lib and
10411   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10412   # libtool to hard-code these into programs
10413   ;;
10414
10415 cygwin* | mingw* | pw32* | cegcc*)
10416   version_type=windows
10417   shrext_cmds=".dll"
10418   need_version=no
10419   need_lib_prefix=no
10420
10421   case $GCC,$cc_basename in
10422   yes,*)
10423     # gcc
10424     library_names_spec='$libname.dll.a'
10425     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10426     postinstall_cmds='base_file=`basename \${file}`~
10427       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10428       dldir=$destdir/`dirname \$dlpath`~
10429       test -d \$dldir || mkdir -p \$dldir~
10430       $install_prog $dir/$dlname \$dldir/$dlname~
10431       chmod a+x \$dldir/$dlname~
10432       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10433         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10434       fi'
10435     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10436       dlpath=$dir/\$dldll~
10437        $RM \$dlpath'
10438     shlibpath_overrides_runpath=yes
10439
10440     case $host_os in
10441     cygwin*)
10442       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10443       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10444
10445       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10446       ;;
10447     mingw* | cegcc*)
10448       # MinGW DLLs use traditional 'lib' prefix
10449       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10450       ;;
10451     pw32*)
10452       # pw32 DLLs use 'pw' prefix rather than 'lib'
10453       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10454       ;;
10455     esac
10456     dynamic_linker='Win32 ld.exe'
10457     ;;
10458
10459   *,cl*)
10460     # Native MSVC
10461     libname_spec='$name'
10462     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10463     library_names_spec='${libname}.dll.lib'
10464
10465     case $build_os in
10466     mingw*)
10467       sys_lib_search_path_spec=
10468       lt_save_ifs=$IFS
10469       IFS=';'
10470       for lt_path in $LIB
10471       do
10472         IFS=$lt_save_ifs
10473         # Let DOS variable expansion print the short 8.3 style file name.
10474         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10475         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10476       done
10477       IFS=$lt_save_ifs
10478       # Convert to MSYS style.
10479       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10480       ;;
10481     cygwin*)
10482       # Convert to unix form, then to dos form, then back to unix form
10483       # but this time dos style (no spaces!) so that the unix form looks
10484       # like /cygdrive/c/PROGRA~1:/cygdr...
10485       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10486       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10487       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10488       ;;
10489     *)
10490       sys_lib_search_path_spec="$LIB"
10491       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10492         # It is most probably a Windows format PATH.
10493         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10494       else
10495         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10496       fi
10497       # FIXME: find the short name or the path components, as spaces are
10498       # common. (e.g. "Program Files" -> "PROGRA~1")
10499       ;;
10500     esac
10501
10502     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10503     postinstall_cmds='base_file=`basename \${file}`~
10504       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10505       dldir=$destdir/`dirname \$dlpath`~
10506       test -d \$dldir || mkdir -p \$dldir~
10507       $install_prog $dir/$dlname \$dldir/$dlname'
10508     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10509       dlpath=$dir/\$dldll~
10510        $RM \$dlpath'
10511     shlibpath_overrides_runpath=yes
10512     dynamic_linker='Win32 link.exe'
10513     ;;
10514
10515   *)
10516     # Assume MSVC wrapper
10517     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10518     dynamic_linker='Win32 ld.exe'
10519     ;;
10520   esac
10521   # FIXME: first we should search . and the directory the executable is in
10522   shlibpath_var=PATH
10523   ;;
10524
10525 darwin* | rhapsody*)
10526   dynamic_linker="$host_os dyld"
10527   version_type=darwin
10528   need_lib_prefix=no
10529   need_version=no
10530   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10531   soname_spec='${libname}${release}${major}$shared_ext'
10532   shlibpath_overrides_runpath=yes
10533   shlibpath_var=DYLD_LIBRARY_PATH
10534   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10535
10536   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10537   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10538   ;;
10539
10540 dgux*)
10541   version_type=linux # correct to gnu/linux during the next big refactor
10542   need_lib_prefix=no
10543   need_version=no
10544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10545   soname_spec='${libname}${release}${shared_ext}$major'
10546   shlibpath_var=LD_LIBRARY_PATH
10547   ;;
10548
10549 freebsd* | dragonfly*)
10550   # DragonFly does not have aout.  When/if they implement a new
10551   # versioning mechanism, adjust this.
10552   if test -x /usr/bin/objformat; then
10553     objformat=`/usr/bin/objformat`
10554   else
10555     case $host_os in
10556     freebsd[23].*) objformat=aout ;;
10557     *) objformat=elf ;;
10558     esac
10559   fi
10560   version_type=freebsd-$objformat
10561   case $version_type in
10562     freebsd-elf*)
10563       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10564       need_version=no
10565       need_lib_prefix=no
10566       ;;
10567     freebsd-*)
10568       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10569       need_version=yes
10570       ;;
10571   esac
10572   shlibpath_var=LD_LIBRARY_PATH
10573   case $host_os in
10574   freebsd2.*)
10575     shlibpath_overrides_runpath=yes
10576     ;;
10577   freebsd3.[01]* | freebsdelf3.[01]*)
10578     shlibpath_overrides_runpath=yes
10579     hardcode_into_libs=yes
10580     ;;
10581   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10582   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10583     shlibpath_overrides_runpath=no
10584     hardcode_into_libs=yes
10585     ;;
10586   *) # from 4.6 on, and DragonFly
10587     shlibpath_overrides_runpath=yes
10588     hardcode_into_libs=yes
10589     ;;
10590   esac
10591   ;;
10592
10593 gnu*)
10594   version_type=linux # correct to gnu/linux during the next big refactor
10595   need_lib_prefix=no
10596   need_version=no
10597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10598   soname_spec='${libname}${release}${shared_ext}$major'
10599   shlibpath_var=LD_LIBRARY_PATH
10600   shlibpath_overrides_runpath=no
10601   hardcode_into_libs=yes
10602   ;;
10603
10604 haiku*)
10605   version_type=linux # correct to gnu/linux during the next big refactor
10606   need_lib_prefix=no
10607   need_version=no
10608   dynamic_linker="$host_os runtime_loader"
10609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10610   soname_spec='${libname}${release}${shared_ext}$major'
10611   shlibpath_var=LIBRARY_PATH
10612   shlibpath_overrides_runpath=yes
10613   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10614   hardcode_into_libs=yes
10615   ;;
10616
10617 hpux9* | hpux10* | hpux11*)
10618   # Give a soname corresponding to the major version so that dld.sl refuses to
10619   # link against other versions.
10620   version_type=sunos
10621   need_lib_prefix=no
10622   need_version=no
10623   case $host_cpu in
10624   ia64*)
10625     shrext_cmds='.so'
10626     hardcode_into_libs=yes
10627     dynamic_linker="$host_os dld.so"
10628     shlibpath_var=LD_LIBRARY_PATH
10629     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10631     soname_spec='${libname}${release}${shared_ext}$major'
10632     if test "X$HPUX_IA64_MODE" = X32; then
10633       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10634     else
10635       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10636     fi
10637     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10638     ;;
10639   hppa*64*)
10640     shrext_cmds='.sl'
10641     hardcode_into_libs=yes
10642     dynamic_linker="$host_os dld.sl"
10643     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10644     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646     soname_spec='${libname}${release}${shared_ext}$major'
10647     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10648     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10649     ;;
10650   *)
10651     shrext_cmds='.sl'
10652     dynamic_linker="$host_os dld.sl"
10653     shlibpath_var=SHLIB_PATH
10654     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10655     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656     soname_spec='${libname}${release}${shared_ext}$major'
10657     ;;
10658   esac
10659   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10660   postinstall_cmds='chmod 555 $lib'
10661   # or fails outright, so override atomically:
10662   install_override_mode=555
10663   ;;
10664
10665 interix[3-9]*)
10666   version_type=linux # correct to gnu/linux during the next big refactor
10667   need_lib_prefix=no
10668   need_version=no
10669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10670   soname_spec='${libname}${release}${shared_ext}$major'
10671   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10672   shlibpath_var=LD_LIBRARY_PATH
10673   shlibpath_overrides_runpath=no
10674   hardcode_into_libs=yes
10675   ;;
10676
10677 irix5* | irix6* | nonstopux*)
10678   case $host_os in
10679     nonstopux*) version_type=nonstopux ;;
10680     *)
10681         if test "$lt_cv_prog_gnu_ld" = yes; then
10682                 version_type=linux # correct to gnu/linux during the next big refactor
10683         else
10684                 version_type=irix
10685         fi ;;
10686   esac
10687   need_lib_prefix=no
10688   need_version=no
10689   soname_spec='${libname}${release}${shared_ext}$major'
10690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10691   case $host_os in
10692   irix5* | nonstopux*)
10693     libsuff= shlibsuff=
10694     ;;
10695   *)
10696     case $LD in # libtool.m4 will add one of these switches to LD
10697     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10698       libsuff= shlibsuff= libmagic=32-bit;;
10699     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10700       libsuff=32 shlibsuff=N32 libmagic=N32;;
10701     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10702       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10703     *) libsuff= shlibsuff= libmagic=never-match;;
10704     esac
10705     ;;
10706   esac
10707   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10708   shlibpath_overrides_runpath=no
10709   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10710   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10711   hardcode_into_libs=yes
10712   ;;
10713
10714 # No shared lib support for Linux oldld, aout, or coff.
10715 linux*oldld* | linux*aout* | linux*coff*)
10716   dynamic_linker=no
10717   ;;
10718
10719 # This must be glibc/ELF.
10720 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10721   version_type=linux # correct to gnu/linux during the next big refactor
10722   need_lib_prefix=no
10723   need_version=no
10724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725   soname_spec='${libname}${release}${shared_ext}$major'
10726   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10727   shlibpath_var=LD_LIBRARY_PATH
10728   shlibpath_overrides_runpath=no
10729
10730   # Some binutils ld are patched to set DT_RUNPATH
10731   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10732   $as_echo_n "(cached) " >&6
10733 else
10734   lt_cv_shlibpath_overrides_runpath=no
10735     save_LDFLAGS=$LDFLAGS
10736     save_libdir=$libdir
10737     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10738          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10739     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h.  */
10741
10742 int
10743 main ()
10744 {
10745
10746   ;
10747   return 0;
10748 }
10749 _ACEOF
10750 if ac_fn_c_try_link "$LINENO"; then :
10751   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10752   lt_cv_shlibpath_overrides_runpath=yes
10753 fi
10754 fi
10755 rm -f core conftest.err conftest.$ac_objext \
10756     conftest$ac_exeext conftest.$ac_ext
10757     LDFLAGS=$save_LDFLAGS
10758     libdir=$save_libdir
10759
10760 fi
10761
10762   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10763
10764   # This implies no fast_install, which is unacceptable.
10765   # Some rework will be needed to allow for fast_install
10766   # before this can be enabled.
10767   hardcode_into_libs=yes
10768
10769   # Append ld.so.conf contents to the search path
10770   if test -f /etc/ld.so.conf; then
10771     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' ' '`
10772     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10773   fi
10774
10775   # We used to test for /lib/ld.so.1 and disable shared libraries on
10776   # powerpc, because MkLinux only supported shared libraries with the
10777   # GNU dynamic linker.  Since this was broken with cross compilers,
10778   # most powerpc-linux boxes support dynamic linking these days and
10779   # people can always --disable-shared, the test was removed, and we
10780   # assume the GNU/Linux dynamic linker is in use.
10781   dynamic_linker='GNU/Linux ld.so'
10782   ;;
10783
10784 netbsd*)
10785   version_type=sunos
10786   need_lib_prefix=no
10787   need_version=no
10788   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10790     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10791     dynamic_linker='NetBSD (a.out) ld.so'
10792   else
10793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10794     soname_spec='${libname}${release}${shared_ext}$major'
10795     dynamic_linker='NetBSD ld.elf_so'
10796   fi
10797   shlibpath_var=LD_LIBRARY_PATH
10798   shlibpath_overrides_runpath=yes
10799   hardcode_into_libs=yes
10800   ;;
10801
10802 newsos6)
10803   version_type=linux # correct to gnu/linux during the next big refactor
10804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805   shlibpath_var=LD_LIBRARY_PATH
10806   shlibpath_overrides_runpath=yes
10807   ;;
10808
10809 *nto* | *qnx*)
10810   version_type=qnx
10811   need_lib_prefix=no
10812   need_version=no
10813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814   soname_spec='${libname}${release}${shared_ext}$major'
10815   shlibpath_var=LD_LIBRARY_PATH
10816   shlibpath_overrides_runpath=no
10817   hardcode_into_libs=yes
10818   dynamic_linker='ldqnx.so'
10819   ;;
10820
10821 openbsd*)
10822   version_type=sunos
10823   sys_lib_dlsearch_path_spec="/usr/lib"
10824   need_lib_prefix=no
10825   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10826   case $host_os in
10827     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10828     *)                          need_version=no  ;;
10829   esac
10830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10831   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10832   shlibpath_var=LD_LIBRARY_PATH
10833   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10834     case $host_os in
10835       openbsd2.[89] | openbsd2.[89].*)
10836         shlibpath_overrides_runpath=no
10837         ;;
10838       *)
10839         shlibpath_overrides_runpath=yes
10840         ;;
10841       esac
10842   else
10843     shlibpath_overrides_runpath=yes
10844   fi
10845   ;;
10846
10847 os2*)
10848   libname_spec='$name'
10849   shrext_cmds=".dll"
10850   need_lib_prefix=no
10851   library_names_spec='$libname${shared_ext} $libname.a'
10852   dynamic_linker='OS/2 ld.exe'
10853   shlibpath_var=LIBPATH
10854   ;;
10855
10856 osf3* | osf4* | osf5*)
10857   version_type=osf
10858   need_lib_prefix=no
10859   need_version=no
10860   soname_spec='${libname}${release}${shared_ext}$major'
10861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862   shlibpath_var=LD_LIBRARY_PATH
10863   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10864   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10865   ;;
10866
10867 rdos*)
10868   dynamic_linker=no
10869   ;;
10870
10871 solaris*)
10872   version_type=linux # correct to gnu/linux during the next big refactor
10873   need_lib_prefix=no
10874   need_version=no
10875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876   soname_spec='${libname}${release}${shared_ext}$major'
10877   shlibpath_var=LD_LIBRARY_PATH
10878   shlibpath_overrides_runpath=yes
10879   hardcode_into_libs=yes
10880   # ldd complains unless libraries are executable
10881   postinstall_cmds='chmod +x $lib'
10882   ;;
10883
10884 sunos4*)
10885   version_type=sunos
10886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10887   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10888   shlibpath_var=LD_LIBRARY_PATH
10889   shlibpath_overrides_runpath=yes
10890   if test "$with_gnu_ld" = yes; then
10891     need_lib_prefix=no
10892   fi
10893   need_version=yes
10894   ;;
10895
10896 sysv4 | sysv4.3*)
10897   version_type=linux # correct to gnu/linux during the next big refactor
10898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899   soname_spec='${libname}${release}${shared_ext}$major'
10900   shlibpath_var=LD_LIBRARY_PATH
10901   case $host_vendor in
10902     sni)
10903       shlibpath_overrides_runpath=no
10904       need_lib_prefix=no
10905       runpath_var=LD_RUN_PATH
10906       ;;
10907     siemens)
10908       need_lib_prefix=no
10909       ;;
10910     motorola)
10911       need_lib_prefix=no
10912       need_version=no
10913       shlibpath_overrides_runpath=no
10914       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10915       ;;
10916   esac
10917   ;;
10918
10919 sysv4*MP*)
10920   if test -d /usr/nec ;then
10921     version_type=linux # correct to gnu/linux during the next big refactor
10922     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10923     soname_spec='$libname${shared_ext}.$major'
10924     shlibpath_var=LD_LIBRARY_PATH
10925   fi
10926   ;;
10927
10928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10929   version_type=freebsd-elf
10930   need_lib_prefix=no
10931   need_version=no
10932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10933   soname_spec='${libname}${release}${shared_ext}$major'
10934   shlibpath_var=LD_LIBRARY_PATH
10935   shlibpath_overrides_runpath=yes
10936   hardcode_into_libs=yes
10937   if test "$with_gnu_ld" = yes; then
10938     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10939   else
10940     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10941     case $host_os in
10942       sco3.2v5*)
10943         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10944         ;;
10945     esac
10946   fi
10947   sys_lib_dlsearch_path_spec='/usr/lib'
10948   ;;
10949
10950 tpf*)
10951   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10952   version_type=linux # correct to gnu/linux during the next big refactor
10953   need_lib_prefix=no
10954   need_version=no
10955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956   shlibpath_var=LD_LIBRARY_PATH
10957   shlibpath_overrides_runpath=no
10958   hardcode_into_libs=yes
10959   ;;
10960
10961 uts4*)
10962   version_type=linux # correct to gnu/linux during the next big refactor
10963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964   soname_spec='${libname}${release}${shared_ext}$major'
10965   shlibpath_var=LD_LIBRARY_PATH
10966   ;;
10967
10968 *)
10969   dynamic_linker=no
10970   ;;
10971 esac
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10973 $as_echo "$dynamic_linker" >&6; }
10974 test "$dynamic_linker" = no && can_build_shared=no
10975
10976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10977 if test "$GCC" = yes; then
10978   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10979 fi
10980
10981 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10982   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10983 fi
10984 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10985   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10986 fi
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11081 hardcode_action=
11082 if test -n "$hardcode_libdir_flag_spec" ||
11083    test -n "$runpath_var" ||
11084    test "X$hardcode_automatic" = "Xyes" ; then
11085
11086   # We can hardcode non-existent directories.
11087   if test "$hardcode_direct" != no &&
11088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11089      # have to relink, otherwise we might link with an installed library
11090      # when we should be linking with a yet-to-be-installed one
11091      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11092      test "$hardcode_minus_L" != no; then
11093     # Linking always hardcodes the temporary library directory.
11094     hardcode_action=relink
11095   else
11096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11097     hardcode_action=immediate
11098   fi
11099 else
11100   # We cannot hardcode anything, or else we can only hardcode existing
11101   # directories.
11102   hardcode_action=unsupported
11103 fi
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11105 $as_echo "$hardcode_action" >&6; }
11106
11107 if test "$hardcode_action" = relink ||
11108    test "$inherit_rpath" = yes; then
11109   # Fast installation is not supported
11110   enable_fast_install=no
11111 elif test "$shlibpath_overrides_runpath" = yes ||
11112      test "$enable_shared" = no; then
11113   # Fast installation is not necessary
11114   enable_fast_install=needless
11115 fi
11116
11117
11118
11119
11120
11121
11122   if test "x$enable_dlopen" != xyes; then
11123   enable_dlopen=unknown
11124   enable_dlopen_self=unknown
11125   enable_dlopen_self_static=unknown
11126 else
11127   lt_cv_dlopen=no
11128   lt_cv_dlopen_libs=
11129
11130   case $host_os in
11131   beos*)
11132     lt_cv_dlopen="load_add_on"
11133     lt_cv_dlopen_libs=
11134     lt_cv_dlopen_self=yes
11135     ;;
11136
11137   mingw* | pw32* | cegcc*)
11138     lt_cv_dlopen="LoadLibrary"
11139     lt_cv_dlopen_libs=
11140     ;;
11141
11142   cygwin*)
11143     lt_cv_dlopen="dlopen"
11144     lt_cv_dlopen_libs=
11145     ;;
11146
11147   darwin*)
11148   # if libdl is installed we need to link against it
11149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11150 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11151 if ${ac_cv_lib_dl_dlopen+:} false; then :
11152   $as_echo_n "(cached) " >&6
11153 else
11154   ac_check_lib_save_LIBS=$LIBS
11155 LIBS="-ldl  $LIBS"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h.  */
11158
11159 /* Override any GCC internal prototype to avoid an error.
11160    Use char because int might match the return type of a GCC
11161    builtin and then its argument prototype would still apply.  */
11162 #ifdef __cplusplus
11163 extern "C"
11164 #endif
11165 char dlopen ();
11166 int
11167 main ()
11168 {
11169 return dlopen ();
11170   ;
11171   return 0;
11172 }
11173 _ACEOF
11174 if ac_fn_c_try_link "$LINENO"; then :
11175   ac_cv_lib_dl_dlopen=yes
11176 else
11177   ac_cv_lib_dl_dlopen=no
11178 fi
11179 rm -f core conftest.err conftest.$ac_objext \
11180     conftest$ac_exeext conftest.$ac_ext
11181 LIBS=$ac_check_lib_save_LIBS
11182 fi
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11184 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11185 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11186   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11187 else
11188
11189     lt_cv_dlopen="dyld"
11190     lt_cv_dlopen_libs=
11191     lt_cv_dlopen_self=yes
11192
11193 fi
11194
11195     ;;
11196
11197   *)
11198     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11199 if test "x$ac_cv_func_shl_load" = xyes; then :
11200   lt_cv_dlopen="shl_load"
11201 else
11202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11203 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11204 if ${ac_cv_lib_dld_shl_load+:} false; then :
11205   $as_echo_n "(cached) " >&6
11206 else
11207   ac_check_lib_save_LIBS=$LIBS
11208 LIBS="-ldld  $LIBS"
11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h.  */
11211
11212 /* Override any GCC internal prototype to avoid an error.
11213    Use char because int might match the return type of a GCC
11214    builtin and then its argument prototype would still apply.  */
11215 #ifdef __cplusplus
11216 extern "C"
11217 #endif
11218 char shl_load ();
11219 int
11220 main ()
11221 {
11222 return shl_load ();
11223   ;
11224   return 0;
11225 }
11226 _ACEOF
11227 if ac_fn_c_try_link "$LINENO"; then :
11228   ac_cv_lib_dld_shl_load=yes
11229 else
11230   ac_cv_lib_dld_shl_load=no
11231 fi
11232 rm -f core conftest.err conftest.$ac_objext \
11233     conftest$ac_exeext conftest.$ac_ext
11234 LIBS=$ac_check_lib_save_LIBS
11235 fi
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11237 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11238 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11239   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11240 else
11241   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11242 if test "x$ac_cv_func_dlopen" = xyes; then :
11243   lt_cv_dlopen="dlopen"
11244 else
11245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11246 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11247 if ${ac_cv_lib_dl_dlopen+:} false; then :
11248   $as_echo_n "(cached) " >&6
11249 else
11250   ac_check_lib_save_LIBS=$LIBS
11251 LIBS="-ldl  $LIBS"
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h.  */
11254
11255 /* Override any GCC internal prototype to avoid an error.
11256    Use char because int might match the return type of a GCC
11257    builtin and then its argument prototype would still apply.  */
11258 #ifdef __cplusplus
11259 extern "C"
11260 #endif
11261 char dlopen ();
11262 int
11263 main ()
11264 {
11265 return dlopen ();
11266   ;
11267   return 0;
11268 }
11269 _ACEOF
11270 if ac_fn_c_try_link "$LINENO"; then :
11271   ac_cv_lib_dl_dlopen=yes
11272 else
11273   ac_cv_lib_dl_dlopen=no
11274 fi
11275 rm -f core conftest.err conftest.$ac_objext \
11276     conftest$ac_exeext conftest.$ac_ext
11277 LIBS=$ac_check_lib_save_LIBS
11278 fi
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11280 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11281 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11282   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11283 else
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11285 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11286 if ${ac_cv_lib_svld_dlopen+:} false; then :
11287   $as_echo_n "(cached) " >&6
11288 else
11289   ac_check_lib_save_LIBS=$LIBS
11290 LIBS="-lsvld  $LIBS"
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h.  */
11293
11294 /* Override any GCC internal prototype to avoid an error.
11295    Use char because int might match the return type of a GCC
11296    builtin and then its argument prototype would still apply.  */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char dlopen ();
11301 int
11302 main ()
11303 {
11304 return dlopen ();
11305   ;
11306   return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"; then :
11310   ac_cv_lib_svld_dlopen=yes
11311 else
11312   ac_cv_lib_svld_dlopen=no
11313 fi
11314 rm -f core conftest.err conftest.$ac_objext \
11315     conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11319 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11320 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11321   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11322 else
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11324 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11325 if ${ac_cv_lib_dld_dld_link+:} false; then :
11326   $as_echo_n "(cached) " >&6
11327 else
11328   ac_check_lib_save_LIBS=$LIBS
11329 LIBS="-ldld  $LIBS"
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h.  */
11332
11333 /* Override any GCC internal prototype to avoid an error.
11334    Use char because int might match the return type of a GCC
11335    builtin and then its argument prototype would still apply.  */
11336 #ifdef __cplusplus
11337 extern "C"
11338 #endif
11339 char dld_link ();
11340 int
11341 main ()
11342 {
11343 return dld_link ();
11344   ;
11345   return 0;
11346 }
11347 _ACEOF
11348 if ac_fn_c_try_link "$LINENO"; then :
11349   ac_cv_lib_dld_dld_link=yes
11350 else
11351   ac_cv_lib_dld_dld_link=no
11352 fi
11353 rm -f core conftest.err conftest.$ac_objext \
11354     conftest$ac_exeext conftest.$ac_ext
11355 LIBS=$ac_check_lib_save_LIBS
11356 fi
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11358 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11359 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11360   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11361 fi
11362
11363
11364 fi
11365
11366
11367 fi
11368
11369
11370 fi
11371
11372
11373 fi
11374
11375
11376 fi
11377
11378     ;;
11379   esac
11380
11381   if test "x$lt_cv_dlopen" != xno; then
11382     enable_dlopen=yes
11383   else
11384     enable_dlopen=no
11385   fi
11386
11387   case $lt_cv_dlopen in
11388   dlopen)
11389     save_CPPFLAGS="$CPPFLAGS"
11390     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11391
11392     save_LDFLAGS="$LDFLAGS"
11393     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11394
11395     save_LIBS="$LIBS"
11396     LIBS="$lt_cv_dlopen_libs $LIBS"
11397
11398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11399 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11400 if ${lt_cv_dlopen_self+:} false; then :
11401   $as_echo_n "(cached) " >&6
11402 else
11403           if test "$cross_compiling" = yes; then :
11404   lt_cv_dlopen_self=cross
11405 else
11406   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11407   lt_status=$lt_dlunknown
11408   cat > conftest.$ac_ext <<_LT_EOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11411
11412 #if HAVE_DLFCN_H
11413 #include <dlfcn.h>
11414 #endif
11415
11416 #include <stdio.h>
11417
11418 #ifdef RTLD_GLOBAL
11419 #  define LT_DLGLOBAL           RTLD_GLOBAL
11420 #else
11421 #  ifdef DL_GLOBAL
11422 #    define LT_DLGLOBAL         DL_GLOBAL
11423 #  else
11424 #    define LT_DLGLOBAL         0
11425 #  endif
11426 #endif
11427
11428 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11429    find out it does not work in some platform. */
11430 #ifndef LT_DLLAZY_OR_NOW
11431 #  ifdef RTLD_LAZY
11432 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11433 #  else
11434 #    ifdef DL_LAZY
11435 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11436 #    else
11437 #      ifdef RTLD_NOW
11438 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11439 #      else
11440 #        ifdef DL_NOW
11441 #          define LT_DLLAZY_OR_NOW      DL_NOW
11442 #        else
11443 #          define LT_DLLAZY_OR_NOW      0
11444 #        endif
11445 #      endif
11446 #    endif
11447 #  endif
11448 #endif
11449
11450 /* When -fvisbility=hidden is used, assume the code has been annotated
11451    correspondingly for the symbols needed.  */
11452 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11453 int fnord () __attribute__((visibility("default")));
11454 #endif
11455
11456 int fnord () { return 42; }
11457 int main ()
11458 {
11459   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11460   int status = $lt_dlunknown;
11461
11462   if (self)
11463     {
11464       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11465       else
11466         {
11467           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11468           else puts (dlerror ());
11469         }
11470       /* dlclose (self); */
11471     }
11472   else
11473     puts (dlerror ());
11474
11475   return status;
11476 }
11477 _LT_EOF
11478   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11479   (eval $ac_link) 2>&5
11480   ac_status=$?
11481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11482   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11483     (./conftest; exit; ) >&5 2>/dev/null
11484     lt_status=$?
11485     case x$lt_status in
11486       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11487       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11488       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11489     esac
11490   else :
11491     # compilation failed
11492     lt_cv_dlopen_self=no
11493   fi
11494 fi
11495 rm -fr conftest*
11496
11497
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11500 $as_echo "$lt_cv_dlopen_self" >&6; }
11501
11502     if test "x$lt_cv_dlopen_self" = xyes; then
11503       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11504       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11505 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11506 if ${lt_cv_dlopen_self_static+:} false; then :
11507   $as_echo_n "(cached) " >&6
11508 else
11509           if test "$cross_compiling" = yes; then :
11510   lt_cv_dlopen_self_static=cross
11511 else
11512   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11513   lt_status=$lt_dlunknown
11514   cat > conftest.$ac_ext <<_LT_EOF
11515 #line $LINENO "configure"
11516 #include "confdefs.h"
11517
11518 #if HAVE_DLFCN_H
11519 #include <dlfcn.h>
11520 #endif
11521
11522 #include <stdio.h>
11523
11524 #ifdef RTLD_GLOBAL
11525 #  define LT_DLGLOBAL           RTLD_GLOBAL
11526 #else
11527 #  ifdef DL_GLOBAL
11528 #    define LT_DLGLOBAL         DL_GLOBAL
11529 #  else
11530 #    define LT_DLGLOBAL         0
11531 #  endif
11532 #endif
11533
11534 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11535    find out it does not work in some platform. */
11536 #ifndef LT_DLLAZY_OR_NOW
11537 #  ifdef RTLD_LAZY
11538 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11539 #  else
11540 #    ifdef DL_LAZY
11541 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11542 #    else
11543 #      ifdef RTLD_NOW
11544 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11545 #      else
11546 #        ifdef DL_NOW
11547 #          define LT_DLLAZY_OR_NOW      DL_NOW
11548 #        else
11549 #          define LT_DLLAZY_OR_NOW      0
11550 #        endif
11551 #      endif
11552 #    endif
11553 #  endif
11554 #endif
11555
11556 /* When -fvisbility=hidden is used, assume the code has been annotated
11557    correspondingly for the symbols needed.  */
11558 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11559 int fnord () __attribute__((visibility("default")));
11560 #endif
11561
11562 int fnord () { return 42; }
11563 int main ()
11564 {
11565   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11566   int status = $lt_dlunknown;
11567
11568   if (self)
11569     {
11570       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11571       else
11572         {
11573           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11574           else puts (dlerror ());
11575         }
11576       /* dlclose (self); */
11577     }
11578   else
11579     puts (dlerror ());
11580
11581   return status;
11582 }
11583 _LT_EOF
11584   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11585   (eval $ac_link) 2>&5
11586   ac_status=$?
11587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11588   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11589     (./conftest; exit; ) >&5 2>/dev/null
11590     lt_status=$?
11591     case x$lt_status in
11592       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11593       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11594       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11595     esac
11596   else :
11597     # compilation failed
11598     lt_cv_dlopen_self_static=no
11599   fi
11600 fi
11601 rm -fr conftest*
11602
11603
11604 fi
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11606 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11607     fi
11608
11609     CPPFLAGS="$save_CPPFLAGS"
11610     LDFLAGS="$save_LDFLAGS"
11611     LIBS="$save_LIBS"
11612     ;;
11613   esac
11614
11615   case $lt_cv_dlopen_self in
11616   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11617   *) enable_dlopen_self=unknown ;;
11618   esac
11619
11620   case $lt_cv_dlopen_self_static in
11621   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11622   *) enable_dlopen_self_static=unknown ;;
11623   esac
11624 fi
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642 striplib=
11643 old_striplib=
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11645 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11646 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11647   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11648   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11650 $as_echo "yes" >&6; }
11651 else
11652 # FIXME - insert some real tests, host_os isn't really good enough
11653   case $host_os in
11654   darwin*)
11655     if test -n "$STRIP" ; then
11656       striplib="$STRIP -x"
11657       old_striplib="$STRIP -S"
11658       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11659 $as_echo "yes" >&6; }
11660     else
11661       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11663     fi
11664     ;;
11665   *)
11666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11668     ;;
11669   esac
11670 fi
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683   # Report which library types will actually be built
11684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11685 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11687 $as_echo "$can_build_shared" >&6; }
11688
11689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11690 $as_echo_n "checking whether to build shared libraries... " >&6; }
11691   test "$can_build_shared" = "no" && enable_shared=no
11692
11693   # On AIX, shared libraries and static libraries use the same namespace, and
11694   # are all built from PIC.
11695   case $host_os in
11696   aix3*)
11697     test "$enable_shared" = yes && enable_static=no
11698     if test -n "$RANLIB"; then
11699       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11700       postinstall_cmds='$RANLIB $lib'
11701     fi
11702     ;;
11703
11704   aix[4-9]*)
11705     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11706       test "$enable_shared" = yes && enable_static=no
11707     fi
11708     ;;
11709   esac
11710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11711 $as_echo "$enable_shared" >&6; }
11712
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11714 $as_echo_n "checking whether to build static libraries... " >&6; }
11715   # Make sure either enable_shared or enable_static is yes.
11716   test "$enable_shared" = yes || enable_static=yes
11717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11718 $as_echo "$enable_static" >&6; }
11719
11720
11721
11722
11723 fi
11724 ac_ext=c
11725 ac_cpp='$CPP $CPPFLAGS'
11726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11729
11730 CC="$lt_save_CC"
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746         ac_config_commands="$ac_config_commands libtool"
11747
11748
11749
11750
11751 # Only expand once:
11752
11753
11754
11755 ac_ext=c
11756 ac_cpp='$CPP $CPPFLAGS'
11757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760 if test -n "$ac_tool_prefix"; then
11761   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_prog_CC+:} false; then :
11766   $as_echo_n "(cached) " >&6
11767 else
11768   if test -n "$CC"; then
11769   ac_cv_prog_CC="$CC" # Let the user override the test.
11770 else
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11773 do
11774   IFS=$as_save_IFS
11775   test -z "$as_dir" && as_dir=.
11776     for ac_exec_ext in '' $ac_executable_extensions; do
11777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780     break 2
11781   fi
11782 done
11783   done
11784 IFS=$as_save_IFS
11785
11786 fi
11787 fi
11788 CC=$ac_cv_prog_CC
11789 if test -n "$CC"; then
11790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11791 $as_echo "$CC" >&6; }
11792 else
11793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11795 fi
11796
11797
11798 fi
11799 if test -z "$ac_cv_prog_CC"; then
11800   ac_ct_CC=$CC
11801   # Extract the first word of "gcc", so it can be a program name with args.
11802 set dummy gcc; ac_word=$2
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11804 $as_echo_n "checking for $ac_word... " >&6; }
11805 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11806   $as_echo_n "(cached) " >&6
11807 else
11808   if test -n "$ac_ct_CC"; then
11809   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11810 else
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11813 do
11814   IFS=$as_save_IFS
11815   test -z "$as_dir" && as_dir=.
11816     for ac_exec_ext in '' $ac_executable_extensions; do
11817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818     ac_cv_prog_ac_ct_CC="gcc"
11819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820     break 2
11821   fi
11822 done
11823   done
11824 IFS=$as_save_IFS
11825
11826 fi
11827 fi
11828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11829 if test -n "$ac_ct_CC"; then
11830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11831 $as_echo "$ac_ct_CC" >&6; }
11832 else
11833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11835 fi
11836
11837   if test "x$ac_ct_CC" = x; then
11838     CC=""
11839   else
11840     case $cross_compiling:$ac_tool_warned in
11841 yes:)
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11844 ac_tool_warned=yes ;;
11845 esac
11846     CC=$ac_ct_CC
11847   fi
11848 else
11849   CC="$ac_cv_prog_CC"
11850 fi
11851
11852 if test -z "$CC"; then
11853           if test -n "$ac_tool_prefix"; then
11854     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11855 set dummy ${ac_tool_prefix}cc; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if ${ac_cv_prog_CC+:} false; then :
11859   $as_echo_n "(cached) " >&6
11860 else
11861   if test -n "$CC"; then
11862   ac_cv_prog_CC="$CC" # Let the user override the test.
11863 else
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11866 do
11867   IFS=$as_save_IFS
11868   test -z "$as_dir" && as_dir=.
11869     for ac_exec_ext in '' $ac_executable_extensions; do
11870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11871     ac_cv_prog_CC="${ac_tool_prefix}cc"
11872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873     break 2
11874   fi
11875 done
11876   done
11877 IFS=$as_save_IFS
11878
11879 fi
11880 fi
11881 CC=$ac_cv_prog_CC
11882 if test -n "$CC"; then
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11884 $as_echo "$CC" >&6; }
11885 else
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888 fi
11889
11890
11891   fi
11892 fi
11893 if test -z "$CC"; then
11894   # Extract the first word of "cc", so it can be a program name with args.
11895 set dummy cc; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if ${ac_cv_prog_CC+:} false; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901   if test -n "$CC"; then
11902   ac_cv_prog_CC="$CC" # Let the user override the test.
11903 else
11904   ac_prog_rejected=no
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908   IFS=$as_save_IFS
11909   test -z "$as_dir" && as_dir=.
11910     for ac_exec_ext in '' $ac_executable_extensions; do
11911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11913        ac_prog_rejected=yes
11914        continue
11915      fi
11916     ac_cv_prog_CC="cc"
11917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918     break 2
11919   fi
11920 done
11921   done
11922 IFS=$as_save_IFS
11923
11924 if test $ac_prog_rejected = yes; then
11925   # We found a bogon in the path, so make sure we never use it.
11926   set dummy $ac_cv_prog_CC
11927   shift
11928   if test $# != 0; then
11929     # We chose a different compiler from the bogus one.
11930     # However, it has the same basename, so the bogon will be chosen
11931     # first if we set CC to just the basename; use the full file name.
11932     shift
11933     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11934   fi
11935 fi
11936 fi
11937 fi
11938 CC=$ac_cv_prog_CC
11939 if test -n "$CC"; then
11940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11941 $as_echo "$CC" >&6; }
11942 else
11943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945 fi
11946
11947
11948 fi
11949 if test -z "$CC"; then
11950   if test -n "$ac_tool_prefix"; then
11951   for ac_prog in cl.exe
11952   do
11953     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_prog_CC+:} false; then :
11958   $as_echo_n "(cached) " >&6
11959 else
11960   if test -n "$CC"; then
11961   ac_cv_prog_CC="$CC" # Let the user override the test.
11962 else
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11965 do
11966   IFS=$as_save_IFS
11967   test -z "$as_dir" && as_dir=.
11968     for ac_exec_ext in '' $ac_executable_extensions; do
11969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11970     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972     break 2
11973   fi
11974 done
11975   done
11976 IFS=$as_save_IFS
11977
11978 fi
11979 fi
11980 CC=$ac_cv_prog_CC
11981 if test -n "$CC"; then
11982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11983 $as_echo "$CC" >&6; }
11984 else
11985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987 fi
11988
11989
11990     test -n "$CC" && break
11991   done
11992 fi
11993 if test -z "$CC"; then
11994   ac_ct_CC=$CC
11995   for ac_prog in cl.exe
11996 do
11997   # Extract the first word of "$ac_prog", so it can be a program name with args.
11998 set dummy $ac_prog; ac_word=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12002   $as_echo_n "(cached) " >&6
12003 else
12004   if test -n "$ac_ct_CC"; then
12005   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12006 else
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12009 do
12010   IFS=$as_save_IFS
12011   test -z "$as_dir" && as_dir=.
12012     for ac_exec_ext in '' $ac_executable_extensions; do
12013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014     ac_cv_prog_ac_ct_CC="$ac_prog"
12015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016     break 2
12017   fi
12018 done
12019   done
12020 IFS=$as_save_IFS
12021
12022 fi
12023 fi
12024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12025 if test -n "$ac_ct_CC"; then
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12027 $as_echo "$ac_ct_CC" >&6; }
12028 else
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12031 fi
12032
12033
12034   test -n "$ac_ct_CC" && break
12035 done
12036
12037   if test "x$ac_ct_CC" = x; then
12038     CC=""
12039   else
12040     case $cross_compiling:$ac_tool_warned in
12041 yes:)
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12044 ac_tool_warned=yes ;;
12045 esac
12046     CC=$ac_ct_CC
12047   fi
12048 fi
12049
12050 fi
12051
12052
12053 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12055 as_fn_error $? "no acceptable C compiler found in \$PATH
12056 See \`config.log' for more details" "$LINENO" 5; }
12057
12058 # Provide some information about the compiler.
12059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12060 set X $ac_compile
12061 ac_compiler=$2
12062 for ac_option in --version -v -V -qversion; do
12063   { { ac_try="$ac_compiler $ac_option >&5"
12064 case "(($ac_try" in
12065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066   *) ac_try_echo=$ac_try;;
12067 esac
12068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12069 $as_echo "$ac_try_echo"; } >&5
12070   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12071   ac_status=$?
12072   if test -s conftest.err; then
12073     sed '10a\
12074 ... rest of stderr output deleted ...
12075          10q' conftest.err >conftest.er1
12076     cat conftest.er1 >&5
12077   fi
12078   rm -f conftest.er1 conftest.err
12079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12080   test $ac_status = 0; }
12081 done
12082
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12084 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12085 if ${ac_cv_c_compiler_gnu+:} false; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h.  */
12090
12091 int
12092 main ()
12093 {
12094 #ifndef __GNUC__
12095        choke me
12096 #endif
12097
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103   ac_compiler_gnu=yes
12104 else
12105   ac_compiler_gnu=no
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12109
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12112 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12113 if test $ac_compiler_gnu = yes; then
12114   GCC=yes
12115 else
12116   GCC=
12117 fi
12118 ac_test_CFLAGS=${CFLAGS+set}
12119 ac_save_CFLAGS=$CFLAGS
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12121 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12122 if ${ac_cv_prog_cc_g+:} false; then :
12123   $as_echo_n "(cached) " >&6
12124 else
12125   ac_save_c_werror_flag=$ac_c_werror_flag
12126    ac_c_werror_flag=yes
12127    ac_cv_prog_cc_g=no
12128    CFLAGS="-g"
12129    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h.  */
12131
12132 int
12133 main ()
12134 {
12135
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_compile "$LINENO"; then :
12141   ac_cv_prog_cc_g=yes
12142 else
12143   CFLAGS=""
12144       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h.  */
12146
12147 int
12148 main ()
12149 {
12150
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 if ac_fn_c_try_compile "$LINENO"; then :
12156
12157 else
12158   ac_c_werror_flag=$ac_save_c_werror_flag
12159          CFLAGS="-g"
12160          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h.  */
12162
12163 int
12164 main ()
12165 {
12166
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 if ac_fn_c_try_compile "$LINENO"; then :
12172   ac_cv_prog_cc_g=yes
12173 fi
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175 fi
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 fi
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179    ac_c_werror_flag=$ac_save_c_werror_flag
12180 fi
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12182 $as_echo "$ac_cv_prog_cc_g" >&6; }
12183 if test "$ac_test_CFLAGS" = set; then
12184   CFLAGS=$ac_save_CFLAGS
12185 elif test $ac_cv_prog_cc_g = yes; then
12186   if test "$GCC" = yes; then
12187     CFLAGS="-g -O2"
12188   else
12189     CFLAGS="-g"
12190   fi
12191 else
12192   if test "$GCC" = yes; then
12193     CFLAGS="-O2"
12194   else
12195     CFLAGS=
12196   fi
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12199 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12200 if ${ac_cv_prog_cc_c89+:} false; then :
12201   $as_echo_n "(cached) " >&6
12202 else
12203   ac_cv_prog_cc_c89=no
12204 ac_save_CC=$CC
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h.  */
12207 #include <stdarg.h>
12208 #include <stdio.h>
12209 struct stat;
12210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12211 struct buf { int x; };
12212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12213 static char *e (p, i)
12214      char **p;
12215      int i;
12216 {
12217   return p[i];
12218 }
12219 static char *f (char * (*g) (char **, int), char **p, ...)
12220 {
12221   char *s;
12222   va_list v;
12223   va_start (v,p);
12224   s = g (p, va_arg (v,int));
12225   va_end (v);
12226   return s;
12227 }
12228
12229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12230    function prototypes and stuff, but not '\xHH' hex character constants.
12231    These don't provoke an error unfortunately, instead are silently treated
12232    as 'x'.  The following induces an error, until -std is added to get
12233    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12234    array size at least.  It's necessary to write '\x00'==0 to get something
12235    that's true only with -std.  */
12236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12237
12238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12239    inside strings and character constants.  */
12240 #define FOO(x) 'x'
12241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12242
12243 int test (int i, double x);
12244 struct s1 {int (*f) (int a);};
12245 struct s2 {int (*f) (double a);};
12246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12247 int argc;
12248 char **argv;
12249 int
12250 main ()
12251 {
12252 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12258         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12259 do
12260   CC="$ac_save_CC $ac_arg"
12261   if ac_fn_c_try_compile "$LINENO"; then :
12262   ac_cv_prog_cc_c89=$ac_arg
12263 fi
12264 rm -f core conftest.err conftest.$ac_objext
12265   test "x$ac_cv_prog_cc_c89" != "xno" && break
12266 done
12267 rm -f conftest.$ac_ext
12268 CC=$ac_save_CC
12269
12270 fi
12271 # AC_CACHE_VAL
12272 case "x$ac_cv_prog_cc_c89" in
12273   x)
12274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12275 $as_echo "none needed" >&6; } ;;
12276   xno)
12277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12278 $as_echo "unsupported" >&6; } ;;
12279   *)
12280     CC="$CC $ac_cv_prog_cc_c89"
12281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12283 esac
12284 if test "x$ac_cv_prog_cc_c89" != xno; then :
12285
12286 fi
12287
12288 ac_ext=c
12289 ac_cpp='$CPP $CPPFLAGS'
12290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12293
12294 ac_ext=c
12295 ac_cpp='$CPP $CPPFLAGS'
12296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12300 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12301 if ${am_cv_prog_cc_c_o+:} false; then :
12302   $as_echo_n "(cached) " >&6
12303 else
12304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h.  */
12306
12307 int
12308 main ()
12309 {
12310
12311   ;
12312   return 0;
12313 }
12314 _ACEOF
12315   # Make sure it works both with $CC and with simple cc.
12316   # Following AC_PROG_CC_C_O, we do the test twice because some
12317   # compilers refuse to overwrite an existing .o file with -o,
12318   # though they will create one.
12319   am_cv_prog_cc_c_o=yes
12320   for am_i in 1 2; do
12321     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12322    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12323    ac_status=$?
12324    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325    (exit $ac_status); } \
12326          && test -f conftest2.$ac_objext; then
12327       : OK
12328     else
12329       am_cv_prog_cc_c_o=no
12330       break
12331     fi
12332   done
12333   rm -f core conftest*
12334   unset am_i
12335 fi
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12337 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12338 if test "$am_cv_prog_cc_c_o" != yes; then
12339    # Losing compiler, so override with the script.
12340    # FIXME: It is wrong to rewrite CC.
12341    # But if we don't then we get into trouble of one sort or another.
12342    # A longer-term fix would be to have automake use am__CC in this case,
12343    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12344    CC="$am_aux_dir/compile $CC"
12345 fi
12346 ac_ext=c
12347 ac_cpp='$CPP $CPPFLAGS'
12348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12351
12352
12353 depcc="$CC"   am_compiler_list=
12354
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12356 $as_echo_n "checking dependency style of $depcc... " >&6; }
12357 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12358   $as_echo_n "(cached) " >&6
12359 else
12360   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12361   # We make a subdir and do the tests there.  Otherwise we can end up
12362   # making bogus files that we don't know about and never remove.  For
12363   # instance it was reported that on HP-UX the gcc test will end up
12364   # making a dummy file named 'D' -- because '-MD' means "put the output
12365   # in D".
12366   rm -rf conftest.dir
12367   mkdir conftest.dir
12368   # Copy depcomp to subdir because otherwise we won't find it if we're
12369   # using a relative directory.
12370   cp "$am_depcomp" conftest.dir
12371   cd conftest.dir
12372   # We will build objects and dependencies in a subdirectory because
12373   # it helps to detect inapplicable dependency modes.  For instance
12374   # both Tru64's cc and ICC support -MD to output dependencies as a
12375   # side effect of compilation, but ICC will put the dependencies in
12376   # the current directory while Tru64 will put them in the object
12377   # directory.
12378   mkdir sub
12379
12380   am_cv_CC_dependencies_compiler_type=none
12381   if test "$am_compiler_list" = ""; then
12382      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12383   fi
12384   am__universal=false
12385   case " $depcc " in #(
12386      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12387      esac
12388
12389   for depmode in $am_compiler_list; do
12390     # Setup a source with many dependencies, because some compilers
12391     # like to wrap large dependency lists on column 80 (with \), and
12392     # we should not choose a depcomp mode which is confused by this.
12393     #
12394     # We need to recreate these files for each test, as the compiler may
12395     # overwrite some of them when testing with obscure command lines.
12396     # This happens at least with the AIX C compiler.
12397     : > sub/conftest.c
12398     for i in 1 2 3 4 5 6; do
12399       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12400       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12401       # Solaris 10 /bin/sh.
12402       echo '/* dummy */' > sub/conftst$i.h
12403     done
12404     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12405
12406     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12407     # mode.  It turns out that the SunPro C++ compiler does not properly
12408     # handle '-M -o', and we need to detect this.  Also, some Intel
12409     # versions had trouble with output in subdirs.
12410     am__obj=sub/conftest.${OBJEXT-o}
12411     am__minus_obj="-o $am__obj"
12412     case $depmode in
12413     gcc)
12414       # This depmode causes a compiler race in universal mode.
12415       test "$am__universal" = false || continue
12416       ;;
12417     nosideeffect)
12418       # After this tag, mechanisms are not by side-effect, so they'll
12419       # only be used when explicitly requested.
12420       if test "x$enable_dependency_tracking" = xyes; then
12421         continue
12422       else
12423         break
12424       fi
12425       ;;
12426     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12427       # This compiler won't grok '-c -o', but also, the minuso test has
12428       # not run yet.  These depmodes are late enough in the game, and
12429       # so weak that their functioning should not be impacted.
12430       am__obj=conftest.${OBJEXT-o}
12431       am__minus_obj=
12432       ;;
12433     none) break ;;
12434     esac
12435     if depmode=$depmode \
12436        source=sub/conftest.c object=$am__obj \
12437        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12438        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12439          >/dev/null 2>conftest.err &&
12440        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12441        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12442        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12443        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12444       # icc doesn't choke on unknown options, it will just issue warnings
12445       # or remarks (even with -Werror).  So we grep stderr for any message
12446       # that says an option was ignored or not supported.
12447       # When given -MP, icc 7.0 and 7.1 complain thusly:
12448       #   icc: Command line warning: ignoring option '-M'; no argument required
12449       # The diagnosis changed in icc 8.0:
12450       #   icc: Command line remark: option '-MP' not supported
12451       if (grep 'ignoring option' conftest.err ||
12452           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12453         am_cv_CC_dependencies_compiler_type=$depmode
12454         break
12455       fi
12456     fi
12457   done
12458
12459   cd ..
12460   rm -rf conftest.dir
12461 else
12462   am_cv_CC_dependencies_compiler_type=none
12463 fi
12464
12465 fi
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12467 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12468 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12469
12470  if
12471   test "x$enable_dependency_tracking" != xno \
12472   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12473   am__fastdepCC_TRUE=
12474   am__fastdepCC_FALSE='#'
12475 else
12476   am__fastdepCC_TRUE='#'
12477   am__fastdepCC_FALSE=
12478 fi
12479
12480
12481
12482 ac_ext=cpp
12483 ac_cpp='$CXXCPP $CPPFLAGS'
12484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12487 if test -z "$CXX"; then
12488   if test -n "$CCC"; then
12489     CXX=$CCC
12490   else
12491     if test -n "$ac_tool_prefix"; then
12492   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12493   do
12494     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497 $as_echo_n "checking for $ac_word... " >&6; }
12498 if ${ac_cv_prog_CXX+:} false; then :
12499   $as_echo_n "(cached) " >&6
12500 else
12501   if test -n "$CXX"; then
12502   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12503 else
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12506 do
12507   IFS=$as_save_IFS
12508   test -z "$as_dir" && as_dir=.
12509     for ac_exec_ext in '' $ac_executable_extensions; do
12510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12511     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513     break 2
12514   fi
12515 done
12516   done
12517 IFS=$as_save_IFS
12518
12519 fi
12520 fi
12521 CXX=$ac_cv_prog_CXX
12522 if test -n "$CXX"; then
12523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12524 $as_echo "$CXX" >&6; }
12525 else
12526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12528 fi
12529
12530
12531     test -n "$CXX" && break
12532   done
12533 fi
12534 if test -z "$CXX"; then
12535   ac_ct_CXX=$CXX
12536   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12537 do
12538   # Extract the first word of "$ac_prog", so it can be a program name with args.
12539 set dummy $ac_prog; ac_word=$2
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541 $as_echo_n "checking for $ac_word... " >&6; }
12542 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12543   $as_echo_n "(cached) " >&6
12544 else
12545   if test -n "$ac_ct_CXX"; then
12546   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12547 else
12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12550 do
12551   IFS=$as_save_IFS
12552   test -z "$as_dir" && as_dir=.
12553     for ac_exec_ext in '' $ac_executable_extensions; do
12554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12555     ac_cv_prog_ac_ct_CXX="$ac_prog"
12556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12557     break 2
12558   fi
12559 done
12560   done
12561 IFS=$as_save_IFS
12562
12563 fi
12564 fi
12565 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12566 if test -n "$ac_ct_CXX"; then
12567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12568 $as_echo "$ac_ct_CXX" >&6; }
12569 else
12570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571 $as_echo "no" >&6; }
12572 fi
12573
12574
12575   test -n "$ac_ct_CXX" && break
12576 done
12577
12578   if test "x$ac_ct_CXX" = x; then
12579     CXX="g++"
12580   else
12581     case $cross_compiling:$ac_tool_warned in
12582 yes:)
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12585 ac_tool_warned=yes ;;
12586 esac
12587     CXX=$ac_ct_CXX
12588   fi
12589 fi
12590
12591   fi
12592 fi
12593 # Provide some information about the compiler.
12594 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12595 set X $ac_compile
12596 ac_compiler=$2
12597 for ac_option in --version -v -V -qversion; do
12598   { { ac_try="$ac_compiler $ac_option >&5"
12599 case "(($ac_try" in
12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601   *) ac_try_echo=$ac_try;;
12602 esac
12603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12604 $as_echo "$ac_try_echo"; } >&5
12605   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12606   ac_status=$?
12607   if test -s conftest.err; then
12608     sed '10a\
12609 ... rest of stderr output deleted ...
12610          10q' conftest.err >conftest.er1
12611     cat conftest.er1 >&5
12612   fi
12613   rm -f conftest.er1 conftest.err
12614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12615   test $ac_status = 0; }
12616 done
12617
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12619 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12620 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12621   $as_echo_n "(cached) " >&6
12622 else
12623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h.  */
12625
12626 int
12627 main ()
12628 {
12629 #ifndef __GNUC__
12630        choke me
12631 #endif
12632
12633   ;
12634   return 0;
12635 }
12636 _ACEOF
12637 if ac_fn_cxx_try_compile "$LINENO"; then :
12638   ac_compiler_gnu=yes
12639 else
12640   ac_compiler_gnu=no
12641 fi
12642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12644
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12647 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12648 if test $ac_compiler_gnu = yes; then
12649   GXX=yes
12650 else
12651   GXX=
12652 fi
12653 ac_test_CXXFLAGS=${CXXFLAGS+set}
12654 ac_save_CXXFLAGS=$CXXFLAGS
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12656 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12657 if ${ac_cv_prog_cxx_g+:} false; then :
12658   $as_echo_n "(cached) " >&6
12659 else
12660   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12661    ac_cxx_werror_flag=yes
12662    ac_cv_prog_cxx_g=no
12663    CXXFLAGS="-g"
12664    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h.  */
12666
12667 int
12668 main ()
12669 {
12670
12671   ;
12672   return 0;
12673 }
12674 _ACEOF
12675 if ac_fn_cxx_try_compile "$LINENO"; then :
12676   ac_cv_prog_cxx_g=yes
12677 else
12678   CXXFLAGS=""
12679       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h.  */
12681
12682 int
12683 main ()
12684 {
12685
12686   ;
12687   return 0;
12688 }
12689 _ACEOF
12690 if ac_fn_cxx_try_compile "$LINENO"; then :
12691
12692 else
12693   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12694          CXXFLAGS="-g"
12695          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h.  */
12697
12698 int
12699 main ()
12700 {
12701
12702   ;
12703   return 0;
12704 }
12705 _ACEOF
12706 if ac_fn_cxx_try_compile "$LINENO"; then :
12707   ac_cv_prog_cxx_g=yes
12708 fi
12709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710 fi
12711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12712 fi
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12715 fi
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12717 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12718 if test "$ac_test_CXXFLAGS" = set; then
12719   CXXFLAGS=$ac_save_CXXFLAGS
12720 elif test $ac_cv_prog_cxx_g = yes; then
12721   if test "$GXX" = yes; then
12722     CXXFLAGS="-g -O2"
12723   else
12724     CXXFLAGS="-g"
12725   fi
12726 else
12727   if test "$GXX" = yes; then
12728     CXXFLAGS="-O2"
12729   else
12730     CXXFLAGS=
12731   fi
12732 fi
12733 ac_ext=c
12734 ac_cpp='$CPP $CPPFLAGS'
12735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12738
12739 depcc="$CXX"  am_compiler_list=
12740
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12742 $as_echo_n "checking dependency style of $depcc... " >&6; }
12743 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12744   $as_echo_n "(cached) " >&6
12745 else
12746   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12747   # We make a subdir and do the tests there.  Otherwise we can end up
12748   # making bogus files that we don't know about and never remove.  For
12749   # instance it was reported that on HP-UX the gcc test will end up
12750   # making a dummy file named 'D' -- because '-MD' means "put the output
12751   # in D".
12752   rm -rf conftest.dir
12753   mkdir conftest.dir
12754   # Copy depcomp to subdir because otherwise we won't find it if we're
12755   # using a relative directory.
12756   cp "$am_depcomp" conftest.dir
12757   cd conftest.dir
12758   # We will build objects and dependencies in a subdirectory because
12759   # it helps to detect inapplicable dependency modes.  For instance
12760   # both Tru64's cc and ICC support -MD to output dependencies as a
12761   # side effect of compilation, but ICC will put the dependencies in
12762   # the current directory while Tru64 will put them in the object
12763   # directory.
12764   mkdir sub
12765
12766   am_cv_CXX_dependencies_compiler_type=none
12767   if test "$am_compiler_list" = ""; then
12768      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12769   fi
12770   am__universal=false
12771   case " $depcc " in #(
12772      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12773      esac
12774
12775   for depmode in $am_compiler_list; do
12776     # Setup a source with many dependencies, because some compilers
12777     # like to wrap large dependency lists on column 80 (with \), and
12778     # we should not choose a depcomp mode which is confused by this.
12779     #
12780     # We need to recreate these files for each test, as the compiler may
12781     # overwrite some of them when testing with obscure command lines.
12782     # This happens at least with the AIX C compiler.
12783     : > sub/conftest.c
12784     for i in 1 2 3 4 5 6; do
12785       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12786       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12787       # Solaris 10 /bin/sh.
12788       echo '/* dummy */' > sub/conftst$i.h
12789     done
12790     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12791
12792     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12793     # mode.  It turns out that the SunPro C++ compiler does not properly
12794     # handle '-M -o', and we need to detect this.  Also, some Intel
12795     # versions had trouble with output in subdirs.
12796     am__obj=sub/conftest.${OBJEXT-o}
12797     am__minus_obj="-o $am__obj"
12798     case $depmode in
12799     gcc)
12800       # This depmode causes a compiler race in universal mode.
12801       test "$am__universal" = false || continue
12802       ;;
12803     nosideeffect)
12804       # After this tag, mechanisms are not by side-effect, so they'll
12805       # only be used when explicitly requested.
12806       if test "x$enable_dependency_tracking" = xyes; then
12807         continue
12808       else
12809         break
12810       fi
12811       ;;
12812     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12813       # This compiler won't grok '-c -o', but also, the minuso test has
12814       # not run yet.  These depmodes are late enough in the game, and
12815       # so weak that their functioning should not be impacted.
12816       am__obj=conftest.${OBJEXT-o}
12817       am__minus_obj=
12818       ;;
12819     none) break ;;
12820     esac
12821     if depmode=$depmode \
12822        source=sub/conftest.c object=$am__obj \
12823        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12824        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12825          >/dev/null 2>conftest.err &&
12826        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12827        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12828        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12829        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12830       # icc doesn't choke on unknown options, it will just issue warnings
12831       # or remarks (even with -Werror).  So we grep stderr for any message
12832       # that says an option was ignored or not supported.
12833       # When given -MP, icc 7.0 and 7.1 complain thusly:
12834       #   icc: Command line warning: ignoring option '-M'; no argument required
12835       # The diagnosis changed in icc 8.0:
12836       #   icc: Command line remark: option '-MP' not supported
12837       if (grep 'ignoring option' conftest.err ||
12838           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12839         am_cv_CXX_dependencies_compiler_type=$depmode
12840         break
12841       fi
12842     fi
12843   done
12844
12845   cd ..
12846   rm -rf conftest.dir
12847 else
12848   am_cv_CXX_dependencies_compiler_type=none
12849 fi
12850
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12853 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12854 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12855
12856  if
12857   test "x$enable_dependency_tracking" != xno \
12858   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12859   am__fastdepCXX_TRUE=
12860   am__fastdepCXX_FALSE='#'
12861 else
12862   am__fastdepCXX_TRUE='#'
12863   am__fastdepCXX_FALSE=
12864 fi
12865
12866
12867
12868
12869 func_stripname_cnf ()
12870 {
12871   case ${2} in
12872   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12873   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12874   esac
12875 } # func_stripname_cnf
12876
12877       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12878     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12879     (test "X$CXX" != "Xg++"))) ; then
12880   ac_ext=cpp
12881 ac_cpp='$CXXCPP $CPPFLAGS'
12882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12886 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12887 if test -z "$CXXCPP"; then
12888   if ${ac_cv_prog_CXXCPP+:} false; then :
12889   $as_echo_n "(cached) " >&6
12890 else
12891       # Double quotes because CXXCPP needs to be expanded
12892     for CXXCPP in "$CXX -E" "/lib/cpp"
12893     do
12894       ac_preproc_ok=false
12895 for ac_cxx_preproc_warn_flag in '' yes
12896 do
12897   # Use a header file that comes with gcc, so configuring glibc
12898   # with a fresh cross-compiler works.
12899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12900   # <limits.h> exists even on freestanding compilers.
12901   # On the NeXT, cc -E runs the code through the compiler's parser,
12902   # not just through cpp. "Syntax error" is here to catch this case.
12903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h.  */
12905 #ifdef __STDC__
12906 # include <limits.h>
12907 #else
12908 # include <assert.h>
12909 #endif
12910                      Syntax error
12911 _ACEOF
12912 if ac_fn_cxx_try_cpp "$LINENO"; then :
12913
12914 else
12915   # Broken: fails on valid input.
12916 continue
12917 fi
12918 rm -f conftest.err conftest.i conftest.$ac_ext
12919
12920   # OK, works on sane cases.  Now check whether nonexistent headers
12921   # can be detected and how.
12922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h.  */
12924 #include <ac_nonexistent.h>
12925 _ACEOF
12926 if ac_fn_cxx_try_cpp "$LINENO"; then :
12927   # Broken: success on invalid input.
12928 continue
12929 else
12930   # Passes both tests.
12931 ac_preproc_ok=:
12932 break
12933 fi
12934 rm -f conftest.err conftest.i conftest.$ac_ext
12935
12936 done
12937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12938 rm -f conftest.i conftest.err conftest.$ac_ext
12939 if $ac_preproc_ok; then :
12940   break
12941 fi
12942
12943     done
12944     ac_cv_prog_CXXCPP=$CXXCPP
12945
12946 fi
12947   CXXCPP=$ac_cv_prog_CXXCPP
12948 else
12949   ac_cv_prog_CXXCPP=$CXXCPP
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12952 $as_echo "$CXXCPP" >&6; }
12953 ac_preproc_ok=false
12954 for ac_cxx_preproc_warn_flag in '' yes
12955 do
12956   # Use a header file that comes with gcc, so configuring glibc
12957   # with a fresh cross-compiler works.
12958   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12959   # <limits.h> exists even on freestanding compilers.
12960   # On the NeXT, cc -E runs the code through the compiler's parser,
12961   # not just through cpp. "Syntax error" is here to catch this case.
12962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h.  */
12964 #ifdef __STDC__
12965 # include <limits.h>
12966 #else
12967 # include <assert.h>
12968 #endif
12969                      Syntax error
12970 _ACEOF
12971 if ac_fn_cxx_try_cpp "$LINENO"; then :
12972
12973 else
12974   # Broken: fails on valid input.
12975 continue
12976 fi
12977 rm -f conftest.err conftest.i conftest.$ac_ext
12978
12979   # OK, works on sane cases.  Now check whether nonexistent headers
12980   # can be detected and how.
12981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h.  */
12983 #include <ac_nonexistent.h>
12984 _ACEOF
12985 if ac_fn_cxx_try_cpp "$LINENO"; then :
12986   # Broken: success on invalid input.
12987 continue
12988 else
12989   # Passes both tests.
12990 ac_preproc_ok=:
12991 break
12992 fi
12993 rm -f conftest.err conftest.i conftest.$ac_ext
12994
12995 done
12996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12997 rm -f conftest.i conftest.err conftest.$ac_ext
12998 if $ac_preproc_ok; then :
12999
13000 else
13001   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13003 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13004 See \`config.log' for more details" "$LINENO" 5; }
13005 fi
13006
13007 ac_ext=c
13008 ac_cpp='$CPP $CPPFLAGS'
13009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13012
13013 else
13014   _lt_caught_CXX_error=yes
13015 fi
13016
13017 ac_ext=cpp
13018 ac_cpp='$CXXCPP $CPPFLAGS'
13019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13022
13023 archive_cmds_need_lc_CXX=no
13024 allow_undefined_flag_CXX=
13025 always_export_symbols_CXX=no
13026 archive_expsym_cmds_CXX=
13027 compiler_needs_object_CXX=no
13028 export_dynamic_flag_spec_CXX=
13029 hardcode_direct_CXX=no
13030 hardcode_direct_absolute_CXX=no
13031 hardcode_libdir_flag_spec_CXX=
13032 hardcode_libdir_separator_CXX=
13033 hardcode_minus_L_CXX=no
13034 hardcode_shlibpath_var_CXX=unsupported
13035 hardcode_automatic_CXX=no
13036 inherit_rpath_CXX=no
13037 module_cmds_CXX=
13038 module_expsym_cmds_CXX=
13039 link_all_deplibs_CXX=unknown
13040 old_archive_cmds_CXX=$old_archive_cmds
13041 reload_flag_CXX=$reload_flag
13042 reload_cmds_CXX=$reload_cmds
13043 no_undefined_flag_CXX=
13044 whole_archive_flag_spec_CXX=
13045 enable_shared_with_static_runtimes_CXX=no
13046
13047 # Source file extension for C++ test sources.
13048 ac_ext=cpp
13049
13050 # Object file extension for compiled C++ test sources.
13051 objext=o
13052 objext_CXX=$objext
13053
13054 # No sense in running all these tests if we already determined that
13055 # the CXX compiler isn't working.  Some variables (like enable_shared)
13056 # are currently assumed to apply to all compilers on this platform,
13057 # and will be corrupted by setting them based on a non-working compiler.
13058 if test "$_lt_caught_CXX_error" != yes; then
13059   # Code to be used in simple compile tests
13060   lt_simple_compile_test_code="int some_variable = 0;"
13061
13062   # Code to be used in simple link tests
13063   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13064
13065   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13066
13067
13068
13069
13070
13071
13072 # If no C compiler was specified, use CC.
13073 LTCC=${LTCC-"$CC"}
13074
13075 # If no C compiler flags were specified, use CFLAGS.
13076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13077
13078 # Allow CC to be a program name with arguments.
13079 compiler=$CC
13080
13081
13082   # save warnings/boilerplate of simple test code
13083   ac_outfile=conftest.$ac_objext
13084 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13085 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13086 _lt_compiler_boilerplate=`cat conftest.err`
13087 $RM conftest*
13088
13089   ac_outfile=conftest.$ac_objext
13090 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13091 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13092 _lt_linker_boilerplate=`cat conftest.err`
13093 $RM -r conftest*
13094
13095
13096   # Allow CC to be a program name with arguments.
13097   lt_save_CC=$CC
13098   lt_save_CFLAGS=$CFLAGS
13099   lt_save_LD=$LD
13100   lt_save_GCC=$GCC
13101   GCC=$GXX
13102   lt_save_with_gnu_ld=$with_gnu_ld
13103   lt_save_path_LD=$lt_cv_path_LD
13104   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13105     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13106   else
13107     $as_unset lt_cv_prog_gnu_ld
13108   fi
13109   if test -n "${lt_cv_path_LDCXX+set}"; then
13110     lt_cv_path_LD=$lt_cv_path_LDCXX
13111   else
13112     $as_unset lt_cv_path_LD
13113   fi
13114   test -z "${LDCXX+set}" || LD=$LDCXX
13115   CC=${CXX-"c++"}
13116   CFLAGS=$CXXFLAGS
13117   compiler=$CC
13118   compiler_CXX=$CC
13119   for cc_temp in $compiler""; do
13120   case $cc_temp in
13121     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13122     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13123     \-*) ;;
13124     *) break;;
13125   esac
13126 done
13127 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13128
13129
13130   if test -n "$compiler"; then
13131     # We don't want -fno-exception when compiling C++ code, so set the
13132     # no_builtin_flag separately
13133     if test "$GXX" = yes; then
13134       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13135     else
13136       lt_prog_compiler_no_builtin_flag_CXX=
13137     fi
13138
13139     if test "$GXX" = yes; then
13140       # Set up default GNU C++ configuration
13141
13142
13143
13144 # Check whether --with-gnu-ld was given.
13145 if test "${with_gnu_ld+set}" = set; then :
13146   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13147 else
13148   with_gnu_ld=no
13149 fi
13150
13151 ac_prog=ld
13152 if test "$GCC" = yes; then
13153   # Check if gcc -print-prog-name=ld gives a path.
13154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13155 $as_echo_n "checking for ld used by $CC... " >&6; }
13156   case $host in
13157   *-*-mingw*)
13158     # gcc leaves a trailing carriage return which upsets mingw
13159     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13160   *)
13161     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13162   esac
13163   case $ac_prog in
13164     # Accept absolute paths.
13165     [\\/]* | ?:[\\/]*)
13166       re_direlt='/[^/][^/]*/\.\./'
13167       # Canonicalize the pathname of ld
13168       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13169       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13170         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13171       done
13172       test -z "$LD" && LD="$ac_prog"
13173       ;;
13174   "")
13175     # If it fails, then pretend we aren't using GCC.
13176     ac_prog=ld
13177     ;;
13178   *)
13179     # If it is relative, then search for the first ld in PATH.
13180     with_gnu_ld=unknown
13181     ;;
13182   esac
13183 elif test "$with_gnu_ld" = yes; then
13184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13185 $as_echo_n "checking for GNU ld... " >&6; }
13186 else
13187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13188 $as_echo_n "checking for non-GNU ld... " >&6; }
13189 fi
13190 if ${lt_cv_path_LD+:} false; then :
13191   $as_echo_n "(cached) " >&6
13192 else
13193   if test -z "$LD"; then
13194   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13195   for ac_dir in $PATH; do
13196     IFS="$lt_save_ifs"
13197     test -z "$ac_dir" && ac_dir=.
13198     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13199       lt_cv_path_LD="$ac_dir/$ac_prog"
13200       # Check to see if the program is GNU ld.  I'd rather use --version,
13201       # but apparently some variants of GNU ld only accept -v.
13202       # Break only if it was the GNU/non-GNU ld that we prefer.
13203       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13204       *GNU* | *'with BFD'*)
13205         test "$with_gnu_ld" != no && break
13206         ;;
13207       *)
13208         test "$with_gnu_ld" != yes && break
13209         ;;
13210       esac
13211     fi
13212   done
13213   IFS="$lt_save_ifs"
13214 else
13215   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13216 fi
13217 fi
13218
13219 LD="$lt_cv_path_LD"
13220 if test -n "$LD"; then
13221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13222 $as_echo "$LD" >&6; }
13223 else
13224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13226 fi
13227 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13229 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13230 if ${lt_cv_prog_gnu_ld+:} false; then :
13231   $as_echo_n "(cached) " >&6
13232 else
13233   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13234 case `$LD -v 2>&1 </dev/null` in
13235 *GNU* | *'with BFD'*)
13236   lt_cv_prog_gnu_ld=yes
13237   ;;
13238 *)
13239   lt_cv_prog_gnu_ld=no
13240   ;;
13241 esac
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13244 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13245 with_gnu_ld=$lt_cv_prog_gnu_ld
13246
13247
13248
13249
13250
13251
13252
13253       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13254       # archiving commands below assume that GNU ld is being used.
13255       if test "$with_gnu_ld" = yes; then
13256         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13257         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'
13258
13259         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13260         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13261
13262         # If archive_cmds runs LD, not CC, wlarc should be empty
13263         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13264         #     investigate it a little bit more. (MM)
13265         wlarc='${wl}'
13266
13267         # ancient GNU ld didn't support --whole-archive et. al.
13268         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13269           $GREP 'no-whole-archive' > /dev/null; then
13270           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13271         else
13272           whole_archive_flag_spec_CXX=
13273         fi
13274       else
13275         with_gnu_ld=no
13276         wlarc=
13277
13278         # A generic and very simple default shared library creation
13279         # command for GNU C++ for the case where it uses the native
13280         # linker, instead of GNU ld.  If possible, this setting should
13281         # overridden to take advantage of the native linker features on
13282         # the platform it is being used on.
13283         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13284       fi
13285
13286       # Commands to make compiler produce verbose output that lists
13287       # what "hidden" libraries, object files and flags are used when
13288       # linking a shared library.
13289       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13290
13291     else
13292       GXX=no
13293       with_gnu_ld=no
13294       wlarc=
13295     fi
13296
13297     # PORTME: fill in a description of your system's C++ link characteristics
13298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13299 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13300     ld_shlibs_CXX=yes
13301     case $host_os in
13302       aix3*)
13303         # FIXME: insert proper C++ library support
13304         ld_shlibs_CXX=no
13305         ;;
13306       aix[4-9]*)
13307         if test "$host_cpu" = ia64; then
13308           # On IA64, the linker does run time linking by default, so we don't
13309           # have to do anything special.
13310           aix_use_runtimelinking=no
13311           exp_sym_flag='-Bexport'
13312           no_entry_flag=""
13313         else
13314           aix_use_runtimelinking=no
13315
13316           # Test if we are trying to use run time linking or normal
13317           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13318           # need to do runtime linking.
13319           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13320             for ld_flag in $LDFLAGS; do
13321               case $ld_flag in
13322               *-brtl*)
13323                 aix_use_runtimelinking=yes
13324                 break
13325                 ;;
13326               esac
13327             done
13328             ;;
13329           esac
13330
13331           exp_sym_flag='-bexport'
13332           no_entry_flag='-bnoentry'
13333         fi
13334
13335         # When large executables or shared objects are built, AIX ld can
13336         # have problems creating the table of contents.  If linking a library
13337         # or program results in "error TOC overflow" add -mminimal-toc to
13338         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13339         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13340
13341         archive_cmds_CXX=''
13342         hardcode_direct_CXX=yes
13343         hardcode_direct_absolute_CXX=yes
13344         hardcode_libdir_separator_CXX=':'
13345         link_all_deplibs_CXX=yes
13346         file_list_spec_CXX='${wl}-f,'
13347
13348         if test "$GXX" = yes; then
13349           case $host_os in aix4.[012]|aix4.[012].*)
13350           # We only want to do this on AIX 4.2 and lower, the check
13351           # below for broken collect2 doesn't work under 4.3+
13352           collect2name=`${CC} -print-prog-name=collect2`
13353           if test -f "$collect2name" &&
13354              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13355           then
13356             # We have reworked collect2
13357             :
13358           else
13359             # We have old collect2
13360             hardcode_direct_CXX=unsupported
13361             # It fails to find uninstalled libraries when the uninstalled
13362             # path is not listed in the libpath.  Setting hardcode_minus_L
13363             # to unsupported forces relinking
13364             hardcode_minus_L_CXX=yes
13365             hardcode_libdir_flag_spec_CXX='-L$libdir'
13366             hardcode_libdir_separator_CXX=
13367           fi
13368           esac
13369           shared_flag='-shared'
13370           if test "$aix_use_runtimelinking" = yes; then
13371             shared_flag="$shared_flag "'${wl}-G'
13372           fi
13373         else
13374           # not using gcc
13375           if test "$host_cpu" = ia64; then
13376           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13377           # chokes on -Wl,-G. The following line is correct:
13378           shared_flag='-G'
13379           else
13380             if test "$aix_use_runtimelinking" = yes; then
13381               shared_flag='${wl}-G'
13382             else
13383               shared_flag='${wl}-bM:SRE'
13384             fi
13385           fi
13386         fi
13387
13388         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13389         # It seems that -bexpall does not export symbols beginning with
13390         # underscore (_), so it is better to generate a list of symbols to
13391         # export.
13392         always_export_symbols_CXX=yes
13393         if test "$aix_use_runtimelinking" = yes; then
13394           # Warning - without using the other runtime loading flags (-brtl),
13395           # -berok will link without error, but may produce a broken library.
13396           allow_undefined_flag_CXX='-berok'
13397           # Determine the default libpath from the value encoded in an empty
13398           # executable.
13399           if test "${lt_cv_aix_libpath+set}" = set; then
13400   aix_libpath=$lt_cv_aix_libpath
13401 else
13402   if ${lt_cv_aix_libpath__CXX+:} false; then :
13403   $as_echo_n "(cached) " >&6
13404 else
13405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h.  */
13407
13408 int
13409 main ()
13410 {
13411
13412   ;
13413   return 0;
13414 }
13415 _ACEOF
13416 if ac_fn_cxx_try_link "$LINENO"; then :
13417
13418   lt_aix_libpath_sed='
13419       /Import File Strings/,/^$/ {
13420           /^0/ {
13421               s/^0  *\([^ ]*\) *$/\1/
13422               p
13423           }
13424       }'
13425   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426   # Check for a 64-bit object if we didn't find anything.
13427   if test -z "$lt_cv_aix_libpath__CXX"; then
13428     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13429   fi
13430 fi
13431 rm -f core conftest.err conftest.$ac_objext \
13432     conftest$ac_exeext conftest.$ac_ext
13433   if test -z "$lt_cv_aix_libpath__CXX"; then
13434     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13435   fi
13436
13437 fi
13438
13439   aix_libpath=$lt_cv_aix_libpath__CXX
13440 fi
13441
13442           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13443
13444           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13445         else
13446           if test "$host_cpu" = ia64; then
13447             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13448             allow_undefined_flag_CXX="-z nodefs"
13449             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"
13450           else
13451             # Determine the default libpath from the value encoded in an
13452             # empty executable.
13453             if test "${lt_cv_aix_libpath+set}" = set; then
13454   aix_libpath=$lt_cv_aix_libpath
13455 else
13456   if ${lt_cv_aix_libpath__CXX+:} false; then :
13457   $as_echo_n "(cached) " >&6
13458 else
13459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h.  */
13461
13462 int
13463 main ()
13464 {
13465
13466   ;
13467   return 0;
13468 }
13469 _ACEOF
13470 if ac_fn_cxx_try_link "$LINENO"; then :
13471
13472   lt_aix_libpath_sed='
13473       /Import File Strings/,/^$/ {
13474           /^0/ {
13475               s/^0  *\([^ ]*\) *$/\1/
13476               p
13477           }
13478       }'
13479   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13480   # Check for a 64-bit object if we didn't find anything.
13481   if test -z "$lt_cv_aix_libpath__CXX"; then
13482     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13483   fi
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext \
13486     conftest$ac_exeext conftest.$ac_ext
13487   if test -z "$lt_cv_aix_libpath__CXX"; then
13488     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13489   fi
13490
13491 fi
13492
13493   aix_libpath=$lt_cv_aix_libpath__CXX
13494 fi
13495
13496             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13497             # Warning - without using the other run time loading flags,
13498             # -berok will link without error, but may produce a broken library.
13499             no_undefined_flag_CXX=' ${wl}-bernotok'
13500             allow_undefined_flag_CXX=' ${wl}-berok'
13501             if test "$with_gnu_ld" = yes; then
13502               # We only use this code for GNU lds that support --whole-archive.
13503               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13504             else
13505               # Exported symbols can be pulled into shared objects from archives
13506               whole_archive_flag_spec_CXX='$convenience'
13507             fi
13508             archive_cmds_need_lc_CXX=yes
13509             # This is similar to how AIX traditionally builds its shared
13510             # libraries.
13511             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13512           fi
13513         fi
13514         ;;
13515
13516       beos*)
13517         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13518           allow_undefined_flag_CXX=unsupported
13519           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13520           # support --undefined.  This deserves some investigation.  FIXME
13521           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13522         else
13523           ld_shlibs_CXX=no
13524         fi
13525         ;;
13526
13527       chorus*)
13528         case $cc_basename in
13529           *)
13530           # FIXME: insert proper C++ library support
13531           ld_shlibs_CXX=no
13532           ;;
13533         esac
13534         ;;
13535
13536       cygwin* | mingw* | pw32* | cegcc*)
13537         case $GXX,$cc_basename in
13538         ,cl* | no,cl*)
13539           # Native MSVC
13540           # hardcode_libdir_flag_spec is actually meaningless, as there is
13541           # no search path for DLLs.
13542           hardcode_libdir_flag_spec_CXX=' '
13543           allow_undefined_flag_CXX=unsupported
13544           always_export_symbols_CXX=yes
13545           file_list_spec_CXX='@'
13546           # Tell ltmain to make .lib files, not .a files.
13547           libext=lib
13548           # Tell ltmain to make .dll files, not .so files.
13549           shrext_cmds=".dll"
13550           # FIXME: Setting linknames here is a bad hack.
13551           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13552           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13553               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13554             else
13555               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13556             fi~
13557             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13558             linknames='
13559           # The linker will not automatically build a static lib if we build a DLL.
13560           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13561           enable_shared_with_static_runtimes_CXX=yes
13562           # Don't use ranlib
13563           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13564           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13565             lt_tool_outputfile="@TOOL_OUTPUT@"~
13566             case $lt_outputfile in
13567               *.exe|*.EXE) ;;
13568               *)
13569                 lt_outputfile="$lt_outputfile.exe"
13570                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13571                 ;;
13572             esac~
13573             func_to_tool_file "$lt_outputfile"~
13574             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13575               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13576               $RM "$lt_outputfile.manifest";
13577             fi'
13578           ;;
13579         *)
13580           # g++
13581           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13582           # as there is no search path for DLLs.
13583           hardcode_libdir_flag_spec_CXX='-L$libdir'
13584           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13585           allow_undefined_flag_CXX=unsupported
13586           always_export_symbols_CXX=no
13587           enable_shared_with_static_runtimes_CXX=yes
13588
13589           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13590             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'
13591             # If the export-symbols file already is a .def file (1st line
13592             # is EXPORTS), use it as is; otherwise, prepend...
13593             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13594               cp $export_symbols $output_objdir/$soname.def;
13595             else
13596               echo EXPORTS > $output_objdir/$soname.def;
13597               cat $export_symbols >> $output_objdir/$soname.def;
13598             fi~
13599             $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'
13600           else
13601             ld_shlibs_CXX=no
13602           fi
13603           ;;
13604         esac
13605         ;;
13606       darwin* | rhapsody*)
13607
13608
13609   archive_cmds_need_lc_CXX=no
13610   hardcode_direct_CXX=no
13611   hardcode_automatic_CXX=yes
13612   hardcode_shlibpath_var_CXX=unsupported
13613   if test "$lt_cv_ld_force_load" = "yes"; then
13614     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\"`'
13615
13616   else
13617     whole_archive_flag_spec_CXX=''
13618   fi
13619   link_all_deplibs_CXX=yes
13620   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13621   case $cc_basename in
13622      ifort*) _lt_dar_can_shared=yes ;;
13623      *) _lt_dar_can_shared=$GCC ;;
13624   esac
13625   if test "$_lt_dar_can_shared" = "yes"; then
13626     output_verbose_link_cmd=func_echo_all
13627     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}"
13628     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13629     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}"
13630     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}"
13631        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13632       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}"
13633       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}"
13634     fi
13635
13636   else
13637   ld_shlibs_CXX=no
13638   fi
13639
13640         ;;
13641
13642       dgux*)
13643         case $cc_basename in
13644           ec++*)
13645             # FIXME: insert proper C++ library support
13646             ld_shlibs_CXX=no
13647             ;;
13648           ghcx*)
13649             # Green Hills C++ Compiler
13650             # FIXME: insert proper C++ library support
13651             ld_shlibs_CXX=no
13652             ;;
13653           *)
13654             # FIXME: insert proper C++ library support
13655             ld_shlibs_CXX=no
13656             ;;
13657         esac
13658         ;;
13659
13660       freebsd2.*)
13661         # C++ shared libraries reported to be fairly broken before
13662         # switch to ELF
13663         ld_shlibs_CXX=no
13664         ;;
13665
13666       freebsd-elf*)
13667         archive_cmds_need_lc_CXX=no
13668         ;;
13669
13670       freebsd* | dragonfly*)
13671         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13672         # conventions
13673         ld_shlibs_CXX=yes
13674         ;;
13675
13676       gnu*)
13677         ;;
13678
13679       haiku*)
13680         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13681         link_all_deplibs_CXX=yes
13682         ;;
13683
13684       hpux9*)
13685         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13686         hardcode_libdir_separator_CXX=:
13687         export_dynamic_flag_spec_CXX='${wl}-E'
13688         hardcode_direct_CXX=yes
13689         hardcode_minus_L_CXX=yes # Not in the search PATH,
13690                                              # but as the default
13691                                              # location of the library.
13692
13693         case $cc_basename in
13694           CC*)
13695             # FIXME: insert proper C++ library support
13696             ld_shlibs_CXX=no
13697             ;;
13698           aCC*)
13699             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
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 -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"'
13709             ;;
13710           *)
13711             if test "$GXX" = yes; then
13712               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13713             else
13714               # FIXME: insert proper C++ library support
13715               ld_shlibs_CXX=no
13716             fi
13717             ;;
13718         esac
13719         ;;
13720
13721       hpux10*|hpux11*)
13722         if test $with_gnu_ld = no; then
13723           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13724           hardcode_libdir_separator_CXX=:
13725
13726           case $host_cpu in
13727             hppa*64*|ia64*)
13728               ;;
13729             *)
13730               export_dynamic_flag_spec_CXX='${wl}-E'
13731               ;;
13732           esac
13733         fi
13734         case $host_cpu in
13735           hppa*64*|ia64*)
13736             hardcode_direct_CXX=no
13737             hardcode_shlibpath_var_CXX=no
13738             ;;
13739           *)
13740             hardcode_direct_CXX=yes
13741             hardcode_direct_absolute_CXX=yes
13742             hardcode_minus_L_CXX=yes # Not in the search PATH,
13743                                                  # but as the default
13744                                                  # location of the library.
13745             ;;
13746         esac
13747
13748         case $cc_basename in
13749           CC*)
13750             # FIXME: insert proper C++ library support
13751             ld_shlibs_CXX=no
13752             ;;
13753           aCC*)
13754             case $host_cpu in
13755               hppa*64*)
13756                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13757                 ;;
13758               ia64*)
13759                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13760                 ;;
13761               *)
13762                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13763                 ;;
13764             esac
13765             # Commands to make compiler produce verbose output that lists
13766             # what "hidden" libraries, object files and flags are used when
13767             # linking a shared library.
13768             #
13769             # There doesn't appear to be a way to prevent this compiler from
13770             # explicitly linking system object files so we need to strip them
13771             # from the output so that they don't get included in the library
13772             # dependencies.
13773             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"'
13774             ;;
13775           *)
13776             if test "$GXX" = yes; then
13777               if test $with_gnu_ld = no; then
13778                 case $host_cpu in
13779                   hppa*64*)
13780                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13781                     ;;
13782                   ia64*)
13783                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13784                     ;;
13785                   *)
13786                     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'
13787                     ;;
13788                 esac
13789               fi
13790             else
13791               # FIXME: insert proper C++ library support
13792               ld_shlibs_CXX=no
13793             fi
13794             ;;
13795         esac
13796         ;;
13797
13798       interix[3-9]*)
13799         hardcode_direct_CXX=no
13800         hardcode_shlibpath_var_CXX=no
13801         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13802         export_dynamic_flag_spec_CXX='${wl}-E'
13803         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13804         # Instead, shared libraries are loaded at an image base (0x10000000 by
13805         # default) and relocated if they conflict, which is a slow very memory
13806         # consuming and fragmenting process.  To avoid this, we pick a random,
13807         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13808         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13809         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'
13810         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'
13811         ;;
13812       irix5* | irix6*)
13813         case $cc_basename in
13814           CC*)
13815             # SGI C++
13816             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'
13817
13818             # Archives containing C++ object files must be created using
13819             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13820             # necessary to make sure instantiated templates are included
13821             # in the archive.
13822             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13823             ;;
13824           *)
13825             if test "$GXX" = yes; then
13826               if test "$with_gnu_ld" = no; then
13827                 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'
13828               else
13829                 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'
13830               fi
13831             fi
13832             link_all_deplibs_CXX=yes
13833             ;;
13834         esac
13835         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13836         hardcode_libdir_separator_CXX=:
13837         inherit_rpath_CXX=yes
13838         ;;
13839
13840       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13841         case $cc_basename in
13842           KCC*)
13843             # Kuck and Associates, Inc. (KAI) C++ Compiler
13844
13845             # KCC will only create a shared library if the output file
13846             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13847             # to its proper name (with version) after linking.
13848             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'
13849             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'
13850             # Commands to make compiler produce verbose output that lists
13851             # what "hidden" libraries, object files and flags are used when
13852             # linking a shared library.
13853             #
13854             # There doesn't appear to be a way to prevent this compiler from
13855             # explicitly linking system object files so we need to strip them
13856             # from the output so that they don't get included in the library
13857             # dependencies.
13858             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"'
13859
13860             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13861             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13862
13863             # Archives containing C++ object files must be created using
13864             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13865             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13866             ;;
13867           icpc* | ecpc* )
13868             # Intel C++
13869             with_gnu_ld=yes
13870             # version 8.0 and above of icpc choke on multiply defined symbols
13871             # if we add $predep_objects and $postdep_objects, however 7.1 and
13872             # earlier do not add the objects themselves.
13873             case `$CC -V 2>&1` in
13874               *"Version 7."*)
13875                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13876                 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'
13877                 ;;
13878               *)  # Version 8.0 or newer
13879                 tmp_idyn=
13880                 case $host_cpu in
13881                   ia64*) tmp_idyn=' -i_dynamic';;
13882                 esac
13883                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13884                 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'
13885                 ;;
13886             esac
13887             archive_cmds_need_lc_CXX=no
13888             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13889             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13890             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13891             ;;
13892           pgCC* | pgcpp*)
13893             # Portland Group C++ compiler
13894             case `$CC -V` in
13895             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13896               prelink_cmds_CXX='tpldir=Template.dir~
13897                 rm -rf $tpldir~
13898                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13899                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13900               old_archive_cmds_CXX='tpldir=Template.dir~
13901                 rm -rf $tpldir~
13902                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13903                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13904                 $RANLIB $oldlib'
13905               archive_cmds_CXX='tpldir=Template.dir~
13906                 rm -rf $tpldir~
13907                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13908                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13909               archive_expsym_cmds_CXX='tpldir=Template.dir~
13910                 rm -rf $tpldir~
13911                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13912                 $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'
13913               ;;
13914             *) # Version 6 and above use weak symbols
13915               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13916               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'
13917               ;;
13918             esac
13919
13920             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13921             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13922             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'
13923             ;;
13924           cxx*)
13925             # Compaq C++
13926             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13927             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'
13928
13929             runpath_var=LD_RUN_PATH
13930             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13931             hardcode_libdir_separator_CXX=:
13932
13933             # Commands to make compiler produce verbose output that lists
13934             # what "hidden" libraries, object files and flags are used when
13935             # linking a shared library.
13936             #
13937             # There doesn't appear to be a way to prevent this compiler from
13938             # explicitly linking system object files so we need to strip them
13939             # from the output so that they don't get included in the library
13940             # dependencies.
13941             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'
13942             ;;
13943           xl* | mpixl* | bgxl*)
13944             # IBM XL 8.0 on PPC, with GNU ld
13945             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13946             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13947             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13948             if test "x$supports_anon_versioning" = xyes; then
13949               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13950                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13951                 echo "local: *; };" >> $output_objdir/$libname.ver~
13952                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13953             fi
13954             ;;
13955           *)
13956             case `$CC -V 2>&1 | sed 5q` in
13957             *Sun\ C*)
13958               # Sun C++ 5.9
13959               no_undefined_flag_CXX=' -zdefs'
13960               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13961               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'
13962               hardcode_libdir_flag_spec_CXX='-R$libdir'
13963               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'
13964               compiler_needs_object_CXX=yes
13965
13966               # Not sure whether something based on
13967               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13968               # would be better.
13969               output_verbose_link_cmd='func_echo_all'
13970
13971               # Archives containing C++ object files must be created using
13972               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13973               # necessary to make sure instantiated templates are included
13974               # in the archive.
13975               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13976               ;;
13977             esac
13978             ;;
13979         esac
13980         ;;
13981
13982       lynxos*)
13983         # FIXME: insert proper C++ library support
13984         ld_shlibs_CXX=no
13985         ;;
13986
13987       m88k*)
13988         # FIXME: insert proper C++ library support
13989         ld_shlibs_CXX=no
13990         ;;
13991
13992       mvs*)
13993         case $cc_basename in
13994           cxx*)
13995             # FIXME: insert proper C++ library support
13996             ld_shlibs_CXX=no
13997             ;;
13998           *)
13999             # FIXME: insert proper C++ library support
14000             ld_shlibs_CXX=no
14001             ;;
14002         esac
14003         ;;
14004
14005       netbsd*)
14006         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14007           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14008           wlarc=
14009           hardcode_libdir_flag_spec_CXX='-R$libdir'
14010           hardcode_direct_CXX=yes
14011           hardcode_shlibpath_var_CXX=no
14012         fi
14013         # Workaround some broken pre-1.5 toolchains
14014         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14015         ;;
14016
14017       *nto* | *qnx*)
14018         ld_shlibs_CXX=yes
14019         ;;
14020
14021       openbsd2*)
14022         # C++ shared libraries are fairly broken
14023         ld_shlibs_CXX=no
14024         ;;
14025
14026       openbsd*)
14027         if test -f /usr/libexec/ld.so; then
14028           hardcode_direct_CXX=yes
14029           hardcode_shlibpath_var_CXX=no
14030           hardcode_direct_absolute_CXX=yes
14031           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14032           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14033           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14034             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14035             export_dynamic_flag_spec_CXX='${wl}-E'
14036             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14037           fi
14038           output_verbose_link_cmd=func_echo_all
14039         else
14040           ld_shlibs_CXX=no
14041         fi
14042         ;;
14043
14044       osf3* | osf4* | osf5*)
14045         case $cc_basename in
14046           KCC*)
14047             # Kuck and Associates, Inc. (KAI) C++ Compiler
14048
14049             # KCC will only create a shared library if the output file
14050             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14051             # to its proper name (with version) after linking.
14052             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'
14053
14054             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14055             hardcode_libdir_separator_CXX=:
14056
14057             # Archives containing C++ object files must be created using
14058             # the KAI C++ compiler.
14059             case $host in
14060               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14061               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14062             esac
14063             ;;
14064           RCC*)
14065             # Rational C++ 2.4.1
14066             # FIXME: insert proper C++ library support
14067             ld_shlibs_CXX=no
14068             ;;
14069           cxx*)
14070             case $host in
14071               osf3*)
14072                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14073                 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'
14074                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14075                 ;;
14076               *)
14077                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14078                 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'
14079                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14080                   echo "-hidden">> $lib.exp~
14081                   $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~
14082                   $RM $lib.exp'
14083                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14084                 ;;
14085             esac
14086
14087             hardcode_libdir_separator_CXX=:
14088
14089             # Commands to make compiler produce verbose output that lists
14090             # what "hidden" libraries, object files and flags are used when
14091             # linking a shared library.
14092             #
14093             # There doesn't appear to be a way to prevent this compiler from
14094             # explicitly linking system object files so we need to strip them
14095             # from the output so that they don't get included in the library
14096             # dependencies.
14097             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"'
14098             ;;
14099           *)
14100             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14101               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14102               case $host in
14103                 osf3*)
14104                   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'
14105                   ;;
14106                 *)
14107                   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'
14108                   ;;
14109               esac
14110
14111               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14112               hardcode_libdir_separator_CXX=:
14113
14114               # Commands to make compiler produce verbose output that lists
14115               # what "hidden" libraries, object files and flags are used when
14116               # linking a shared library.
14117               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14118
14119             else
14120               # FIXME: insert proper C++ library support
14121               ld_shlibs_CXX=no
14122             fi
14123             ;;
14124         esac
14125         ;;
14126
14127       psos*)
14128         # FIXME: insert proper C++ library support
14129         ld_shlibs_CXX=no
14130         ;;
14131
14132       sunos4*)
14133         case $cc_basename in
14134           CC*)
14135             # Sun C++ 4.x
14136             # FIXME: insert proper C++ library support
14137             ld_shlibs_CXX=no
14138             ;;
14139           lcc*)
14140             # Lucid
14141             # FIXME: insert proper C++ library support
14142             ld_shlibs_CXX=no
14143             ;;
14144           *)
14145             # FIXME: insert proper C++ library support
14146             ld_shlibs_CXX=no
14147             ;;
14148         esac
14149         ;;
14150
14151       solaris*)
14152         case $cc_basename in
14153           CC* | sunCC*)
14154             # Sun C++ 4.2, 5.x and Centerline C++
14155             archive_cmds_need_lc_CXX=yes
14156             no_undefined_flag_CXX=' -zdefs'
14157             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14158             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14159               $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'
14160
14161             hardcode_libdir_flag_spec_CXX='-R$libdir'
14162             hardcode_shlibpath_var_CXX=no
14163             case $host_os in
14164               solaris2.[0-5] | solaris2.[0-5].*) ;;
14165               *)
14166                 # The compiler driver will combine and reorder linker options,
14167                 # but understands `-z linker_flag'.
14168                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14169                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14170                 ;;
14171             esac
14172             link_all_deplibs_CXX=yes
14173
14174             output_verbose_link_cmd='func_echo_all'
14175
14176             # Archives containing C++ object files must be created using
14177             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14178             # necessary to make sure instantiated templates are included
14179             # in the archive.
14180             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14181             ;;
14182           gcx*)
14183             # Green Hills C++ Compiler
14184             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14185
14186             # The C++ compiler must be used to create the archive.
14187             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14188             ;;
14189           *)
14190             # GNU C++ compiler with Solaris linker
14191             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14192               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14193               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14194                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14195                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14196                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14197
14198                 # Commands to make compiler produce verbose output that lists
14199                 # what "hidden" libraries, object files and flags are used when
14200                 # linking a shared library.
14201                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14202               else
14203                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14204                 # platform.
14205                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14206                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14207                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14208
14209                 # Commands to make compiler produce verbose output that lists
14210                 # what "hidden" libraries, object files and flags are used when
14211                 # linking a shared library.
14212                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14213               fi
14214
14215               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14216               case $host_os in
14217                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14218                 *)
14219                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14220                   ;;
14221               esac
14222             fi
14223             ;;
14224         esac
14225         ;;
14226
14227     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14228       no_undefined_flag_CXX='${wl}-z,text'
14229       archive_cmds_need_lc_CXX=no
14230       hardcode_shlibpath_var_CXX=no
14231       runpath_var='LD_RUN_PATH'
14232
14233       case $cc_basename in
14234         CC*)
14235           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14236           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14237           ;;
14238         *)
14239           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14240           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14241           ;;
14242       esac
14243       ;;
14244
14245       sysv5* | sco3.2v5* | sco5v6*)
14246         # Note: We can NOT use -z defs as we might desire, because we do not
14247         # link with -lc, and that would cause any symbols used from libc to
14248         # always be unresolved, which means just about no library would
14249         # ever link correctly.  If we're not using GNU ld we use -z text
14250         # though, which does catch some bad symbols but isn't as heavy-handed
14251         # as -z defs.
14252         no_undefined_flag_CXX='${wl}-z,text'
14253         allow_undefined_flag_CXX='${wl}-z,nodefs'
14254         archive_cmds_need_lc_CXX=no
14255         hardcode_shlibpath_var_CXX=no
14256         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14257         hardcode_libdir_separator_CXX=':'
14258         link_all_deplibs_CXX=yes
14259         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14260         runpath_var='LD_RUN_PATH'
14261
14262         case $cc_basename in
14263           CC*)
14264             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14265             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14266             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14267               '"$old_archive_cmds_CXX"
14268             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14269               '"$reload_cmds_CXX"
14270             ;;
14271           *)
14272             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14273             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14274             ;;
14275         esac
14276       ;;
14277
14278       tandem*)
14279         case $cc_basename in
14280           NCC*)
14281             # NonStop-UX NCC 3.20
14282             # FIXME: insert proper C++ library support
14283             ld_shlibs_CXX=no
14284             ;;
14285           *)
14286             # FIXME: insert proper C++ library support
14287             ld_shlibs_CXX=no
14288             ;;
14289         esac
14290         ;;
14291
14292       vxworks*)
14293         # FIXME: insert proper C++ library support
14294         ld_shlibs_CXX=no
14295         ;;
14296
14297       *)
14298         # FIXME: insert proper C++ library support
14299         ld_shlibs_CXX=no
14300         ;;
14301     esac
14302
14303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14304 $as_echo "$ld_shlibs_CXX" >&6; }
14305     test "$ld_shlibs_CXX" = no && can_build_shared=no
14306
14307     GCC_CXX="$GXX"
14308     LD_CXX="$LD"
14309
14310     ## CAVEAT EMPTOR:
14311     ## There is no encapsulation within the following macros, do not change
14312     ## the running order or otherwise move them around unless you know exactly
14313     ## what you are doing...
14314     # Dependencies to place before and after the object being linked:
14315 predep_objects_CXX=
14316 postdep_objects_CXX=
14317 predeps_CXX=
14318 postdeps_CXX=
14319 compiler_lib_search_path_CXX=
14320
14321 cat > conftest.$ac_ext <<_LT_EOF
14322 class Foo
14323 {
14324 public:
14325   Foo (void) { a = 0; }
14326 private:
14327   int a;
14328 };
14329 _LT_EOF
14330
14331
14332 _lt_libdeps_save_CFLAGS=$CFLAGS
14333 case "$CC $CFLAGS " in #(
14334 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14335 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14336 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14337 esac
14338
14339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14340   (eval $ac_compile) 2>&5
14341   ac_status=$?
14342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343   test $ac_status = 0; }; then
14344   # Parse the compiler output and extract the necessary
14345   # objects, libraries and library flags.
14346
14347   # Sentinel used to keep track of whether or not we are before
14348   # the conftest object file.
14349   pre_test_object_deps_done=no
14350
14351   for p in `eval "$output_verbose_link_cmd"`; do
14352     case ${prev}${p} in
14353
14354     -L* | -R* | -l*)
14355        # Some compilers place space between "-{L,R}" and the path.
14356        # Remove the space.
14357        if test $p = "-L" ||
14358           test $p = "-R"; then
14359          prev=$p
14360          continue
14361        fi
14362
14363        # Expand the sysroot to ease extracting the directories later.
14364        if test -z "$prev"; then
14365          case $p in
14366          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14367          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14368          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14369          esac
14370        fi
14371        case $p in
14372        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14373        esac
14374        if test "$pre_test_object_deps_done" = no; then
14375          case ${prev} in
14376          -L | -R)
14377            # Internal compiler library paths should come after those
14378            # provided the user.  The postdeps already come after the
14379            # user supplied libs so there is no need to process them.
14380            if test -z "$compiler_lib_search_path_CXX"; then
14381              compiler_lib_search_path_CXX="${prev}${p}"
14382            else
14383              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14384            fi
14385            ;;
14386          # The "-l" case would never come before the object being
14387          # linked, so don't bother handling this case.
14388          esac
14389        else
14390          if test -z "$postdeps_CXX"; then
14391            postdeps_CXX="${prev}${p}"
14392          else
14393            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14394          fi
14395        fi
14396        prev=
14397        ;;
14398
14399     *.lto.$objext) ;; # Ignore GCC LTO objects
14400     *.$objext)
14401        # This assumes that the test object file only shows up
14402        # once in the compiler output.
14403        if test "$p" = "conftest.$objext"; then
14404          pre_test_object_deps_done=yes
14405          continue
14406        fi
14407
14408        if test "$pre_test_object_deps_done" = no; then
14409          if test -z "$predep_objects_CXX"; then
14410            predep_objects_CXX="$p"
14411          else
14412            predep_objects_CXX="$predep_objects_CXX $p"
14413          fi
14414        else
14415          if test -z "$postdep_objects_CXX"; then
14416            postdep_objects_CXX="$p"
14417          else
14418            postdep_objects_CXX="$postdep_objects_CXX $p"
14419          fi
14420        fi
14421        ;;
14422
14423     *) ;; # Ignore the rest.
14424
14425     esac
14426   done
14427
14428   # Clean up.
14429   rm -f a.out a.exe
14430 else
14431   echo "libtool.m4: error: problem compiling CXX test program"
14432 fi
14433
14434 $RM -f confest.$objext
14435 CFLAGS=$_lt_libdeps_save_CFLAGS
14436
14437 # PORTME: override above test on systems where it is broken
14438 case $host_os in
14439 interix[3-9]*)
14440   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14441   # hack all around it, let's just trust "g++" to DTRT.
14442   predep_objects_CXX=
14443   postdep_objects_CXX=
14444   postdeps_CXX=
14445   ;;
14446
14447 linux*)
14448   case `$CC -V 2>&1 | sed 5q` in
14449   *Sun\ C*)
14450     # Sun C++ 5.9
14451
14452     # The more standards-conforming stlport4 library is
14453     # incompatible with the Cstd library. Avoid specifying
14454     # it if it's in CXXFLAGS. Ignore libCrun as
14455     # -library=stlport4 depends on it.
14456     case " $CXX $CXXFLAGS " in
14457     *" -library=stlport4 "*)
14458       solaris_use_stlport4=yes
14459       ;;
14460     esac
14461
14462     if test "$solaris_use_stlport4" != yes; then
14463       postdeps_CXX='-library=Cstd -library=Crun'
14464     fi
14465     ;;
14466   esac
14467   ;;
14468
14469 solaris*)
14470   case $cc_basename in
14471   CC* | sunCC*)
14472     # The more standards-conforming stlport4 library is
14473     # incompatible with the Cstd library. Avoid specifying
14474     # it if it's in CXXFLAGS. Ignore libCrun as
14475     # -library=stlport4 depends on it.
14476     case " $CXX $CXXFLAGS " in
14477     *" -library=stlport4 "*)
14478       solaris_use_stlport4=yes
14479       ;;
14480     esac
14481
14482     # Adding this requires a known-good setup of shared libraries for
14483     # Sun compiler versions before 5.6, else PIC objects from an old
14484     # archive will be linked into the output, leading to subtle bugs.
14485     if test "$solaris_use_stlport4" != yes; then
14486       postdeps_CXX='-library=Cstd -library=Crun'
14487     fi
14488     ;;
14489   esac
14490   ;;
14491 esac
14492
14493
14494 case " $postdeps_CXX " in
14495 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14496 esac
14497  compiler_lib_search_dirs_CXX=
14498 if test -n "${compiler_lib_search_path_CXX}"; then
14499  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14500 fi
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532     lt_prog_compiler_wl_CXX=
14533 lt_prog_compiler_pic_CXX=
14534 lt_prog_compiler_static_CXX=
14535
14536
14537   # C++ specific cases for pic, static, wl, etc.
14538   if test "$GXX" = yes; then
14539     lt_prog_compiler_wl_CXX='-Wl,'
14540     lt_prog_compiler_static_CXX='-static'
14541
14542     case $host_os in
14543     aix*)
14544       # All AIX code is PIC.
14545       if test "$host_cpu" = ia64; then
14546         # AIX 5 now supports IA64 processor
14547         lt_prog_compiler_static_CXX='-Bstatic'
14548       fi
14549       ;;
14550
14551     amigaos*)
14552       case $host_cpu in
14553       powerpc)
14554             # see comment about AmigaOS4 .so support
14555             lt_prog_compiler_pic_CXX='-fPIC'
14556         ;;
14557       m68k)
14558             # FIXME: we need at least 68020 code to build shared libraries, but
14559             # adding the `-m68020' flag to GCC prevents building anything better,
14560             # like `-m68040'.
14561             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14562         ;;
14563       esac
14564       ;;
14565
14566     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14567       # PIC is the default for these OSes.
14568       ;;
14569     mingw* | cygwin* | os2* | pw32* | cegcc*)
14570       # This hack is so that the source file can tell whether it is being
14571       # built for inclusion in a dll (and should export symbols for example).
14572       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14573       # (--disable-auto-import) libraries
14574       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14575       ;;
14576     darwin* | rhapsody*)
14577       # PIC is the default on this platform
14578       # Common symbols not allowed in MH_DYLIB files
14579       lt_prog_compiler_pic_CXX='-fno-common'
14580       ;;
14581     *djgpp*)
14582       # DJGPP does not support shared libraries at all
14583       lt_prog_compiler_pic_CXX=
14584       ;;
14585     haiku*)
14586       # PIC is the default for Haiku.
14587       # The "-static" flag exists, but is broken.
14588       lt_prog_compiler_static_CXX=
14589       ;;
14590     interix[3-9]*)
14591       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14592       # Instead, we relocate shared libraries at runtime.
14593       ;;
14594     sysv4*MP*)
14595       if test -d /usr/nec; then
14596         lt_prog_compiler_pic_CXX=-Kconform_pic
14597       fi
14598       ;;
14599     hpux*)
14600       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14601       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14602       # sets the default TLS model and affects inlining.
14603       case $host_cpu in
14604       hppa*64*)
14605         ;;
14606       *)
14607         lt_prog_compiler_pic_CXX='-fPIC'
14608         ;;
14609       esac
14610       ;;
14611     *qnx* | *nto*)
14612       # QNX uses GNU C++, but need to define -shared option too, otherwise
14613       # it will coredump.
14614       lt_prog_compiler_pic_CXX='-fPIC -shared'
14615       ;;
14616     *)
14617       lt_prog_compiler_pic_CXX='-fPIC'
14618       ;;
14619     esac
14620   else
14621     case $host_os in
14622       aix[4-9]*)
14623         # All AIX code is PIC.
14624         if test "$host_cpu" = ia64; then
14625           # AIX 5 now supports IA64 processor
14626           lt_prog_compiler_static_CXX='-Bstatic'
14627         else
14628           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14629         fi
14630         ;;
14631       chorus*)
14632         case $cc_basename in
14633         cxch68*)
14634           # Green Hills C++ Compiler
14635           # _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"
14636           ;;
14637         esac
14638         ;;
14639       mingw* | cygwin* | os2* | pw32* | cegcc*)
14640         # This hack is so that the source file can tell whether it is being
14641         # built for inclusion in a dll (and should export symbols for example).
14642         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14643         ;;
14644       dgux*)
14645         case $cc_basename in
14646           ec++*)
14647             lt_prog_compiler_pic_CXX='-KPIC'
14648             ;;
14649           ghcx*)
14650             # Green Hills C++ Compiler
14651             lt_prog_compiler_pic_CXX='-pic'
14652             ;;
14653           *)
14654             ;;
14655         esac
14656         ;;
14657       freebsd* | dragonfly*)
14658         # FreeBSD uses GNU C++
14659         ;;
14660       hpux9* | hpux10* | hpux11*)
14661         case $cc_basename in
14662           CC*)
14663             lt_prog_compiler_wl_CXX='-Wl,'
14664             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14665             if test "$host_cpu" != ia64; then
14666               lt_prog_compiler_pic_CXX='+Z'
14667             fi
14668             ;;
14669           aCC*)
14670             lt_prog_compiler_wl_CXX='-Wl,'
14671             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14672             case $host_cpu in
14673             hppa*64*|ia64*)
14674               # +Z the default
14675               ;;
14676             *)
14677               lt_prog_compiler_pic_CXX='+Z'
14678               ;;
14679             esac
14680             ;;
14681           *)
14682             ;;
14683         esac
14684         ;;
14685       interix*)
14686         # This is c89, which is MS Visual C++ (no shared libs)
14687         # Anyone wants to do a port?
14688         ;;
14689       irix5* | irix6* | nonstopux*)
14690         case $cc_basename in
14691           CC*)
14692             lt_prog_compiler_wl_CXX='-Wl,'
14693             lt_prog_compiler_static_CXX='-non_shared'
14694             # CC pic flag -KPIC is the default.
14695             ;;
14696           *)
14697             ;;
14698         esac
14699         ;;
14700       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14701         case $cc_basename in
14702           KCC*)
14703             # KAI C++ Compiler
14704             lt_prog_compiler_wl_CXX='--backend -Wl,'
14705             lt_prog_compiler_pic_CXX='-fPIC'
14706             ;;
14707           ecpc* )
14708             # old Intel C++ for x86_64 which still supported -KPIC.
14709             lt_prog_compiler_wl_CXX='-Wl,'
14710             lt_prog_compiler_pic_CXX='-KPIC'
14711             lt_prog_compiler_static_CXX='-static'
14712             ;;
14713           icpc* )
14714             # Intel C++, used to be incompatible with GCC.
14715             # ICC 10 doesn't accept -KPIC any more.
14716             lt_prog_compiler_wl_CXX='-Wl,'
14717             lt_prog_compiler_pic_CXX='-fPIC'
14718             lt_prog_compiler_static_CXX='-static'
14719             ;;
14720           pgCC* | pgcpp*)
14721             # Portland Group C++ compiler
14722             lt_prog_compiler_wl_CXX='-Wl,'
14723             lt_prog_compiler_pic_CXX='-fpic'
14724             lt_prog_compiler_static_CXX='-Bstatic'
14725             ;;
14726           cxx*)
14727             # Compaq C++
14728             # Make sure the PIC flag is empty.  It appears that all Alpha
14729             # Linux and Compaq Tru64 Unix objects are PIC.
14730             lt_prog_compiler_pic_CXX=
14731             lt_prog_compiler_static_CXX='-non_shared'
14732             ;;
14733           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14734             # IBM XL 8.0, 9.0 on PPC and BlueGene
14735             lt_prog_compiler_wl_CXX='-Wl,'
14736             lt_prog_compiler_pic_CXX='-qpic'
14737             lt_prog_compiler_static_CXX='-qstaticlink'
14738             ;;
14739           *)
14740             case `$CC -V 2>&1 | sed 5q` in
14741             *Sun\ C*)
14742               # Sun C++ 5.9
14743               lt_prog_compiler_pic_CXX='-KPIC'
14744               lt_prog_compiler_static_CXX='-Bstatic'
14745               lt_prog_compiler_wl_CXX='-Qoption ld '
14746               ;;
14747             esac
14748             ;;
14749         esac
14750         ;;
14751       lynxos*)
14752         ;;
14753       m88k*)
14754         ;;
14755       mvs*)
14756         case $cc_basename in
14757           cxx*)
14758             lt_prog_compiler_pic_CXX='-W c,exportall'
14759             ;;
14760           *)
14761             ;;
14762         esac
14763         ;;
14764       netbsd*)
14765         ;;
14766       *qnx* | *nto*)
14767         # QNX uses GNU C++, but need to define -shared option too, otherwise
14768         # it will coredump.
14769         lt_prog_compiler_pic_CXX='-fPIC -shared'
14770         ;;
14771       osf3* | osf4* | osf5*)
14772         case $cc_basename in
14773           KCC*)
14774             lt_prog_compiler_wl_CXX='--backend -Wl,'
14775             ;;
14776           RCC*)
14777             # Rational C++ 2.4.1
14778             lt_prog_compiler_pic_CXX='-pic'
14779             ;;
14780           cxx*)
14781             # Digital/Compaq C++
14782             lt_prog_compiler_wl_CXX='-Wl,'
14783             # Make sure the PIC flag is empty.  It appears that all Alpha
14784             # Linux and Compaq Tru64 Unix objects are PIC.
14785             lt_prog_compiler_pic_CXX=
14786             lt_prog_compiler_static_CXX='-non_shared'
14787             ;;
14788           *)
14789             ;;
14790         esac
14791         ;;
14792       psos*)
14793         ;;
14794       solaris*)
14795         case $cc_basename in
14796           CC* | sunCC*)
14797             # Sun C++ 4.2, 5.x and Centerline C++
14798             lt_prog_compiler_pic_CXX='-KPIC'
14799             lt_prog_compiler_static_CXX='-Bstatic'
14800             lt_prog_compiler_wl_CXX='-Qoption ld '
14801             ;;
14802           gcx*)
14803             # Green Hills C++ Compiler
14804             lt_prog_compiler_pic_CXX='-PIC'
14805             ;;
14806           *)
14807             ;;
14808         esac
14809         ;;
14810       sunos4*)
14811         case $cc_basename in
14812           CC*)
14813             # Sun C++ 4.x
14814             lt_prog_compiler_pic_CXX='-pic'
14815             lt_prog_compiler_static_CXX='-Bstatic'
14816             ;;
14817           lcc*)
14818             # Lucid
14819             lt_prog_compiler_pic_CXX='-pic'
14820             ;;
14821           *)
14822             ;;
14823         esac
14824         ;;
14825       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14826         case $cc_basename in
14827           CC*)
14828             lt_prog_compiler_wl_CXX='-Wl,'
14829             lt_prog_compiler_pic_CXX='-KPIC'
14830             lt_prog_compiler_static_CXX='-Bstatic'
14831             ;;
14832         esac
14833         ;;
14834       tandem*)
14835         case $cc_basename in
14836           NCC*)
14837             # NonStop-UX NCC 3.20
14838             lt_prog_compiler_pic_CXX='-KPIC'
14839             ;;
14840           *)
14841             ;;
14842         esac
14843         ;;
14844       vxworks*)
14845         ;;
14846       *)
14847         lt_prog_compiler_can_build_shared_CXX=no
14848         ;;
14849     esac
14850   fi
14851
14852 case $host_os in
14853   # For platforms which do not support PIC, -DPIC is meaningless:
14854   *djgpp*)
14855     lt_prog_compiler_pic_CXX=
14856     ;;
14857   *)
14858     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14859     ;;
14860 esac
14861
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14863 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14864 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14865   $as_echo_n "(cached) " >&6
14866 else
14867   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14868 fi
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14870 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14871 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14872
14873 #
14874 # Check to make sure the PIC flag actually works.
14875 #
14876 if test -n "$lt_prog_compiler_pic_CXX"; then
14877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14878 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14879 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14880   $as_echo_n "(cached) " >&6
14881 else
14882   lt_cv_prog_compiler_pic_works_CXX=no
14883    ac_outfile=conftest.$ac_objext
14884    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14885    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14886    # Insert the option either (1) after the last *FLAGS variable, or
14887    # (2) before a word containing "conftest.", or (3) at the end.
14888    # Note that $ac_compile itself does not contain backslashes and begins
14889    # with a dollar sign (not a hyphen), so the echo should work correctly.
14890    # The option is referenced via a variable to avoid confusing sed.
14891    lt_compile=`echo "$ac_compile" | $SED \
14892    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894    -e 's:$: $lt_compiler_flag:'`
14895    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14896    (eval "$lt_compile" 2>conftest.err)
14897    ac_status=$?
14898    cat conftest.err >&5
14899    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900    if (exit $ac_status) && test -s "$ac_outfile"; then
14901      # The compiler can only warn and ignore the option if not recognized
14902      # So say no if there are warnings other than the usual output.
14903      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14904      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14905      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14906        lt_cv_prog_compiler_pic_works_CXX=yes
14907      fi
14908    fi
14909    $RM conftest*
14910
14911 fi
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14913 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14914
14915 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14916     case $lt_prog_compiler_pic_CXX in
14917      "" | " "*) ;;
14918      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14919      esac
14920 else
14921     lt_prog_compiler_pic_CXX=
14922      lt_prog_compiler_can_build_shared_CXX=no
14923 fi
14924
14925 fi
14926
14927
14928
14929
14930
14931 #
14932 # Check to make sure the static flag actually works.
14933 #
14934 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14936 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14937 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14938   $as_echo_n "(cached) " >&6
14939 else
14940   lt_cv_prog_compiler_static_works_CXX=no
14941    save_LDFLAGS="$LDFLAGS"
14942    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14943    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14944    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14945      # The linker can only warn and ignore the option if not recognized
14946      # So say no if there are warnings
14947      if test -s conftest.err; then
14948        # Append any errors to the config.log.
14949        cat conftest.err 1>&5
14950        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14951        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14952        if diff conftest.exp conftest.er2 >/dev/null; then
14953          lt_cv_prog_compiler_static_works_CXX=yes
14954        fi
14955      else
14956        lt_cv_prog_compiler_static_works_CXX=yes
14957      fi
14958    fi
14959    $RM -r conftest*
14960    LDFLAGS="$save_LDFLAGS"
14961
14962 fi
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14964 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14965
14966 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14967     :
14968 else
14969     lt_prog_compiler_static_CXX=
14970 fi
14971
14972
14973
14974
14975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14976 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14977 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14978   $as_echo_n "(cached) " >&6
14979 else
14980   lt_cv_prog_compiler_c_o_CXX=no
14981    $RM -r conftest 2>/dev/null
14982    mkdir conftest
14983    cd conftest
14984    mkdir out
14985    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14986
14987    lt_compiler_flag="-o out/conftest2.$ac_objext"
14988    # Insert the option either (1) after the last *FLAGS variable, or
14989    # (2) before a word containing "conftest.", or (3) at the end.
14990    # Note that $ac_compile itself does not contain backslashes and begins
14991    # with a dollar sign (not a hyphen), so the echo should work correctly.
14992    lt_compile=`echo "$ac_compile" | $SED \
14993    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14994    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14995    -e 's:$: $lt_compiler_flag:'`
14996    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14997    (eval "$lt_compile" 2>out/conftest.err)
14998    ac_status=$?
14999    cat out/conftest.err >&5
15000    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15002    then
15003      # The compiler can only warn and ignore the option if not recognized
15004      # So say no if there are warnings
15005      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15006      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15007      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15008        lt_cv_prog_compiler_c_o_CXX=yes
15009      fi
15010    fi
15011    chmod u+w . 2>&5
15012    $RM conftest*
15013    # SGI C++ compiler will create directory out/ii_files/ for
15014    # template instantiation
15015    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15016    $RM out/* && rmdir out
15017    cd ..
15018    $RM -r conftest
15019    $RM conftest*
15020
15021 fi
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15023 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15024
15025
15026
15027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15028 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15029 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15030   $as_echo_n "(cached) " >&6
15031 else
15032   lt_cv_prog_compiler_c_o_CXX=no
15033    $RM -r conftest 2>/dev/null
15034    mkdir conftest
15035    cd conftest
15036    mkdir out
15037    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15038
15039    lt_compiler_flag="-o out/conftest2.$ac_objext"
15040    # Insert the option either (1) after the last *FLAGS variable, or
15041    # (2) before a word containing "conftest.", or (3) at the end.
15042    # Note that $ac_compile itself does not contain backslashes and begins
15043    # with a dollar sign (not a hyphen), so the echo should work correctly.
15044    lt_compile=`echo "$ac_compile" | $SED \
15045    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15047    -e 's:$: $lt_compiler_flag:'`
15048    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15049    (eval "$lt_compile" 2>out/conftest.err)
15050    ac_status=$?
15051    cat out/conftest.err >&5
15052    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15054    then
15055      # The compiler can only warn and ignore the option if not recognized
15056      # So say no if there are warnings
15057      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15058      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15059      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15060        lt_cv_prog_compiler_c_o_CXX=yes
15061      fi
15062    fi
15063    chmod u+w . 2>&5
15064    $RM conftest*
15065    # SGI C++ compiler will create directory out/ii_files/ for
15066    # template instantiation
15067    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15068    $RM out/* && rmdir out
15069    cd ..
15070    $RM -r conftest
15071    $RM conftest*
15072
15073 fi
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15075 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15076
15077
15078
15079
15080 hard_links="nottested"
15081 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15082   # do not overwrite the value of need_locks provided by the user
15083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15084 $as_echo_n "checking if we can lock with hard links... " >&6; }
15085   hard_links=yes
15086   $RM conftest*
15087   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15088   touch conftest.a
15089   ln conftest.a conftest.b 2>&5 || hard_links=no
15090   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15092 $as_echo "$hard_links" >&6; }
15093   if test "$hard_links" = no; then
15094     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15095 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15096     need_locks=warn
15097   fi
15098 else
15099   need_locks=no
15100 fi
15101
15102
15103
15104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15105 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15106
15107   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15108   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15109   case $host_os in
15110   aix[4-9]*)
15111     # If we're using GNU nm, then we don't want the "-C" option.
15112     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15113     # Also, AIX nm treats weak defined symbols like other global defined
15114     # symbols, whereas GNU nm marks them as "W".
15115     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15116       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15117     else
15118       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15119     fi
15120     ;;
15121   pw32*)
15122     export_symbols_cmds_CXX="$ltdll_cmds"
15123     ;;
15124   cygwin* | mingw* | cegcc*)
15125     case $cc_basename in
15126     cl*)
15127       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15128       ;;
15129     *)
15130       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'
15131       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15132       ;;
15133     esac
15134     ;;
15135   *)
15136     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15137     ;;
15138   esac
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15141 $as_echo "$ld_shlibs_CXX" >&6; }
15142 test "$ld_shlibs_CXX" = no && can_build_shared=no
15143
15144 with_gnu_ld_CXX=$with_gnu_ld
15145
15146
15147
15148
15149
15150
15151 #
15152 # Do we need to explicitly link libc?
15153 #
15154 case "x$archive_cmds_need_lc_CXX" in
15155 x|xyes)
15156   # Assume -lc should be added
15157   archive_cmds_need_lc_CXX=yes
15158
15159   if test "$enable_shared" = yes && test "$GCC" = yes; then
15160     case $archive_cmds_CXX in
15161     *'~'*)
15162       # FIXME: we may have to deal with multi-command sequences.
15163       ;;
15164     '$CC '*)
15165       # Test whether the compiler implicitly links with -lc since on some
15166       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15167       # to ld, don't add -lc before -lgcc.
15168       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15169 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15170 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15171   $as_echo_n "(cached) " >&6
15172 else
15173   $RM conftest*
15174         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15175
15176         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15177   (eval $ac_compile) 2>&5
15178   ac_status=$?
15179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15180   test $ac_status = 0; } 2>conftest.err; then
15181           soname=conftest
15182           lib=conftest
15183           libobjs=conftest.$ac_objext
15184           deplibs=
15185           wl=$lt_prog_compiler_wl_CXX
15186           pic_flag=$lt_prog_compiler_pic_CXX
15187           compiler_flags=-v
15188           linker_flags=-v
15189           verstring=
15190           output_objdir=.
15191           libname=conftest
15192           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15193           allow_undefined_flag_CXX=
15194           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15195   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15196   ac_status=$?
15197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15198   test $ac_status = 0; }
15199           then
15200             lt_cv_archive_cmds_need_lc_CXX=no
15201           else
15202             lt_cv_archive_cmds_need_lc_CXX=yes
15203           fi
15204           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15205         else
15206           cat conftest.err 1>&5
15207         fi
15208         $RM conftest*
15209
15210 fi
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15212 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15213       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15214       ;;
15215     esac
15216   fi
15217   ;;
15218 esac
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15282 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15283
15284 library_names_spec=
15285 libname_spec='lib$name'
15286 soname_spec=
15287 shrext_cmds=".so"
15288 postinstall_cmds=
15289 postuninstall_cmds=
15290 finish_cmds=
15291 finish_eval=
15292 shlibpath_var=
15293 shlibpath_overrides_runpath=unknown
15294 version_type=none
15295 dynamic_linker="$host_os ld.so"
15296 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15297 need_lib_prefix=unknown
15298 hardcode_into_libs=no
15299
15300 # when you set need_version to no, make sure it does not cause -set_version
15301 # flags to be left without arguments
15302 need_version=unknown
15303
15304 case $host_os in
15305 aix3*)
15306   version_type=linux # correct to gnu/linux during the next big refactor
15307   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15308   shlibpath_var=LIBPATH
15309
15310   # AIX 3 has no versioning support, so we append a major version to the name.
15311   soname_spec='${libname}${release}${shared_ext}$major'
15312   ;;
15313
15314 aix[4-9]*)
15315   version_type=linux # correct to gnu/linux during the next big refactor
15316   need_lib_prefix=no
15317   need_version=no
15318   hardcode_into_libs=yes
15319   if test "$host_cpu" = ia64; then
15320     # AIX 5 supports IA64
15321     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15322     shlibpath_var=LD_LIBRARY_PATH
15323   else
15324     # With GCC up to 2.95.x, collect2 would create an import file
15325     # for dependence libraries.  The import file would start with
15326     # the line `#! .'.  This would cause the generated library to
15327     # depend on `.', always an invalid library.  This was fixed in
15328     # development snapshots of GCC prior to 3.0.
15329     case $host_os in
15330       aix4 | aix4.[01] | aix4.[01].*)
15331       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15332            echo ' yes '
15333            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15334         :
15335       else
15336         can_build_shared=no
15337       fi
15338       ;;
15339     esac
15340     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15341     # soname into executable. Probably we can add versioning support to
15342     # collect2, so additional links can be useful in future.
15343     if test "$aix_use_runtimelinking" = yes; then
15344       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15345       # instead of lib<name>.a to let people know that these are not
15346       # typical AIX shared libraries.
15347       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348     else
15349       # We preserve .a as extension for shared libraries through AIX4.2
15350       # and later when we are not doing run time linking.
15351       library_names_spec='${libname}${release}.a $libname.a'
15352       soname_spec='${libname}${release}${shared_ext}$major'
15353     fi
15354     shlibpath_var=LIBPATH
15355   fi
15356   ;;
15357
15358 amigaos*)
15359   case $host_cpu in
15360   powerpc)
15361     # Since July 2007 AmigaOS4 officially supports .so libraries.
15362     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364     ;;
15365   m68k)
15366     library_names_spec='$libname.ixlibrary $libname.a'
15367     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15368     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15369     ;;
15370   esac
15371   ;;
15372
15373 beos*)
15374   library_names_spec='${libname}${shared_ext}'
15375   dynamic_linker="$host_os ld.so"
15376   shlibpath_var=LIBRARY_PATH
15377   ;;
15378
15379 bsdi[45]*)
15380   version_type=linux # correct to gnu/linux during the next big refactor
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15385   shlibpath_var=LD_LIBRARY_PATH
15386   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15387   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15388   # the default ld.so.conf also contains /usr/contrib/lib and
15389   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15390   # libtool to hard-code these into programs
15391   ;;
15392
15393 cygwin* | mingw* | pw32* | cegcc*)
15394   version_type=windows
15395   shrext_cmds=".dll"
15396   need_version=no
15397   need_lib_prefix=no
15398
15399   case $GCC,$cc_basename in
15400   yes,*)
15401     # gcc
15402     library_names_spec='$libname.dll.a'
15403     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15404     postinstall_cmds='base_file=`basename \${file}`~
15405       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15406       dldir=$destdir/`dirname \$dlpath`~
15407       test -d \$dldir || mkdir -p \$dldir~
15408       $install_prog $dir/$dlname \$dldir/$dlname~
15409       chmod a+x \$dldir/$dlname~
15410       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15411         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15412       fi'
15413     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15414       dlpath=$dir/\$dldll~
15415        $RM \$dlpath'
15416     shlibpath_overrides_runpath=yes
15417
15418     case $host_os in
15419     cygwin*)
15420       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15421       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15422
15423       ;;
15424     mingw* | cegcc*)
15425       # MinGW DLLs use traditional 'lib' prefix
15426       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15427       ;;
15428     pw32*)
15429       # pw32 DLLs use 'pw' prefix rather than 'lib'
15430       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15431       ;;
15432     esac
15433     dynamic_linker='Win32 ld.exe'
15434     ;;
15435
15436   *,cl*)
15437     # Native MSVC
15438     libname_spec='$name'
15439     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15440     library_names_spec='${libname}.dll.lib'
15441
15442     case $build_os in
15443     mingw*)
15444       sys_lib_search_path_spec=
15445       lt_save_ifs=$IFS
15446       IFS=';'
15447       for lt_path in $LIB
15448       do
15449         IFS=$lt_save_ifs
15450         # Let DOS variable expansion print the short 8.3 style file name.
15451         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15452         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15453       done
15454       IFS=$lt_save_ifs
15455       # Convert to MSYS style.
15456       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15457       ;;
15458     cygwin*)
15459       # Convert to unix form, then to dos form, then back to unix form
15460       # but this time dos style (no spaces!) so that the unix form looks
15461       # like /cygdrive/c/PROGRA~1:/cygdr...
15462       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15463       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15464       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15465       ;;
15466     *)
15467       sys_lib_search_path_spec="$LIB"
15468       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15469         # It is most probably a Windows format PATH.
15470         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15471       else
15472         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15473       fi
15474       # FIXME: find the short name or the path components, as spaces are
15475       # common. (e.g. "Program Files" -> "PROGRA~1")
15476       ;;
15477     esac
15478
15479     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15480     postinstall_cmds='base_file=`basename \${file}`~
15481       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15482       dldir=$destdir/`dirname \$dlpath`~
15483       test -d \$dldir || mkdir -p \$dldir~
15484       $install_prog $dir/$dlname \$dldir/$dlname'
15485     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15486       dlpath=$dir/\$dldll~
15487        $RM \$dlpath'
15488     shlibpath_overrides_runpath=yes
15489     dynamic_linker='Win32 link.exe'
15490     ;;
15491
15492   *)
15493     # Assume MSVC wrapper
15494     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15495     dynamic_linker='Win32 ld.exe'
15496     ;;
15497   esac
15498   # FIXME: first we should search . and the directory the executable is in
15499   shlibpath_var=PATH
15500   ;;
15501
15502 darwin* | rhapsody*)
15503   dynamic_linker="$host_os dyld"
15504   version_type=darwin
15505   need_lib_prefix=no
15506   need_version=no
15507   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15508   soname_spec='${libname}${release}${major}$shared_ext'
15509   shlibpath_overrides_runpath=yes
15510   shlibpath_var=DYLD_LIBRARY_PATH
15511   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15512
15513   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15514   ;;
15515
15516 dgux*)
15517   version_type=linux # correct to gnu/linux during the next big refactor
15518   need_lib_prefix=no
15519   need_version=no
15520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15521   soname_spec='${libname}${release}${shared_ext}$major'
15522   shlibpath_var=LD_LIBRARY_PATH
15523   ;;
15524
15525 freebsd* | dragonfly*)
15526   # DragonFly does not have aout.  When/if they implement a new
15527   # versioning mechanism, adjust this.
15528   if test -x /usr/bin/objformat; then
15529     objformat=`/usr/bin/objformat`
15530   else
15531     case $host_os in
15532     freebsd[23].*) objformat=aout ;;
15533     *) objformat=elf ;;
15534     esac
15535   fi
15536   version_type=freebsd-$objformat
15537   case $version_type in
15538     freebsd-elf*)
15539       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15540       need_version=no
15541       need_lib_prefix=no
15542       ;;
15543     freebsd-*)
15544       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15545       need_version=yes
15546       ;;
15547   esac
15548   shlibpath_var=LD_LIBRARY_PATH
15549   case $host_os in
15550   freebsd2.*)
15551     shlibpath_overrides_runpath=yes
15552     ;;
15553   freebsd3.[01]* | freebsdelf3.[01]*)
15554     shlibpath_overrides_runpath=yes
15555     hardcode_into_libs=yes
15556     ;;
15557   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15558   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15559     shlibpath_overrides_runpath=no
15560     hardcode_into_libs=yes
15561     ;;
15562   *) # from 4.6 on, and DragonFly
15563     shlibpath_overrides_runpath=yes
15564     hardcode_into_libs=yes
15565     ;;
15566   esac
15567   ;;
15568
15569 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   shlibpath_var=LD_LIBRARY_PATH
15576   shlibpath_overrides_runpath=no
15577   hardcode_into_libs=yes
15578   ;;
15579
15580 haiku*)
15581   version_type=linux # correct to gnu/linux during the next big refactor
15582   need_lib_prefix=no
15583   need_version=no
15584   dynamic_linker="$host_os runtime_loader"
15585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15586   soname_spec='${libname}${release}${shared_ext}$major'
15587   shlibpath_var=LIBRARY_PATH
15588   shlibpath_overrides_runpath=yes
15589   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15590   hardcode_into_libs=yes
15591   ;;
15592
15593 hpux9* | hpux10* | hpux11*)
15594   # Give a soname corresponding to the major version so that dld.sl refuses to
15595   # link against other versions.
15596   version_type=sunos
15597   need_lib_prefix=no
15598   need_version=no
15599   case $host_cpu in
15600   ia64*)
15601     shrext_cmds='.so'
15602     hardcode_into_libs=yes
15603     dynamic_linker="$host_os dld.so"
15604     shlibpath_var=LD_LIBRARY_PATH
15605     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607     soname_spec='${libname}${release}${shared_ext}$major'
15608     if test "X$HPUX_IA64_MODE" = X32; then
15609       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15610     else
15611       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15612     fi
15613     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15614     ;;
15615   hppa*64*)
15616     shrext_cmds='.sl'
15617     hardcode_into_libs=yes
15618     dynamic_linker="$host_os dld.sl"
15619     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15620     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622     soname_spec='${libname}${release}${shared_ext}$major'
15623     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15624     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15625     ;;
15626   *)
15627     shrext_cmds='.sl'
15628     dynamic_linker="$host_os dld.sl"
15629     shlibpath_var=SHLIB_PATH
15630     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632     soname_spec='${libname}${release}${shared_ext}$major'
15633     ;;
15634   esac
15635   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15636   postinstall_cmds='chmod 555 $lib'
15637   # or fails outright, so override atomically:
15638   install_override_mode=555
15639   ;;
15640
15641 interix[3-9]*)
15642   version_type=linux # correct to gnu/linux during the next big refactor
15643   need_lib_prefix=no
15644   need_version=no
15645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15646   soname_spec='${libname}${release}${shared_ext}$major'
15647   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15648   shlibpath_var=LD_LIBRARY_PATH
15649   shlibpath_overrides_runpath=no
15650   hardcode_into_libs=yes
15651   ;;
15652
15653 irix5* | irix6* | nonstopux*)
15654   case $host_os in
15655     nonstopux*) version_type=nonstopux ;;
15656     *)
15657         if test "$lt_cv_prog_gnu_ld" = yes; then
15658                 version_type=linux # correct to gnu/linux during the next big refactor
15659         else
15660                 version_type=irix
15661         fi ;;
15662   esac
15663   need_lib_prefix=no
15664   need_version=no
15665   soname_spec='${libname}${release}${shared_ext}$major'
15666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15667   case $host_os in
15668   irix5* | nonstopux*)
15669     libsuff= shlibsuff=
15670     ;;
15671   *)
15672     case $LD in # libtool.m4 will add one of these switches to LD
15673     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15674       libsuff= shlibsuff= libmagic=32-bit;;
15675     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15676       libsuff=32 shlibsuff=N32 libmagic=N32;;
15677     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15678       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15679     *) libsuff= shlibsuff= libmagic=never-match;;
15680     esac
15681     ;;
15682   esac
15683   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15684   shlibpath_overrides_runpath=no
15685   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15686   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15687   hardcode_into_libs=yes
15688   ;;
15689
15690 # No shared lib support for Linux oldld, aout, or coff.
15691 linux*oldld* | linux*aout* | linux*coff*)
15692   dynamic_linker=no
15693   ;;
15694
15695 # This must be glibc/ELF.
15696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15697   version_type=linux # correct to gnu/linux during the next big refactor
15698   need_lib_prefix=no
15699   need_version=no
15700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701   soname_spec='${libname}${release}${shared_ext}$major'
15702   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15703   shlibpath_var=LD_LIBRARY_PATH
15704   shlibpath_overrides_runpath=no
15705
15706   # Some binutils ld are patched to set DT_RUNPATH
15707   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15708   $as_echo_n "(cached) " >&6
15709 else
15710   lt_cv_shlibpath_overrides_runpath=no
15711     save_LDFLAGS=$LDFLAGS
15712     save_libdir=$libdir
15713     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15714          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h.  */
15717
15718 int
15719 main ()
15720 {
15721
15722   ;
15723   return 0;
15724 }
15725 _ACEOF
15726 if ac_fn_cxx_try_link "$LINENO"; then :
15727   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15728   lt_cv_shlibpath_overrides_runpath=yes
15729 fi
15730 fi
15731 rm -f core conftest.err conftest.$ac_objext \
15732     conftest$ac_exeext conftest.$ac_ext
15733     LDFLAGS=$save_LDFLAGS
15734     libdir=$save_libdir
15735
15736 fi
15737
15738   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15739
15740   # This implies no fast_install, which is unacceptable.
15741   # Some rework will be needed to allow for fast_install
15742   # before this can be enabled.
15743   hardcode_into_libs=yes
15744
15745   # Append ld.so.conf contents to the search path
15746   if test -f /etc/ld.so.conf; then
15747     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' ' '`
15748     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15749   fi
15750
15751   # We used to test for /lib/ld.so.1 and disable shared libraries on
15752   # powerpc, because MkLinux only supported shared libraries with the
15753   # GNU dynamic linker.  Since this was broken with cross compilers,
15754   # most powerpc-linux boxes support dynamic linking these days and
15755   # people can always --disable-shared, the test was removed, and we
15756   # assume the GNU/Linux dynamic linker is in use.
15757   dynamic_linker='GNU/Linux ld.so'
15758   ;;
15759
15760 netbsd*)
15761   version_type=sunos
15762   need_lib_prefix=no
15763   need_version=no
15764   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15766     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15767     dynamic_linker='NetBSD (a.out) ld.so'
15768   else
15769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15770     soname_spec='${libname}${release}${shared_ext}$major'
15771     dynamic_linker='NetBSD ld.elf_so'
15772   fi
15773   shlibpath_var=LD_LIBRARY_PATH
15774   shlibpath_overrides_runpath=yes
15775   hardcode_into_libs=yes
15776   ;;
15777
15778 newsos6)
15779   version_type=linux # correct to gnu/linux during the next big refactor
15780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781   shlibpath_var=LD_LIBRARY_PATH
15782   shlibpath_overrides_runpath=yes
15783   ;;
15784
15785 *nto* | *qnx*)
15786   version_type=qnx
15787   need_lib_prefix=no
15788   need_version=no
15789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790   soname_spec='${libname}${release}${shared_ext}$major'
15791   shlibpath_var=LD_LIBRARY_PATH
15792   shlibpath_overrides_runpath=no
15793   hardcode_into_libs=yes
15794   dynamic_linker='ldqnx.so'
15795   ;;
15796
15797 openbsd*)
15798   version_type=sunos
15799   sys_lib_dlsearch_path_spec="/usr/lib"
15800   need_lib_prefix=no
15801   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15802   case $host_os in
15803     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15804     *)                          need_version=no  ;;
15805   esac
15806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15807   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15808   shlibpath_var=LD_LIBRARY_PATH
15809   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15810     case $host_os in
15811       openbsd2.[89] | openbsd2.[89].*)
15812         shlibpath_overrides_runpath=no
15813         ;;
15814       *)
15815         shlibpath_overrides_runpath=yes
15816         ;;
15817       esac
15818   else
15819     shlibpath_overrides_runpath=yes
15820   fi
15821   ;;
15822
15823 os2*)
15824   libname_spec='$name'
15825   shrext_cmds=".dll"
15826   need_lib_prefix=no
15827   library_names_spec='$libname${shared_ext} $libname.a'
15828   dynamic_linker='OS/2 ld.exe'
15829   shlibpath_var=LIBPATH
15830   ;;
15831
15832 osf3* | osf4* | osf5*)
15833   version_type=osf
15834   need_lib_prefix=no
15835   need_version=no
15836   soname_spec='${libname}${release}${shared_ext}$major'
15837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838   shlibpath_var=LD_LIBRARY_PATH
15839   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15840   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15841   ;;
15842
15843 rdos*)
15844   dynamic_linker=no
15845   ;;
15846
15847 solaris*)
15848   version_type=linux # correct to gnu/linux during the next big refactor
15849   need_lib_prefix=no
15850   need_version=no
15851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852   soname_spec='${libname}${release}${shared_ext}$major'
15853   shlibpath_var=LD_LIBRARY_PATH
15854   shlibpath_overrides_runpath=yes
15855   hardcode_into_libs=yes
15856   # ldd complains unless libraries are executable
15857   postinstall_cmds='chmod +x $lib'
15858   ;;
15859
15860 sunos4*)
15861   version_type=sunos
15862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15863   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15864   shlibpath_var=LD_LIBRARY_PATH
15865   shlibpath_overrides_runpath=yes
15866   if test "$with_gnu_ld" = yes; then
15867     need_lib_prefix=no
15868   fi
15869   need_version=yes
15870   ;;
15871
15872 sysv4 | sysv4.3*)
15873   version_type=linux # correct to gnu/linux during the next big refactor
15874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875   soname_spec='${libname}${release}${shared_ext}$major'
15876   shlibpath_var=LD_LIBRARY_PATH
15877   case $host_vendor in
15878     sni)
15879       shlibpath_overrides_runpath=no
15880       need_lib_prefix=no
15881       runpath_var=LD_RUN_PATH
15882       ;;
15883     siemens)
15884       need_lib_prefix=no
15885       ;;
15886     motorola)
15887       need_lib_prefix=no
15888       need_version=no
15889       shlibpath_overrides_runpath=no
15890       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15891       ;;
15892   esac
15893   ;;
15894
15895 sysv4*MP*)
15896   if test -d /usr/nec ;then
15897     version_type=linux # correct to gnu/linux during the next big refactor
15898     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15899     soname_spec='$libname${shared_ext}.$major'
15900     shlibpath_var=LD_LIBRARY_PATH
15901   fi
15902   ;;
15903
15904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15905   version_type=freebsd-elf
15906   need_lib_prefix=no
15907   need_version=no
15908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15909   soname_spec='${libname}${release}${shared_ext}$major'
15910   shlibpath_var=LD_LIBRARY_PATH
15911   shlibpath_overrides_runpath=yes
15912   hardcode_into_libs=yes
15913   if test "$with_gnu_ld" = yes; then
15914     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15915   else
15916     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15917     case $host_os in
15918       sco3.2v5*)
15919         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15920         ;;
15921     esac
15922   fi
15923   sys_lib_dlsearch_path_spec='/usr/lib'
15924   ;;
15925
15926 tpf*)
15927   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15928   version_type=linux # correct to gnu/linux during the next big refactor
15929   need_lib_prefix=no
15930   need_version=no
15931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15932   shlibpath_var=LD_LIBRARY_PATH
15933   shlibpath_overrides_runpath=no
15934   hardcode_into_libs=yes
15935   ;;
15936
15937 uts4*)
15938   version_type=linux # correct to gnu/linux during the next big refactor
15939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940   soname_spec='${libname}${release}${shared_ext}$major'
15941   shlibpath_var=LD_LIBRARY_PATH
15942   ;;
15943
15944 *)
15945   dynamic_linker=no
15946   ;;
15947 esac
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15949 $as_echo "$dynamic_linker" >&6; }
15950 test "$dynamic_linker" = no && can_build_shared=no
15951
15952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15953 if test "$GCC" = yes; then
15954   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15955 fi
15956
15957 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15958   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15959 fi
15960 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15961   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15962 fi
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16002 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16003 hardcode_action_CXX=
16004 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16005    test -n "$runpath_var_CXX" ||
16006    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16007
16008   # We can hardcode non-existent directories.
16009   if test "$hardcode_direct_CXX" != no &&
16010      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16011      # have to relink, otherwise we might link with an installed library
16012      # when we should be linking with a yet-to-be-installed one
16013      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16014      test "$hardcode_minus_L_CXX" != no; then
16015     # Linking always hardcodes the temporary library directory.
16016     hardcode_action_CXX=relink
16017   else
16018     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16019     hardcode_action_CXX=immediate
16020   fi
16021 else
16022   # We cannot hardcode anything, or else we can only hardcode existing
16023   # directories.
16024   hardcode_action_CXX=unsupported
16025 fi
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16027 $as_echo "$hardcode_action_CXX" >&6; }
16028
16029 if test "$hardcode_action_CXX" = relink ||
16030    test "$inherit_rpath_CXX" = yes; then
16031   # Fast installation is not supported
16032   enable_fast_install=no
16033 elif test "$shlibpath_overrides_runpath" = yes ||
16034      test "$enable_shared" = no; then
16035   # Fast installation is not necessary
16036   enable_fast_install=needless
16037 fi
16038
16039
16040
16041
16042
16043
16044
16045   fi # test -n "$compiler"
16046
16047   CC=$lt_save_CC
16048   CFLAGS=$lt_save_CFLAGS
16049   LDCXX=$LD
16050   LD=$lt_save_LD
16051   GCC=$lt_save_GCC
16052   with_gnu_ld=$lt_save_with_gnu_ld
16053   lt_cv_path_LDCXX=$lt_cv_path_LD
16054   lt_cv_path_LD=$lt_save_path_LD
16055   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16056   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16057 fi # test "$_lt_caught_CXX_error" != yes
16058
16059 ac_ext=c
16060 ac_cpp='$CPP $CPPFLAGS'
16061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16064
16065
16066 enable_win32_dll=yes
16067
16068 case $host in
16069 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
16070   if test -n "$ac_tool_prefix"; then
16071   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
16072 set dummy ${ac_tool_prefix}as; ac_word=$2
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16074 $as_echo_n "checking for $ac_word... " >&6; }
16075 if ${ac_cv_prog_AS+:} false; then :
16076   $as_echo_n "(cached) " >&6
16077 else
16078   if test -n "$AS"; then
16079   ac_cv_prog_AS="$AS" # Let the user override the test.
16080 else
16081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16082 for as_dir in $PATH
16083 do
16084   IFS=$as_save_IFS
16085   test -z "$as_dir" && as_dir=.
16086     for ac_exec_ext in '' $ac_executable_extensions; do
16087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16088     ac_cv_prog_AS="${ac_tool_prefix}as"
16089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16090     break 2
16091   fi
16092 done
16093   done
16094 IFS=$as_save_IFS
16095
16096 fi
16097 fi
16098 AS=$ac_cv_prog_AS
16099 if test -n "$AS"; then
16100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
16101 $as_echo "$AS" >&6; }
16102 else
16103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104 $as_echo "no" >&6; }
16105 fi
16106
16107
16108 fi
16109 if test -z "$ac_cv_prog_AS"; then
16110   ac_ct_AS=$AS
16111   # Extract the first word of "as", so it can be a program name with args.
16112 set dummy as; ac_word=$2
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114 $as_echo_n "checking for $ac_word... " >&6; }
16115 if ${ac_cv_prog_ac_ct_AS+:} false; then :
16116   $as_echo_n "(cached) " >&6
16117 else
16118   if test -n "$ac_ct_AS"; then
16119   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
16120 else
16121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16122 for as_dir in $PATH
16123 do
16124   IFS=$as_save_IFS
16125   test -z "$as_dir" && as_dir=.
16126     for ac_exec_ext in '' $ac_executable_extensions; do
16127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16128     ac_cv_prog_ac_ct_AS="as"
16129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16130     break 2
16131   fi
16132 done
16133   done
16134 IFS=$as_save_IFS
16135
16136 fi
16137 fi
16138 ac_ct_AS=$ac_cv_prog_ac_ct_AS
16139 if test -n "$ac_ct_AS"; then
16140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
16141 $as_echo "$ac_ct_AS" >&6; }
16142 else
16143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16144 $as_echo "no" >&6; }
16145 fi
16146
16147   if test "x$ac_ct_AS" = x; then
16148     AS="false"
16149   else
16150     case $cross_compiling:$ac_tool_warned in
16151 yes:)
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16154 ac_tool_warned=yes ;;
16155 esac
16156     AS=$ac_ct_AS
16157   fi
16158 else
16159   AS="$ac_cv_prog_AS"
16160 fi
16161
16162   if test -n "$ac_tool_prefix"; then
16163   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16164 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16166 $as_echo_n "checking for $ac_word... " >&6; }
16167 if ${ac_cv_prog_DLLTOOL+:} false; then :
16168   $as_echo_n "(cached) " >&6
16169 else
16170   if test -n "$DLLTOOL"; then
16171   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16172 else
16173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16174 for as_dir in $PATH
16175 do
16176   IFS=$as_save_IFS
16177   test -z "$as_dir" && as_dir=.
16178     for ac_exec_ext in '' $ac_executable_extensions; do
16179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16180     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16182     break 2
16183   fi
16184 done
16185   done
16186 IFS=$as_save_IFS
16187
16188 fi
16189 fi
16190 DLLTOOL=$ac_cv_prog_DLLTOOL
16191 if test -n "$DLLTOOL"; then
16192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16193 $as_echo "$DLLTOOL" >&6; }
16194 else
16195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16196 $as_echo "no" >&6; }
16197 fi
16198
16199
16200 fi
16201 if test -z "$ac_cv_prog_DLLTOOL"; then
16202   ac_ct_DLLTOOL=$DLLTOOL
16203   # Extract the first word of "dlltool", so it can be a program name with args.
16204 set dummy dlltool; ac_word=$2
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16206 $as_echo_n "checking for $ac_word... " >&6; }
16207 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16208   $as_echo_n "(cached) " >&6
16209 else
16210   if test -n "$ac_ct_DLLTOOL"; then
16211   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16212 else
16213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16214 for as_dir in $PATH
16215 do
16216   IFS=$as_save_IFS
16217   test -z "$as_dir" && as_dir=.
16218     for ac_exec_ext in '' $ac_executable_extensions; do
16219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16220     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16222     break 2
16223   fi
16224 done
16225   done
16226 IFS=$as_save_IFS
16227
16228 fi
16229 fi
16230 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16231 if test -n "$ac_ct_DLLTOOL"; then
16232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16233 $as_echo "$ac_ct_DLLTOOL" >&6; }
16234 else
16235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16236 $as_echo "no" >&6; }
16237 fi
16238
16239   if test "x$ac_ct_DLLTOOL" = x; then
16240     DLLTOOL="false"
16241   else
16242     case $cross_compiling:$ac_tool_warned in
16243 yes:)
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16246 ac_tool_warned=yes ;;
16247 esac
16248     DLLTOOL=$ac_ct_DLLTOOL
16249   fi
16250 else
16251   DLLTOOL="$ac_cv_prog_DLLTOOL"
16252 fi
16253
16254   if test -n "$ac_tool_prefix"; then
16255   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16256 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16258 $as_echo_n "checking for $ac_word... " >&6; }
16259 if ${ac_cv_prog_OBJDUMP+:} false; then :
16260   $as_echo_n "(cached) " >&6
16261 else
16262   if test -n "$OBJDUMP"; then
16263   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16264 else
16265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16266 for as_dir in $PATH
16267 do
16268   IFS=$as_save_IFS
16269   test -z "$as_dir" && as_dir=.
16270     for ac_exec_ext in '' $ac_executable_extensions; do
16271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16272     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16274     break 2
16275   fi
16276 done
16277   done
16278 IFS=$as_save_IFS
16279
16280 fi
16281 fi
16282 OBJDUMP=$ac_cv_prog_OBJDUMP
16283 if test -n "$OBJDUMP"; then
16284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16285 $as_echo "$OBJDUMP" >&6; }
16286 else
16287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16288 $as_echo "no" >&6; }
16289 fi
16290
16291
16292 fi
16293 if test -z "$ac_cv_prog_OBJDUMP"; then
16294   ac_ct_OBJDUMP=$OBJDUMP
16295   # Extract the first word of "objdump", so it can be a program name with args.
16296 set dummy objdump; ac_word=$2
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16298 $as_echo_n "checking for $ac_word... " >&6; }
16299 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16300   $as_echo_n "(cached) " >&6
16301 else
16302   if test -n "$ac_ct_OBJDUMP"; then
16303   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16304 else
16305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16306 for as_dir in $PATH
16307 do
16308   IFS=$as_save_IFS
16309   test -z "$as_dir" && as_dir=.
16310     for ac_exec_ext in '' $ac_executable_extensions; do
16311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16312     ac_cv_prog_ac_ct_OBJDUMP="objdump"
16313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16314     break 2
16315   fi
16316 done
16317   done
16318 IFS=$as_save_IFS
16319
16320 fi
16321 fi
16322 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16323 if test -n "$ac_ct_OBJDUMP"; then
16324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16325 $as_echo "$ac_ct_OBJDUMP" >&6; }
16326 else
16327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16328 $as_echo "no" >&6; }
16329 fi
16330
16331   if test "x$ac_ct_OBJDUMP" = x; then
16332     OBJDUMP="false"
16333   else
16334     case $cross_compiling:$ac_tool_warned in
16335 yes:)
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16338 ac_tool_warned=yes ;;
16339 esac
16340     OBJDUMP=$ac_ct_OBJDUMP
16341   fi
16342 else
16343   OBJDUMP="$ac_cv_prog_OBJDUMP"
16344 fi
16345
16346   ;;
16347 esac
16348
16349 test -z "$AS" && AS=as
16350
16351
16352
16353
16354
16355 test -z "$DLLTOOL" && DLLTOOL=dlltool
16356
16357
16358 test -z "$OBJDUMP" && OBJDUMP=objdump
16359
16360
16361
16362
16363
16364
16365 for ac_prog in flex lex
16366 do
16367   # Extract the first word of "$ac_prog", so it can be a program name with args.
16368 set dummy $ac_prog; ac_word=$2
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16370 $as_echo_n "checking for $ac_word... " >&6; }
16371 if ${ac_cv_prog_LEX+:} false; then :
16372   $as_echo_n "(cached) " >&6
16373 else
16374   if test -n "$LEX"; then
16375   ac_cv_prog_LEX="$LEX" # Let the user override the test.
16376 else
16377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16378 for as_dir in $PATH
16379 do
16380   IFS=$as_save_IFS
16381   test -z "$as_dir" && as_dir=.
16382     for ac_exec_ext in '' $ac_executable_extensions; do
16383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16384     ac_cv_prog_LEX="$ac_prog"
16385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16386     break 2
16387   fi
16388 done
16389   done
16390 IFS=$as_save_IFS
16391
16392 fi
16393 fi
16394 LEX=$ac_cv_prog_LEX
16395 if test -n "$LEX"; then
16396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16397 $as_echo "$LEX" >&6; }
16398 else
16399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16400 $as_echo "no" >&6; }
16401 fi
16402
16403
16404   test -n "$LEX" && break
16405 done
16406 test -n "$LEX" || LEX=":"
16407
16408 if test "x$LEX" != "x:"; then
16409   cat >conftest.l <<_ACEOF
16410 %%
16411 a { ECHO; }
16412 b { REJECT; }
16413 c { yymore (); }
16414 d { yyless (1); }
16415 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
16416     yyless ((input () != 0)); }
16417 f { unput (yytext[0]); }
16418 . { BEGIN INITIAL; }
16419 %%
16420 #ifdef YYTEXT_POINTER
16421 extern char *yytext;
16422 #endif
16423 int
16424 main (void)
16425 {
16426   return ! yylex () + ! yywrap ();
16427 }
16428 _ACEOF
16429 { { ac_try="$LEX conftest.l"
16430 case "(($ac_try" in
16431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432   *) ac_try_echo=$ac_try;;
16433 esac
16434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16435 $as_echo "$ac_try_echo"; } >&5
16436   (eval "$LEX conftest.l") 2>&5
16437   ac_status=$?
16438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16439   test $ac_status = 0; }
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16441 $as_echo_n "checking lex output file root... " >&6; }
16442 if ${ac_cv_prog_lex_root+:} false; then :
16443   $as_echo_n "(cached) " >&6
16444 else
16445
16446 if test -f lex.yy.c; then
16447   ac_cv_prog_lex_root=lex.yy
16448 elif test -f lexyy.c; then
16449   ac_cv_prog_lex_root=lexyy
16450 else
16451   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
16452 fi
16453 fi
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16455 $as_echo "$ac_cv_prog_lex_root" >&6; }
16456 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16457
16458 if test -z "${LEXLIB+set}"; then
16459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16460 $as_echo_n "checking lex library... " >&6; }
16461 if ${ac_cv_lib_lex+:} false; then :
16462   $as_echo_n "(cached) " >&6
16463 else
16464
16465     ac_save_LIBS=$LIBS
16466     ac_cv_lib_lex='none needed'
16467     for ac_lib in '' -lfl -ll; do
16468       LIBS="$ac_lib $ac_save_LIBS"
16469       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h.  */
16471 `cat $LEX_OUTPUT_ROOT.c`
16472 _ACEOF
16473 if ac_fn_c_try_link "$LINENO"; then :
16474   ac_cv_lib_lex=$ac_lib
16475 fi
16476 rm -f core conftest.err conftest.$ac_objext \
16477     conftest$ac_exeext conftest.$ac_ext
16478       test "$ac_cv_lib_lex" != 'none needed' && break
16479     done
16480     LIBS=$ac_save_LIBS
16481
16482 fi
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16484 $as_echo "$ac_cv_lib_lex" >&6; }
16485   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16486 fi
16487
16488
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16490 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16491 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
16492   $as_echo_n "(cached) " >&6
16493 else
16494   # POSIX says lex can declare yytext either as a pointer or an array; the
16495 # default is implementation-dependent.  Figure out which it is, since
16496 # not all implementations provide the %pointer and %array declarations.
16497 ac_cv_prog_lex_yytext_pointer=no
16498 ac_save_LIBS=$LIBS
16499 LIBS="$LEXLIB $ac_save_LIBS"
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h.  */
16502
16503   #define YYTEXT_POINTER 1
16504 `cat $LEX_OUTPUT_ROOT.c`
16505 _ACEOF
16506 if ac_fn_c_try_link "$LINENO"; then :
16507   ac_cv_prog_lex_yytext_pointer=yes
16508 fi
16509 rm -f core conftest.err conftest.$ac_objext \
16510     conftest$ac_exeext conftest.$ac_ext
16511 LIBS=$ac_save_LIBS
16512
16513 fi
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16515 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16516 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16517
16518 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16519
16520 fi
16521 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16522
16523 fi
16524 if test "$LEX" = :; then
16525   LEX=${am_missing_run}flex
16526 fi
16527 if test Z"$LEX" != Zflex; then
16528 cat <<EOF
16529 *******************************************************************
16530 You do not seem to have flex. While flex is not required to build
16531 libconfig, you may need it to regenerate the lexer if you change
16532 the scanner.l file.
16533 *******************************************************************
16534 EOF
16535 fi
16536
16537 for ac_prog in 'bison -y' byacc
16538 do
16539   # Extract the first word of "$ac_prog", so it can be a program name with args.
16540 set dummy $ac_prog; ac_word=$2
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16542 $as_echo_n "checking for $ac_word... " >&6; }
16543 if ${ac_cv_prog_YACC+:} false; then :
16544   $as_echo_n "(cached) " >&6
16545 else
16546   if test -n "$YACC"; then
16547   ac_cv_prog_YACC="$YACC" # Let the user override the test.
16548 else
16549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550 for as_dir in $PATH
16551 do
16552   IFS=$as_save_IFS
16553   test -z "$as_dir" && as_dir=.
16554     for ac_exec_ext in '' $ac_executable_extensions; do
16555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16556     ac_cv_prog_YACC="$ac_prog"
16557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16558     break 2
16559   fi
16560 done
16561   done
16562 IFS=$as_save_IFS
16563
16564 fi
16565 fi
16566 YACC=$ac_cv_prog_YACC
16567 if test -n "$YACC"; then
16568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16569 $as_echo "$YACC" >&6; }
16570 else
16571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572 $as_echo "no" >&6; }
16573 fi
16574
16575
16576   test -n "$YACC" && break
16577 done
16578 test -n "$YACC" || YACC="yacc"
16579
16580 if test Z"$YACC" != "Zbison -y"; then
16581 cat <<EOF
16582 *******************************************************************
16583 You do not seem to have bison. While bison is not required to build
16584 libconfig, you may need it to regenerate the parser if you change
16585 the grammar.y file.
16586 *******************************************************************
16587 EOF
16588 fi
16589
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler switch to enable full C/C++ warnings" >&5
16591 $as_echo_n "checking for compiler switch to enable full C/C++ warnings... " >&6; };
16592
16593
16594 case "${CC}" in
16595
16596 gcc)
16597         warn_c_sw="-Wall -Wshadow -Wextra -Wdeclaration-after-statement -Wno-unused-parameter"
16598         warn_cxx_sw="-Wall -Wshadow -Wextra -Wno-unused-parameter";;
16599 *)
16600         warn_cxx_sw=""
16601         warn_c_sw="";;
16602 esac
16603
16604 if test -n "${warn_c_sw}";
16605 then
16606         CFLAGS="${CFLAGS} ${warn_c_sw}";
16607         CXXFLAGS="${CXXFLAGS} ${warn_cxx_sw}";
16608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${warn_c_sw}, ${warn_cxx_sw}" >&5
16609 $as_echo "${warn_c_sw}, ${warn_cxx_sw}" >&6; }
16610 else
16611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cannot determine)" >&5
16612 $as_echo "(cannot determine)" >&6; }
16613 fi;
16614
16615
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16617 $as_echo_n "checking for ANSI C header files... " >&6; }
16618 if ${ac_cv_header_stdc+:} false; then :
16619   $as_echo_n "(cached) " >&6
16620 else
16621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h.  */
16623 #include <stdlib.h>
16624 #include <stdarg.h>
16625 #include <string.h>
16626 #include <float.h>
16627
16628 int
16629 main ()
16630 {
16631
16632   ;
16633   return 0;
16634 }
16635 _ACEOF
16636 if ac_fn_c_try_compile "$LINENO"; then :
16637   ac_cv_header_stdc=yes
16638 else
16639   ac_cv_header_stdc=no
16640 fi
16641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16642
16643 if test $ac_cv_header_stdc = yes; then
16644   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h.  */
16647 #include <string.h>
16648
16649 _ACEOF
16650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16651   $EGREP "memchr" >/dev/null 2>&1; then :
16652
16653 else
16654   ac_cv_header_stdc=no
16655 fi
16656 rm -f conftest*
16657
16658 fi
16659
16660 if test $ac_cv_header_stdc = yes; then
16661   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h.  */
16664 #include <stdlib.h>
16665
16666 _ACEOF
16667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16668   $EGREP "free" >/dev/null 2>&1; then :
16669
16670 else
16671   ac_cv_header_stdc=no
16672 fi
16673 rm -f conftest*
16674
16675 fi
16676
16677 if test $ac_cv_header_stdc = yes; then
16678   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16679   if test "$cross_compiling" = yes; then :
16680   :
16681 else
16682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683 /* end confdefs.h.  */
16684 #include <ctype.h>
16685 #include <stdlib.h>
16686 #if ((' ' & 0x0FF) == 0x020)
16687 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16688 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16689 #else
16690 # define ISLOWER(c) \
16691                    (('a' <= (c) && (c) <= 'i') \
16692                      || ('j' <= (c) && (c) <= 'r') \
16693                      || ('s' <= (c) && (c) <= 'z'))
16694 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16695 #endif
16696
16697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16698 int
16699 main ()
16700 {
16701   int i;
16702   for (i = 0; i < 256; i++)
16703     if (XOR (islower (i), ISLOWER (i))
16704         || toupper (i) != TOUPPER (i))
16705       return 2;
16706   return 0;
16707 }
16708 _ACEOF
16709 if ac_fn_c_try_run "$LINENO"; then :
16710
16711 else
16712   ac_cv_header_stdc=no
16713 fi
16714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16715   conftest.$ac_objext conftest.beam conftest.$ac_ext
16716 fi
16717
16718 fi
16719 fi
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16721 $as_echo "$ac_cv_header_stdc" >&6; }
16722 if test $ac_cv_header_stdc = yes; then
16723
16724 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16725
16726 fi
16727
16728 for ac_header in unistd.h stdint.h xlocale.h
16729 do :
16730   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16731 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16732 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16733   cat >>confdefs.h <<_ACEOF
16734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16735 _ACEOF
16736
16737 fi
16738
16739 done
16740
16741
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16743 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16744 if ${ac_cv_c_const+:} false; then :
16745   $as_echo_n "(cached) " >&6
16746 else
16747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h.  */
16749
16750 int
16751 main ()
16752 {
16753
16754 #ifndef __cplusplus
16755   /* Ultrix mips cc rejects this sort of thing.  */
16756   typedef int charset[2];
16757   const charset cs = { 0, 0 };
16758   /* SunOS 4.1.1 cc rejects this.  */
16759   char const *const *pcpcc;
16760   char **ppc;
16761   /* NEC SVR4.0.2 mips cc rejects this.  */
16762   struct point {int x, y;};
16763   static struct point const zero = {0,0};
16764   /* AIX XL C 1.02.0.0 rejects this.
16765      It does not let you subtract one const X* pointer from another in
16766      an arm of an if-expression whose if-part is not a constant
16767      expression */
16768   const char *g = "string";
16769   pcpcc = &g + (g ? g-g : 0);
16770   /* HPUX 7.0 cc rejects these. */
16771   ++pcpcc;
16772   ppc = (char**) pcpcc;
16773   pcpcc = (char const *const *) ppc;
16774   { /* SCO 3.2v4 cc rejects this sort of thing.  */
16775     char tx;
16776     char *t = &tx;
16777     char const *s = 0 ? (char *) 0 : (char const *) 0;
16778
16779     *t++ = 0;
16780     if (s) return 0;
16781   }
16782   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16783     int x[] = {25, 17};
16784     const int *foo = &x[0];
16785     ++foo;
16786   }
16787   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16788     typedef const int *iptr;
16789     iptr p = 0;
16790     ++p;
16791   }
16792   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16793        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16794     struct s { int j; const int *ap[3]; } bx;
16795     struct s *b = &bx; b->j = 5;
16796   }
16797   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16798     const int foo = 10;
16799     if (!foo) return 0;
16800   }
16801   return !cs[0] && !zero.x;
16802 #endif
16803
16804   ;
16805   return 0;
16806 }
16807 _ACEOF
16808 if ac_fn_c_try_compile "$LINENO"; then :
16809   ac_cv_c_const=yes
16810 else
16811   ac_cv_c_const=no
16812 fi
16813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814 fi
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16816 $as_echo "$ac_cv_c_const" >&6; }
16817 if test $ac_cv_c_const = no; then
16818
16819 $as_echo "#define const /**/" >>confdefs.h
16820
16821 fi
16822
16823
16824
16825 for ac_func in newlocale uselocale freelocale
16826 do :
16827   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16830   cat >>confdefs.h <<_ACEOF
16831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16832 _ACEOF
16833
16834 fi
16835 done
16836
16837
16838
16839 docxx=yes
16840
16841 # Check whether --enable-cxx was given.
16842 if test "${enable_cxx+set}" = set; then :
16843   enableval=$enable_cxx; if test "$enableval" = "no"; then docxx="no"; fi
16844 else
16845
16846 docxx=yes
16847
16848
16849 fi
16850
16851
16852  if test x$docxx = xyes; then
16853   BUILDCXX_TRUE=
16854   BUILDCXX_FALSE='#'
16855 else
16856   BUILDCXX_TRUE='#'
16857   BUILDCXX_FALSE=
16858 fi
16859
16860
16861 doexamples=yes
16862
16863 # Check whether --enable-examples was given.
16864 if test "${enable_examples+set}" = set; then :
16865   enableval=$enable_examples; if test "$enableval" = "no"; then doexamples="no"; fi
16866 else
16867
16868 doexamples=yes
16869
16870
16871 fi
16872
16873
16874  if test x$doexamples = xyes; then
16875   BUILDEXAMPLES_TRUE=
16876   BUILDEXAMPLES_FALSE='#'
16877 else
16878   BUILDEXAMPLES_TRUE='#'
16879   BUILDEXAMPLES_FALSE=
16880 fi
16881
16882
16883
16884 case "$target" in
16885         *-*-cygwin* | *-*-mingw*)
16886                 gnuwin=yes;;
16887 esac
16888
16889  if test x$gnuwin = xyes; then
16890   GNU_WIN_TRUE=
16891   GNU_WIN_FALSE='#'
16892 else
16893   GNU_WIN_TRUE='#'
16894   GNU_WIN_FALSE=
16895 fi
16896
16897
16898
16899 ac_config_files="$ac_config_files Makefile lib/Makefile lib/libconfig.pc lib/libconfig++.pc doc/Makefile examples/Makefile examples/c/Makefile examples/c++/Makefile tinytest/Makefile tests/Makefile libconfig.spec"
16900
16901 cat >confcache <<\_ACEOF
16902 # This file is a shell script that caches the results of configure
16903 # tests run on this system so they can be shared between configure
16904 # scripts and configure runs, see configure's option --config-cache.
16905 # It is not useful on other systems.  If it contains results you don't
16906 # want to keep, you may remove or edit it.
16907 #
16908 # config.status only pays attention to the cache file if you give it
16909 # the --recheck option to rerun configure.
16910 #
16911 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16912 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16913 # following values.
16914
16915 _ACEOF
16916
16917 # The following way of writing the cache mishandles newlines in values,
16918 # but we know of no workaround that is simple, portable, and efficient.
16919 # So, we kill variables containing newlines.
16920 # Ultrix sh set writes to stderr and can't be redirected directly,
16921 # and sets the high bit in the cache file unless we assign to the vars.
16922 (
16923   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16924     eval ac_val=\$$ac_var
16925     case $ac_val in #(
16926     *${as_nl}*)
16927       case $ac_var in #(
16928       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16930       esac
16931       case $ac_var in #(
16932       _ | IFS | as_nl) ;; #(
16933       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16934       *) { eval $ac_var=; unset $ac_var;} ;;
16935       esac ;;
16936     esac
16937   done
16938
16939   (set) 2>&1 |
16940     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16941     *${as_nl}ac_space=\ *)
16942       # `set' does not quote correctly, so add quotes: double-quote
16943       # substitution turns \\\\ into \\, and sed turns \\ into \.
16944       sed -n \
16945         "s/'/'\\\\''/g;
16946           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16947       ;; #(
16948     *)
16949       # `set' quotes correctly as required by POSIX, so do not add quotes.
16950       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16951       ;;
16952     esac |
16953     sort
16954 ) |
16955   sed '
16956      /^ac_cv_env_/b end
16957      t clear
16958      :clear
16959      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16960      t end
16961      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16962      :end' >>confcache
16963 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16964   if test -w "$cache_file"; then
16965     if test "x$cache_file" != "x/dev/null"; then
16966       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16967 $as_echo "$as_me: updating cache $cache_file" >&6;}
16968       if test ! -f "$cache_file" || test -h "$cache_file"; then
16969         cat confcache >"$cache_file"
16970       else
16971         case $cache_file in #(
16972         */* | ?:*)
16973           mv -f confcache "$cache_file"$$ &&
16974           mv -f "$cache_file"$$ "$cache_file" ;; #(
16975         *)
16976           mv -f confcache "$cache_file" ;;
16977         esac
16978       fi
16979     fi
16980   else
16981     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16982 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16983   fi
16984 fi
16985 rm -f confcache
16986
16987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16988 # Let make expand exec_prefix.
16989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16990
16991 DEFS=-DHAVE_CONFIG_H
16992
16993 ac_libobjs=
16994 ac_ltlibobjs=
16995 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16996   # 1. Remove the extension, and $U if already installed.
16997   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16998   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16999   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17000   #    will be set to the directory where LIBOBJS objects are built.
17001   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17002   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17003 done
17004 LIBOBJS=$ac_libobjs
17005
17006 LTLIBOBJS=$ac_ltlibobjs
17007
17008
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17010 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17011    if test -n "$am_sleep_pid"; then
17012      # Hide warnings about reused PIDs.
17013      wait $am_sleep_pid 2>/dev/null
17014    fi
17015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17016 $as_echo "done" >&6; }
17017  if test -n "$EXEEXT"; then
17018   am__EXEEXT_TRUE=
17019   am__EXEEXT_FALSE='#'
17020 else
17021   am__EXEEXT_TRUE='#'
17022   am__EXEEXT_FALSE=
17023 fi
17024
17025 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17026   as_fn_error $? "conditional \"AMDEP\" was never defined.
17027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17028 fi
17029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17030   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17032 fi
17033 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17034   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17036 fi
17037 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17038   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17040 fi
17041 if test -z "${BUILDCXX_TRUE}" && test -z "${BUILDCXX_FALSE}"; then
17042   as_fn_error $? "conditional \"BUILDCXX\" was never defined.
17043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17044 fi
17045 if test -z "${BUILDEXAMPLES_TRUE}" && test -z "${BUILDEXAMPLES_FALSE}"; then
17046   as_fn_error $? "conditional \"BUILDEXAMPLES\" was never defined.
17047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17048 fi
17049 if test -z "${GNU_WIN_TRUE}" && test -z "${GNU_WIN_FALSE}"; then
17050   as_fn_error $? "conditional \"GNU_WIN\" was never defined.
17051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17052 fi
17053
17054 : "${CONFIG_STATUS=./config.status}"
17055 ac_write_fail=0
17056 ac_clean_files_save=$ac_clean_files
17057 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17059 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17060 as_write_fail=0
17061 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17062 #! $SHELL
17063 # Generated by $as_me.
17064 # Run this file to recreate the current configuration.
17065 # Compiler output produced by configure, useful for debugging
17066 # configure, is in config.log if it exists.
17067
17068 debug=false
17069 ac_cs_recheck=false
17070 ac_cs_silent=false
17071
17072 SHELL=\${CONFIG_SHELL-$SHELL}
17073 export SHELL
17074 _ASEOF
17075 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17076 ## -------------------- ##
17077 ## M4sh Initialization. ##
17078 ## -------------------- ##
17079
17080 # Be more Bourne compatible
17081 DUALCASE=1; export DUALCASE # for MKS sh
17082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17083   emulate sh
17084   NULLCMD=:
17085   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17086   # is contrary to our usage.  Disable this feature.
17087   alias -g '${1+"$@"}'='"$@"'
17088   setopt NO_GLOB_SUBST
17089 else
17090   case `(set -o) 2>/dev/null` in #(
17091   *posix*) :
17092     set -o posix ;; #(
17093   *) :
17094      ;;
17095 esac
17096 fi
17097
17098
17099 as_nl='
17100 '
17101 export as_nl
17102 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17103 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17106 # Prefer a ksh shell builtin over an external printf program on Solaris,
17107 # but without wasting forks for bash or zsh.
17108 if test -z "$BASH_VERSION$ZSH_VERSION" \
17109     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17110   as_echo='print -r --'
17111   as_echo_n='print -rn --'
17112 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17113   as_echo='printf %s\n'
17114   as_echo_n='printf %s'
17115 else
17116   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17117     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17118     as_echo_n='/usr/ucb/echo -n'
17119   else
17120     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17121     as_echo_n_body='eval
17122       arg=$1;
17123       case $arg in #(
17124       *"$as_nl"*)
17125         expr "X$arg" : "X\\(.*\\)$as_nl";
17126         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17127       esac;
17128       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17129     '
17130     export as_echo_n_body
17131     as_echo_n='sh -c $as_echo_n_body as_echo'
17132   fi
17133   export as_echo_body
17134   as_echo='sh -c $as_echo_body as_echo'
17135 fi
17136
17137 # The user is always right.
17138 if test "${PATH_SEPARATOR+set}" != set; then
17139   PATH_SEPARATOR=:
17140   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17141     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17142       PATH_SEPARATOR=';'
17143   }
17144 fi
17145
17146
17147 # IFS
17148 # We need space, tab and new line, in precisely that order.  Quoting is
17149 # there to prevent editors from complaining about space-tab.
17150 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17151 # splitting by setting IFS to empty value.)
17152 IFS=" ""        $as_nl"
17153
17154 # Find who we are.  Look in the path if we contain no directory separator.
17155 as_myself=
17156 case $0 in #((
17157   *[\\/]* ) as_myself=$0 ;;
17158   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17159 for as_dir in $PATH
17160 do
17161   IFS=$as_save_IFS
17162   test -z "$as_dir" && as_dir=.
17163     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17164   done
17165 IFS=$as_save_IFS
17166
17167      ;;
17168 esac
17169 # We did not find ourselves, most probably we were run as `sh COMMAND'
17170 # in which case we are not to be found in the path.
17171 if test "x$as_myself" = x; then
17172   as_myself=$0
17173 fi
17174 if test ! -f "$as_myself"; then
17175   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17176   exit 1
17177 fi
17178
17179 # Unset variables that we do not need and which cause bugs (e.g. in
17180 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17181 # suppresses any "Segmentation fault" message there.  '((' could
17182 # trigger a bug in pdksh 5.2.14.
17183 for as_var in BASH_ENV ENV MAIL MAILPATH
17184 do eval test x\${$as_var+set} = xset \
17185   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17186 done
17187 PS1='$ '
17188 PS2='> '
17189 PS4='+ '
17190
17191 # NLS nuisances.
17192 LC_ALL=C
17193 export LC_ALL
17194 LANGUAGE=C
17195 export LANGUAGE
17196
17197 # CDPATH.
17198 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17199
17200
17201 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17202 # ----------------------------------------
17203 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17204 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17205 # script with STATUS, using 1 if that was 0.
17206 as_fn_error ()
17207 {
17208   as_status=$1; test $as_status -eq 0 && as_status=1
17209   if test "$4"; then
17210     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17211     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17212   fi
17213   $as_echo "$as_me: error: $2" >&2
17214   as_fn_exit $as_status
17215 } # as_fn_error
17216
17217
17218 # as_fn_set_status STATUS
17219 # -----------------------
17220 # Set $? to STATUS, without forking.
17221 as_fn_set_status ()
17222 {
17223   return $1
17224 } # as_fn_set_status
17225
17226 # as_fn_exit STATUS
17227 # -----------------
17228 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17229 as_fn_exit ()
17230 {
17231   set +e
17232   as_fn_set_status $1
17233   exit $1
17234 } # as_fn_exit
17235
17236 # as_fn_unset VAR
17237 # ---------------
17238 # Portably unset VAR.
17239 as_fn_unset ()
17240 {
17241   { eval $1=; unset $1;}
17242 }
17243 as_unset=as_fn_unset
17244 # as_fn_append VAR VALUE
17245 # ----------------------
17246 # Append the text in VALUE to the end of the definition contained in VAR. Take
17247 # advantage of any shell optimizations that allow amortized linear growth over
17248 # repeated appends, instead of the typical quadratic growth present in naive
17249 # implementations.
17250 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17251   eval 'as_fn_append ()
17252   {
17253     eval $1+=\$2
17254   }'
17255 else
17256   as_fn_append ()
17257   {
17258     eval $1=\$$1\$2
17259   }
17260 fi # as_fn_append
17261
17262 # as_fn_arith ARG...
17263 # ------------------
17264 # Perform arithmetic evaluation on the ARGs, and store the result in the
17265 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17266 # must be portable across $(()) and expr.
17267 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17268   eval 'as_fn_arith ()
17269   {
17270     as_val=$(( $* ))
17271   }'
17272 else
17273   as_fn_arith ()
17274   {
17275     as_val=`expr "$@" || test $? -eq 1`
17276   }
17277 fi # as_fn_arith
17278
17279
17280 if expr a : '\(a\)' >/dev/null 2>&1 &&
17281    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17282   as_expr=expr
17283 else
17284   as_expr=false
17285 fi
17286
17287 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17288   as_basename=basename
17289 else
17290   as_basename=false
17291 fi
17292
17293 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17294   as_dirname=dirname
17295 else
17296   as_dirname=false
17297 fi
17298
17299 as_me=`$as_basename -- "$0" ||
17300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17301          X"$0" : 'X\(//\)$' \| \
17302          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17303 $as_echo X/"$0" |
17304     sed '/^.*\/\([^/][^/]*\)\/*$/{
17305             s//\1/
17306             q
17307           }
17308           /^X\/\(\/\/\)$/{
17309             s//\1/
17310             q
17311           }
17312           /^X\/\(\/\).*/{
17313             s//\1/
17314             q
17315           }
17316           s/.*/./; q'`
17317
17318 # Avoid depending upon Character Ranges.
17319 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17320 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17321 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17322 as_cr_digits='0123456789'
17323 as_cr_alnum=$as_cr_Letters$as_cr_digits
17324
17325 ECHO_C= ECHO_N= ECHO_T=
17326 case `echo -n x` in #(((((
17327 -n*)
17328   case `echo 'xy\c'` in
17329   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17330   xy)  ECHO_C='\c';;
17331   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17332        ECHO_T=' ';;
17333   esac;;
17334 *)
17335   ECHO_N='-n';;
17336 esac
17337
17338 rm -f conf$$ conf$$.exe conf$$.file
17339 if test -d conf$$.dir; then
17340   rm -f conf$$.dir/conf$$.file
17341 else
17342   rm -f conf$$.dir
17343   mkdir conf$$.dir 2>/dev/null
17344 fi
17345 if (echo >conf$$.file) 2>/dev/null; then
17346   if ln -s conf$$.file conf$$ 2>/dev/null; then
17347     as_ln_s='ln -s'
17348     # ... but there are two gotchas:
17349     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17350     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17351     # In both cases, we have to default to `cp -pR'.
17352     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17353       as_ln_s='cp -pR'
17354   elif ln conf$$.file conf$$ 2>/dev/null; then
17355     as_ln_s=ln
17356   else
17357     as_ln_s='cp -pR'
17358   fi
17359 else
17360   as_ln_s='cp -pR'
17361 fi
17362 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17363 rmdir conf$$.dir 2>/dev/null
17364
17365
17366 # as_fn_mkdir_p
17367 # -------------
17368 # Create "$as_dir" as a directory, including parents if necessary.
17369 as_fn_mkdir_p ()
17370 {
17371
17372   case $as_dir in #(
17373   -*) as_dir=./$as_dir;;
17374   esac
17375   test -d "$as_dir" || eval $as_mkdir_p || {
17376     as_dirs=
17377     while :; do
17378       case $as_dir in #(
17379       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17380       *) as_qdir=$as_dir;;
17381       esac
17382       as_dirs="'$as_qdir' $as_dirs"
17383       as_dir=`$as_dirname -- "$as_dir" ||
17384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17385          X"$as_dir" : 'X\(//\)[^/]' \| \
17386          X"$as_dir" : 'X\(//\)$' \| \
17387          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17388 $as_echo X"$as_dir" |
17389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17390             s//\1/
17391             q
17392           }
17393           /^X\(\/\/\)[^/].*/{
17394             s//\1/
17395             q
17396           }
17397           /^X\(\/\/\)$/{
17398             s//\1/
17399             q
17400           }
17401           /^X\(\/\).*/{
17402             s//\1/
17403             q
17404           }
17405           s/.*/./; q'`
17406       test -d "$as_dir" && break
17407     done
17408     test -z "$as_dirs" || eval "mkdir $as_dirs"
17409   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17410
17411
17412 } # as_fn_mkdir_p
17413 if mkdir -p . 2>/dev/null; then
17414   as_mkdir_p='mkdir -p "$as_dir"'
17415 else
17416   test -d ./-p && rmdir ./-p
17417   as_mkdir_p=false
17418 fi
17419
17420
17421 # as_fn_executable_p FILE
17422 # -----------------------
17423 # Test if FILE is an executable regular file.
17424 as_fn_executable_p ()
17425 {
17426   test -f "$1" && test -x "$1"
17427 } # as_fn_executable_p
17428 as_test_x='test -x'
17429 as_executable_p=as_fn_executable_p
17430
17431 # Sed expression to map a string onto a valid CPP name.
17432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17433
17434 # Sed expression to map a string onto a valid variable name.
17435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17436
17437
17438 exec 6>&1
17439 ## ----------------------------------- ##
17440 ## Main body of $CONFIG_STATUS script. ##
17441 ## ----------------------------------- ##
17442 _ASEOF
17443 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17444
17445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17446 # Save the log message, to keep $0 and so on meaningful, and to
17447 # report actual input values of CONFIG_FILES etc. instead of their
17448 # values after options handling.
17449 ac_log="
17450 This file was extended by libconfig $as_me 1.5, which was
17451 generated by GNU Autoconf 2.69.  Invocation command line was
17452
17453   CONFIG_FILES    = $CONFIG_FILES
17454   CONFIG_HEADERS  = $CONFIG_HEADERS
17455   CONFIG_LINKS    = $CONFIG_LINKS
17456   CONFIG_COMMANDS = $CONFIG_COMMANDS
17457   $ $0 $@
17458
17459 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17460 "
17461
17462 _ACEOF
17463
17464 case $ac_config_files in *"
17465 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17466 esac
17467
17468 case $ac_config_headers in *"
17469 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17470 esac
17471
17472
17473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17474 # Files that config.status was made for.
17475 config_files="$ac_config_files"
17476 config_headers="$ac_config_headers"
17477 config_commands="$ac_config_commands"
17478
17479 _ACEOF
17480
17481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17482 ac_cs_usage="\
17483 \`$as_me' instantiates files and other configuration actions
17484 from templates according to the current configuration.  Unless the files
17485 and actions are specified as TAGs, all are instantiated by default.
17486
17487 Usage: $0 [OPTION]... [TAG]...
17488
17489   -h, --help       print this help, then exit
17490   -V, --version    print version number and configuration settings, then exit
17491       --config     print configuration, then exit
17492   -q, --quiet, --silent
17493                    do not print progress messages
17494   -d, --debug      don't remove temporary files
17495       --recheck    update $as_me by reconfiguring in the same conditions
17496       --file=FILE[:TEMPLATE]
17497                    instantiate the configuration file FILE
17498       --header=FILE[:TEMPLATE]
17499                    instantiate the configuration header FILE
17500
17501 Configuration files:
17502 $config_files
17503
17504 Configuration headers:
17505 $config_headers
17506
17507 Configuration commands:
17508 $config_commands
17509
17510 Report bugs to <hyperrealm@gmail.com>.
17511 libconfig home page: <http://www.hyperrealm.com/main.php?s=libconfig>."
17512
17513 _ACEOF
17514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17515 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17516 ac_cs_version="\\
17517 libconfig config.status 1.5
17518 configured by $0, generated by GNU Autoconf 2.69,
17519   with options \\"\$ac_cs_config\\"
17520
17521 Copyright (C) 2012 Free Software Foundation, Inc.
17522 This config.status script is free software; the Free Software Foundation
17523 gives unlimited permission to copy, distribute and modify it."
17524
17525 ac_pwd='$ac_pwd'
17526 srcdir='$srcdir'
17527 INSTALL='$INSTALL'
17528 MKDIR_P='$MKDIR_P'
17529 AWK='$AWK'
17530 test -n "\$AWK" || AWK=awk
17531 _ACEOF
17532
17533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17534 # The default lists apply if the user does not specify any file.
17535 ac_need_defaults=:
17536 while test $# != 0
17537 do
17538   case $1 in
17539   --*=?*)
17540     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17541     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17542     ac_shift=:
17543     ;;
17544   --*=)
17545     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17546     ac_optarg=
17547     ac_shift=:
17548     ;;
17549   *)
17550     ac_option=$1
17551     ac_optarg=$2
17552     ac_shift=shift
17553     ;;
17554   esac
17555
17556   case $ac_option in
17557   # Handling of the options.
17558   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17559     ac_cs_recheck=: ;;
17560   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17561     $as_echo "$ac_cs_version"; exit ;;
17562   --config | --confi | --conf | --con | --co | --c )
17563     $as_echo "$ac_cs_config"; exit ;;
17564   --debug | --debu | --deb | --de | --d | -d )
17565     debug=: ;;
17566   --file | --fil | --fi | --f )
17567     $ac_shift
17568     case $ac_optarg in
17569     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17570     '') as_fn_error $? "missing file argument" ;;
17571     esac
17572     as_fn_append CONFIG_FILES " '$ac_optarg'"
17573     ac_need_defaults=false;;
17574   --header | --heade | --head | --hea )
17575     $ac_shift
17576     case $ac_optarg in
17577     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17578     esac
17579     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17580     ac_need_defaults=false;;
17581   --he | --h)
17582     # Conflict between --help and --header
17583     as_fn_error $? "ambiguous option: \`$1'
17584 Try \`$0 --help' for more information.";;
17585   --help | --hel | -h )
17586     $as_echo "$ac_cs_usage"; exit ;;
17587   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17588   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17589     ac_cs_silent=: ;;
17590
17591   # This is an error.
17592   -*) as_fn_error $? "unrecognized option: \`$1'
17593 Try \`$0 --help' for more information." ;;
17594
17595   *) as_fn_append ac_config_targets " $1"
17596      ac_need_defaults=false ;;
17597
17598   esac
17599   shift
17600 done
17601
17602 ac_configure_extra_args=
17603
17604 if $ac_cs_silent; then
17605   exec 6>/dev/null
17606   ac_configure_extra_args="$ac_configure_extra_args --silent"
17607 fi
17608
17609 _ACEOF
17610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17611 if \$ac_cs_recheck; then
17612   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17613   shift
17614   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17615   CONFIG_SHELL='$SHELL'
17616   export CONFIG_SHELL
17617   exec "\$@"
17618 fi
17619
17620 _ACEOF
17621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17622 exec 5>>config.log
17623 {
17624   echo
17625   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17626 ## Running $as_me. ##
17627 _ASBOX
17628   $as_echo "$ac_log"
17629 } >&5
17630
17631 _ACEOF
17632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17633 #
17634 # INIT-COMMANDS
17635 #
17636 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17637
17638
17639 # The HP-UX ksh and POSIX shell print the target directory to stdout
17640 # if CDPATH is set.
17641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17642
17643 sed_quote_subst='$sed_quote_subst'
17644 double_quote_subst='$double_quote_subst'
17645 delay_variable_subst='$delay_variable_subst'
17646 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17647 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17648 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17649 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17650 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17651 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17652 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17653 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17654 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17655 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17656 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17657 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17658 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17659 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17660 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17661 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17662 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17663 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17664 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17665 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17666 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17667 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17668 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17669 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17670 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17671 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17672 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17673 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17674 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17675 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17676 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17677 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17678 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17679 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17680 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17681 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17682 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17683 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17684 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17685 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17686 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17687 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17688 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17689 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17690 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17691 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17692 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17693 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17694 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17695 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17696 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17697 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17698 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17699 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17700 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17701 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17702 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"`'
17703 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17704 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17705 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17706 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17707 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17708 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17709 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17710 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17711 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17712 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17713 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17714 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17715 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17716 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17717 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17718 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17719 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17720 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17721 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17722 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17723 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17724 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17725 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17726 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17727 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17728 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17729 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17730 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17731 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17732 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17733 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17734 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17735 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17736 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17737 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17738 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17739 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17740 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17741 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17742 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17743 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17744 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17745 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17746 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17747 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17748 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17749 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17750 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17751 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17752 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17753 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17754 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17755 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17756 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17757 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17758 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17759 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17760 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17761 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17762 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17763 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17764 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17765 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17766 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17767 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17768 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17769 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17770 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17771 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17772 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17773 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17774 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17775 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17776 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17777 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17778 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17779 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17780 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17781 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17782 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17783 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17784 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17785 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17786 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17787 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17788 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17789 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17790 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17791 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17792 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17793 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17794 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17795 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17796 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17797 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17798 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17799 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17800 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17801 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17802 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17803 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17804 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17805 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17806 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17807 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17808 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17809 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17810 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17811 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17812 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17813 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17814 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17815 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17816 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17817 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17818 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17819 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17820 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17821 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17822 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17823 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17824 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17825 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17826 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17827 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17828 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17829 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17830 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17831
17832 LTCC='$LTCC'
17833 LTCFLAGS='$LTCFLAGS'
17834 compiler='$compiler_DEFAULT'
17835
17836 # A function that is used when there is no print builtin or printf.
17837 func_fallback_echo ()
17838 {
17839   eval 'cat <<_LTECHO_EOF
17840 \$1
17841 _LTECHO_EOF'
17842 }
17843
17844 # Quote evaled strings.
17845 for var in SHELL \
17846 ECHO \
17847 PATH_SEPARATOR \
17848 SED \
17849 GREP \
17850 EGREP \
17851 FGREP \
17852 LD \
17853 NM \
17854 LN_S \
17855 lt_SP2NL \
17856 lt_NL2SP \
17857 reload_flag \
17858 OBJDUMP \
17859 deplibs_check_method \
17860 file_magic_cmd \
17861 file_magic_glob \
17862 want_nocaseglob \
17863 DLLTOOL \
17864 sharedlib_from_linklib_cmd \
17865 AR \
17866 AR_FLAGS \
17867 archiver_list_spec \
17868 STRIP \
17869 RANLIB \
17870 CC \
17871 CFLAGS \
17872 compiler \
17873 lt_cv_sys_global_symbol_pipe \
17874 lt_cv_sys_global_symbol_to_cdecl \
17875 lt_cv_sys_global_symbol_to_c_name_address \
17876 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17877 nm_file_list_spec \
17878 lt_prog_compiler_no_builtin_flag \
17879 lt_prog_compiler_pic \
17880 lt_prog_compiler_wl \
17881 lt_prog_compiler_static \
17882 lt_cv_prog_compiler_c_o \
17883 need_locks \
17884 MANIFEST_TOOL \
17885 DSYMUTIL \
17886 NMEDIT \
17887 LIPO \
17888 OTOOL \
17889 OTOOL64 \
17890 shrext_cmds \
17891 export_dynamic_flag_spec \
17892 whole_archive_flag_spec \
17893 compiler_needs_object \
17894 with_gnu_ld \
17895 allow_undefined_flag \
17896 no_undefined_flag \
17897 hardcode_libdir_flag_spec \
17898 hardcode_libdir_separator \
17899 exclude_expsyms \
17900 include_expsyms \
17901 file_list_spec \
17902 variables_saved_for_relink \
17903 libname_spec \
17904 library_names_spec \
17905 soname_spec \
17906 install_override_mode \
17907 finish_eval \
17908 old_striplib \
17909 striplib \
17910 compiler_lib_search_dirs \
17911 predep_objects \
17912 postdep_objects \
17913 predeps \
17914 postdeps \
17915 compiler_lib_search_path \
17916 AS \
17917 LD_CXX \
17918 reload_flag_CXX \
17919 compiler_CXX \
17920 lt_prog_compiler_no_builtin_flag_CXX \
17921 lt_prog_compiler_pic_CXX \
17922 lt_prog_compiler_wl_CXX \
17923 lt_prog_compiler_static_CXX \
17924 lt_cv_prog_compiler_c_o_CXX \
17925 export_dynamic_flag_spec_CXX \
17926 whole_archive_flag_spec_CXX \
17927 compiler_needs_object_CXX \
17928 with_gnu_ld_CXX \
17929 allow_undefined_flag_CXX \
17930 no_undefined_flag_CXX \
17931 hardcode_libdir_flag_spec_CXX \
17932 hardcode_libdir_separator_CXX \
17933 exclude_expsyms_CXX \
17934 include_expsyms_CXX \
17935 file_list_spec_CXX \
17936 compiler_lib_search_dirs_CXX \
17937 predep_objects_CXX \
17938 postdep_objects_CXX \
17939 predeps_CXX \
17940 postdeps_CXX \
17941 compiler_lib_search_path_CXX; do
17942     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17943     *[\\\\\\\`\\"\\\$]*)
17944       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17945       ;;
17946     *)
17947       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17948       ;;
17949     esac
17950 done
17951
17952 # Double-quote double-evaled strings.
17953 for var in reload_cmds \
17954 old_postinstall_cmds \
17955 old_postuninstall_cmds \
17956 old_archive_cmds \
17957 extract_expsyms_cmds \
17958 old_archive_from_new_cmds \
17959 old_archive_from_expsyms_cmds \
17960 archive_cmds \
17961 archive_expsym_cmds \
17962 module_cmds \
17963 module_expsym_cmds \
17964 export_symbols_cmds \
17965 prelink_cmds \
17966 postlink_cmds \
17967 postinstall_cmds \
17968 postuninstall_cmds \
17969 finish_cmds \
17970 sys_lib_search_path_spec \
17971 sys_lib_dlsearch_path_spec \
17972 reload_cmds_CXX \
17973 old_archive_cmds_CXX \
17974 old_archive_from_new_cmds_CXX \
17975 old_archive_from_expsyms_cmds_CXX \
17976 archive_cmds_CXX \
17977 archive_expsym_cmds_CXX \
17978 module_cmds_CXX \
17979 module_expsym_cmds_CXX \
17980 export_symbols_cmds_CXX \
17981 prelink_cmds_CXX \
17982 postlink_cmds_CXX; do
17983     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17984     *[\\\\\\\`\\"\\\$]*)
17985       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17986       ;;
17987     *)
17988       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17989       ;;
17990     esac
17991 done
17992
17993 ac_aux_dir='$ac_aux_dir'
17994 xsi_shell='$xsi_shell'
17995 lt_shell_append='$lt_shell_append'
17996
17997 # See if we are running on zsh, and set the options which allow our
17998 # commands through without removal of \ escapes INIT.
17999 if test -n "\${ZSH_VERSION+set}" ; then
18000    setopt NO_GLOB_SUBST
18001 fi
18002
18003
18004     PACKAGE='$PACKAGE'
18005     VERSION='$VERSION'
18006     TIMESTAMP='$TIMESTAMP'
18007     RM='$RM'
18008     ofile='$ofile'
18009
18010
18011
18012
18013
18014
18015 _ACEOF
18016
18017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18018
18019 # Handling of arguments.
18020 for ac_config_target in $ac_config_targets
18021 do
18022   case $ac_config_target in
18023     "ac_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ac_config.h" ;;
18024     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18025     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18026     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18027     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18028     "lib/libconfig.pc") CONFIG_FILES="$CONFIG_FILES lib/libconfig.pc" ;;
18029     "lib/libconfig++.pc") CONFIG_FILES="$CONFIG_FILES lib/libconfig++.pc" ;;
18030     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18031     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18032     "examples/c/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/Makefile" ;;
18033     "examples/c++/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c++/Makefile" ;;
18034     "tinytest/Makefile") CONFIG_FILES="$CONFIG_FILES tinytest/Makefile" ;;
18035     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18036     "libconfig.spec") CONFIG_FILES="$CONFIG_FILES libconfig.spec" ;;
18037
18038   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18039   esac
18040 done
18041
18042
18043 # If the user did not use the arguments to specify the items to instantiate,
18044 # then the envvar interface is used.  Set only those that are not.
18045 # We use the long form for the default assignment because of an extremely
18046 # bizarre bug on SunOS 4.1.3.
18047 if $ac_need_defaults; then
18048   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18049   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18050   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18051 fi
18052
18053 # Have a temporary directory for convenience.  Make it in the build tree
18054 # simply because there is no reason against having it here, and in addition,
18055 # creating and moving files from /tmp can sometimes cause problems.
18056 # Hook for its removal unless debugging.
18057 # Note that there is a small window in which the directory will not be cleaned:
18058 # after its creation but before its name has been assigned to `$tmp'.
18059 $debug ||
18060 {
18061   tmp= ac_tmp=
18062   trap 'exit_status=$?
18063   : "${ac_tmp:=$tmp}"
18064   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18065 ' 0
18066   trap 'as_fn_exit 1' 1 2 13 15
18067 }
18068 # Create a (secure) tmp directory for tmp files.
18069
18070 {
18071   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18072   test -d "$tmp"
18073 }  ||
18074 {
18075   tmp=./conf$$-$RANDOM
18076   (umask 077 && mkdir "$tmp")
18077 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18078 ac_tmp=$tmp
18079
18080 # Set up the scripts for CONFIG_FILES section.
18081 # No need to generate them if there are no CONFIG_FILES.
18082 # This happens for instance with `./config.status config.h'.
18083 if test -n "$CONFIG_FILES"; then
18084
18085
18086 ac_cr=`echo X | tr X '\015'`
18087 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18088 # But we know of no other shell where ac_cr would be empty at this
18089 # point, so we can use a bashism as a fallback.
18090 if test "x$ac_cr" = x; then
18091   eval ac_cr=\$\'\\r\'
18092 fi
18093 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18094 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18095   ac_cs_awk_cr='\\r'
18096 else
18097   ac_cs_awk_cr=$ac_cr
18098 fi
18099
18100 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18101 _ACEOF
18102
18103
18104 {
18105   echo "cat >conf$$subs.awk <<_ACEOF" &&
18106   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18107   echo "_ACEOF"
18108 } >conf$$subs.sh ||
18109   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18110 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18111 ac_delim='%!_!# '
18112 for ac_last_try in false false false false false :; do
18113   . ./conf$$subs.sh ||
18114     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18115
18116   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18117   if test $ac_delim_n = $ac_delim_num; then
18118     break
18119   elif $ac_last_try; then
18120     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18121   else
18122     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18123   fi
18124 done
18125 rm -f conf$$subs.sh
18126
18127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18128 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18129 _ACEOF
18130 sed -n '
18131 h
18132 s/^/S["/; s/!.*/"]=/
18133 p
18134 g
18135 s/^[^!]*!//
18136 :repl
18137 t repl
18138 s/'"$ac_delim"'$//
18139 t delim
18140 :nl
18141 h
18142 s/\(.\{148\}\)..*/\1/
18143 t more1
18144 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18145 p
18146 n
18147 b repl
18148 :more1
18149 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18150 p
18151 g
18152 s/.\{148\}//
18153 t nl
18154 :delim
18155 h
18156 s/\(.\{148\}\)..*/\1/
18157 t more2
18158 s/["\\]/\\&/g; s/^/"/; s/$/"/
18159 p
18160 b
18161 :more2
18162 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18163 p
18164 g
18165 s/.\{148\}//
18166 t delim
18167 ' <conf$$subs.awk | sed '
18168 /^[^""]/{
18169   N
18170   s/\n//
18171 }
18172 ' >>$CONFIG_STATUS || ac_write_fail=1
18173 rm -f conf$$subs.awk
18174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18175 _ACAWK
18176 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18177   for (key in S) S_is_set[key] = 1
18178   FS = "\a"
18179
18180 }
18181 {
18182   line = $ 0
18183   nfields = split(line, field, "@")
18184   substed = 0
18185   len = length(field[1])
18186   for (i = 2; i < nfields; i++) {
18187     key = field[i]
18188     keylen = length(key)
18189     if (S_is_set[key]) {
18190       value = S[key]
18191       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18192       len += length(value) + length(field[++i])
18193       substed = 1
18194     } else
18195       len += 1 + keylen
18196   }
18197
18198   print line
18199 }
18200
18201 _ACAWK
18202 _ACEOF
18203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18204 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18205   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18206 else
18207   cat
18208 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18209   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18210 _ACEOF
18211
18212 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18213 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18214 # trailing colons and then remove the whole line if VPATH becomes empty
18215 # (actually we leave an empty line to preserve line numbers).
18216 if test "x$srcdir" = x.; then
18217   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18218 h
18219 s///
18220 s/^/:/
18221 s/[      ]*$/:/
18222 s/:\$(srcdir):/:/g
18223 s/:\${srcdir}:/:/g
18224 s/:@srcdir@:/:/g
18225 s/^:*//
18226 s/:*$//
18227 x
18228 s/\(=[   ]*\).*/\1/
18229 G
18230 s/\n//
18231 s/^[^=]*=[       ]*$//
18232 }'
18233 fi
18234
18235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18236 fi # test -n "$CONFIG_FILES"
18237
18238 # Set up the scripts for CONFIG_HEADERS section.
18239 # No need to generate them if there are no CONFIG_HEADERS.
18240 # This happens for instance with `./config.status Makefile'.
18241 if test -n "$CONFIG_HEADERS"; then
18242 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18243 BEGIN {
18244 _ACEOF
18245
18246 # Transform confdefs.h into an awk script `defines.awk', embedded as
18247 # here-document in config.status, that substitutes the proper values into
18248 # config.h.in to produce config.h.
18249
18250 # Create a delimiter string that does not exist in confdefs.h, to ease
18251 # handling of long lines.
18252 ac_delim='%!_!# '
18253 for ac_last_try in false false :; do
18254   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18255   if test -z "$ac_tt"; then
18256     break
18257   elif $ac_last_try; then
18258     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18259   else
18260     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18261   fi
18262 done
18263
18264 # For the awk script, D is an array of macro values keyed by name,
18265 # likewise P contains macro parameters if any.  Preserve backslash
18266 # newline sequences.
18267
18268 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18269 sed -n '
18270 s/.\{148\}/&'"$ac_delim"'/g
18271 t rset
18272 :rset
18273 s/^[     ]*#[    ]*define[       ][      ]*/ /
18274 t def
18275 d
18276 :def
18277 s/\\$//
18278 t bsnl
18279 s/["\\]/\\&/g
18280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18281 D["\1"]=" \3"/p
18282 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18283 d
18284 :bsnl
18285 s/["\\]/\\&/g
18286 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18287 D["\1"]=" \3\\\\\\n"\\/p
18288 t cont
18289 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18290 t cont
18291 d
18292 :cont
18293 n
18294 s/.\{148\}/&'"$ac_delim"'/g
18295 t clear
18296 :clear
18297 s/\\$//
18298 t bsnlc
18299 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18300 d
18301 :bsnlc
18302 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18303 b cont
18304 ' <confdefs.h | sed '
18305 s/'"$ac_delim"'/"\\\
18306 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18307
18308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18309   for (key in D) D_is_set[key] = 1
18310   FS = "\a"
18311 }
18312 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18313   line = \$ 0
18314   split(line, arg, " ")
18315   if (arg[1] == "#") {
18316     defundef = arg[2]
18317     mac1 = arg[3]
18318   } else {
18319     defundef = substr(arg[1], 2)
18320     mac1 = arg[2]
18321   }
18322   split(mac1, mac2, "(") #)
18323   macro = mac2[1]
18324   prefix = substr(line, 1, index(line, defundef) - 1)
18325   if (D_is_set[macro]) {
18326     # Preserve the white space surrounding the "#".
18327     print prefix "define", macro P[macro] D[macro]
18328     next
18329   } else {
18330     # Replace #undef with comments.  This is necessary, for example,
18331     # in the case of _POSIX_SOURCE, which is predefined and required
18332     # on some systems where configure will not decide to define it.
18333     if (defundef == "undef") {
18334       print "/*", prefix defundef, macro, "*/"
18335       next
18336     }
18337   }
18338 }
18339 { print }
18340 _ACAWK
18341 _ACEOF
18342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18343   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18344 fi # test -n "$CONFIG_HEADERS"
18345
18346
18347 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18348 shift
18349 for ac_tag
18350 do
18351   case $ac_tag in
18352   :[FHLC]) ac_mode=$ac_tag; continue;;
18353   esac
18354   case $ac_mode$ac_tag in
18355   :[FHL]*:*);;
18356   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18357   :[FH]-) ac_tag=-:-;;
18358   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18359   esac
18360   ac_save_IFS=$IFS
18361   IFS=:
18362   set x $ac_tag
18363   IFS=$ac_save_IFS
18364   shift
18365   ac_file=$1
18366   shift
18367
18368   case $ac_mode in
18369   :L) ac_source=$1;;
18370   :[FH])
18371     ac_file_inputs=
18372     for ac_f
18373     do
18374       case $ac_f in
18375       -) ac_f="$ac_tmp/stdin";;
18376       *) # Look for the file first in the build tree, then in the source tree
18377          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18378          # because $ac_f cannot contain `:'.
18379          test -f "$ac_f" ||
18380            case $ac_f in
18381            [\\/$]*) false;;
18382            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18383            esac ||
18384            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18385       esac
18386       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18387       as_fn_append ac_file_inputs " '$ac_f'"
18388     done
18389
18390     # Let's still pretend it is `configure' which instantiates (i.e., don't
18391     # use $as_me), people would be surprised to read:
18392     #    /* config.h.  Generated by config.status.  */
18393     configure_input='Generated from '`
18394           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18395         `' by configure.'
18396     if test x"$ac_file" != x-; then
18397       configure_input="$ac_file.  $configure_input"
18398       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18399 $as_echo "$as_me: creating $ac_file" >&6;}
18400     fi
18401     # Neutralize special characters interpreted by sed in replacement strings.
18402     case $configure_input in #(
18403     *\&* | *\|* | *\\* )
18404        ac_sed_conf_input=`$as_echo "$configure_input" |
18405        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18406     *) ac_sed_conf_input=$configure_input;;
18407     esac
18408
18409     case $ac_tag in
18410     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18411       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18412     esac
18413     ;;
18414   esac
18415
18416   ac_dir=`$as_dirname -- "$ac_file" ||
18417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18418          X"$ac_file" : 'X\(//\)[^/]' \| \
18419          X"$ac_file" : 'X\(//\)$' \| \
18420          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18421 $as_echo X"$ac_file" |
18422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18423             s//\1/
18424             q
18425           }
18426           /^X\(\/\/\)[^/].*/{
18427             s//\1/
18428             q
18429           }
18430           /^X\(\/\/\)$/{
18431             s//\1/
18432             q
18433           }
18434           /^X\(\/\).*/{
18435             s//\1/
18436             q
18437           }
18438           s/.*/./; q'`
18439   as_dir="$ac_dir"; as_fn_mkdir_p
18440   ac_builddir=.
18441
18442 case "$ac_dir" in
18443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18444 *)
18445   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18446   # A ".." for each directory in $ac_dir_suffix.
18447   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18448   case $ac_top_builddir_sub in
18449   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18450   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18451   esac ;;
18452 esac
18453 ac_abs_top_builddir=$ac_pwd
18454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18455 # for backward compatibility:
18456 ac_top_builddir=$ac_top_build_prefix
18457
18458 case $srcdir in
18459   .)  # We are building in place.
18460     ac_srcdir=.
18461     ac_top_srcdir=$ac_top_builddir_sub
18462     ac_abs_top_srcdir=$ac_pwd ;;
18463   [\\/]* | ?:[\\/]* )  # Absolute name.
18464     ac_srcdir=$srcdir$ac_dir_suffix;
18465     ac_top_srcdir=$srcdir
18466     ac_abs_top_srcdir=$srcdir ;;
18467   *) # Relative name.
18468     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18469     ac_top_srcdir=$ac_top_build_prefix$srcdir
18470     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18471 esac
18472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18473
18474
18475   case $ac_mode in
18476   :F)
18477   #
18478   # CONFIG_FILE
18479   #
18480
18481   case $INSTALL in
18482   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18483   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18484   esac
18485   ac_MKDIR_P=$MKDIR_P
18486   case $MKDIR_P in
18487   [\\/$]* | ?:[\\/]* ) ;;
18488   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18489   esac
18490 _ACEOF
18491
18492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18493 # If the template does not know about datarootdir, expand it.
18494 # FIXME: This hack should be removed a few years after 2.60.
18495 ac_datarootdir_hack=; ac_datarootdir_seen=
18496 ac_sed_dataroot='
18497 /datarootdir/ {
18498   p
18499   q
18500 }
18501 /@datadir@/p
18502 /@docdir@/p
18503 /@infodir@/p
18504 /@localedir@/p
18505 /@mandir@/p'
18506 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18507 *datarootdir*) ac_datarootdir_seen=yes;;
18508 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18509   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18510 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18511 _ACEOF
18512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18513   ac_datarootdir_hack='
18514   s&@datadir@&$datadir&g
18515   s&@docdir@&$docdir&g
18516   s&@infodir@&$infodir&g
18517   s&@localedir@&$localedir&g
18518   s&@mandir@&$mandir&g
18519   s&\\\${datarootdir}&$datarootdir&g' ;;
18520 esac
18521 _ACEOF
18522
18523 # Neutralize VPATH when `$srcdir' = `.'.
18524 # Shell code in configure.ac might set extrasub.
18525 # FIXME: do we really want to maintain this feature?
18526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18527 ac_sed_extra="$ac_vpsub
18528 $extrasub
18529 _ACEOF
18530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18531 :t
18532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18533 s|@configure_input@|$ac_sed_conf_input|;t t
18534 s&@top_builddir@&$ac_top_builddir_sub&;t t
18535 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18536 s&@srcdir@&$ac_srcdir&;t t
18537 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18538 s&@top_srcdir@&$ac_top_srcdir&;t t
18539 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18540 s&@builddir@&$ac_builddir&;t t
18541 s&@abs_builddir@&$ac_abs_builddir&;t t
18542 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18543 s&@INSTALL@&$ac_INSTALL&;t t
18544 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18545 $ac_datarootdir_hack
18546 "
18547 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18548   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18549
18550 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18551   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18552   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18553       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18554   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18555 which seems to be undefined.  Please make sure it is defined" >&5
18556 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18557 which seems to be undefined.  Please make sure it is defined" >&2;}
18558
18559   rm -f "$ac_tmp/stdin"
18560   case $ac_file in
18561   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18562   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18563   esac \
18564   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18565  ;;
18566   :H)
18567   #
18568   # CONFIG_HEADER
18569   #
18570   if test x"$ac_file" != x-; then
18571     {
18572       $as_echo "/* $configure_input  */" \
18573       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18574     } >"$ac_tmp/config.h" \
18575       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18576     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18577       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18578 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18579     else
18580       rm -f "$ac_file"
18581       mv "$ac_tmp/config.h" "$ac_file" \
18582         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18583     fi
18584   else
18585     $as_echo "/* $configure_input  */" \
18586       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18587       || as_fn_error $? "could not create -" "$LINENO" 5
18588   fi
18589 # Compute "$ac_file"'s index in $config_headers.
18590 _am_arg="$ac_file"
18591 _am_stamp_count=1
18592 for _am_header in $config_headers :; do
18593   case $_am_header in
18594     $_am_arg | $_am_arg:* )
18595       break ;;
18596     * )
18597       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18598   esac
18599 done
18600 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18601 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18602          X"$_am_arg" : 'X\(//\)[^/]' \| \
18603          X"$_am_arg" : 'X\(//\)$' \| \
18604          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18605 $as_echo X"$_am_arg" |
18606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18607             s//\1/
18608             q
18609           }
18610           /^X\(\/\/\)[^/].*/{
18611             s//\1/
18612             q
18613           }
18614           /^X\(\/\/\)$/{
18615             s//\1/
18616             q
18617           }
18618           /^X\(\/\).*/{
18619             s//\1/
18620             q
18621           }
18622           s/.*/./; q'`/stamp-h$_am_stamp_count
18623  ;;
18624
18625   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18626 $as_echo "$as_me: executing $ac_file commands" >&6;}
18627  ;;
18628   esac
18629
18630
18631   case $ac_file$ac_mode in
18632     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18633   # Older Autoconf quotes --file arguments for eval, but not when files
18634   # are listed without --file.  Let's play safe and only enable the eval
18635   # if we detect the quoting.
18636   case $CONFIG_FILES in
18637   *\'*) eval set x "$CONFIG_FILES" ;;
18638   *)   set x $CONFIG_FILES ;;
18639   esac
18640   shift
18641   for mf
18642   do
18643     # Strip MF so we end up with the name of the file.
18644     mf=`echo "$mf" | sed -e 's/:.*$//'`
18645     # Check whether this is an Automake generated Makefile or not.
18646     # We used to match only the files named 'Makefile.in', but
18647     # some people rename them; so instead we look at the file content.
18648     # Grep'ing the first line is not enough: some people post-process
18649     # each Makefile.in and add a new line on top of each file to say so.
18650     # Grep'ing the whole file is not good either: AIX grep has a line
18651     # limit of 2048, but all sed's we know have understand at least 4000.
18652     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18653       dirpart=`$as_dirname -- "$mf" ||
18654 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18655          X"$mf" : 'X\(//\)[^/]' \| \
18656          X"$mf" : 'X\(//\)$' \| \
18657          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18658 $as_echo X"$mf" |
18659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18660             s//\1/
18661             q
18662           }
18663           /^X\(\/\/\)[^/].*/{
18664             s//\1/
18665             q
18666           }
18667           /^X\(\/\/\)$/{
18668             s//\1/
18669             q
18670           }
18671           /^X\(\/\).*/{
18672             s//\1/
18673             q
18674           }
18675           s/.*/./; q'`
18676     else
18677       continue
18678     fi
18679     # Extract the definition of DEPDIR, am__include, and am__quote
18680     # from the Makefile without running 'make'.
18681     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18682     test -z "$DEPDIR" && continue
18683     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18684     test -z "$am__include" && continue
18685     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18686     # Find all dependency output files, they are included files with
18687     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18688     # simplest approach to changing $(DEPDIR) to its actual value in the
18689     # expansion.
18690     for file in `sed -n "
18691       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18692          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18693       # Make sure the directory exists.
18694       test -f "$dirpart/$file" && continue
18695       fdir=`$as_dirname -- "$file" ||
18696 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18697          X"$file" : 'X\(//\)[^/]' \| \
18698          X"$file" : 'X\(//\)$' \| \
18699          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18700 $as_echo X"$file" |
18701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18702             s//\1/
18703             q
18704           }
18705           /^X\(\/\/\)[^/].*/{
18706             s//\1/
18707             q
18708           }
18709           /^X\(\/\/\)$/{
18710             s//\1/
18711             q
18712           }
18713           /^X\(\/\).*/{
18714             s//\1/
18715             q
18716           }
18717           s/.*/./; q'`
18718       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18719       # echo "creating $dirpart/$file"
18720       echo '# dummy' > "$dirpart/$file"
18721     done
18722   done
18723 }
18724  ;;
18725     "libtool":C)
18726
18727     # See if we are running on zsh, and set the options which allow our
18728     # commands through without removal of \ escapes.
18729     if test -n "${ZSH_VERSION+set}" ; then
18730       setopt NO_GLOB_SUBST
18731     fi
18732
18733     cfgfile="${ofile}T"
18734     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18735     $RM "$cfgfile"
18736
18737     cat <<_LT_EOF >> "$cfgfile"
18738 #! $SHELL
18739
18740 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18741 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18743 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18744 #
18745 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18746 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18747 #                 Foundation, Inc.
18748 #   Written by Gordon Matzigkeit, 1996
18749 #
18750 #   This file is part of GNU Libtool.
18751 #
18752 # GNU Libtool is free software; you can redistribute it and/or
18753 # modify it under the terms of the GNU General Public License as
18754 # published by the Free Software Foundation; either version 2 of
18755 # the License, or (at your option) any later version.
18756 #
18757 # As a special exception to the GNU General Public License,
18758 # if you distribute this file as part of a program or library that
18759 # is built using GNU Libtool, you may include this file under the
18760 # same distribution terms that you use for the rest of that program.
18761 #
18762 # GNU Libtool is distributed in the hope that it will be useful,
18763 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18764 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18765 # GNU General Public License for more details.
18766 #
18767 # You should have received a copy of the GNU General Public License
18768 # along with GNU Libtool; see the file COPYING.  If not, a copy
18769 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18770 # obtained by writing to the Free Software Foundation, Inc.,
18771 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18772
18773
18774 # The names of the tagged configurations supported by this script.
18775 available_tags="CXX "
18776
18777 # ### BEGIN LIBTOOL CONFIG
18778
18779 # Which release of libtool.m4 was used?
18780 macro_version=$macro_version
18781 macro_revision=$macro_revision
18782
18783 # Whether or not to build shared libraries.
18784 build_libtool_libs=$enable_shared
18785
18786 # Whether or not to build static libraries.
18787 build_old_libs=$enable_static
18788
18789 # What type of objects to build.
18790 pic_mode=$pic_mode
18791
18792 # Whether or not to optimize for fast installation.
18793 fast_install=$enable_fast_install
18794
18795 # Shell to use when invoking shell scripts.
18796 SHELL=$lt_SHELL
18797
18798 # An echo program that protects backslashes.
18799 ECHO=$lt_ECHO
18800
18801 # The PATH separator for the build system.
18802 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18803
18804 # The host system.
18805 host_alias=$host_alias
18806 host=$host
18807 host_os=$host_os
18808
18809 # The build system.
18810 build_alias=$build_alias
18811 build=$build
18812 build_os=$build_os
18813
18814 # A sed program that does not truncate output.
18815 SED=$lt_SED
18816
18817 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18818 Xsed="\$SED -e 1s/^X//"
18819
18820 # A grep program that handles long lines.
18821 GREP=$lt_GREP
18822
18823 # An ERE matcher.
18824 EGREP=$lt_EGREP
18825
18826 # A literal string matcher.
18827 FGREP=$lt_FGREP
18828
18829 # A BSD- or MS-compatible name lister.
18830 NM=$lt_NM
18831
18832 # Whether we need soft or hard links.
18833 LN_S=$lt_LN_S
18834
18835 # What is the maximum length of a command?
18836 max_cmd_len=$max_cmd_len
18837
18838 # Object file suffix (normally "o").
18839 objext=$ac_objext
18840
18841 # Executable file suffix (normally "").
18842 exeext=$exeext
18843
18844 # whether the shell understands "unset".
18845 lt_unset=$lt_unset
18846
18847 # turn spaces into newlines.
18848 SP2NL=$lt_lt_SP2NL
18849
18850 # turn newlines into spaces.
18851 NL2SP=$lt_lt_NL2SP
18852
18853 # convert \$build file names to \$host format.
18854 to_host_file_cmd=$lt_cv_to_host_file_cmd
18855
18856 # convert \$build files to toolchain format.
18857 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18858
18859 # An object symbol dumper.
18860 OBJDUMP=$lt_OBJDUMP
18861
18862 # Method to check whether dependent libraries are shared objects.
18863 deplibs_check_method=$lt_deplibs_check_method
18864
18865 # Command to use when deplibs_check_method = "file_magic".
18866 file_magic_cmd=$lt_file_magic_cmd
18867
18868 # How to find potential files when deplibs_check_method = "file_magic".
18869 file_magic_glob=$lt_file_magic_glob
18870
18871 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18872 want_nocaseglob=$lt_want_nocaseglob
18873
18874 # DLL creation program.
18875 DLLTOOL=$lt_DLLTOOL
18876
18877 # Command to associate shared and link libraries.
18878 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18879
18880 # The archiver.
18881 AR=$lt_AR
18882
18883 # Flags to create an archive.
18884 AR_FLAGS=$lt_AR_FLAGS
18885
18886 # How to feed a file listing to the archiver.
18887 archiver_list_spec=$lt_archiver_list_spec
18888
18889 # A symbol stripping program.
18890 STRIP=$lt_STRIP
18891
18892 # Commands used to install an old-style archive.
18893 RANLIB=$lt_RANLIB
18894 old_postinstall_cmds=$lt_old_postinstall_cmds
18895 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18896
18897 # Whether to use a lock for old archive extraction.
18898 lock_old_archive_extraction=$lock_old_archive_extraction
18899
18900 # A C compiler.
18901 LTCC=$lt_CC
18902
18903 # LTCC compiler flags.
18904 LTCFLAGS=$lt_CFLAGS
18905
18906 # Take the output of nm and produce a listing of raw symbols and C names.
18907 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18908
18909 # Transform the output of nm in a proper C declaration.
18910 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18911
18912 # Transform the output of nm in a C name address pair.
18913 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18914
18915 # Transform the output of nm in a C name address pair when lib prefix is needed.
18916 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18917
18918 # Specify filename containing input files for \$NM.
18919 nm_file_list_spec=$lt_nm_file_list_spec
18920
18921 # The root where to search for dependent libraries,and in which our libraries should be installed.
18922 lt_sysroot=$lt_sysroot
18923
18924 # The name of the directory that contains temporary libtool files.
18925 objdir=$objdir
18926
18927 # Used to examine libraries when file_magic_cmd begins with "file".
18928 MAGIC_CMD=$MAGIC_CMD
18929
18930 # Must we lock files when doing compilation?
18931 need_locks=$lt_need_locks
18932
18933 # Manifest tool.
18934 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18935
18936 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18937 DSYMUTIL=$lt_DSYMUTIL
18938
18939 # Tool to change global to local symbols on Mac OS X.
18940 NMEDIT=$lt_NMEDIT
18941
18942 # Tool to manipulate fat objects and archives on Mac OS X.
18943 LIPO=$lt_LIPO
18944
18945 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18946 OTOOL=$lt_OTOOL
18947
18948 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18949 OTOOL64=$lt_OTOOL64
18950
18951 # Old archive suffix (normally "a").
18952 libext=$libext
18953
18954 # Shared library suffix (normally ".so").
18955 shrext_cmds=$lt_shrext_cmds
18956
18957 # The commands to extract the exported symbol list from a shared archive.
18958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18959
18960 # Variables whose values should be saved in libtool wrapper scripts and
18961 # restored at link time.
18962 variables_saved_for_relink=$lt_variables_saved_for_relink
18963
18964 # Do we need the "lib" prefix for modules?
18965 need_lib_prefix=$need_lib_prefix
18966
18967 # Do we need a version for libraries?
18968 need_version=$need_version
18969
18970 # Library versioning type.
18971 version_type=$version_type
18972
18973 # Shared library runtime path variable.
18974 runpath_var=$runpath_var
18975
18976 # Shared library path variable.
18977 shlibpath_var=$shlibpath_var
18978
18979 # Is shlibpath searched before the hard-coded library search path?
18980 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18981
18982 # Format of library name prefix.
18983 libname_spec=$lt_libname_spec
18984
18985 # List of archive names.  First name is the real one, the rest are links.
18986 # The last name is the one that the linker finds with -lNAME
18987 library_names_spec=$lt_library_names_spec
18988
18989 # The coded name of the library, if different from the real name.
18990 soname_spec=$lt_soname_spec
18991
18992 # Permission mode override for installation of shared libraries.
18993 install_override_mode=$lt_install_override_mode
18994
18995 # Command to use after installation of a shared archive.
18996 postinstall_cmds=$lt_postinstall_cmds
18997
18998 # Command to use after uninstallation of a shared archive.
18999 postuninstall_cmds=$lt_postuninstall_cmds
19000
19001 # Commands used to finish a libtool library installation in a directory.
19002 finish_cmds=$lt_finish_cmds
19003
19004 # As "finish_cmds", except a single script fragment to be evaled but
19005 # not shown.
19006 finish_eval=$lt_finish_eval
19007
19008 # Whether we should hardcode library paths into libraries.
19009 hardcode_into_libs=$hardcode_into_libs
19010
19011 # Compile-time system search path for libraries.
19012 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19013
19014 # Run-time system search path for libraries.
19015 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19016
19017 # Whether dlopen is supported.
19018 dlopen_support=$enable_dlopen
19019
19020 # Whether dlopen of programs is supported.
19021 dlopen_self=$enable_dlopen_self
19022
19023 # Whether dlopen of statically linked programs is supported.
19024 dlopen_self_static=$enable_dlopen_self_static
19025
19026 # Commands to strip libraries.
19027 old_striplib=$lt_old_striplib
19028 striplib=$lt_striplib
19029
19030 # Assembler program.
19031 AS=$lt_AS
19032
19033
19034 # The linker used to build libraries.
19035 LD=$lt_LD
19036
19037 # How to create reloadable object files.
19038 reload_flag=$lt_reload_flag
19039 reload_cmds=$lt_reload_cmds
19040
19041 # Commands used to build an old-style archive.
19042 old_archive_cmds=$lt_old_archive_cmds
19043
19044 # A language specific compiler.
19045 CC=$lt_compiler
19046
19047 # Is the compiler the GNU compiler?
19048 with_gcc=$GCC
19049
19050 # Compiler flag to turn off builtin functions.
19051 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19052
19053 # Additional compiler flags for building library objects.
19054 pic_flag=$lt_lt_prog_compiler_pic
19055
19056 # How to pass a linker flag through the compiler.
19057 wl=$lt_lt_prog_compiler_wl
19058
19059 # Compiler flag to prevent dynamic linking.
19060 link_static_flag=$lt_lt_prog_compiler_static
19061
19062 # Does compiler simultaneously support -c and -o options?
19063 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19064
19065 # Whether or not to add -lc for building shared libraries.
19066 build_libtool_need_lc=$archive_cmds_need_lc
19067
19068 # Whether or not to disallow shared libs when runtime libs are static.
19069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19070
19071 # Compiler flag to allow reflexive dlopens.
19072 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19073
19074 # Compiler flag to generate shared objects directly from archives.
19075 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19076
19077 # Whether the compiler copes with passing no objects directly.
19078 compiler_needs_object=$lt_compiler_needs_object
19079
19080 # Create an old-style archive from a shared archive.
19081 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19082
19083 # Create a temporary old-style archive to link instead of a shared archive.
19084 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19085
19086 # Commands used to build a shared archive.
19087 archive_cmds=$lt_archive_cmds
19088 archive_expsym_cmds=$lt_archive_expsym_cmds
19089
19090 # Commands used to build a loadable module if different from building
19091 # a shared archive.
19092 module_cmds=$lt_module_cmds
19093 module_expsym_cmds=$lt_module_expsym_cmds
19094
19095 # Whether we are building with GNU ld or not.
19096 with_gnu_ld=$lt_with_gnu_ld
19097
19098 # Flag that allows shared libraries with undefined symbols to be built.
19099 allow_undefined_flag=$lt_allow_undefined_flag
19100
19101 # Flag that enforces no undefined symbols.
19102 no_undefined_flag=$lt_no_undefined_flag
19103
19104 # Flag to hardcode \$libdir into a binary during linking.
19105 # This must work even if \$libdir does not exist
19106 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19107
19108 # Whether we need a single "-rpath" flag with a separated argument.
19109 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19110
19111 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19112 # DIR into the resulting binary.
19113 hardcode_direct=$hardcode_direct
19114
19115 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19116 # DIR into the resulting binary and the resulting library dependency is
19117 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19118 # library is relocated.
19119 hardcode_direct_absolute=$hardcode_direct_absolute
19120
19121 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19122 # into the resulting binary.
19123 hardcode_minus_L=$hardcode_minus_L
19124
19125 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19126 # into the resulting binary.
19127 hardcode_shlibpath_var=$hardcode_shlibpath_var
19128
19129 # Set to "yes" if building a shared library automatically hardcodes DIR
19130 # into the library and all subsequent libraries and executables linked
19131 # against it.
19132 hardcode_automatic=$hardcode_automatic
19133
19134 # Set to yes if linker adds runtime paths of dependent libraries
19135 # to runtime path list.
19136 inherit_rpath=$inherit_rpath
19137
19138 # Whether libtool must link a program against all its dependency libraries.
19139 link_all_deplibs=$link_all_deplibs
19140
19141 # Set to "yes" if exported symbols are required.
19142 always_export_symbols=$always_export_symbols
19143
19144 # The commands to list exported symbols.
19145 export_symbols_cmds=$lt_export_symbols_cmds
19146
19147 # Symbols that should not be listed in the preloaded symbols.
19148 exclude_expsyms=$lt_exclude_expsyms
19149
19150 # Symbols that must always be exported.
19151 include_expsyms=$lt_include_expsyms
19152
19153 # Commands necessary for linking programs (against libraries) with templates.
19154 prelink_cmds=$lt_prelink_cmds
19155
19156 # Commands necessary for finishing linking programs.
19157 postlink_cmds=$lt_postlink_cmds
19158
19159 # Specify filename containing input files.
19160 file_list_spec=$lt_file_list_spec
19161
19162 # How to hardcode a shared library path into an executable.
19163 hardcode_action=$hardcode_action
19164
19165 # The directories searched by this compiler when creating a shared library.
19166 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19167
19168 # Dependencies to place before and after the objects being linked to
19169 # create a shared library.
19170 predep_objects=$lt_predep_objects
19171 postdep_objects=$lt_postdep_objects
19172 predeps=$lt_predeps
19173 postdeps=$lt_postdeps
19174
19175 # The library search path used internally by the compiler when linking
19176 # a shared library.
19177 compiler_lib_search_path=$lt_compiler_lib_search_path
19178
19179 # ### END LIBTOOL CONFIG
19180
19181 _LT_EOF
19182
19183   case $host_os in
19184   aix3*)
19185     cat <<\_LT_EOF >> "$cfgfile"
19186 # AIX sometimes has problems with the GCC collect2 program.  For some
19187 # reason, if we set the COLLECT_NAMES environment variable, the problems
19188 # vanish in a puff of smoke.
19189 if test "X${COLLECT_NAMES+set}" != Xset; then
19190   COLLECT_NAMES=
19191   export COLLECT_NAMES
19192 fi
19193 _LT_EOF
19194     ;;
19195   esac
19196
19197
19198 ltmain="$ac_aux_dir/ltmain.sh"
19199
19200
19201   # We use sed instead of cat because bash on DJGPP gets confused if
19202   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19203   # text mode, it properly converts lines to CR/LF.  This bash problem
19204   # is reportedly fixed, but why not run on old versions too?
19205   sed '$q' "$ltmain" >> "$cfgfile" \
19206      || (rm -f "$cfgfile"; exit 1)
19207
19208   if test x"$xsi_shell" = xyes; then
19209   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19210 func_dirname ()\
19211 {\
19212 \    case ${1} in\
19213 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19214 \      *  ) func_dirname_result="${3}" ;;\
19215 \    esac\
19216 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19217   && mv -f "$cfgfile.tmp" "$cfgfile" \
19218     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19219 test 0 -eq $? || _lt_function_replace_fail=:
19220
19221
19222   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19223 func_basename ()\
19224 {\
19225 \    func_basename_result="${1##*/}"\
19226 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19227   && mv -f "$cfgfile.tmp" "$cfgfile" \
19228     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19229 test 0 -eq $? || _lt_function_replace_fail=:
19230
19231
19232   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19233 func_dirname_and_basename ()\
19234 {\
19235 \    case ${1} in\
19236 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19237 \      *  ) func_dirname_result="${3}" ;;\
19238 \    esac\
19239 \    func_basename_result="${1##*/}"\
19240 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19241   && mv -f "$cfgfile.tmp" "$cfgfile" \
19242     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19243 test 0 -eq $? || _lt_function_replace_fail=:
19244
19245
19246   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19247 func_stripname ()\
19248 {\
19249 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19250 \    # positional parameters, so assign one to ordinary parameter first.\
19251 \    func_stripname_result=${3}\
19252 \    func_stripname_result=${func_stripname_result#"${1}"}\
19253 \    func_stripname_result=${func_stripname_result%"${2}"}\
19254 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19255   && mv -f "$cfgfile.tmp" "$cfgfile" \
19256     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19257 test 0 -eq $? || _lt_function_replace_fail=:
19258
19259
19260   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19261 func_split_long_opt ()\
19262 {\
19263 \    func_split_long_opt_name=${1%%=*}\
19264 \    func_split_long_opt_arg=${1#*=}\
19265 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19266   && mv -f "$cfgfile.tmp" "$cfgfile" \
19267     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19268 test 0 -eq $? || _lt_function_replace_fail=:
19269
19270
19271   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19272 func_split_short_opt ()\
19273 {\
19274 \    func_split_short_opt_arg=${1#??}\
19275 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19276 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19277   && mv -f "$cfgfile.tmp" "$cfgfile" \
19278     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19279 test 0 -eq $? || _lt_function_replace_fail=:
19280
19281
19282   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19283 func_lo2o ()\
19284 {\
19285 \    case ${1} in\
19286 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19287 \      *)    func_lo2o_result=${1} ;;\
19288 \    esac\
19289 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19290   && mv -f "$cfgfile.tmp" "$cfgfile" \
19291     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19292 test 0 -eq $? || _lt_function_replace_fail=:
19293
19294
19295   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19296 func_xform ()\
19297 {\
19298     func_xform_result=${1%.*}.lo\
19299 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19300   && mv -f "$cfgfile.tmp" "$cfgfile" \
19301     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19302 test 0 -eq $? || _lt_function_replace_fail=:
19303
19304
19305   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19306 func_arith ()\
19307 {\
19308     func_arith_result=$(( $* ))\
19309 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19310   && mv -f "$cfgfile.tmp" "$cfgfile" \
19311     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19312 test 0 -eq $? || _lt_function_replace_fail=:
19313
19314
19315   sed -e '/^func_len ()$/,/^} # func_len /c\
19316 func_len ()\
19317 {\
19318     func_len_result=${#1}\
19319 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19320   && mv -f "$cfgfile.tmp" "$cfgfile" \
19321     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19322 test 0 -eq $? || _lt_function_replace_fail=:
19323
19324 fi
19325
19326 if test x"$lt_shell_append" = xyes; then
19327   sed -e '/^func_append ()$/,/^} # func_append /c\
19328 func_append ()\
19329 {\
19330     eval "${1}+=\\${2}"\
19331 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19332   && mv -f "$cfgfile.tmp" "$cfgfile" \
19333     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19334 test 0 -eq $? || _lt_function_replace_fail=:
19335
19336
19337   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19338 func_append_quoted ()\
19339 {\
19340 \    func_quote_for_eval "${2}"\
19341 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19342 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19343   && mv -f "$cfgfile.tmp" "$cfgfile" \
19344     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19345 test 0 -eq $? || _lt_function_replace_fail=:
19346
19347
19348   # Save a `func_append' function call where possible by direct use of '+='
19349   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19350     && mv -f "$cfgfile.tmp" "$cfgfile" \
19351       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19352   test 0 -eq $? || _lt_function_replace_fail=:
19353 else
19354   # Save a `func_append' function call even when '+=' is not available
19355   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19356     && mv -f "$cfgfile.tmp" "$cfgfile" \
19357       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19358   test 0 -eq $? || _lt_function_replace_fail=:
19359 fi
19360
19361 if test x"$_lt_function_replace_fail" = x":"; then
19362   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19363 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19364 fi
19365
19366
19367    mv -f "$cfgfile" "$ofile" ||
19368     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19369   chmod +x "$ofile"
19370
19371
19372     cat <<_LT_EOF >> "$ofile"
19373
19374 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19375
19376 # The linker used to build libraries.
19377 LD=$lt_LD_CXX
19378
19379 # How to create reloadable object files.
19380 reload_flag=$lt_reload_flag_CXX
19381 reload_cmds=$lt_reload_cmds_CXX
19382
19383 # Commands used to build an old-style archive.
19384 old_archive_cmds=$lt_old_archive_cmds_CXX
19385
19386 # A language specific compiler.
19387 CC=$lt_compiler_CXX
19388
19389 # Is the compiler the GNU compiler?
19390 with_gcc=$GCC_CXX
19391
19392 # Compiler flag to turn off builtin functions.
19393 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19394
19395 # Additional compiler flags for building library objects.
19396 pic_flag=$lt_lt_prog_compiler_pic_CXX
19397
19398 # How to pass a linker flag through the compiler.
19399 wl=$lt_lt_prog_compiler_wl_CXX
19400
19401 # Compiler flag to prevent dynamic linking.
19402 link_static_flag=$lt_lt_prog_compiler_static_CXX
19403
19404 # Does compiler simultaneously support -c and -o options?
19405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19406
19407 # Whether or not to add -lc for building shared libraries.
19408 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19409
19410 # Whether or not to disallow shared libs when runtime libs are static.
19411 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19412
19413 # Compiler flag to allow reflexive dlopens.
19414 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19415
19416 # Compiler flag to generate shared objects directly from archives.
19417 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19418
19419 # Whether the compiler copes with passing no objects directly.
19420 compiler_needs_object=$lt_compiler_needs_object_CXX
19421
19422 # Create an old-style archive from a shared archive.
19423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19424
19425 # Create a temporary old-style archive to link instead of a shared archive.
19426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19427
19428 # Commands used to build a shared archive.
19429 archive_cmds=$lt_archive_cmds_CXX
19430 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19431
19432 # Commands used to build a loadable module if different from building
19433 # a shared archive.
19434 module_cmds=$lt_module_cmds_CXX
19435 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19436
19437 # Whether we are building with GNU ld or not.
19438 with_gnu_ld=$lt_with_gnu_ld_CXX
19439
19440 # Flag that allows shared libraries with undefined symbols to be built.
19441 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19442
19443 # Flag that enforces no undefined symbols.
19444 no_undefined_flag=$lt_no_undefined_flag_CXX
19445
19446 # Flag to hardcode \$libdir into a binary during linking.
19447 # This must work even if \$libdir does not exist
19448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19449
19450 # Whether we need a single "-rpath" flag with a separated argument.
19451 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19452
19453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19454 # DIR into the resulting binary.
19455 hardcode_direct=$hardcode_direct_CXX
19456
19457 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19458 # DIR into the resulting binary and the resulting library dependency is
19459 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19460 # library is relocated.
19461 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19462
19463 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19464 # into the resulting binary.
19465 hardcode_minus_L=$hardcode_minus_L_CXX
19466
19467 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19468 # into the resulting binary.
19469 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19470
19471 # Set to "yes" if building a shared library automatically hardcodes DIR
19472 # into the library and all subsequent libraries and executables linked
19473 # against it.
19474 hardcode_automatic=$hardcode_automatic_CXX
19475
19476 # Set to yes if linker adds runtime paths of dependent libraries
19477 # to runtime path list.
19478 inherit_rpath=$inherit_rpath_CXX
19479
19480 # Whether libtool must link a program against all its dependency libraries.
19481 link_all_deplibs=$link_all_deplibs_CXX
19482
19483 # Set to "yes" if exported symbols are required.
19484 always_export_symbols=$always_export_symbols_CXX
19485
19486 # The commands to list exported symbols.
19487 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19488
19489 # Symbols that should not be listed in the preloaded symbols.
19490 exclude_expsyms=$lt_exclude_expsyms_CXX
19491
19492 # Symbols that must always be exported.
19493 include_expsyms=$lt_include_expsyms_CXX
19494
19495 # Commands necessary for linking programs (against libraries) with templates.
19496 prelink_cmds=$lt_prelink_cmds_CXX
19497
19498 # Commands necessary for finishing linking programs.
19499 postlink_cmds=$lt_postlink_cmds_CXX
19500
19501 # Specify filename containing input files.
19502 file_list_spec=$lt_file_list_spec_CXX
19503
19504 # How to hardcode a shared library path into an executable.
19505 hardcode_action=$hardcode_action_CXX
19506
19507 # The directories searched by this compiler when creating a shared library.
19508 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19509
19510 # Dependencies to place before and after the objects being linked to
19511 # create a shared library.
19512 predep_objects=$lt_predep_objects_CXX
19513 postdep_objects=$lt_postdep_objects_CXX
19514 predeps=$lt_predeps_CXX
19515 postdeps=$lt_postdeps_CXX
19516
19517 # The library search path used internally by the compiler when linking
19518 # a shared library.
19519 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19520
19521 # ### END LIBTOOL TAG CONFIG: CXX
19522 _LT_EOF
19523
19524  ;;
19525
19526   esac
19527 done # for ac_tag
19528
19529
19530 as_fn_exit 0
19531 _ACEOF
19532 ac_clean_files=$ac_clean_files_save
19533
19534 test $ac_write_fail = 0 ||
19535   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19536
19537
19538 # configure is writing to config.log, and then calls config.status.
19539 # config.status does its own redirection, appending to config.log.
19540 # Unfortunately, on DOS this fails, as config.log is still kept open
19541 # by configure, so config.status won't be able to write to it; its
19542 # output is simply discarded.  So we exec the FD to /dev/null,
19543 # effectively closing config.log, so it can be properly (re)opened and
19544 # appended to by config.status.  When coming back to configure, we
19545 # need to make the FD available again.
19546 if test "$no_create" != yes; then
19547   ac_cs_success=:
19548   ac_config_status_args=
19549   test "$silent" = yes &&
19550     ac_config_status_args="$ac_config_status_args --quiet"
19551   exec 5>/dev/null
19552   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19553   exec 5>>config.log
19554   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19555   # would make configure fail if this is the last instruction.
19556   $ac_cs_success || as_fn_exit 1
19557 fi
19558 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19559   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19560 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19561 fi
19562