d1486076c267333a6b70ec35386ef5fb506b7743
[platform/upstream/expat.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for expat 2.1.1.
4 #
5 # Report bugs to <expat-bugs@libexpat.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: expat-bugs@libexpat.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a 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='expat'
592 PACKAGE_TARNAME='expat'
593 PACKAGE_VERSION='2.1.1'
594 PACKAGE_STRING='expat 2.1.1'
595 PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="Makefile.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_subst_vars='LTLIBOBJS
637 LIBOBJS
638 FILEMAP
639 INSTALL_DATA
640 INSTALL_SCRIPT
641 INSTALL_PROGRAM
642 CXXCPP
643 ac_ct_CXX
644 CXXFLAGS
645 CXX
646 LIBAGE
647 LIBREVISION
648 LIBCURRENT
649 CPP
650 OTOOL64
651 OTOOL
652 LIPO
653 NMEDIT
654 DSYMUTIL
655 MANIFEST_TOOL
656 AWK
657 RANLIB
658 STRIP
659 ac_ct_AR
660 AR
661 LN_S
662 NM
663 ac_ct_DUMPBIN
664 DUMPBIN
665 LD
666 FGREP
667 EGREP
668 GREP
669 SED
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 LIBTOOL
678 OBJDUMP
679 DLLTOOL
680 AS
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 target_alias
690 host_alias
691 build_alias
692 LIBS
693 ECHO_T
694 ECHO_N
695 ECHO_C
696 DEFS
697 mandir
698 localedir
699 libdir
700 psdir
701 pdfdir
702 dvidir
703 htmldir
704 infodir
705 docdir
706 oldincludedir
707 includedir
708 localstatedir
709 sharedstatedir
710 sysconfdir
711 datadir
712 datarootdir
713 libexecdir
714 sbindir
715 bindir
716 program_transform_name
717 prefix
718 exec_prefix
719 PACKAGE_URL
720 PACKAGE_BUGREPORT
721 PACKAGE_STRING
722 PACKAGE_VERSION
723 PACKAGE_TARNAME
724 PACKAGE_NAME
725 PATH_SEPARATOR
726 SHELL'
727 ac_subst_files=''
728 ac_user_opts='
729 enable_option_checking
730 enable_shared
731 enable_static
732 with_pic
733 enable_fast_install
734 with_gnu_ld
735 with_sysroot
736 enable_libtool_lock
737 '
738       ac_precious_vars='build_alias
739 host_alias
740 target_alias
741 CC
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP
747 CXX
748 CXXFLAGS
749 CCC
750 CXXCPP'
751
752
753 # Initialize some variables set by options.
754 ac_init_help=
755 ac_init_version=false
756 ac_unrecognized_opts=
757 ac_unrecognized_sep=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
774
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
800
801 ac_prev=
802 ac_dashdash=
803 for ac_option
804 do
805   # If the previous option needs an argument, assign it.
806   if test -n "$ac_prev"; then
807     eval $ac_prev=\$ac_option
808     ac_prev=
809     continue
810   fi
811
812   case $ac_option in
813   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814   *=)   ac_optarg= ;;
815   *)    ac_optarg=yes ;;
816   esac
817
818   # Accept the important Cygnus configure options, so we can diagnose typos.
819
820   case $ac_dashdash$ac_option in
821   --)
822     ac_dashdash=yes ;;
823
824   -bindir | --bindir | --bindi | --bind | --bin | --bi)
825     ac_prev=bindir ;;
826   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827     bindir=$ac_optarg ;;
828
829   -build | --build | --buil | --bui | --bu)
830     ac_prev=build_alias ;;
831   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832     build_alias=$ac_optarg ;;
833
834   -cache-file | --cache-file | --cache-fil | --cache-fi \
835   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836     ac_prev=cache_file ;;
837   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839     cache_file=$ac_optarg ;;
840
841   --config-cache | -C)
842     cache_file=config.cache ;;
843
844   -datadir | --datadir | --datadi | --datad)
845     ac_prev=datadir ;;
846   -datadir=* | --datadir=* | --datadi=* | --datad=*)
847     datadir=$ac_optarg ;;
848
849   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850   | --dataroo | --dataro | --datar)
851     ac_prev=datarootdir ;;
852   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854     datarootdir=$ac_optarg ;;
855
856   -disable-* | --disable-*)
857     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858     # Reject names that are not valid shell variable names.
859     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860       as_fn_error $? "invalid feature name: $ac_useropt"
861     ac_useropt_orig=$ac_useropt
862     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863     case $ac_user_opts in
864       *"
865 "enable_$ac_useropt"
866 "*) ;;
867       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868          ac_unrecognized_sep=', ';;
869     esac
870     eval enable_$ac_useropt=no ;;
871
872   -docdir | --docdir | --docdi | --doc | --do)
873     ac_prev=docdir ;;
874   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875     docdir=$ac_optarg ;;
876
877   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
878     ac_prev=dvidir ;;
879   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880     dvidir=$ac_optarg ;;
881
882   -enable-* | --enable-*)
883     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884     # Reject names that are not valid shell variable names.
885     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886       as_fn_error $? "invalid feature name: $ac_useropt"
887     ac_useropt_orig=$ac_useropt
888     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889     case $ac_user_opts in
890       *"
891 "enable_$ac_useropt"
892 "*) ;;
893       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894          ac_unrecognized_sep=', ';;
895     esac
896     eval enable_$ac_useropt=\$ac_optarg ;;
897
898   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900   | --exec | --exe | --ex)
901     ac_prev=exec_prefix ;;
902   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904   | --exec=* | --exe=* | --ex=*)
905     exec_prefix=$ac_optarg ;;
906
907   -gas | --gas | --ga | --g)
908     # Obsolete; use --with-gas.
909     with_gas=yes ;;
910
911   -help | --help | --hel | --he | -h)
912     ac_init_help=long ;;
913   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914     ac_init_help=recursive ;;
915   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916     ac_init_help=short ;;
917
918   -host | --host | --hos | --ho)
919     ac_prev=host_alias ;;
920   -host=* | --host=* | --hos=* | --ho=*)
921     host_alias=$ac_optarg ;;
922
923   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924     ac_prev=htmldir ;;
925   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926   | --ht=*)
927     htmldir=$ac_optarg ;;
928
929   -includedir | --includedir | --includedi | --included | --include \
930   | --includ | --inclu | --incl | --inc)
931     ac_prev=includedir ;;
932   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933   | --includ=* | --inclu=* | --incl=* | --inc=*)
934     includedir=$ac_optarg ;;
935
936   -infodir | --infodir | --infodi | --infod | --info | --inf)
937     ac_prev=infodir ;;
938   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939     infodir=$ac_optarg ;;
940
941   -libdir | --libdir | --libdi | --libd)
942     ac_prev=libdir ;;
943   -libdir=* | --libdir=* | --libdi=* | --libd=*)
944     libdir=$ac_optarg ;;
945
946   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947   | --libexe | --libex | --libe)
948     ac_prev=libexecdir ;;
949   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950   | --libexe=* | --libex=* | --libe=*)
951     libexecdir=$ac_optarg ;;
952
953   -localedir | --localedir | --localedi | --localed | --locale)
954     ac_prev=localedir ;;
955   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956     localedir=$ac_optarg ;;
957
958   -localstatedir | --localstatedir | --localstatedi | --localstated \
959   | --localstate | --localstat | --localsta | --localst | --locals)
960     ac_prev=localstatedir ;;
961   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963     localstatedir=$ac_optarg ;;
964
965   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966     ac_prev=mandir ;;
967   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
968     mandir=$ac_optarg ;;
969
970   -nfp | --nfp | --nf)
971     # Obsolete; use --without-fp.
972     with_fp=no ;;
973
974   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975   | --no-cr | --no-c | -n)
976     no_create=yes ;;
977
978   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980     no_recursion=yes ;;
981
982   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984   | --oldin | --oldi | --old | --ol | --o)
985     ac_prev=oldincludedir ;;
986   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989     oldincludedir=$ac_optarg ;;
990
991   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992     ac_prev=prefix ;;
993   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994     prefix=$ac_optarg ;;
995
996   -program-prefix | --program-prefix | --program-prefi | --program-pref \
997   | --program-pre | --program-pr | --program-p)
998     ac_prev=program_prefix ;;
999   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001     program_prefix=$ac_optarg ;;
1002
1003   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004   | --program-suf | --program-su | --program-s)
1005     ac_prev=program_suffix ;;
1006   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008     program_suffix=$ac_optarg ;;
1009
1010   -program-transform-name | --program-transform-name \
1011   | --program-transform-nam | --program-transform-na \
1012   | --program-transform-n | --program-transform- \
1013   | --program-transform | --program-transfor \
1014   | --program-transfo | --program-transf \
1015   | --program-trans | --program-tran \
1016   | --progr-tra | --program-tr | --program-t)
1017     ac_prev=program_transform_name ;;
1018   -program-transform-name=* | --program-transform-name=* \
1019   | --program-transform-nam=* | --program-transform-na=* \
1020   | --program-transform-n=* | --program-transform-=* \
1021   | --program-transform=* | --program-transfor=* \
1022   | --program-transfo=* | --program-transf=* \
1023   | --program-trans=* | --program-tran=* \
1024   | --progr-tra=* | --program-tr=* | --program-t=*)
1025     program_transform_name=$ac_optarg ;;
1026
1027   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028     ac_prev=pdfdir ;;
1029   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030     pdfdir=$ac_optarg ;;
1031
1032   -psdir | --psdir | --psdi | --psd | --ps)
1033     ac_prev=psdir ;;
1034   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035     psdir=$ac_optarg ;;
1036
1037   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038   | -silent | --silent | --silen | --sile | --sil)
1039     silent=yes ;;
1040
1041   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042     ac_prev=sbindir ;;
1043   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044   | --sbi=* | --sb=*)
1045     sbindir=$ac_optarg ;;
1046
1047   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049   | --sharedst | --shareds | --shared | --share | --shar \
1050   | --sha | --sh)
1051     ac_prev=sharedstatedir ;;
1052   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055   | --sha=* | --sh=*)
1056     sharedstatedir=$ac_optarg ;;
1057
1058   -site | --site | --sit)
1059     ac_prev=site ;;
1060   -site=* | --site=* | --sit=*)
1061     site=$ac_optarg ;;
1062
1063   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064     ac_prev=srcdir ;;
1065   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066     srcdir=$ac_optarg ;;
1067
1068   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069   | --syscon | --sysco | --sysc | --sys | --sy)
1070     ac_prev=sysconfdir ;;
1071   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073     sysconfdir=$ac_optarg ;;
1074
1075   -target | --target | --targe | --targ | --tar | --ta | --t)
1076     ac_prev=target_alias ;;
1077   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078     target_alias=$ac_optarg ;;
1079
1080   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081     verbose=yes ;;
1082
1083   -version | --version | --versio | --versi | --vers | -V)
1084     ac_init_version=: ;;
1085
1086   -with-* | --with-*)
1087     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088     # Reject names that are not valid shell variable names.
1089     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090       as_fn_error $? "invalid package name: $ac_useropt"
1091     ac_useropt_orig=$ac_useropt
1092     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093     case $ac_user_opts in
1094       *"
1095 "with_$ac_useropt"
1096 "*) ;;
1097       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098          ac_unrecognized_sep=', ';;
1099     esac
1100     eval with_$ac_useropt=\$ac_optarg ;;
1101
1102   -without-* | --without-*)
1103     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104     # Reject names that are not valid shell variable names.
1105     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106       as_fn_error $? "invalid package name: $ac_useropt"
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "with_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval with_$ac_useropt=no ;;
1117
1118   --x)
1119     # Obsolete; use --with-x.
1120     with_x=yes ;;
1121
1122   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123   | --x-incl | --x-inc | --x-in | --x-i)
1124     ac_prev=x_includes ;;
1125   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127     x_includes=$ac_optarg ;;
1128
1129   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131     ac_prev=x_libraries ;;
1132   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134     x_libraries=$ac_optarg ;;
1135
1136   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1137 Try \`$0 --help' for more information"
1138     ;;
1139
1140   *=*)
1141     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142     # Reject names that are not valid shell variable names.
1143     case $ac_envvar in #(
1144       '' | [0-9]* | *[!_$as_cr_alnum]* )
1145       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1146     esac
1147     eval $ac_envvar=\$ac_optarg
1148     export $ac_envvar ;;
1149
1150   *)
1151     # FIXME: should be removed in autoconf 3.0.
1152     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1156     ;;
1157
1158   esac
1159 done
1160
1161 if test -n "$ac_prev"; then
1162   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163   as_fn_error $? "missing argument to $ac_option"
1164 fi
1165
1166 if test -n "$ac_unrecognized_opts"; then
1167   case $enable_option_checking in
1168     no) ;;
1169     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1170     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1171   esac
1172 fi
1173
1174 # Check all directory arguments for consistency.
1175 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176                 datadir sysconfdir sharedstatedir localstatedir includedir \
1177                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178                 libdir localedir mandir
1179 do
1180   eval ac_val=\$$ac_var
1181   # Remove trailing slashes.
1182   case $ac_val in
1183     */ )
1184       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185       eval $ac_var=\$ac_val;;
1186   esac
1187   # Be sure to have absolute directory names.
1188   case $ac_val in
1189     [\\/$]* | ?:[\\/]* )  continue;;
1190     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1191   esac
1192   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1193 done
1194
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1198 build=$build_alias
1199 host=$host_alias
1200 target=$target_alias
1201
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x; then
1204   if test "x$build_alias" = x; then
1205     cross_compiling=maybe
1206   elif test "x$build_alias" != "x$host_alias"; then
1207     cross_compiling=yes
1208   fi
1209 fi
1210
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214 test "$silent" = yes && exec 6>/dev/null
1215
1216
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220   as_fn_error $? "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222   as_fn_error $? "pwd does not report name of working directory"
1223
1224
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227   ac_srcdir_defaulted=yes
1228   # Try the directory containing this script, then the parent directory.
1229   ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231          X"$as_myself" : 'X\(//\)[^/]' \| \
1232          X"$as_myself" : 'X\(//\)$' \| \
1233          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236             s//\1/
1237             q
1238           }
1239           /^X\(\/\/\)[^/].*/{
1240             s//\1/
1241             q
1242           }
1243           /^X\(\/\/\)$/{
1244             s//\1/
1245             q
1246           }
1247           /^X\(\/\).*/{
1248             s//\1/
1249             q
1250           }
1251           s/.*/./; q'`
1252   srcdir=$ac_confdir
1253   if test ! -r "$srcdir/$ac_unique_file"; then
1254     srcdir=..
1255   fi
1256 else
1257   ac_srcdir_defaulted=no
1258 fi
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1262 fi
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1266         pwd)`
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269   srcdir=.
1270 fi
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1274 case $srcdir in
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 esac
1277 for ac_var in $ac_precious_vars; do
1278   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279   eval ac_env_${ac_var}_value=\$${ac_var}
1280   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 done
1283
1284 #
1285 # Report the --help message.
1286 #
1287 if test "$ac_init_help" = "long"; then
1288   # Omit some internal or obsolete options to make the list less imposing.
1289   # This message is too long to be a string in the A/UX 3.1 sh.
1290   cat <<_ACEOF
1291 \`configure' configures expat 2.1.1 to adapt to many kinds of systems.
1292
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1294
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE.  See below for descriptions of some of the useful variables.
1297
1298 Defaults for the options are specified in brackets.
1299
1300 Configuration:
1301   -h, --help              display this help and exit
1302       --help=short        display options specific to this package
1303       --help=recursive    display the short help of all the included packages
1304   -V, --version           display version information and exit
1305   -q, --quiet, --silent   do not print \`checking ...' messages
1306       --cache-file=FILE   cache test results in FILE [disabled]
1307   -C, --config-cache      alias for \`--cache-file=config.cache'
1308   -n, --no-create         do not create output files
1309       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1310
1311 Installation directories:
1312   --prefix=PREFIX         install architecture-independent files in PREFIX
1313                           [$ac_default_prefix]
1314   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1315                           [PREFIX]
1316
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1321
1322 For better control, use the options below.
1323
1324 Fine tuning of the installation directories:
1325   --bindir=DIR            user executables [EPREFIX/bin]
1326   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1327   --libexecdir=DIR        program executables [EPREFIX/libexec]
1328   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1329   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1330   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1331   --libdir=DIR            object code libraries [EPREFIX/lib]
1332   --includedir=DIR        C header files [PREFIX/include]
1333   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1334   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1335   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1336   --infodir=DIR           info documentation [DATAROOTDIR/info]
1337   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1338   --mandir=DIR            man documentation [DATAROOTDIR/man]
1339   --docdir=DIR            documentation root [DATAROOTDIR/doc/expat]
1340   --htmldir=DIR           html documentation [DOCDIR]
1341   --dvidir=DIR            dvi documentation [DOCDIR]
1342   --pdfdir=DIR            pdf documentation [DOCDIR]
1343   --psdir=DIR             ps documentation [DOCDIR]
1344 _ACEOF
1345
1346   cat <<\_ACEOF
1347
1348 System types:
1349   --build=BUILD     configure for building on BUILD [guessed]
1350   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1351 _ACEOF
1352 fi
1353
1354 if test -n "$ac_init_help"; then
1355   case $ac_init_help in
1356      short | recursive ) echo "Configuration of expat 2.1.1:";;
1357    esac
1358   cat <<\_ACEOF
1359
1360 Optional Features:
1361   --disable-option-checking  ignore unrecognized --enable/--with options
1362   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1363   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1364   --enable-shared[=PKGS]  build shared libraries [default=yes]
1365   --enable-static[=PKGS]  build static libraries [default=yes]
1366   --enable-fast-install[=PKGS]
1367                           optimize for fast installation [default=yes]
1368   --disable-libtool-lock  avoid locking (might break parallel builds)
1369
1370 Optional Packages:
1371   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1372   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1373   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1374                           both]
1375   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1376   --with-sysroot=DIR Search for dependent libraries within DIR
1377                         (or the compiler's sysroot if not specified).
1378
1379 Some influential environment variables:
1380   CC          C compiler command
1381   CFLAGS      C compiler flags
1382   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1383               nonstandard directory <lib dir>
1384   LIBS        libraries to pass to the linker, e.g. -l<library>
1385   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1386               you have headers in a nonstandard directory <include dir>
1387   CPP         C preprocessor
1388   CXX         C++ compiler command
1389   CXXFLAGS    C++ compiler flags
1390   CXXCPP      C++ preprocessor
1391
1392 Use these variables to override the choices made by `configure' or to help
1393 it to find libraries and programs with nonstandard names/locations.
1394
1395 Report bugs to <expat-bugs@libexpat.org>.
1396 _ACEOF
1397 ac_status=$?
1398 fi
1399
1400 if test "$ac_init_help" = "recursive"; then
1401   # If there are subdirs, report their specific --help.
1402   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403     test -d "$ac_dir" ||
1404       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405       continue
1406     ac_builddir=.
1407
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *)
1411   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1412   # A ".." for each directory in $ac_dir_suffix.
1413   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1414   case $ac_top_builddir_sub in
1415   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417   esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1423
1424 case $srcdir in
1425   .)  # We are building in place.
1426     ac_srcdir=.
1427     ac_top_srcdir=$ac_top_builddir_sub
1428     ac_abs_top_srcdir=$ac_pwd ;;
1429   [\\/]* | ?:[\\/]* )  # Absolute name.
1430     ac_srcdir=$srcdir$ac_dir_suffix;
1431     ac_top_srcdir=$srcdir
1432     ac_abs_top_srcdir=$srcdir ;;
1433   *) # Relative name.
1434     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435     ac_top_srcdir=$ac_top_build_prefix$srcdir
1436     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1439
1440     cd "$ac_dir" || { ac_status=$?; continue; }
1441     # Check for guested configure.
1442     if test -f "$ac_srcdir/configure.gnu"; then
1443       echo &&
1444       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445     elif test -f "$ac_srcdir/configure"; then
1446       echo &&
1447       $SHELL "$ac_srcdir/configure" --help=recursive
1448     else
1449       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450     fi || ac_status=$?
1451     cd "$ac_pwd" || { ac_status=$?; break; }
1452   done
1453 fi
1454
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1457   cat <<\_ACEOF
1458 expat configure 2.1.1
1459 generated by GNU Autoconf 2.69
1460
1461 Copyright (C) 2012 Free Software Foundation, Inc.
1462 This configure script is free software; the Free Software Foundation
1463 gives unlimited permission to copy, distribute and modify it.
1464 _ACEOF
1465   exit
1466 fi
1467
1468 ## ------------------------ ##
1469 ## Autoconf initialization. ##
1470 ## ------------------------ ##
1471
1472 # ac_fn_c_try_compile LINENO
1473 # --------------------------
1474 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1475 ac_fn_c_try_compile ()
1476 {
1477   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478   rm -f conftest.$ac_objext
1479   if { { ac_try="$ac_compile"
1480 case "(($ac_try" in
1481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482   *) ac_try_echo=$ac_try;;
1483 esac
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486   (eval "$ac_compile") 2>conftest.err
1487   ac_status=$?
1488   if test -s conftest.err; then
1489     grep -v '^ *+' conftest.err >conftest.er1
1490     cat conftest.er1 >&5
1491     mv -f conftest.er1 conftest.err
1492   fi
1493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494   test $ac_status = 0; } && {
1495          test -z "$ac_c_werror_flag" ||
1496          test ! -s conftest.err
1497        } && test -s conftest.$ac_objext; then :
1498   ac_retval=0
1499 else
1500   $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1502
1503         ac_retval=1
1504 fi
1505   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506   as_fn_set_status $ac_retval
1507
1508 } # ac_fn_c_try_compile
1509
1510 # ac_fn_c_try_link LINENO
1511 # -----------------------
1512 # Try to link conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_link ()
1514 {
1515   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516   rm -f conftest.$ac_objext conftest$ac_exeext
1517   if { { ac_try="$ac_link"
1518 case "(($ac_try" in
1519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520   *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524   (eval "$ac_link") 2>conftest.err
1525   ac_status=$?
1526   if test -s conftest.err; then
1527     grep -v '^ *+' conftest.err >conftest.er1
1528     cat conftest.er1 >&5
1529     mv -f conftest.er1 conftest.err
1530   fi
1531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532   test $ac_status = 0; } && {
1533          test -z "$ac_c_werror_flag" ||
1534          test ! -s conftest.err
1535        } && test -s conftest$ac_exeext && {
1536          test "$cross_compiling" = yes ||
1537          test -x conftest$ac_exeext
1538        }; then :
1539   ac_retval=0
1540 else
1541   $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1543
1544         ac_retval=1
1545 fi
1546   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1547   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1548   # interfere with the next link command; also delete a directory that is
1549   # left behind by Apple's compiler.  We do this before executing the actions.
1550   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1551   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552   as_fn_set_status $ac_retval
1553
1554 } # ac_fn_c_try_link
1555
1556 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1557 # -------------------------------------------------------
1558 # Tests whether HEADER exists and can be compiled using the include files in
1559 # INCLUDES, setting the cache variable VAR accordingly.
1560 ac_fn_c_check_header_compile ()
1561 {
1562   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1564 $as_echo_n "checking for $2... " >&6; }
1565 if eval \${$3+:} false; then :
1566   $as_echo_n "(cached) " >&6
1567 else
1568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h.  */
1570 $4
1571 #include <$2>
1572 _ACEOF
1573 if ac_fn_c_try_compile "$LINENO"; then :
1574   eval "$3=yes"
1575 else
1576   eval "$3=no"
1577 fi
1578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1579 fi
1580 eval ac_res=\$$3
1581                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582 $as_echo "$ac_res" >&6; }
1583   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584
1585 } # ac_fn_c_check_header_compile
1586
1587 # ac_fn_c_try_cpp LINENO
1588 # ----------------------
1589 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_cpp ()
1591 {
1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593   if { { ac_try="$ac_cpp conftest.$ac_ext"
1594 case "(($ac_try" in
1595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596   *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1601   ac_status=$?
1602   if test -s conftest.err; then
1603     grep -v '^ *+' conftest.err >conftest.er1
1604     cat conftest.er1 >&5
1605     mv -f conftest.er1 conftest.err
1606   fi
1607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608   test $ac_status = 0; } > conftest.i && {
1609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1610          test ! -s conftest.err
1611        }; then :
1612   ac_retval=0
1613 else
1614   $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617     ac_retval=1
1618 fi
1619   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620   as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_cpp
1623
1624 # ac_fn_c_try_run LINENO
1625 # ----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1627 # that executables *can* be run.
1628 ac_fn_c_try_run ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_link") 2>&5
1639   ac_status=$?
1640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1642   { { case "(($ac_try" in
1643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644   *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648   (eval "$ac_try") 2>&5
1649   ac_status=$?
1650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651   test $ac_status = 0; }; }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: program exited with status $ac_status" >&5
1655        $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658        ac_retval=$ac_status
1659 fi
1660   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662   as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_run
1665
1666 # ac_fn_c_check_func LINENO FUNC VAR
1667 # ----------------------------------
1668 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1669 ac_fn_c_check_func ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675   $as_echo_n "(cached) " >&6
1676 else
1677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h.  */
1679 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1681 #define $2 innocuous_$2
1682
1683 /* System header to define __stub macros and hopefully few prototypes,
1684     which can conflict with char $2 (); below.
1685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1686     <limits.h> exists even on freestanding compilers.  */
1687
1688 #ifdef __STDC__
1689 # include <limits.h>
1690 #else
1691 # include <assert.h>
1692 #endif
1693
1694 #undef $2
1695
1696 /* Override any GCC internal prototype to avoid an error.
1697    Use char because int might match the return type of a GCC
1698    builtin and then its argument prototype would still apply.  */
1699 #ifdef __cplusplus
1700 extern "C"
1701 #endif
1702 char $2 ();
1703 /* The GNU C library defines this for functions which it implements
1704     to always fail with ENOSYS.  Some functions are actually named
1705     something starting with __ and the normal name is an alias.  */
1706 #if defined __stub_$2 || defined __stub___$2
1707 choke me
1708 #endif
1709
1710 int
1711 main ()
1712 {
1713 return $2 ();
1714   ;
1715   return 0;
1716 }
1717 _ACEOF
1718 if ac_fn_c_try_link "$LINENO"; then :
1719   eval "$3=yes"
1720 else
1721   eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext \
1724     conftest$ac_exeext conftest.$ac_ext
1725 fi
1726 eval ac_res=\$$3
1727                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730
1731 } # ac_fn_c_check_func
1732
1733 # ac_fn_cxx_try_compile LINENO
1734 # ----------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_cxx_try_compile ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   rm -f conftest.$ac_objext
1740   if { { ac_try="$ac_compile"
1741 case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_compile") 2>conftest.err
1748   ac_status=$?
1749   if test -s conftest.err; then
1750     grep -v '^ *+' conftest.err >conftest.er1
1751     cat conftest.er1 >&5
1752     mv -f conftest.er1 conftest.err
1753   fi
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; } && {
1756          test -z "$ac_cxx_werror_flag" ||
1757          test ! -s conftest.err
1758        } && test -s conftest.$ac_objext; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764         ac_retval=1
1765 fi
1766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767   as_fn_set_status $ac_retval
1768
1769 } # ac_fn_cxx_try_compile
1770
1771 # ac_fn_cxx_try_cpp LINENO
1772 # ------------------------
1773 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_cxx_try_cpp ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   if { { ac_try="$ac_cpp conftest.$ac_ext"
1778 case "(($ac_try" in
1779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780   *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1785   ac_status=$?
1786   if test -s conftest.err; then
1787     grep -v '^ *+' conftest.err >conftest.er1
1788     cat conftest.er1 >&5
1789     mv -f conftest.er1 conftest.err
1790   fi
1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792   test $ac_status = 0; } > conftest.i && {
1793          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1794          test ! -s conftest.err
1795        }; then :
1796   ac_retval=0
1797 else
1798   $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801     ac_retval=1
1802 fi
1803   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804   as_fn_set_status $ac_retval
1805
1806 } # ac_fn_cxx_try_cpp
1807
1808 # ac_fn_cxx_try_link LINENO
1809 # -------------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_cxx_try_link ()
1812 {
1813   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814   rm -f conftest.$ac_objext conftest$ac_exeext
1815   if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818   *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822   (eval "$ac_link") 2>conftest.err
1823   ac_status=$?
1824   if test -s conftest.err; then
1825     grep -v '^ *+' conftest.err >conftest.er1
1826     cat conftest.er1 >&5
1827     mv -f conftest.er1 conftest.err
1828   fi
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; } && {
1831          test -z "$ac_cxx_werror_flag" ||
1832          test ! -s conftest.err
1833        } && test -s conftest$ac_exeext && {
1834          test "$cross_compiling" = yes ||
1835          test -x conftest$ac_exeext
1836        }; then :
1837   ac_retval=0
1838 else
1839   $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842         ac_retval=1
1843 fi
1844   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846   # interfere with the next link command; also delete a directory that is
1847   # left behind by Apple's compiler.  We do this before executing the actions.
1848   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850   as_fn_set_status $ac_retval
1851
1852 } # ac_fn_cxx_try_link
1853
1854 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1855 # -------------------------------------------
1856 # Tests whether TYPE exists after having included INCLUDES, setting cache
1857 # variable VAR accordingly.
1858 ac_fn_c_check_type ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864   $as_echo_n "(cached) " >&6
1865 else
1866   eval "$3=no"
1867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h.  */
1869 $4
1870 int
1871 main ()
1872 {
1873 if (sizeof ($2))
1874          return 0;
1875   ;
1876   return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 $4
1883 int
1884 main ()
1885 {
1886 if (sizeof (($2)))
1887             return 0;
1888   ;
1889   return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893
1894 else
1895   eval "$3=yes"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 fi
1901 eval ac_res=\$$3
1902                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906 } # ac_fn_c_check_type
1907
1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1911 # the include files in INCLUDES and setting the cache variable VAR
1912 # accordingly.
1913 ac_fn_c_check_header_mongrel ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   if eval \${$3+:} false; then :
1917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920   $as_echo_n "(cached) " >&6
1921 fi
1922 eval ac_res=\$$3
1923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 else
1926   # Is the header compilable?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1928 $as_echo_n "checking $2 usability... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h.  */
1931 $4
1932 #include <$2>
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935   ac_header_compiler=yes
1936 else
1937   ac_header_compiler=no
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1941 $as_echo "$ac_header_compiler" >&6; }
1942
1943 # Is the header present?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1945 $as_echo_n "checking $2 presence... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h.  */
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1951   ac_header_preproc=yes
1952 else
1953   ac_header_preproc=no
1954 fi
1955 rm -f conftest.err conftest.i conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1957 $as_echo "$ac_header_preproc" >&6; }
1958
1959 # So?  What about this header?
1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1961   yes:no: )
1962     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1964     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966     ;;
1967   no:yes:* )
1968     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1971 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1975 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 ( $as_echo "## -------------------------------------- ##
1979 ## Report this to expat-bugs@libexpat.org ##
1980 ## -------------------------------------- ##"
1981      ) | sed "s/^/$as_me: WARNING:     /" >&2
1982     ;;
1983 esac
1984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987   $as_echo_n "(cached) " >&6
1988 else
1989   eval "$3=\$ac_header_compiler"
1990 fi
1991 eval ac_res=\$$3
1992                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 fi
1995   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996
1997 } # ac_fn_c_check_header_mongrel
1998 cat >config.log <<_ACEOF
1999 This file contains any messages produced by compilers while
2000 running configure, to aid debugging if configure makes a mistake.
2001
2002 It was created by expat $as_me 2.1.1, which was
2003 generated by GNU Autoconf 2.69.  Invocation command line was
2004
2005   $ $0 $@
2006
2007 _ACEOF
2008 exec 5>>config.log
2009 {
2010 cat <<_ASUNAME
2011 ## --------- ##
2012 ## Platform. ##
2013 ## --------- ##
2014
2015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2020
2021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2022 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2023
2024 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2025 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2027 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2028 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2029 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2030 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2031
2032 _ASUNAME
2033
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037   IFS=$as_save_IFS
2038   test -z "$as_dir" && as_dir=.
2039     $as_echo "PATH: $as_dir"
2040   done
2041 IFS=$as_save_IFS
2042
2043 } >&5
2044
2045 cat >&5 <<_ACEOF
2046
2047
2048 ## ----------- ##
2049 ## Core tests. ##
2050 ## ----------- ##
2051
2052 _ACEOF
2053
2054
2055 # Keep a trace of the command line.
2056 # Strip out --no-create and --no-recursion so they do not pile up.
2057 # Strip out --silent because we don't want to record it for future runs.
2058 # Also quote any args containing shell meta-characters.
2059 # Make two passes to allow for proper duplicate-argument suppression.
2060 ac_configure_args=
2061 ac_configure_args0=
2062 ac_configure_args1=
2063 ac_must_keep_next=false
2064 for ac_pass in 1 2
2065 do
2066   for ac_arg
2067   do
2068     case $ac_arg in
2069     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2070     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2071     | -silent | --silent | --silen | --sile | --sil)
2072       continue ;;
2073     *\'*)
2074       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2075     esac
2076     case $ac_pass in
2077     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2078     2)
2079       as_fn_append ac_configure_args1 " '$ac_arg'"
2080       if test $ac_must_keep_next = true; then
2081         ac_must_keep_next=false # Got value, back to normal.
2082       else
2083         case $ac_arg in
2084           *=* | --config-cache | -C | -disable-* | --disable-* \
2085           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2086           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2087           | -with-* | --with-* | -without-* | --without-* | --x)
2088             case "$ac_configure_args0 " in
2089               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2090             esac
2091             ;;
2092           -* ) ac_must_keep_next=true ;;
2093         esac
2094       fi
2095       as_fn_append ac_configure_args " '$ac_arg'"
2096       ;;
2097     esac
2098   done
2099 done
2100 { ac_configure_args0=; unset ac_configure_args0;}
2101 { ac_configure_args1=; unset ac_configure_args1;}
2102
2103 # When interrupted or exit'd, cleanup temporary files, and complete
2104 # config.log.  We remove comments because anyway the quotes in there
2105 # would cause problems or look ugly.
2106 # WARNING: Use '\'' to represent an apostrophe within the trap.
2107 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2108 trap 'exit_status=$?
2109   # Save into config.log some information that might help in debugging.
2110   {
2111     echo
2112
2113     $as_echo "## ---------------- ##
2114 ## Cache variables. ##
2115 ## ---------------- ##"
2116     echo
2117     # The following way of writing the cache mishandles newlines in values,
2118 (
2119   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2120     eval ac_val=\$$ac_var
2121     case $ac_val in #(
2122     *${as_nl}*)
2123       case $ac_var in #(
2124       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2126       esac
2127       case $ac_var in #(
2128       _ | IFS | as_nl) ;; #(
2129       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2130       *) { eval $ac_var=; unset $ac_var;} ;;
2131       esac ;;
2132     esac
2133   done
2134   (set) 2>&1 |
2135     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2136     *${as_nl}ac_space=\ *)
2137       sed -n \
2138         "s/'\''/'\''\\\\'\'''\''/g;
2139           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2140       ;; #(
2141     *)
2142       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2143       ;;
2144     esac |
2145     sort
2146 )
2147     echo
2148
2149     $as_echo "## ----------------- ##
2150 ## Output variables. ##
2151 ## ----------------- ##"
2152     echo
2153     for ac_var in $ac_subst_vars
2154     do
2155       eval ac_val=\$$ac_var
2156       case $ac_val in
2157       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158       esac
2159       $as_echo "$ac_var='\''$ac_val'\''"
2160     done | sort
2161     echo
2162
2163     if test -n "$ac_subst_files"; then
2164       $as_echo "## ------------------- ##
2165 ## File substitutions. ##
2166 ## ------------------- ##"
2167       echo
2168       for ac_var in $ac_subst_files
2169       do
2170         eval ac_val=\$$ac_var
2171         case $ac_val in
2172         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173         esac
2174         $as_echo "$ac_var='\''$ac_val'\''"
2175       done | sort
2176       echo
2177     fi
2178
2179     if test -s confdefs.h; then
2180       $as_echo "## ----------- ##
2181 ## confdefs.h. ##
2182 ## ----------- ##"
2183       echo
2184       cat confdefs.h
2185       echo
2186     fi
2187     test "$ac_signal" != 0 &&
2188       $as_echo "$as_me: caught signal $ac_signal"
2189     $as_echo "$as_me: exit $exit_status"
2190   } >&5
2191   rm -f core *.core core.conftest.* &&
2192     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2193     exit $exit_status
2194 ' 0
2195 for ac_signal in 1 2 13 15; do
2196   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2197 done
2198 ac_signal=0
2199
2200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2201 rm -f -r conftest* confdefs.h
2202
2203 $as_echo "/* confdefs.h */" > confdefs.h
2204
2205 # Predefined preprocessor variables.
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_NAME "$PACKAGE_NAME"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_STRING "$PACKAGE_STRING"
2221 _ACEOF
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2225 _ACEOF
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_URL "$PACKAGE_URL"
2229 _ACEOF
2230
2231
2232 # Let the site file select an alternate cache file if it wants to.
2233 # Prefer an explicitly selected file to automatically selected ones.
2234 ac_site_file1=NONE
2235 ac_site_file2=NONE
2236 if test -n "$CONFIG_SITE"; then
2237   # We do not want a PATH search for config.site.
2238   case $CONFIG_SITE in #((
2239     -*)  ac_site_file1=./$CONFIG_SITE;;
2240     */*) ac_site_file1=$CONFIG_SITE;;
2241     *)   ac_site_file1=./$CONFIG_SITE;;
2242   esac
2243 elif test "x$prefix" != xNONE; then
2244   ac_site_file1=$prefix/share/config.site
2245   ac_site_file2=$prefix/etc/config.site
2246 else
2247   ac_site_file1=$ac_default_prefix/share/config.site
2248   ac_site_file2=$ac_default_prefix/etc/config.site
2249 fi
2250 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2251 do
2252   test "x$ac_site_file" = xNONE && continue
2253   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2254     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2255 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2256     sed 's/^/| /' "$ac_site_file" >&5
2257     . "$ac_site_file" \
2258       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2260 as_fn_error $? "failed to load site script $ac_site_file
2261 See \`config.log' for more details" "$LINENO" 5; }
2262   fi
2263 done
2264
2265 if test -r "$cache_file"; then
2266   # Some versions of bash will fail to source /dev/null (special files
2267   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2268   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2269     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2270 $as_echo "$as_me: loading cache $cache_file" >&6;}
2271     case $cache_file in
2272       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2273       *)                      . "./$cache_file";;
2274     esac
2275   fi
2276 else
2277   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2278 $as_echo "$as_me: creating cache $cache_file" >&6;}
2279   >$cache_file
2280 fi
2281
2282 as_fn_append ac_header_list " stdlib.h"
2283 as_fn_append ac_header_list " unistd.h"
2284 as_fn_append ac_header_list " sys/param.h"
2285 # Check that the precious variables saved in the cache have kept the same
2286 # value.
2287 ac_cache_corrupted=false
2288 for ac_var in $ac_precious_vars; do
2289   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2290   eval ac_new_set=\$ac_env_${ac_var}_set
2291   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2292   eval ac_new_val=\$ac_env_${ac_var}_value
2293   case $ac_old_set,$ac_new_set in
2294     set,)
2295       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2296 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2297       ac_cache_corrupted=: ;;
2298     ,set)
2299       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2300 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2301       ac_cache_corrupted=: ;;
2302     ,);;
2303     *)
2304       if test "x$ac_old_val" != "x$ac_new_val"; then
2305         # differences in whitespace do not lead to failure.
2306         ac_old_val_w=`echo x $ac_old_val`
2307         ac_new_val_w=`echo x $ac_new_val`
2308         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2309           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2310 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2311           ac_cache_corrupted=:
2312         else
2313           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2314 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2315           eval $ac_var=\$ac_old_val
2316         fi
2317         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2318 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2319         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2320 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2321       fi;;
2322   esac
2323   # Pass precious variables to config.status.
2324   if test "$ac_new_set" = set; then
2325     case $ac_new_val in
2326     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2327     *) ac_arg=$ac_var=$ac_new_val ;;
2328     esac
2329     case " $ac_configure_args " in
2330       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2331       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2332     esac
2333   fi
2334 done
2335 if $ac_cache_corrupted; then
2336   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2339 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2340   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2341 fi
2342 ## -------------------- ##
2343 ## Main body of script. ##
2344 ## -------------------- ##
2345
2346 ac_ext=c
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351
2352
2353
2354
2355
2356 ac_aux_dir=
2357 for ac_dir in conftools "$srcdir"/conftools; do
2358   if test -f "$ac_dir/install-sh"; then
2359     ac_aux_dir=$ac_dir
2360     ac_install_sh="$ac_aux_dir/install-sh -c"
2361     break
2362   elif test -f "$ac_dir/install.sh"; then
2363     ac_aux_dir=$ac_dir
2364     ac_install_sh="$ac_aux_dir/install.sh -c"
2365     break
2366   elif test -f "$ac_dir/shtool"; then
2367     ac_aux_dir=$ac_dir
2368     ac_install_sh="$ac_aux_dir/shtool install -c"
2369     break
2370   fi
2371 done
2372 if test -z "$ac_aux_dir"; then
2373   as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2374 fi
2375
2376 # These three variables are undocumented and unsupported,
2377 # and are intended to be withdrawn in a future Autoconf release.
2378 # They can cause serious problems if a builder's source tree is in a directory
2379 # whose full name contains unusual characters.
2380 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2381 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2382 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2383
2384
2385
2386
2387
2388
2389 LIBCURRENT=7
2390 LIBREVISION=0
2391 LIBAGE=6
2392
2393 ac_config_headers="$ac_config_headers expat_config.h"
2394
2395
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 enable_win32_dll=yes
2471
2472 case $host in
2473 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
2474   if test -n "$ac_tool_prefix"; then
2475   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}as; ac_word=$2
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if ${ac_cv_prog_AS+:} false; then :
2480   $as_echo_n "(cached) " >&6
2481 else
2482   if test -n "$AS"; then
2483   ac_cv_prog_AS="$AS" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490     for ac_exec_ext in '' $ac_executable_extensions; do
2491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492     ac_cv_prog_AS="${ac_tool_prefix}as"
2493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497   done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 AS=$ac_cv_prog_AS
2503 if test -n "$AS"; then
2504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
2505 $as_echo "$AS" >&6; }
2506 else
2507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508 $as_echo "no" >&6; }
2509 fi
2510
2511
2512 fi
2513 if test -z "$ac_cv_prog_AS"; then
2514   ac_ct_AS=$AS
2515   # Extract the first word of "as", so it can be a program name with args.
2516 set dummy as; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if ${ac_cv_prog_ac_ct_AS+:} false; then :
2520   $as_echo_n "(cached) " >&6
2521 else
2522   if test -n "$ac_ct_AS"; then
2523   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530     for ac_exec_ext in '' $ac_executable_extensions; do
2531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532     ac_cv_prog_ac_ct_AS="as"
2533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534     break 2
2535   fi
2536 done
2537   done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2543 if test -n "$ac_ct_AS"; then
2544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
2545 $as_echo "$ac_ct_AS" >&6; }
2546 else
2547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551   if test "x$ac_ct_AS" = x; then
2552     AS="false"
2553   else
2554     case $cross_compiling:$ac_tool_warned in
2555 yes:)
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2558 ac_tool_warned=yes ;;
2559 esac
2560     AS=$ac_ct_AS
2561   fi
2562 else
2563   AS="$ac_cv_prog_AS"
2564 fi
2565
2566   if test -n "$ac_tool_prefix"; then
2567   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2568 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_DLLTOOL+:} false; then :
2572   $as_echo_n "(cached) " >&6
2573 else
2574   if test -n "$DLLTOOL"; then
2575   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580   IFS=$as_save_IFS
2581   test -z "$as_dir" && as_dir=.
2582     for ac_exec_ext in '' $ac_executable_extensions; do
2583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586     break 2
2587   fi
2588 done
2589   done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 DLLTOOL=$ac_cv_prog_DLLTOOL
2595 if test -n "$DLLTOOL"; then
2596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
2597 $as_echo "$DLLTOOL" >&6; }
2598 else
2599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2601 fi
2602
2603
2604 fi
2605 if test -z "$ac_cv_prog_DLLTOOL"; then
2606   ac_ct_DLLTOOL=$DLLTOOL
2607   # Extract the first word of "dlltool", so it can be a program name with args.
2608 set dummy dlltool; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
2612   $as_echo_n "(cached) " >&6
2613 else
2614   if test -n "$ac_ct_DLLTOOL"; then
2615   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620   IFS=$as_save_IFS
2621   test -z "$as_dir" && as_dir=.
2622     for ac_exec_ext in '' $ac_executable_extensions; do
2623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
2625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626     break 2
2627   fi
2628 done
2629   done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
2635 if test -n "$ac_ct_DLLTOOL"; then
2636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
2637 $as_echo "$ac_ct_DLLTOOL" >&6; }
2638 else
2639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2641 fi
2642
2643   if test "x$ac_ct_DLLTOOL" = x; then
2644     DLLTOOL="false"
2645   else
2646     case $cross_compiling:$ac_tool_warned in
2647 yes:)
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2650 ac_tool_warned=yes ;;
2651 esac
2652     DLLTOOL=$ac_ct_DLLTOOL
2653   fi
2654 else
2655   DLLTOOL="$ac_cv_prog_DLLTOOL"
2656 fi
2657
2658   if test -n "$ac_tool_prefix"; then
2659   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_OBJDUMP+:} false; then :
2664   $as_echo_n "(cached) " >&6
2665 else
2666   if test -n "$OBJDUMP"; then
2667   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674     for ac_exec_ext in '' $ac_executable_extensions; do
2675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681   done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 OBJDUMP=$ac_cv_prog_OBJDUMP
2687 if test -n "$OBJDUMP"; then
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
2689 $as_echo "$OBJDUMP" >&6; }
2690 else
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695
2696 fi
2697 if test -z "$ac_cv_prog_OBJDUMP"; then
2698   ac_ct_OBJDUMP=$OBJDUMP
2699   # Extract the first word of "objdump", so it can be a program name with args.
2700 set dummy objdump; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
2704   $as_echo_n "(cached) " >&6
2705 else
2706   if test -n "$ac_ct_OBJDUMP"; then
2707   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712   IFS=$as_save_IFS
2713   test -z "$as_dir" && as_dir=.
2714     for ac_exec_ext in '' $ac_executable_extensions; do
2715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716     ac_cv_prog_ac_ct_OBJDUMP="objdump"
2717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718     break 2
2719   fi
2720 done
2721   done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
2727 if test -n "$ac_ct_OBJDUMP"; then
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
2729 $as_echo "$ac_ct_OBJDUMP" >&6; }
2730 else
2731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2733 fi
2734
2735   if test "x$ac_ct_OBJDUMP" = x; then
2736     OBJDUMP="false"
2737   else
2738     case $cross_compiling:$ac_tool_warned in
2739 yes:)
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742 ac_tool_warned=yes ;;
2743 esac
2744     OBJDUMP=$ac_ct_OBJDUMP
2745   fi
2746 else
2747   OBJDUMP="$ac_cv_prog_OBJDUMP"
2748 fi
2749
2750   ;;
2751 esac
2752
2753 test -z "$AS" && AS=as
2754
2755
2756
2757
2758
2759 test -z "$DLLTOOL" && DLLTOOL=dlltool
2760
2761
2762
2763
2764
2765 test -z "$OBJDUMP" && OBJDUMP=objdump
2766
2767
2768
2769
2770
2771
2772
2773 case `pwd` in
2774   *\ * | *\     *)
2775     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2776 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2777 esac
2778
2779
2780
2781 macro_version='2.4.2'
2782 macro_revision='1.3337'
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796 ltmain="$ac_aux_dir/ltmain.sh"
2797
2798 # Backslashify metacharacters that are still active within
2799 # double-quoted strings.
2800 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2801
2802 # Same as above, but do not quote variable references.
2803 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2804
2805 # Sed substitution to delay expansion of an escaped shell variable in a
2806 # double_quote_subst'ed string.
2807 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2808
2809 # Sed substitution to delay expansion of an escaped single quote.
2810 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2811
2812 # Sed substitution to avoid accidental globbing in evaled expressions
2813 no_glob_subst='s/\*/\\\*/g'
2814
2815 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2816 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2818
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2820 $as_echo_n "checking how to print strings... " >&6; }
2821 # Test print first, because it will be a builtin if present.
2822 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2823    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2824   ECHO='print -r --'
2825 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2826   ECHO='printf %s\n'
2827 else
2828   # Use this function as a fallback that always works.
2829   func_fallback_echo ()
2830   {
2831     eval 'cat <<_LTECHO_EOF
2832 $1
2833 _LTECHO_EOF'
2834   }
2835   ECHO='func_fallback_echo'
2836 fi
2837
2838 # func_echo_all arg...
2839 # Invoke $ECHO with all args, space-separated.
2840 func_echo_all ()
2841 {
2842     $ECHO ""
2843 }
2844
2845 case "$ECHO" in
2846   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2847 $as_echo "printf" >&6; } ;;
2848   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2849 $as_echo "print -r" >&6; } ;;
2850   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2851 $as_echo "cat" >&6; } ;;
2852 esac
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867 ac_ext=c
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 if test -n "$ac_tool_prefix"; then
2873   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if ${ac_cv_prog_CC+:} false; then :
2878   $as_echo_n "(cached) " >&6
2879 else
2880   if test -n "$CC"; then
2881   ac_cv_prog_CC="$CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888     for ac_exec_ext in '' $ac_executable_extensions; do
2889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892     break 2
2893   fi
2894 done
2895   done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 CC=$ac_cv_prog_CC
2901 if test -n "$CC"; then
2902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2903 $as_echo "$CC" >&6; }
2904 else
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907 fi
2908
2909
2910 fi
2911 if test -z "$ac_cv_prog_CC"; then
2912   ac_ct_CC=$CC
2913   # Extract the first word of "gcc", so it can be a program name with args.
2914 set dummy gcc; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2918   $as_echo_n "(cached) " >&6
2919 else
2920   if test -n "$ac_ct_CC"; then
2921   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926   IFS=$as_save_IFS
2927   test -z "$as_dir" && as_dir=.
2928     for ac_exec_ext in '' $ac_executable_extensions; do
2929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930     ac_cv_prog_ac_ct_CC="gcc"
2931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932     break 2
2933   fi
2934 done
2935   done
2936 IFS=$as_save_IFS
2937
2938 fi
2939 fi
2940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2941 if test -n "$ac_ct_CC"; then
2942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2943 $as_echo "$ac_ct_CC" >&6; }
2944 else
2945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2947 fi
2948
2949   if test "x$ac_ct_CC" = x; then
2950     CC=""
2951   else
2952     case $cross_compiling:$ac_tool_warned in
2953 yes:)
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956 ac_tool_warned=yes ;;
2957 esac
2958     CC=$ac_ct_CC
2959   fi
2960 else
2961   CC="$ac_cv_prog_CC"
2962 fi
2963
2964 if test -z "$CC"; then
2965           if test -n "$ac_tool_prefix"; then
2966     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}cc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_CC+:} false; then :
2971   $as_echo_n "(cached) " >&6
2972 else
2973   if test -n "$CC"; then
2974   ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979   IFS=$as_save_IFS
2980   test -z "$as_dir" && as_dir=.
2981     for ac_exec_ext in '' $ac_executable_extensions; do
2982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983     ac_cv_prog_CC="${ac_tool_prefix}cc"
2984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985     break 2
2986   fi
2987 done
2988   done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003   fi
3004 fi
3005 if test -z "$CC"; then
3006   # Extract the first word of "cc", so it can be a program name with args.
3007 set dummy cc; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_CC+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   if test -n "$CC"; then
3014   ac_cv_prog_CC="$CC" # Let the user override the test.
3015 else
3016   ac_prog_rejected=no
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020   IFS=$as_save_IFS
3021   test -z "$as_dir" && as_dir=.
3022     for ac_exec_ext in '' $ac_executable_extensions; do
3023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3025        ac_prog_rejected=yes
3026        continue
3027      fi
3028     ac_cv_prog_CC="cc"
3029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030     break 2
3031   fi
3032 done
3033   done
3034 IFS=$as_save_IFS
3035
3036 if test $ac_prog_rejected = yes; then
3037   # We found a bogon in the path, so make sure we never use it.
3038   set dummy $ac_cv_prog_CC
3039   shift
3040   if test $# != 0; then
3041     # We chose a different compiler from the bogus one.
3042     # However, it has the same basename, so the bogon will be chosen
3043     # first if we set CC to just the basename; use the full file name.
3044     shift
3045     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3046   fi
3047 fi
3048 fi
3049 fi
3050 CC=$ac_cv_prog_CC
3051 if test -n "$CC"; then
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053 $as_echo "$CC" >&6; }
3054 else
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3057 fi
3058
3059
3060 fi
3061 if test -z "$CC"; then
3062   if test -n "$ac_tool_prefix"; then
3063   for ac_prog in cl.exe
3064   do
3065     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_CC+:} false; then :
3070   $as_echo_n "(cached) " >&6
3071 else
3072   if test -n "$CC"; then
3073   ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080     for ac_exec_ext in '' $ac_executable_extensions; do
3081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087   done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3096 else
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102     test -n "$CC" && break
3103   done
3104 fi
3105 if test -z "$CC"; then
3106   ac_ct_CC=$CC
3107   for ac_prog in cl.exe
3108 do
3109   # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3114   $as_echo_n "(cached) " >&6
3115 else
3116   if test -n "$ac_ct_CC"; then
3117   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124     for ac_exec_ext in '' $ac_executable_extensions; do
3125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126     ac_cv_prog_ac_ct_CC="$ac_prog"
3127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128     break 2
3129   fi
3130 done
3131   done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3137 if test -n "$ac_ct_CC"; then
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3139 $as_echo "$ac_ct_CC" >&6; }
3140 else
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145
3146   test -n "$ac_ct_CC" && break
3147 done
3148
3149   if test "x$ac_ct_CC" = x; then
3150     CC=""
3151   else
3152     case $cross_compiling:$ac_tool_warned in
3153 yes:)
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3156 ac_tool_warned=yes ;;
3157 esac
3158     CC=$ac_ct_CC
3159   fi
3160 fi
3161
3162 fi
3163
3164
3165 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error $? "no acceptable C compiler found in \$PATH
3168 See \`config.log' for more details" "$LINENO" 5; }
3169
3170 # Provide some information about the compiler.
3171 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3172 set X $ac_compile
3173 ac_compiler=$2
3174 for ac_option in --version -v -V -qversion; do
3175   { { ac_try="$ac_compiler $ac_option >&5"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3183   ac_status=$?
3184   if test -s conftest.err; then
3185     sed '10a\
3186 ... rest of stderr output deleted ...
3187          10q' conftest.err >conftest.er1
3188     cat conftest.er1 >&5
3189   fi
3190   rm -f conftest.er1 conftest.err
3191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192   test $ac_status = 0; }
3193 done
3194
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h.  */
3197
3198 int
3199 main ()
3200 {
3201
3202   ;
3203   return 0;
3204 }
3205 _ACEOF
3206 ac_clean_files_save=$ac_clean_files
3207 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3208 # Try to create an executable without -o first, disregard a.out.
3209 # It will help us diagnose broken compilers, and finding out an intuition
3210 # of exeext.
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3212 $as_echo_n "checking whether the C compiler works... " >&6; }
3213 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3214
3215 # The possible output files:
3216 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3217
3218 ac_rmfiles=
3219 for ac_file in $ac_files
3220 do
3221   case $ac_file in
3222     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3223     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3224   esac
3225 done
3226 rm -f $ac_rmfiles
3227
3228 if { { ac_try="$ac_link_default"
3229 case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235   (eval "$ac_link_default") 2>&5
3236   ac_status=$?
3237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238   test $ac_status = 0; }; then :
3239   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3240 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3241 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3242 # so that the user can short-circuit this test for compilers unknown to
3243 # Autoconf.
3244 for ac_file in $ac_files ''
3245 do
3246   test -f "$ac_file" || continue
3247   case $ac_file in
3248     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3249         ;;
3250     [ab].out )
3251         # We found the default executable, but exeext='' is most
3252         # certainly right.
3253         break;;
3254     *.* )
3255         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3256         then :; else
3257            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3258         fi
3259         # We set ac_cv_exeext here because the later test for it is not
3260         # safe: cross compilers may not add the suffix if given an `-o'
3261         # argument, so we may need to know it at that point already.
3262         # Even if this section looks crufty: it has the advantage of
3263         # actually working.
3264         break;;
3265     * )
3266         break;;
3267   esac
3268 done
3269 test "$ac_cv_exeext" = no && ac_cv_exeext=
3270
3271 else
3272   ac_file=''
3273 fi
3274 if test -z "$ac_file"; then :
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 $as_echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error 77 "C compiler cannot create executables
3283 See \`config.log' for more details" "$LINENO" 5; }
3284 else
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3287 fi
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3289 $as_echo_n "checking for C compiler default output file name... " >&6; }
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3291 $as_echo "$ac_file" >&6; }
3292 ac_exeext=$ac_cv_exeext
3293
3294 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3295 ac_clean_files=$ac_clean_files_save
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3297 $as_echo_n "checking for suffix of executables... " >&6; }
3298 if { { ac_try="$ac_link"
3299 case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305   (eval "$ac_link") 2>&5
3306   ac_status=$?
3307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308   test $ac_status = 0; }; then :
3309   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3310 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3311 # work properly (i.e., refer to `conftest.exe'), while it won't with
3312 # `rm'.
3313 for ac_file in conftest.exe conftest conftest.*; do
3314   test -f "$ac_file" || continue
3315   case $ac_file in
3316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318           break;;
3319     * ) break;;
3320   esac
3321 done
3322 else
3323   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3326 See \`config.log' for more details" "$LINENO" 5; }
3327 fi
3328 rm -f conftest conftest$ac_cv_exeext
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3330 $as_echo "$ac_cv_exeext" >&6; }
3331
3332 rm -f conftest.$ac_ext
3333 EXEEXT=$ac_cv_exeext
3334 ac_exeext=$EXEEXT
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h.  */
3337 #include <stdio.h>
3338 int
3339 main ()
3340 {
3341 FILE *f = fopen ("conftest.out", "w");
3342  return ferror (f) || fclose (f) != 0;
3343
3344   ;
3345   return 0;
3346 }
3347 _ACEOF
3348 ac_clean_files="$ac_clean_files conftest.out"
3349 # Check that the compiler produces executables we can run.  If not, either
3350 # the compiler is broken, or we cross compile.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3352 $as_echo_n "checking whether we are cross compiling... " >&6; }
3353 if test "$cross_compiling" != yes; then
3354   { { ac_try="$ac_link"
3355 case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361   (eval "$ac_link") 2>&5
3362   ac_status=$?
3363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364   test $ac_status = 0; }
3365   if { ac_try='./conftest$ac_cv_exeext'
3366   { { case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372   (eval "$ac_try") 2>&5
3373   ac_status=$?
3374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375   test $ac_status = 0; }; }; then
3376     cross_compiling=no
3377   else
3378     if test "$cross_compiling" = maybe; then
3379         cross_compiling=yes
3380     else
3381         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error $? "cannot run C compiled programs.
3384 If you meant to cross compile, use \`--host'.
3385 See \`config.log' for more details" "$LINENO" 5; }
3386     fi
3387   fi
3388 fi
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3390 $as_echo "$cross_compiling" >&6; }
3391
3392 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3393 ac_clean_files=$ac_clean_files_save
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3395 $as_echo_n "checking for suffix of object files... " >&6; }
3396 if ${ac_cv_objext+:} false; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h.  */
3401
3402 int
3403 main ()
3404 {
3405
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.o conftest.obj
3411 if { { ac_try="$ac_compile"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418   (eval "$ac_compile") 2>&5
3419   ac_status=$?
3420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421   test $ac_status = 0; }; then :
3422   for ac_file in conftest.o conftest.obj conftest.*; do
3423   test -f "$ac_file" || continue;
3424   case $ac_file in
3425     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3426     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3427        break;;
3428   esac
3429 done
3430 else
3431   $as_echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error $? "cannot compute suffix of object files: cannot compile
3437 See \`config.log' for more details" "$LINENO" 5; }
3438 fi
3439 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3442 $as_echo "$ac_cv_objext" >&6; }
3443 OBJEXT=$ac_cv_objext
3444 ac_objext=$OBJEXT
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3446 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3447 if ${ac_cv_c_compiler_gnu+:} false; then :
3448   $as_echo_n "(cached) " >&6
3449 else
3450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h.  */
3452
3453 int
3454 main ()
3455 {
3456 #ifndef __GNUC__
3457        choke me
3458 #endif
3459
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 if ac_fn_c_try_compile "$LINENO"; then :
3465   ac_compiler_gnu=yes
3466 else
3467   ac_compiler_gnu=no
3468 fi
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3471
3472 fi
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3474 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3475 if test $ac_compiler_gnu = yes; then
3476   GCC=yes
3477 else
3478   GCC=
3479 fi
3480 ac_test_CFLAGS=${CFLAGS+set}
3481 ac_save_CFLAGS=$CFLAGS
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3483 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3484 if ${ac_cv_prog_cc_g+:} false; then :
3485   $as_echo_n "(cached) " >&6
3486 else
3487   ac_save_c_werror_flag=$ac_c_werror_flag
3488    ac_c_werror_flag=yes
3489    ac_cv_prog_cc_g=no
3490    CFLAGS="-g"
3491    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h.  */
3493
3494 int
3495 main ()
3496 {
3497
3498   ;
3499   return 0;
3500 }
3501 _ACEOF
3502 if ac_fn_c_try_compile "$LINENO"; then :
3503   ac_cv_prog_cc_g=yes
3504 else
3505   CFLAGS=""
3506       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h.  */
3508
3509 int
3510 main ()
3511 {
3512
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518
3519 else
3520   ac_c_werror_flag=$ac_save_c_werror_flag
3521          CFLAGS="-g"
3522          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 if ac_fn_c_try_compile "$LINENO"; then :
3534   ac_cv_prog_cc_g=yes
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 fi
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 fi
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541    ac_c_werror_flag=$ac_save_c_werror_flag
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3544 $as_echo "$ac_cv_prog_cc_g" >&6; }
3545 if test "$ac_test_CFLAGS" = set; then
3546   CFLAGS=$ac_save_CFLAGS
3547 elif test $ac_cv_prog_cc_g = yes; then
3548   if test "$GCC" = yes; then
3549     CFLAGS="-g -O2"
3550   else
3551     CFLAGS="-g"
3552   fi
3553 else
3554   if test "$GCC" = yes; then
3555     CFLAGS="-O2"
3556   else
3557     CFLAGS=
3558   fi
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3561 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3562 if ${ac_cv_prog_cc_c89+:} false; then :
3563   $as_echo_n "(cached) " >&6
3564 else
3565   ac_cv_prog_cc_c89=no
3566 ac_save_CC=$CC
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h.  */
3569 #include <stdarg.h>
3570 #include <stdio.h>
3571 struct stat;
3572 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3573 struct buf { int x; };
3574 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3575 static char *e (p, i)
3576      char **p;
3577      int i;
3578 {
3579   return p[i];
3580 }
3581 static char *f (char * (*g) (char **, int), char **p, ...)
3582 {
3583   char *s;
3584   va_list v;
3585   va_start (v,p);
3586   s = g (p, va_arg (v,int));
3587   va_end (v);
3588   return s;
3589 }
3590
3591 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3592    function prototypes and stuff, but not '\xHH' hex character constants.
3593    These don't provoke an error unfortunately, instead are silently treated
3594    as 'x'.  The following induces an error, until -std is added to get
3595    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3596    array size at least.  It's necessary to write '\x00'==0 to get something
3597    that's true only with -std.  */
3598 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3599
3600 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3601    inside strings and character constants.  */
3602 #define FOO(x) 'x'
3603 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3604
3605 int test (int i, double x);
3606 struct s1 {int (*f) (int a);};
3607 struct s2 {int (*f) (double a);};
3608 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3609 int argc;
3610 char **argv;
3611 int
3612 main ()
3613 {
3614 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3620         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3621 do
3622   CC="$ac_save_CC $ac_arg"
3623   if ac_fn_c_try_compile "$LINENO"; then :
3624   ac_cv_prog_cc_c89=$ac_arg
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext
3627   test "x$ac_cv_prog_cc_c89" != "xno" && break
3628 done
3629 rm -f conftest.$ac_ext
3630 CC=$ac_save_CC
3631
3632 fi
3633 # AC_CACHE_VAL
3634 case "x$ac_cv_prog_cc_c89" in
3635   x)
3636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3637 $as_echo "none needed" >&6; } ;;
3638   xno)
3639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3640 $as_echo "unsupported" >&6; } ;;
3641   *)
3642     CC="$CC $ac_cv_prog_cc_c89"
3643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3644 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3645 esac
3646 if test "x$ac_cv_prog_cc_c89" != xno; then :
3647
3648 fi
3649
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3657 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3658 if ${ac_cv_path_SED+:} false; then :
3659   $as_echo_n "(cached) " >&6
3660 else
3661             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3662      for ac_i in 1 2 3 4 5 6 7; do
3663        ac_script="$ac_script$as_nl$ac_script"
3664      done
3665      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3666      { ac_script=; unset ac_script;}
3667      if test -z "$SED"; then
3668   ac_path_SED_found=false
3669   # Loop through the user's path and test for each of PROGNAME-LIST
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675     for ac_prog in sed gsed; do
3676     for ac_exec_ext in '' $ac_executable_extensions; do
3677       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3678       as_fn_executable_p "$ac_path_SED" || continue
3679 # Check for GNU ac_path_SED and select it if it is found.
3680   # Check for GNU $ac_path_SED
3681 case `"$ac_path_SED" --version 2>&1` in
3682 *GNU*)
3683   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3684 *)
3685   ac_count=0
3686   $as_echo_n 0123456789 >"conftest.in"
3687   while :
3688   do
3689     cat "conftest.in" "conftest.in" >"conftest.tmp"
3690     mv "conftest.tmp" "conftest.in"
3691     cp "conftest.in" "conftest.nl"
3692     $as_echo '' >> "conftest.nl"
3693     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695     as_fn_arith $ac_count + 1 && ac_count=$as_val
3696     if test $ac_count -gt ${ac_path_SED_max-0}; then
3697       # Best one so far, save it but keep looking for a better one
3698       ac_cv_path_SED="$ac_path_SED"
3699       ac_path_SED_max=$ac_count
3700     fi
3701     # 10*(2^10) chars as input seems more than enough
3702     test $ac_count -gt 10 && break
3703   done
3704   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705 esac
3706
3707       $ac_path_SED_found && break 3
3708     done
3709   done
3710   done
3711 IFS=$as_save_IFS
3712   if test -z "$ac_cv_path_SED"; then
3713     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3714   fi
3715 else
3716   ac_cv_path_SED=$SED
3717 fi
3718
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3721 $as_echo "$ac_cv_path_SED" >&6; }
3722  SED="$ac_cv_path_SED"
3723   rm -f conftest.sed
3724
3725 test -z "$SED" && SED=sed
3726 Xsed="$SED -e 1s/^X//"
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3739 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3740 if ${ac_cv_path_GREP+:} false; then :
3741   $as_echo_n "(cached) " >&6
3742 else
3743   if test -z "$GREP"; then
3744   ac_path_GREP_found=false
3745   # Loop through the user's path and test for each of PROGNAME-LIST
3746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748 do
3749   IFS=$as_save_IFS
3750   test -z "$as_dir" && as_dir=.
3751     for ac_prog in grep ggrep; do
3752     for ac_exec_ext in '' $ac_executable_extensions; do
3753       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3754       as_fn_executable_p "$ac_path_GREP" || continue
3755 # Check for GNU ac_path_GREP and select it if it is found.
3756   # Check for GNU $ac_path_GREP
3757 case `"$ac_path_GREP" --version 2>&1` in
3758 *GNU*)
3759   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3760 *)
3761   ac_count=0
3762   $as_echo_n 0123456789 >"conftest.in"
3763   while :
3764   do
3765     cat "conftest.in" "conftest.in" >"conftest.tmp"
3766     mv "conftest.tmp" "conftest.in"
3767     cp "conftest.in" "conftest.nl"
3768     $as_echo 'GREP' >> "conftest.nl"
3769     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771     as_fn_arith $ac_count + 1 && ac_count=$as_val
3772     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3773       # Best one so far, save it but keep looking for a better one
3774       ac_cv_path_GREP="$ac_path_GREP"
3775       ac_path_GREP_max=$ac_count
3776     fi
3777     # 10*(2^10) chars as input seems more than enough
3778     test $ac_count -gt 10 && break
3779   done
3780   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781 esac
3782
3783       $ac_path_GREP_found && break 3
3784     done
3785   done
3786   done
3787 IFS=$as_save_IFS
3788   if test -z "$ac_cv_path_GREP"; then
3789     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3790   fi
3791 else
3792   ac_cv_path_GREP=$GREP
3793 fi
3794
3795 fi
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3797 $as_echo "$ac_cv_path_GREP" >&6; }
3798  GREP="$ac_cv_path_GREP"
3799
3800
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3802 $as_echo_n "checking for egrep... " >&6; }
3803 if ${ac_cv_path_EGREP+:} false; then :
3804   $as_echo_n "(cached) " >&6
3805 else
3806   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3807    then ac_cv_path_EGREP="$GREP -E"
3808    else
3809      if test -z "$EGREP"; then
3810   ac_path_EGREP_found=false
3811   # Loop through the user's path and test for each of PROGNAME-LIST
3812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3814 do
3815   IFS=$as_save_IFS
3816   test -z "$as_dir" && as_dir=.
3817     for ac_prog in egrep; do
3818     for ac_exec_ext in '' $ac_executable_extensions; do
3819       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3820       as_fn_executable_p "$ac_path_EGREP" || continue
3821 # Check for GNU ac_path_EGREP and select it if it is found.
3822   # Check for GNU $ac_path_EGREP
3823 case `"$ac_path_EGREP" --version 2>&1` in
3824 *GNU*)
3825   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3826 *)
3827   ac_count=0
3828   $as_echo_n 0123456789 >"conftest.in"
3829   while :
3830   do
3831     cat "conftest.in" "conftest.in" >"conftest.tmp"
3832     mv "conftest.tmp" "conftest.in"
3833     cp "conftest.in" "conftest.nl"
3834     $as_echo 'EGREP' >> "conftest.nl"
3835     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3836     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3837     as_fn_arith $ac_count + 1 && ac_count=$as_val
3838     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3839       # Best one so far, save it but keep looking for a better one
3840       ac_cv_path_EGREP="$ac_path_EGREP"
3841       ac_path_EGREP_max=$ac_count
3842     fi
3843     # 10*(2^10) chars as input seems more than enough
3844     test $ac_count -gt 10 && break
3845   done
3846   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3847 esac
3848
3849       $ac_path_EGREP_found && break 3
3850     done
3851   done
3852   done
3853 IFS=$as_save_IFS
3854   if test -z "$ac_cv_path_EGREP"; then
3855     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3856   fi
3857 else
3858   ac_cv_path_EGREP=$EGREP
3859 fi
3860
3861    fi
3862 fi
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3864 $as_echo "$ac_cv_path_EGREP" >&6; }
3865  EGREP="$ac_cv_path_EGREP"
3866
3867
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3869 $as_echo_n "checking for fgrep... " >&6; }
3870 if ${ac_cv_path_FGREP+:} false; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3874    then ac_cv_path_FGREP="$GREP -F"
3875    else
3876      if test -z "$FGREP"; then
3877   ac_path_FGREP_found=false
3878   # Loop through the user's path and test for each of PROGNAME-LIST
3879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3881 do
3882   IFS=$as_save_IFS
3883   test -z "$as_dir" && as_dir=.
3884     for ac_prog in fgrep; do
3885     for ac_exec_ext in '' $ac_executable_extensions; do
3886       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3887       as_fn_executable_p "$ac_path_FGREP" || continue
3888 # Check for GNU ac_path_FGREP and select it if it is found.
3889   # Check for GNU $ac_path_FGREP
3890 case `"$ac_path_FGREP" --version 2>&1` in
3891 *GNU*)
3892   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3893 *)
3894   ac_count=0
3895   $as_echo_n 0123456789 >"conftest.in"
3896   while :
3897   do
3898     cat "conftest.in" "conftest.in" >"conftest.tmp"
3899     mv "conftest.tmp" "conftest.in"
3900     cp "conftest.in" "conftest.nl"
3901     $as_echo 'FGREP' >> "conftest.nl"
3902     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904     as_fn_arith $ac_count + 1 && ac_count=$as_val
3905     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3906       # Best one so far, save it but keep looking for a better one
3907       ac_cv_path_FGREP="$ac_path_FGREP"
3908       ac_path_FGREP_max=$ac_count
3909     fi
3910     # 10*(2^10) chars as input seems more than enough
3911     test $ac_count -gt 10 && break
3912   done
3913   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914 esac
3915
3916       $ac_path_FGREP_found && break 3
3917     done
3918   done
3919   done
3920 IFS=$as_save_IFS
3921   if test -z "$ac_cv_path_FGREP"; then
3922     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3923   fi
3924 else
3925   ac_cv_path_FGREP=$FGREP
3926 fi
3927
3928    fi
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3931 $as_echo "$ac_cv_path_FGREP" >&6; }
3932  FGREP="$ac_cv_path_FGREP"
3933
3934
3935 test -z "$GREP" && GREP=grep
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955 # Check whether --with-gnu-ld was given.
3956 if test "${with_gnu_ld+set}" = set; then :
3957   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3958 else
3959   with_gnu_ld=no
3960 fi
3961
3962 ac_prog=ld
3963 if test "$GCC" = yes; then
3964   # Check if gcc -print-prog-name=ld gives a path.
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3966 $as_echo_n "checking for ld used by $CC... " >&6; }
3967   case $host in
3968   *-*-mingw*)
3969     # gcc leaves a trailing carriage return which upsets mingw
3970     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3971   *)
3972     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3973   esac
3974   case $ac_prog in
3975     # Accept absolute paths.
3976     [\\/]* | ?:[\\/]*)
3977       re_direlt='/[^/][^/]*/\.\./'
3978       # Canonicalize the pathname of ld
3979       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3980       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3981         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3982       done
3983       test -z "$LD" && LD="$ac_prog"
3984       ;;
3985   "")
3986     # If it fails, then pretend we aren't using GCC.
3987     ac_prog=ld
3988     ;;
3989   *)
3990     # If it is relative, then search for the first ld in PATH.
3991     with_gnu_ld=unknown
3992     ;;
3993   esac
3994 elif test "$with_gnu_ld" = yes; then
3995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3996 $as_echo_n "checking for GNU ld... " >&6; }
3997 else
3998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3999 $as_echo_n "checking for non-GNU ld... " >&6; }
4000 fi
4001 if ${lt_cv_path_LD+:} false; then :
4002   $as_echo_n "(cached) " >&6
4003 else
4004   if test -z "$LD"; then
4005   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4006   for ac_dir in $PATH; do
4007     IFS="$lt_save_ifs"
4008     test -z "$ac_dir" && ac_dir=.
4009     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4010       lt_cv_path_LD="$ac_dir/$ac_prog"
4011       # Check to see if the program is GNU ld.  I'd rather use --version,
4012       # but apparently some variants of GNU ld only accept -v.
4013       # Break only if it was the GNU/non-GNU ld that we prefer.
4014       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4015       *GNU* | *'with BFD'*)
4016         test "$with_gnu_ld" != no && break
4017         ;;
4018       *)
4019         test "$with_gnu_ld" != yes && break
4020         ;;
4021       esac
4022     fi
4023   done
4024   IFS="$lt_save_ifs"
4025 else
4026   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4027 fi
4028 fi
4029
4030 LD="$lt_cv_path_LD"
4031 if test -n "$LD"; then
4032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4033 $as_echo "$LD" >&6; }
4034 else
4035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4037 fi
4038 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4040 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4041 if ${lt_cv_prog_gnu_ld+:} false; then :
4042   $as_echo_n "(cached) " >&6
4043 else
4044   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4045 case `$LD -v 2>&1 </dev/null` in
4046 *GNU* | *'with BFD'*)
4047   lt_cv_prog_gnu_ld=yes
4048   ;;
4049 *)
4050   lt_cv_prog_gnu_ld=no
4051   ;;
4052 esac
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4055 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4056 with_gnu_ld=$lt_cv_prog_gnu_ld
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4067 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4068 if ${lt_cv_path_NM+:} false; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071   if test -n "$NM"; then
4072   # Let the user override the test.
4073   lt_cv_path_NM="$NM"
4074 else
4075   lt_nm_to_check="${ac_tool_prefix}nm"
4076   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4077     lt_nm_to_check="$lt_nm_to_check nm"
4078   fi
4079   for lt_tmp_nm in $lt_nm_to_check; do
4080     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4081     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4082       IFS="$lt_save_ifs"
4083       test -z "$ac_dir" && ac_dir=.
4084       tmp_nm="$ac_dir/$lt_tmp_nm"
4085       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4086         # Check to see if the nm accepts a BSD-compat flag.
4087         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4088         #   nm: unknown option "B" ignored
4089         # Tru64's nm complains that /dev/null is an invalid object file
4090         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4091         */dev/null* | *'Invalid file or object type'*)
4092           lt_cv_path_NM="$tmp_nm -B"
4093           break
4094           ;;
4095         *)
4096           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4097           */dev/null*)
4098             lt_cv_path_NM="$tmp_nm -p"
4099             break
4100             ;;
4101           *)
4102             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4103             continue # so that we can try to find one that supports BSD flags
4104             ;;
4105           esac
4106           ;;
4107         esac
4108       fi
4109     done
4110     IFS="$lt_save_ifs"
4111   done
4112   : ${lt_cv_path_NM=no}
4113 fi
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4116 $as_echo "$lt_cv_path_NM" >&6; }
4117 if test "$lt_cv_path_NM" != "no"; then
4118   NM="$lt_cv_path_NM"
4119 else
4120   # Didn't find any BSD compatible name lister, look for dumpbin.
4121   if test -n "$DUMPBIN"; then :
4122     # Let the user override the test.
4123   else
4124     if test -n "$ac_tool_prefix"; then
4125   for ac_prog in dumpbin "link -dump"
4126   do
4127     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_DUMPBIN+:} false; then :
4132   $as_echo_n "(cached) " >&6
4133 else
4134   if test -n "$DUMPBIN"; then
4135   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142     for ac_exec_ext in '' $ac_executable_extensions; do
4143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146     break 2
4147   fi
4148 done
4149   done
4150 IFS=$as_save_IFS
4151
4152 fi
4153 fi
4154 DUMPBIN=$ac_cv_prog_DUMPBIN
4155 if test -n "$DUMPBIN"; then
4156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4157 $as_echo "$DUMPBIN" >&6; }
4158 else
4159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163
4164     test -n "$DUMPBIN" && break
4165   done
4166 fi
4167 if test -z "$DUMPBIN"; then
4168   ac_ct_DUMPBIN=$DUMPBIN
4169   for ac_prog in dumpbin "link -dump"
4170 do
4171   # Extract the first word of "$ac_prog", so it can be a program name with args.
4172 set dummy $ac_prog; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4176   $as_echo_n "(cached) " >&6
4177 else
4178   if test -n "$ac_ct_DUMPBIN"; then
4179   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186     for ac_exec_ext in '' $ac_executable_extensions; do
4187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190     break 2
4191   fi
4192 done
4193   done
4194 IFS=$as_save_IFS
4195
4196 fi
4197 fi
4198 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4199 if test -n "$ac_ct_DUMPBIN"; then
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4201 $as_echo "$ac_ct_DUMPBIN" >&6; }
4202 else
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206
4207
4208   test -n "$ac_ct_DUMPBIN" && break
4209 done
4210
4211   if test "x$ac_ct_DUMPBIN" = x; then
4212     DUMPBIN=":"
4213   else
4214     case $cross_compiling:$ac_tool_warned in
4215 yes:)
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4218 ac_tool_warned=yes ;;
4219 esac
4220     DUMPBIN=$ac_ct_DUMPBIN
4221   fi
4222 fi
4223
4224     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4225     *COFF*)
4226       DUMPBIN="$DUMPBIN -symbols"
4227       ;;
4228     *)
4229       DUMPBIN=:
4230       ;;
4231     esac
4232   fi
4233
4234   if test "$DUMPBIN" != ":"; then
4235     NM="$DUMPBIN"
4236   fi
4237 fi
4238 test -z "$NM" && NM=nm
4239
4240
4241
4242
4243
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4246 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4247 if ${lt_cv_nm_interface+:} false; then :
4248   $as_echo_n "(cached) " >&6
4249 else
4250   lt_cv_nm_interface="BSD nm"
4251   echo "int some_variable = 0;" > conftest.$ac_ext
4252   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4253   (eval "$ac_compile" 2>conftest.err)
4254   cat conftest.err >&5
4255   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4256   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4257   cat conftest.err >&5
4258   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4259   cat conftest.out >&5
4260   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4261     lt_cv_nm_interface="MS dumpbin"
4262   fi
4263   rm -f conftest*
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4266 $as_echo "$lt_cv_nm_interface" >&6; }
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4269 $as_echo_n "checking whether ln -s works... " >&6; }
4270 LN_S=$as_ln_s
4271 if test "$LN_S" = "ln -s"; then
4272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4273 $as_echo "yes" >&6; }
4274 else
4275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4276 $as_echo "no, using $LN_S" >&6; }
4277 fi
4278
4279 # find the maximum length of command line arguments
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4281 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4282 if ${lt_cv_sys_max_cmd_len+:} false; then :
4283   $as_echo_n "(cached) " >&6
4284 else
4285     i=0
4286   teststring="ABCD"
4287
4288   case $build_os in
4289   msdosdjgpp*)
4290     # On DJGPP, this test can blow up pretty badly due to problems in libc
4291     # (any single argument exceeding 2000 bytes causes a buffer overrun
4292     # during glob expansion).  Even if it were fixed, the result of this
4293     # check would be larger than it should be.
4294     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4295     ;;
4296
4297   gnu*)
4298     # Under GNU Hurd, this test is not required because there is
4299     # no limit to the length of command line arguments.
4300     # Libtool will interpret -1 as no limit whatsoever
4301     lt_cv_sys_max_cmd_len=-1;
4302     ;;
4303
4304   cygwin* | mingw* | cegcc*)
4305     # On Win9x/ME, this test blows up -- it succeeds, but takes
4306     # about 5 minutes as the teststring grows exponentially.
4307     # Worse, since 9x/ME are not pre-emptively multitasking,
4308     # you end up with a "frozen" computer, even though with patience
4309     # the test eventually succeeds (with a max line length of 256k).
4310     # Instead, let's just punt: use the minimum linelength reported by
4311     # all of the supported platforms: 8192 (on NT/2K/XP).
4312     lt_cv_sys_max_cmd_len=8192;
4313     ;;
4314
4315   mint*)
4316     # On MiNT this can take a long time and run out of memory.
4317     lt_cv_sys_max_cmd_len=8192;
4318     ;;
4319
4320   amigaos*)
4321     # On AmigaOS with pdksh, this test takes hours, literally.
4322     # So we just punt and use a minimum line length of 8192.
4323     lt_cv_sys_max_cmd_len=8192;
4324     ;;
4325
4326   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4327     # This has been around since 386BSD, at least.  Likely further.
4328     if test -x /sbin/sysctl; then
4329       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4330     elif test -x /usr/sbin/sysctl; then
4331       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4332     else
4333       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4334     fi
4335     # And add a safety zone
4336     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4337     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4338     ;;
4339
4340   interix*)
4341     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4342     lt_cv_sys_max_cmd_len=196608
4343     ;;
4344
4345   os2*)
4346     # The test takes a long time on OS/2.
4347     lt_cv_sys_max_cmd_len=8192
4348     ;;
4349
4350   osf*)
4351     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4352     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4353     # nice to cause kernel panics so lets avoid the loop below.
4354     # First set a reasonable default.
4355     lt_cv_sys_max_cmd_len=16384
4356     #
4357     if test -x /sbin/sysconfig; then
4358       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4359         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4360       esac
4361     fi
4362     ;;
4363   sco3.2v5*)
4364     lt_cv_sys_max_cmd_len=102400
4365     ;;
4366   sysv5* | sco5v6* | sysv4.2uw2*)
4367     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4368     if test -n "$kargmax"; then
4369       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4370     else
4371       lt_cv_sys_max_cmd_len=32768
4372     fi
4373     ;;
4374   *)
4375     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4376     if test -n "$lt_cv_sys_max_cmd_len" && \
4377         test undefined != "$lt_cv_sys_max_cmd_len"; then
4378       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4379       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4380     else
4381       # Make teststring a little bigger before we do anything with it.
4382       # a 1K string should be a reasonable start.
4383       for i in 1 2 3 4 5 6 7 8 ; do
4384         teststring=$teststring$teststring
4385       done
4386       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4387       # If test is not a shell built-in, we'll probably end up computing a
4388       # maximum length that is only half of the actual maximum length, but
4389       # we can't tell.
4390       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4391                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4392               test $i != 17 # 1/2 MB should be enough
4393       do
4394         i=`expr $i + 1`
4395         teststring=$teststring$teststring
4396       done
4397       # Only check the string length outside the loop.
4398       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4399       teststring=
4400       # Add a significant safety factor because C++ compilers can tack on
4401       # massive amounts of additional arguments before passing them to the
4402       # linker.  It appears as though 1/2 is a usable value.
4403       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4404     fi
4405     ;;
4406   esac
4407
4408 fi
4409
4410 if test -n $lt_cv_sys_max_cmd_len ; then
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4412 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4413 else
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4415 $as_echo "none" >&6; }
4416 fi
4417 max_cmd_len=$lt_cv_sys_max_cmd_len
4418
4419
4420
4421
4422
4423
4424 : ${CP="cp -f"}
4425 : ${MV="mv -f"}
4426 : ${RM="rm -f"}
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4429 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4430 # Try some XSI features
4431 xsi_shell=no
4432 ( _lt_dummy="a/b/c"
4433   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4434       = c,a/b,b/c, \
4435     && eval 'test $(( 1 + 1 )) -eq 2 \
4436     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4437   && xsi_shell=yes
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4439 $as_echo "$xsi_shell" >&6; }
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4443 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4444 lt_shell_append=no
4445 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4446     >/dev/null 2>&1 \
4447   && lt_shell_append=yes
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4449 $as_echo "$lt_shell_append" >&6; }
4450
4451
4452 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4453   lt_unset=unset
4454 else
4455   lt_unset=false
4456 fi
4457
4458
4459
4460
4461
4462 # test EBCDIC or ASCII
4463 case `echo X|tr X '\101'` in
4464  A) # ASCII based system
4465     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4466   lt_SP2NL='tr \040 \012'
4467   lt_NL2SP='tr \015\012 \040\040'
4468   ;;
4469  *) # EBCDIC based system
4470   lt_SP2NL='tr \100 \n'
4471   lt_NL2SP='tr \r\n \100\100'
4472   ;;
4473 esac
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4484 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4485 if ${lt_cv_to_host_file_cmd+:} false; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488   case $host in
4489   *-*-mingw* )
4490     case $build in
4491       *-*-mingw* ) # actually msys
4492         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4493         ;;
4494       *-*-cygwin* )
4495         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4496         ;;
4497       * ) # otherwise, assume *nix
4498         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4499         ;;
4500     esac
4501     ;;
4502   *-*-cygwin* )
4503     case $build in
4504       *-*-mingw* ) # actually msys
4505         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4506         ;;
4507       *-*-cygwin* )
4508         lt_cv_to_host_file_cmd=func_convert_file_noop
4509         ;;
4510       * ) # otherwise, assume *nix
4511         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4512         ;;
4513     esac
4514     ;;
4515   * ) # unhandled hosts (and "normal" native builds)
4516     lt_cv_to_host_file_cmd=func_convert_file_noop
4517     ;;
4518 esac
4519
4520 fi
4521
4522 to_host_file_cmd=$lt_cv_to_host_file_cmd
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4524 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4525
4526
4527
4528
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4531 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4532 if ${lt_cv_to_tool_file_cmd+:} false; then :
4533   $as_echo_n "(cached) " >&6
4534 else
4535   #assume ordinary cross tools, or native build.
4536 lt_cv_to_tool_file_cmd=func_convert_file_noop
4537 case $host in
4538   *-*-mingw* )
4539     case $build in
4540       *-*-mingw* ) # actually msys
4541         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4542         ;;
4543     esac
4544     ;;
4545 esac
4546
4547 fi
4548
4549 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4551 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4552
4553
4554
4555
4556
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4558 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4559 if ${lt_cv_ld_reload_flag+:} false; then :
4560   $as_echo_n "(cached) " >&6
4561 else
4562   lt_cv_ld_reload_flag='-r'
4563 fi
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4565 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4566 reload_flag=$lt_cv_ld_reload_flag
4567 case $reload_flag in
4568 "" | " "*) ;;
4569 *) reload_flag=" $reload_flag" ;;
4570 esac
4571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4572 case $host_os in
4573   cygwin* | mingw* | pw32* | cegcc*)
4574     if test "$GCC" != yes; then
4575       reload_cmds=false
4576     fi
4577     ;;
4578   darwin*)
4579     if test "$GCC" = yes; then
4580       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4581     else
4582       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4583     fi
4584     ;;
4585 esac
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595 if test -n "$ac_tool_prefix"; then
4596   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_OBJDUMP+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   if test -n "$OBJDUMP"; then
4604   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609   IFS=$as_save_IFS
4610   test -z "$as_dir" && as_dir=.
4611     for ac_exec_ext in '' $ac_executable_extensions; do
4612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615     break 2
4616   fi
4617 done
4618   done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 OBJDUMP=$ac_cv_prog_OBJDUMP
4624 if test -n "$OBJDUMP"; then
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4626 $as_echo "$OBJDUMP" >&6; }
4627 else
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633 fi
4634 if test -z "$ac_cv_prog_OBJDUMP"; then
4635   ac_ct_OBJDUMP=$OBJDUMP
4636   # Extract the first word of "objdump", so it can be a program name with args.
4637 set dummy objdump; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   if test -n "$ac_ct_OBJDUMP"; then
4644   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651     for ac_exec_ext in '' $ac_executable_extensions; do
4652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658   done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4664 if test -n "$ac_ct_OBJDUMP"; then
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4666 $as_echo "$ac_ct_OBJDUMP" >&6; }
4667 else
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672   if test "x$ac_ct_OBJDUMP" = x; then
4673     OBJDUMP="false"
4674   else
4675     case $cross_compiling:$ac_tool_warned in
4676 yes:)
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679 ac_tool_warned=yes ;;
4680 esac
4681     OBJDUMP=$ac_ct_OBJDUMP
4682   fi
4683 else
4684   OBJDUMP="$ac_cv_prog_OBJDUMP"
4685 fi
4686
4687 test -z "$OBJDUMP" && OBJDUMP=objdump
4688
4689
4690
4691
4692
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4695 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4696 if ${lt_cv_deplibs_check_method+:} false; then :
4697   $as_echo_n "(cached) " >&6
4698 else
4699   lt_cv_file_magic_cmd='$MAGIC_CMD'
4700 lt_cv_file_magic_test_file=
4701 lt_cv_deplibs_check_method='unknown'
4702 # Need to set the preceding variable on all platforms that support
4703 # interlibrary dependencies.
4704 # 'none' -- dependencies not supported.
4705 # `unknown' -- same as none, but documents that we really don't know.
4706 # 'pass_all' -- all dependencies passed with no checks.
4707 # 'test_compile' -- check by making test program.
4708 # 'file_magic [[regex]]' -- check by looking for files in library path
4709 # which responds to the $file_magic_cmd with a given extended regex.
4710 # If you have `file' or equivalent on your system and you're not sure
4711 # whether `pass_all' will *always* work, you probably want this one.
4712
4713 case $host_os in
4714 aix[4-9]*)
4715   lt_cv_deplibs_check_method=pass_all
4716   ;;
4717
4718 beos*)
4719   lt_cv_deplibs_check_method=pass_all
4720   ;;
4721
4722 bsdi[45]*)
4723   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4724   lt_cv_file_magic_cmd='/usr/bin/file -L'
4725   lt_cv_file_magic_test_file=/shlib/libc.so
4726   ;;
4727
4728 cygwin*)
4729   # func_win32_libid is a shell function defined in ltmain.sh
4730   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4731   lt_cv_file_magic_cmd='func_win32_libid'
4732   ;;
4733
4734 mingw* | pw32*)
4735   # Base MSYS/MinGW do not provide the 'file' command needed by
4736   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4737   # unless we find 'file', for example because we are cross-compiling.
4738   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4739   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4740     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4741     lt_cv_file_magic_cmd='func_win32_libid'
4742   else
4743     # Keep this pattern in sync with the one in func_win32_libid.
4744     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4745     lt_cv_file_magic_cmd='$OBJDUMP -f'
4746   fi
4747   ;;
4748
4749 cegcc*)
4750   # use the weaker test based on 'objdump'. See mingw*.
4751   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4752   lt_cv_file_magic_cmd='$OBJDUMP -f'
4753   ;;
4754
4755 darwin* | rhapsody*)
4756   lt_cv_deplibs_check_method=pass_all
4757   ;;
4758
4759 freebsd* | dragonfly*)
4760   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4761     case $host_cpu in
4762     i*86 )
4763       # Not sure whether the presence of OpenBSD here was a mistake.
4764       # Let's accept both of them until this is cleared up.
4765       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4766       lt_cv_file_magic_cmd=/usr/bin/file
4767       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4768       ;;
4769     esac
4770   else
4771     lt_cv_deplibs_check_method=pass_all
4772   fi
4773   ;;
4774
4775 haiku*)
4776   lt_cv_deplibs_check_method=pass_all
4777   ;;
4778
4779 hpux10.20* | hpux11*)
4780   lt_cv_file_magic_cmd=/usr/bin/file
4781   case $host_cpu in
4782   ia64*)
4783     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4784     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4785     ;;
4786   hppa*64*)
4787     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]'
4788     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4789     ;;
4790   *)
4791     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4792     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4793     ;;
4794   esac
4795   ;;
4796
4797 interix[3-9]*)
4798   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4799   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4800   ;;
4801
4802 irix5* | irix6* | nonstopux*)
4803   case $LD in
4804   *-32|*"-32 ") libmagic=32-bit;;
4805   *-n32|*"-n32 ") libmagic=N32;;
4806   *-64|*"-64 ") libmagic=64-bit;;
4807   *) libmagic=never-match;;
4808   esac
4809   lt_cv_deplibs_check_method=pass_all
4810   ;;
4811
4812 # This must be glibc/ELF.
4813 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4814   lt_cv_deplibs_check_method=pass_all
4815   ;;
4816
4817 netbsd* | netbsdelf*-gnu)
4818   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4819     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4820   else
4821     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4822   fi
4823   ;;
4824
4825 newos6*)
4826   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4827   lt_cv_file_magic_cmd=/usr/bin/file
4828   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4829   ;;
4830
4831 *nto* | *qnx*)
4832   lt_cv_deplibs_check_method=pass_all
4833   ;;
4834
4835 openbsd*)
4836   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4837     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4838   else
4839     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4840   fi
4841   ;;
4842
4843 osf3* | osf4* | osf5*)
4844   lt_cv_deplibs_check_method=pass_all
4845   ;;
4846
4847 rdos*)
4848   lt_cv_deplibs_check_method=pass_all
4849   ;;
4850
4851 solaris*)
4852   lt_cv_deplibs_check_method=pass_all
4853   ;;
4854
4855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4856   lt_cv_deplibs_check_method=pass_all
4857   ;;
4858
4859 sysv4 | sysv4.3*)
4860   case $host_vendor in
4861   motorola)
4862     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]'
4863     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4864     ;;
4865   ncr)
4866     lt_cv_deplibs_check_method=pass_all
4867     ;;
4868   sequent)
4869     lt_cv_file_magic_cmd='/bin/file'
4870     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4871     ;;
4872   sni)
4873     lt_cv_file_magic_cmd='/bin/file'
4874     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4875     lt_cv_file_magic_test_file=/lib/libc.so
4876     ;;
4877   siemens)
4878     lt_cv_deplibs_check_method=pass_all
4879     ;;
4880   pc)
4881     lt_cv_deplibs_check_method=pass_all
4882     ;;
4883   esac
4884   ;;
4885
4886 tpf*)
4887   lt_cv_deplibs_check_method=pass_all
4888   ;;
4889 esac
4890
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4893 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4894
4895 file_magic_glob=
4896 want_nocaseglob=no
4897 if test "$build" = "$host"; then
4898   case $host_os in
4899   mingw* | pw32*)
4900     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4901       want_nocaseglob=yes
4902     else
4903       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4904     fi
4905     ;;
4906   esac
4907 fi
4908
4909 file_magic_cmd=$lt_cv_file_magic_cmd
4910 deplibs_check_method=$lt_cv_deplibs_check_method
4911 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934 if test -n "$ac_tool_prefix"; then
4935   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_prog_DLLTOOL+:} false; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942   if test -n "$DLLTOOL"; then
4943   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948   IFS=$as_save_IFS
4949   test -z "$as_dir" && as_dir=.
4950     for ac_exec_ext in '' $ac_executable_extensions; do
4951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954     break 2
4955   fi
4956 done
4957   done
4958 IFS=$as_save_IFS
4959
4960 fi
4961 fi
4962 DLLTOOL=$ac_cv_prog_DLLTOOL
4963 if test -n "$DLLTOOL"; then
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4965 $as_echo "$DLLTOOL" >&6; }
4966 else
4967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4969 fi
4970
4971
4972 fi
4973 if test -z "$ac_cv_prog_DLLTOOL"; then
4974   ac_ct_DLLTOOL=$DLLTOOL
4975   # Extract the first word of "dlltool", so it can be a program name with args.
4976 set dummy dlltool; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   if test -n "$ac_ct_DLLTOOL"; then
4983   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990     for ac_exec_ext in '' $ac_executable_extensions; do
4991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997   done
4998 IFS=$as_save_IFS
4999
5000 fi
5001 fi
5002 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5003 if test -n "$ac_ct_DLLTOOL"; then
5004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5005 $as_echo "$ac_ct_DLLTOOL" >&6; }
5006 else
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5009 fi
5010
5011   if test "x$ac_ct_DLLTOOL" = x; then
5012     DLLTOOL="false"
5013   else
5014     case $cross_compiling:$ac_tool_warned in
5015 yes:)
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018 ac_tool_warned=yes ;;
5019 esac
5020     DLLTOOL=$ac_ct_DLLTOOL
5021   fi
5022 else
5023   DLLTOOL="$ac_cv_prog_DLLTOOL"
5024 fi
5025
5026 test -z "$DLLTOOL" && DLLTOOL=dlltool
5027
5028
5029
5030
5031
5032
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5035 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5036 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039   lt_cv_sharedlib_from_linklib_cmd='unknown'
5040
5041 case $host_os in
5042 cygwin* | mingw* | pw32* | cegcc*)
5043   # two different shell functions defined in ltmain.sh
5044   # decide which to use based on capabilities of $DLLTOOL
5045   case `$DLLTOOL --help 2>&1` in
5046   *--identify-strict*)
5047     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5048     ;;
5049   *)
5050     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5051     ;;
5052   esac
5053   ;;
5054 *)
5055   # fallback: assume linklib IS sharedlib
5056   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5057   ;;
5058 esac
5059
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5062 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5063 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5064 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5065
5066
5067
5068
5069
5070
5071
5072
5073 if test -n "$ac_tool_prefix"; then
5074   for ac_prog in ar
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_AR+:} false; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   if test -n "$AR"; then
5084   ac_cv_prog_AR="$AR" # 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_AR="$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 AR=$ac_cv_prog_AR
5104 if test -n "$AR"; then
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5106 $as_echo "$AR" >&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 "$AR" && break
5114   done
5115 fi
5116 if test -z "$AR"; then
5117   ac_ct_AR=$AR
5118   for ac_prog in ar
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_AR+:} false; then :
5125   $as_echo_n "(cached) " >&6
5126 else
5127   if test -n "$ac_ct_AR"; then
5128   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="$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_AR=$ac_cv_prog_ac_ct_AR
5148 if test -n "$ac_ct_AR"; then
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5150 $as_echo "$ac_ct_AR" >&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_AR" && break
5158 done
5159
5160   if test "x$ac_ct_AR" = x; then
5161     AR="false"
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     AR=$ac_ct_AR
5170   fi
5171 fi
5172
5173 : ${AR=ar}
5174 : ${AR_FLAGS=cru}
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5187 $as_echo_n "checking for archiver @FILE support... " >&6; }
5188 if ${lt_cv_ar_at_file+:} false; then :
5189   $as_echo_n "(cached) " >&6
5190 else
5191   lt_cv_ar_at_file=no
5192    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h.  */
5194
5195 int
5196 main ()
5197 {
5198
5199   ;
5200   return 0;
5201 }
5202 _ACEOF
5203 if ac_fn_c_try_compile "$LINENO"; then :
5204   echo conftest.$ac_objext > conftest.lst
5205       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5206       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5207   (eval $lt_ar_try) 2>&5
5208   ac_status=$?
5209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5210   test $ac_status = 0; }
5211       if test "$ac_status" -eq 0; then
5212         # Ensure the archiver fails upon bogus file names.
5213         rm -f conftest.$ac_objext libconftest.a
5214         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5215   (eval $lt_ar_try) 2>&5
5216   ac_status=$?
5217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5218   test $ac_status = 0; }
5219         if test "$ac_status" -ne 0; then
5220           lt_cv_ar_at_file=@
5221         fi
5222       fi
5223       rm -f conftest.* libconftest.a
5224
5225 fi
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5230 $as_echo "$lt_cv_ar_at_file" >&6; }
5231
5232 if test "x$lt_cv_ar_at_file" = xno; then
5233   archiver_list_spec=
5234 else
5235   archiver_list_spec=$lt_cv_ar_at_file
5236 fi
5237
5238
5239
5240
5241
5242
5243
5244 if test -n "$ac_tool_prefix"; then
5245   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5246 set dummy ${ac_tool_prefix}strip; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_STRIP+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   if test -n "$STRIP"; then
5253   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258   IFS=$as_save_IFS
5259   test -z "$as_dir" && as_dir=.
5260     for ac_exec_ext in '' $ac_executable_extensions; do
5261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267   done
5268 IFS=$as_save_IFS
5269
5270 fi
5271 fi
5272 STRIP=$ac_cv_prog_STRIP
5273 if test -n "$STRIP"; then
5274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5275 $as_echo "$STRIP" >&6; }
5276 else
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 fi
5280
5281
5282 fi
5283 if test -z "$ac_cv_prog_STRIP"; then
5284   ac_ct_STRIP=$STRIP
5285   # Extract the first word of "strip", so it can be a program name with args.
5286 set dummy strip; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   if test -n "$ac_ct_STRIP"; then
5293   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5294 else
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5297 do
5298   IFS=$as_save_IFS
5299   test -z "$as_dir" && as_dir=.
5300     for ac_exec_ext in '' $ac_executable_extensions; do
5301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302     ac_cv_prog_ac_ct_STRIP="strip"
5303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304     break 2
5305   fi
5306 done
5307   done
5308 IFS=$as_save_IFS
5309
5310 fi
5311 fi
5312 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5313 if test -n "$ac_ct_STRIP"; then
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5315 $as_echo "$ac_ct_STRIP" >&6; }
5316 else
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321   if test "x$ac_ct_STRIP" = x; then
5322     STRIP=":"
5323   else
5324     case $cross_compiling:$ac_tool_warned in
5325 yes:)
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5328 ac_tool_warned=yes ;;
5329 esac
5330     STRIP=$ac_ct_STRIP
5331   fi
5332 else
5333   STRIP="$ac_cv_prog_STRIP"
5334 fi
5335
5336 test -z "$STRIP" && STRIP=:
5337
5338
5339
5340
5341
5342
5343 if test -n "$ac_tool_prefix"; then
5344   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_prog_RANLIB+:} false; then :
5349   $as_echo_n "(cached) " >&6
5350 else
5351   if test -n "$RANLIB"; then
5352   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359     for ac_exec_ext in '' $ac_executable_extensions; do
5360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363     break 2
5364   fi
5365 done
5366   done
5367 IFS=$as_save_IFS
5368
5369 fi
5370 fi
5371 RANLIB=$ac_cv_prog_RANLIB
5372 if test -n "$RANLIB"; then
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5374 $as_echo "$RANLIB" >&6; }
5375 else
5376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 fi
5379
5380
5381 fi
5382 if test -z "$ac_cv_prog_RANLIB"; then
5383   ac_ct_RANLIB=$RANLIB
5384   # Extract the first word of "ranlib", so it can be a program name with args.
5385 set dummy ranlib; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5389   $as_echo_n "(cached) " >&6
5390 else
5391   if test -n "$ac_ct_RANLIB"; then
5392   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5396 do
5397   IFS=$as_save_IFS
5398   test -z "$as_dir" && as_dir=.
5399     for ac_exec_ext in '' $ac_executable_extensions; do
5400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401     ac_cv_prog_ac_ct_RANLIB="ranlib"
5402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403     break 2
5404   fi
5405 done
5406   done
5407 IFS=$as_save_IFS
5408
5409 fi
5410 fi
5411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5412 if test -n "$ac_ct_RANLIB"; then
5413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5414 $as_echo "$ac_ct_RANLIB" >&6; }
5415 else
5416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5418 fi
5419
5420   if test "x$ac_ct_RANLIB" = x; then
5421     RANLIB=":"
5422   else
5423     case $cross_compiling:$ac_tool_warned in
5424 yes:)
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427 ac_tool_warned=yes ;;
5428 esac
5429     RANLIB=$ac_ct_RANLIB
5430   fi
5431 else
5432   RANLIB="$ac_cv_prog_RANLIB"
5433 fi
5434
5435 test -z "$RANLIB" && RANLIB=:
5436
5437
5438
5439
5440
5441
5442 # Determine commands to create old-style static archives.
5443 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5444 old_postinstall_cmds='chmod 644 $oldlib'
5445 old_postuninstall_cmds=
5446
5447 if test -n "$RANLIB"; then
5448   case $host_os in
5449   openbsd*)
5450     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5451     ;;
5452   *)
5453     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5454     ;;
5455   esac
5456   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5457 fi
5458
5459 case $host_os in
5460   darwin*)
5461     lock_old_archive_extraction=yes ;;
5462   *)
5463     lock_old_archive_extraction=no ;;
5464 esac
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486 for ac_prog in gawk mawk nawk awk
5487 do
5488   # Extract the first word of "$ac_prog", so it can be a program name with args.
5489 set dummy $ac_prog; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_prog_AWK+:} false; then :
5493   $as_echo_n "(cached) " >&6
5494 else
5495   if test -n "$AWK"; then
5496   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5497 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503     for ac_exec_ext in '' $ac_executable_extensions; do
5504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505     ac_cv_prog_AWK="$ac_prog"
5506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507     break 2
5508   fi
5509 done
5510   done
5511 IFS=$as_save_IFS
5512
5513 fi
5514 fi
5515 AWK=$ac_cv_prog_AWK
5516 if test -n "$AWK"; then
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5518 $as_echo "$AWK" >&6; }
5519 else
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5522 fi
5523
5524
5525   test -n "$AWK" && break
5526 done
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546 # If no C compiler was specified, use CC.
5547 LTCC=${LTCC-"$CC"}
5548
5549 # If no C compiler flags were specified, use CFLAGS.
5550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5551
5552 # Allow CC to be a program name with arguments.
5553 compiler=$CC
5554
5555
5556 # Check for command to grab the raw symbol name followed by C symbol from nm.
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5558 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5559 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562
5563 # These are sane defaults that work on at least a few old systems.
5564 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5565
5566 # Character class describing NM global symbol codes.
5567 symcode='[BCDEGRST]'
5568
5569 # Regexp to match symbols that can be accessed directly from C.
5570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5571
5572 # Define system-specific variables.
5573 case $host_os in
5574 aix*)
5575   symcode='[BCDT]'
5576   ;;
5577 cygwin* | mingw* | pw32* | cegcc*)
5578   symcode='[ABCDGISTW]'
5579   ;;
5580 hpux*)
5581   if test "$host_cpu" = ia64; then
5582     symcode='[ABCDEGRST]'
5583   fi
5584   ;;
5585 irix* | nonstopux*)
5586   symcode='[BCDEGRST]'
5587   ;;
5588 osf*)
5589   symcode='[BCDEGQRST]'
5590   ;;
5591 solaris*)
5592   symcode='[BDRT]'
5593   ;;
5594 sco3.2v5*)
5595   symcode='[DT]'
5596   ;;
5597 sysv4.2uw2*)
5598   symcode='[DT]'
5599   ;;
5600 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5601   symcode='[ABDT]'
5602   ;;
5603 sysv4)
5604   symcode='[DFNSTU]'
5605   ;;
5606 esac
5607
5608 # If we're using GNU nm, then use its standard symbol codes.
5609 case `$NM -V 2>&1` in
5610 *GNU* | *'with BFD'*)
5611   symcode='[ABCDGIRSTW]' ;;
5612 esac
5613
5614 # Transform an extracted symbol line into a proper C declaration.
5615 # Some systems (esp. on ia64) link data and code symbols differently,
5616 # so use this general approach.
5617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5618
5619 # Transform an extracted symbol line into symbol name and symbol address
5620 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5621 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'"
5622
5623 # Handle CRLF in mingw tool chain
5624 opt_cr=
5625 case $build_os in
5626 mingw*)
5627   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5628   ;;
5629 esac
5630
5631 # Try without a prefix underscore, then with it.
5632 for ac_symprfx in "" "_"; do
5633
5634   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5635   symxfrm="\\1 $ac_symprfx\\2 \\2"
5636
5637   # Write the raw and C identifiers.
5638   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5639     # Fake it for dumpbin and say T for any non-static function
5640     # and D for any global variable.
5641     # Also find C++ and __fastcall symbols from MSVC++,
5642     # which start with @ or ?.
5643     lt_cv_sys_global_symbol_pipe="$AWK '"\
5644 "     {last_section=section; section=\$ 3};"\
5645 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5646 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5647 "     \$ 0!~/External *\|/{next};"\
5648 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5649 "     {if(hide[section]) next};"\
5650 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5651 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5652 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5653 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5654 "     ' prfx=^$ac_symprfx"
5655   else
5656     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5657   fi
5658   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5659
5660   # Check to see that the pipe works correctly.
5661   pipe_works=no
5662
5663   rm -f conftest*
5664   cat > conftest.$ac_ext <<_LT_EOF
5665 #ifdef __cplusplus
5666 extern "C" {
5667 #endif
5668 char nm_test_var;
5669 void nm_test_func(void);
5670 void nm_test_func(void){}
5671 #ifdef __cplusplus
5672 }
5673 #endif
5674 int main(){nm_test_var='a';nm_test_func();return(0);}
5675 _LT_EOF
5676
5677   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5678   (eval $ac_compile) 2>&5
5679   ac_status=$?
5680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681   test $ac_status = 0; }; then
5682     # Now try to grab the symbols.
5683     nlist=conftest.nm
5684     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5685   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5686   ac_status=$?
5687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5688   test $ac_status = 0; } && test -s "$nlist"; then
5689       # Try sorting and uniquifying the output.
5690       if sort "$nlist" | uniq > "$nlist"T; then
5691         mv -f "$nlist"T "$nlist"
5692       else
5693         rm -f "$nlist"T
5694       fi
5695
5696       # Make sure that we snagged all the symbols we need.
5697       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5698         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5699           cat <<_LT_EOF > conftest.$ac_ext
5700 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5701 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5702 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5703    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5704 # define LT_DLSYM_CONST
5705 #elif defined(__osf__)
5706 /* This system does not cope well with relocations in const data.  */
5707 # define LT_DLSYM_CONST
5708 #else
5709 # define LT_DLSYM_CONST const
5710 #endif
5711
5712 #ifdef __cplusplus
5713 extern "C" {
5714 #endif
5715
5716 _LT_EOF
5717           # Now generate the symbol file.
5718           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5719
5720           cat <<_LT_EOF >> conftest.$ac_ext
5721
5722 /* The mapping between symbol names and symbols.  */
5723 LT_DLSYM_CONST struct {
5724   const char *name;
5725   void       *address;
5726 }
5727 lt__PROGRAM__LTX_preloaded_symbols[] =
5728 {
5729   { "@PROGRAM@", (void *) 0 },
5730 _LT_EOF
5731           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5732           cat <<\_LT_EOF >> conftest.$ac_ext
5733   {0, (void *) 0}
5734 };
5735
5736 /* This works around a problem in FreeBSD linker */
5737 #ifdef FREEBSD_WORKAROUND
5738 static const void *lt_preloaded_setup() {
5739   return lt__PROGRAM__LTX_preloaded_symbols;
5740 }
5741 #endif
5742
5743 #ifdef __cplusplus
5744 }
5745 #endif
5746 _LT_EOF
5747           # Now try linking the two files.
5748           mv conftest.$ac_objext conftstm.$ac_objext
5749           lt_globsym_save_LIBS=$LIBS
5750           lt_globsym_save_CFLAGS=$CFLAGS
5751           LIBS="conftstm.$ac_objext"
5752           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5753           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5754   (eval $ac_link) 2>&5
5755   ac_status=$?
5756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5758             pipe_works=yes
5759           fi
5760           LIBS=$lt_globsym_save_LIBS
5761           CFLAGS=$lt_globsym_save_CFLAGS
5762         else
5763           echo "cannot find nm_test_func in $nlist" >&5
5764         fi
5765       else
5766         echo "cannot find nm_test_var in $nlist" >&5
5767       fi
5768     else
5769       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5770     fi
5771   else
5772     echo "$progname: failed program was:" >&5
5773     cat conftest.$ac_ext >&5
5774   fi
5775   rm -rf conftest* conftst*
5776
5777   # Do not use the global_symbol_pipe unless it works.
5778   if test "$pipe_works" = yes; then
5779     break
5780   else
5781     lt_cv_sys_global_symbol_pipe=
5782   fi
5783 done
5784
5785 fi
5786
5787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5788   lt_cv_sys_global_symbol_to_cdecl=
5789 fi
5790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5792 $as_echo "failed" >&6; }
5793 else
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5795 $as_echo "ok" >&6; }
5796 fi
5797
5798 # Response file support.
5799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5800   nm_file_list_spec='@'
5801 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5802   nm_file_list_spec='@'
5803 fi
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5832 $as_echo_n "checking for sysroot... " >&6; }
5833
5834 # Check whether --with-sysroot was given.
5835 if test "${with_sysroot+set}" = set; then :
5836   withval=$with_sysroot;
5837 else
5838   with_sysroot=no
5839 fi
5840
5841
5842 lt_sysroot=
5843 case ${with_sysroot} in #(
5844  yes)
5845    if test "$GCC" = yes; then
5846      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5847    fi
5848    ;; #(
5849  /*)
5850    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5851    ;; #(
5852  no|'')
5853    ;; #(
5854  *)
5855    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5856 $as_echo "${with_sysroot}" >&6; }
5857    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5858    ;;
5859 esac
5860
5861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5862 $as_echo "${lt_sysroot:-no}" >&6; }
5863
5864
5865
5866
5867
5868 # Check whether --enable-libtool-lock was given.
5869 if test "${enable_libtool_lock+set}" = set; then :
5870   enableval=$enable_libtool_lock;
5871 fi
5872
5873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5874
5875 # Some flags need to be propagated to the compiler or linker for good
5876 # libtool support.
5877 case $host in
5878 ia64-*-hpux*)
5879   # Find out which ABI we are using.
5880   echo 'int i;' > conftest.$ac_ext
5881   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5882   (eval $ac_compile) 2>&5
5883   ac_status=$?
5884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5885   test $ac_status = 0; }; then
5886     case `/usr/bin/file conftest.$ac_objext` in
5887       *ELF-32*)
5888         HPUX_IA64_MODE="32"
5889         ;;
5890       *ELF-64*)
5891         HPUX_IA64_MODE="64"
5892         ;;
5893     esac
5894   fi
5895   rm -rf conftest*
5896   ;;
5897 *-*-irix6*)
5898   # Find out which ABI we are using.
5899   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5900   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5901   (eval $ac_compile) 2>&5
5902   ac_status=$?
5903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5904   test $ac_status = 0; }; then
5905     if test "$lt_cv_prog_gnu_ld" = yes; then
5906       case `/usr/bin/file conftest.$ac_objext` in
5907         *32-bit*)
5908           LD="${LD-ld} -melf32bsmip"
5909           ;;
5910         *N32*)
5911           LD="${LD-ld} -melf32bmipn32"
5912           ;;
5913         *64-bit*)
5914           LD="${LD-ld} -melf64bmip"
5915         ;;
5916       esac
5917     else
5918       case `/usr/bin/file conftest.$ac_objext` in
5919         *32-bit*)
5920           LD="${LD-ld} -32"
5921           ;;
5922         *N32*)
5923           LD="${LD-ld} -n32"
5924           ;;
5925         *64-bit*)
5926           LD="${LD-ld} -64"
5927           ;;
5928       esac
5929     fi
5930   fi
5931   rm -rf conftest*
5932   ;;
5933
5934 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5935 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5936   # Find out which ABI we are using.
5937   echo 'int i;' > conftest.$ac_ext
5938   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5939   (eval $ac_compile) 2>&5
5940   ac_status=$?
5941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942   test $ac_status = 0; }; then
5943     case `/usr/bin/file conftest.o` in
5944       *32-bit*)
5945         case $host in
5946           x86_64-*kfreebsd*-gnu)
5947             LD="${LD-ld} -m elf_i386_fbsd"
5948             ;;
5949           x86_64-*linux*)
5950             case `/usr/bin/file conftest.o` in
5951               *x86-64*)
5952                 LD="${LD-ld} -m elf32_x86_64"
5953                 ;;
5954               *)
5955                 LD="${LD-ld} -m elf_i386"
5956                 ;;
5957             esac
5958             ;;
5959           powerpc64le-*)
5960             LD="${LD-ld} -m elf32lppclinux"
5961             ;;
5962           powerpc64-*)
5963             LD="${LD-ld} -m elf32ppclinux"
5964             ;;
5965           s390x-*linux*)
5966             LD="${LD-ld} -m elf_s390"
5967             ;;
5968           sparc64-*linux*)
5969             LD="${LD-ld} -m elf32_sparc"
5970             ;;
5971         esac
5972         ;;
5973       *64-bit*)
5974         case $host in
5975           x86_64-*kfreebsd*-gnu)
5976             LD="${LD-ld} -m elf_x86_64_fbsd"
5977             ;;
5978           x86_64-*linux*)
5979             LD="${LD-ld} -m elf_x86_64"
5980             ;;
5981           powerpcle-*)
5982             LD="${LD-ld} -m elf64lppc"
5983             ;;
5984           powerpc-*)
5985             LD="${LD-ld} -m elf64ppc"
5986             ;;
5987           s390*-*linux*|s390*-*tpf*)
5988             LD="${LD-ld} -m elf64_s390"
5989             ;;
5990           sparc*-*linux*)
5991             LD="${LD-ld} -m elf64_sparc"
5992             ;;
5993         esac
5994         ;;
5995     esac
5996   fi
5997   rm -rf conftest*
5998   ;;
5999
6000 *-*-sco3.2v5*)
6001   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6002   SAVE_CFLAGS="$CFLAGS"
6003   CFLAGS="$CFLAGS -belf"
6004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6005 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6006 if ${lt_cv_cc_needs_belf+:} false; then :
6007   $as_echo_n "(cached) " >&6
6008 else
6009   ac_ext=c
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
6015      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h.  */
6017
6018 int
6019 main ()
6020 {
6021
6022   ;
6023   return 0;
6024 }
6025 _ACEOF
6026 if ac_fn_c_try_link "$LINENO"; then :
6027   lt_cv_cc_needs_belf=yes
6028 else
6029   lt_cv_cc_needs_belf=no
6030 fi
6031 rm -f core conftest.err conftest.$ac_objext \
6032     conftest$ac_exeext conftest.$ac_ext
6033      ac_ext=c
6034 ac_cpp='$CPP $CPPFLAGS'
6035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6038
6039 fi
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6041 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6042   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6043     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6044     CFLAGS="$SAVE_CFLAGS"
6045   fi
6046   ;;
6047 *-*solaris*)
6048   # Find out which ABI we are using.
6049   echo 'int i;' > conftest.$ac_ext
6050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6051   (eval $ac_compile) 2>&5
6052   ac_status=$?
6053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054   test $ac_status = 0; }; then
6055     case `/usr/bin/file conftest.o` in
6056     *64-bit*)
6057       case $lt_cv_prog_gnu_ld in
6058       yes*)
6059         case $host in
6060         i?86-*-solaris*)
6061           LD="${LD-ld} -m elf_x86_64"
6062           ;;
6063         sparc*-*-solaris*)
6064           LD="${LD-ld} -m elf64_sparc"
6065           ;;
6066         esac
6067         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6068         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6069           LD="${LD-ld}_sol2"
6070         fi
6071         ;;
6072       *)
6073         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6074           LD="${LD-ld} -64"
6075         fi
6076         ;;
6077       esac
6078       ;;
6079     esac
6080   fi
6081   rm -rf conftest*
6082   ;;
6083 esac
6084
6085 need_locks="$enable_libtool_lock"
6086
6087 if test -n "$ac_tool_prefix"; then
6088   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}mt; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6093   $as_echo_n "(cached) " >&6
6094 else
6095   if test -n "$MANIFEST_TOOL"; then
6096   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103     for ac_exec_ext in '' $ac_executable_extensions; do
6104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110   done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6116 if test -n "$MANIFEST_TOOL"; then
6117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6118 $as_echo "$MANIFEST_TOOL" >&6; }
6119 else
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124
6125 fi
6126 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6127   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6128   # Extract the first word of "mt", so it can be a program name with args.
6129 set dummy mt; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   if test -n "$ac_ct_MANIFEST_TOOL"; then
6136   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143     for ac_exec_ext in '' $ac_executable_extensions; do
6144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147     break 2
6148   fi
6149 done
6150   done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6156 if test -n "$ac_ct_MANIFEST_TOOL"; then
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6158 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6159 else
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6165     MANIFEST_TOOL=":"
6166   else
6167     case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6174   fi
6175 else
6176   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6177 fi
6178
6179 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6181 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6182 if ${lt_cv_path_mainfest_tool+:} false; then :
6183   $as_echo_n "(cached) " >&6
6184 else
6185   lt_cv_path_mainfest_tool=no
6186   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6187   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6188   cat conftest.err >&5
6189   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6190     lt_cv_path_mainfest_tool=yes
6191   fi
6192   rm -f conftest*
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6195 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6196 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6197   MANIFEST_TOOL=:
6198 fi
6199
6200
6201
6202
6203
6204
6205   case $host_os in
6206     rhapsody* | darwin*)
6207     if test -n "$ac_tool_prefix"; then
6208   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6209 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6213   $as_echo_n "(cached) " >&6
6214 else
6215   if test -n "$DSYMUTIL"; then
6216   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221   IFS=$as_save_IFS
6222   test -z "$as_dir" && as_dir=.
6223     for ac_exec_ext in '' $ac_executable_extensions; do
6224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227     break 2
6228   fi
6229 done
6230   done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6236 if test -n "$DSYMUTIL"; then
6237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6238 $as_echo "$DSYMUTIL" >&6; }
6239 else
6240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6242 fi
6243
6244
6245 fi
6246 if test -z "$ac_cv_prog_DSYMUTIL"; then
6247   ac_ct_DSYMUTIL=$DSYMUTIL
6248   # Extract the first word of "dsymutil", so it can be a program name with args.
6249 set dummy dsymutil; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6253   $as_echo_n "(cached) " >&6
6254 else
6255   if test -n "$ac_ct_DSYMUTIL"; then
6256   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261   IFS=$as_save_IFS
6262   test -z "$as_dir" && as_dir=.
6263     for ac_exec_ext in '' $ac_executable_extensions; do
6264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267     break 2
6268   fi
6269 done
6270   done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6276 if test -n "$ac_ct_DSYMUTIL"; then
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6278 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6279 else
6280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6282 fi
6283
6284   if test "x$ac_ct_DSYMUTIL" = x; then
6285     DSYMUTIL=":"
6286   else
6287     case $cross_compiling:$ac_tool_warned in
6288 yes:)
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291 ac_tool_warned=yes ;;
6292 esac
6293     DSYMUTIL=$ac_ct_DSYMUTIL
6294   fi
6295 else
6296   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6297 fi
6298
6299     if test -n "$ac_tool_prefix"; then
6300   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_NMEDIT+:} false; then :
6305   $as_echo_n "(cached) " >&6
6306 else
6307   if test -n "$NMEDIT"; then
6308   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313   IFS=$as_save_IFS
6314   test -z "$as_dir" && as_dir=.
6315     for ac_exec_ext in '' $ac_executable_extensions; do
6316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319     break 2
6320   fi
6321 done
6322   done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 NMEDIT=$ac_cv_prog_NMEDIT
6328 if test -n "$NMEDIT"; then
6329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6330 $as_echo "$NMEDIT" >&6; }
6331 else
6332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336
6337 fi
6338 if test -z "$ac_cv_prog_NMEDIT"; then
6339   ac_ct_NMEDIT=$NMEDIT
6340   # Extract the first word of "nmedit", so it can be a program name with args.
6341 set dummy nmedit; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   if test -n "$ac_ct_NMEDIT"; then
6348   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355     for ac_exec_ext in '' $ac_executable_extensions; do
6356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362   done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6368 if test -n "$ac_ct_NMEDIT"; then
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6370 $as_echo "$ac_ct_NMEDIT" >&6; }
6371 else
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375
6376   if test "x$ac_ct_NMEDIT" = x; then
6377     NMEDIT=":"
6378   else
6379     case $cross_compiling:$ac_tool_warned in
6380 yes:)
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385     NMEDIT=$ac_ct_NMEDIT
6386   fi
6387 else
6388   NMEDIT="$ac_cv_prog_NMEDIT"
6389 fi
6390
6391     if test -n "$ac_tool_prefix"; then
6392   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_LIPO+:} false; then :
6397   $as_echo_n "(cached) " >&6
6398 else
6399   if test -n "$LIPO"; then
6400   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405   IFS=$as_save_IFS
6406   test -z "$as_dir" && as_dir=.
6407     for ac_exec_ext in '' $ac_executable_extensions; do
6408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411     break 2
6412   fi
6413 done
6414   done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 LIPO=$ac_cv_prog_LIPO
6420 if test -n "$LIPO"; then
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6422 $as_echo "$LIPO" >&6; }
6423 else
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428
6429 fi
6430 if test -z "$ac_cv_prog_LIPO"; then
6431   ac_ct_LIPO=$LIPO
6432   # Extract the first word of "lipo", so it can be a program name with args.
6433 set dummy lipo; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6437   $as_echo_n "(cached) " >&6
6438 else
6439   if test -n "$ac_ct_LIPO"; then
6440   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445   IFS=$as_save_IFS
6446   test -z "$as_dir" && as_dir=.
6447     for ac_exec_ext in '' $ac_executable_extensions; do
6448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6449     ac_cv_prog_ac_ct_LIPO="lipo"
6450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451     break 2
6452   fi
6453 done
6454   done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6460 if test -n "$ac_ct_LIPO"; then
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6462 $as_echo "$ac_ct_LIPO" >&6; }
6463 else
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468   if test "x$ac_ct_LIPO" = x; then
6469     LIPO=":"
6470   else
6471     case $cross_compiling:$ac_tool_warned in
6472 yes:)
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475 ac_tool_warned=yes ;;
6476 esac
6477     LIPO=$ac_ct_LIPO
6478   fi
6479 else
6480   LIPO="$ac_cv_prog_LIPO"
6481 fi
6482
6483     if test -n "$ac_tool_prefix"; then
6484   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6485 set dummy ${ac_tool_prefix}otool; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_prog_OTOOL+:} false; then :
6489   $as_echo_n "(cached) " >&6
6490 else
6491   if test -n "$OTOOL"; then
6492   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499     for ac_exec_ext in '' $ac_executable_extensions; do
6500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506   done
6507 IFS=$as_save_IFS
6508
6509 fi
6510 fi
6511 OTOOL=$ac_cv_prog_OTOOL
6512 if test -n "$OTOOL"; then
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6514 $as_echo "$OTOOL" >&6; }
6515 else
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6518 fi
6519
6520
6521 fi
6522 if test -z "$ac_cv_prog_OTOOL"; then
6523   ac_ct_OTOOL=$OTOOL
6524   # Extract the first word of "otool", so it can be a program name with args.
6525 set dummy otool; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6529   $as_echo_n "(cached) " >&6
6530 else
6531   if test -n "$ac_ct_OTOOL"; then
6532   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537   IFS=$as_save_IFS
6538   test -z "$as_dir" && as_dir=.
6539     for ac_exec_ext in '' $ac_executable_extensions; do
6540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541     ac_cv_prog_ac_ct_OTOOL="otool"
6542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543     break 2
6544   fi
6545 done
6546   done
6547 IFS=$as_save_IFS
6548
6549 fi
6550 fi
6551 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6552 if test -n "$ac_ct_OTOOL"; then
6553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6554 $as_echo "$ac_ct_OTOOL" >&6; }
6555 else
6556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6558 fi
6559
6560   if test "x$ac_ct_OTOOL" = x; then
6561     OTOOL=":"
6562   else
6563     case $cross_compiling:$ac_tool_warned in
6564 yes:)
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567 ac_tool_warned=yes ;;
6568 esac
6569     OTOOL=$ac_ct_OTOOL
6570   fi
6571 else
6572   OTOOL="$ac_cv_prog_OTOOL"
6573 fi
6574
6575     if test -n "$ac_tool_prefix"; then
6576   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6577 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if ${ac_cv_prog_OTOOL64+:} false; then :
6581   $as_echo_n "(cached) " >&6
6582 else
6583   if test -n "$OTOOL64"; then
6584   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6585 else
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589   IFS=$as_save_IFS
6590   test -z "$as_dir" && as_dir=.
6591     for ac_exec_ext in '' $ac_executable_extensions; do
6592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6593     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595     break 2
6596   fi
6597 done
6598   done
6599 IFS=$as_save_IFS
6600
6601 fi
6602 fi
6603 OTOOL64=$ac_cv_prog_OTOOL64
6604 if test -n "$OTOOL64"; then
6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6606 $as_echo "$OTOOL64" >&6; }
6607 else
6608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6610 fi
6611
6612
6613 fi
6614 if test -z "$ac_cv_prog_OTOOL64"; then
6615   ac_ct_OTOOL64=$OTOOL64
6616   # Extract the first word of "otool64", so it can be a program name with args.
6617 set dummy otool64; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6621   $as_echo_n "(cached) " >&6
6622 else
6623   if test -n "$ac_ct_OTOOL64"; then
6624   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631     for ac_exec_ext in '' $ac_executable_extensions; do
6632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633     ac_cv_prog_ac_ct_OTOOL64="otool64"
6634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635     break 2
6636   fi
6637 done
6638   done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6644 if test -n "$ac_ct_OTOOL64"; then
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6646 $as_echo "$ac_ct_OTOOL64" >&6; }
6647 else
6648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651
6652   if test "x$ac_ct_OTOOL64" = x; then
6653     OTOOL64=":"
6654   else
6655     case $cross_compiling:$ac_tool_warned in
6656 yes:)
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659 ac_tool_warned=yes ;;
6660 esac
6661     OTOOL64=$ac_ct_OTOOL64
6662   fi
6663 else
6664   OTOOL64="$ac_cv_prog_OTOOL64"
6665 fi
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6694 $as_echo_n "checking for -single_module linker flag... " >&6; }
6695 if ${lt_cv_apple_cc_single_mod+:} false; then :
6696   $as_echo_n "(cached) " >&6
6697 else
6698   lt_cv_apple_cc_single_mod=no
6699       if test -z "${LT_MULTI_MODULE}"; then
6700         # By default we will add the -single_module flag. You can override
6701         # by either setting the environment variable LT_MULTI_MODULE
6702         # non-empty at configure time, or by adding -multi_module to the
6703         # link flags.
6704         rm -rf libconftest.dylib*
6705         echo "int foo(void){return 1;}" > conftest.c
6706         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6707 -dynamiclib -Wl,-single_module conftest.c" >&5
6708         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6709           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6710         _lt_result=$?
6711         # If there is a non-empty error log, and "single_module"
6712         # appears in it, assume the flag caused a linker warning
6713         if test -s conftest.err && $GREP single_module conftest.err; then
6714           cat conftest.err >&5
6715         # Otherwise, if the output was created with a 0 exit code from
6716         # the compiler, it worked.
6717         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6718           lt_cv_apple_cc_single_mod=yes
6719         else
6720           cat conftest.err >&5
6721         fi
6722         rm -rf libconftest.dylib*
6723         rm -f conftest.*
6724       fi
6725 fi
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6727 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6728
6729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6730 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6731 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6732   $as_echo_n "(cached) " >&6
6733 else
6734   lt_cv_ld_exported_symbols_list=no
6735       save_LDFLAGS=$LDFLAGS
6736       echo "_main" > conftest.sym
6737       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6738       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h.  */
6740
6741 int
6742 main ()
6743 {
6744
6745   ;
6746   return 0;
6747 }
6748 _ACEOF
6749 if ac_fn_c_try_link "$LINENO"; then :
6750   lt_cv_ld_exported_symbols_list=yes
6751 else
6752   lt_cv_ld_exported_symbols_list=no
6753 fi
6754 rm -f core conftest.err conftest.$ac_objext \
6755     conftest$ac_exeext conftest.$ac_ext
6756         LDFLAGS="$save_LDFLAGS"
6757
6758 fi
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6760 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6761
6762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6763 $as_echo_n "checking for -force_load linker flag... " >&6; }
6764 if ${lt_cv_ld_force_load+:} false; then :
6765   $as_echo_n "(cached) " >&6
6766 else
6767   lt_cv_ld_force_load=no
6768       cat > conftest.c << _LT_EOF
6769 int forced_loaded() { return 2;}
6770 _LT_EOF
6771       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6772       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6773       echo "$AR cru libconftest.a conftest.o" >&5
6774       $AR cru libconftest.a conftest.o 2>&5
6775       echo "$RANLIB libconftest.a" >&5
6776       $RANLIB libconftest.a 2>&5
6777       cat > conftest.c << _LT_EOF
6778 int main() { return 0;}
6779 _LT_EOF
6780       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6781       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6782       _lt_result=$?
6783       if test -s conftest.err && $GREP force_load conftest.err; then
6784         cat conftest.err >&5
6785       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6786         lt_cv_ld_force_load=yes
6787       else
6788         cat conftest.err >&5
6789       fi
6790         rm -f conftest.err libconftest.a conftest conftest.c
6791         rm -rf conftest.dSYM
6792
6793 fi
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6795 $as_echo "$lt_cv_ld_force_load" >&6; }
6796     case $host_os in
6797     rhapsody* | darwin1.[012])
6798       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6799     darwin1.*)
6800       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6801     darwin*) # darwin 5.x on
6802       # if running on 10.5 or later, the deployment target defaults
6803       # to the OS version, if on x86, and 10.4, the deployment
6804       # target defaults to 10.4. Don't you love it?
6805       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6806         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6807           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6808         10.[012]*)
6809           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6810         10.*)
6811           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6812       esac
6813     ;;
6814   esac
6815     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6816       _lt_dar_single_mod='$single_module'
6817     fi
6818     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6819       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6820     else
6821       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6822     fi
6823     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6824       _lt_dsymutil='~$DSYMUTIL $lib || :'
6825     else
6826       _lt_dsymutil=
6827     fi
6828     ;;
6829   esac
6830
6831 ac_ext=c
6832 ac_cpp='$CPP $CPPFLAGS'
6833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6837 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6838 # On Suns, sometimes $CPP names a directory.
6839 if test -n "$CPP" && test -d "$CPP"; then
6840   CPP=
6841 fi
6842 if test -z "$CPP"; then
6843   if ${ac_cv_prog_CPP+:} false; then :
6844   $as_echo_n "(cached) " >&6
6845 else
6846       # Double quotes because CPP needs to be expanded
6847     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6848     do
6849       ac_preproc_ok=false
6850 for ac_c_preproc_warn_flag in '' yes
6851 do
6852   # Use a header file that comes with gcc, so configuring glibc
6853   # with a fresh cross-compiler works.
6854   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6855   # <limits.h> exists even on freestanding compilers.
6856   # On the NeXT, cc -E runs the code through the compiler's parser,
6857   # not just through cpp. "Syntax error" is here to catch this case.
6858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h.  */
6860 #ifdef __STDC__
6861 # include <limits.h>
6862 #else
6863 # include <assert.h>
6864 #endif
6865                      Syntax error
6866 _ACEOF
6867 if ac_fn_c_try_cpp "$LINENO"; then :
6868
6869 else
6870   # Broken: fails on valid input.
6871 continue
6872 fi
6873 rm -f conftest.err conftest.i conftest.$ac_ext
6874
6875   # OK, works on sane cases.  Now check whether nonexistent headers
6876   # can be detected and how.
6877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h.  */
6879 #include <ac_nonexistent.h>
6880 _ACEOF
6881 if ac_fn_c_try_cpp "$LINENO"; then :
6882   # Broken: success on invalid input.
6883 continue
6884 else
6885   # Passes both tests.
6886 ac_preproc_ok=:
6887 break
6888 fi
6889 rm -f conftest.err conftest.i conftest.$ac_ext
6890
6891 done
6892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6893 rm -f conftest.i conftest.err conftest.$ac_ext
6894 if $ac_preproc_ok; then :
6895   break
6896 fi
6897
6898     done
6899     ac_cv_prog_CPP=$CPP
6900
6901 fi
6902   CPP=$ac_cv_prog_CPP
6903 else
6904   ac_cv_prog_CPP=$CPP
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6907 $as_echo "$CPP" >&6; }
6908 ac_preproc_ok=false
6909 for ac_c_preproc_warn_flag in '' yes
6910 do
6911   # Use a header file that comes with gcc, so configuring glibc
6912   # with a fresh cross-compiler works.
6913   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6914   # <limits.h> exists even on freestanding compilers.
6915   # On the NeXT, cc -E runs the code through the compiler's parser,
6916   # not just through cpp. "Syntax error" is here to catch this case.
6917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h.  */
6919 #ifdef __STDC__
6920 # include <limits.h>
6921 #else
6922 # include <assert.h>
6923 #endif
6924                      Syntax error
6925 _ACEOF
6926 if ac_fn_c_try_cpp "$LINENO"; then :
6927
6928 else
6929   # Broken: fails on valid input.
6930 continue
6931 fi
6932 rm -f conftest.err conftest.i conftest.$ac_ext
6933
6934   # OK, works on sane cases.  Now check whether nonexistent headers
6935   # can be detected and how.
6936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h.  */
6938 #include <ac_nonexistent.h>
6939 _ACEOF
6940 if ac_fn_c_try_cpp "$LINENO"; then :
6941   # Broken: success on invalid input.
6942 continue
6943 else
6944   # Passes both tests.
6945 ac_preproc_ok=:
6946 break
6947 fi
6948 rm -f conftest.err conftest.i conftest.$ac_ext
6949
6950 done
6951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6952 rm -f conftest.i conftest.err conftest.$ac_ext
6953 if $ac_preproc_ok; then :
6954
6955 else
6956   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6958 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6959 See \`config.log' for more details" "$LINENO" 5; }
6960 fi
6961
6962 ac_ext=c
6963 ac_cpp='$CPP $CPPFLAGS'
6964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6967
6968
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6970 $as_echo_n "checking for ANSI C header files... " >&6; }
6971 if ${ac_cv_header_stdc+:} false; then :
6972   $as_echo_n "(cached) " >&6
6973 else
6974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h.  */
6976 #include <stdlib.h>
6977 #include <stdarg.h>
6978 #include <string.h>
6979 #include <float.h>
6980
6981 int
6982 main ()
6983 {
6984
6985   ;
6986   return 0;
6987 }
6988 _ACEOF
6989 if ac_fn_c_try_compile "$LINENO"; then :
6990   ac_cv_header_stdc=yes
6991 else
6992   ac_cv_header_stdc=no
6993 fi
6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995
6996 if test $ac_cv_header_stdc = yes; then
6997   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h.  */
7000 #include <string.h>
7001
7002 _ACEOF
7003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7004   $EGREP "memchr" >/dev/null 2>&1; then :
7005
7006 else
7007   ac_cv_header_stdc=no
7008 fi
7009 rm -f conftest*
7010
7011 fi
7012
7013 if test $ac_cv_header_stdc = yes; then
7014   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h.  */
7017 #include <stdlib.h>
7018
7019 _ACEOF
7020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7021   $EGREP "free" >/dev/null 2>&1; then :
7022
7023 else
7024   ac_cv_header_stdc=no
7025 fi
7026 rm -f conftest*
7027
7028 fi
7029
7030 if test $ac_cv_header_stdc = yes; then
7031   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7032   if test "$cross_compiling" = yes; then :
7033   :
7034 else
7035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h.  */
7037 #include <ctype.h>
7038 #include <stdlib.h>
7039 #if ((' ' & 0x0FF) == 0x020)
7040 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7041 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7042 #else
7043 # define ISLOWER(c) \
7044                    (('a' <= (c) && (c) <= 'i') \
7045                      || ('j' <= (c) && (c) <= 'r') \
7046                      || ('s' <= (c) && (c) <= 'z'))
7047 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7048 #endif
7049
7050 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7051 int
7052 main ()
7053 {
7054   int i;
7055   for (i = 0; i < 256; i++)
7056     if (XOR (islower (i), ISLOWER (i))
7057         || toupper (i) != TOUPPER (i))
7058       return 2;
7059   return 0;
7060 }
7061 _ACEOF
7062 if ac_fn_c_try_run "$LINENO"; then :
7063
7064 else
7065   ac_cv_header_stdc=no
7066 fi
7067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7068   conftest.$ac_objext conftest.beam conftest.$ac_ext
7069 fi
7070
7071 fi
7072 fi
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7074 $as_echo "$ac_cv_header_stdc" >&6; }
7075 if test $ac_cv_header_stdc = yes; then
7076
7077 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7078
7079 fi
7080
7081 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7082 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7083                   inttypes.h stdint.h unistd.h
7084 do :
7085   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7086 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7087 "
7088 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7089   cat >>confdefs.h <<_ACEOF
7090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7091 _ACEOF
7092
7093 fi
7094
7095 done
7096
7097
7098 for ac_header in dlfcn.h
7099 do :
7100   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7101 "
7102 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7103   cat >>confdefs.h <<_ACEOF
7104 #define HAVE_DLFCN_H 1
7105 _ACEOF
7106
7107 fi
7108
7109 done
7110
7111
7112
7113
7114
7115 # Set options
7116
7117
7118
7119         enable_dlopen=no
7120
7121
7122
7123             # Check whether --enable-shared was given.
7124 if test "${enable_shared+set}" = set; then :
7125   enableval=$enable_shared; p=${PACKAGE-default}
7126     case $enableval in
7127     yes) enable_shared=yes ;;
7128     no) enable_shared=no ;;
7129     *)
7130       enable_shared=no
7131       # Look at the argument we got.  We use all the common list separators.
7132       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7133       for pkg in $enableval; do
7134         IFS="$lt_save_ifs"
7135         if test "X$pkg" = "X$p"; then
7136           enable_shared=yes
7137         fi
7138       done
7139       IFS="$lt_save_ifs"
7140       ;;
7141     esac
7142 else
7143   enable_shared=yes
7144 fi
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154   # Check whether --enable-static was given.
7155 if test "${enable_static+set}" = set; then :
7156   enableval=$enable_static; p=${PACKAGE-default}
7157     case $enableval in
7158     yes) enable_static=yes ;;
7159     no) enable_static=no ;;
7160     *)
7161      enable_static=no
7162       # Look at the argument we got.  We use all the common list separators.
7163       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7164       for pkg in $enableval; do
7165         IFS="$lt_save_ifs"
7166         if test "X$pkg" = "X$p"; then
7167           enable_static=yes
7168         fi
7169       done
7170       IFS="$lt_save_ifs"
7171       ;;
7172     esac
7173 else
7174   enable_static=yes
7175 fi
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186 # Check whether --with-pic was given.
7187 if test "${with_pic+set}" = set; then :
7188   withval=$with_pic; lt_p=${PACKAGE-default}
7189     case $withval in
7190     yes|no) pic_mode=$withval ;;
7191     *)
7192       pic_mode=default
7193       # Look at the argument we got.  We use all the common list separators.
7194       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7195       for lt_pkg in $withval; do
7196         IFS="$lt_save_ifs"
7197         if test "X$lt_pkg" = "X$lt_p"; then
7198           pic_mode=yes
7199         fi
7200       done
7201       IFS="$lt_save_ifs"
7202       ;;
7203     esac
7204 else
7205   pic_mode=default
7206 fi
7207
7208
7209 test -z "$pic_mode" && pic_mode=default
7210
7211
7212
7213
7214
7215
7216
7217   # Check whether --enable-fast-install was given.
7218 if test "${enable_fast_install+set}" = set; then :
7219   enableval=$enable_fast_install; p=${PACKAGE-default}
7220     case $enableval in
7221     yes) enable_fast_install=yes ;;
7222     no) enable_fast_install=no ;;
7223     *)
7224       enable_fast_install=no
7225       # Look at the argument we got.  We use all the common list separators.
7226       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7227       for pkg in $enableval; do
7228         IFS="$lt_save_ifs"
7229         if test "X$pkg" = "X$p"; then
7230           enable_fast_install=yes
7231         fi
7232       done
7233       IFS="$lt_save_ifs"
7234       ;;
7235     esac
7236 else
7237   enable_fast_install=yes
7238 fi
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250 # This can be used to rebuild libtool when needed
7251 LIBTOOL_DEPS="$ltmain"
7252
7253 # Always use our own libtool.
7254 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285 test -z "$LN_S" && LN_S="ln -s"
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300 if test -n "${ZSH_VERSION+set}" ; then
7301    setopt NO_GLOB_SUBST
7302 fi
7303
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7305 $as_echo_n "checking for objdir... " >&6; }
7306 if ${lt_cv_objdir+:} false; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   rm -f .libs 2>/dev/null
7310 mkdir .libs 2>/dev/null
7311 if test -d .libs; then
7312   lt_cv_objdir=.libs
7313 else
7314   # MS-DOS does not allow filenames that begin with a dot.
7315   lt_cv_objdir=_libs
7316 fi
7317 rmdir .libs 2>/dev/null
7318 fi
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7320 $as_echo "$lt_cv_objdir" >&6; }
7321 objdir=$lt_cv_objdir
7322
7323
7324
7325
7326
7327 cat >>confdefs.h <<_ACEOF
7328 #define LT_OBJDIR "$lt_cv_objdir/"
7329 _ACEOF
7330
7331
7332
7333
7334 case $host_os in
7335 aix3*)
7336   # AIX sometimes has problems with the GCC collect2 program.  For some
7337   # reason, if we set the COLLECT_NAMES environment variable, the problems
7338   # vanish in a puff of smoke.
7339   if test "X${COLLECT_NAMES+set}" != Xset; then
7340     COLLECT_NAMES=
7341     export COLLECT_NAMES
7342   fi
7343   ;;
7344 esac
7345
7346 # Global variables:
7347 ofile=libtool
7348 can_build_shared=yes
7349
7350 # All known linkers require a `.a' archive for static linking (except MSVC,
7351 # which needs '.lib').
7352 libext=a
7353
7354 with_gnu_ld="$lt_cv_prog_gnu_ld"
7355
7356 old_CC="$CC"
7357 old_CFLAGS="$CFLAGS"
7358
7359 # Set sane defaults for various variables
7360 test -z "$CC" && CC=cc
7361 test -z "$LTCC" && LTCC=$CC
7362 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7363 test -z "$LD" && LD=ld
7364 test -z "$ac_objext" && ac_objext=o
7365
7366 for cc_temp in $compiler""; do
7367   case $cc_temp in
7368     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7369     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7370     \-*) ;;
7371     *) break;;
7372   esac
7373 done
7374 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7375
7376
7377 # Only perform the check for file, if the check method requires it
7378 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7379 case $deplibs_check_method in
7380 file_magic*)
7381   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7383 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7384 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   case $MAGIC_CMD in
7388 [\\/*] |  ?:[\\/]*)
7389   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7390   ;;
7391 *)
7392   lt_save_MAGIC_CMD="$MAGIC_CMD"
7393   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7394   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7395   for ac_dir in $ac_dummy; do
7396     IFS="$lt_save_ifs"
7397     test -z "$ac_dir" && ac_dir=.
7398     if test -f $ac_dir/${ac_tool_prefix}file; then
7399       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7400       if test -n "$file_magic_test_file"; then
7401         case $deplibs_check_method in
7402         "file_magic "*)
7403           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7404           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7405           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7406             $EGREP "$file_magic_regex" > /dev/null; then
7407             :
7408           else
7409             cat <<_LT_EOF 1>&2
7410
7411 *** Warning: the command libtool uses to detect shared libraries,
7412 *** $file_magic_cmd, produces output that libtool cannot recognize.
7413 *** The result is that libtool may fail to recognize shared libraries
7414 *** as such.  This will affect the creation of libtool libraries that
7415 *** depend on shared libraries, but programs linked with such libtool
7416 *** libraries will work regardless of this problem.  Nevertheless, you
7417 *** may want to report the problem to your system manager and/or to
7418 *** bug-libtool@gnu.org
7419
7420 _LT_EOF
7421           fi ;;
7422         esac
7423       fi
7424       break
7425     fi
7426   done
7427   IFS="$lt_save_ifs"
7428   MAGIC_CMD="$lt_save_MAGIC_CMD"
7429   ;;
7430 esac
7431 fi
7432
7433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7434 if test -n "$MAGIC_CMD"; then
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7436 $as_echo "$MAGIC_CMD" >&6; }
7437 else
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7440 fi
7441
7442
7443
7444
7445
7446 if test -z "$lt_cv_path_MAGIC_CMD"; then
7447   if test -n "$ac_tool_prefix"; then
7448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7449 $as_echo_n "checking for file... " >&6; }
7450 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7451   $as_echo_n "(cached) " >&6
7452 else
7453   case $MAGIC_CMD in
7454 [\\/*] |  ?:[\\/]*)
7455   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7456   ;;
7457 *)
7458   lt_save_MAGIC_CMD="$MAGIC_CMD"
7459   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7460   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7461   for ac_dir in $ac_dummy; do
7462     IFS="$lt_save_ifs"
7463     test -z "$ac_dir" && ac_dir=.
7464     if test -f $ac_dir/file; then
7465       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7466       if test -n "$file_magic_test_file"; then
7467         case $deplibs_check_method in
7468         "file_magic "*)
7469           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7470           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7471           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7472             $EGREP "$file_magic_regex" > /dev/null; then
7473             :
7474           else
7475             cat <<_LT_EOF 1>&2
7476
7477 *** Warning: the command libtool uses to detect shared libraries,
7478 *** $file_magic_cmd, produces output that libtool cannot recognize.
7479 *** The result is that libtool may fail to recognize shared libraries
7480 *** as such.  This will affect the creation of libtool libraries that
7481 *** depend on shared libraries, but programs linked with such libtool
7482 *** libraries will work regardless of this problem.  Nevertheless, you
7483 *** may want to report the problem to your system manager and/or to
7484 *** bug-libtool@gnu.org
7485
7486 _LT_EOF
7487           fi ;;
7488         esac
7489       fi
7490       break
7491     fi
7492   done
7493   IFS="$lt_save_ifs"
7494   MAGIC_CMD="$lt_save_MAGIC_CMD"
7495   ;;
7496 esac
7497 fi
7498
7499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7500 if test -n "$MAGIC_CMD"; then
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7502 $as_echo "$MAGIC_CMD" >&6; }
7503 else
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 fi
7507
7508
7509   else
7510     MAGIC_CMD=:
7511   fi
7512 fi
7513
7514   fi
7515   ;;
7516 esac
7517
7518 # Use C for the default configuration in the libtool script
7519
7520 lt_save_CC="$CC"
7521 ac_ext=c
7522 ac_cpp='$CPP $CPPFLAGS'
7523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
7527
7528 # Source file extension for C test sources.
7529 ac_ext=c
7530
7531 # Object file extension for compiled C test sources.
7532 objext=o
7533 objext=$objext
7534
7535 # Code to be used in simple compile tests
7536 lt_simple_compile_test_code="int some_variable = 0;"
7537
7538 # Code to be used in simple link tests
7539 lt_simple_link_test_code='int main(){return(0);}'
7540
7541
7542
7543
7544
7545
7546
7547 # If no C compiler was specified, use CC.
7548 LTCC=${LTCC-"$CC"}
7549
7550 # If no C compiler flags were specified, use CFLAGS.
7551 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7552
7553 # Allow CC to be a program name with arguments.
7554 compiler=$CC
7555
7556 # Save the default compiler, since it gets overwritten when the other
7557 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7558 compiler_DEFAULT=$CC
7559
7560 # save warnings/boilerplate of simple test code
7561 ac_outfile=conftest.$ac_objext
7562 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7563 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7564 _lt_compiler_boilerplate=`cat conftest.err`
7565 $RM conftest*
7566
7567 ac_outfile=conftest.$ac_objext
7568 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7569 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7570 _lt_linker_boilerplate=`cat conftest.err`
7571 $RM -r conftest*
7572
7573
7574 ## CAVEAT EMPTOR:
7575 ## There is no encapsulation within the following macros, do not change
7576 ## the running order or otherwise move them around unless you know exactly
7577 ## what you are doing...
7578 if test -n "$compiler"; then
7579
7580 lt_prog_compiler_no_builtin_flag=
7581
7582 if test "$GCC" = yes; then
7583   case $cc_basename in
7584   nvcc*)
7585     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7586   *)
7587     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7588   esac
7589
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7591 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7592 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7593   $as_echo_n "(cached) " >&6
7594 else
7595   lt_cv_prog_compiler_rtti_exceptions=no
7596    ac_outfile=conftest.$ac_objext
7597    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7598    lt_compiler_flag="-fno-rtti -fno-exceptions"
7599    # Insert the option either (1) after the last *FLAGS variable, or
7600    # (2) before a word containing "conftest.", or (3) at the end.
7601    # Note that $ac_compile itself does not contain backslashes and begins
7602    # with a dollar sign (not a hyphen), so the echo should work correctly.
7603    # The option is referenced via a variable to avoid confusing sed.
7604    lt_compile=`echo "$ac_compile" | $SED \
7605    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7607    -e 's:$: $lt_compiler_flag:'`
7608    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7609    (eval "$lt_compile" 2>conftest.err)
7610    ac_status=$?
7611    cat conftest.err >&5
7612    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613    if (exit $ac_status) && test -s "$ac_outfile"; then
7614      # The compiler can only warn and ignore the option if not recognized
7615      # So say no if there are warnings other than the usual output.
7616      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7617      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7618      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7619        lt_cv_prog_compiler_rtti_exceptions=yes
7620      fi
7621    fi
7622    $RM conftest*
7623
7624 fi
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7626 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7627
7628 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7629     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7630 else
7631     :
7632 fi
7633
7634 fi
7635
7636
7637
7638
7639
7640
7641   lt_prog_compiler_wl=
7642 lt_prog_compiler_pic=
7643 lt_prog_compiler_static=
7644
7645
7646   if test "$GCC" = yes; then
7647     lt_prog_compiler_wl='-Wl,'
7648     lt_prog_compiler_static='-static'
7649
7650     case $host_os in
7651       aix*)
7652       # All AIX code is PIC.
7653       if test "$host_cpu" = ia64; then
7654         # AIX 5 now supports IA64 processor
7655         lt_prog_compiler_static='-Bstatic'
7656       fi
7657       ;;
7658
7659     amigaos*)
7660       case $host_cpu in
7661       powerpc)
7662             # see comment about AmigaOS4 .so support
7663             lt_prog_compiler_pic='-fPIC'
7664         ;;
7665       m68k)
7666             # FIXME: we need at least 68020 code to build shared libraries, but
7667             # adding the `-m68020' flag to GCC prevents building anything better,
7668             # like `-m68040'.
7669             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7670         ;;
7671       esac
7672       ;;
7673
7674     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7675       # PIC is the default for these OSes.
7676       ;;
7677
7678     mingw* | cygwin* | pw32* | os2* | cegcc*)
7679       # This hack is so that the source file can tell whether it is being
7680       # built for inclusion in a dll (and should export symbols for example).
7681       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7682       # (--disable-auto-import) libraries
7683       lt_prog_compiler_pic='-DDLL_EXPORT'
7684       ;;
7685
7686     darwin* | rhapsody*)
7687       # PIC is the default on this platform
7688       # Common symbols not allowed in MH_DYLIB files
7689       lt_prog_compiler_pic='-fno-common'
7690       ;;
7691
7692     haiku*)
7693       # PIC is the default for Haiku.
7694       # The "-static" flag exists, but is broken.
7695       lt_prog_compiler_static=
7696       ;;
7697
7698     hpux*)
7699       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7700       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7701       # sets the default TLS model and affects inlining.
7702       case $host_cpu in
7703       hppa*64*)
7704         # +Z the default
7705         ;;
7706       *)
7707         lt_prog_compiler_pic='-fPIC'
7708         ;;
7709       esac
7710       ;;
7711
7712     interix[3-9]*)
7713       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7714       # Instead, we relocate shared libraries at runtime.
7715       ;;
7716
7717     msdosdjgpp*)
7718       # Just because we use GCC doesn't mean we suddenly get shared libraries
7719       # on systems that don't support them.
7720       lt_prog_compiler_can_build_shared=no
7721       enable_shared=no
7722       ;;
7723
7724     *nto* | *qnx*)
7725       # QNX uses GNU C++, but need to define -shared option too, otherwise
7726       # it will coredump.
7727       lt_prog_compiler_pic='-fPIC -shared'
7728       ;;
7729
7730     sysv4*MP*)
7731       if test -d /usr/nec; then
7732         lt_prog_compiler_pic=-Kconform_pic
7733       fi
7734       ;;
7735
7736     *)
7737       lt_prog_compiler_pic='-fPIC'
7738       ;;
7739     esac
7740
7741     case $cc_basename in
7742     nvcc*) # Cuda Compiler Driver 2.2
7743       lt_prog_compiler_wl='-Xlinker '
7744       if test -n "$lt_prog_compiler_pic"; then
7745         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7746       fi
7747       ;;
7748     esac
7749   else
7750     # PORTME Check for flag to pass linker flags through the system compiler.
7751     case $host_os in
7752     aix*)
7753       lt_prog_compiler_wl='-Wl,'
7754       if test "$host_cpu" = ia64; then
7755         # AIX 5 now supports IA64 processor
7756         lt_prog_compiler_static='-Bstatic'
7757       else
7758         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7759       fi
7760       ;;
7761
7762     mingw* | cygwin* | pw32* | os2* | cegcc*)
7763       # This hack is so that the source file can tell whether it is being
7764       # built for inclusion in a dll (and should export symbols for example).
7765       lt_prog_compiler_pic='-DDLL_EXPORT'
7766       ;;
7767
7768     hpux9* | hpux10* | hpux11*)
7769       lt_prog_compiler_wl='-Wl,'
7770       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7771       # not for PA HP-UX.
7772       case $host_cpu in
7773       hppa*64*|ia64*)
7774         # +Z the default
7775         ;;
7776       *)
7777         lt_prog_compiler_pic='+Z'
7778         ;;
7779       esac
7780       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7781       lt_prog_compiler_static='${wl}-a ${wl}archive'
7782       ;;
7783
7784     irix5* | irix6* | nonstopux*)
7785       lt_prog_compiler_wl='-Wl,'
7786       # PIC (with -KPIC) is the default.
7787       lt_prog_compiler_static='-non_shared'
7788       ;;
7789
7790     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7791       case $cc_basename in
7792       # old Intel for x86_64 which still supported -KPIC.
7793       ecc*)
7794         lt_prog_compiler_wl='-Wl,'
7795         lt_prog_compiler_pic='-KPIC'
7796         lt_prog_compiler_static='-static'
7797         ;;
7798       # icc used to be incompatible with GCC.
7799       # ICC 10 doesn't accept -KPIC any more.
7800       icc* | ifort*)
7801         lt_prog_compiler_wl='-Wl,'
7802         lt_prog_compiler_pic='-fPIC'
7803         lt_prog_compiler_static='-static'
7804         ;;
7805       # Lahey Fortran 8.1.
7806       lf95*)
7807         lt_prog_compiler_wl='-Wl,'
7808         lt_prog_compiler_pic='--shared'
7809         lt_prog_compiler_static='--static'
7810         ;;
7811       nagfor*)
7812         # NAG Fortran compiler
7813         lt_prog_compiler_wl='-Wl,-Wl,,'
7814         lt_prog_compiler_pic='-PIC'
7815         lt_prog_compiler_static='-Bstatic'
7816         ;;
7817       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7818         # Portland Group compilers (*not* the Pentium gcc compiler,
7819         # which looks to be a dead project)
7820         lt_prog_compiler_wl='-Wl,'
7821         lt_prog_compiler_pic='-fpic'
7822         lt_prog_compiler_static='-Bstatic'
7823         ;;
7824       ccc*)
7825         lt_prog_compiler_wl='-Wl,'
7826         # All Alpha code is PIC.
7827         lt_prog_compiler_static='-non_shared'
7828         ;;
7829       xl* | bgxl* | bgf* | mpixl*)
7830         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7831         lt_prog_compiler_wl='-Wl,'
7832         lt_prog_compiler_pic='-qpic'
7833         lt_prog_compiler_static='-qstaticlink'
7834         ;;
7835       *)
7836         case `$CC -V 2>&1 | sed 5q` in
7837         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7838           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7839           lt_prog_compiler_pic='-KPIC'
7840           lt_prog_compiler_static='-Bstatic'
7841           lt_prog_compiler_wl=''
7842           ;;
7843         *Sun\ F* | *Sun*Fortran*)
7844           lt_prog_compiler_pic='-KPIC'
7845           lt_prog_compiler_static='-Bstatic'
7846           lt_prog_compiler_wl='-Qoption ld '
7847           ;;
7848         *Sun\ C*)
7849           # Sun C 5.9
7850           lt_prog_compiler_pic='-KPIC'
7851           lt_prog_compiler_static='-Bstatic'
7852           lt_prog_compiler_wl='-Wl,'
7853           ;;
7854         *Intel*\ [CF]*Compiler*)
7855           lt_prog_compiler_wl='-Wl,'
7856           lt_prog_compiler_pic='-fPIC'
7857           lt_prog_compiler_static='-static'
7858           ;;
7859         *Portland\ Group*)
7860           lt_prog_compiler_wl='-Wl,'
7861           lt_prog_compiler_pic='-fpic'
7862           lt_prog_compiler_static='-Bstatic'
7863           ;;
7864         esac
7865         ;;
7866       esac
7867       ;;
7868
7869     newsos6)
7870       lt_prog_compiler_pic='-KPIC'
7871       lt_prog_compiler_static='-Bstatic'
7872       ;;
7873
7874     *nto* | *qnx*)
7875       # QNX uses GNU C++, but need to define -shared option too, otherwise
7876       # it will coredump.
7877       lt_prog_compiler_pic='-fPIC -shared'
7878       ;;
7879
7880     osf3* | osf4* | osf5*)
7881       lt_prog_compiler_wl='-Wl,'
7882       # All OSF/1 code is PIC.
7883       lt_prog_compiler_static='-non_shared'
7884       ;;
7885
7886     rdos*)
7887       lt_prog_compiler_static='-non_shared'
7888       ;;
7889
7890     solaris*)
7891       lt_prog_compiler_pic='-KPIC'
7892       lt_prog_compiler_static='-Bstatic'
7893       case $cc_basename in
7894       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7895         lt_prog_compiler_wl='-Qoption ld ';;
7896       *)
7897         lt_prog_compiler_wl='-Wl,';;
7898       esac
7899       ;;
7900
7901     sunos4*)
7902       lt_prog_compiler_wl='-Qoption ld '
7903       lt_prog_compiler_pic='-PIC'
7904       lt_prog_compiler_static='-Bstatic'
7905       ;;
7906
7907     sysv4 | sysv4.2uw2* | sysv4.3*)
7908       lt_prog_compiler_wl='-Wl,'
7909       lt_prog_compiler_pic='-KPIC'
7910       lt_prog_compiler_static='-Bstatic'
7911       ;;
7912
7913     sysv4*MP*)
7914       if test -d /usr/nec ;then
7915         lt_prog_compiler_pic='-Kconform_pic'
7916         lt_prog_compiler_static='-Bstatic'
7917       fi
7918       ;;
7919
7920     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7921       lt_prog_compiler_wl='-Wl,'
7922       lt_prog_compiler_pic='-KPIC'
7923       lt_prog_compiler_static='-Bstatic'
7924       ;;
7925
7926     unicos*)
7927       lt_prog_compiler_wl='-Wl,'
7928       lt_prog_compiler_can_build_shared=no
7929       ;;
7930
7931     uts4*)
7932       lt_prog_compiler_pic='-pic'
7933       lt_prog_compiler_static='-Bstatic'
7934       ;;
7935
7936     *)
7937       lt_prog_compiler_can_build_shared=no
7938       ;;
7939     esac
7940   fi
7941
7942 case $host_os in
7943   # For platforms which do not support PIC, -DPIC is meaningless:
7944   *djgpp*)
7945     lt_prog_compiler_pic=
7946     ;;
7947   *)
7948     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7949     ;;
7950 esac
7951
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7953 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7954 if ${lt_cv_prog_compiler_pic+:} false; then :
7955   $as_echo_n "(cached) " >&6
7956 else
7957   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7958 fi
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7960 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7961 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7962
7963 #
7964 # Check to make sure the PIC flag actually works.
7965 #
7966 if test -n "$lt_prog_compiler_pic"; then
7967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7968 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7969 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7970   $as_echo_n "(cached) " >&6
7971 else
7972   lt_cv_prog_compiler_pic_works=no
7973    ac_outfile=conftest.$ac_objext
7974    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7975    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7976    # Insert the option either (1) after the last *FLAGS variable, or
7977    # (2) before a word containing "conftest.", or (3) at the end.
7978    # Note that $ac_compile itself does not contain backslashes and begins
7979    # with a dollar sign (not a hyphen), so the echo should work correctly.
7980    # The option is referenced via a variable to avoid confusing sed.
7981    lt_compile=`echo "$ac_compile" | $SED \
7982    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7983    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7984    -e 's:$: $lt_compiler_flag:'`
7985    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7986    (eval "$lt_compile" 2>conftest.err)
7987    ac_status=$?
7988    cat conftest.err >&5
7989    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990    if (exit $ac_status) && test -s "$ac_outfile"; then
7991      # The compiler can only warn and ignore the option if not recognized
7992      # So say no if there are warnings other than the usual output.
7993      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7994      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7995      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7996        lt_cv_prog_compiler_pic_works=yes
7997      fi
7998    fi
7999    $RM conftest*
8000
8001 fi
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8003 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8004
8005 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8006     case $lt_prog_compiler_pic in
8007      "" | " "*) ;;
8008      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8009      esac
8010 else
8011     lt_prog_compiler_pic=
8012      lt_prog_compiler_can_build_shared=no
8013 fi
8014
8015 fi
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027 #
8028 # Check to make sure the static flag actually works.
8029 #
8030 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8032 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8033 if ${lt_cv_prog_compiler_static_works+:} false; then :
8034   $as_echo_n "(cached) " >&6
8035 else
8036   lt_cv_prog_compiler_static_works=no
8037    save_LDFLAGS="$LDFLAGS"
8038    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8039    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8040    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8041      # The linker can only warn and ignore the option if not recognized
8042      # So say no if there are warnings
8043      if test -s conftest.err; then
8044        # Append any errors to the config.log.
8045        cat conftest.err 1>&5
8046        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8047        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8048        if diff conftest.exp conftest.er2 >/dev/null; then
8049          lt_cv_prog_compiler_static_works=yes
8050        fi
8051      else
8052        lt_cv_prog_compiler_static_works=yes
8053      fi
8054    fi
8055    $RM -r conftest*
8056    LDFLAGS="$save_LDFLAGS"
8057
8058 fi
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8060 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8061
8062 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8063     :
8064 else
8065     lt_prog_compiler_static=
8066 fi
8067
8068
8069
8070
8071
8072
8073
8074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8075 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8076 if ${lt_cv_prog_compiler_c_o+:} false; then :
8077   $as_echo_n "(cached) " >&6
8078 else
8079   lt_cv_prog_compiler_c_o=no
8080    $RM -r conftest 2>/dev/null
8081    mkdir conftest
8082    cd conftest
8083    mkdir out
8084    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8085
8086    lt_compiler_flag="-o out/conftest2.$ac_objext"
8087    # Insert the option either (1) after the last *FLAGS variable, or
8088    # (2) before a word containing "conftest.", or (3) at the end.
8089    # Note that $ac_compile itself does not contain backslashes and begins
8090    # with a dollar sign (not a hyphen), so the echo should work correctly.
8091    lt_compile=`echo "$ac_compile" | $SED \
8092    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8093    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8094    -e 's:$: $lt_compiler_flag:'`
8095    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8096    (eval "$lt_compile" 2>out/conftest.err)
8097    ac_status=$?
8098    cat out/conftest.err >&5
8099    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8101    then
8102      # The compiler can only warn and ignore the option if not recognized
8103      # So say no if there are warnings
8104      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8105      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8106      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8107        lt_cv_prog_compiler_c_o=yes
8108      fi
8109    fi
8110    chmod u+w . 2>&5
8111    $RM conftest*
8112    # SGI C++ compiler will create directory out/ii_files/ for
8113    # template instantiation
8114    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8115    $RM out/* && rmdir out
8116    cd ..
8117    $RM -r conftest
8118    $RM conftest*
8119
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8122 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8123
8124
8125
8126
8127
8128
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8130 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8131 if ${lt_cv_prog_compiler_c_o+:} false; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   lt_cv_prog_compiler_c_o=no
8135    $RM -r conftest 2>/dev/null
8136    mkdir conftest
8137    cd conftest
8138    mkdir out
8139    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8140
8141    lt_compiler_flag="-o out/conftest2.$ac_objext"
8142    # Insert the option either (1) after the last *FLAGS variable, or
8143    # (2) before a word containing "conftest.", or (3) at the end.
8144    # Note that $ac_compile itself does not contain backslashes and begins
8145    # with a dollar sign (not a hyphen), so the echo should work correctly.
8146    lt_compile=`echo "$ac_compile" | $SED \
8147    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8148    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8149    -e 's:$: $lt_compiler_flag:'`
8150    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8151    (eval "$lt_compile" 2>out/conftest.err)
8152    ac_status=$?
8153    cat out/conftest.err >&5
8154    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8156    then
8157      # The compiler can only warn and ignore the option if not recognized
8158      # So say no if there are warnings
8159      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8160      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8161      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8162        lt_cv_prog_compiler_c_o=yes
8163      fi
8164    fi
8165    chmod u+w . 2>&5
8166    $RM conftest*
8167    # SGI C++ compiler will create directory out/ii_files/ for
8168    # template instantiation
8169    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8170    $RM out/* && rmdir out
8171    cd ..
8172    $RM -r conftest
8173    $RM conftest*
8174
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8177 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8178
8179
8180
8181
8182 hard_links="nottested"
8183 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8184   # do not overwrite the value of need_locks provided by the user
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8186 $as_echo_n "checking if we can lock with hard links... " >&6; }
8187   hard_links=yes
8188   $RM conftest*
8189   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8190   touch conftest.a
8191   ln conftest.a conftest.b 2>&5 || hard_links=no
8192   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8194 $as_echo "$hard_links" >&6; }
8195   if test "$hard_links" = no; then
8196     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8197 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8198     need_locks=warn
8199   fi
8200 else
8201   need_locks=no
8202 fi
8203
8204
8205
8206
8207
8208
8209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8210 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8211
8212   runpath_var=
8213   allow_undefined_flag=
8214   always_export_symbols=no
8215   archive_cmds=
8216   archive_expsym_cmds=
8217   compiler_needs_object=no
8218   enable_shared_with_static_runtimes=no
8219   export_dynamic_flag_spec=
8220   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8221   hardcode_automatic=no
8222   hardcode_direct=no
8223   hardcode_direct_absolute=no
8224   hardcode_libdir_flag_spec=
8225   hardcode_libdir_separator=
8226   hardcode_minus_L=no
8227   hardcode_shlibpath_var=unsupported
8228   inherit_rpath=no
8229   link_all_deplibs=unknown
8230   module_cmds=
8231   module_expsym_cmds=
8232   old_archive_from_new_cmds=
8233   old_archive_from_expsyms_cmds=
8234   thread_safe_flag_spec=
8235   whole_archive_flag_spec=
8236   # include_expsyms should be a list of space-separated symbols to be *always*
8237   # included in the symbol list
8238   include_expsyms=
8239   # exclude_expsyms can be an extended regexp of symbols to exclude
8240   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8241   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8242   # as well as any symbol that contains `d'.
8243   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8244   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8245   # platforms (ab)use it in PIC code, but their linkers get confused if
8246   # the symbol is explicitly referenced.  Since portable code cannot
8247   # rely on this symbol name, it's probably fine to never include it in
8248   # preloaded symbol tables.
8249   # Exclude shared library initialization/finalization symbols.
8250   extract_expsyms_cmds=
8251
8252   case $host_os in
8253   cygwin* | mingw* | pw32* | cegcc*)
8254     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8255     # When not using gcc, we currently assume that we are using
8256     # Microsoft Visual C++.
8257     if test "$GCC" != yes; then
8258       with_gnu_ld=no
8259     fi
8260     ;;
8261   interix*)
8262     # we just hope/assume this is gcc and not c89 (= MSVC++)
8263     with_gnu_ld=yes
8264     ;;
8265   openbsd*)
8266     with_gnu_ld=no
8267     ;;
8268   linux* | k*bsd*-gnu | gnu*)
8269     link_all_deplibs=no
8270     ;;
8271   esac
8272
8273   ld_shlibs=yes
8274
8275   # On some targets, GNU ld is compatible enough with the native linker
8276   # that we're better off using the native interface for both.
8277   lt_use_gnu_ld_interface=no
8278   if test "$with_gnu_ld" = yes; then
8279     case $host_os in
8280       aix*)
8281         # The AIX port of GNU ld has always aspired to compatibility
8282         # with the native linker.  However, as the warning in the GNU ld
8283         # block says, versions before 2.19.5* couldn't really create working
8284         # shared libraries, regardless of the interface used.
8285         case `$LD -v 2>&1` in
8286           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8287           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8288           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8289           *)
8290             lt_use_gnu_ld_interface=yes
8291             ;;
8292         esac
8293         ;;
8294       *)
8295         lt_use_gnu_ld_interface=yes
8296         ;;
8297     esac
8298   fi
8299
8300   if test "$lt_use_gnu_ld_interface" = yes; then
8301     # If archive_cmds runs LD, not CC, wlarc should be empty
8302     wlarc='${wl}'
8303
8304     # Set some defaults for GNU ld with shared library support. These
8305     # are reset later if shared libraries are not supported. Putting them
8306     # here allows them to be overridden if necessary.
8307     runpath_var=LD_RUN_PATH
8308     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8309     export_dynamic_flag_spec='${wl}--export-dynamic'
8310     # ancient GNU ld didn't support --whole-archive et. al.
8311     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8312       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8313     else
8314       whole_archive_flag_spec=
8315     fi
8316     supports_anon_versioning=no
8317     case `$LD -v 2>&1` in
8318       *GNU\ gold*) supports_anon_versioning=yes ;;
8319       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8320       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8321       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8322       *\ 2.11.*) ;; # other 2.11 versions
8323       *) supports_anon_versioning=yes ;;
8324     esac
8325
8326     # See if GNU ld supports shared libraries.
8327     case $host_os in
8328     aix[3-9]*)
8329       # On AIX/PPC, the GNU linker is very broken
8330       if test "$host_cpu" != ia64; then
8331         ld_shlibs=no
8332         cat <<_LT_EOF 1>&2
8333
8334 *** Warning: the GNU linker, at least up to release 2.19, is reported
8335 *** to be unable to reliably create shared libraries on AIX.
8336 *** Therefore, libtool is disabling shared libraries support.  If you
8337 *** really care for shared libraries, you may want to install binutils
8338 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8339 *** You will then need to restart the configuration process.
8340
8341 _LT_EOF
8342       fi
8343       ;;
8344
8345     amigaos*)
8346       case $host_cpu in
8347       powerpc)
8348             # see comment about AmigaOS4 .so support
8349             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8350             archive_expsym_cmds=''
8351         ;;
8352       m68k)
8353             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)'
8354             hardcode_libdir_flag_spec='-L$libdir'
8355             hardcode_minus_L=yes
8356         ;;
8357       esac
8358       ;;
8359
8360     beos*)
8361       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8362         allow_undefined_flag=unsupported
8363         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8364         # support --undefined.  This deserves some investigation.  FIXME
8365         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8366       else
8367         ld_shlibs=no
8368       fi
8369       ;;
8370
8371     cygwin* | mingw* | pw32* | cegcc*)
8372       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8373       # as there is no search path for DLLs.
8374       hardcode_libdir_flag_spec='-L$libdir'
8375       export_dynamic_flag_spec='${wl}--export-all-symbols'
8376       allow_undefined_flag=unsupported
8377       always_export_symbols=no
8378       enable_shared_with_static_runtimes=yes
8379       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'
8380       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8381
8382       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8383         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8384         # If the export-symbols file already is a .def file (1st line
8385         # is EXPORTS), use it as is; otherwise, prepend...
8386         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8387           cp $export_symbols $output_objdir/$soname.def;
8388         else
8389           echo EXPORTS > $output_objdir/$soname.def;
8390           cat $export_symbols >> $output_objdir/$soname.def;
8391         fi~
8392         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8393       else
8394         ld_shlibs=no
8395       fi
8396       ;;
8397
8398     haiku*)
8399       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400       link_all_deplibs=yes
8401       ;;
8402
8403     interix[3-9]*)
8404       hardcode_direct=no
8405       hardcode_shlibpath_var=no
8406       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8407       export_dynamic_flag_spec='${wl}-E'
8408       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8409       # Instead, shared libraries are loaded at an image base (0x10000000 by
8410       # default) and relocated if they conflict, which is a slow very memory
8411       # consuming and fragmenting process.  To avoid this, we pick a random,
8412       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8413       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8414       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8415       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'
8416       ;;
8417
8418     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8419       tmp_diet=no
8420       if test "$host_os" = linux-dietlibc; then
8421         case $cc_basename in
8422           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8423         esac
8424       fi
8425       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8426          && test "$tmp_diet" = no
8427       then
8428         tmp_addflag=' $pic_flag'
8429         tmp_sharedflag='-shared'
8430         case $cc_basename,$host_cpu in
8431         pgcc*)                          # Portland Group C compiler
8432           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'
8433           tmp_addflag=' $pic_flag'
8434           ;;
8435         pgf77* | pgf90* | pgf95* | pgfortran*)
8436                                         # Portland Group f77 and f90 compilers
8437           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'
8438           tmp_addflag=' $pic_flag -Mnomain' ;;
8439         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8440           tmp_addflag=' -i_dynamic' ;;
8441         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8442           tmp_addflag=' -i_dynamic -nofor_main' ;;
8443         ifc* | ifort*)                  # Intel Fortran compiler
8444           tmp_addflag=' -nofor_main' ;;
8445         lf95*)                          # Lahey Fortran 8.1
8446           whole_archive_flag_spec=
8447           tmp_sharedflag='--shared' ;;
8448         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8449           tmp_sharedflag='-qmkshrobj'
8450           tmp_addflag= ;;
8451         nvcc*)  # Cuda Compiler Driver 2.2
8452           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'
8453           compiler_needs_object=yes
8454           ;;
8455         esac
8456         case `$CC -V 2>&1 | sed 5q` in
8457         *Sun\ C*)                       # Sun C 5.9
8458           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'
8459           compiler_needs_object=yes
8460           tmp_sharedflag='-G' ;;
8461         *Sun\ F*)                       # Sun Fortran 8.3
8462           tmp_sharedflag='-G' ;;
8463         esac
8464         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8465
8466         if test "x$supports_anon_versioning" = xyes; then
8467           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8468             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8469             echo "local: *; };" >> $output_objdir/$libname.ver~
8470             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8471         fi
8472
8473         case $cc_basename in
8474         xlf* | bgf* | bgxlf* | mpixlf*)
8475           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8476           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8477           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8478           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8479           if test "x$supports_anon_versioning" = xyes; then
8480             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8481               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8482               echo "local: *; };" >> $output_objdir/$libname.ver~
8483               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8484           fi
8485           ;;
8486         esac
8487       else
8488         ld_shlibs=no
8489       fi
8490       ;;
8491
8492     netbsd* | netbsdelf*-gnu)
8493       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8494         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8495         wlarc=
8496       else
8497         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8499       fi
8500       ;;
8501
8502     solaris*)
8503       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8504         ld_shlibs=no
8505         cat <<_LT_EOF 1>&2
8506
8507 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8508 *** create shared libraries on Solaris systems.  Therefore, libtool
8509 *** is disabling shared libraries support.  We urge you to upgrade GNU
8510 *** binutils to release 2.9.1 or newer.  Another option is to modify
8511 *** your PATH or compiler configuration so that the native linker is
8512 *** used, and then restart.
8513
8514 _LT_EOF
8515       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8516         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8518       else
8519         ld_shlibs=no
8520       fi
8521       ;;
8522
8523     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8524       case `$LD -v 2>&1` in
8525         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8526         ld_shlibs=no
8527         cat <<_LT_EOF 1>&2
8528
8529 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8530 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8531 *** is disabling shared libraries support.  We urge you to upgrade GNU
8532 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8533 *** your PATH or compiler configuration so that the native linker is
8534 *** used, and then restart.
8535
8536 _LT_EOF
8537         ;;
8538         *)
8539           # For security reasons, it is highly recommended that you always
8540           # use absolute paths for naming shared libraries, and exclude the
8541           # DT_RUNPATH tag from executables and libraries.  But doing so
8542           # requires that you compile everything twice, which is a pain.
8543           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8544             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8546             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8547           else
8548             ld_shlibs=no
8549           fi
8550         ;;
8551       esac
8552       ;;
8553
8554     sunos4*)
8555       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8556       wlarc=
8557       hardcode_direct=yes
8558       hardcode_shlibpath_var=no
8559       ;;
8560
8561     *)
8562       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8563         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8564         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8565       else
8566         ld_shlibs=no
8567       fi
8568       ;;
8569     esac
8570
8571     if test "$ld_shlibs" = no; then
8572       runpath_var=
8573       hardcode_libdir_flag_spec=
8574       export_dynamic_flag_spec=
8575       whole_archive_flag_spec=
8576     fi
8577   else
8578     # PORTME fill in a description of your system's linker (not GNU ld)
8579     case $host_os in
8580     aix3*)
8581       allow_undefined_flag=unsupported
8582       always_export_symbols=yes
8583       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'
8584       # Note: this linker hardcodes the directories in LIBPATH if there
8585       # are no directories specified by -L.
8586       hardcode_minus_L=yes
8587       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8588         # Neither direct hardcoding nor static linking is supported with a
8589         # broken collect2.
8590         hardcode_direct=unsupported
8591       fi
8592       ;;
8593
8594     aix[4-9]*)
8595       if test "$host_cpu" = ia64; then
8596         # On IA64, the linker does run time linking by default, so we don't
8597         # have to do anything special.
8598         aix_use_runtimelinking=no
8599         exp_sym_flag='-Bexport'
8600         no_entry_flag=""
8601       else
8602         # If we're using GNU nm, then we don't want the "-C" option.
8603         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8604         # Also, AIX nm treats weak defined symbols like other global
8605         # defined symbols, whereas GNU nm marks them as "W".
8606         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8607           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'
8608         else
8609           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'
8610         fi
8611         aix_use_runtimelinking=no
8612
8613         # Test if we are trying to use run time linking or normal
8614         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8615         # need to do runtime linking.
8616         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8617           for ld_flag in $LDFLAGS; do
8618           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8619             aix_use_runtimelinking=yes
8620             break
8621           fi
8622           done
8623           ;;
8624         esac
8625
8626         exp_sym_flag='-bexport'
8627         no_entry_flag='-bnoentry'
8628       fi
8629
8630       # When large executables or shared objects are built, AIX ld can
8631       # have problems creating the table of contents.  If linking a library
8632       # or program results in "error TOC overflow" add -mminimal-toc to
8633       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8634       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8635
8636       archive_cmds=''
8637       hardcode_direct=yes
8638       hardcode_direct_absolute=yes
8639       hardcode_libdir_separator=':'
8640       link_all_deplibs=yes
8641       file_list_spec='${wl}-f,'
8642
8643       if test "$GCC" = yes; then
8644         case $host_os in aix4.[012]|aix4.[012].*)
8645         # We only want to do this on AIX 4.2 and lower, the check
8646         # below for broken collect2 doesn't work under 4.3+
8647           collect2name=`${CC} -print-prog-name=collect2`
8648           if test -f "$collect2name" &&
8649            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8650           then
8651           # We have reworked collect2
8652           :
8653           else
8654           # We have old collect2
8655           hardcode_direct=unsupported
8656           # It fails to find uninstalled libraries when the uninstalled
8657           # path is not listed in the libpath.  Setting hardcode_minus_L
8658           # to unsupported forces relinking
8659           hardcode_minus_L=yes
8660           hardcode_libdir_flag_spec='-L$libdir'
8661           hardcode_libdir_separator=
8662           fi
8663           ;;
8664         esac
8665         shared_flag='-shared'
8666         if test "$aix_use_runtimelinking" = yes; then
8667           shared_flag="$shared_flag "'${wl}-G'
8668         fi
8669         link_all_deplibs=no
8670       else
8671         # not using gcc
8672         if test "$host_cpu" = ia64; then
8673         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8674         # chokes on -Wl,-G. The following line is correct:
8675           shared_flag='-G'
8676         else
8677           if test "$aix_use_runtimelinking" = yes; then
8678             shared_flag='${wl}-G'
8679           else
8680             shared_flag='${wl}-bM:SRE'
8681           fi
8682         fi
8683       fi
8684
8685       export_dynamic_flag_spec='${wl}-bexpall'
8686       # It seems that -bexpall does not export symbols beginning with
8687       # underscore (_), so it is better to generate a list of symbols to export.
8688       always_export_symbols=yes
8689       if test "$aix_use_runtimelinking" = yes; then
8690         # Warning - without using the other runtime loading flags (-brtl),
8691         # -berok will link without error, but may produce a broken library.
8692         allow_undefined_flag='-berok'
8693         # Determine the default libpath from the value encoded in an
8694         # empty executable.
8695         if test "${lt_cv_aix_libpath+set}" = set; then
8696   aix_libpath=$lt_cv_aix_libpath
8697 else
8698   if ${lt_cv_aix_libpath_+:} false; then :
8699   $as_echo_n "(cached) " >&6
8700 else
8701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h.  */
8703
8704 int
8705 main ()
8706 {
8707
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 if ac_fn_c_try_link "$LINENO"; then :
8713
8714   lt_aix_libpath_sed='
8715       /Import File Strings/,/^$/ {
8716           /^0/ {
8717               s/^0  *\([^ ]*\) *$/\1/
8718               p
8719           }
8720       }'
8721   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8722   # Check for a 64-bit object if we didn't find anything.
8723   if test -z "$lt_cv_aix_libpath_"; then
8724     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8725   fi
8726 fi
8727 rm -f core conftest.err conftest.$ac_objext \
8728     conftest$ac_exeext conftest.$ac_ext
8729   if test -z "$lt_cv_aix_libpath_"; then
8730     lt_cv_aix_libpath_="/usr/lib:/lib"
8731   fi
8732
8733 fi
8734
8735   aix_libpath=$lt_cv_aix_libpath_
8736 fi
8737
8738         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8739         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"
8740       else
8741         if test "$host_cpu" = ia64; then
8742           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8743           allow_undefined_flag="-z nodefs"
8744           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"
8745         else
8746          # Determine the default libpath from the value encoded in an
8747          # empty executable.
8748          if test "${lt_cv_aix_libpath+set}" = set; then
8749   aix_libpath=$lt_cv_aix_libpath
8750 else
8751   if ${lt_cv_aix_libpath_+:} false; then :
8752   $as_echo_n "(cached) " >&6
8753 else
8754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h.  */
8756
8757 int
8758 main ()
8759 {
8760
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 if ac_fn_c_try_link "$LINENO"; then :
8766
8767   lt_aix_libpath_sed='
8768       /Import File Strings/,/^$/ {
8769           /^0/ {
8770               s/^0  *\([^ ]*\) *$/\1/
8771               p
8772           }
8773       }'
8774   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8775   # Check for a 64-bit object if we didn't find anything.
8776   if test -z "$lt_cv_aix_libpath_"; then
8777     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8778   fi
8779 fi
8780 rm -f core conftest.err conftest.$ac_objext \
8781     conftest$ac_exeext conftest.$ac_ext
8782   if test -z "$lt_cv_aix_libpath_"; then
8783     lt_cv_aix_libpath_="/usr/lib:/lib"
8784   fi
8785
8786 fi
8787
8788   aix_libpath=$lt_cv_aix_libpath_
8789 fi
8790
8791          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8792           # Warning - without using the other run time loading flags,
8793           # -berok will link without error, but may produce a broken library.
8794           no_undefined_flag=' ${wl}-bernotok'
8795           allow_undefined_flag=' ${wl}-berok'
8796           if test "$with_gnu_ld" = yes; then
8797             # We only use this code for GNU lds that support --whole-archive.
8798             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8799           else
8800             # Exported symbols can be pulled into shared objects from archives
8801             whole_archive_flag_spec='$convenience'
8802           fi
8803           archive_cmds_need_lc=yes
8804           # This is similar to how AIX traditionally builds its shared libraries.
8805           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'
8806         fi
8807       fi
8808       ;;
8809
8810     amigaos*)
8811       case $host_cpu in
8812       powerpc)
8813             # see comment about AmigaOS4 .so support
8814             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8815             archive_expsym_cmds=''
8816         ;;
8817       m68k)
8818             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)'
8819             hardcode_libdir_flag_spec='-L$libdir'
8820             hardcode_minus_L=yes
8821         ;;
8822       esac
8823       ;;
8824
8825     bsdi[45]*)
8826       export_dynamic_flag_spec=-rdynamic
8827       ;;
8828
8829     cygwin* | mingw* | pw32* | cegcc*)
8830       # When not using gcc, we currently assume that we are using
8831       # Microsoft Visual C++.
8832       # hardcode_libdir_flag_spec is actually meaningless, as there is
8833       # no search path for DLLs.
8834       case $cc_basename in
8835       cl*)
8836         # Native MSVC
8837         hardcode_libdir_flag_spec=' '
8838         allow_undefined_flag=unsupported
8839         always_export_symbols=yes
8840         file_list_spec='@'
8841         # Tell ltmain to make .lib files, not .a files.
8842         libext=lib
8843         # Tell ltmain to make .dll files, not .so files.
8844         shrext_cmds=".dll"
8845         # FIXME: Setting linknames here is a bad hack.
8846         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8847         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8848             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8849           else
8850             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8851           fi~
8852           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8853           linknames='
8854         # The linker will not automatically build a static lib if we build a DLL.
8855         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8856         enable_shared_with_static_runtimes=yes
8857         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8858         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8859         # Don't use ranlib
8860         old_postinstall_cmds='chmod 644 $oldlib'
8861         postlink_cmds='lt_outputfile="@OUTPUT@"~
8862           lt_tool_outputfile="@TOOL_OUTPUT@"~
8863           case $lt_outputfile in
8864             *.exe|*.EXE) ;;
8865             *)
8866               lt_outputfile="$lt_outputfile.exe"
8867               lt_tool_outputfile="$lt_tool_outputfile.exe"
8868               ;;
8869           esac~
8870           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8871             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8872             $RM "$lt_outputfile.manifest";
8873           fi'
8874         ;;
8875       *)
8876         # Assume MSVC wrapper
8877         hardcode_libdir_flag_spec=' '
8878         allow_undefined_flag=unsupported
8879         # Tell ltmain to make .lib files, not .a files.
8880         libext=lib
8881         # Tell ltmain to make .dll files, not .so files.
8882         shrext_cmds=".dll"
8883         # FIXME: Setting linknames here is a bad hack.
8884         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8885         # The linker will automatically build a .lib file if we build a DLL.
8886         old_archive_from_new_cmds='true'
8887         # FIXME: Should let the user specify the lib program.
8888         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8889         enable_shared_with_static_runtimes=yes
8890         ;;
8891       esac
8892       ;;
8893
8894     darwin* | rhapsody*)
8895
8896
8897   archive_cmds_need_lc=no
8898   hardcode_direct=no
8899   hardcode_automatic=yes
8900   hardcode_shlibpath_var=unsupported
8901   if test "$lt_cv_ld_force_load" = "yes"; then
8902     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\"`'
8903
8904   else
8905     whole_archive_flag_spec=''
8906   fi
8907   link_all_deplibs=yes
8908   allow_undefined_flag="$_lt_dar_allow_undefined"
8909   case $cc_basename in
8910      ifort*) _lt_dar_can_shared=yes ;;
8911      *) _lt_dar_can_shared=$GCC ;;
8912   esac
8913   if test "$_lt_dar_can_shared" = "yes"; then
8914     output_verbose_link_cmd=func_echo_all
8915     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8916     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8917     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}"
8918     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}"
8919
8920   else
8921   ld_shlibs=no
8922   fi
8923
8924       ;;
8925
8926     dgux*)
8927       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8928       hardcode_libdir_flag_spec='-L$libdir'
8929       hardcode_shlibpath_var=no
8930       ;;
8931
8932     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8933     # support.  Future versions do this automatically, but an explicit c++rt0.o
8934     # does not break anything, and helps significantly (at the cost of a little
8935     # extra space).
8936     freebsd2.2*)
8937       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8938       hardcode_libdir_flag_spec='-R$libdir'
8939       hardcode_direct=yes
8940       hardcode_shlibpath_var=no
8941       ;;
8942
8943     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8944     freebsd2.*)
8945       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8946       hardcode_direct=yes
8947       hardcode_minus_L=yes
8948       hardcode_shlibpath_var=no
8949       ;;
8950
8951     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8952     freebsd* | dragonfly*)
8953       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8954       hardcode_libdir_flag_spec='-R$libdir'
8955       hardcode_direct=yes
8956       hardcode_shlibpath_var=no
8957       ;;
8958
8959     hpux9*)
8960       if test "$GCC" = yes; then
8961         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'
8962       else
8963         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'
8964       fi
8965       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8966       hardcode_libdir_separator=:
8967       hardcode_direct=yes
8968
8969       # hardcode_minus_L: Not really in the search PATH,
8970       # but as the default location of the library.
8971       hardcode_minus_L=yes
8972       export_dynamic_flag_spec='${wl}-E'
8973       ;;
8974
8975     hpux10*)
8976       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8977         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8978       else
8979         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8980       fi
8981       if test "$with_gnu_ld" = no; then
8982         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8983         hardcode_libdir_separator=:
8984         hardcode_direct=yes
8985         hardcode_direct_absolute=yes
8986         export_dynamic_flag_spec='${wl}-E'
8987         # hardcode_minus_L: Not really in the search PATH,
8988         # but as the default location of the library.
8989         hardcode_minus_L=yes
8990       fi
8991       ;;
8992
8993     hpux11*)
8994       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8995         case $host_cpu in
8996         hppa*64*)
8997           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8998           ;;
8999         ia64*)
9000           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9001           ;;
9002         *)
9003           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9004           ;;
9005         esac
9006       else
9007         case $host_cpu in
9008         hppa*64*)
9009           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9010           ;;
9011         ia64*)
9012           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9013           ;;
9014         *)
9015
9016           # Older versions of the 11.00 compiler do not understand -b yet
9017           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9018           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9019 $as_echo_n "checking if $CC understands -b... " >&6; }
9020 if ${lt_cv_prog_compiler__b+:} false; then :
9021   $as_echo_n "(cached) " >&6
9022 else
9023   lt_cv_prog_compiler__b=no
9024    save_LDFLAGS="$LDFLAGS"
9025    LDFLAGS="$LDFLAGS -b"
9026    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9027    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9028      # The linker can only warn and ignore the option if not recognized
9029      # So say no if there are warnings
9030      if test -s conftest.err; then
9031        # Append any errors to the config.log.
9032        cat conftest.err 1>&5
9033        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9034        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035        if diff conftest.exp conftest.er2 >/dev/null; then
9036          lt_cv_prog_compiler__b=yes
9037        fi
9038      else
9039        lt_cv_prog_compiler__b=yes
9040      fi
9041    fi
9042    $RM -r conftest*
9043    LDFLAGS="$save_LDFLAGS"
9044
9045 fi
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9047 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9048
9049 if test x"$lt_cv_prog_compiler__b" = xyes; then
9050     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9051 else
9052     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9053 fi
9054
9055           ;;
9056         esac
9057       fi
9058       if test "$with_gnu_ld" = no; then
9059         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9060         hardcode_libdir_separator=:
9061
9062         case $host_cpu in
9063         hppa*64*|ia64*)
9064           hardcode_direct=no
9065           hardcode_shlibpath_var=no
9066           ;;
9067         *)
9068           hardcode_direct=yes
9069           hardcode_direct_absolute=yes
9070           export_dynamic_flag_spec='${wl}-E'
9071
9072           # hardcode_minus_L: Not really in the search PATH,
9073           # but as the default location of the library.
9074           hardcode_minus_L=yes
9075           ;;
9076         esac
9077       fi
9078       ;;
9079
9080     irix5* | irix6* | nonstopux*)
9081       if test "$GCC" = yes; then
9082         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'
9083         # Try to use the -exported_symbol ld option, if it does not
9084         # work, assume that -exports_file does not work either and
9085         # implicitly export all symbols.
9086         # This should be the same for all languages, so no per-tag cache variable.
9087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9088 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9089 if ${lt_cv_irix_exported_symbol+:} false; then :
9090   $as_echo_n "(cached) " >&6
9091 else
9092   save_LDFLAGS="$LDFLAGS"
9093            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9094            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h.  */
9096 int foo (void) { return 0; }
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"; then :
9099   lt_cv_irix_exported_symbol=yes
9100 else
9101   lt_cv_irix_exported_symbol=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext \
9104     conftest$ac_exeext conftest.$ac_ext
9105            LDFLAGS="$save_LDFLAGS"
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9108 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9109         if test "$lt_cv_irix_exported_symbol" = yes; then
9110           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'
9111         fi
9112       else
9113         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'
9114         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'
9115       fi
9116       archive_cmds_need_lc='no'
9117       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9118       hardcode_libdir_separator=:
9119       inherit_rpath=yes
9120       link_all_deplibs=yes
9121       ;;
9122
9123     netbsd* | netbsdelf*-gnu)
9124       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9125         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9126       else
9127         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9128       fi
9129       hardcode_libdir_flag_spec='-R$libdir'
9130       hardcode_direct=yes
9131       hardcode_shlibpath_var=no
9132       ;;
9133
9134     newsos6)
9135       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9136       hardcode_direct=yes
9137       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9138       hardcode_libdir_separator=:
9139       hardcode_shlibpath_var=no
9140       ;;
9141
9142     *nto* | *qnx*)
9143       ;;
9144
9145     openbsd*)
9146       if test -f /usr/libexec/ld.so; then
9147         hardcode_direct=yes
9148         hardcode_shlibpath_var=no
9149         hardcode_direct_absolute=yes
9150         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9151           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9152           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9153           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9154           export_dynamic_flag_spec='${wl}-E'
9155         else
9156           case $host_os in
9157            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9158              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9159              hardcode_libdir_flag_spec='-R$libdir'
9160              ;;
9161            *)
9162              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9163              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9164              ;;
9165           esac
9166         fi
9167       else
9168         ld_shlibs=no
9169       fi
9170       ;;
9171
9172     os2*)
9173       hardcode_libdir_flag_spec='-L$libdir'
9174       hardcode_minus_L=yes
9175       allow_undefined_flag=unsupported
9176       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'
9177       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9178       ;;
9179
9180     osf3*)
9181       if test "$GCC" = yes; then
9182         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9183         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'
9184       else
9185         allow_undefined_flag=' -expect_unresolved \*'
9186         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'
9187       fi
9188       archive_cmds_need_lc='no'
9189       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9190       hardcode_libdir_separator=:
9191       ;;
9192
9193     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9194       if test "$GCC" = yes; then
9195         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9196         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'
9197         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9198       else
9199         allow_undefined_flag=' -expect_unresolved \*'
9200         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'
9201         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~
9202         $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'
9203
9204         # Both c and cxx compiler support -rpath directly
9205         hardcode_libdir_flag_spec='-rpath $libdir'
9206       fi
9207       archive_cmds_need_lc='no'
9208       hardcode_libdir_separator=:
9209       ;;
9210
9211     solaris*)
9212       no_undefined_flag=' -z defs'
9213       if test "$GCC" = yes; then
9214         wlarc='${wl}'
9215         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9216         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9217           $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'
9218       else
9219         case `$CC -V 2>&1` in
9220         *"Compilers 5.0"*)
9221           wlarc=''
9222           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9223           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9224           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9225           ;;
9226         *)
9227           wlarc='${wl}'
9228           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9229           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9230           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9231           ;;
9232         esac
9233       fi
9234       hardcode_libdir_flag_spec='-R$libdir'
9235       hardcode_shlibpath_var=no
9236       case $host_os in
9237       solaris2.[0-5] | solaris2.[0-5].*) ;;
9238       *)
9239         # The compiler driver will combine and reorder linker options,
9240         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9241         # but is careful enough not to reorder.
9242         # Supported since Solaris 2.6 (maybe 2.5.1?)
9243         if test "$GCC" = yes; then
9244           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9245         else
9246           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9247         fi
9248         ;;
9249       esac
9250       link_all_deplibs=yes
9251       ;;
9252
9253     sunos4*)
9254       if test "x$host_vendor" = xsequent; then
9255         # Use $CC to link under sequent, because it throws in some extra .o
9256         # files that make .init and .fini sections work.
9257         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9258       else
9259         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9260       fi
9261       hardcode_libdir_flag_spec='-L$libdir'
9262       hardcode_direct=yes
9263       hardcode_minus_L=yes
9264       hardcode_shlibpath_var=no
9265       ;;
9266
9267     sysv4)
9268       case $host_vendor in
9269         sni)
9270           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271           hardcode_direct=yes # is this really true???
9272         ;;
9273         siemens)
9274           ## LD is ld it makes a PLAMLIB
9275           ## CC just makes a GrossModule.
9276           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9277           reload_cmds='$CC -r -o $output$reload_objs'
9278           hardcode_direct=no
9279         ;;
9280         motorola)
9281           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9282           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9283         ;;
9284       esac
9285       runpath_var='LD_RUN_PATH'
9286       hardcode_shlibpath_var=no
9287       ;;
9288
9289     sysv4.3*)
9290       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291       hardcode_shlibpath_var=no
9292       export_dynamic_flag_spec='-Bexport'
9293       ;;
9294
9295     sysv4*MP*)
9296       if test -d /usr/nec; then
9297         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9298         hardcode_shlibpath_var=no
9299         runpath_var=LD_RUN_PATH
9300         hardcode_runpath_var=yes
9301         ld_shlibs=yes
9302       fi
9303       ;;
9304
9305     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9306       no_undefined_flag='${wl}-z,text'
9307       archive_cmds_need_lc=no
9308       hardcode_shlibpath_var=no
9309       runpath_var='LD_RUN_PATH'
9310
9311       if test "$GCC" = yes; then
9312         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9313         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9314       else
9315         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9316         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9317       fi
9318       ;;
9319
9320     sysv5* | sco3.2v5* | sco5v6*)
9321       # Note: We can NOT use -z defs as we might desire, because we do not
9322       # link with -lc, and that would cause any symbols used from libc to
9323       # always be unresolved, which means just about no library would
9324       # ever link correctly.  If we're not using GNU ld we use -z text
9325       # though, which does catch some bad symbols but isn't as heavy-handed
9326       # as -z defs.
9327       no_undefined_flag='${wl}-z,text'
9328       allow_undefined_flag='${wl}-z,nodefs'
9329       archive_cmds_need_lc=no
9330       hardcode_shlibpath_var=no
9331       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9332       hardcode_libdir_separator=':'
9333       link_all_deplibs=yes
9334       export_dynamic_flag_spec='${wl}-Bexport'
9335       runpath_var='LD_RUN_PATH'
9336
9337       if test "$GCC" = yes; then
9338         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9339         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9340       else
9341         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9342         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9343       fi
9344       ;;
9345
9346     uts4*)
9347       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348       hardcode_libdir_flag_spec='-L$libdir'
9349       hardcode_shlibpath_var=no
9350       ;;
9351
9352     *)
9353       ld_shlibs=no
9354       ;;
9355     esac
9356
9357     if test x$host_vendor = xsni; then
9358       case $host in
9359       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9360         export_dynamic_flag_spec='${wl}-Blargedynsym'
9361         ;;
9362       esac
9363     fi
9364   fi
9365
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9367 $as_echo "$ld_shlibs" >&6; }
9368 test "$ld_shlibs" = no && can_build_shared=no
9369
9370 with_gnu_ld=$with_gnu_ld
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386 #
9387 # Do we need to explicitly link libc?
9388 #
9389 case "x$archive_cmds_need_lc" in
9390 x|xyes)
9391   # Assume -lc should be added
9392   archive_cmds_need_lc=yes
9393
9394   if test "$enable_shared" = yes && test "$GCC" = yes; then
9395     case $archive_cmds in
9396     *'~'*)
9397       # FIXME: we may have to deal with multi-command sequences.
9398       ;;
9399     '$CC '*)
9400       # Test whether the compiler implicitly links with -lc since on some
9401       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9402       # to ld, don't add -lc before -lgcc.
9403       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9404 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9405 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9406   $as_echo_n "(cached) " >&6
9407 else
9408   $RM conftest*
9409         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9410
9411         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9412   (eval $ac_compile) 2>&5
9413   ac_status=$?
9414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9415   test $ac_status = 0; } 2>conftest.err; then
9416           soname=conftest
9417           lib=conftest
9418           libobjs=conftest.$ac_objext
9419           deplibs=
9420           wl=$lt_prog_compiler_wl
9421           pic_flag=$lt_prog_compiler_pic
9422           compiler_flags=-v
9423           linker_flags=-v
9424           verstring=
9425           output_objdir=.
9426           libname=conftest
9427           lt_save_allow_undefined_flag=$allow_undefined_flag
9428           allow_undefined_flag=
9429           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9430   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9431   ac_status=$?
9432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9433   test $ac_status = 0; }
9434           then
9435             lt_cv_archive_cmds_need_lc=no
9436           else
9437             lt_cv_archive_cmds_need_lc=yes
9438           fi
9439           allow_undefined_flag=$lt_save_allow_undefined_flag
9440         else
9441           cat conftest.err 1>&5
9442         fi
9443         $RM conftest*
9444
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9447 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9448       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9449       ;;
9450     esac
9451   fi
9452   ;;
9453 esac
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9607 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9608
9609 if test "$GCC" = yes; then
9610   case $host_os in
9611     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9612     *) lt_awk_arg="/^libraries:/" ;;
9613   esac
9614   case $host_os in
9615     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9616     *) lt_sed_strip_eq="s,=/,/,g" ;;
9617   esac
9618   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9619   case $lt_search_path_spec in
9620   *\;*)
9621     # if the path contains ";" then we assume it to be the separator
9622     # otherwise default to the standard path separator (i.e. ":") - it is
9623     # assumed that no part of a normal pathname contains ";" but that should
9624     # okay in the real world where ";" in dirpaths is itself problematic.
9625     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9626     ;;
9627   *)
9628     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9629     ;;
9630   esac
9631   # Ok, now we have the path, separated by spaces, we can step through it
9632   # and add multilib dir if necessary.
9633   lt_tmp_lt_search_path_spec=
9634   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9635   for lt_sys_path in $lt_search_path_spec; do
9636     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9637       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9638     else
9639       test -d "$lt_sys_path" && \
9640         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9641     fi
9642   done
9643   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9644 BEGIN {RS=" "; FS="/|\n";} {
9645   lt_foo="";
9646   lt_count=0;
9647   for (lt_i = NF; lt_i > 0; lt_i--) {
9648     if ($lt_i != "" && $lt_i != ".") {
9649       if ($lt_i == "..") {
9650         lt_count++;
9651       } else {
9652         if (lt_count == 0) {
9653           lt_foo="/" $lt_i lt_foo;
9654         } else {
9655           lt_count--;
9656         }
9657       }
9658     }
9659   }
9660   if (lt_foo != "") { lt_freq[lt_foo]++; }
9661   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9662 }'`
9663   # AWK program above erroneously prepends '/' to C:/dos/paths
9664   # for these hosts.
9665   case $host_os in
9666     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9667       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9668   esac
9669   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9670 else
9671   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9672 fi
9673 library_names_spec=
9674 libname_spec='lib$name'
9675 soname_spec=
9676 shrext_cmds=".so"
9677 postinstall_cmds=
9678 postuninstall_cmds=
9679 finish_cmds=
9680 finish_eval=
9681 shlibpath_var=
9682 shlibpath_overrides_runpath=unknown
9683 version_type=none
9684 dynamic_linker="$host_os ld.so"
9685 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9686 need_lib_prefix=unknown
9687 hardcode_into_libs=no
9688
9689 # when you set need_version to no, make sure it does not cause -set_version
9690 # flags to be left without arguments
9691 need_version=unknown
9692
9693 case $host_os in
9694 aix3*)
9695   version_type=linux # correct to gnu/linux during the next big refactor
9696   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9697   shlibpath_var=LIBPATH
9698
9699   # AIX 3 has no versioning support, so we append a major version to the name.
9700   soname_spec='${libname}${release}${shared_ext}$major'
9701   ;;
9702
9703 aix[4-9]*)
9704   version_type=linux # correct to gnu/linux during the next big refactor
9705   need_lib_prefix=no
9706   need_version=no
9707   hardcode_into_libs=yes
9708   if test "$host_cpu" = ia64; then
9709     # AIX 5 supports IA64
9710     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9711     shlibpath_var=LD_LIBRARY_PATH
9712   else
9713     # With GCC up to 2.95.x, collect2 would create an import file
9714     # for dependence libraries.  The import file would start with
9715     # the line `#! .'.  This would cause the generated library to
9716     # depend on `.', always an invalid library.  This was fixed in
9717     # development snapshots of GCC prior to 3.0.
9718     case $host_os in
9719       aix4 | aix4.[01] | aix4.[01].*)
9720       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9721            echo ' yes '
9722            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9723         :
9724       else
9725         can_build_shared=no
9726       fi
9727       ;;
9728     esac
9729     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9730     # soname into executable. Probably we can add versioning support to
9731     # collect2, so additional links can be useful in future.
9732     if test "$aix_use_runtimelinking" = yes; then
9733       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9734       # instead of lib<name>.a to let people know that these are not
9735       # typical AIX shared libraries.
9736       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737     else
9738       # We preserve .a as extension for shared libraries through AIX4.2
9739       # and later when we are not doing run time linking.
9740       library_names_spec='${libname}${release}.a $libname.a'
9741       soname_spec='${libname}${release}${shared_ext}$major'
9742     fi
9743     shlibpath_var=LIBPATH
9744   fi
9745   ;;
9746
9747 amigaos*)
9748   case $host_cpu in
9749   powerpc)
9750     # Since July 2007 AmigaOS4 officially supports .so libraries.
9751     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753     ;;
9754   m68k)
9755     library_names_spec='$libname.ixlibrary $libname.a'
9756     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9757     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'
9758     ;;
9759   esac
9760   ;;
9761
9762 beos*)
9763   library_names_spec='${libname}${shared_ext}'
9764   dynamic_linker="$host_os ld.so"
9765   shlibpath_var=LIBRARY_PATH
9766   ;;
9767
9768 bsdi[45]*)
9769   version_type=linux # correct to gnu/linux during the next big refactor
9770   need_version=no
9771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772   soname_spec='${libname}${release}${shared_ext}$major'
9773   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9774   shlibpath_var=LD_LIBRARY_PATH
9775   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9776   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9777   # the default ld.so.conf also contains /usr/contrib/lib and
9778   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9779   # libtool to hard-code these into programs
9780   ;;
9781
9782 cygwin* | mingw* | pw32* | cegcc*)
9783   version_type=windows
9784   shrext_cmds=".dll"
9785   need_version=no
9786   need_lib_prefix=no
9787
9788   case $GCC,$cc_basename in
9789   yes,*)
9790     # gcc
9791     library_names_spec='$libname.dll.a'
9792     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9793     postinstall_cmds='base_file=`basename \${file}`~
9794       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9795       dldir=$destdir/`dirname \$dlpath`~
9796       test -d \$dldir || mkdir -p \$dldir~
9797       $install_prog $dir/$dlname \$dldir/$dlname~
9798       chmod a+x \$dldir/$dlname~
9799       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9800         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9801       fi'
9802     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9803       dlpath=$dir/\$dldll~
9804        $RM \$dlpath'
9805     shlibpath_overrides_runpath=yes
9806
9807     case $host_os in
9808     cygwin*)
9809       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9810       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9811
9812       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9813       ;;
9814     mingw* | cegcc*)
9815       # MinGW DLLs use traditional 'lib' prefix
9816       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9817       ;;
9818     pw32*)
9819       # pw32 DLLs use 'pw' prefix rather than 'lib'
9820       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9821       ;;
9822     esac
9823     dynamic_linker='Win32 ld.exe'
9824     ;;
9825
9826   *,cl*)
9827     # Native MSVC
9828     libname_spec='$name'
9829     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9830     library_names_spec='${libname}.dll.lib'
9831
9832     case $build_os in
9833     mingw*)
9834       sys_lib_search_path_spec=
9835       lt_save_ifs=$IFS
9836       IFS=';'
9837       for lt_path in $LIB
9838       do
9839         IFS=$lt_save_ifs
9840         # Let DOS variable expansion print the short 8.3 style file name.
9841         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9842         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9843       done
9844       IFS=$lt_save_ifs
9845       # Convert to MSYS style.
9846       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9847       ;;
9848     cygwin*)
9849       # Convert to unix form, then to dos form, then back to unix form
9850       # but this time dos style (no spaces!) so that the unix form looks
9851       # like /cygdrive/c/PROGRA~1:/cygdr...
9852       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9853       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9854       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9855       ;;
9856     *)
9857       sys_lib_search_path_spec="$LIB"
9858       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9859         # It is most probably a Windows format PATH.
9860         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9861       else
9862         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9863       fi
9864       # FIXME: find the short name or the path components, as spaces are
9865       # common. (e.g. "Program Files" -> "PROGRA~1")
9866       ;;
9867     esac
9868
9869     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9870     postinstall_cmds='base_file=`basename \${file}`~
9871       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9872       dldir=$destdir/`dirname \$dlpath`~
9873       test -d \$dldir || mkdir -p \$dldir~
9874       $install_prog $dir/$dlname \$dldir/$dlname'
9875     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9876       dlpath=$dir/\$dldll~
9877        $RM \$dlpath'
9878     shlibpath_overrides_runpath=yes
9879     dynamic_linker='Win32 link.exe'
9880     ;;
9881
9882   *)
9883     # Assume MSVC wrapper
9884     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9885     dynamic_linker='Win32 ld.exe'
9886     ;;
9887   esac
9888   # FIXME: first we should search . and the directory the executable is in
9889   shlibpath_var=PATH
9890   ;;
9891
9892 darwin* | rhapsody*)
9893   dynamic_linker="$host_os dyld"
9894   version_type=darwin
9895   need_lib_prefix=no
9896   need_version=no
9897   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9898   soname_spec='${libname}${release}${major}$shared_ext'
9899   shlibpath_overrides_runpath=yes
9900   shlibpath_var=DYLD_LIBRARY_PATH
9901   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9902
9903   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9904   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9905   ;;
9906
9907 dgux*)
9908   version_type=linux # correct to gnu/linux during the next big refactor
9909   need_lib_prefix=no
9910   need_version=no
9911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9912   soname_spec='${libname}${release}${shared_ext}$major'
9913   shlibpath_var=LD_LIBRARY_PATH
9914   ;;
9915
9916 freebsd* | dragonfly*)
9917   # DragonFly does not have aout.  When/if they implement a new
9918   # versioning mechanism, adjust this.
9919   if test -x /usr/bin/objformat; then
9920     objformat=`/usr/bin/objformat`
9921   else
9922     case $host_os in
9923     freebsd[23].*) objformat=aout ;;
9924     *) objformat=elf ;;
9925     esac
9926   fi
9927   version_type=freebsd-$objformat
9928   case $version_type in
9929     freebsd-elf*)
9930       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9931       need_version=no
9932       need_lib_prefix=no
9933       ;;
9934     freebsd-*)
9935       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9936       need_version=yes
9937       ;;
9938   esac
9939   shlibpath_var=LD_LIBRARY_PATH
9940   case $host_os in
9941   freebsd2.*)
9942     shlibpath_overrides_runpath=yes
9943     ;;
9944   freebsd3.[01]* | freebsdelf3.[01]*)
9945     shlibpath_overrides_runpath=yes
9946     hardcode_into_libs=yes
9947     ;;
9948   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9949   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9950     shlibpath_overrides_runpath=no
9951     hardcode_into_libs=yes
9952     ;;
9953   *) # from 4.6 on, and DragonFly
9954     shlibpath_overrides_runpath=yes
9955     hardcode_into_libs=yes
9956     ;;
9957   esac
9958   ;;
9959
9960 haiku*)
9961   version_type=linux # correct to gnu/linux during the next big refactor
9962   need_lib_prefix=no
9963   need_version=no
9964   dynamic_linker="$host_os runtime_loader"
9965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9966   soname_spec='${libname}${release}${shared_ext}$major'
9967   shlibpath_var=LIBRARY_PATH
9968   shlibpath_overrides_runpath=yes
9969   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9970   hardcode_into_libs=yes
9971   ;;
9972
9973 hpux9* | hpux10* | hpux11*)
9974   # Give a soname corresponding to the major version so that dld.sl refuses to
9975   # link against other versions.
9976   version_type=sunos
9977   need_lib_prefix=no
9978   need_version=no
9979   case $host_cpu in
9980   ia64*)
9981     shrext_cmds='.so'
9982     hardcode_into_libs=yes
9983     dynamic_linker="$host_os dld.so"
9984     shlibpath_var=LD_LIBRARY_PATH
9985     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987     soname_spec='${libname}${release}${shared_ext}$major'
9988     if test "X$HPUX_IA64_MODE" = X32; then
9989       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9990     else
9991       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9992     fi
9993     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9994     ;;
9995   hppa*64*)
9996     shrext_cmds='.sl'
9997     hardcode_into_libs=yes
9998     dynamic_linker="$host_os dld.sl"
9999     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10000     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002     soname_spec='${libname}${release}${shared_ext}$major'
10003     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10004     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10005     ;;
10006   *)
10007     shrext_cmds='.sl'
10008     dynamic_linker="$host_os dld.sl"
10009     shlibpath_var=SHLIB_PATH
10010     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012     soname_spec='${libname}${release}${shared_ext}$major'
10013     ;;
10014   esac
10015   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10016   postinstall_cmds='chmod 555 $lib'
10017   # or fails outright, so override atomically:
10018   install_override_mode=555
10019   ;;
10020
10021 interix[3-9]*)
10022   version_type=linux # correct to gnu/linux during the next big refactor
10023   need_lib_prefix=no
10024   need_version=no
10025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10026   soname_spec='${libname}${release}${shared_ext}$major'
10027   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10028   shlibpath_var=LD_LIBRARY_PATH
10029   shlibpath_overrides_runpath=no
10030   hardcode_into_libs=yes
10031   ;;
10032
10033 irix5* | irix6* | nonstopux*)
10034   case $host_os in
10035     nonstopux*) version_type=nonstopux ;;
10036     *)
10037         if test "$lt_cv_prog_gnu_ld" = yes; then
10038                 version_type=linux # correct to gnu/linux during the next big refactor
10039         else
10040                 version_type=irix
10041         fi ;;
10042   esac
10043   need_lib_prefix=no
10044   need_version=no
10045   soname_spec='${libname}${release}${shared_ext}$major'
10046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10047   case $host_os in
10048   irix5* | nonstopux*)
10049     libsuff= shlibsuff=
10050     ;;
10051   *)
10052     case $LD in # libtool.m4 will add one of these switches to LD
10053     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10054       libsuff= shlibsuff= libmagic=32-bit;;
10055     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10056       libsuff=32 shlibsuff=N32 libmagic=N32;;
10057     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10058       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10059     *) libsuff= shlibsuff= libmagic=never-match;;
10060     esac
10061     ;;
10062   esac
10063   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10064   shlibpath_overrides_runpath=no
10065   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10066   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10067   hardcode_into_libs=yes
10068   ;;
10069
10070 # No shared lib support for Linux oldld, aout, or coff.
10071 linux*oldld* | linux*aout* | linux*coff*)
10072   dynamic_linker=no
10073   ;;
10074
10075 # This must be glibc/ELF.
10076 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10077   version_type=linux # correct to gnu/linux during the next big refactor
10078   need_lib_prefix=no
10079   need_version=no
10080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081   soname_spec='${libname}${release}${shared_ext}$major'
10082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10083   shlibpath_var=LD_LIBRARY_PATH
10084   shlibpath_overrides_runpath=no
10085
10086   # Some binutils ld are patched to set DT_RUNPATH
10087   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10088   $as_echo_n "(cached) " >&6
10089 else
10090   lt_cv_shlibpath_overrides_runpath=no
10091     save_LDFLAGS=$LDFLAGS
10092     save_libdir=$libdir
10093     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10094          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h.  */
10097
10098 int
10099 main ()
10100 {
10101
10102   ;
10103   return 0;
10104 }
10105 _ACEOF
10106 if ac_fn_c_try_link "$LINENO"; then :
10107   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10108   lt_cv_shlibpath_overrides_runpath=yes
10109 fi
10110 fi
10111 rm -f core conftest.err conftest.$ac_objext \
10112     conftest$ac_exeext conftest.$ac_ext
10113     LDFLAGS=$save_LDFLAGS
10114     libdir=$save_libdir
10115
10116 fi
10117
10118   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10119
10120   # This implies no fast_install, which is unacceptable.
10121   # Some rework will be needed to allow for fast_install
10122   # before this can be enabled.
10123   hardcode_into_libs=yes
10124
10125   # Append ld.so.conf contents to the search path
10126   if test -f /etc/ld.so.conf; then
10127     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' ' '`
10128     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10129   fi
10130
10131   # We used to test for /lib/ld.so.1 and disable shared libraries on
10132   # powerpc, because MkLinux only supported shared libraries with the
10133   # GNU dynamic linker.  Since this was broken with cross compilers,
10134   # most powerpc-linux boxes support dynamic linking these days and
10135   # people can always --disable-shared, the test was removed, and we
10136   # assume the GNU/Linux dynamic linker is in use.
10137   dynamic_linker='GNU/Linux ld.so'
10138   ;;
10139
10140 netbsdelf*-gnu)
10141   version_type=linux
10142   need_lib_prefix=no
10143   need_version=no
10144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10145   soname_spec='${libname}${release}${shared_ext}$major'
10146   shlibpath_var=LD_LIBRARY_PATH
10147   shlibpath_overrides_runpath=no
10148   hardcode_into_libs=yes
10149   dynamic_linker='NetBSD ld.elf_so'
10150   ;;
10151
10152 netbsd*)
10153   version_type=sunos
10154   need_lib_prefix=no
10155   need_version=no
10156   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10158     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10159     dynamic_linker='NetBSD (a.out) ld.so'
10160   else
10161     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10162     soname_spec='${libname}${release}${shared_ext}$major'
10163     dynamic_linker='NetBSD ld.elf_so'
10164   fi
10165   shlibpath_var=LD_LIBRARY_PATH
10166   shlibpath_overrides_runpath=yes
10167   hardcode_into_libs=yes
10168   ;;
10169
10170 newsos6)
10171   version_type=linux # correct to gnu/linux during the next big refactor
10172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173   shlibpath_var=LD_LIBRARY_PATH
10174   shlibpath_overrides_runpath=yes
10175   ;;
10176
10177 *nto* | *qnx*)
10178   version_type=qnx
10179   need_lib_prefix=no
10180   need_version=no
10181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182   soname_spec='${libname}${release}${shared_ext}$major'
10183   shlibpath_var=LD_LIBRARY_PATH
10184   shlibpath_overrides_runpath=no
10185   hardcode_into_libs=yes
10186   dynamic_linker='ldqnx.so'
10187   ;;
10188
10189 openbsd*)
10190   version_type=sunos
10191   sys_lib_dlsearch_path_spec="/usr/lib"
10192   need_lib_prefix=no
10193   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10194   case $host_os in
10195     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10196     *)                          need_version=no  ;;
10197   esac
10198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10199   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10200   shlibpath_var=LD_LIBRARY_PATH
10201   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10202     case $host_os in
10203       openbsd2.[89] | openbsd2.[89].*)
10204         shlibpath_overrides_runpath=no
10205         ;;
10206       *)
10207         shlibpath_overrides_runpath=yes
10208         ;;
10209       esac
10210   else
10211     shlibpath_overrides_runpath=yes
10212   fi
10213   ;;
10214
10215 os2*)
10216   libname_spec='$name'
10217   shrext_cmds=".dll"
10218   need_lib_prefix=no
10219   library_names_spec='$libname${shared_ext} $libname.a'
10220   dynamic_linker='OS/2 ld.exe'
10221   shlibpath_var=LIBPATH
10222   ;;
10223
10224 osf3* | osf4* | osf5*)
10225   version_type=osf
10226   need_lib_prefix=no
10227   need_version=no
10228   soname_spec='${libname}${release}${shared_ext}$major'
10229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230   shlibpath_var=LD_LIBRARY_PATH
10231   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10232   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10233   ;;
10234
10235 rdos*)
10236   dynamic_linker=no
10237   ;;
10238
10239 solaris*)
10240   version_type=linux # correct to gnu/linux during the next big refactor
10241   need_lib_prefix=no
10242   need_version=no
10243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244   soname_spec='${libname}${release}${shared_ext}$major'
10245   shlibpath_var=LD_LIBRARY_PATH
10246   shlibpath_overrides_runpath=yes
10247   hardcode_into_libs=yes
10248   # ldd complains unless libraries are executable
10249   postinstall_cmds='chmod +x $lib'
10250   ;;
10251
10252 sunos4*)
10253   version_type=sunos
10254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10255   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10256   shlibpath_var=LD_LIBRARY_PATH
10257   shlibpath_overrides_runpath=yes
10258   if test "$with_gnu_ld" = yes; then
10259     need_lib_prefix=no
10260   fi
10261   need_version=yes
10262   ;;
10263
10264 sysv4 | sysv4.3*)
10265   version_type=linux # correct to gnu/linux during the next big refactor
10266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267   soname_spec='${libname}${release}${shared_ext}$major'
10268   shlibpath_var=LD_LIBRARY_PATH
10269   case $host_vendor in
10270     sni)
10271       shlibpath_overrides_runpath=no
10272       need_lib_prefix=no
10273       runpath_var=LD_RUN_PATH
10274       ;;
10275     siemens)
10276       need_lib_prefix=no
10277       ;;
10278     motorola)
10279       need_lib_prefix=no
10280       need_version=no
10281       shlibpath_overrides_runpath=no
10282       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10283       ;;
10284   esac
10285   ;;
10286
10287 sysv4*MP*)
10288   if test -d /usr/nec ;then
10289     version_type=linux # correct to gnu/linux during the next big refactor
10290     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10291     soname_spec='$libname${shared_ext}.$major'
10292     shlibpath_var=LD_LIBRARY_PATH
10293   fi
10294   ;;
10295
10296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10297   version_type=freebsd-elf
10298   need_lib_prefix=no
10299   need_version=no
10300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10301   soname_spec='${libname}${release}${shared_ext}$major'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   shlibpath_overrides_runpath=yes
10304   hardcode_into_libs=yes
10305   if test "$with_gnu_ld" = yes; then
10306     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10307   else
10308     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10309     case $host_os in
10310       sco3.2v5*)
10311         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10312         ;;
10313     esac
10314   fi
10315   sys_lib_dlsearch_path_spec='/usr/lib'
10316   ;;
10317
10318 tpf*)
10319   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10320   version_type=linux # correct to gnu/linux during the next big refactor
10321   need_lib_prefix=no
10322   need_version=no
10323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324   shlibpath_var=LD_LIBRARY_PATH
10325   shlibpath_overrides_runpath=no
10326   hardcode_into_libs=yes
10327   ;;
10328
10329 uts4*)
10330   version_type=linux # correct to gnu/linux during the next big refactor
10331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332   soname_spec='${libname}${release}${shared_ext}$major'
10333   shlibpath_var=LD_LIBRARY_PATH
10334   ;;
10335
10336 *)
10337   dynamic_linker=no
10338   ;;
10339 esac
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10341 $as_echo "$dynamic_linker" >&6; }
10342 test "$dynamic_linker" = no && can_build_shared=no
10343
10344 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10345 if test "$GCC" = yes; then
10346   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10347 fi
10348
10349 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10350   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10351 fi
10352 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10353   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10354 fi
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10448 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10449 hardcode_action=
10450 if test -n "$hardcode_libdir_flag_spec" ||
10451    test -n "$runpath_var" ||
10452    test "X$hardcode_automatic" = "Xyes" ; then
10453
10454   # We can hardcode non-existent directories.
10455   if test "$hardcode_direct" != no &&
10456      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10457      # have to relink, otherwise we might link with an installed library
10458      # when we should be linking with a yet-to-be-installed one
10459      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10460      test "$hardcode_minus_L" != no; then
10461     # Linking always hardcodes the temporary library directory.
10462     hardcode_action=relink
10463   else
10464     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10465     hardcode_action=immediate
10466   fi
10467 else
10468   # We cannot hardcode anything, or else we can only hardcode existing
10469   # directories.
10470   hardcode_action=unsupported
10471 fi
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10473 $as_echo "$hardcode_action" >&6; }
10474
10475 if test "$hardcode_action" = relink ||
10476    test "$inherit_rpath" = yes; then
10477   # Fast installation is not supported
10478   enable_fast_install=no
10479 elif test "$shlibpath_overrides_runpath" = yes ||
10480      test "$enable_shared" = no; then
10481   # Fast installation is not necessary
10482   enable_fast_install=needless
10483 fi
10484
10485
10486
10487
10488
10489
10490   if test "x$enable_dlopen" != xyes; then
10491   enable_dlopen=unknown
10492   enable_dlopen_self=unknown
10493   enable_dlopen_self_static=unknown
10494 else
10495   lt_cv_dlopen=no
10496   lt_cv_dlopen_libs=
10497
10498   case $host_os in
10499   beos*)
10500     lt_cv_dlopen="load_add_on"
10501     lt_cv_dlopen_libs=
10502     lt_cv_dlopen_self=yes
10503     ;;
10504
10505   mingw* | pw32* | cegcc*)
10506     lt_cv_dlopen="LoadLibrary"
10507     lt_cv_dlopen_libs=
10508     ;;
10509
10510   cygwin*)
10511     lt_cv_dlopen="dlopen"
10512     lt_cv_dlopen_libs=
10513     ;;
10514
10515   darwin*)
10516   # if libdl is installed we need to link against it
10517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10518 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10519 if ${ac_cv_lib_dl_dlopen+:} false; then :
10520   $as_echo_n "(cached) " >&6
10521 else
10522   ac_check_lib_save_LIBS=$LIBS
10523 LIBS="-ldl  $LIBS"
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h.  */
10526
10527 /* Override any GCC internal prototype to avoid an error.
10528    Use char because int might match the return type of a GCC
10529    builtin and then its argument prototype would still apply.  */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 char dlopen ();
10534 int
10535 main ()
10536 {
10537 return dlopen ();
10538   ;
10539   return 0;
10540 }
10541 _ACEOF
10542 if ac_fn_c_try_link "$LINENO"; then :
10543   ac_cv_lib_dl_dlopen=yes
10544 else
10545   ac_cv_lib_dl_dlopen=no
10546 fi
10547 rm -f core conftest.err conftest.$ac_objext \
10548     conftest$ac_exeext conftest.$ac_ext
10549 LIBS=$ac_check_lib_save_LIBS
10550 fi
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10552 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10553 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10554   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10555 else
10556
10557     lt_cv_dlopen="dyld"
10558     lt_cv_dlopen_libs=
10559     lt_cv_dlopen_self=yes
10560
10561 fi
10562
10563     ;;
10564
10565   *)
10566     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10567 if test "x$ac_cv_func_shl_load" = xyes; then :
10568   lt_cv_dlopen="shl_load"
10569 else
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10571 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10572 if ${ac_cv_lib_dld_shl_load+:} false; then :
10573   $as_echo_n "(cached) " >&6
10574 else
10575   ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-ldld  $LIBS"
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h.  */
10579
10580 /* Override any GCC internal prototype to avoid an error.
10581    Use char because int might match the return type of a GCC
10582    builtin and then its argument prototype would still apply.  */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 char shl_load ();
10587 int
10588 main ()
10589 {
10590 return shl_load ();
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 if ac_fn_c_try_link "$LINENO"; then :
10596   ac_cv_lib_dld_shl_load=yes
10597 else
10598   ac_cv_lib_dld_shl_load=no
10599 fi
10600 rm -f core conftest.err conftest.$ac_objext \
10601     conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10603 fi
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10605 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10606 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10607   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10608 else
10609   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10610 if test "x$ac_cv_func_dlopen" = xyes; then :
10611   lt_cv_dlopen="dlopen"
10612 else
10613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10614 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10615 if ${ac_cv_lib_dl_dlopen+:} false; then :
10616   $as_echo_n "(cached) " >&6
10617 else
10618   ac_check_lib_save_LIBS=$LIBS
10619 LIBS="-ldl  $LIBS"
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h.  */
10622
10623 /* Override any GCC internal prototype to avoid an error.
10624    Use char because int might match the return type of a GCC
10625    builtin and then its argument prototype would still apply.  */
10626 #ifdef __cplusplus
10627 extern "C"
10628 #endif
10629 char dlopen ();
10630 int
10631 main ()
10632 {
10633 return dlopen ();
10634   ;
10635   return 0;
10636 }
10637 _ACEOF
10638 if ac_fn_c_try_link "$LINENO"; then :
10639   ac_cv_lib_dl_dlopen=yes
10640 else
10641   ac_cv_lib_dl_dlopen=no
10642 fi
10643 rm -f core conftest.err conftest.$ac_objext \
10644     conftest$ac_exeext conftest.$ac_ext
10645 LIBS=$ac_check_lib_save_LIBS
10646 fi
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10648 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10649 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10650   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10651 else
10652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10653 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10654 if ${ac_cv_lib_svld_dlopen+:} false; then :
10655   $as_echo_n "(cached) " >&6
10656 else
10657   ac_check_lib_save_LIBS=$LIBS
10658 LIBS="-lsvld  $LIBS"
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h.  */
10661
10662 /* Override any GCC internal prototype to avoid an error.
10663    Use char because int might match the return type of a GCC
10664    builtin and then its argument prototype would still apply.  */
10665 #ifdef __cplusplus
10666 extern "C"
10667 #endif
10668 char dlopen ();
10669 int
10670 main ()
10671 {
10672 return dlopen ();
10673   ;
10674   return 0;
10675 }
10676 _ACEOF
10677 if ac_fn_c_try_link "$LINENO"; then :
10678   ac_cv_lib_svld_dlopen=yes
10679 else
10680   ac_cv_lib_svld_dlopen=no
10681 fi
10682 rm -f core conftest.err conftest.$ac_objext \
10683     conftest$ac_exeext conftest.$ac_ext
10684 LIBS=$ac_check_lib_save_LIBS
10685 fi
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10687 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10688 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10689   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10690 else
10691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10692 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10693 if ${ac_cv_lib_dld_dld_link+:} false; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   ac_check_lib_save_LIBS=$LIBS
10697 LIBS="-ldld  $LIBS"
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h.  */
10700
10701 /* Override any GCC internal prototype to avoid an error.
10702    Use char because int might match the return type of a GCC
10703    builtin and then its argument prototype would still apply.  */
10704 #ifdef __cplusplus
10705 extern "C"
10706 #endif
10707 char dld_link ();
10708 int
10709 main ()
10710 {
10711 return dld_link ();
10712   ;
10713   return 0;
10714 }
10715 _ACEOF
10716 if ac_fn_c_try_link "$LINENO"; then :
10717   ac_cv_lib_dld_dld_link=yes
10718 else
10719   ac_cv_lib_dld_dld_link=no
10720 fi
10721 rm -f core conftest.err conftest.$ac_objext \
10722     conftest$ac_exeext conftest.$ac_ext
10723 LIBS=$ac_check_lib_save_LIBS
10724 fi
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10726 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10727 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10728   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10729 fi
10730
10731
10732 fi
10733
10734
10735 fi
10736
10737
10738 fi
10739
10740
10741 fi
10742
10743
10744 fi
10745
10746     ;;
10747   esac
10748
10749   if test "x$lt_cv_dlopen" != xno; then
10750     enable_dlopen=yes
10751   else
10752     enable_dlopen=no
10753   fi
10754
10755   case $lt_cv_dlopen in
10756   dlopen)
10757     save_CPPFLAGS="$CPPFLAGS"
10758     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10759
10760     save_LDFLAGS="$LDFLAGS"
10761     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10762
10763     save_LIBS="$LIBS"
10764     LIBS="$lt_cv_dlopen_libs $LIBS"
10765
10766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10767 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10768 if ${lt_cv_dlopen_self+:} false; then :
10769   $as_echo_n "(cached) " >&6
10770 else
10771           if test "$cross_compiling" = yes; then :
10772   lt_cv_dlopen_self=cross
10773 else
10774   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10775   lt_status=$lt_dlunknown
10776   cat > conftest.$ac_ext <<_LT_EOF
10777 #line $LINENO "configure"
10778 #include "confdefs.h"
10779
10780 #if HAVE_DLFCN_H
10781 #include <dlfcn.h>
10782 #endif
10783
10784 #include <stdio.h>
10785
10786 #ifdef RTLD_GLOBAL
10787 #  define LT_DLGLOBAL           RTLD_GLOBAL
10788 #else
10789 #  ifdef DL_GLOBAL
10790 #    define LT_DLGLOBAL         DL_GLOBAL
10791 #  else
10792 #    define LT_DLGLOBAL         0
10793 #  endif
10794 #endif
10795
10796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10797    find out it does not work in some platform. */
10798 #ifndef LT_DLLAZY_OR_NOW
10799 #  ifdef RTLD_LAZY
10800 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10801 #  else
10802 #    ifdef DL_LAZY
10803 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10804 #    else
10805 #      ifdef RTLD_NOW
10806 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10807 #      else
10808 #        ifdef DL_NOW
10809 #          define LT_DLLAZY_OR_NOW      DL_NOW
10810 #        else
10811 #          define LT_DLLAZY_OR_NOW      0
10812 #        endif
10813 #      endif
10814 #    endif
10815 #  endif
10816 #endif
10817
10818 /* When -fvisbility=hidden is used, assume the code has been annotated
10819    correspondingly for the symbols needed.  */
10820 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10821 int fnord () __attribute__((visibility("default")));
10822 #endif
10823
10824 int fnord () { return 42; }
10825 int main ()
10826 {
10827   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10828   int status = $lt_dlunknown;
10829
10830   if (self)
10831     {
10832       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10833       else
10834         {
10835           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10836           else puts (dlerror ());
10837         }
10838       /* dlclose (self); */
10839     }
10840   else
10841     puts (dlerror ());
10842
10843   return status;
10844 }
10845 _LT_EOF
10846   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10847   (eval $ac_link) 2>&5
10848   ac_status=$?
10849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10851     (./conftest; exit; ) >&5 2>/dev/null
10852     lt_status=$?
10853     case x$lt_status in
10854       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10855       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10856       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10857     esac
10858   else :
10859     # compilation failed
10860     lt_cv_dlopen_self=no
10861   fi
10862 fi
10863 rm -fr conftest*
10864
10865
10866 fi
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10868 $as_echo "$lt_cv_dlopen_self" >&6; }
10869
10870     if test "x$lt_cv_dlopen_self" = xyes; then
10871       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10872       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10873 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10874 if ${lt_cv_dlopen_self_static+:} false; then :
10875   $as_echo_n "(cached) " >&6
10876 else
10877           if test "$cross_compiling" = yes; then :
10878   lt_cv_dlopen_self_static=cross
10879 else
10880   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10881   lt_status=$lt_dlunknown
10882   cat > conftest.$ac_ext <<_LT_EOF
10883 #line $LINENO "configure"
10884 #include "confdefs.h"
10885
10886 #if HAVE_DLFCN_H
10887 #include <dlfcn.h>
10888 #endif
10889
10890 #include <stdio.h>
10891
10892 #ifdef RTLD_GLOBAL
10893 #  define LT_DLGLOBAL           RTLD_GLOBAL
10894 #else
10895 #  ifdef DL_GLOBAL
10896 #    define LT_DLGLOBAL         DL_GLOBAL
10897 #  else
10898 #    define LT_DLGLOBAL         0
10899 #  endif
10900 #endif
10901
10902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10903    find out it does not work in some platform. */
10904 #ifndef LT_DLLAZY_OR_NOW
10905 #  ifdef RTLD_LAZY
10906 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10907 #  else
10908 #    ifdef DL_LAZY
10909 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10910 #    else
10911 #      ifdef RTLD_NOW
10912 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10913 #      else
10914 #        ifdef DL_NOW
10915 #          define LT_DLLAZY_OR_NOW      DL_NOW
10916 #        else
10917 #          define LT_DLLAZY_OR_NOW      0
10918 #        endif
10919 #      endif
10920 #    endif
10921 #  endif
10922 #endif
10923
10924 /* When -fvisbility=hidden is used, assume the code has been annotated
10925    correspondingly for the symbols needed.  */
10926 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10927 int fnord () __attribute__((visibility("default")));
10928 #endif
10929
10930 int fnord () { return 42; }
10931 int main ()
10932 {
10933   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10934   int status = $lt_dlunknown;
10935
10936   if (self)
10937     {
10938       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10939       else
10940         {
10941           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10942           else puts (dlerror ());
10943         }
10944       /* dlclose (self); */
10945     }
10946   else
10947     puts (dlerror ());
10948
10949   return status;
10950 }
10951 _LT_EOF
10952   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10953   (eval $ac_link) 2>&5
10954   ac_status=$?
10955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10957     (./conftest; exit; ) >&5 2>/dev/null
10958     lt_status=$?
10959     case x$lt_status in
10960       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10961       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10962       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10963     esac
10964   else :
10965     # compilation failed
10966     lt_cv_dlopen_self_static=no
10967   fi
10968 fi
10969 rm -fr conftest*
10970
10971
10972 fi
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10974 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10975     fi
10976
10977     CPPFLAGS="$save_CPPFLAGS"
10978     LDFLAGS="$save_LDFLAGS"
10979     LIBS="$save_LIBS"
10980     ;;
10981   esac
10982
10983   case $lt_cv_dlopen_self in
10984   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10985   *) enable_dlopen_self=unknown ;;
10986   esac
10987
10988   case $lt_cv_dlopen_self_static in
10989   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10990   *) enable_dlopen_self_static=unknown ;;
10991   esac
10992 fi
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010 striplib=
11011 old_striplib=
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11013 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11014 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11015   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11016   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11018 $as_echo "yes" >&6; }
11019 else
11020 # FIXME - insert some real tests, host_os isn't really good enough
11021   case $host_os in
11022   darwin*)
11023     if test -n "$STRIP" ; then
11024       striplib="$STRIP -x"
11025       old_striplib="$STRIP -S"
11026       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027 $as_echo "yes" >&6; }
11028     else
11029       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030 $as_echo "no" >&6; }
11031     fi
11032     ;;
11033   *)
11034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11036     ;;
11037   esac
11038 fi
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051   # Report which library types will actually be built
11052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11053 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11055 $as_echo "$can_build_shared" >&6; }
11056
11057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11058 $as_echo_n "checking whether to build shared libraries... " >&6; }
11059   test "$can_build_shared" = "no" && enable_shared=no
11060
11061   # On AIX, shared libraries and static libraries use the same namespace, and
11062   # are all built from PIC.
11063   case $host_os in
11064   aix3*)
11065     test "$enable_shared" = yes && enable_static=no
11066     if test -n "$RANLIB"; then
11067       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11068       postinstall_cmds='$RANLIB $lib'
11069     fi
11070     ;;
11071
11072   aix[4-9]*)
11073     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11074       test "$enable_shared" = yes && enable_static=no
11075     fi
11076     ;;
11077   esac
11078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11079 $as_echo "$enable_shared" >&6; }
11080
11081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11082 $as_echo_n "checking whether to build static libraries... " >&6; }
11083   # Make sure either enable_shared or enable_static is yes.
11084   test "$enable_shared" = yes || enable_static=yes
11085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11086 $as_echo "$enable_static" >&6; }
11087
11088
11089
11090
11091 fi
11092 ac_ext=c
11093 ac_cpp='$CPP $CPPFLAGS'
11094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11097
11098 CC="$lt_save_CC"
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114         ac_config_commands="$ac_config_commands libtool"
11115
11116
11117
11118
11119 # Only expand once:
11120
11121
11122
11123
11124
11125
11126
11127 ac_ext=c
11128 ac_cpp='$CPP $CPPFLAGS'
11129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11132 if test -n "$ac_tool_prefix"; then
11133   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if ${ac_cv_prog_CC+:} false; then :
11138   $as_echo_n "(cached) " >&6
11139 else
11140   if test -n "$CC"; then
11141   ac_cv_prog_CC="$CC" # Let the user override the test.
11142 else
11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144 for as_dir in $PATH
11145 do
11146   IFS=$as_save_IFS
11147   test -z "$as_dir" && as_dir=.
11148     for ac_exec_ext in '' $ac_executable_extensions; do
11149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11150     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11152     break 2
11153   fi
11154 done
11155   done
11156 IFS=$as_save_IFS
11157
11158 fi
11159 fi
11160 CC=$ac_cv_prog_CC
11161 if test -n "$CC"; then
11162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11163 $as_echo "$CC" >&6; }
11164 else
11165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166 $as_echo "no" >&6; }
11167 fi
11168
11169
11170 fi
11171 if test -z "$ac_cv_prog_CC"; then
11172   ac_ct_CC=$CC
11173   # Extract the first word of "gcc", so it can be a program name with args.
11174 set dummy gcc; ac_word=$2
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176 $as_echo_n "checking for $ac_word... " >&6; }
11177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11178   $as_echo_n "(cached) " >&6
11179 else
11180   if test -n "$ac_ct_CC"; then
11181   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11182 else
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11185 do
11186   IFS=$as_save_IFS
11187   test -z "$as_dir" && as_dir=.
11188     for ac_exec_ext in '' $ac_executable_extensions; do
11189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190     ac_cv_prog_ac_ct_CC="gcc"
11191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11192     break 2
11193   fi
11194 done
11195   done
11196 IFS=$as_save_IFS
11197
11198 fi
11199 fi
11200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11201 if test -n "$ac_ct_CC"; then
11202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11203 $as_echo "$ac_ct_CC" >&6; }
11204 else
11205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206 $as_echo "no" >&6; }
11207 fi
11208
11209   if test "x$ac_ct_CC" = x; then
11210     CC=""
11211   else
11212     case $cross_compiling:$ac_tool_warned in
11213 yes:)
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11216 ac_tool_warned=yes ;;
11217 esac
11218     CC=$ac_ct_CC
11219   fi
11220 else
11221   CC="$ac_cv_prog_CC"
11222 fi
11223
11224 if test -z "$CC"; then
11225           if test -n "$ac_tool_prefix"; then
11226     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11227 set dummy ${ac_tool_prefix}cc; ac_word=$2
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229 $as_echo_n "checking for $ac_word... " >&6; }
11230 if ${ac_cv_prog_CC+:} false; then :
11231   $as_echo_n "(cached) " >&6
11232 else
11233   if test -n "$CC"; then
11234   ac_cv_prog_CC="$CC" # Let the user override the test.
11235 else
11236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237 for as_dir in $PATH
11238 do
11239   IFS=$as_save_IFS
11240   test -z "$as_dir" && as_dir=.
11241     for ac_exec_ext in '' $ac_executable_extensions; do
11242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11243     ac_cv_prog_CC="${ac_tool_prefix}cc"
11244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245     break 2
11246   fi
11247 done
11248   done
11249 IFS=$as_save_IFS
11250
11251 fi
11252 fi
11253 CC=$ac_cv_prog_CC
11254 if test -n "$CC"; then
11255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11256 $as_echo "$CC" >&6; }
11257 else
11258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11260 fi
11261
11262
11263   fi
11264 fi
11265 if test -z "$CC"; then
11266   # Extract the first word of "cc", so it can be a program name with args.
11267 set dummy cc; ac_word=$2
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269 $as_echo_n "checking for $ac_word... " >&6; }
11270 if ${ac_cv_prog_CC+:} false; then :
11271   $as_echo_n "(cached) " >&6
11272 else
11273   if test -n "$CC"; then
11274   ac_cv_prog_CC="$CC" # Let the user override the test.
11275 else
11276   ac_prog_rejected=no
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11279 do
11280   IFS=$as_save_IFS
11281   test -z "$as_dir" && as_dir=.
11282     for ac_exec_ext in '' $ac_executable_extensions; do
11283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11285        ac_prog_rejected=yes
11286        continue
11287      fi
11288     ac_cv_prog_CC="cc"
11289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11290     break 2
11291   fi
11292 done
11293   done
11294 IFS=$as_save_IFS
11295
11296 if test $ac_prog_rejected = yes; then
11297   # We found a bogon in the path, so make sure we never use it.
11298   set dummy $ac_cv_prog_CC
11299   shift
11300   if test $# != 0; then
11301     # We chose a different compiler from the bogus one.
11302     # However, it has the same basename, so the bogon will be chosen
11303     # first if we set CC to just the basename; use the full file name.
11304     shift
11305     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11306   fi
11307 fi
11308 fi
11309 fi
11310 CC=$ac_cv_prog_CC
11311 if test -n "$CC"; then
11312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11313 $as_echo "$CC" >&6; }
11314 else
11315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11317 fi
11318
11319
11320 fi
11321 if test -z "$CC"; then
11322   if test -n "$ac_tool_prefix"; then
11323   for ac_prog in cl.exe
11324   do
11325     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if ${ac_cv_prog_CC+:} false; then :
11330   $as_echo_n "(cached) " >&6
11331 else
11332   if test -n "$CC"; then
11333   ac_cv_prog_CC="$CC" # Let the user override the test.
11334 else
11335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 for as_dir in $PATH
11337 do
11338   IFS=$as_save_IFS
11339   test -z "$as_dir" && as_dir=.
11340     for ac_exec_ext in '' $ac_executable_extensions; do
11341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11342     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11344     break 2
11345   fi
11346 done
11347   done
11348 IFS=$as_save_IFS
11349
11350 fi
11351 fi
11352 CC=$ac_cv_prog_CC
11353 if test -n "$CC"; then
11354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11355 $as_echo "$CC" >&6; }
11356 else
11357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11359 fi
11360
11361
11362     test -n "$CC" && break
11363   done
11364 fi
11365 if test -z "$CC"; then
11366   ac_ct_CC=$CC
11367   for ac_prog in cl.exe
11368 do
11369   # Extract the first word of "$ac_prog", so it can be a program name with args.
11370 set dummy $ac_prog; ac_word=$2
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11372 $as_echo_n "checking for $ac_word... " >&6; }
11373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11374   $as_echo_n "(cached) " >&6
11375 else
11376   if test -n "$ac_ct_CC"; then
11377   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11378 else
11379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11380 for as_dir in $PATH
11381 do
11382   IFS=$as_save_IFS
11383   test -z "$as_dir" && as_dir=.
11384     for ac_exec_ext in '' $ac_executable_extensions; do
11385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11386     ac_cv_prog_ac_ct_CC="$ac_prog"
11387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11388     break 2
11389   fi
11390 done
11391   done
11392 IFS=$as_save_IFS
11393
11394 fi
11395 fi
11396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11397 if test -n "$ac_ct_CC"; then
11398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11399 $as_echo "$ac_ct_CC" >&6; }
11400 else
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11403 fi
11404
11405
11406   test -n "$ac_ct_CC" && break
11407 done
11408
11409   if test "x$ac_ct_CC" = x; then
11410     CC=""
11411   else
11412     case $cross_compiling:$ac_tool_warned in
11413 yes:)
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11416 ac_tool_warned=yes ;;
11417 esac
11418     CC=$ac_ct_CC
11419   fi
11420 fi
11421
11422 fi
11423
11424
11425 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11427 as_fn_error $? "no acceptable C compiler found in \$PATH
11428 See \`config.log' for more details" "$LINENO" 5; }
11429
11430 # Provide some information about the compiler.
11431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11432 set X $ac_compile
11433 ac_compiler=$2
11434 for ac_option in --version -v -V -qversion; do
11435   { { ac_try="$ac_compiler $ac_option >&5"
11436 case "(($ac_try" in
11437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438   *) ac_try_echo=$ac_try;;
11439 esac
11440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11441 $as_echo "$ac_try_echo"; } >&5
11442   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11443   ac_status=$?
11444   if test -s conftest.err; then
11445     sed '10a\
11446 ... rest of stderr output deleted ...
11447          10q' conftest.err >conftest.er1
11448     cat conftest.er1 >&5
11449   fi
11450   rm -f conftest.er1 conftest.err
11451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11452   test $ac_status = 0; }
11453 done
11454
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11456 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11457 if ${ac_cv_c_compiler_gnu+:} false; then :
11458   $as_echo_n "(cached) " >&6
11459 else
11460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h.  */
11462
11463 int
11464 main ()
11465 {
11466 #ifndef __GNUC__
11467        choke me
11468 #endif
11469
11470   ;
11471   return 0;
11472 }
11473 _ACEOF
11474 if ac_fn_c_try_compile "$LINENO"; then :
11475   ac_compiler_gnu=yes
11476 else
11477   ac_compiler_gnu=no
11478 fi
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11481
11482 fi
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11484 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11485 if test $ac_compiler_gnu = yes; then
11486   GCC=yes
11487 else
11488   GCC=
11489 fi
11490 ac_test_CFLAGS=${CFLAGS+set}
11491 ac_save_CFLAGS=$CFLAGS
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11493 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11494 if ${ac_cv_prog_cc_g+:} false; then :
11495   $as_echo_n "(cached) " >&6
11496 else
11497   ac_save_c_werror_flag=$ac_c_werror_flag
11498    ac_c_werror_flag=yes
11499    ac_cv_prog_cc_g=no
11500    CFLAGS="-g"
11501    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h.  */
11503
11504 int
11505 main ()
11506 {
11507
11508   ;
11509   return 0;
11510 }
11511 _ACEOF
11512 if ac_fn_c_try_compile "$LINENO"; then :
11513   ac_cv_prog_cc_g=yes
11514 else
11515   CFLAGS=""
11516       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h.  */
11518
11519 int
11520 main ()
11521 {
11522
11523   ;
11524   return 0;
11525 }
11526 _ACEOF
11527 if ac_fn_c_try_compile "$LINENO"; then :
11528
11529 else
11530   ac_c_werror_flag=$ac_save_c_werror_flag
11531          CFLAGS="-g"
11532          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h.  */
11534
11535 int
11536 main ()
11537 {
11538
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 if ac_fn_c_try_compile "$LINENO"; then :
11544   ac_cv_prog_cc_g=yes
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 fi
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 fi
11550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551    ac_c_werror_flag=$ac_save_c_werror_flag
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11554 $as_echo "$ac_cv_prog_cc_g" >&6; }
11555 if test "$ac_test_CFLAGS" = set; then
11556   CFLAGS=$ac_save_CFLAGS
11557 elif test $ac_cv_prog_cc_g = yes; then
11558   if test "$GCC" = yes; then
11559     CFLAGS="-g -O2"
11560   else
11561     CFLAGS="-g"
11562   fi
11563 else
11564   if test "$GCC" = yes; then
11565     CFLAGS="-O2"
11566   else
11567     CFLAGS=
11568   fi
11569 fi
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11571 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11572 if ${ac_cv_prog_cc_c89+:} false; then :
11573   $as_echo_n "(cached) " >&6
11574 else
11575   ac_cv_prog_cc_c89=no
11576 ac_save_CC=$CC
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h.  */
11579 #include <stdarg.h>
11580 #include <stdio.h>
11581 struct stat;
11582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11583 struct buf { int x; };
11584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11585 static char *e (p, i)
11586      char **p;
11587      int i;
11588 {
11589   return p[i];
11590 }
11591 static char *f (char * (*g) (char **, int), char **p, ...)
11592 {
11593   char *s;
11594   va_list v;
11595   va_start (v,p);
11596   s = g (p, va_arg (v,int));
11597   va_end (v);
11598   return s;
11599 }
11600
11601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11602    function prototypes and stuff, but not '\xHH' hex character constants.
11603    These don't provoke an error unfortunately, instead are silently treated
11604    as 'x'.  The following induces an error, until -std is added to get
11605    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11606    array size at least.  It's necessary to write '\x00'==0 to get something
11607    that's true only with -std.  */
11608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11609
11610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11611    inside strings and character constants.  */
11612 #define FOO(x) 'x'
11613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11614
11615 int test (int i, double x);
11616 struct s1 {int (*f) (int a);};
11617 struct s2 {int (*f) (double a);};
11618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11619 int argc;
11620 char **argv;
11621 int
11622 main ()
11623 {
11624 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11625   ;
11626   return 0;
11627 }
11628 _ACEOF
11629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11630         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11631 do
11632   CC="$ac_save_CC $ac_arg"
11633   if ac_fn_c_try_compile "$LINENO"; then :
11634   ac_cv_prog_cc_c89=$ac_arg
11635 fi
11636 rm -f core conftest.err conftest.$ac_objext
11637   test "x$ac_cv_prog_cc_c89" != "xno" && break
11638 done
11639 rm -f conftest.$ac_ext
11640 CC=$ac_save_CC
11641
11642 fi
11643 # AC_CACHE_VAL
11644 case "x$ac_cv_prog_cc_c89" in
11645   x)
11646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11647 $as_echo "none needed" >&6; } ;;
11648   xno)
11649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11650 $as_echo "unsupported" >&6; } ;;
11651   *)
11652     CC="$CC $ac_cv_prog_cc_c89"
11653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11655 esac
11656 if test "x$ac_cv_prog_cc_c89" != xno; then :
11657
11658 fi
11659
11660 ac_ext=c
11661 ac_cpp='$CPP $CPPFLAGS'
11662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11665
11666 ac_ext=cpp
11667 ac_cpp='$CXXCPP $CPPFLAGS'
11668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11671 if test -z "$CXX"; then
11672   if test -n "$CCC"; then
11673     CXX=$CCC
11674   else
11675     if test -n "$ac_tool_prefix"; then
11676   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11677   do
11678     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681 $as_echo_n "checking for $ac_word... " >&6; }
11682 if ${ac_cv_prog_CXX+:} false; then :
11683   $as_echo_n "(cached) " >&6
11684 else
11685   if test -n "$CXX"; then
11686   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11687 else
11688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689 for as_dir in $PATH
11690 do
11691   IFS=$as_save_IFS
11692   test -z "$as_dir" && as_dir=.
11693     for ac_exec_ext in '' $ac_executable_extensions; do
11694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11695     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11697     break 2
11698   fi
11699 done
11700   done
11701 IFS=$as_save_IFS
11702
11703 fi
11704 fi
11705 CXX=$ac_cv_prog_CXX
11706 if test -n "$CXX"; then
11707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11708 $as_echo "$CXX" >&6; }
11709 else
11710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11712 fi
11713
11714
11715     test -n "$CXX" && break
11716   done
11717 fi
11718 if test -z "$CXX"; then
11719   ac_ct_CXX=$CXX
11720   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11721 do
11722   # Extract the first word of "$ac_prog", so it can be a program name with args.
11723 set dummy $ac_prog; ac_word=$2
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725 $as_echo_n "checking for $ac_word... " >&6; }
11726 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11727   $as_echo_n "(cached) " >&6
11728 else
11729   if test -n "$ac_ct_CXX"; then
11730   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11731 else
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11734 do
11735   IFS=$as_save_IFS
11736   test -z "$as_dir" && as_dir=.
11737     for ac_exec_ext in '' $ac_executable_extensions; do
11738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11739     ac_cv_prog_ac_ct_CXX="$ac_prog"
11740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741     break 2
11742   fi
11743 done
11744   done
11745 IFS=$as_save_IFS
11746
11747 fi
11748 fi
11749 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11750 if test -n "$ac_ct_CXX"; then
11751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11752 $as_echo "$ac_ct_CXX" >&6; }
11753 else
11754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11756 fi
11757
11758
11759   test -n "$ac_ct_CXX" && break
11760 done
11761
11762   if test "x$ac_ct_CXX" = x; then
11763     CXX="g++"
11764   else
11765     case $cross_compiling:$ac_tool_warned in
11766 yes:)
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11769 ac_tool_warned=yes ;;
11770 esac
11771     CXX=$ac_ct_CXX
11772   fi
11773 fi
11774
11775   fi
11776 fi
11777 # Provide some information about the compiler.
11778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11779 set X $ac_compile
11780 ac_compiler=$2
11781 for ac_option in --version -v -V -qversion; do
11782   { { ac_try="$ac_compiler $ac_option >&5"
11783 case "(($ac_try" in
11784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785   *) ac_try_echo=$ac_try;;
11786 esac
11787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11788 $as_echo "$ac_try_echo"; } >&5
11789   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11790   ac_status=$?
11791   if test -s conftest.err; then
11792     sed '10a\
11793 ... rest of stderr output deleted ...
11794          10q' conftest.err >conftest.er1
11795     cat conftest.er1 >&5
11796   fi
11797   rm -f conftest.er1 conftest.err
11798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11799   test $ac_status = 0; }
11800 done
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11803 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11804 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11805   $as_echo_n "(cached) " >&6
11806 else
11807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h.  */
11809
11810 int
11811 main ()
11812 {
11813 #ifndef __GNUC__
11814        choke me
11815 #endif
11816
11817   ;
11818   return 0;
11819 }
11820 _ACEOF
11821 if ac_fn_cxx_try_compile "$LINENO"; then :
11822   ac_compiler_gnu=yes
11823 else
11824   ac_compiler_gnu=no
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11828
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11831 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11832 if test $ac_compiler_gnu = yes; then
11833   GXX=yes
11834 else
11835   GXX=
11836 fi
11837 ac_test_CXXFLAGS=${CXXFLAGS+set}
11838 ac_save_CXXFLAGS=$CXXFLAGS
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11840 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11841 if ${ac_cv_prog_cxx_g+:} false; then :
11842   $as_echo_n "(cached) " >&6
11843 else
11844   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11845    ac_cxx_werror_flag=yes
11846    ac_cv_prog_cxx_g=no
11847    CXXFLAGS="-g"
11848    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h.  */
11850
11851 int
11852 main ()
11853 {
11854
11855   ;
11856   return 0;
11857 }
11858 _ACEOF
11859 if ac_fn_cxx_try_compile "$LINENO"; then :
11860   ac_cv_prog_cxx_g=yes
11861 else
11862   CXXFLAGS=""
11863       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h.  */
11865
11866 int
11867 main ()
11868 {
11869
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 if ac_fn_cxx_try_compile "$LINENO"; then :
11875
11876 else
11877   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11878          CXXFLAGS="-g"
11879          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h.  */
11881
11882 int
11883 main ()
11884 {
11885
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 if ac_fn_cxx_try_compile "$LINENO"; then :
11891   ac_cv_prog_cxx_g=yes
11892 fi
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11899 fi
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11901 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11902 if test "$ac_test_CXXFLAGS" = set; then
11903   CXXFLAGS=$ac_save_CXXFLAGS
11904 elif test $ac_cv_prog_cxx_g = yes; then
11905   if test "$GXX" = yes; then
11906     CXXFLAGS="-g -O2"
11907   else
11908     CXXFLAGS="-g"
11909   fi
11910 else
11911   if test "$GXX" = yes; then
11912     CXXFLAGS="-O2"
11913   else
11914     CXXFLAGS=
11915   fi
11916 fi
11917 ac_ext=c
11918 ac_cpp='$CPP $CPPFLAGS'
11919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11922
11923
11924
11925 func_stripname_cnf ()
11926 {
11927   case ${2} in
11928   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11929   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11930   esac
11931 } # func_stripname_cnf
11932
11933       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11934     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11935     (test "X$CXX" != "Xg++"))) ; then
11936   ac_ext=cpp
11937 ac_cpp='$CXXCPP $CPPFLAGS'
11938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11942 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11943 if test -z "$CXXCPP"; then
11944   if ${ac_cv_prog_CXXCPP+:} false; then :
11945   $as_echo_n "(cached) " >&6
11946 else
11947       # Double quotes because CXXCPP needs to be expanded
11948     for CXXCPP in "$CXX -E" "/lib/cpp"
11949     do
11950       ac_preproc_ok=false
11951 for ac_cxx_preproc_warn_flag in '' yes
11952 do
11953   # Use a header file that comes with gcc, so configuring glibc
11954   # with a fresh cross-compiler works.
11955   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11956   # <limits.h> exists even on freestanding compilers.
11957   # On the NeXT, cc -E runs the code through the compiler's parser,
11958   # not just through cpp. "Syntax error" is here to catch this case.
11959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h.  */
11961 #ifdef __STDC__
11962 # include <limits.h>
11963 #else
11964 # include <assert.h>
11965 #endif
11966                      Syntax error
11967 _ACEOF
11968 if ac_fn_cxx_try_cpp "$LINENO"; then :
11969
11970 else
11971   # Broken: fails on valid input.
11972 continue
11973 fi
11974 rm -f conftest.err conftest.i conftest.$ac_ext
11975
11976   # OK, works on sane cases.  Now check whether nonexistent headers
11977   # can be detected and how.
11978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h.  */
11980 #include <ac_nonexistent.h>
11981 _ACEOF
11982 if ac_fn_cxx_try_cpp "$LINENO"; then :
11983   # Broken: success on invalid input.
11984 continue
11985 else
11986   # Passes both tests.
11987 ac_preproc_ok=:
11988 break
11989 fi
11990 rm -f conftest.err conftest.i conftest.$ac_ext
11991
11992 done
11993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11994 rm -f conftest.i conftest.err conftest.$ac_ext
11995 if $ac_preproc_ok; then :
11996   break
11997 fi
11998
11999     done
12000     ac_cv_prog_CXXCPP=$CXXCPP
12001
12002 fi
12003   CXXCPP=$ac_cv_prog_CXXCPP
12004 else
12005   ac_cv_prog_CXXCPP=$CXXCPP
12006 fi
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12008 $as_echo "$CXXCPP" >&6; }
12009 ac_preproc_ok=false
12010 for ac_cxx_preproc_warn_flag in '' yes
12011 do
12012   # Use a header file that comes with gcc, so configuring glibc
12013   # with a fresh cross-compiler works.
12014   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12015   # <limits.h> exists even on freestanding compilers.
12016   # On the NeXT, cc -E runs the code through the compiler's parser,
12017   # not just through cpp. "Syntax error" is here to catch this case.
12018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h.  */
12020 #ifdef __STDC__
12021 # include <limits.h>
12022 #else
12023 # include <assert.h>
12024 #endif
12025                      Syntax error
12026 _ACEOF
12027 if ac_fn_cxx_try_cpp "$LINENO"; then :
12028
12029 else
12030   # Broken: fails on valid input.
12031 continue
12032 fi
12033 rm -f conftest.err conftest.i conftest.$ac_ext
12034
12035   # OK, works on sane cases.  Now check whether nonexistent headers
12036   # can be detected and how.
12037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h.  */
12039 #include <ac_nonexistent.h>
12040 _ACEOF
12041 if ac_fn_cxx_try_cpp "$LINENO"; then :
12042   # Broken: success on invalid input.
12043 continue
12044 else
12045   # Passes both tests.
12046 ac_preproc_ok=:
12047 break
12048 fi
12049 rm -f conftest.err conftest.i conftest.$ac_ext
12050
12051 done
12052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12053 rm -f conftest.i conftest.err conftest.$ac_ext
12054 if $ac_preproc_ok; then :
12055
12056 else
12057   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12059 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12060 See \`config.log' for more details" "$LINENO" 5; }
12061 fi
12062
12063 ac_ext=c
12064 ac_cpp='$CPP $CPPFLAGS'
12065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12068
12069 else
12070   _lt_caught_CXX_error=yes
12071 fi
12072
12073 ac_ext=cpp
12074 ac_cpp='$CXXCPP $CPPFLAGS'
12075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12078
12079 archive_cmds_need_lc_CXX=no
12080 allow_undefined_flag_CXX=
12081 always_export_symbols_CXX=no
12082 archive_expsym_cmds_CXX=
12083 compiler_needs_object_CXX=no
12084 export_dynamic_flag_spec_CXX=
12085 hardcode_direct_CXX=no
12086 hardcode_direct_absolute_CXX=no
12087 hardcode_libdir_flag_spec_CXX=
12088 hardcode_libdir_separator_CXX=
12089 hardcode_minus_L_CXX=no
12090 hardcode_shlibpath_var_CXX=unsupported
12091 hardcode_automatic_CXX=no
12092 inherit_rpath_CXX=no
12093 module_cmds_CXX=
12094 module_expsym_cmds_CXX=
12095 link_all_deplibs_CXX=unknown
12096 old_archive_cmds_CXX=$old_archive_cmds
12097 reload_flag_CXX=$reload_flag
12098 reload_cmds_CXX=$reload_cmds
12099 no_undefined_flag_CXX=
12100 whole_archive_flag_spec_CXX=
12101 enable_shared_with_static_runtimes_CXX=no
12102
12103 # Source file extension for C++ test sources.
12104 ac_ext=cpp
12105
12106 # Object file extension for compiled C++ test sources.
12107 objext=o
12108 objext_CXX=$objext
12109
12110 # No sense in running all these tests if we already determined that
12111 # the CXX compiler isn't working.  Some variables (like enable_shared)
12112 # are currently assumed to apply to all compilers on this platform,
12113 # and will be corrupted by setting them based on a non-working compiler.
12114 if test "$_lt_caught_CXX_error" != yes; then
12115   # Code to be used in simple compile tests
12116   lt_simple_compile_test_code="int some_variable = 0;"
12117
12118   # Code to be used in simple link tests
12119   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12120
12121   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12122
12123
12124
12125
12126
12127
12128 # If no C compiler was specified, use CC.
12129 LTCC=${LTCC-"$CC"}
12130
12131 # If no C compiler flags were specified, use CFLAGS.
12132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12133
12134 # Allow CC to be a program name with arguments.
12135 compiler=$CC
12136
12137
12138   # save warnings/boilerplate of simple test code
12139   ac_outfile=conftest.$ac_objext
12140 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12141 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12142 _lt_compiler_boilerplate=`cat conftest.err`
12143 $RM conftest*
12144
12145   ac_outfile=conftest.$ac_objext
12146 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12147 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12148 _lt_linker_boilerplate=`cat conftest.err`
12149 $RM -r conftest*
12150
12151
12152   # Allow CC to be a program name with arguments.
12153   lt_save_CC=$CC
12154   lt_save_CFLAGS=$CFLAGS
12155   lt_save_LD=$LD
12156   lt_save_GCC=$GCC
12157   GCC=$GXX
12158   lt_save_with_gnu_ld=$with_gnu_ld
12159   lt_save_path_LD=$lt_cv_path_LD
12160   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12161     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12162   else
12163     $as_unset lt_cv_prog_gnu_ld
12164   fi
12165   if test -n "${lt_cv_path_LDCXX+set}"; then
12166     lt_cv_path_LD=$lt_cv_path_LDCXX
12167   else
12168     $as_unset lt_cv_path_LD
12169   fi
12170   test -z "${LDCXX+set}" || LD=$LDCXX
12171   CC=${CXX-"c++"}
12172   CFLAGS=$CXXFLAGS
12173   compiler=$CC
12174   compiler_CXX=$CC
12175   for cc_temp in $compiler""; do
12176   case $cc_temp in
12177     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12178     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12179     \-*) ;;
12180     *) break;;
12181   esac
12182 done
12183 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12184
12185
12186   if test -n "$compiler"; then
12187     # We don't want -fno-exception when compiling C++ code, so set the
12188     # no_builtin_flag separately
12189     if test "$GXX" = yes; then
12190       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12191     else
12192       lt_prog_compiler_no_builtin_flag_CXX=
12193     fi
12194
12195     if test "$GXX" = yes; then
12196       # Set up default GNU C++ configuration
12197
12198
12199
12200 # Check whether --with-gnu-ld was given.
12201 if test "${with_gnu_ld+set}" = set; then :
12202   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12203 else
12204   with_gnu_ld=no
12205 fi
12206
12207 ac_prog=ld
12208 if test "$GCC" = yes; then
12209   # Check if gcc -print-prog-name=ld gives a path.
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12211 $as_echo_n "checking for ld used by $CC... " >&6; }
12212   case $host in
12213   *-*-mingw*)
12214     # gcc leaves a trailing carriage return which upsets mingw
12215     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12216   *)
12217     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12218   esac
12219   case $ac_prog in
12220     # Accept absolute paths.
12221     [\\/]* | ?:[\\/]*)
12222       re_direlt='/[^/][^/]*/\.\./'
12223       # Canonicalize the pathname of ld
12224       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12225       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12226         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12227       done
12228       test -z "$LD" && LD="$ac_prog"
12229       ;;
12230   "")
12231     # If it fails, then pretend we aren't using GCC.
12232     ac_prog=ld
12233     ;;
12234   *)
12235     # If it is relative, then search for the first ld in PATH.
12236     with_gnu_ld=unknown
12237     ;;
12238   esac
12239 elif test "$with_gnu_ld" = yes; then
12240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12241 $as_echo_n "checking for GNU ld... " >&6; }
12242 else
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12244 $as_echo_n "checking for non-GNU ld... " >&6; }
12245 fi
12246 if ${lt_cv_path_LD+:} false; then :
12247   $as_echo_n "(cached) " >&6
12248 else
12249   if test -z "$LD"; then
12250   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12251   for ac_dir in $PATH; do
12252     IFS="$lt_save_ifs"
12253     test -z "$ac_dir" && ac_dir=.
12254     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12255       lt_cv_path_LD="$ac_dir/$ac_prog"
12256       # Check to see if the program is GNU ld.  I'd rather use --version,
12257       # but apparently some variants of GNU ld only accept -v.
12258       # Break only if it was the GNU/non-GNU ld that we prefer.
12259       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12260       *GNU* | *'with BFD'*)
12261         test "$with_gnu_ld" != no && break
12262         ;;
12263       *)
12264         test "$with_gnu_ld" != yes && break
12265         ;;
12266       esac
12267     fi
12268   done
12269   IFS="$lt_save_ifs"
12270 else
12271   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12272 fi
12273 fi
12274
12275 LD="$lt_cv_path_LD"
12276 if test -n "$LD"; then
12277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12278 $as_echo "$LD" >&6; }
12279 else
12280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12282 fi
12283 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12285 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12286 if ${lt_cv_prog_gnu_ld+:} false; then :
12287   $as_echo_n "(cached) " >&6
12288 else
12289   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12290 case `$LD -v 2>&1 </dev/null` in
12291 *GNU* | *'with BFD'*)
12292   lt_cv_prog_gnu_ld=yes
12293   ;;
12294 *)
12295   lt_cv_prog_gnu_ld=no
12296   ;;
12297 esac
12298 fi
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12300 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12301 with_gnu_ld=$lt_cv_prog_gnu_ld
12302
12303
12304
12305
12306
12307
12308
12309       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12310       # archiving commands below assume that GNU ld is being used.
12311       if test "$with_gnu_ld" = yes; then
12312         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12313         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'
12314
12315         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12316         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12317
12318         # If archive_cmds runs LD, not CC, wlarc should be empty
12319         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12320         #     investigate it a little bit more. (MM)
12321         wlarc='${wl}'
12322
12323         # ancient GNU ld didn't support --whole-archive et. al.
12324         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12325           $GREP 'no-whole-archive' > /dev/null; then
12326           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12327         else
12328           whole_archive_flag_spec_CXX=
12329         fi
12330       else
12331         with_gnu_ld=no
12332         wlarc=
12333
12334         # A generic and very simple default shared library creation
12335         # command for GNU C++ for the case where it uses the native
12336         # linker, instead of GNU ld.  If possible, this setting should
12337         # overridden to take advantage of the native linker features on
12338         # the platform it is being used on.
12339         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12340       fi
12341
12342       # Commands to make compiler produce verbose output that lists
12343       # what "hidden" libraries, object files and flags are used when
12344       # linking a shared library.
12345       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12346
12347     else
12348       GXX=no
12349       with_gnu_ld=no
12350       wlarc=
12351     fi
12352
12353     # PORTME: fill in a description of your system's C++ link characteristics
12354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12355 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12356     ld_shlibs_CXX=yes
12357     case $host_os in
12358       aix3*)
12359         # FIXME: insert proper C++ library support
12360         ld_shlibs_CXX=no
12361         ;;
12362       aix[4-9]*)
12363         if test "$host_cpu" = ia64; then
12364           # On IA64, the linker does run time linking by default, so we don't
12365           # have to do anything special.
12366           aix_use_runtimelinking=no
12367           exp_sym_flag='-Bexport'
12368           no_entry_flag=""
12369         else
12370           aix_use_runtimelinking=no
12371
12372           # Test if we are trying to use run time linking or normal
12373           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12374           # need to do runtime linking.
12375           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12376             for ld_flag in $LDFLAGS; do
12377               case $ld_flag in
12378               *-brtl*)
12379                 aix_use_runtimelinking=yes
12380                 break
12381                 ;;
12382               esac
12383             done
12384             ;;
12385           esac
12386
12387           exp_sym_flag='-bexport'
12388           no_entry_flag='-bnoentry'
12389         fi
12390
12391         # When large executables or shared objects are built, AIX ld can
12392         # have problems creating the table of contents.  If linking a library
12393         # or program results in "error TOC overflow" add -mminimal-toc to
12394         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12395         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12396
12397         archive_cmds_CXX=''
12398         hardcode_direct_CXX=yes
12399         hardcode_direct_absolute_CXX=yes
12400         hardcode_libdir_separator_CXX=':'
12401         link_all_deplibs_CXX=yes
12402         file_list_spec_CXX='${wl}-f,'
12403
12404         if test "$GXX" = yes; then
12405           case $host_os in aix4.[012]|aix4.[012].*)
12406           # We only want to do this on AIX 4.2 and lower, the check
12407           # below for broken collect2 doesn't work under 4.3+
12408           collect2name=`${CC} -print-prog-name=collect2`
12409           if test -f "$collect2name" &&
12410              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12411           then
12412             # We have reworked collect2
12413             :
12414           else
12415             # We have old collect2
12416             hardcode_direct_CXX=unsupported
12417             # It fails to find uninstalled libraries when the uninstalled
12418             # path is not listed in the libpath.  Setting hardcode_minus_L
12419             # to unsupported forces relinking
12420             hardcode_minus_L_CXX=yes
12421             hardcode_libdir_flag_spec_CXX='-L$libdir'
12422             hardcode_libdir_separator_CXX=
12423           fi
12424           esac
12425           shared_flag='-shared'
12426           if test "$aix_use_runtimelinking" = yes; then
12427             shared_flag="$shared_flag "'${wl}-G'
12428           fi
12429         else
12430           # not using gcc
12431           if test "$host_cpu" = ia64; then
12432           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12433           # chokes on -Wl,-G. The following line is correct:
12434           shared_flag='-G'
12435           else
12436             if test "$aix_use_runtimelinking" = yes; then
12437               shared_flag='${wl}-G'
12438             else
12439               shared_flag='${wl}-bM:SRE'
12440             fi
12441           fi
12442         fi
12443
12444         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12445         # It seems that -bexpall does not export symbols beginning with
12446         # underscore (_), so it is better to generate a list of symbols to
12447         # export.
12448         always_export_symbols_CXX=yes
12449         if test "$aix_use_runtimelinking" = yes; then
12450           # Warning - without using the other runtime loading flags (-brtl),
12451           # -berok will link without error, but may produce a broken library.
12452           allow_undefined_flag_CXX='-berok'
12453           # Determine the default libpath from the value encoded in an empty
12454           # executable.
12455           if test "${lt_cv_aix_libpath+set}" = set; then
12456   aix_libpath=$lt_cv_aix_libpath
12457 else
12458   if ${lt_cv_aix_libpath__CXX+:} false; then :
12459   $as_echo_n "(cached) " >&6
12460 else
12461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h.  */
12463
12464 int
12465 main ()
12466 {
12467
12468   ;
12469   return 0;
12470 }
12471 _ACEOF
12472 if ac_fn_cxx_try_link "$LINENO"; then :
12473
12474   lt_aix_libpath_sed='
12475       /Import File Strings/,/^$/ {
12476           /^0/ {
12477               s/^0  *\([^ ]*\) *$/\1/
12478               p
12479           }
12480       }'
12481   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12482   # Check for a 64-bit object if we didn't find anything.
12483   if test -z "$lt_cv_aix_libpath__CXX"; then
12484     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12485   fi
12486 fi
12487 rm -f core conftest.err conftest.$ac_objext \
12488     conftest$ac_exeext conftest.$ac_ext
12489   if test -z "$lt_cv_aix_libpath__CXX"; then
12490     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12491   fi
12492
12493 fi
12494
12495   aix_libpath=$lt_cv_aix_libpath__CXX
12496 fi
12497
12498           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12499
12500           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"
12501         else
12502           if test "$host_cpu" = ia64; then
12503             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12504             allow_undefined_flag_CXX="-z nodefs"
12505             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"
12506           else
12507             # Determine the default libpath from the value encoded in an
12508             # empty executable.
12509             if test "${lt_cv_aix_libpath+set}" = set; then
12510   aix_libpath=$lt_cv_aix_libpath
12511 else
12512   if ${lt_cv_aix_libpath__CXX+:} false; then :
12513   $as_echo_n "(cached) " >&6
12514 else
12515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h.  */
12517
12518 int
12519 main ()
12520 {
12521
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 if ac_fn_cxx_try_link "$LINENO"; then :
12527
12528   lt_aix_libpath_sed='
12529       /Import File Strings/,/^$/ {
12530           /^0/ {
12531               s/^0  *\([^ ]*\) *$/\1/
12532               p
12533           }
12534       }'
12535   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12536   # Check for a 64-bit object if we didn't find anything.
12537   if test -z "$lt_cv_aix_libpath__CXX"; then
12538     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12539   fi
12540 fi
12541 rm -f core conftest.err conftest.$ac_objext \
12542     conftest$ac_exeext conftest.$ac_ext
12543   if test -z "$lt_cv_aix_libpath__CXX"; then
12544     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12545   fi
12546
12547 fi
12548
12549   aix_libpath=$lt_cv_aix_libpath__CXX
12550 fi
12551
12552             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12553             # Warning - without using the other run time loading flags,
12554             # -berok will link without error, but may produce a broken library.
12555             no_undefined_flag_CXX=' ${wl}-bernotok'
12556             allow_undefined_flag_CXX=' ${wl}-berok'
12557             if test "$with_gnu_ld" = yes; then
12558               # We only use this code for GNU lds that support --whole-archive.
12559               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12560             else
12561               # Exported symbols can be pulled into shared objects from archives
12562               whole_archive_flag_spec_CXX='$convenience'
12563             fi
12564             archive_cmds_need_lc_CXX=yes
12565             # This is similar to how AIX traditionally builds its shared
12566             # libraries.
12567             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'
12568           fi
12569         fi
12570         ;;
12571
12572       beos*)
12573         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12574           allow_undefined_flag_CXX=unsupported
12575           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12576           # support --undefined.  This deserves some investigation.  FIXME
12577           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12578         else
12579           ld_shlibs_CXX=no
12580         fi
12581         ;;
12582
12583       chorus*)
12584         case $cc_basename in
12585           *)
12586           # FIXME: insert proper C++ library support
12587           ld_shlibs_CXX=no
12588           ;;
12589         esac
12590         ;;
12591
12592       cygwin* | mingw* | pw32* | cegcc*)
12593         case $GXX,$cc_basename in
12594         ,cl* | no,cl*)
12595           # Native MSVC
12596           # hardcode_libdir_flag_spec is actually meaningless, as there is
12597           # no search path for DLLs.
12598           hardcode_libdir_flag_spec_CXX=' '
12599           allow_undefined_flag_CXX=unsupported
12600           always_export_symbols_CXX=yes
12601           file_list_spec_CXX='@'
12602           # Tell ltmain to make .lib files, not .a files.
12603           libext=lib
12604           # Tell ltmain to make .dll files, not .so files.
12605           shrext_cmds=".dll"
12606           # FIXME: Setting linknames here is a bad hack.
12607           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12608           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12609               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12610             else
12611               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12612             fi~
12613             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12614             linknames='
12615           # The linker will not automatically build a static lib if we build a DLL.
12616           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12617           enable_shared_with_static_runtimes_CXX=yes
12618           # Don't use ranlib
12619           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12620           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12621             lt_tool_outputfile="@TOOL_OUTPUT@"~
12622             case $lt_outputfile in
12623               *.exe|*.EXE) ;;
12624               *)
12625                 lt_outputfile="$lt_outputfile.exe"
12626                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12627                 ;;
12628             esac~
12629             func_to_tool_file "$lt_outputfile"~
12630             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12631               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12632               $RM "$lt_outputfile.manifest";
12633             fi'
12634           ;;
12635         *)
12636           # g++
12637           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12638           # as there is no search path for DLLs.
12639           hardcode_libdir_flag_spec_CXX='-L$libdir'
12640           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12641           allow_undefined_flag_CXX=unsupported
12642           always_export_symbols_CXX=no
12643           enable_shared_with_static_runtimes_CXX=yes
12644
12645           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12646             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'
12647             # If the export-symbols file already is a .def file (1st line
12648             # is EXPORTS), use it as is; otherwise, prepend...
12649             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12650               cp $export_symbols $output_objdir/$soname.def;
12651             else
12652               echo EXPORTS > $output_objdir/$soname.def;
12653               cat $export_symbols >> $output_objdir/$soname.def;
12654             fi~
12655             $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'
12656           else
12657             ld_shlibs_CXX=no
12658           fi
12659           ;;
12660         esac
12661         ;;
12662       darwin* | rhapsody*)
12663
12664
12665   archive_cmds_need_lc_CXX=no
12666   hardcode_direct_CXX=no
12667   hardcode_automatic_CXX=yes
12668   hardcode_shlibpath_var_CXX=unsupported
12669   if test "$lt_cv_ld_force_load" = "yes"; then
12670     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\"`'
12671
12672   else
12673     whole_archive_flag_spec_CXX=''
12674   fi
12675   link_all_deplibs_CXX=yes
12676   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12677   case $cc_basename in
12678      ifort*) _lt_dar_can_shared=yes ;;
12679      *) _lt_dar_can_shared=$GCC ;;
12680   esac
12681   if test "$_lt_dar_can_shared" = "yes"; then
12682     output_verbose_link_cmd=func_echo_all
12683     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}"
12684     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12685     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}"
12686     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}"
12687        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12688       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}"
12689       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}"
12690     fi
12691
12692   else
12693   ld_shlibs_CXX=no
12694   fi
12695
12696         ;;
12697
12698       dgux*)
12699         case $cc_basename in
12700           ec++*)
12701             # FIXME: insert proper C++ library support
12702             ld_shlibs_CXX=no
12703             ;;
12704           ghcx*)
12705             # Green Hills C++ Compiler
12706             # FIXME: insert proper C++ library support
12707             ld_shlibs_CXX=no
12708             ;;
12709           *)
12710             # FIXME: insert proper C++ library support
12711             ld_shlibs_CXX=no
12712             ;;
12713         esac
12714         ;;
12715
12716       freebsd2.*)
12717         # C++ shared libraries reported to be fairly broken before
12718         # switch to ELF
12719         ld_shlibs_CXX=no
12720         ;;
12721
12722       freebsd-elf*)
12723         archive_cmds_need_lc_CXX=no
12724         ;;
12725
12726       freebsd* | dragonfly*)
12727         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12728         # conventions
12729         ld_shlibs_CXX=yes
12730         ;;
12731
12732       haiku*)
12733         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12734         link_all_deplibs_CXX=yes
12735         ;;
12736
12737       hpux9*)
12738         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12739         hardcode_libdir_separator_CXX=:
12740         export_dynamic_flag_spec_CXX='${wl}-E'
12741         hardcode_direct_CXX=yes
12742         hardcode_minus_L_CXX=yes # Not in the search PATH,
12743                                              # but as the default
12744                                              # location of the library.
12745
12746         case $cc_basename in
12747           CC*)
12748             # FIXME: insert proper C++ library support
12749             ld_shlibs_CXX=no
12750             ;;
12751           aCC*)
12752             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'
12753             # Commands to make compiler produce verbose output that lists
12754             # what "hidden" libraries, object files and flags are used when
12755             # linking a shared library.
12756             #
12757             # There doesn't appear to be a way to prevent this compiler from
12758             # explicitly linking system object files so we need to strip them
12759             # from the output so that they don't get included in the library
12760             # dependencies.
12761             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"'
12762             ;;
12763           *)
12764             if test "$GXX" = yes; then
12765               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'
12766             else
12767               # FIXME: insert proper C++ library support
12768               ld_shlibs_CXX=no
12769             fi
12770             ;;
12771         esac
12772         ;;
12773
12774       hpux10*|hpux11*)
12775         if test $with_gnu_ld = no; then
12776           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12777           hardcode_libdir_separator_CXX=:
12778
12779           case $host_cpu in
12780             hppa*64*|ia64*)
12781               ;;
12782             *)
12783               export_dynamic_flag_spec_CXX='${wl}-E'
12784               ;;
12785           esac
12786         fi
12787         case $host_cpu in
12788           hppa*64*|ia64*)
12789             hardcode_direct_CXX=no
12790             hardcode_shlibpath_var_CXX=no
12791             ;;
12792           *)
12793             hardcode_direct_CXX=yes
12794             hardcode_direct_absolute_CXX=yes
12795             hardcode_minus_L_CXX=yes # Not in the search PATH,
12796                                                  # but as the default
12797                                                  # location of the library.
12798             ;;
12799         esac
12800
12801         case $cc_basename in
12802           CC*)
12803             # FIXME: insert proper C++ library support
12804             ld_shlibs_CXX=no
12805             ;;
12806           aCC*)
12807             case $host_cpu in
12808               hppa*64*)
12809                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12810                 ;;
12811               ia64*)
12812                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12813                 ;;
12814               *)
12815                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12816                 ;;
12817             esac
12818             # Commands to make compiler produce verbose output that lists
12819             # what "hidden" libraries, object files and flags are used when
12820             # linking a shared library.
12821             #
12822             # There doesn't appear to be a way to prevent this compiler from
12823             # explicitly linking system object files so we need to strip them
12824             # from the output so that they don't get included in the library
12825             # dependencies.
12826             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"'
12827             ;;
12828           *)
12829             if test "$GXX" = yes; then
12830               if test $with_gnu_ld = no; then
12831                 case $host_cpu in
12832                   hppa*64*)
12833                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12834                     ;;
12835                   ia64*)
12836                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12837                     ;;
12838                   *)
12839                     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'
12840                     ;;
12841                 esac
12842               fi
12843             else
12844               # FIXME: insert proper C++ library support
12845               ld_shlibs_CXX=no
12846             fi
12847             ;;
12848         esac
12849         ;;
12850
12851       interix[3-9]*)
12852         hardcode_direct_CXX=no
12853         hardcode_shlibpath_var_CXX=no
12854         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12855         export_dynamic_flag_spec_CXX='${wl}-E'
12856         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12857         # Instead, shared libraries are loaded at an image base (0x10000000 by
12858         # default) and relocated if they conflict, which is a slow very memory
12859         # consuming and fragmenting process.  To avoid this, we pick a random,
12860         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12861         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12862         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'
12863         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'
12864         ;;
12865       irix5* | irix6*)
12866         case $cc_basename in
12867           CC*)
12868             # SGI C++
12869             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'
12870
12871             # Archives containing C++ object files must be created using
12872             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12873             # necessary to make sure instantiated templates are included
12874             # in the archive.
12875             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12876             ;;
12877           *)
12878             if test "$GXX" = yes; then
12879               if test "$with_gnu_ld" = no; then
12880                 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'
12881               else
12882                 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'
12883               fi
12884             fi
12885             link_all_deplibs_CXX=yes
12886             ;;
12887         esac
12888         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12889         hardcode_libdir_separator_CXX=:
12890         inherit_rpath_CXX=yes
12891         ;;
12892
12893       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12894         case $cc_basename in
12895           KCC*)
12896             # Kuck and Associates, Inc. (KAI) C++ Compiler
12897
12898             # KCC will only create a shared library if the output file
12899             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12900             # to its proper name (with version) after linking.
12901             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'
12902             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'
12903             # Commands to make compiler produce verbose output that lists
12904             # what "hidden" libraries, object files and flags are used when
12905             # linking a shared library.
12906             #
12907             # There doesn't appear to be a way to prevent this compiler from
12908             # explicitly linking system object files so we need to strip them
12909             # from the output so that they don't get included in the library
12910             # dependencies.
12911             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"'
12912
12913             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12914             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12915
12916             # Archives containing C++ object files must be created using
12917             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12918             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12919             ;;
12920           icpc* | ecpc* )
12921             # Intel C++
12922             with_gnu_ld=yes
12923             # version 8.0 and above of icpc choke on multiply defined symbols
12924             # if we add $predep_objects and $postdep_objects, however 7.1 and
12925             # earlier do not add the objects themselves.
12926             case `$CC -V 2>&1` in
12927               *"Version 7."*)
12928                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12929                 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'
12930                 ;;
12931               *)  # Version 8.0 or newer
12932                 tmp_idyn=
12933                 case $host_cpu in
12934                   ia64*) tmp_idyn=' -i_dynamic';;
12935                 esac
12936                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12937                 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'
12938                 ;;
12939             esac
12940             archive_cmds_need_lc_CXX=no
12941             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12942             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12943             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12944             ;;
12945           pgCC* | pgcpp*)
12946             # Portland Group C++ compiler
12947             case `$CC -V` in
12948             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12949               prelink_cmds_CXX='tpldir=Template.dir~
12950                 rm -rf $tpldir~
12951                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12952                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12953               old_archive_cmds_CXX='tpldir=Template.dir~
12954                 rm -rf $tpldir~
12955                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12956                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12957                 $RANLIB $oldlib'
12958               archive_cmds_CXX='tpldir=Template.dir~
12959                 rm -rf $tpldir~
12960                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12961                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12962               archive_expsym_cmds_CXX='tpldir=Template.dir~
12963                 rm -rf $tpldir~
12964                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12965                 $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'
12966               ;;
12967             *) # Version 6 and above use weak symbols
12968               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12969               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'
12970               ;;
12971             esac
12972
12973             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12974             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12975             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'
12976             ;;
12977           cxx*)
12978             # Compaq C++
12979             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12980             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'
12981
12982             runpath_var=LD_RUN_PATH
12983             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12984             hardcode_libdir_separator_CXX=:
12985
12986             # Commands to make compiler produce verbose output that lists
12987             # what "hidden" libraries, object files and flags are used when
12988             # linking a shared library.
12989             #
12990             # There doesn't appear to be a way to prevent this compiler from
12991             # explicitly linking system object files so we need to strip them
12992             # from the output so that they don't get included in the library
12993             # dependencies.
12994             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'
12995             ;;
12996           xl* | mpixl* | bgxl*)
12997             # IBM XL 8.0 on PPC, with GNU ld
12998             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12999             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13000             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13001             if test "x$supports_anon_versioning" = xyes; then
13002               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13003                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13004                 echo "local: *; };" >> $output_objdir/$libname.ver~
13005                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13006             fi
13007             ;;
13008           *)
13009             case `$CC -V 2>&1 | sed 5q` in
13010             *Sun\ C*)
13011               # Sun C++ 5.9
13012               no_undefined_flag_CXX=' -zdefs'
13013               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13014               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'
13015               hardcode_libdir_flag_spec_CXX='-R$libdir'
13016               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'
13017               compiler_needs_object_CXX=yes
13018
13019               # Not sure whether something based on
13020               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13021               # would be better.
13022               output_verbose_link_cmd='func_echo_all'
13023
13024               # Archives containing C++ object files must be created using
13025               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13026               # necessary to make sure instantiated templates are included
13027               # in the archive.
13028               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13029               ;;
13030             esac
13031             ;;
13032         esac
13033         ;;
13034
13035       lynxos*)
13036         # FIXME: insert proper C++ library support
13037         ld_shlibs_CXX=no
13038         ;;
13039
13040       m88k*)
13041         # FIXME: insert proper C++ library support
13042         ld_shlibs_CXX=no
13043         ;;
13044
13045       mvs*)
13046         case $cc_basename in
13047           cxx*)
13048             # FIXME: insert proper C++ library support
13049             ld_shlibs_CXX=no
13050             ;;
13051           *)
13052             # FIXME: insert proper C++ library support
13053             ld_shlibs_CXX=no
13054             ;;
13055         esac
13056         ;;
13057
13058       netbsd*)
13059         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13060           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13061           wlarc=
13062           hardcode_libdir_flag_spec_CXX='-R$libdir'
13063           hardcode_direct_CXX=yes
13064           hardcode_shlibpath_var_CXX=no
13065         fi
13066         # Workaround some broken pre-1.5 toolchains
13067         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13068         ;;
13069
13070       *nto* | *qnx*)
13071         ld_shlibs_CXX=yes
13072         ;;
13073
13074       openbsd2*)
13075         # C++ shared libraries are fairly broken
13076         ld_shlibs_CXX=no
13077         ;;
13078
13079       openbsd*)
13080         if test -f /usr/libexec/ld.so; then
13081           hardcode_direct_CXX=yes
13082           hardcode_shlibpath_var_CXX=no
13083           hardcode_direct_absolute_CXX=yes
13084           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13085           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13086           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13087             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13088             export_dynamic_flag_spec_CXX='${wl}-E'
13089             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13090           fi
13091           output_verbose_link_cmd=func_echo_all
13092         else
13093           ld_shlibs_CXX=no
13094         fi
13095         ;;
13096
13097       osf3* | osf4* | osf5*)
13098         case $cc_basename in
13099           KCC*)
13100             # Kuck and Associates, Inc. (KAI) C++ Compiler
13101
13102             # KCC will only create a shared library if the output file
13103             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13104             # to its proper name (with version) after linking.
13105             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'
13106
13107             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13108             hardcode_libdir_separator_CXX=:
13109
13110             # Archives containing C++ object files must be created using
13111             # the KAI C++ compiler.
13112             case $host in
13113               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13114               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13115             esac
13116             ;;
13117           RCC*)
13118             # Rational C++ 2.4.1
13119             # FIXME: insert proper C++ library support
13120             ld_shlibs_CXX=no
13121             ;;
13122           cxx*)
13123             case $host in
13124               osf3*)
13125                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13126                 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'
13127                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13128                 ;;
13129               *)
13130                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13131                 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'
13132                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13133                   echo "-hidden">> $lib.exp~
13134                   $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~
13135                   $RM $lib.exp'
13136                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13137                 ;;
13138             esac
13139
13140             hardcode_libdir_separator_CXX=:
13141
13142             # Commands to make compiler produce verbose output that lists
13143             # what "hidden" libraries, object files and flags are used when
13144             # linking a shared library.
13145             #
13146             # There doesn't appear to be a way to prevent this compiler from
13147             # explicitly linking system object files so we need to strip them
13148             # from the output so that they don't get included in the library
13149             # dependencies.
13150             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"'
13151             ;;
13152           *)
13153             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13154               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13155               case $host in
13156                 osf3*)
13157                   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'
13158                   ;;
13159                 *)
13160                   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'
13161                   ;;
13162               esac
13163
13164               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13165               hardcode_libdir_separator_CXX=:
13166
13167               # Commands to make compiler produce verbose output that lists
13168               # what "hidden" libraries, object files and flags are used when
13169               # linking a shared library.
13170               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13171
13172             else
13173               # FIXME: insert proper C++ library support
13174               ld_shlibs_CXX=no
13175             fi
13176             ;;
13177         esac
13178         ;;
13179
13180       psos*)
13181         # FIXME: insert proper C++ library support
13182         ld_shlibs_CXX=no
13183         ;;
13184
13185       sunos4*)
13186         case $cc_basename in
13187           CC*)
13188             # Sun C++ 4.x
13189             # FIXME: insert proper C++ library support
13190             ld_shlibs_CXX=no
13191             ;;
13192           lcc*)
13193             # Lucid
13194             # FIXME: insert proper C++ library support
13195             ld_shlibs_CXX=no
13196             ;;
13197           *)
13198             # FIXME: insert proper C++ library support
13199             ld_shlibs_CXX=no
13200             ;;
13201         esac
13202         ;;
13203
13204       solaris*)
13205         case $cc_basename in
13206           CC* | sunCC*)
13207             # Sun C++ 4.2, 5.x and Centerline C++
13208             archive_cmds_need_lc_CXX=yes
13209             no_undefined_flag_CXX=' -zdefs'
13210             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13211             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13212               $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'
13213
13214             hardcode_libdir_flag_spec_CXX='-R$libdir'
13215             hardcode_shlibpath_var_CXX=no
13216             case $host_os in
13217               solaris2.[0-5] | solaris2.[0-5].*) ;;
13218               *)
13219                 # The compiler driver will combine and reorder linker options,
13220                 # but understands `-z linker_flag'.
13221                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13222                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13223                 ;;
13224             esac
13225             link_all_deplibs_CXX=yes
13226
13227             output_verbose_link_cmd='func_echo_all'
13228
13229             # Archives containing C++ object files must be created using
13230             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13231             # necessary to make sure instantiated templates are included
13232             # in the archive.
13233             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13234             ;;
13235           gcx*)
13236             # Green Hills C++ Compiler
13237             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13238
13239             # The C++ compiler must be used to create the archive.
13240             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13241             ;;
13242           *)
13243             # GNU C++ compiler with Solaris linker
13244             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13245               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13246               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13247                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13248                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13249                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13250
13251                 # Commands to make compiler produce verbose output that lists
13252                 # what "hidden" libraries, object files and flags are used when
13253                 # linking a shared library.
13254                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13255               else
13256                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13257                 # platform.
13258                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13259                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13260                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13261
13262                 # Commands to make compiler produce verbose output that lists
13263                 # what "hidden" libraries, object files and flags are used when
13264                 # linking a shared library.
13265                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13266               fi
13267
13268               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13269               case $host_os in
13270                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13271                 *)
13272                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13273                   ;;
13274               esac
13275             fi
13276             ;;
13277         esac
13278         ;;
13279
13280     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13281       no_undefined_flag_CXX='${wl}-z,text'
13282       archive_cmds_need_lc_CXX=no
13283       hardcode_shlibpath_var_CXX=no
13284       runpath_var='LD_RUN_PATH'
13285
13286       case $cc_basename in
13287         CC*)
13288           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13289           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13290           ;;
13291         *)
13292           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13293           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13294           ;;
13295       esac
13296       ;;
13297
13298       sysv5* | sco3.2v5* | sco5v6*)
13299         # Note: We can NOT use -z defs as we might desire, because we do not
13300         # link with -lc, and that would cause any symbols used from libc to
13301         # always be unresolved, which means just about no library would
13302         # ever link correctly.  If we're not using GNU ld we use -z text
13303         # though, which does catch some bad symbols but isn't as heavy-handed
13304         # as -z defs.
13305         no_undefined_flag_CXX='${wl}-z,text'
13306         allow_undefined_flag_CXX='${wl}-z,nodefs'
13307         archive_cmds_need_lc_CXX=no
13308         hardcode_shlibpath_var_CXX=no
13309         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13310         hardcode_libdir_separator_CXX=':'
13311         link_all_deplibs_CXX=yes
13312         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13313         runpath_var='LD_RUN_PATH'
13314
13315         case $cc_basename in
13316           CC*)
13317             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13318             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13319             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13320               '"$old_archive_cmds_CXX"
13321             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13322               '"$reload_cmds_CXX"
13323             ;;
13324           *)
13325             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327             ;;
13328         esac
13329       ;;
13330
13331       tandem*)
13332         case $cc_basename in
13333           NCC*)
13334             # NonStop-UX NCC 3.20
13335             # FIXME: insert proper C++ library support
13336             ld_shlibs_CXX=no
13337             ;;
13338           *)
13339             # FIXME: insert proper C++ library support
13340             ld_shlibs_CXX=no
13341             ;;
13342         esac
13343         ;;
13344
13345       vxworks*)
13346         # FIXME: insert proper C++ library support
13347         ld_shlibs_CXX=no
13348         ;;
13349
13350       *)
13351         # FIXME: insert proper C++ library support
13352         ld_shlibs_CXX=no
13353         ;;
13354     esac
13355
13356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13357 $as_echo "$ld_shlibs_CXX" >&6; }
13358     test "$ld_shlibs_CXX" = no && can_build_shared=no
13359
13360     GCC_CXX="$GXX"
13361     LD_CXX="$LD"
13362
13363     ## CAVEAT EMPTOR:
13364     ## There is no encapsulation within the following macros, do not change
13365     ## the running order or otherwise move them around unless you know exactly
13366     ## what you are doing...
13367     # Dependencies to place before and after the object being linked:
13368 predep_objects_CXX=
13369 postdep_objects_CXX=
13370 predeps_CXX=
13371 postdeps_CXX=
13372 compiler_lib_search_path_CXX=
13373
13374 cat > conftest.$ac_ext <<_LT_EOF
13375 class Foo
13376 {
13377 public:
13378   Foo (void) { a = 0; }
13379 private:
13380   int a;
13381 };
13382 _LT_EOF
13383
13384
13385 _lt_libdeps_save_CFLAGS=$CFLAGS
13386 case "$CC $CFLAGS " in #(
13387 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13388 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13389 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13390 esac
13391
13392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13393   (eval $ac_compile) 2>&5
13394   ac_status=$?
13395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13396   test $ac_status = 0; }; then
13397   # Parse the compiler output and extract the necessary
13398   # objects, libraries and library flags.
13399
13400   # Sentinel used to keep track of whether or not we are before
13401   # the conftest object file.
13402   pre_test_object_deps_done=no
13403
13404   for p in `eval "$output_verbose_link_cmd"`; do
13405     case ${prev}${p} in
13406
13407     -L* | -R* | -l*)
13408        # Some compilers place space between "-{L,R}" and the path.
13409        # Remove the space.
13410        if test $p = "-L" ||
13411           test $p = "-R"; then
13412          prev=$p
13413          continue
13414        fi
13415
13416        # Expand the sysroot to ease extracting the directories later.
13417        if test -z "$prev"; then
13418          case $p in
13419          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13420          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13421          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13422          esac
13423        fi
13424        case $p in
13425        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13426        esac
13427        if test "$pre_test_object_deps_done" = no; then
13428          case ${prev} in
13429          -L | -R)
13430            # Internal compiler library paths should come after those
13431            # provided the user.  The postdeps already come after the
13432            # user supplied libs so there is no need to process them.
13433            if test -z "$compiler_lib_search_path_CXX"; then
13434              compiler_lib_search_path_CXX="${prev}${p}"
13435            else
13436              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13437            fi
13438            ;;
13439          # The "-l" case would never come before the object being
13440          # linked, so don't bother handling this case.
13441          esac
13442        else
13443          if test -z "$postdeps_CXX"; then
13444            postdeps_CXX="${prev}${p}"
13445          else
13446            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13447          fi
13448        fi
13449        prev=
13450        ;;
13451
13452     *.lto.$objext) ;; # Ignore GCC LTO objects
13453     *.$objext)
13454        # This assumes that the test object file only shows up
13455        # once in the compiler output.
13456        if test "$p" = "conftest.$objext"; then
13457          pre_test_object_deps_done=yes
13458          continue
13459        fi
13460
13461        if test "$pre_test_object_deps_done" = no; then
13462          if test -z "$predep_objects_CXX"; then
13463            predep_objects_CXX="$p"
13464          else
13465            predep_objects_CXX="$predep_objects_CXX $p"
13466          fi
13467        else
13468          if test -z "$postdep_objects_CXX"; then
13469            postdep_objects_CXX="$p"
13470          else
13471            postdep_objects_CXX="$postdep_objects_CXX $p"
13472          fi
13473        fi
13474        ;;
13475
13476     *) ;; # Ignore the rest.
13477
13478     esac
13479   done
13480
13481   # Clean up.
13482   rm -f a.out a.exe
13483 else
13484   echo "libtool.m4: error: problem compiling CXX test program"
13485 fi
13486
13487 $RM -f confest.$objext
13488 CFLAGS=$_lt_libdeps_save_CFLAGS
13489
13490 # PORTME: override above test on systems where it is broken
13491 case $host_os in
13492 interix[3-9]*)
13493   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13494   # hack all around it, let's just trust "g++" to DTRT.
13495   predep_objects_CXX=
13496   postdep_objects_CXX=
13497   postdeps_CXX=
13498   ;;
13499
13500 linux*)
13501   case `$CC -V 2>&1 | sed 5q` in
13502   *Sun\ C*)
13503     # Sun C++ 5.9
13504
13505     # The more standards-conforming stlport4 library is
13506     # incompatible with the Cstd library. Avoid specifying
13507     # it if it's in CXXFLAGS. Ignore libCrun as
13508     # -library=stlport4 depends on it.
13509     case " $CXX $CXXFLAGS " in
13510     *" -library=stlport4 "*)
13511       solaris_use_stlport4=yes
13512       ;;
13513     esac
13514
13515     if test "$solaris_use_stlport4" != yes; then
13516       postdeps_CXX='-library=Cstd -library=Crun'
13517     fi
13518     ;;
13519   esac
13520   ;;
13521
13522 solaris*)
13523   case $cc_basename in
13524   CC* | sunCC*)
13525     # The more standards-conforming stlport4 library is
13526     # incompatible with the Cstd library. Avoid specifying
13527     # it if it's in CXXFLAGS. Ignore libCrun as
13528     # -library=stlport4 depends on it.
13529     case " $CXX $CXXFLAGS " in
13530     *" -library=stlport4 "*)
13531       solaris_use_stlport4=yes
13532       ;;
13533     esac
13534
13535     # Adding this requires a known-good setup of shared libraries for
13536     # Sun compiler versions before 5.6, else PIC objects from an old
13537     # archive will be linked into the output, leading to subtle bugs.
13538     if test "$solaris_use_stlport4" != yes; then
13539       postdeps_CXX='-library=Cstd -library=Crun'
13540     fi
13541     ;;
13542   esac
13543   ;;
13544 esac
13545
13546
13547 case " $postdeps_CXX " in
13548 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13549 esac
13550  compiler_lib_search_dirs_CXX=
13551 if test -n "${compiler_lib_search_path_CXX}"; then
13552  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13553 fi
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585     lt_prog_compiler_wl_CXX=
13586 lt_prog_compiler_pic_CXX=
13587 lt_prog_compiler_static_CXX=
13588
13589
13590   # C++ specific cases for pic, static, wl, etc.
13591   if test "$GXX" = yes; then
13592     lt_prog_compiler_wl_CXX='-Wl,'
13593     lt_prog_compiler_static_CXX='-static'
13594
13595     case $host_os in
13596     aix*)
13597       # All AIX code is PIC.
13598       if test "$host_cpu" = ia64; then
13599         # AIX 5 now supports IA64 processor
13600         lt_prog_compiler_static_CXX='-Bstatic'
13601       fi
13602       ;;
13603
13604     amigaos*)
13605       case $host_cpu in
13606       powerpc)
13607             # see comment about AmigaOS4 .so support
13608             lt_prog_compiler_pic_CXX='-fPIC'
13609         ;;
13610       m68k)
13611             # FIXME: we need at least 68020 code to build shared libraries, but
13612             # adding the `-m68020' flag to GCC prevents building anything better,
13613             # like `-m68040'.
13614             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13615         ;;
13616       esac
13617       ;;
13618
13619     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13620       # PIC is the default for these OSes.
13621       ;;
13622     mingw* | cygwin* | os2* | pw32* | cegcc*)
13623       # This hack is so that the source file can tell whether it is being
13624       # built for inclusion in a dll (and should export symbols for example).
13625       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13626       # (--disable-auto-import) libraries
13627       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13628       ;;
13629     darwin* | rhapsody*)
13630       # PIC is the default on this platform
13631       # Common symbols not allowed in MH_DYLIB files
13632       lt_prog_compiler_pic_CXX='-fno-common'
13633       ;;
13634     *djgpp*)
13635       # DJGPP does not support shared libraries at all
13636       lt_prog_compiler_pic_CXX=
13637       ;;
13638     haiku*)
13639       # PIC is the default for Haiku.
13640       # The "-static" flag exists, but is broken.
13641       lt_prog_compiler_static_CXX=
13642       ;;
13643     interix[3-9]*)
13644       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13645       # Instead, we relocate shared libraries at runtime.
13646       ;;
13647     sysv4*MP*)
13648       if test -d /usr/nec; then
13649         lt_prog_compiler_pic_CXX=-Kconform_pic
13650       fi
13651       ;;
13652     hpux*)
13653       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13654       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13655       # sets the default TLS model and affects inlining.
13656       case $host_cpu in
13657       hppa*64*)
13658         ;;
13659       *)
13660         lt_prog_compiler_pic_CXX='-fPIC'
13661         ;;
13662       esac
13663       ;;
13664     *qnx* | *nto*)
13665       # QNX uses GNU C++, but need to define -shared option too, otherwise
13666       # it will coredump.
13667       lt_prog_compiler_pic_CXX='-fPIC -shared'
13668       ;;
13669     *)
13670       lt_prog_compiler_pic_CXX='-fPIC'
13671       ;;
13672     esac
13673   else
13674     case $host_os in
13675       aix[4-9]*)
13676         # All AIX code is PIC.
13677         if test "$host_cpu" = ia64; then
13678           # AIX 5 now supports IA64 processor
13679           lt_prog_compiler_static_CXX='-Bstatic'
13680         else
13681           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13682         fi
13683         ;;
13684       chorus*)
13685         case $cc_basename in
13686         cxch68*)
13687           # Green Hills C++ Compiler
13688           # _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"
13689           ;;
13690         esac
13691         ;;
13692       mingw* | cygwin* | os2* | pw32* | cegcc*)
13693         # This hack is so that the source file can tell whether it is being
13694         # built for inclusion in a dll (and should export symbols for example).
13695         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13696         ;;
13697       dgux*)
13698         case $cc_basename in
13699           ec++*)
13700             lt_prog_compiler_pic_CXX='-KPIC'
13701             ;;
13702           ghcx*)
13703             # Green Hills C++ Compiler
13704             lt_prog_compiler_pic_CXX='-pic'
13705             ;;
13706           *)
13707             ;;
13708         esac
13709         ;;
13710       freebsd* | dragonfly*)
13711         # FreeBSD uses GNU C++
13712         ;;
13713       hpux9* | hpux10* | hpux11*)
13714         case $cc_basename in
13715           CC*)
13716             lt_prog_compiler_wl_CXX='-Wl,'
13717             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13718             if test "$host_cpu" != ia64; then
13719               lt_prog_compiler_pic_CXX='+Z'
13720             fi
13721             ;;
13722           aCC*)
13723             lt_prog_compiler_wl_CXX='-Wl,'
13724             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13725             case $host_cpu in
13726             hppa*64*|ia64*)
13727               # +Z the default
13728               ;;
13729             *)
13730               lt_prog_compiler_pic_CXX='+Z'
13731               ;;
13732             esac
13733             ;;
13734           *)
13735             ;;
13736         esac
13737         ;;
13738       interix*)
13739         # This is c89, which is MS Visual C++ (no shared libs)
13740         # Anyone wants to do a port?
13741         ;;
13742       irix5* | irix6* | nonstopux*)
13743         case $cc_basename in
13744           CC*)
13745             lt_prog_compiler_wl_CXX='-Wl,'
13746             lt_prog_compiler_static_CXX='-non_shared'
13747             # CC pic flag -KPIC is the default.
13748             ;;
13749           *)
13750             ;;
13751         esac
13752         ;;
13753       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13754         case $cc_basename in
13755           KCC*)
13756             # KAI C++ Compiler
13757             lt_prog_compiler_wl_CXX='--backend -Wl,'
13758             lt_prog_compiler_pic_CXX='-fPIC'
13759             ;;
13760           ecpc* )
13761             # old Intel C++ for x86_64 which still supported -KPIC.
13762             lt_prog_compiler_wl_CXX='-Wl,'
13763             lt_prog_compiler_pic_CXX='-KPIC'
13764             lt_prog_compiler_static_CXX='-static'
13765             ;;
13766           icpc* )
13767             # Intel C++, used to be incompatible with GCC.
13768             # ICC 10 doesn't accept -KPIC any more.
13769             lt_prog_compiler_wl_CXX='-Wl,'
13770             lt_prog_compiler_pic_CXX='-fPIC'
13771             lt_prog_compiler_static_CXX='-static'
13772             ;;
13773           pgCC* | pgcpp*)
13774             # Portland Group C++ compiler
13775             lt_prog_compiler_wl_CXX='-Wl,'
13776             lt_prog_compiler_pic_CXX='-fpic'
13777             lt_prog_compiler_static_CXX='-Bstatic'
13778             ;;
13779           cxx*)
13780             # Compaq C++
13781             # Make sure the PIC flag is empty.  It appears that all Alpha
13782             # Linux and Compaq Tru64 Unix objects are PIC.
13783             lt_prog_compiler_pic_CXX=
13784             lt_prog_compiler_static_CXX='-non_shared'
13785             ;;
13786           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13787             # IBM XL 8.0, 9.0 on PPC and BlueGene
13788             lt_prog_compiler_wl_CXX='-Wl,'
13789             lt_prog_compiler_pic_CXX='-qpic'
13790             lt_prog_compiler_static_CXX='-qstaticlink'
13791             ;;
13792           *)
13793             case `$CC -V 2>&1 | sed 5q` in
13794             *Sun\ C*)
13795               # Sun C++ 5.9
13796               lt_prog_compiler_pic_CXX='-KPIC'
13797               lt_prog_compiler_static_CXX='-Bstatic'
13798               lt_prog_compiler_wl_CXX='-Qoption ld '
13799               ;;
13800             esac
13801             ;;
13802         esac
13803         ;;
13804       lynxos*)
13805         ;;
13806       m88k*)
13807         ;;
13808       mvs*)
13809         case $cc_basename in
13810           cxx*)
13811             lt_prog_compiler_pic_CXX='-W c,exportall'
13812             ;;
13813           *)
13814             ;;
13815         esac
13816         ;;
13817       netbsd* | netbsdelf*-gnu)
13818         ;;
13819       *qnx* | *nto*)
13820         # QNX uses GNU C++, but need to define -shared option too, otherwise
13821         # it will coredump.
13822         lt_prog_compiler_pic_CXX='-fPIC -shared'
13823         ;;
13824       osf3* | osf4* | osf5*)
13825         case $cc_basename in
13826           KCC*)
13827             lt_prog_compiler_wl_CXX='--backend -Wl,'
13828             ;;
13829           RCC*)
13830             # Rational C++ 2.4.1
13831             lt_prog_compiler_pic_CXX='-pic'
13832             ;;
13833           cxx*)
13834             # Digital/Compaq C++
13835             lt_prog_compiler_wl_CXX='-Wl,'
13836             # Make sure the PIC flag is empty.  It appears that all Alpha
13837             # Linux and Compaq Tru64 Unix objects are PIC.
13838             lt_prog_compiler_pic_CXX=
13839             lt_prog_compiler_static_CXX='-non_shared'
13840             ;;
13841           *)
13842             ;;
13843         esac
13844         ;;
13845       psos*)
13846         ;;
13847       solaris*)
13848         case $cc_basename in
13849           CC* | sunCC*)
13850             # Sun C++ 4.2, 5.x and Centerline C++
13851             lt_prog_compiler_pic_CXX='-KPIC'
13852             lt_prog_compiler_static_CXX='-Bstatic'
13853             lt_prog_compiler_wl_CXX='-Qoption ld '
13854             ;;
13855           gcx*)
13856             # Green Hills C++ Compiler
13857             lt_prog_compiler_pic_CXX='-PIC'
13858             ;;
13859           *)
13860             ;;
13861         esac
13862         ;;
13863       sunos4*)
13864         case $cc_basename in
13865           CC*)
13866             # Sun C++ 4.x
13867             lt_prog_compiler_pic_CXX='-pic'
13868             lt_prog_compiler_static_CXX='-Bstatic'
13869             ;;
13870           lcc*)
13871             # Lucid
13872             lt_prog_compiler_pic_CXX='-pic'
13873             ;;
13874           *)
13875             ;;
13876         esac
13877         ;;
13878       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13879         case $cc_basename in
13880           CC*)
13881             lt_prog_compiler_wl_CXX='-Wl,'
13882             lt_prog_compiler_pic_CXX='-KPIC'
13883             lt_prog_compiler_static_CXX='-Bstatic'
13884             ;;
13885         esac
13886         ;;
13887       tandem*)
13888         case $cc_basename in
13889           NCC*)
13890             # NonStop-UX NCC 3.20
13891             lt_prog_compiler_pic_CXX='-KPIC'
13892             ;;
13893           *)
13894             ;;
13895         esac
13896         ;;
13897       vxworks*)
13898         ;;
13899       *)
13900         lt_prog_compiler_can_build_shared_CXX=no
13901         ;;
13902     esac
13903   fi
13904
13905 case $host_os in
13906   # For platforms which do not support PIC, -DPIC is meaningless:
13907   *djgpp*)
13908     lt_prog_compiler_pic_CXX=
13909     ;;
13910   *)
13911     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13912     ;;
13913 esac
13914
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13916 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13917 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13918   $as_echo_n "(cached) " >&6
13919 else
13920   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13921 fi
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13923 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13924 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13925
13926 #
13927 # Check to make sure the PIC flag actually works.
13928 #
13929 if test -n "$lt_prog_compiler_pic_CXX"; then
13930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13931 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13932 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13933   $as_echo_n "(cached) " >&6
13934 else
13935   lt_cv_prog_compiler_pic_works_CXX=no
13936    ac_outfile=conftest.$ac_objext
13937    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13938    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13939    # Insert the option either (1) after the last *FLAGS variable, or
13940    # (2) before a word containing "conftest.", or (3) at the end.
13941    # Note that $ac_compile itself does not contain backslashes and begins
13942    # with a dollar sign (not a hyphen), so the echo should work correctly.
13943    # The option is referenced via a variable to avoid confusing sed.
13944    lt_compile=`echo "$ac_compile" | $SED \
13945    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13947    -e 's:$: $lt_compiler_flag:'`
13948    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13949    (eval "$lt_compile" 2>conftest.err)
13950    ac_status=$?
13951    cat conftest.err >&5
13952    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953    if (exit $ac_status) && test -s "$ac_outfile"; then
13954      # The compiler can only warn and ignore the option if not recognized
13955      # So say no if there are warnings other than the usual output.
13956      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13957      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13958      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13959        lt_cv_prog_compiler_pic_works_CXX=yes
13960      fi
13961    fi
13962    $RM conftest*
13963
13964 fi
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13966 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13967
13968 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13969     case $lt_prog_compiler_pic_CXX in
13970      "" | " "*) ;;
13971      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13972      esac
13973 else
13974     lt_prog_compiler_pic_CXX=
13975      lt_prog_compiler_can_build_shared_CXX=no
13976 fi
13977
13978 fi
13979
13980
13981
13982
13983
13984 #
13985 # Check to make sure the static flag actually works.
13986 #
13987 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13989 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13990 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13991   $as_echo_n "(cached) " >&6
13992 else
13993   lt_cv_prog_compiler_static_works_CXX=no
13994    save_LDFLAGS="$LDFLAGS"
13995    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13996    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13997    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13998      # The linker can only warn and ignore the option if not recognized
13999      # So say no if there are warnings
14000      if test -s conftest.err; then
14001        # Append any errors to the config.log.
14002        cat conftest.err 1>&5
14003        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14004        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14005        if diff conftest.exp conftest.er2 >/dev/null; then
14006          lt_cv_prog_compiler_static_works_CXX=yes
14007        fi
14008      else
14009        lt_cv_prog_compiler_static_works_CXX=yes
14010      fi
14011    fi
14012    $RM -r conftest*
14013    LDFLAGS="$save_LDFLAGS"
14014
14015 fi
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14017 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14018
14019 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14020     :
14021 else
14022     lt_prog_compiler_static_CXX=
14023 fi
14024
14025
14026
14027
14028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14029 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14030 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14031   $as_echo_n "(cached) " >&6
14032 else
14033   lt_cv_prog_compiler_c_o_CXX=no
14034    $RM -r conftest 2>/dev/null
14035    mkdir conftest
14036    cd conftest
14037    mkdir out
14038    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14039
14040    lt_compiler_flag="-o out/conftest2.$ac_objext"
14041    # Insert the option either (1) after the last *FLAGS variable, or
14042    # (2) before a word containing "conftest.", or (3) at the end.
14043    # Note that $ac_compile itself does not contain backslashes and begins
14044    # with a dollar sign (not a hyphen), so the echo should work correctly.
14045    lt_compile=`echo "$ac_compile" | $SED \
14046    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14047    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14048    -e 's:$: $lt_compiler_flag:'`
14049    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14050    (eval "$lt_compile" 2>out/conftest.err)
14051    ac_status=$?
14052    cat out/conftest.err >&5
14053    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14055    then
14056      # The compiler can only warn and ignore the option if not recognized
14057      # So say no if there are warnings
14058      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14059      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14060      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14061        lt_cv_prog_compiler_c_o_CXX=yes
14062      fi
14063    fi
14064    chmod u+w . 2>&5
14065    $RM conftest*
14066    # SGI C++ compiler will create directory out/ii_files/ for
14067    # template instantiation
14068    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14069    $RM out/* && rmdir out
14070    cd ..
14071    $RM -r conftest
14072    $RM conftest*
14073
14074 fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14076 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14077
14078
14079
14080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14082 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14083   $as_echo_n "(cached) " >&6
14084 else
14085   lt_cv_prog_compiler_c_o_CXX=no
14086    $RM -r conftest 2>/dev/null
14087    mkdir conftest
14088    cd conftest
14089    mkdir out
14090    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14091
14092    lt_compiler_flag="-o out/conftest2.$ac_objext"
14093    # Insert the option either (1) after the last *FLAGS variable, or
14094    # (2) before a word containing "conftest.", or (3) at the end.
14095    # Note that $ac_compile itself does not contain backslashes and begins
14096    # with a dollar sign (not a hyphen), so the echo should work correctly.
14097    lt_compile=`echo "$ac_compile" | $SED \
14098    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14099    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14100    -e 's:$: $lt_compiler_flag:'`
14101    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14102    (eval "$lt_compile" 2>out/conftest.err)
14103    ac_status=$?
14104    cat out/conftest.err >&5
14105    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14107    then
14108      # The compiler can only warn and ignore the option if not recognized
14109      # So say no if there are warnings
14110      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14111      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14112      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14113        lt_cv_prog_compiler_c_o_CXX=yes
14114      fi
14115    fi
14116    chmod u+w . 2>&5
14117    $RM conftest*
14118    # SGI C++ compiler will create directory out/ii_files/ for
14119    # template instantiation
14120    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14121    $RM out/* && rmdir out
14122    cd ..
14123    $RM -r conftest
14124    $RM conftest*
14125
14126 fi
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14128 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14129
14130
14131
14132
14133 hard_links="nottested"
14134 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14135   # do not overwrite the value of need_locks provided by the user
14136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14137 $as_echo_n "checking if we can lock with hard links... " >&6; }
14138   hard_links=yes
14139   $RM conftest*
14140   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14141   touch conftest.a
14142   ln conftest.a conftest.b 2>&5 || hard_links=no
14143   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14145 $as_echo "$hard_links" >&6; }
14146   if test "$hard_links" = no; then
14147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14148 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14149     need_locks=warn
14150   fi
14151 else
14152   need_locks=no
14153 fi
14154
14155
14156
14157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14158 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14159
14160   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14161   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14162   case $host_os in
14163   aix[4-9]*)
14164     # If we're using GNU nm, then we don't want the "-C" option.
14165     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14166     # Also, AIX nm treats weak defined symbols like other global defined
14167     # symbols, whereas GNU nm marks them as "W".
14168     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14169       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'
14170     else
14171       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'
14172     fi
14173     ;;
14174   pw32*)
14175     export_symbols_cmds_CXX="$ltdll_cmds"
14176     ;;
14177   cygwin* | mingw* | cegcc*)
14178     case $cc_basename in
14179     cl*)
14180       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14181       ;;
14182     *)
14183       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'
14184       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14185       ;;
14186     esac
14187     ;;
14188   linux* | k*bsd*-gnu | gnu*)
14189     link_all_deplibs_CXX=no
14190     ;;
14191   *)
14192     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14193     ;;
14194   esac
14195
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14197 $as_echo "$ld_shlibs_CXX" >&6; }
14198 test "$ld_shlibs_CXX" = no && can_build_shared=no
14199
14200 with_gnu_ld_CXX=$with_gnu_ld
14201
14202
14203
14204
14205
14206
14207 #
14208 # Do we need to explicitly link libc?
14209 #
14210 case "x$archive_cmds_need_lc_CXX" in
14211 x|xyes)
14212   # Assume -lc should be added
14213   archive_cmds_need_lc_CXX=yes
14214
14215   if test "$enable_shared" = yes && test "$GCC" = yes; then
14216     case $archive_cmds_CXX in
14217     *'~'*)
14218       # FIXME: we may have to deal with multi-command sequences.
14219       ;;
14220     '$CC '*)
14221       # Test whether the compiler implicitly links with -lc since on some
14222       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14223       # to ld, don't add -lc before -lgcc.
14224       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14225 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14226 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14227   $as_echo_n "(cached) " >&6
14228 else
14229   $RM conftest*
14230         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14231
14232         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14233   (eval $ac_compile) 2>&5
14234   ac_status=$?
14235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236   test $ac_status = 0; } 2>conftest.err; then
14237           soname=conftest
14238           lib=conftest
14239           libobjs=conftest.$ac_objext
14240           deplibs=
14241           wl=$lt_prog_compiler_wl_CXX
14242           pic_flag=$lt_prog_compiler_pic_CXX
14243           compiler_flags=-v
14244           linker_flags=-v
14245           verstring=
14246           output_objdir=.
14247           libname=conftest
14248           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14249           allow_undefined_flag_CXX=
14250           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14251   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14252   ac_status=$?
14253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14254   test $ac_status = 0; }
14255           then
14256             lt_cv_archive_cmds_need_lc_CXX=no
14257           else
14258             lt_cv_archive_cmds_need_lc_CXX=yes
14259           fi
14260           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14261         else
14262           cat conftest.err 1>&5
14263         fi
14264         $RM conftest*
14265
14266 fi
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14268 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14269       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14270       ;;
14271     esac
14272   fi
14273   ;;
14274 esac
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14338 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14339
14340 library_names_spec=
14341 libname_spec='lib$name'
14342 soname_spec=
14343 shrext_cmds=".so"
14344 postinstall_cmds=
14345 postuninstall_cmds=
14346 finish_cmds=
14347 finish_eval=
14348 shlibpath_var=
14349 shlibpath_overrides_runpath=unknown
14350 version_type=none
14351 dynamic_linker="$host_os ld.so"
14352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14353 need_lib_prefix=unknown
14354 hardcode_into_libs=no
14355
14356 # when you set need_version to no, make sure it does not cause -set_version
14357 # flags to be left without arguments
14358 need_version=unknown
14359
14360 case $host_os in
14361 aix3*)
14362   version_type=linux # correct to gnu/linux during the next big refactor
14363   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14364   shlibpath_var=LIBPATH
14365
14366   # AIX 3 has no versioning support, so we append a major version to the name.
14367   soname_spec='${libname}${release}${shared_ext}$major'
14368   ;;
14369
14370 aix[4-9]*)
14371   version_type=linux # correct to gnu/linux during the next big refactor
14372   need_lib_prefix=no
14373   need_version=no
14374   hardcode_into_libs=yes
14375   if test "$host_cpu" = ia64; then
14376     # AIX 5 supports IA64
14377     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14378     shlibpath_var=LD_LIBRARY_PATH
14379   else
14380     # With GCC up to 2.95.x, collect2 would create an import file
14381     # for dependence libraries.  The import file would start with
14382     # the line `#! .'.  This would cause the generated library to
14383     # depend on `.', always an invalid library.  This was fixed in
14384     # development snapshots of GCC prior to 3.0.
14385     case $host_os in
14386       aix4 | aix4.[01] | aix4.[01].*)
14387       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14388            echo ' yes '
14389            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14390         :
14391       else
14392         can_build_shared=no
14393       fi
14394       ;;
14395     esac
14396     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14397     # soname into executable. Probably we can add versioning support to
14398     # collect2, so additional links can be useful in future.
14399     if test "$aix_use_runtimelinking" = yes; then
14400       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14401       # instead of lib<name>.a to let people know that these are not
14402       # typical AIX shared libraries.
14403       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404     else
14405       # We preserve .a as extension for shared libraries through AIX4.2
14406       # and later when we are not doing run time linking.
14407       library_names_spec='${libname}${release}.a $libname.a'
14408       soname_spec='${libname}${release}${shared_ext}$major'
14409     fi
14410     shlibpath_var=LIBPATH
14411   fi
14412   ;;
14413
14414 amigaos*)
14415   case $host_cpu in
14416   powerpc)
14417     # Since July 2007 AmigaOS4 officially supports .so libraries.
14418     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14420     ;;
14421   m68k)
14422     library_names_spec='$libname.ixlibrary $libname.a'
14423     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14424     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'
14425     ;;
14426   esac
14427   ;;
14428
14429 beos*)
14430   library_names_spec='${libname}${shared_ext}'
14431   dynamic_linker="$host_os ld.so"
14432   shlibpath_var=LIBRARY_PATH
14433   ;;
14434
14435 bsdi[45]*)
14436   version_type=linux # correct to gnu/linux during the next big refactor
14437   need_version=no
14438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439   soname_spec='${libname}${release}${shared_ext}$major'
14440   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14441   shlibpath_var=LD_LIBRARY_PATH
14442   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14443   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14444   # the default ld.so.conf also contains /usr/contrib/lib and
14445   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14446   # libtool to hard-code these into programs
14447   ;;
14448
14449 cygwin* | mingw* | pw32* | cegcc*)
14450   version_type=windows
14451   shrext_cmds=".dll"
14452   need_version=no
14453   need_lib_prefix=no
14454
14455   case $GCC,$cc_basename in
14456   yes,*)
14457     # gcc
14458     library_names_spec='$libname.dll.a'
14459     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14460     postinstall_cmds='base_file=`basename \${file}`~
14461       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14462       dldir=$destdir/`dirname \$dlpath`~
14463       test -d \$dldir || mkdir -p \$dldir~
14464       $install_prog $dir/$dlname \$dldir/$dlname~
14465       chmod a+x \$dldir/$dlname~
14466       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14467         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14468       fi'
14469     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14470       dlpath=$dir/\$dldll~
14471        $RM \$dlpath'
14472     shlibpath_overrides_runpath=yes
14473
14474     case $host_os in
14475     cygwin*)
14476       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14477       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14478
14479       ;;
14480     mingw* | cegcc*)
14481       # MinGW DLLs use traditional 'lib' prefix
14482       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483       ;;
14484     pw32*)
14485       # pw32 DLLs use 'pw' prefix rather than 'lib'
14486       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14487       ;;
14488     esac
14489     dynamic_linker='Win32 ld.exe'
14490     ;;
14491
14492   *,cl*)
14493     # Native MSVC
14494     libname_spec='$name'
14495     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14496     library_names_spec='${libname}.dll.lib'
14497
14498     case $build_os in
14499     mingw*)
14500       sys_lib_search_path_spec=
14501       lt_save_ifs=$IFS
14502       IFS=';'
14503       for lt_path in $LIB
14504       do
14505         IFS=$lt_save_ifs
14506         # Let DOS variable expansion print the short 8.3 style file name.
14507         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14508         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14509       done
14510       IFS=$lt_save_ifs
14511       # Convert to MSYS style.
14512       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14513       ;;
14514     cygwin*)
14515       # Convert to unix form, then to dos form, then back to unix form
14516       # but this time dos style (no spaces!) so that the unix form looks
14517       # like /cygdrive/c/PROGRA~1:/cygdr...
14518       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14519       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14520       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14521       ;;
14522     *)
14523       sys_lib_search_path_spec="$LIB"
14524       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14525         # It is most probably a Windows format PATH.
14526         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14527       else
14528         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14529       fi
14530       # FIXME: find the short name or the path components, as spaces are
14531       # common. (e.g. "Program Files" -> "PROGRA~1")
14532       ;;
14533     esac
14534
14535     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14536     postinstall_cmds='base_file=`basename \${file}`~
14537       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14538       dldir=$destdir/`dirname \$dlpath`~
14539       test -d \$dldir || mkdir -p \$dldir~
14540       $install_prog $dir/$dlname \$dldir/$dlname'
14541     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14542       dlpath=$dir/\$dldll~
14543        $RM \$dlpath'
14544     shlibpath_overrides_runpath=yes
14545     dynamic_linker='Win32 link.exe'
14546     ;;
14547
14548   *)
14549     # Assume MSVC wrapper
14550     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14551     dynamic_linker='Win32 ld.exe'
14552     ;;
14553   esac
14554   # FIXME: first we should search . and the directory the executable is in
14555   shlibpath_var=PATH
14556   ;;
14557
14558 darwin* | rhapsody*)
14559   dynamic_linker="$host_os dyld"
14560   version_type=darwin
14561   need_lib_prefix=no
14562   need_version=no
14563   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14564   soname_spec='${libname}${release}${major}$shared_ext'
14565   shlibpath_overrides_runpath=yes
14566   shlibpath_var=DYLD_LIBRARY_PATH
14567   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14568
14569   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14570   ;;
14571
14572 dgux*)
14573   version_type=linux # correct to gnu/linux during the next big refactor
14574   need_lib_prefix=no
14575   need_version=no
14576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14577   soname_spec='${libname}${release}${shared_ext}$major'
14578   shlibpath_var=LD_LIBRARY_PATH
14579   ;;
14580
14581 freebsd* | dragonfly*)
14582   # DragonFly does not have aout.  When/if they implement a new
14583   # versioning mechanism, adjust this.
14584   if test -x /usr/bin/objformat; then
14585     objformat=`/usr/bin/objformat`
14586   else
14587     case $host_os in
14588     freebsd[23].*) objformat=aout ;;
14589     *) objformat=elf ;;
14590     esac
14591   fi
14592   version_type=freebsd-$objformat
14593   case $version_type in
14594     freebsd-elf*)
14595       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14596       need_version=no
14597       need_lib_prefix=no
14598       ;;
14599     freebsd-*)
14600       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14601       need_version=yes
14602       ;;
14603   esac
14604   shlibpath_var=LD_LIBRARY_PATH
14605   case $host_os in
14606   freebsd2.*)
14607     shlibpath_overrides_runpath=yes
14608     ;;
14609   freebsd3.[01]* | freebsdelf3.[01]*)
14610     shlibpath_overrides_runpath=yes
14611     hardcode_into_libs=yes
14612     ;;
14613   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14614   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14615     shlibpath_overrides_runpath=no
14616     hardcode_into_libs=yes
14617     ;;
14618   *) # from 4.6 on, and DragonFly
14619     shlibpath_overrides_runpath=yes
14620     hardcode_into_libs=yes
14621     ;;
14622   esac
14623   ;;
14624
14625 haiku*)
14626   version_type=linux # correct to gnu/linux during the next big refactor
14627   need_lib_prefix=no
14628   need_version=no
14629   dynamic_linker="$host_os runtime_loader"
14630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14631   soname_spec='${libname}${release}${shared_ext}$major'
14632   shlibpath_var=LIBRARY_PATH
14633   shlibpath_overrides_runpath=yes
14634   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14635   hardcode_into_libs=yes
14636   ;;
14637
14638 hpux9* | hpux10* | hpux11*)
14639   # Give a soname corresponding to the major version so that dld.sl refuses to
14640   # link against other versions.
14641   version_type=sunos
14642   need_lib_prefix=no
14643   need_version=no
14644   case $host_cpu in
14645   ia64*)
14646     shrext_cmds='.so'
14647     hardcode_into_libs=yes
14648     dynamic_linker="$host_os dld.so"
14649     shlibpath_var=LD_LIBRARY_PATH
14650     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14651     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652     soname_spec='${libname}${release}${shared_ext}$major'
14653     if test "X$HPUX_IA64_MODE" = X32; then
14654       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14655     else
14656       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14657     fi
14658     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14659     ;;
14660   hppa*64*)
14661     shrext_cmds='.sl'
14662     hardcode_into_libs=yes
14663     dynamic_linker="$host_os dld.sl"
14664     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14665     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667     soname_spec='${libname}${release}${shared_ext}$major'
14668     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14669     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14670     ;;
14671   *)
14672     shrext_cmds='.sl'
14673     dynamic_linker="$host_os dld.sl"
14674     shlibpath_var=SHLIB_PATH
14675     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14676     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677     soname_spec='${libname}${release}${shared_ext}$major'
14678     ;;
14679   esac
14680   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14681   postinstall_cmds='chmod 555 $lib'
14682   # or fails outright, so override atomically:
14683   install_override_mode=555
14684   ;;
14685
14686 interix[3-9]*)
14687   version_type=linux # correct to gnu/linux during the next big refactor
14688   need_lib_prefix=no
14689   need_version=no
14690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14691   soname_spec='${libname}${release}${shared_ext}$major'
14692   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14693   shlibpath_var=LD_LIBRARY_PATH
14694   shlibpath_overrides_runpath=no
14695   hardcode_into_libs=yes
14696   ;;
14697
14698 irix5* | irix6* | nonstopux*)
14699   case $host_os in
14700     nonstopux*) version_type=nonstopux ;;
14701     *)
14702         if test "$lt_cv_prog_gnu_ld" = yes; then
14703                 version_type=linux # correct to gnu/linux during the next big refactor
14704         else
14705                 version_type=irix
14706         fi ;;
14707   esac
14708   need_lib_prefix=no
14709   need_version=no
14710   soname_spec='${libname}${release}${shared_ext}$major'
14711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14712   case $host_os in
14713   irix5* | nonstopux*)
14714     libsuff= shlibsuff=
14715     ;;
14716   *)
14717     case $LD in # libtool.m4 will add one of these switches to LD
14718     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14719       libsuff= shlibsuff= libmagic=32-bit;;
14720     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14721       libsuff=32 shlibsuff=N32 libmagic=N32;;
14722     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14723       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14724     *) libsuff= shlibsuff= libmagic=never-match;;
14725     esac
14726     ;;
14727   esac
14728   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14729   shlibpath_overrides_runpath=no
14730   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14731   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14732   hardcode_into_libs=yes
14733   ;;
14734
14735 # No shared lib support for Linux oldld, aout, or coff.
14736 linux*oldld* | linux*aout* | linux*coff*)
14737   dynamic_linker=no
14738   ;;
14739
14740 # This must be glibc/ELF.
14741 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14742   version_type=linux # correct to gnu/linux during the next big refactor
14743   need_lib_prefix=no
14744   need_version=no
14745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14746   soname_spec='${libname}${release}${shared_ext}$major'
14747   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14748   shlibpath_var=LD_LIBRARY_PATH
14749   shlibpath_overrides_runpath=no
14750
14751   # Some binutils ld are patched to set DT_RUNPATH
14752   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14753   $as_echo_n "(cached) " >&6
14754 else
14755   lt_cv_shlibpath_overrides_runpath=no
14756     save_LDFLAGS=$LDFLAGS
14757     save_libdir=$libdir
14758     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14759          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14760     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761 /* end confdefs.h.  */
14762
14763 int
14764 main ()
14765 {
14766
14767   ;
14768   return 0;
14769 }
14770 _ACEOF
14771 if ac_fn_cxx_try_link "$LINENO"; then :
14772   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14773   lt_cv_shlibpath_overrides_runpath=yes
14774 fi
14775 fi
14776 rm -f core conftest.err conftest.$ac_objext \
14777     conftest$ac_exeext conftest.$ac_ext
14778     LDFLAGS=$save_LDFLAGS
14779     libdir=$save_libdir
14780
14781 fi
14782
14783   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14784
14785   # This implies no fast_install, which is unacceptable.
14786   # Some rework will be needed to allow for fast_install
14787   # before this can be enabled.
14788   hardcode_into_libs=yes
14789
14790   # Append ld.so.conf contents to the search path
14791   if test -f /etc/ld.so.conf; then
14792     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' ' '`
14793     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14794   fi
14795
14796   # We used to test for /lib/ld.so.1 and disable shared libraries on
14797   # powerpc, because MkLinux only supported shared libraries with the
14798   # GNU dynamic linker.  Since this was broken with cross compilers,
14799   # most powerpc-linux boxes support dynamic linking these days and
14800   # people can always --disable-shared, the test was removed, and we
14801   # assume the GNU/Linux dynamic linker is in use.
14802   dynamic_linker='GNU/Linux ld.so'
14803   ;;
14804
14805 netbsdelf*-gnu)
14806   version_type=linux
14807   need_lib_prefix=no
14808   need_version=no
14809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14810   soname_spec='${libname}${release}${shared_ext}$major'
14811   shlibpath_var=LD_LIBRARY_PATH
14812   shlibpath_overrides_runpath=no
14813   hardcode_into_libs=yes
14814   dynamic_linker='NetBSD ld.elf_so'
14815   ;;
14816
14817 netbsd*)
14818   version_type=sunos
14819   need_lib_prefix=no
14820   need_version=no
14821   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14823     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14824     dynamic_linker='NetBSD (a.out) ld.so'
14825   else
14826     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14827     soname_spec='${libname}${release}${shared_ext}$major'
14828     dynamic_linker='NetBSD ld.elf_so'
14829   fi
14830   shlibpath_var=LD_LIBRARY_PATH
14831   shlibpath_overrides_runpath=yes
14832   hardcode_into_libs=yes
14833   ;;
14834
14835 newsos6)
14836   version_type=linux # correct to gnu/linux during the next big refactor
14837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838   shlibpath_var=LD_LIBRARY_PATH
14839   shlibpath_overrides_runpath=yes
14840   ;;
14841
14842 *nto* | *qnx*)
14843   version_type=qnx
14844   need_lib_prefix=no
14845   need_version=no
14846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847   soname_spec='${libname}${release}${shared_ext}$major'
14848   shlibpath_var=LD_LIBRARY_PATH
14849   shlibpath_overrides_runpath=no
14850   hardcode_into_libs=yes
14851   dynamic_linker='ldqnx.so'
14852   ;;
14853
14854 openbsd*)
14855   version_type=sunos
14856   sys_lib_dlsearch_path_spec="/usr/lib"
14857   need_lib_prefix=no
14858   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14859   case $host_os in
14860     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14861     *)                          need_version=no  ;;
14862   esac
14863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14864   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14865   shlibpath_var=LD_LIBRARY_PATH
14866   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14867     case $host_os in
14868       openbsd2.[89] | openbsd2.[89].*)
14869         shlibpath_overrides_runpath=no
14870         ;;
14871       *)
14872         shlibpath_overrides_runpath=yes
14873         ;;
14874       esac
14875   else
14876     shlibpath_overrides_runpath=yes
14877   fi
14878   ;;
14879
14880 os2*)
14881   libname_spec='$name'
14882   shrext_cmds=".dll"
14883   need_lib_prefix=no
14884   library_names_spec='$libname${shared_ext} $libname.a'
14885   dynamic_linker='OS/2 ld.exe'
14886   shlibpath_var=LIBPATH
14887   ;;
14888
14889 osf3* | osf4* | osf5*)
14890   version_type=osf
14891   need_lib_prefix=no
14892   need_version=no
14893   soname_spec='${libname}${release}${shared_ext}$major'
14894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895   shlibpath_var=LD_LIBRARY_PATH
14896   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14897   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14898   ;;
14899
14900 rdos*)
14901   dynamic_linker=no
14902   ;;
14903
14904 solaris*)
14905   version_type=linux # correct to gnu/linux during the next big refactor
14906   need_lib_prefix=no
14907   need_version=no
14908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909   soname_spec='${libname}${release}${shared_ext}$major'
14910   shlibpath_var=LD_LIBRARY_PATH
14911   shlibpath_overrides_runpath=yes
14912   hardcode_into_libs=yes
14913   # ldd complains unless libraries are executable
14914   postinstall_cmds='chmod +x $lib'
14915   ;;
14916
14917 sunos4*)
14918   version_type=sunos
14919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14920   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14921   shlibpath_var=LD_LIBRARY_PATH
14922   shlibpath_overrides_runpath=yes
14923   if test "$with_gnu_ld" = yes; then
14924     need_lib_prefix=no
14925   fi
14926   need_version=yes
14927   ;;
14928
14929 sysv4 | sysv4.3*)
14930   version_type=linux # correct to gnu/linux during the next big refactor
14931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932   soname_spec='${libname}${release}${shared_ext}$major'
14933   shlibpath_var=LD_LIBRARY_PATH
14934   case $host_vendor in
14935     sni)
14936       shlibpath_overrides_runpath=no
14937       need_lib_prefix=no
14938       runpath_var=LD_RUN_PATH
14939       ;;
14940     siemens)
14941       need_lib_prefix=no
14942       ;;
14943     motorola)
14944       need_lib_prefix=no
14945       need_version=no
14946       shlibpath_overrides_runpath=no
14947       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14948       ;;
14949   esac
14950   ;;
14951
14952 sysv4*MP*)
14953   if test -d /usr/nec ;then
14954     version_type=linux # correct to gnu/linux during the next big refactor
14955     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14956     soname_spec='$libname${shared_ext}.$major'
14957     shlibpath_var=LD_LIBRARY_PATH
14958   fi
14959   ;;
14960
14961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14962   version_type=freebsd-elf
14963   need_lib_prefix=no
14964   need_version=no
14965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14966   soname_spec='${libname}${release}${shared_ext}$major'
14967   shlibpath_var=LD_LIBRARY_PATH
14968   shlibpath_overrides_runpath=yes
14969   hardcode_into_libs=yes
14970   if test "$with_gnu_ld" = yes; then
14971     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14972   else
14973     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14974     case $host_os in
14975       sco3.2v5*)
14976         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14977         ;;
14978     esac
14979   fi
14980   sys_lib_dlsearch_path_spec='/usr/lib'
14981   ;;
14982
14983 tpf*)
14984   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14985   version_type=linux # correct to gnu/linux during the next big refactor
14986   need_lib_prefix=no
14987   need_version=no
14988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989   shlibpath_var=LD_LIBRARY_PATH
14990   shlibpath_overrides_runpath=no
14991   hardcode_into_libs=yes
14992   ;;
14993
14994 uts4*)
14995   version_type=linux # correct to gnu/linux during the next big refactor
14996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997   soname_spec='${libname}${release}${shared_ext}$major'
14998   shlibpath_var=LD_LIBRARY_PATH
14999   ;;
15000
15001 *)
15002   dynamic_linker=no
15003   ;;
15004 esac
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15006 $as_echo "$dynamic_linker" >&6; }
15007 test "$dynamic_linker" = no && can_build_shared=no
15008
15009 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15010 if test "$GCC" = yes; then
15011   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15012 fi
15013
15014 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15015   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15016 fi
15017 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15018   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15019 fi
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15059 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15060 hardcode_action_CXX=
15061 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15062    test -n "$runpath_var_CXX" ||
15063    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15064
15065   # We can hardcode non-existent directories.
15066   if test "$hardcode_direct_CXX" != no &&
15067      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15068      # have to relink, otherwise we might link with an installed library
15069      # when we should be linking with a yet-to-be-installed one
15070      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15071      test "$hardcode_minus_L_CXX" != no; then
15072     # Linking always hardcodes the temporary library directory.
15073     hardcode_action_CXX=relink
15074   else
15075     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15076     hardcode_action_CXX=immediate
15077   fi
15078 else
15079   # We cannot hardcode anything, or else we can only hardcode existing
15080   # directories.
15081   hardcode_action_CXX=unsupported
15082 fi
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15084 $as_echo "$hardcode_action_CXX" >&6; }
15085
15086 if test "$hardcode_action_CXX" = relink ||
15087    test "$inherit_rpath_CXX" = yes; then
15088   # Fast installation is not supported
15089   enable_fast_install=no
15090 elif test "$shlibpath_overrides_runpath" = yes ||
15091      test "$enable_shared" = no; then
15092   # Fast installation is not necessary
15093   enable_fast_install=needless
15094 fi
15095
15096
15097
15098
15099
15100
15101
15102   fi # test -n "$compiler"
15103
15104   CC=$lt_save_CC
15105   CFLAGS=$lt_save_CFLAGS
15106   LDCXX=$LD
15107   LD=$lt_save_LD
15108   GCC=$lt_save_GCC
15109   with_gnu_ld=$lt_save_with_gnu_ld
15110   lt_cv_path_LDCXX=$lt_cv_path_LD
15111   lt_cv_path_LD=$lt_save_path_LD
15112   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15113   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15114 fi # test "$_lt_caught_CXX_error" != yes
15115
15116 ac_ext=c
15117 ac_cpp='$CPP $CPPFLAGS'
15118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15121
15122
15123 # Find a good install program.  We prefer a C program (faster),
15124 # so one script is as good as another.  But avoid the broken or
15125 # incompatible versions:
15126 # SysV /etc/install, /usr/sbin/install
15127 # SunOS /usr/etc/install
15128 # IRIX /sbin/install
15129 # AIX /bin/install
15130 # AmigaOS /C/install, which installs bootblocks on floppy discs
15131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15134 # OS/2's system install, which has a completely different semantic
15135 # ./install, which can be erroneously created by make from ./install.sh.
15136 # Reject install programs that cannot install multiple files.
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15138 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15139 if test -z "$INSTALL"; then
15140 if ${ac_cv_path_install+:} false; then :
15141   $as_echo_n "(cached) " >&6
15142 else
15143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15144 for as_dir in $PATH
15145 do
15146   IFS=$as_save_IFS
15147   test -z "$as_dir" && as_dir=.
15148     # Account for people who put trailing slashes in PATH elements.
15149 case $as_dir/ in #((
15150   ./ | .// | /[cC]/* | \
15151   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15152   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15153   /usr/ucb/* ) ;;
15154   *)
15155     # OSF1 and SCO ODT 3.0 have their own names for install.
15156     # Don't use installbsd from OSF since it installs stuff as root
15157     # by default.
15158     for ac_prog in ginstall scoinst install; do
15159       for ac_exec_ext in '' $ac_executable_extensions; do
15160         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15161           if test $ac_prog = install &&
15162             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15163             # AIX install.  It has an incompatible calling convention.
15164             :
15165           elif test $ac_prog = install &&
15166             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15167             # program-specific install script used by HP pwplus--don't use.
15168             :
15169           else
15170             rm -rf conftest.one conftest.two conftest.dir
15171             echo one > conftest.one
15172             echo two > conftest.two
15173             mkdir conftest.dir
15174             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15175               test -s conftest.one && test -s conftest.two &&
15176               test -s conftest.dir/conftest.one &&
15177               test -s conftest.dir/conftest.two
15178             then
15179               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15180               break 3
15181             fi
15182           fi
15183         fi
15184       done
15185     done
15186     ;;
15187 esac
15188
15189   done
15190 IFS=$as_save_IFS
15191
15192 rm -rf conftest.one conftest.two conftest.dir
15193
15194 fi
15195   if test "${ac_cv_path_install+set}" = set; then
15196     INSTALL=$ac_cv_path_install
15197   else
15198     # As a last resort, use the slow shell script.  Don't cache a
15199     # value for INSTALL within a source directory, because that will
15200     # break other packages using the cache if that directory is
15201     # removed, or if the value is a relative name.
15202     INSTALL=$ac_install_sh
15203   fi
15204 fi
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15206 $as_echo "$INSTALL" >&6; }
15207
15208 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15209 # It thinks the first close brace ends the variable substitution.
15210 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15211
15212 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15213
15214 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15215
15216
15217 if test "$GCC" = yes ; then
15218                         OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
15219     CFLAGS="$OLDCFLAGS -fexceptions"
15220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
15221 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
15222     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h.  */
15224
15225 int
15226 main ()
15227 {
15228
15229   ;
15230   return 0;
15231 }
15232 _ACEOF
15233 if ac_fn_c_try_link "$LINENO"; then :
15234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15235 $as_echo "yes" >&6; }
15236 else
15237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15238 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
15239 fi
15240 rm -f core conftest.err conftest.$ac_objext \
15241     conftest$ac_exeext conftest.$ac_ext
15242     CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
15243 fi
15244
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15246 $as_echo_n "checking for ANSI C header files... " >&6; }
15247 if ${ac_cv_header_stdc+:} false; then :
15248   $as_echo_n "(cached) " >&6
15249 else
15250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h.  */
15252 #include <stdlib.h>
15253 #include <stdarg.h>
15254 #include <string.h>
15255 #include <float.h>
15256
15257 int
15258 main ()
15259 {
15260
15261   ;
15262   return 0;
15263 }
15264 _ACEOF
15265 if ac_fn_c_try_compile "$LINENO"; then :
15266   ac_cv_header_stdc=yes
15267 else
15268   ac_cv_header_stdc=no
15269 fi
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271
15272 if test $ac_cv_header_stdc = yes; then
15273   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h.  */
15276 #include <string.h>
15277
15278 _ACEOF
15279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15280   $EGREP "memchr" >/dev/null 2>&1; then :
15281
15282 else
15283   ac_cv_header_stdc=no
15284 fi
15285 rm -f conftest*
15286
15287 fi
15288
15289 if test $ac_cv_header_stdc = yes; then
15290   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h.  */
15293 #include <stdlib.h>
15294
15295 _ACEOF
15296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15297   $EGREP "free" >/dev/null 2>&1; then :
15298
15299 else
15300   ac_cv_header_stdc=no
15301 fi
15302 rm -f conftest*
15303
15304 fi
15305
15306 if test $ac_cv_header_stdc = yes; then
15307   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15308   if test "$cross_compiling" = yes; then :
15309   :
15310 else
15311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h.  */
15313 #include <ctype.h>
15314 #include <stdlib.h>
15315 #if ((' ' & 0x0FF) == 0x020)
15316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15318 #else
15319 # define ISLOWER(c) \
15320                    (('a' <= (c) && (c) <= 'i') \
15321                      || ('j' <= (c) && (c) <= 'r') \
15322                      || ('s' <= (c) && (c) <= 'z'))
15323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15324 #endif
15325
15326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15327 int
15328 main ()
15329 {
15330   int i;
15331   for (i = 0; i < 256; i++)
15332     if (XOR (islower (i), ISLOWER (i))
15333         || toupper (i) != TOUPPER (i))
15334       return 2;
15335   return 0;
15336 }
15337 _ACEOF
15338 if ac_fn_c_try_run "$LINENO"; then :
15339
15340 else
15341   ac_cv_header_stdc=no
15342 fi
15343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15344   conftest.$ac_objext conftest.beam conftest.$ac_ext
15345 fi
15346
15347 fi
15348 fi
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15350 $as_echo "$ac_cv_header_stdc" >&6; }
15351 if test $ac_cv_header_stdc = yes; then
15352
15353 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15354
15355 fi
15356
15357
15358
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15360 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15361 if ${ac_cv_c_bigendian+:} false; then :
15362   $as_echo_n "(cached) " >&6
15363 else
15364   ac_cv_c_bigendian=unknown
15365 # See if sys/param.h defines the BYTE_ORDER macro.
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h.  */
15368 #include <sys/types.h>
15369 #include <sys/param.h>
15370 int
15371 main ()
15372 {
15373
15374 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15375  bogus endian macros
15376 #endif
15377   ;
15378   return 0;
15379 }
15380 _ACEOF
15381 if ac_fn_c_try_compile "$LINENO"; then :
15382   # It does; now see whether it defined to BIG_ENDIAN or not.
15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h.  */
15385 #include <sys/types.h>
15386 #include <sys/param.h>
15387 int
15388 main ()
15389 {
15390
15391 #if BYTE_ORDER != BIG_ENDIAN
15392  not big endian
15393 #endif
15394   ;
15395   return 0;
15396 }
15397 _ACEOF
15398 if ac_fn_c_try_compile "$LINENO"; then :
15399   ac_cv_c_bigendian=yes
15400 else
15401   ac_cv_c_bigendian=no
15402 fi
15403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15404 fi
15405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 if test $ac_cv_c_bigendian = unknown; then
15407 if test "$cross_compiling" = yes; then :
15408    echo $ac_n "cross-compiling... " 2>&6
15409 else
15410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h.  */
15412 main () {
15413   /* Are we little or big endian?  From Harbison&Steele.  */
15414   union
15415   {
15416     long l;
15417     char c[sizeof (long)];
15418   } u;
15419   u.l = 1;
15420   exit (u.c[sizeof (long) - 1] == 1);
15421 }
15422 _ACEOF
15423 if ac_fn_c_try_run "$LINENO"; then :
15424   ac_cv_c_bigendian=no
15425 else
15426   ac_cv_c_bigendian=yes
15427 fi
15428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15429   conftest.$ac_objext conftest.beam conftest.$ac_ext
15430 fi
15431
15432 fi
15433 fi
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15435 $as_echo "$ac_cv_c_bigendian" >&6; }
15436 if test $ac_cv_c_bigendian = unknown; then
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
15438 $as_echo_n "checking to probe for byte ordering... " >&6; }
15439
15440 cat >conftest.c <<EOF
15441 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15442 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15443 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
15444 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15445 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15446 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
15447 int main() { _ascii (); _ebcdic (); return 0; }
15448 EOF
15449  if test -f conftest.c ; then
15450      if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
15451         if test `grep -l BIGenDianSyS conftest.o` ; then
15452            echo $ac_n ' big endian probe OK, ' 1>&6
15453            ac_cv_c_bigendian=yes
15454         fi
15455         if test `grep -l LiTTleEnDian conftest.o` ; then
15456            echo $ac_n ' little endian probe OK, ' 1>&6
15457            if test $ac_cv_c_bigendian = yes ; then
15458             ac_cv_c_bigendian=unknown;
15459            else
15460             ac_cv_c_bigendian=no
15461            fi
15462         fi
15463         echo $ac_n 'guessing bigendian ...  ' >&6
15464      fi
15465   fi
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15467 $as_echo "$ac_cv_c_bigendian" >&6; }
15468 fi
15469 if test $ac_cv_c_bigendian = yes; then
15470
15471 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15472
15473   BYTEORDER=4321
15474 else
15475   BYTEORDER=1234
15476 fi
15477
15478 cat >>confdefs.h <<_ACEOF
15479 #define BYTEORDER $BYTEORDER
15480 _ACEOF
15481
15482 if test $ac_cv_c_bigendian = unknown; then
15483   as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
15484 fi
15485
15486
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15488 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15489 if ${ac_cv_c_const+:} false; then :
15490   $as_echo_n "(cached) " >&6
15491 else
15492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h.  */
15494
15495 int
15496 main ()
15497 {
15498
15499 #ifndef __cplusplus
15500   /* Ultrix mips cc rejects this sort of thing.  */
15501   typedef int charset[2];
15502   const charset cs = { 0, 0 };
15503   /* SunOS 4.1.1 cc rejects this.  */
15504   char const *const *pcpcc;
15505   char **ppc;
15506   /* NEC SVR4.0.2 mips cc rejects this.  */
15507   struct point {int x, y;};
15508   static struct point const zero = {0,0};
15509   /* AIX XL C 1.02.0.0 rejects this.
15510      It does not let you subtract one const X* pointer from another in
15511      an arm of an if-expression whose if-part is not a constant
15512      expression */
15513   const char *g = "string";
15514   pcpcc = &g + (g ? g-g : 0);
15515   /* HPUX 7.0 cc rejects these. */
15516   ++pcpcc;
15517   ppc = (char**) pcpcc;
15518   pcpcc = (char const *const *) ppc;
15519   { /* SCO 3.2v4 cc rejects this sort of thing.  */
15520     char tx;
15521     char *t = &tx;
15522     char const *s = 0 ? (char *) 0 : (char const *) 0;
15523
15524     *t++ = 0;
15525     if (s) return 0;
15526   }
15527   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15528     int x[] = {25, 17};
15529     const int *foo = &x[0];
15530     ++foo;
15531   }
15532   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15533     typedef const int *iptr;
15534     iptr p = 0;
15535     ++p;
15536   }
15537   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15538        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15539     struct s { int j; const int *ap[3]; } bx;
15540     struct s *b = &bx; b->j = 5;
15541   }
15542   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15543     const int foo = 10;
15544     if (!foo) return 0;
15545   }
15546   return !cs[0] && !zero.x;
15547 #endif
15548
15549   ;
15550   return 0;
15551 }
15552 _ACEOF
15553 if ac_fn_c_try_compile "$LINENO"; then :
15554   ac_cv_c_const=yes
15555 else
15556   ac_cv_c_const=no
15557 fi
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559 fi
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15561 $as_echo "$ac_cv_c_const" >&6; }
15562 if test $ac_cv_c_const = no; then
15563
15564 $as_echo "#define const /**/" >>confdefs.h
15565
15566 fi
15567
15568 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15569 if test "x$ac_cv_type_size_t" = xyes; then :
15570
15571 else
15572
15573 cat >>confdefs.h <<_ACEOF
15574 #define size_t unsigned int
15575 _ACEOF
15576
15577 fi
15578
15579 for ac_func in memmove bcopy
15580 do :
15581   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15584   cat >>confdefs.h <<_ACEOF
15585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15586 _ACEOF
15587
15588 fi
15589 done
15590
15591
15592 for ac_header in fcntl.h unistd.h
15593 do :
15594   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15595 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15596 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15597   cat >>confdefs.h <<_ACEOF
15598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15599 _ACEOF
15600
15601 fi
15602
15603 done
15604
15605 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15606 if test "x$ac_cv_type_off_t" = xyes; then :
15607
15608 else
15609
15610 cat >>confdefs.h <<_ACEOF
15611 #define off_t long int
15612 _ACEOF
15613
15614 fi
15615
15616
15617
15618
15619   for ac_header in $ac_header_list
15620 do :
15621   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15622 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15623 "
15624 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15625   cat >>confdefs.h <<_ACEOF
15626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15627 _ACEOF
15628
15629 fi
15630
15631 done
15632
15633
15634
15635
15636
15637
15638
15639
15640 for ac_func in getpagesize
15641 do :
15642   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15643 if test "x$ac_cv_func_getpagesize" = xyes; then :
15644   cat >>confdefs.h <<_ACEOF
15645 #define HAVE_GETPAGESIZE 1
15646 _ACEOF
15647
15648 fi
15649 done
15650
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15652 $as_echo_n "checking for working mmap... " >&6; }
15653 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15654   $as_echo_n "(cached) " >&6
15655 else
15656   if test "$cross_compiling" = yes; then :
15657   ac_cv_func_mmap_fixed_mapped=no
15658 else
15659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h.  */
15661 $ac_includes_default
15662 /* malloc might have been renamed as rpl_malloc. */
15663 #undef malloc
15664
15665 /* Thanks to Mike Haertel and Jim Avera for this test.
15666    Here is a matrix of mmap possibilities:
15667         mmap private not fixed
15668         mmap private fixed at somewhere currently unmapped
15669         mmap private fixed at somewhere already mapped
15670         mmap shared not fixed
15671         mmap shared fixed at somewhere currently unmapped
15672         mmap shared fixed at somewhere already mapped
15673    For private mappings, we should verify that changes cannot be read()
15674    back from the file, nor mmap's back from the file at a different
15675    address.  (There have been systems where private was not correctly
15676    implemented like the infamous i386 svr4.0, and systems where the
15677    VM page cache was not coherent with the file system buffer cache
15678    like early versions of FreeBSD and possibly contemporary NetBSD.)
15679    For shared mappings, we should conversely verify that changes get
15680    propagated back to all the places they're supposed to be.
15681
15682    Grep wants private fixed already mapped.
15683    The main things grep needs to know about mmap are:
15684    * does it exist and is it safe to write into the mmap'd area
15685    * how to use it (BSD variants)  */
15686
15687 #include <fcntl.h>
15688 #include <sys/mman.h>
15689
15690 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15691 char *malloc ();
15692 #endif
15693
15694 /* This mess was copied from the GNU getpagesize.h.  */
15695 #ifndef HAVE_GETPAGESIZE
15696 # ifdef _SC_PAGESIZE
15697 #  define getpagesize() sysconf(_SC_PAGESIZE)
15698 # else /* no _SC_PAGESIZE */
15699 #  ifdef HAVE_SYS_PARAM_H
15700 #   include <sys/param.h>
15701 #   ifdef EXEC_PAGESIZE
15702 #    define getpagesize() EXEC_PAGESIZE
15703 #   else /* no EXEC_PAGESIZE */
15704 #    ifdef NBPG
15705 #     define getpagesize() NBPG * CLSIZE
15706 #     ifndef CLSIZE
15707 #      define CLSIZE 1
15708 #     endif /* no CLSIZE */
15709 #    else /* no NBPG */
15710 #     ifdef NBPC
15711 #      define getpagesize() NBPC
15712 #     else /* no NBPC */
15713 #      ifdef PAGESIZE
15714 #       define getpagesize() PAGESIZE
15715 #      endif /* PAGESIZE */
15716 #     endif /* no NBPC */
15717 #    endif /* no NBPG */
15718 #   endif /* no EXEC_PAGESIZE */
15719 #  else /* no HAVE_SYS_PARAM_H */
15720 #   define getpagesize() 8192   /* punt totally */
15721 #  endif /* no HAVE_SYS_PARAM_H */
15722 # endif /* no _SC_PAGESIZE */
15723
15724 #endif /* no HAVE_GETPAGESIZE */
15725
15726 int
15727 main ()
15728 {
15729   char *data, *data2, *data3;
15730   const char *cdata2;
15731   int i, pagesize;
15732   int fd, fd2;
15733
15734   pagesize = getpagesize ();
15735
15736   /* First, make a file with some known garbage in it. */
15737   data = (char *) malloc (pagesize);
15738   if (!data)
15739     return 1;
15740   for (i = 0; i < pagesize; ++i)
15741     *(data + i) = rand ();
15742   umask (0);
15743   fd = creat ("conftest.mmap", 0600);
15744   if (fd < 0)
15745     return 2;
15746   if (write (fd, data, pagesize) != pagesize)
15747     return 3;
15748   close (fd);
15749
15750   /* Next, check that the tail of a page is zero-filled.  File must have
15751      non-zero length, otherwise we risk SIGBUS for entire page.  */
15752   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15753   if (fd2 < 0)
15754     return 4;
15755   cdata2 = "";
15756   if (write (fd2, cdata2, 1) != 1)
15757     return 5;
15758   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15759   if (data2 == MAP_FAILED)
15760     return 6;
15761   for (i = 0; i < pagesize; ++i)
15762     if (*(data2 + i))
15763       return 7;
15764   close (fd2);
15765   if (munmap (data2, pagesize))
15766     return 8;
15767
15768   /* Next, try to mmap the file at a fixed address which already has
15769      something else allocated at it.  If we can, also make sure that
15770      we see the same garbage.  */
15771   fd = open ("conftest.mmap", O_RDWR);
15772   if (fd < 0)
15773     return 9;
15774   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15775                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15776     return 10;
15777   for (i = 0; i < pagesize; ++i)
15778     if (*(data + i) != *(data2 + i))
15779       return 11;
15780
15781   /* Finally, make sure that changes to the mapped area do not
15782      percolate back to the file as seen by read().  (This is a bug on
15783      some variants of i386 svr4.0.)  */
15784   for (i = 0; i < pagesize; ++i)
15785     *(data2 + i) = *(data2 + i) + 1;
15786   data3 = (char *) malloc (pagesize);
15787   if (!data3)
15788     return 12;
15789   if (read (fd, data3, pagesize) != pagesize)
15790     return 13;
15791   for (i = 0; i < pagesize; ++i)
15792     if (*(data + i) != *(data3 + i))
15793       return 14;
15794   close (fd);
15795   return 0;
15796 }
15797 _ACEOF
15798 if ac_fn_c_try_run "$LINENO"; then :
15799   ac_cv_func_mmap_fixed_mapped=yes
15800 else
15801   ac_cv_func_mmap_fixed_mapped=no
15802 fi
15803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15804   conftest.$ac_objext conftest.beam conftest.$ac_ext
15805 fi
15806
15807 fi
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15809 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15810 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15811
15812 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15813
15814 fi
15815 rm -f conftest.mmap conftest.txt
15816
15817
15818 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
15819     FILEMAP=unixfilemap
15820 else
15821     FILEMAP=readfilemap
15822 fi
15823
15824
15825
15826 # AC_CPP_FUNC
15827 # ------------------ #
15828 # Checks to see if ANSI C99 CPP variable __func__ works.
15829 # If not, perhaps __FUNCTION__ works instead.
15830 # If not, we'll just define __func__ to "".
15831 # AC_CPP_FUNC
15832
15833    case $ac_cv_prog_cc_stdc in #(
15834   no) :
15835     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
15836   *) :
15837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
15838 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
15839 if ${ac_cv_prog_cc_c99+:} false; then :
15840   $as_echo_n "(cached) " >&6
15841 else
15842   ac_cv_prog_cc_c99=no
15843 ac_save_CC=$CC
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h.  */
15846 #include <stdarg.h>
15847 #include <stdbool.h>
15848 #include <stdlib.h>
15849 #include <wchar.h>
15850 #include <stdio.h>
15851
15852 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
15853 #define debug(...) fprintf (stderr, __VA_ARGS__)
15854 #define showlist(...) puts (#__VA_ARGS__)
15855 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
15856 static void
15857 test_varargs_macros (void)
15858 {
15859   int x = 1234;
15860   int y = 5678;
15861   debug ("Flag");
15862   debug ("X = %d\n", x);
15863   showlist (The first, second, and third items.);
15864   report (x>y, "x is %d but y is %d", x, y);
15865 }
15866
15867 // Check long long types.
15868 #define BIG64 18446744073709551615ull
15869 #define BIG32 4294967295ul
15870 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
15871 #if !BIG_OK
15872   your preprocessor is broken;
15873 #endif
15874 #if BIG_OK
15875 #else
15876   your preprocessor is broken;
15877 #endif
15878 static long long int bignum = -9223372036854775807LL;
15879 static unsigned long long int ubignum = BIG64;
15880
15881 struct incomplete_array
15882 {
15883   int datasize;
15884   double data[];
15885 };
15886
15887 struct named_init {
15888   int number;
15889   const wchar_t *name;
15890   double average;
15891 };
15892
15893 typedef const char *ccp;
15894
15895 static inline int
15896 test_restrict (ccp restrict text)
15897 {
15898   // See if C++-style comments work.
15899   // Iterate through items via the restricted pointer.
15900   // Also check for declarations in for loops.
15901   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
15902     continue;
15903   return 0;
15904 }
15905
15906 // Check varargs and va_copy.
15907 static void
15908 test_varargs (const char *format, ...)
15909 {
15910   va_list args;
15911   va_start (args, format);
15912   va_list args_copy;
15913   va_copy (args_copy, args);
15914
15915   const char *str;
15916   int number;
15917   float fnumber;
15918
15919   while (*format)
15920     {
15921       switch (*format++)
15922         {
15923         case 's': // string
15924           str = va_arg (args_copy, const char *);
15925           break;
15926         case 'd': // int
15927           number = va_arg (args_copy, int);
15928           break;
15929         case 'f': // float
15930           fnumber = va_arg (args_copy, double);
15931           break;
15932         default:
15933           break;
15934         }
15935     }
15936   va_end (args_copy);
15937   va_end (args);
15938 }
15939
15940 int
15941 main ()
15942 {
15943
15944   // Check bool.
15945   _Bool success = false;
15946
15947   // Check restrict.
15948   if (test_restrict ("String literal") == 0)
15949     success = true;
15950   char *restrict newvar = "Another string";
15951
15952   // Check varargs.
15953   test_varargs ("s, d' f .", "string", 65, 34.234);
15954   test_varargs_macros ();
15955
15956   // Check flexible array members.
15957   struct incomplete_array *ia =
15958     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
15959   ia->datasize = 10;
15960   for (int i = 0; i < ia->datasize; ++i)
15961     ia->data[i] = i * 1.234;
15962
15963   // Check named initializers.
15964   struct named_init ni = {
15965     .number = 34,
15966     .name = L"Test wide string",
15967     .average = 543.34343,
15968   };
15969
15970   ni.number = 58;
15971
15972   int dynamic_array[ni.number];
15973   dynamic_array[ni.number - 1] = 543;
15974
15975   // work around unused variable warnings
15976   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
15977           || dynamic_array[ni.number - 1] != 543);
15978
15979   ;
15980   return 0;
15981 }
15982 _ACEOF
15983 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
15984 do
15985   CC="$ac_save_CC $ac_arg"
15986   if ac_fn_c_try_compile "$LINENO"; then :
15987   ac_cv_prog_cc_c99=$ac_arg
15988 fi
15989 rm -f core conftest.err conftest.$ac_objext
15990   test "x$ac_cv_prog_cc_c99" != "xno" && break
15991 done
15992 rm -f conftest.$ac_ext
15993 CC=$ac_save_CC
15994
15995 fi
15996 # AC_CACHE_VAL
15997 case "x$ac_cv_prog_cc_c99" in
15998   x)
15999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16000 $as_echo "none needed" >&6; } ;;
16001   xno)
16002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16003 $as_echo "unsupported" >&6; } ;;
16004   *)
16005     CC="$CC $ac_cv_prog_cc_c99"
16006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
16007 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16008 esac
16009 if test "x$ac_cv_prog_cc_c99" != xno; then :
16010   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
16011 else
16012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16013 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16014 if ${ac_cv_prog_cc_c89+:} false; then :
16015   $as_echo_n "(cached) " >&6
16016 else
16017   ac_cv_prog_cc_c89=no
16018 ac_save_CC=$CC
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 /* end confdefs.h.  */
16021 #include <stdarg.h>
16022 #include <stdio.h>
16023 struct stat;
16024 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16025 struct buf { int x; };
16026 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16027 static char *e (p, i)
16028      char **p;
16029      int i;
16030 {
16031   return p[i];
16032 }
16033 static char *f (char * (*g) (char **, int), char **p, ...)
16034 {
16035   char *s;
16036   va_list v;
16037   va_start (v,p);
16038   s = g (p, va_arg (v,int));
16039   va_end (v);
16040   return s;
16041 }
16042
16043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16044    function prototypes and stuff, but not '\xHH' hex character constants.
16045    These don't provoke an error unfortunately, instead are silently treated
16046    as 'x'.  The following induces an error, until -std is added to get
16047    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16048    array size at least.  It's necessary to write '\x00'==0 to get something
16049    that's true only with -std.  */
16050 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16051
16052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16053    inside strings and character constants.  */
16054 #define FOO(x) 'x'
16055 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16056
16057 int test (int i, double x);
16058 struct s1 {int (*f) (int a);};
16059 struct s2 {int (*f) (double a);};
16060 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16061 int argc;
16062 char **argv;
16063 int
16064 main ()
16065 {
16066 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16072         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16073 do
16074   CC="$ac_save_CC $ac_arg"
16075   if ac_fn_c_try_compile "$LINENO"; then :
16076   ac_cv_prog_cc_c89=$ac_arg
16077 fi
16078 rm -f core conftest.err conftest.$ac_objext
16079   test "x$ac_cv_prog_cc_c89" != "xno" && break
16080 done
16081 rm -f conftest.$ac_ext
16082 CC=$ac_save_CC
16083
16084 fi
16085 # AC_CACHE_VAL
16086 case "x$ac_cv_prog_cc_c89" in
16087   x)
16088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16089 $as_echo "none needed" >&6; } ;;
16090   xno)
16091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16092 $as_echo "unsupported" >&6; } ;;
16093   *)
16094     CC="$CC $ac_cv_prog_cc_c89"
16095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16096 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16097 esac
16098 if test "x$ac_cv_prog_cc_c89" != xno; then :
16099   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
16100 else
16101   ac_cv_prog_cc_stdc=no
16102 fi
16103
16104 fi
16105  ;;
16106 esac
16107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
16108 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
16109   if ${ac_cv_prog_cc_stdc+:} false; then :
16110   $as_echo_n "(cached) " >&6
16111 fi
16112
16113   case $ac_cv_prog_cc_stdc in #(
16114   no) :
16115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16116 $as_echo "unsupported" >&6; } ;; #(
16117   '') :
16118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16119 $as_echo "none needed" >&6; } ;; #(
16120   *) :
16121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
16122 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
16123 esac
16124
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
16126 $as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
16127 if ${ac_cv_cpp_func+:} false; then :
16128   $as_echo_n "(cached) " >&6
16129 else
16130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h.  */
16132
16133 int
16134 main ()
16135 {
16136 char *foo = __func__;
16137   ;
16138   return 0;
16139 }
16140 _ACEOF
16141 if ac_fn_c_try_compile "$LINENO"; then :
16142   ac_cv_cpp_func=yes
16143 else
16144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h.  */
16146
16147 int
16148 main ()
16149 {
16150 char *foo = __FUNCTION__;
16151   ;
16152   return 0;
16153 }
16154 _ACEOF
16155 if ac_fn_c_try_compile "$LINENO"; then :
16156   ac_cv_cpp_func=__FUNCTION__
16157 else
16158   ac_cv_cpp_func=no
16159 fi
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 fi
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 fi
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
16165 $as_echo "$ac_cv_cpp_func" >&6; }
16166 if test $ac_cv_cpp_func = __FUNCTION__; then
16167
16168 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
16169
16170 elif test $ac_cv_cpp_func = no; then
16171
16172 $as_echo "#define __func__ \"\"" >>confdefs.h
16173
16174 fi
16175
16176
16177
16178
16179 $as_echo "#define XML_NS 1" >>confdefs.h
16180
16181
16182 $as_echo "#define XML_DTD 1" >>confdefs.h
16183
16184
16185 $as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h
16186
16187
16188 ac_config_files="$ac_config_files Makefile expat.pc"
16189
16190 cat >confcache <<\_ACEOF
16191 # This file is a shell script that caches the results of configure
16192 # tests run on this system so they can be shared between configure
16193 # scripts and configure runs, see configure's option --config-cache.
16194 # It is not useful on other systems.  If it contains results you don't
16195 # want to keep, you may remove or edit it.
16196 #
16197 # config.status only pays attention to the cache file if you give it
16198 # the --recheck option to rerun configure.
16199 #
16200 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16201 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16202 # following values.
16203
16204 _ACEOF
16205
16206 # The following way of writing the cache mishandles newlines in values,
16207 # but we know of no workaround that is simple, portable, and efficient.
16208 # So, we kill variables containing newlines.
16209 # Ultrix sh set writes to stderr and can't be redirected directly,
16210 # and sets the high bit in the cache file unless we assign to the vars.
16211 (
16212   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16213     eval ac_val=\$$ac_var
16214     case $ac_val in #(
16215     *${as_nl}*)
16216       case $ac_var in #(
16217       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16218 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16219       esac
16220       case $ac_var in #(
16221       _ | IFS | as_nl) ;; #(
16222       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16223       *) { eval $ac_var=; unset $ac_var;} ;;
16224       esac ;;
16225     esac
16226   done
16227
16228   (set) 2>&1 |
16229     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16230     *${as_nl}ac_space=\ *)
16231       # `set' does not quote correctly, so add quotes: double-quote
16232       # substitution turns \\\\ into \\, and sed turns \\ into \.
16233       sed -n \
16234         "s/'/'\\\\''/g;
16235           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16236       ;; #(
16237     *)
16238       # `set' quotes correctly as required by POSIX, so do not add quotes.
16239       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16240       ;;
16241     esac |
16242     sort
16243 ) |
16244   sed '
16245      /^ac_cv_env_/b end
16246      t clear
16247      :clear
16248      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16249      t end
16250      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16251      :end' >>confcache
16252 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16253   if test -w "$cache_file"; then
16254     if test "x$cache_file" != "x/dev/null"; then
16255       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16256 $as_echo "$as_me: updating cache $cache_file" >&6;}
16257       if test ! -f "$cache_file" || test -h "$cache_file"; then
16258         cat confcache >"$cache_file"
16259       else
16260         case $cache_file in #(
16261         */* | ?:*)
16262           mv -f confcache "$cache_file"$$ &&
16263           mv -f "$cache_file"$$ "$cache_file" ;; #(
16264         *)
16265           mv -f confcache "$cache_file" ;;
16266         esac
16267       fi
16268     fi
16269   else
16270     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16271 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16272   fi
16273 fi
16274 rm -f confcache
16275
16276 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16277 # Let make expand exec_prefix.
16278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16279
16280 DEFS=-DHAVE_CONFIG_H
16281
16282 ac_libobjs=
16283 ac_ltlibobjs=
16284 U=
16285 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16286   # 1. Remove the extension, and $U if already installed.
16287   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16288   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16289   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16290   #    will be set to the directory where LIBOBJS objects are built.
16291   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16292   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16293 done
16294 LIBOBJS=$ac_libobjs
16295
16296 LTLIBOBJS=$ac_ltlibobjs
16297
16298
16299
16300 : "${CONFIG_STATUS=./config.status}"
16301 ac_write_fail=0
16302 ac_clean_files_save=$ac_clean_files
16303 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16305 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16306 as_write_fail=0
16307 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16308 #! $SHELL
16309 # Generated by $as_me.
16310 # Run this file to recreate the current configuration.
16311 # Compiler output produced by configure, useful for debugging
16312 # configure, is in config.log if it exists.
16313
16314 debug=false
16315 ac_cs_recheck=false
16316 ac_cs_silent=false
16317
16318 SHELL=\${CONFIG_SHELL-$SHELL}
16319 export SHELL
16320 _ASEOF
16321 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16322 ## -------------------- ##
16323 ## M4sh Initialization. ##
16324 ## -------------------- ##
16325
16326 # Be more Bourne compatible
16327 DUALCASE=1; export DUALCASE # for MKS sh
16328 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16329   emulate sh
16330   NULLCMD=:
16331   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16332   # is contrary to our usage.  Disable this feature.
16333   alias -g '${1+"$@"}'='"$@"'
16334   setopt NO_GLOB_SUBST
16335 else
16336   case `(set -o) 2>/dev/null` in #(
16337   *posix*) :
16338     set -o posix ;; #(
16339   *) :
16340      ;;
16341 esac
16342 fi
16343
16344
16345 as_nl='
16346 '
16347 export as_nl
16348 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16349 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16350 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16351 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16352 # Prefer a ksh shell builtin over an external printf program on Solaris,
16353 # but without wasting forks for bash or zsh.
16354 if test -z "$BASH_VERSION$ZSH_VERSION" \
16355     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16356   as_echo='print -r --'
16357   as_echo_n='print -rn --'
16358 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16359   as_echo='printf %s\n'
16360   as_echo_n='printf %s'
16361 else
16362   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16363     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16364     as_echo_n='/usr/ucb/echo -n'
16365   else
16366     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16367     as_echo_n_body='eval
16368       arg=$1;
16369       case $arg in #(
16370       *"$as_nl"*)
16371         expr "X$arg" : "X\\(.*\\)$as_nl";
16372         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16373       esac;
16374       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16375     '
16376     export as_echo_n_body
16377     as_echo_n='sh -c $as_echo_n_body as_echo'
16378   fi
16379   export as_echo_body
16380   as_echo='sh -c $as_echo_body as_echo'
16381 fi
16382
16383 # The user is always right.
16384 if test "${PATH_SEPARATOR+set}" != set; then
16385   PATH_SEPARATOR=:
16386   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16387     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16388       PATH_SEPARATOR=';'
16389   }
16390 fi
16391
16392
16393 # IFS
16394 # We need space, tab and new line, in precisely that order.  Quoting is
16395 # there to prevent editors from complaining about space-tab.
16396 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16397 # splitting by setting IFS to empty value.)
16398 IFS=" ""        $as_nl"
16399
16400 # Find who we are.  Look in the path if we contain no directory separator.
16401 as_myself=
16402 case $0 in #((
16403   *[\\/]* ) as_myself=$0 ;;
16404   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16405 for as_dir in $PATH
16406 do
16407   IFS=$as_save_IFS
16408   test -z "$as_dir" && as_dir=.
16409     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16410   done
16411 IFS=$as_save_IFS
16412
16413      ;;
16414 esac
16415 # We did not find ourselves, most probably we were run as `sh COMMAND'
16416 # in which case we are not to be found in the path.
16417 if test "x$as_myself" = x; then
16418   as_myself=$0
16419 fi
16420 if test ! -f "$as_myself"; then
16421   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16422   exit 1
16423 fi
16424
16425 # Unset variables that we do not need and which cause bugs (e.g. in
16426 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16427 # suppresses any "Segmentation fault" message there.  '((' could
16428 # trigger a bug in pdksh 5.2.14.
16429 for as_var in BASH_ENV ENV MAIL MAILPATH
16430 do eval test x\${$as_var+set} = xset \
16431   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16432 done
16433 PS1='$ '
16434 PS2='> '
16435 PS4='+ '
16436
16437 # NLS nuisances.
16438 LC_ALL=C
16439 export LC_ALL
16440 LANGUAGE=C
16441 export LANGUAGE
16442
16443 # CDPATH.
16444 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16445
16446
16447 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16448 # ----------------------------------------
16449 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16450 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16451 # script with STATUS, using 1 if that was 0.
16452 as_fn_error ()
16453 {
16454   as_status=$1; test $as_status -eq 0 && as_status=1
16455   if test "$4"; then
16456     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16457     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16458   fi
16459   $as_echo "$as_me: error: $2" >&2
16460   as_fn_exit $as_status
16461 } # as_fn_error
16462
16463
16464 # as_fn_set_status STATUS
16465 # -----------------------
16466 # Set $? to STATUS, without forking.
16467 as_fn_set_status ()
16468 {
16469   return $1
16470 } # as_fn_set_status
16471
16472 # as_fn_exit STATUS
16473 # -----------------
16474 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16475 as_fn_exit ()
16476 {
16477   set +e
16478   as_fn_set_status $1
16479   exit $1
16480 } # as_fn_exit
16481
16482 # as_fn_unset VAR
16483 # ---------------
16484 # Portably unset VAR.
16485 as_fn_unset ()
16486 {
16487   { eval $1=; unset $1;}
16488 }
16489 as_unset=as_fn_unset
16490 # as_fn_append VAR VALUE
16491 # ----------------------
16492 # Append the text in VALUE to the end of the definition contained in VAR. Take
16493 # advantage of any shell optimizations that allow amortized linear growth over
16494 # repeated appends, instead of the typical quadratic growth present in naive
16495 # implementations.
16496 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16497   eval 'as_fn_append ()
16498   {
16499     eval $1+=\$2
16500   }'
16501 else
16502   as_fn_append ()
16503   {
16504     eval $1=\$$1\$2
16505   }
16506 fi # as_fn_append
16507
16508 # as_fn_arith ARG...
16509 # ------------------
16510 # Perform arithmetic evaluation on the ARGs, and store the result in the
16511 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16512 # must be portable across $(()) and expr.
16513 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16514   eval 'as_fn_arith ()
16515   {
16516     as_val=$(( $* ))
16517   }'
16518 else
16519   as_fn_arith ()
16520   {
16521     as_val=`expr "$@" || test $? -eq 1`
16522   }
16523 fi # as_fn_arith
16524
16525
16526 if expr a : '\(a\)' >/dev/null 2>&1 &&
16527    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16528   as_expr=expr
16529 else
16530   as_expr=false
16531 fi
16532
16533 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16534   as_basename=basename
16535 else
16536   as_basename=false
16537 fi
16538
16539 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16540   as_dirname=dirname
16541 else
16542   as_dirname=false
16543 fi
16544
16545 as_me=`$as_basename -- "$0" ||
16546 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16547          X"$0" : 'X\(//\)$' \| \
16548          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16549 $as_echo X/"$0" |
16550     sed '/^.*\/\([^/][^/]*\)\/*$/{
16551             s//\1/
16552             q
16553           }
16554           /^X\/\(\/\/\)$/{
16555             s//\1/
16556             q
16557           }
16558           /^X\/\(\/\).*/{
16559             s//\1/
16560             q
16561           }
16562           s/.*/./; q'`
16563
16564 # Avoid depending upon Character Ranges.
16565 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16566 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16567 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16568 as_cr_digits='0123456789'
16569 as_cr_alnum=$as_cr_Letters$as_cr_digits
16570
16571 ECHO_C= ECHO_N= ECHO_T=
16572 case `echo -n x` in #(((((
16573 -n*)
16574   case `echo 'xy\c'` in
16575   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16576   xy)  ECHO_C='\c';;
16577   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16578        ECHO_T=' ';;
16579   esac;;
16580 *)
16581   ECHO_N='-n';;
16582 esac
16583
16584 rm -f conf$$ conf$$.exe conf$$.file
16585 if test -d conf$$.dir; then
16586   rm -f conf$$.dir/conf$$.file
16587 else
16588   rm -f conf$$.dir
16589   mkdir conf$$.dir 2>/dev/null
16590 fi
16591 if (echo >conf$$.file) 2>/dev/null; then
16592   if ln -s conf$$.file conf$$ 2>/dev/null; then
16593     as_ln_s='ln -s'
16594     # ... but there are two gotchas:
16595     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16596     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16597     # In both cases, we have to default to `cp -pR'.
16598     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16599       as_ln_s='cp -pR'
16600   elif ln conf$$.file conf$$ 2>/dev/null; then
16601     as_ln_s=ln
16602   else
16603     as_ln_s='cp -pR'
16604   fi
16605 else
16606   as_ln_s='cp -pR'
16607 fi
16608 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16609 rmdir conf$$.dir 2>/dev/null
16610
16611
16612 # as_fn_mkdir_p
16613 # -------------
16614 # Create "$as_dir" as a directory, including parents if necessary.
16615 as_fn_mkdir_p ()
16616 {
16617
16618   case $as_dir in #(
16619   -*) as_dir=./$as_dir;;
16620   esac
16621   test -d "$as_dir" || eval $as_mkdir_p || {
16622     as_dirs=
16623     while :; do
16624       case $as_dir in #(
16625       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16626       *) as_qdir=$as_dir;;
16627       esac
16628       as_dirs="'$as_qdir' $as_dirs"
16629       as_dir=`$as_dirname -- "$as_dir" ||
16630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16631          X"$as_dir" : 'X\(//\)[^/]' \| \
16632          X"$as_dir" : 'X\(//\)$' \| \
16633          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16634 $as_echo X"$as_dir" |
16635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16636             s//\1/
16637             q
16638           }
16639           /^X\(\/\/\)[^/].*/{
16640             s//\1/
16641             q
16642           }
16643           /^X\(\/\/\)$/{
16644             s//\1/
16645             q
16646           }
16647           /^X\(\/\).*/{
16648             s//\1/
16649             q
16650           }
16651           s/.*/./; q'`
16652       test -d "$as_dir" && break
16653     done
16654     test -z "$as_dirs" || eval "mkdir $as_dirs"
16655   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16656
16657
16658 } # as_fn_mkdir_p
16659 if mkdir -p . 2>/dev/null; then
16660   as_mkdir_p='mkdir -p "$as_dir"'
16661 else
16662   test -d ./-p && rmdir ./-p
16663   as_mkdir_p=false
16664 fi
16665
16666
16667 # as_fn_executable_p FILE
16668 # -----------------------
16669 # Test if FILE is an executable regular file.
16670 as_fn_executable_p ()
16671 {
16672   test -f "$1" && test -x "$1"
16673 } # as_fn_executable_p
16674 as_test_x='test -x'
16675 as_executable_p=as_fn_executable_p
16676
16677 # Sed expression to map a string onto a valid CPP name.
16678 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16679
16680 # Sed expression to map a string onto a valid variable name.
16681 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16682
16683
16684 exec 6>&1
16685 ## ----------------------------------- ##
16686 ## Main body of $CONFIG_STATUS script. ##
16687 ## ----------------------------------- ##
16688 _ASEOF
16689 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16690
16691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16692 # Save the log message, to keep $0 and so on meaningful, and to
16693 # report actual input values of CONFIG_FILES etc. instead of their
16694 # values after options handling.
16695 ac_log="
16696 This file was extended by expat $as_me 2.1.1, which was
16697 generated by GNU Autoconf 2.69.  Invocation command line was
16698
16699   CONFIG_FILES    = $CONFIG_FILES
16700   CONFIG_HEADERS  = $CONFIG_HEADERS
16701   CONFIG_LINKS    = $CONFIG_LINKS
16702   CONFIG_COMMANDS = $CONFIG_COMMANDS
16703   $ $0 $@
16704
16705 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16706 "
16707
16708 _ACEOF
16709
16710 case $ac_config_files in *"
16711 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16712 esac
16713
16714 case $ac_config_headers in *"
16715 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16716 esac
16717
16718
16719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16720 # Files that config.status was made for.
16721 config_files="$ac_config_files"
16722 config_headers="$ac_config_headers"
16723 config_commands="$ac_config_commands"
16724
16725 _ACEOF
16726
16727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16728 ac_cs_usage="\
16729 \`$as_me' instantiates files and other configuration actions
16730 from templates according to the current configuration.  Unless the files
16731 and actions are specified as TAGs, all are instantiated by default.
16732
16733 Usage: $0 [OPTION]... [TAG]...
16734
16735   -h, --help       print this help, then exit
16736   -V, --version    print version number and configuration settings, then exit
16737       --config     print configuration, then exit
16738   -q, --quiet, --silent
16739                    do not print progress messages
16740   -d, --debug      don't remove temporary files
16741       --recheck    update $as_me by reconfiguring in the same conditions
16742       --file=FILE[:TEMPLATE]
16743                    instantiate the configuration file FILE
16744       --header=FILE[:TEMPLATE]
16745                    instantiate the configuration header FILE
16746
16747 Configuration files:
16748 $config_files
16749
16750 Configuration headers:
16751 $config_headers
16752
16753 Configuration commands:
16754 $config_commands
16755
16756 Report bugs to <expat-bugs@libexpat.org>."
16757
16758 _ACEOF
16759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16760 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16761 ac_cs_version="\\
16762 expat config.status 2.1.1
16763 configured by $0, generated by GNU Autoconf 2.69,
16764   with options \\"\$ac_cs_config\\"
16765
16766 Copyright (C) 2012 Free Software Foundation, Inc.
16767 This config.status script is free software; the Free Software Foundation
16768 gives unlimited permission to copy, distribute and modify it."
16769
16770 ac_pwd='$ac_pwd'
16771 srcdir='$srcdir'
16772 INSTALL='$INSTALL'
16773 AWK='$AWK'
16774 test -n "\$AWK" || AWK=awk
16775 _ACEOF
16776
16777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16778 # The default lists apply if the user does not specify any file.
16779 ac_need_defaults=:
16780 while test $# != 0
16781 do
16782   case $1 in
16783   --*=?*)
16784     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16785     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16786     ac_shift=:
16787     ;;
16788   --*=)
16789     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16790     ac_optarg=
16791     ac_shift=:
16792     ;;
16793   *)
16794     ac_option=$1
16795     ac_optarg=$2
16796     ac_shift=shift
16797     ;;
16798   esac
16799
16800   case $ac_option in
16801   # Handling of the options.
16802   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16803     ac_cs_recheck=: ;;
16804   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16805     $as_echo "$ac_cs_version"; exit ;;
16806   --config | --confi | --conf | --con | --co | --c )
16807     $as_echo "$ac_cs_config"; exit ;;
16808   --debug | --debu | --deb | --de | --d | -d )
16809     debug=: ;;
16810   --file | --fil | --fi | --f )
16811     $ac_shift
16812     case $ac_optarg in
16813     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16814     '') as_fn_error $? "missing file argument" ;;
16815     esac
16816     as_fn_append CONFIG_FILES " '$ac_optarg'"
16817     ac_need_defaults=false;;
16818   --header | --heade | --head | --hea )
16819     $ac_shift
16820     case $ac_optarg in
16821     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16822     esac
16823     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16824     ac_need_defaults=false;;
16825   --he | --h)
16826     # Conflict between --help and --header
16827     as_fn_error $? "ambiguous option: \`$1'
16828 Try \`$0 --help' for more information.";;
16829   --help | --hel | -h )
16830     $as_echo "$ac_cs_usage"; exit ;;
16831   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16832   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16833     ac_cs_silent=: ;;
16834
16835   # This is an error.
16836   -*) as_fn_error $? "unrecognized option: \`$1'
16837 Try \`$0 --help' for more information." ;;
16838
16839   *) as_fn_append ac_config_targets " $1"
16840      ac_need_defaults=false ;;
16841
16842   esac
16843   shift
16844 done
16845
16846 ac_configure_extra_args=
16847
16848 if $ac_cs_silent; then
16849   exec 6>/dev/null
16850   ac_configure_extra_args="$ac_configure_extra_args --silent"
16851 fi
16852
16853 _ACEOF
16854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16855 if \$ac_cs_recheck; then
16856   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16857   shift
16858   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16859   CONFIG_SHELL='$SHELL'
16860   export CONFIG_SHELL
16861   exec "\$@"
16862 fi
16863
16864 _ACEOF
16865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16866 exec 5>>config.log
16867 {
16868   echo
16869   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16870 ## Running $as_me. ##
16871 _ASBOX
16872   $as_echo "$ac_log"
16873 } >&5
16874
16875 _ACEOF
16876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16877 #
16878 # INIT-COMMANDS
16879 #
16880
16881
16882 # The HP-UX ksh and POSIX shell print the target directory to stdout
16883 # if CDPATH is set.
16884 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16885
16886 sed_quote_subst='$sed_quote_subst'
16887 double_quote_subst='$double_quote_subst'
16888 delay_variable_subst='$delay_variable_subst'
16889 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16890 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16891 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16892 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16893 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16894 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16895 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16896 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16897 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16898 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16899 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16900 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16901 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16902 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16903 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16904 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16905 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16906 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16907 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16908 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16909 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16910 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16911 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16912 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16913 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16914 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16915 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16916 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16917 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16918 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16919 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16920 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16921 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16922 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16923 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16924 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16925 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16926 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16927 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16928 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16929 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16930 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16931 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16932 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16933 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16934 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16935 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16936 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16937 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16938 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16939 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16940 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16941 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16942 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16943 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16944 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16945 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16946 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"`'
16947 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16948 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16949 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16950 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16951 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16952 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16953 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16954 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16955 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16956 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16957 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16958 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16959 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16960 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16961 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16962 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16963 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16964 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16965 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16966 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16967 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16968 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16969 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16970 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16971 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16972 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16973 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16974 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16975 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16976 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16977 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16978 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16979 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16980 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16981 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16982 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16983 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16984 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16985 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16986 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16987 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16988 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16989 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16990 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16991 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16992 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16993 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16994 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16995 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16996 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16997 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16998 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16999 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17000 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17001 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17002 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17003 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17004 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17005 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17006 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17007 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17008 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17009 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17010 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17011 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17012 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17013 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17014 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17015 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17016 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17017 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17018 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17019 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17020 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17021 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17022 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17023 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17024 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17025 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17026 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17027 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17028 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17029 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17030 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17031 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17032 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17033 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17034 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17035 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17036 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17037 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17038 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17039 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17040 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17041 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17042 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17043 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17044 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17045 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17046 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17047 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17048 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17049 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17050 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17051 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17052 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17053 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17054 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17055 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17056 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17057 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17058 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17059 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17060 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17061 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17062 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17063 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17064 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17065 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17066 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17067 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17068 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17069 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17070 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17071 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17072 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17073 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17074
17075 LTCC='$LTCC'
17076 LTCFLAGS='$LTCFLAGS'
17077 compiler='$compiler_DEFAULT'
17078
17079 # A function that is used when there is no print builtin or printf.
17080 func_fallback_echo ()
17081 {
17082   eval 'cat <<_LTECHO_EOF
17083 \$1
17084 _LTECHO_EOF'
17085 }
17086
17087 # Quote evaled strings.
17088 for var in AS \
17089 DLLTOOL \
17090 OBJDUMP \
17091 SHELL \
17092 ECHO \
17093 PATH_SEPARATOR \
17094 SED \
17095 GREP \
17096 EGREP \
17097 FGREP \
17098 LD \
17099 NM \
17100 LN_S \
17101 lt_SP2NL \
17102 lt_NL2SP \
17103 reload_flag \
17104 deplibs_check_method \
17105 file_magic_cmd \
17106 file_magic_glob \
17107 want_nocaseglob \
17108 sharedlib_from_linklib_cmd \
17109 AR \
17110 AR_FLAGS \
17111 archiver_list_spec \
17112 STRIP \
17113 RANLIB \
17114 CC \
17115 CFLAGS \
17116 compiler \
17117 lt_cv_sys_global_symbol_pipe \
17118 lt_cv_sys_global_symbol_to_cdecl \
17119 lt_cv_sys_global_symbol_to_c_name_address \
17120 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17121 nm_file_list_spec \
17122 lt_prog_compiler_no_builtin_flag \
17123 lt_prog_compiler_pic \
17124 lt_prog_compiler_wl \
17125 lt_prog_compiler_static \
17126 lt_cv_prog_compiler_c_o \
17127 need_locks \
17128 MANIFEST_TOOL \
17129 DSYMUTIL \
17130 NMEDIT \
17131 LIPO \
17132 OTOOL \
17133 OTOOL64 \
17134 shrext_cmds \
17135 export_dynamic_flag_spec \
17136 whole_archive_flag_spec \
17137 compiler_needs_object \
17138 with_gnu_ld \
17139 allow_undefined_flag \
17140 no_undefined_flag \
17141 hardcode_libdir_flag_spec \
17142 hardcode_libdir_separator \
17143 exclude_expsyms \
17144 include_expsyms \
17145 file_list_spec \
17146 variables_saved_for_relink \
17147 libname_spec \
17148 library_names_spec \
17149 soname_spec \
17150 install_override_mode \
17151 finish_eval \
17152 old_striplib \
17153 striplib \
17154 compiler_lib_search_dirs \
17155 predep_objects \
17156 postdep_objects \
17157 predeps \
17158 postdeps \
17159 compiler_lib_search_path \
17160 LD_CXX \
17161 reload_flag_CXX \
17162 compiler_CXX \
17163 lt_prog_compiler_no_builtin_flag_CXX \
17164 lt_prog_compiler_pic_CXX \
17165 lt_prog_compiler_wl_CXX \
17166 lt_prog_compiler_static_CXX \
17167 lt_cv_prog_compiler_c_o_CXX \
17168 export_dynamic_flag_spec_CXX \
17169 whole_archive_flag_spec_CXX \
17170 compiler_needs_object_CXX \
17171 with_gnu_ld_CXX \
17172 allow_undefined_flag_CXX \
17173 no_undefined_flag_CXX \
17174 hardcode_libdir_flag_spec_CXX \
17175 hardcode_libdir_separator_CXX \
17176 exclude_expsyms_CXX \
17177 include_expsyms_CXX \
17178 file_list_spec_CXX \
17179 compiler_lib_search_dirs_CXX \
17180 predep_objects_CXX \
17181 postdep_objects_CXX \
17182 predeps_CXX \
17183 postdeps_CXX \
17184 compiler_lib_search_path_CXX; do
17185     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17186     *[\\\\\\\`\\"\\\$]*)
17187       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17188       ;;
17189     *)
17190       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17191       ;;
17192     esac
17193 done
17194
17195 # Double-quote double-evaled strings.
17196 for var in reload_cmds \
17197 old_postinstall_cmds \
17198 old_postuninstall_cmds \
17199 old_archive_cmds \
17200 extract_expsyms_cmds \
17201 old_archive_from_new_cmds \
17202 old_archive_from_expsyms_cmds \
17203 archive_cmds \
17204 archive_expsym_cmds \
17205 module_cmds \
17206 module_expsym_cmds \
17207 export_symbols_cmds \
17208 prelink_cmds \
17209 postlink_cmds \
17210 postinstall_cmds \
17211 postuninstall_cmds \
17212 finish_cmds \
17213 sys_lib_search_path_spec \
17214 sys_lib_dlsearch_path_spec \
17215 reload_cmds_CXX \
17216 old_archive_cmds_CXX \
17217 old_archive_from_new_cmds_CXX \
17218 old_archive_from_expsyms_cmds_CXX \
17219 archive_cmds_CXX \
17220 archive_expsym_cmds_CXX \
17221 module_cmds_CXX \
17222 module_expsym_cmds_CXX \
17223 export_symbols_cmds_CXX \
17224 prelink_cmds_CXX \
17225 postlink_cmds_CXX; do
17226     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17227     *[\\\\\\\`\\"\\\$]*)
17228       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17229       ;;
17230     *)
17231       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17232       ;;
17233     esac
17234 done
17235
17236 ac_aux_dir='$ac_aux_dir'
17237 xsi_shell='$xsi_shell'
17238 lt_shell_append='$lt_shell_append'
17239
17240 # See if we are running on zsh, and set the options which allow our
17241 # commands through without removal of \ escapes INIT.
17242 if test -n "\${ZSH_VERSION+set}" ; then
17243    setopt NO_GLOB_SUBST
17244 fi
17245
17246
17247     PACKAGE='$PACKAGE'
17248     VERSION='$VERSION'
17249     TIMESTAMP='$TIMESTAMP'
17250     RM='$RM'
17251     ofile='$ofile'
17252
17253
17254
17255
17256
17257
17258 _ACEOF
17259
17260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17261
17262 # Handling of arguments.
17263 for ac_config_target in $ac_config_targets
17264 do
17265   case $ac_config_target in
17266     "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
17267     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17268     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17269     "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
17270
17271   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17272   esac
17273 done
17274
17275
17276 # If the user did not use the arguments to specify the items to instantiate,
17277 # then the envvar interface is used.  Set only those that are not.
17278 # We use the long form for the default assignment because of an extremely
17279 # bizarre bug on SunOS 4.1.3.
17280 if $ac_need_defaults; then
17281   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17282   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17283   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17284 fi
17285
17286 # Have a temporary directory for convenience.  Make it in the build tree
17287 # simply because there is no reason against having it here, and in addition,
17288 # creating and moving files from /tmp can sometimes cause problems.
17289 # Hook for its removal unless debugging.
17290 # Note that there is a small window in which the directory will not be cleaned:
17291 # after its creation but before its name has been assigned to `$tmp'.
17292 $debug ||
17293 {
17294   tmp= ac_tmp=
17295   trap 'exit_status=$?
17296   : "${ac_tmp:=$tmp}"
17297   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17298 ' 0
17299   trap 'as_fn_exit 1' 1 2 13 15
17300 }
17301 # Create a (secure) tmp directory for tmp files.
17302
17303 {
17304   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17305   test -d "$tmp"
17306 }  ||
17307 {
17308   tmp=./conf$$-$RANDOM
17309   (umask 077 && mkdir "$tmp")
17310 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17311 ac_tmp=$tmp
17312
17313 # Set up the scripts for CONFIG_FILES section.
17314 # No need to generate them if there are no CONFIG_FILES.
17315 # This happens for instance with `./config.status config.h'.
17316 if test -n "$CONFIG_FILES"; then
17317
17318
17319 ac_cr=`echo X | tr X '\015'`
17320 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17321 # But we know of no other shell where ac_cr would be empty at this
17322 # point, so we can use a bashism as a fallback.
17323 if test "x$ac_cr" = x; then
17324   eval ac_cr=\$\'\\r\'
17325 fi
17326 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17327 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17328   ac_cs_awk_cr='\\r'
17329 else
17330   ac_cs_awk_cr=$ac_cr
17331 fi
17332
17333 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17334 _ACEOF
17335
17336
17337 {
17338   echo "cat >conf$$subs.awk <<_ACEOF" &&
17339   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17340   echo "_ACEOF"
17341 } >conf$$subs.sh ||
17342   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17343 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17344 ac_delim='%!_!# '
17345 for ac_last_try in false false false false false :; do
17346   . ./conf$$subs.sh ||
17347     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17348
17349   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17350   if test $ac_delim_n = $ac_delim_num; then
17351     break
17352   elif $ac_last_try; then
17353     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17354   else
17355     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17356   fi
17357 done
17358 rm -f conf$$subs.sh
17359
17360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17361 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17362 _ACEOF
17363 sed -n '
17364 h
17365 s/^/S["/; s/!.*/"]=/
17366 p
17367 g
17368 s/^[^!]*!//
17369 :repl
17370 t repl
17371 s/'"$ac_delim"'$//
17372 t delim
17373 :nl
17374 h
17375 s/\(.\{148\}\)..*/\1/
17376 t more1
17377 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17378 p
17379 n
17380 b repl
17381 :more1
17382 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17383 p
17384 g
17385 s/.\{148\}//
17386 t nl
17387 :delim
17388 h
17389 s/\(.\{148\}\)..*/\1/
17390 t more2
17391 s/["\\]/\\&/g; s/^/"/; s/$/"/
17392 p
17393 b
17394 :more2
17395 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17396 p
17397 g
17398 s/.\{148\}//
17399 t delim
17400 ' <conf$$subs.awk | sed '
17401 /^[^""]/{
17402   N
17403   s/\n//
17404 }
17405 ' >>$CONFIG_STATUS || ac_write_fail=1
17406 rm -f conf$$subs.awk
17407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17408 _ACAWK
17409 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17410   for (key in S) S_is_set[key] = 1
17411   FS = "\a"
17412
17413 }
17414 {
17415   line = $ 0
17416   nfields = split(line, field, "@")
17417   substed = 0
17418   len = length(field[1])
17419   for (i = 2; i < nfields; i++) {
17420     key = field[i]
17421     keylen = length(key)
17422     if (S_is_set[key]) {
17423       value = S[key]
17424       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17425       len += length(value) + length(field[++i])
17426       substed = 1
17427     } else
17428       len += 1 + keylen
17429   }
17430
17431   print line
17432 }
17433
17434 _ACAWK
17435 _ACEOF
17436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17437 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17438   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17439 else
17440   cat
17441 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17442   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17443 _ACEOF
17444
17445 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17446 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17447 # trailing colons and then remove the whole line if VPATH becomes empty
17448 # (actually we leave an empty line to preserve line numbers).
17449 if test "x$srcdir" = x.; then
17450   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17451 h
17452 s///
17453 s/^/:/
17454 s/[      ]*$/:/
17455 s/:\$(srcdir):/:/g
17456 s/:\${srcdir}:/:/g
17457 s/:@srcdir@:/:/g
17458 s/^:*//
17459 s/:*$//
17460 x
17461 s/\(=[   ]*\).*/\1/
17462 G
17463 s/\n//
17464 s/^[^=]*=[       ]*$//
17465 }'
17466 fi
17467
17468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17469 fi # test -n "$CONFIG_FILES"
17470
17471 # Set up the scripts for CONFIG_HEADERS section.
17472 # No need to generate them if there are no CONFIG_HEADERS.
17473 # This happens for instance with `./config.status Makefile'.
17474 if test -n "$CONFIG_HEADERS"; then
17475 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17476 BEGIN {
17477 _ACEOF
17478
17479 # Transform confdefs.h into an awk script `defines.awk', embedded as
17480 # here-document in config.status, that substitutes the proper values into
17481 # config.h.in to produce config.h.
17482
17483 # Create a delimiter string that does not exist in confdefs.h, to ease
17484 # handling of long lines.
17485 ac_delim='%!_!# '
17486 for ac_last_try in false false :; do
17487   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17488   if test -z "$ac_tt"; then
17489     break
17490   elif $ac_last_try; then
17491     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17492   else
17493     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17494   fi
17495 done
17496
17497 # For the awk script, D is an array of macro values keyed by name,
17498 # likewise P contains macro parameters if any.  Preserve backslash
17499 # newline sequences.
17500
17501 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17502 sed -n '
17503 s/.\{148\}/&'"$ac_delim"'/g
17504 t rset
17505 :rset
17506 s/^[     ]*#[    ]*define[       ][      ]*/ /
17507 t def
17508 d
17509 :def
17510 s/\\$//
17511 t bsnl
17512 s/["\\]/\\&/g
17513 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17514 D["\1"]=" \3"/p
17515 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17516 d
17517 :bsnl
17518 s/["\\]/\\&/g
17519 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17520 D["\1"]=" \3\\\\\\n"\\/p
17521 t cont
17522 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17523 t cont
17524 d
17525 :cont
17526 n
17527 s/.\{148\}/&'"$ac_delim"'/g
17528 t clear
17529 :clear
17530 s/\\$//
17531 t bsnlc
17532 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17533 d
17534 :bsnlc
17535 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17536 b cont
17537 ' <confdefs.h | sed '
17538 s/'"$ac_delim"'/"\\\
17539 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17540
17541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17542   for (key in D) D_is_set[key] = 1
17543   FS = "\a"
17544 }
17545 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17546   line = \$ 0
17547   split(line, arg, " ")
17548   if (arg[1] == "#") {
17549     defundef = arg[2]
17550     mac1 = arg[3]
17551   } else {
17552     defundef = substr(arg[1], 2)
17553     mac1 = arg[2]
17554   }
17555   split(mac1, mac2, "(") #)
17556   macro = mac2[1]
17557   prefix = substr(line, 1, index(line, defundef) - 1)
17558   if (D_is_set[macro]) {
17559     # Preserve the white space surrounding the "#".
17560     print prefix "define", macro P[macro] D[macro]
17561     next
17562   } else {
17563     # Replace #undef with comments.  This is necessary, for example,
17564     # in the case of _POSIX_SOURCE, which is predefined and required
17565     # on some systems where configure will not decide to define it.
17566     if (defundef == "undef") {
17567       print "/*", prefix defundef, macro, "*/"
17568       next
17569     }
17570   }
17571 }
17572 { print }
17573 _ACAWK
17574 _ACEOF
17575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17576   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17577 fi # test -n "$CONFIG_HEADERS"
17578
17579
17580 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17581 shift
17582 for ac_tag
17583 do
17584   case $ac_tag in
17585   :[FHLC]) ac_mode=$ac_tag; continue;;
17586   esac
17587   case $ac_mode$ac_tag in
17588   :[FHL]*:*);;
17589   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17590   :[FH]-) ac_tag=-:-;;
17591   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17592   esac
17593   ac_save_IFS=$IFS
17594   IFS=:
17595   set x $ac_tag
17596   IFS=$ac_save_IFS
17597   shift
17598   ac_file=$1
17599   shift
17600
17601   case $ac_mode in
17602   :L) ac_source=$1;;
17603   :[FH])
17604     ac_file_inputs=
17605     for ac_f
17606     do
17607       case $ac_f in
17608       -) ac_f="$ac_tmp/stdin";;
17609       *) # Look for the file first in the build tree, then in the source tree
17610          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17611          # because $ac_f cannot contain `:'.
17612          test -f "$ac_f" ||
17613            case $ac_f in
17614            [\\/$]*) false;;
17615            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17616            esac ||
17617            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17618       esac
17619       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17620       as_fn_append ac_file_inputs " '$ac_f'"
17621     done
17622
17623     # Let's still pretend it is `configure' which instantiates (i.e., don't
17624     # use $as_me), people would be surprised to read:
17625     #    /* config.h.  Generated by config.status.  */
17626     configure_input='Generated from '`
17627           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17628         `' by configure.'
17629     if test x"$ac_file" != x-; then
17630       configure_input="$ac_file.  $configure_input"
17631       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17632 $as_echo "$as_me: creating $ac_file" >&6;}
17633     fi
17634     # Neutralize special characters interpreted by sed in replacement strings.
17635     case $configure_input in #(
17636     *\&* | *\|* | *\\* )
17637        ac_sed_conf_input=`$as_echo "$configure_input" |
17638        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17639     *) ac_sed_conf_input=$configure_input;;
17640     esac
17641
17642     case $ac_tag in
17643     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17644       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17645     esac
17646     ;;
17647   esac
17648
17649   ac_dir=`$as_dirname -- "$ac_file" ||
17650 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17651          X"$ac_file" : 'X\(//\)[^/]' \| \
17652          X"$ac_file" : 'X\(//\)$' \| \
17653          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17654 $as_echo X"$ac_file" |
17655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17656             s//\1/
17657             q
17658           }
17659           /^X\(\/\/\)[^/].*/{
17660             s//\1/
17661             q
17662           }
17663           /^X\(\/\/\)$/{
17664             s//\1/
17665             q
17666           }
17667           /^X\(\/\).*/{
17668             s//\1/
17669             q
17670           }
17671           s/.*/./; q'`
17672   as_dir="$ac_dir"; as_fn_mkdir_p
17673   ac_builddir=.
17674
17675 case "$ac_dir" in
17676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17677 *)
17678   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17679   # A ".." for each directory in $ac_dir_suffix.
17680   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17681   case $ac_top_builddir_sub in
17682   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17683   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17684   esac ;;
17685 esac
17686 ac_abs_top_builddir=$ac_pwd
17687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17688 # for backward compatibility:
17689 ac_top_builddir=$ac_top_build_prefix
17690
17691 case $srcdir in
17692   .)  # We are building in place.
17693     ac_srcdir=.
17694     ac_top_srcdir=$ac_top_builddir_sub
17695     ac_abs_top_srcdir=$ac_pwd ;;
17696   [\\/]* | ?:[\\/]* )  # Absolute name.
17697     ac_srcdir=$srcdir$ac_dir_suffix;
17698     ac_top_srcdir=$srcdir
17699     ac_abs_top_srcdir=$srcdir ;;
17700   *) # Relative name.
17701     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17702     ac_top_srcdir=$ac_top_build_prefix$srcdir
17703     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17704 esac
17705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17706
17707
17708   case $ac_mode in
17709   :F)
17710   #
17711   # CONFIG_FILE
17712   #
17713
17714   case $INSTALL in
17715   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17716   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17717   esac
17718 _ACEOF
17719
17720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17721 # If the template does not know about datarootdir, expand it.
17722 # FIXME: This hack should be removed a few years after 2.60.
17723 ac_datarootdir_hack=; ac_datarootdir_seen=
17724 ac_sed_dataroot='
17725 /datarootdir/ {
17726   p
17727   q
17728 }
17729 /@datadir@/p
17730 /@docdir@/p
17731 /@infodir@/p
17732 /@localedir@/p
17733 /@mandir@/p'
17734 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17735 *datarootdir*) ac_datarootdir_seen=yes;;
17736 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17737   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17738 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17739 _ACEOF
17740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17741   ac_datarootdir_hack='
17742   s&@datadir@&$datadir&g
17743   s&@docdir@&$docdir&g
17744   s&@infodir@&$infodir&g
17745   s&@localedir@&$localedir&g
17746   s&@mandir@&$mandir&g
17747   s&\\\${datarootdir}&$datarootdir&g' ;;
17748 esac
17749 _ACEOF
17750
17751 # Neutralize VPATH when `$srcdir' = `.'.
17752 # Shell code in configure.ac might set extrasub.
17753 # FIXME: do we really want to maintain this feature?
17754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755 ac_sed_extra="$ac_vpsub
17756 $extrasub
17757 _ACEOF
17758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17759 :t
17760 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17761 s|@configure_input@|$ac_sed_conf_input|;t t
17762 s&@top_builddir@&$ac_top_builddir_sub&;t t
17763 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17764 s&@srcdir@&$ac_srcdir&;t t
17765 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17766 s&@top_srcdir@&$ac_top_srcdir&;t t
17767 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17768 s&@builddir@&$ac_builddir&;t t
17769 s&@abs_builddir@&$ac_abs_builddir&;t t
17770 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17771 s&@INSTALL@&$ac_INSTALL&;t t
17772 $ac_datarootdir_hack
17773 "
17774 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17775   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17776
17777 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17778   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17779   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17780       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17781   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17782 which seems to be undefined.  Please make sure it is defined" >&5
17783 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17784 which seems to be undefined.  Please make sure it is defined" >&2;}
17785
17786   rm -f "$ac_tmp/stdin"
17787   case $ac_file in
17788   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17789   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17790   esac \
17791   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17792  ;;
17793   :H)
17794   #
17795   # CONFIG_HEADER
17796   #
17797   if test x"$ac_file" != x-; then
17798     {
17799       $as_echo "/* $configure_input  */" \
17800       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17801     } >"$ac_tmp/config.h" \
17802       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17803     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17804       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17805 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17806     else
17807       rm -f "$ac_file"
17808       mv "$ac_tmp/config.h" "$ac_file" \
17809         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17810     fi
17811   else
17812     $as_echo "/* $configure_input  */" \
17813       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17814       || as_fn_error $? "could not create -" "$LINENO" 5
17815   fi
17816  ;;
17817
17818   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17819 $as_echo "$as_me: executing $ac_file commands" >&6;}
17820  ;;
17821   esac
17822
17823
17824   case $ac_file$ac_mode in
17825     "libtool":C)
17826
17827     # See if we are running on zsh, and set the options which allow our
17828     # commands through without removal of \ escapes.
17829     if test -n "${ZSH_VERSION+set}" ; then
17830       setopt NO_GLOB_SUBST
17831     fi
17832
17833     cfgfile="${ofile}T"
17834     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17835     $RM "$cfgfile"
17836
17837     cat <<_LT_EOF >> "$cfgfile"
17838 #! $SHELL
17839
17840 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17841 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17842 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17843 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17844 #
17845 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17846 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17847 #                 Foundation, Inc.
17848 #   Written by Gordon Matzigkeit, 1996
17849 #
17850 #   This file is part of GNU Libtool.
17851 #
17852 # GNU Libtool is free software; you can redistribute it and/or
17853 # modify it under the terms of the GNU General Public License as
17854 # published by the Free Software Foundation; either version 2 of
17855 # the License, or (at your option) any later version.
17856 #
17857 # As a special exception to the GNU General Public License,
17858 # if you distribute this file as part of a program or library that
17859 # is built using GNU Libtool, you may include this file under the
17860 # same distribution terms that you use for the rest of that program.
17861 #
17862 # GNU Libtool is distributed in the hope that it will be useful,
17863 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17864 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17865 # GNU General Public License for more details.
17866 #
17867 # You should have received a copy of the GNU General Public License
17868 # along with GNU Libtool; see the file COPYING.  If not, a copy
17869 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17870 # obtained by writing to the Free Software Foundation, Inc.,
17871 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17872
17873
17874 # The names of the tagged configurations supported by this script.
17875 available_tags="CXX "
17876
17877 # ### BEGIN LIBTOOL CONFIG
17878
17879 # Assembler program.
17880 AS=$lt_AS
17881
17882 # DLL creation program.
17883 DLLTOOL=$lt_DLLTOOL
17884
17885 # Object dumper program.
17886 OBJDUMP=$lt_OBJDUMP
17887
17888 # Which release of libtool.m4 was used?
17889 macro_version=$macro_version
17890 macro_revision=$macro_revision
17891
17892 # Whether or not to build shared libraries.
17893 build_libtool_libs=$enable_shared
17894
17895 # Whether or not to build static libraries.
17896 build_old_libs=$enable_static
17897
17898 # What type of objects to build.
17899 pic_mode=$pic_mode
17900
17901 # Whether or not to optimize for fast installation.
17902 fast_install=$enable_fast_install
17903
17904 # Shell to use when invoking shell scripts.
17905 SHELL=$lt_SHELL
17906
17907 # An echo program that protects backslashes.
17908 ECHO=$lt_ECHO
17909
17910 # The PATH separator for the build system.
17911 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17912
17913 # The host system.
17914 host_alias=$host_alias
17915 host=$host
17916 host_os=$host_os
17917
17918 # The build system.
17919 build_alias=$build_alias
17920 build=$build
17921 build_os=$build_os
17922
17923 # A sed program that does not truncate output.
17924 SED=$lt_SED
17925
17926 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17927 Xsed="\$SED -e 1s/^X//"
17928
17929 # A grep program that handles long lines.
17930 GREP=$lt_GREP
17931
17932 # An ERE matcher.
17933 EGREP=$lt_EGREP
17934
17935 # A literal string matcher.
17936 FGREP=$lt_FGREP
17937
17938 # A BSD- or MS-compatible name lister.
17939 NM=$lt_NM
17940
17941 # Whether we need soft or hard links.
17942 LN_S=$lt_LN_S
17943
17944 # What is the maximum length of a command?
17945 max_cmd_len=$max_cmd_len
17946
17947 # Object file suffix (normally "o").
17948 objext=$ac_objext
17949
17950 # Executable file suffix (normally "").
17951 exeext=$exeext
17952
17953 # whether the shell understands "unset".
17954 lt_unset=$lt_unset
17955
17956 # turn spaces into newlines.
17957 SP2NL=$lt_lt_SP2NL
17958
17959 # turn newlines into spaces.
17960 NL2SP=$lt_lt_NL2SP
17961
17962 # convert \$build file names to \$host format.
17963 to_host_file_cmd=$lt_cv_to_host_file_cmd
17964
17965 # convert \$build files to toolchain format.
17966 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17967
17968 # Method to check whether dependent libraries are shared objects.
17969 deplibs_check_method=$lt_deplibs_check_method
17970
17971 # Command to use when deplibs_check_method = "file_magic".
17972 file_magic_cmd=$lt_file_magic_cmd
17973
17974 # How to find potential files when deplibs_check_method = "file_magic".
17975 file_magic_glob=$lt_file_magic_glob
17976
17977 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17978 want_nocaseglob=$lt_want_nocaseglob
17979
17980 # Command to associate shared and link libraries.
17981 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17982
17983 # The archiver.
17984 AR=$lt_AR
17985
17986 # Flags to create an archive.
17987 AR_FLAGS=$lt_AR_FLAGS
17988
17989 # How to feed a file listing to the archiver.
17990 archiver_list_spec=$lt_archiver_list_spec
17991
17992 # A symbol stripping program.
17993 STRIP=$lt_STRIP
17994
17995 # Commands used to install an old-style archive.
17996 RANLIB=$lt_RANLIB
17997 old_postinstall_cmds=$lt_old_postinstall_cmds
17998 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17999
18000 # Whether to use a lock for old archive extraction.
18001 lock_old_archive_extraction=$lock_old_archive_extraction
18002
18003 # A C compiler.
18004 LTCC=$lt_CC
18005
18006 # LTCC compiler flags.
18007 LTCFLAGS=$lt_CFLAGS
18008
18009 # Take the output of nm and produce a listing of raw symbols and C names.
18010 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18011
18012 # Transform the output of nm in a proper C declaration.
18013 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18014
18015 # Transform the output of nm in a C name address pair.
18016 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18017
18018 # Transform the output of nm in a C name address pair when lib prefix is needed.
18019 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18020
18021 # Specify filename containing input files for \$NM.
18022 nm_file_list_spec=$lt_nm_file_list_spec
18023
18024 # The root where to search for dependent libraries,and in which our libraries should be installed.
18025 lt_sysroot=$lt_sysroot
18026
18027 # The name of the directory that contains temporary libtool files.
18028 objdir=$objdir
18029
18030 # Used to examine libraries when file_magic_cmd begins with "file".
18031 MAGIC_CMD=$MAGIC_CMD
18032
18033 # Must we lock files when doing compilation?
18034 need_locks=$lt_need_locks
18035
18036 # Manifest tool.
18037 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18038
18039 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18040 DSYMUTIL=$lt_DSYMUTIL
18041
18042 # Tool to change global to local symbols on Mac OS X.
18043 NMEDIT=$lt_NMEDIT
18044
18045 # Tool to manipulate fat objects and archives on Mac OS X.
18046 LIPO=$lt_LIPO
18047
18048 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18049 OTOOL=$lt_OTOOL
18050
18051 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18052 OTOOL64=$lt_OTOOL64
18053
18054 # Old archive suffix (normally "a").
18055 libext=$libext
18056
18057 # Shared library suffix (normally ".so").
18058 shrext_cmds=$lt_shrext_cmds
18059
18060 # The commands to extract the exported symbol list from a shared archive.
18061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18062
18063 # Variables whose values should be saved in libtool wrapper scripts and
18064 # restored at link time.
18065 variables_saved_for_relink=$lt_variables_saved_for_relink
18066
18067 # Do we need the "lib" prefix for modules?
18068 need_lib_prefix=$need_lib_prefix
18069
18070 # Do we need a version for libraries?
18071 need_version=$need_version
18072
18073 # Library versioning type.
18074 version_type=$version_type
18075
18076 # Shared library runtime path variable.
18077 runpath_var=$runpath_var
18078
18079 # Shared library path variable.
18080 shlibpath_var=$shlibpath_var
18081
18082 # Is shlibpath searched before the hard-coded library search path?
18083 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18084
18085 # Format of library name prefix.
18086 libname_spec=$lt_libname_spec
18087
18088 # List of archive names.  First name is the real one, the rest are links.
18089 # The last name is the one that the linker finds with -lNAME
18090 library_names_spec=$lt_library_names_spec
18091
18092 # The coded name of the library, if different from the real name.
18093 soname_spec=$lt_soname_spec
18094
18095 # Permission mode override for installation of shared libraries.
18096 install_override_mode=$lt_install_override_mode
18097
18098 # Command to use after installation of a shared archive.
18099 postinstall_cmds=$lt_postinstall_cmds
18100
18101 # Command to use after uninstallation of a shared archive.
18102 postuninstall_cmds=$lt_postuninstall_cmds
18103
18104 # Commands used to finish a libtool library installation in a directory.
18105 finish_cmds=$lt_finish_cmds
18106
18107 # As "finish_cmds", except a single script fragment to be evaled but
18108 # not shown.
18109 finish_eval=$lt_finish_eval
18110
18111 # Whether we should hardcode library paths into libraries.
18112 hardcode_into_libs=$hardcode_into_libs
18113
18114 # Compile-time system search path for libraries.
18115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18116
18117 # Run-time system search path for libraries.
18118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18119
18120 # Whether dlopen is supported.
18121 dlopen_support=$enable_dlopen
18122
18123 # Whether dlopen of programs is supported.
18124 dlopen_self=$enable_dlopen_self
18125
18126 # Whether dlopen of statically linked programs is supported.
18127 dlopen_self_static=$enable_dlopen_self_static
18128
18129 # Commands to strip libraries.
18130 old_striplib=$lt_old_striplib
18131 striplib=$lt_striplib
18132
18133
18134 # The linker used to build libraries.
18135 LD=$lt_LD
18136
18137 # How to create reloadable object files.
18138 reload_flag=$lt_reload_flag
18139 reload_cmds=$lt_reload_cmds
18140
18141 # Commands used to build an old-style archive.
18142 old_archive_cmds=$lt_old_archive_cmds
18143
18144 # A language specific compiler.
18145 CC=$lt_compiler
18146
18147 # Is the compiler the GNU compiler?
18148 with_gcc=$GCC
18149
18150 # Compiler flag to turn off builtin functions.
18151 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18152
18153 # Additional compiler flags for building library objects.
18154 pic_flag=$lt_lt_prog_compiler_pic
18155
18156 # How to pass a linker flag through the compiler.
18157 wl=$lt_lt_prog_compiler_wl
18158
18159 # Compiler flag to prevent dynamic linking.
18160 link_static_flag=$lt_lt_prog_compiler_static
18161
18162 # Does compiler simultaneously support -c and -o options?
18163 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18164
18165 # Whether or not to add -lc for building shared libraries.
18166 build_libtool_need_lc=$archive_cmds_need_lc
18167
18168 # Whether or not to disallow shared libs when runtime libs are static.
18169 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18170
18171 # Compiler flag to allow reflexive dlopens.
18172 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18173
18174 # Compiler flag to generate shared objects directly from archives.
18175 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18176
18177 # Whether the compiler copes with passing no objects directly.
18178 compiler_needs_object=$lt_compiler_needs_object
18179
18180 # Create an old-style archive from a shared archive.
18181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18182
18183 # Create a temporary old-style archive to link instead of a shared archive.
18184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18185
18186 # Commands used to build a shared archive.
18187 archive_cmds=$lt_archive_cmds
18188 archive_expsym_cmds=$lt_archive_expsym_cmds
18189
18190 # Commands used to build a loadable module if different from building
18191 # a shared archive.
18192 module_cmds=$lt_module_cmds
18193 module_expsym_cmds=$lt_module_expsym_cmds
18194
18195 # Whether we are building with GNU ld or not.
18196 with_gnu_ld=$lt_with_gnu_ld
18197
18198 # Flag that allows shared libraries with undefined symbols to be built.
18199 allow_undefined_flag=$lt_allow_undefined_flag
18200
18201 # Flag that enforces no undefined symbols.
18202 no_undefined_flag=$lt_no_undefined_flag
18203
18204 # Flag to hardcode \$libdir into a binary during linking.
18205 # This must work even if \$libdir does not exist
18206 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18207
18208 # Whether we need a single "-rpath" flag with a separated argument.
18209 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18210
18211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18212 # DIR into the resulting binary.
18213 hardcode_direct=$hardcode_direct
18214
18215 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18216 # DIR into the resulting binary and the resulting library dependency is
18217 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18218 # library is relocated.
18219 hardcode_direct_absolute=$hardcode_direct_absolute
18220
18221 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18222 # into the resulting binary.
18223 hardcode_minus_L=$hardcode_minus_L
18224
18225 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18226 # into the resulting binary.
18227 hardcode_shlibpath_var=$hardcode_shlibpath_var
18228
18229 # Set to "yes" if building a shared library automatically hardcodes DIR
18230 # into the library and all subsequent libraries and executables linked
18231 # against it.
18232 hardcode_automatic=$hardcode_automatic
18233
18234 # Set to yes if linker adds runtime paths of dependent libraries
18235 # to runtime path list.
18236 inherit_rpath=$inherit_rpath
18237
18238 # Whether libtool must link a program against all its dependency libraries.
18239 link_all_deplibs=$link_all_deplibs
18240
18241 # Set to "yes" if exported symbols are required.
18242 always_export_symbols=$always_export_symbols
18243
18244 # The commands to list exported symbols.
18245 export_symbols_cmds=$lt_export_symbols_cmds
18246
18247 # Symbols that should not be listed in the preloaded symbols.
18248 exclude_expsyms=$lt_exclude_expsyms
18249
18250 # Symbols that must always be exported.
18251 include_expsyms=$lt_include_expsyms
18252
18253 # Commands necessary for linking programs (against libraries) with templates.
18254 prelink_cmds=$lt_prelink_cmds
18255
18256 # Commands necessary for finishing linking programs.
18257 postlink_cmds=$lt_postlink_cmds
18258
18259 # Specify filename containing input files.
18260 file_list_spec=$lt_file_list_spec
18261
18262 # How to hardcode a shared library path into an executable.
18263 hardcode_action=$hardcode_action
18264
18265 # The directories searched by this compiler when creating a shared library.
18266 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18267
18268 # Dependencies to place before and after the objects being linked to
18269 # create a shared library.
18270 predep_objects=$lt_predep_objects
18271 postdep_objects=$lt_postdep_objects
18272 predeps=$lt_predeps
18273 postdeps=$lt_postdeps
18274
18275 # The library search path used internally by the compiler when linking
18276 # a shared library.
18277 compiler_lib_search_path=$lt_compiler_lib_search_path
18278
18279 # ### END LIBTOOL CONFIG
18280
18281 _LT_EOF
18282
18283   case $host_os in
18284   aix3*)
18285     cat <<\_LT_EOF >> "$cfgfile"
18286 # AIX sometimes has problems with the GCC collect2 program.  For some
18287 # reason, if we set the COLLECT_NAMES environment variable, the problems
18288 # vanish in a puff of smoke.
18289 if test "X${COLLECT_NAMES+set}" != Xset; then
18290   COLLECT_NAMES=
18291   export COLLECT_NAMES
18292 fi
18293 _LT_EOF
18294     ;;
18295   esac
18296
18297
18298 ltmain="$ac_aux_dir/ltmain.sh"
18299
18300
18301   # We use sed instead of cat because bash on DJGPP gets confused if
18302   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18303   # text mode, it properly converts lines to CR/LF.  This bash problem
18304   # is reportedly fixed, but why not run on old versions too?
18305   sed '$q' "$ltmain" >> "$cfgfile" \
18306      || (rm -f "$cfgfile"; exit 1)
18307
18308   if test x"$xsi_shell" = xyes; then
18309   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18310 func_dirname ()\
18311 {\
18312 \    case ${1} in\
18313 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18314 \      *  ) func_dirname_result="${3}" ;;\
18315 \    esac\
18316 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18317   && mv -f "$cfgfile.tmp" "$cfgfile" \
18318     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18319 test 0 -eq $? || _lt_function_replace_fail=:
18320
18321
18322   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18323 func_basename ()\
18324 {\
18325 \    func_basename_result="${1##*/}"\
18326 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18327   && mv -f "$cfgfile.tmp" "$cfgfile" \
18328     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18329 test 0 -eq $? || _lt_function_replace_fail=:
18330
18331
18332   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18333 func_dirname_and_basename ()\
18334 {\
18335 \    case ${1} in\
18336 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18337 \      *  ) func_dirname_result="${3}" ;;\
18338 \    esac\
18339 \    func_basename_result="${1##*/}"\
18340 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18341   && mv -f "$cfgfile.tmp" "$cfgfile" \
18342     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18343 test 0 -eq $? || _lt_function_replace_fail=:
18344
18345
18346   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18347 func_stripname ()\
18348 {\
18349 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18350 \    # positional parameters, so assign one to ordinary parameter first.\
18351 \    func_stripname_result=${3}\
18352 \    func_stripname_result=${func_stripname_result#"${1}"}\
18353 \    func_stripname_result=${func_stripname_result%"${2}"}\
18354 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18355   && mv -f "$cfgfile.tmp" "$cfgfile" \
18356     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18357 test 0 -eq $? || _lt_function_replace_fail=:
18358
18359
18360   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18361 func_split_long_opt ()\
18362 {\
18363 \    func_split_long_opt_name=${1%%=*}\
18364 \    func_split_long_opt_arg=${1#*=}\
18365 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18366   && mv -f "$cfgfile.tmp" "$cfgfile" \
18367     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18368 test 0 -eq $? || _lt_function_replace_fail=:
18369
18370
18371   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18372 func_split_short_opt ()\
18373 {\
18374 \    func_split_short_opt_arg=${1#??}\
18375 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18376 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18377   && mv -f "$cfgfile.tmp" "$cfgfile" \
18378     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18379 test 0 -eq $? || _lt_function_replace_fail=:
18380
18381
18382   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18383 func_lo2o ()\
18384 {\
18385 \    case ${1} in\
18386 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18387 \      *)    func_lo2o_result=${1} ;;\
18388 \    esac\
18389 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18390   && mv -f "$cfgfile.tmp" "$cfgfile" \
18391     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18392 test 0 -eq $? || _lt_function_replace_fail=:
18393
18394
18395   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18396 func_xform ()\
18397 {\
18398     func_xform_result=${1%.*}.lo\
18399 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18400   && mv -f "$cfgfile.tmp" "$cfgfile" \
18401     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18402 test 0 -eq $? || _lt_function_replace_fail=:
18403
18404
18405   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18406 func_arith ()\
18407 {\
18408     func_arith_result=$(( $* ))\
18409 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18410   && mv -f "$cfgfile.tmp" "$cfgfile" \
18411     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18412 test 0 -eq $? || _lt_function_replace_fail=:
18413
18414
18415   sed -e '/^func_len ()$/,/^} # func_len /c\
18416 func_len ()\
18417 {\
18418     func_len_result=${#1}\
18419 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18420   && mv -f "$cfgfile.tmp" "$cfgfile" \
18421     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18422 test 0 -eq $? || _lt_function_replace_fail=:
18423
18424 fi
18425
18426 if test x"$lt_shell_append" = xyes; then
18427   sed -e '/^func_append ()$/,/^} # func_append /c\
18428 func_append ()\
18429 {\
18430     eval "${1}+=\\${2}"\
18431 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18432   && mv -f "$cfgfile.tmp" "$cfgfile" \
18433     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18434 test 0 -eq $? || _lt_function_replace_fail=:
18435
18436
18437   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18438 func_append_quoted ()\
18439 {\
18440 \    func_quote_for_eval "${2}"\
18441 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18442 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18443   && mv -f "$cfgfile.tmp" "$cfgfile" \
18444     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18445 test 0 -eq $? || _lt_function_replace_fail=:
18446
18447
18448   # Save a `func_append' function call where possible by direct use of '+='
18449   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18450     && mv -f "$cfgfile.tmp" "$cfgfile" \
18451       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18452   test 0 -eq $? || _lt_function_replace_fail=:
18453 else
18454   # Save a `func_append' function call even when '+=' is not available
18455   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18456     && mv -f "$cfgfile.tmp" "$cfgfile" \
18457       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18458   test 0 -eq $? || _lt_function_replace_fail=:
18459 fi
18460
18461 if test x"$_lt_function_replace_fail" = x":"; then
18462   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18463 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18464 fi
18465
18466
18467    mv -f "$cfgfile" "$ofile" ||
18468     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18469   chmod +x "$ofile"
18470
18471
18472     cat <<_LT_EOF >> "$ofile"
18473
18474 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18475
18476 # The linker used to build libraries.
18477 LD=$lt_LD_CXX
18478
18479 # How to create reloadable object files.
18480 reload_flag=$lt_reload_flag_CXX
18481 reload_cmds=$lt_reload_cmds_CXX
18482
18483 # Commands used to build an old-style archive.
18484 old_archive_cmds=$lt_old_archive_cmds_CXX
18485
18486 # A language specific compiler.
18487 CC=$lt_compiler_CXX
18488
18489 # Is the compiler the GNU compiler?
18490 with_gcc=$GCC_CXX
18491
18492 # Compiler flag to turn off builtin functions.
18493 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18494
18495 # Additional compiler flags for building library objects.
18496 pic_flag=$lt_lt_prog_compiler_pic_CXX
18497
18498 # How to pass a linker flag through the compiler.
18499 wl=$lt_lt_prog_compiler_wl_CXX
18500
18501 # Compiler flag to prevent dynamic linking.
18502 link_static_flag=$lt_lt_prog_compiler_static_CXX
18503
18504 # Does compiler simultaneously support -c and -o options?
18505 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18506
18507 # Whether or not to add -lc for building shared libraries.
18508 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18509
18510 # Whether or not to disallow shared libs when runtime libs are static.
18511 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18512
18513 # Compiler flag to allow reflexive dlopens.
18514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18515
18516 # Compiler flag to generate shared objects directly from archives.
18517 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18518
18519 # Whether the compiler copes with passing no objects directly.
18520 compiler_needs_object=$lt_compiler_needs_object_CXX
18521
18522 # Create an old-style archive from a shared archive.
18523 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18524
18525 # Create a temporary old-style archive to link instead of a shared archive.
18526 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18527
18528 # Commands used to build a shared archive.
18529 archive_cmds=$lt_archive_cmds_CXX
18530 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18531
18532 # Commands used to build a loadable module if different from building
18533 # a shared archive.
18534 module_cmds=$lt_module_cmds_CXX
18535 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18536
18537 # Whether we are building with GNU ld or not.
18538 with_gnu_ld=$lt_with_gnu_ld_CXX
18539
18540 # Flag that allows shared libraries with undefined symbols to be built.
18541 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18542
18543 # Flag that enforces no undefined symbols.
18544 no_undefined_flag=$lt_no_undefined_flag_CXX
18545
18546 # Flag to hardcode \$libdir into a binary during linking.
18547 # This must work even if \$libdir does not exist
18548 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18549
18550 # Whether we need a single "-rpath" flag with a separated argument.
18551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18552
18553 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18554 # DIR into the resulting binary.
18555 hardcode_direct=$hardcode_direct_CXX
18556
18557 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18558 # DIR into the resulting binary and the resulting library dependency is
18559 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18560 # library is relocated.
18561 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18562
18563 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18564 # into the resulting binary.
18565 hardcode_minus_L=$hardcode_minus_L_CXX
18566
18567 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18568 # into the resulting binary.
18569 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18570
18571 # Set to "yes" if building a shared library automatically hardcodes DIR
18572 # into the library and all subsequent libraries and executables linked
18573 # against it.
18574 hardcode_automatic=$hardcode_automatic_CXX
18575
18576 # Set to yes if linker adds runtime paths of dependent libraries
18577 # to runtime path list.
18578 inherit_rpath=$inherit_rpath_CXX
18579
18580 # Whether libtool must link a program against all its dependency libraries.
18581 link_all_deplibs=$link_all_deplibs_CXX
18582
18583 # Set to "yes" if exported symbols are required.
18584 always_export_symbols=$always_export_symbols_CXX
18585
18586 # The commands to list exported symbols.
18587 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18588
18589 # Symbols that should not be listed in the preloaded symbols.
18590 exclude_expsyms=$lt_exclude_expsyms_CXX
18591
18592 # Symbols that must always be exported.
18593 include_expsyms=$lt_include_expsyms_CXX
18594
18595 # Commands necessary for linking programs (against libraries) with templates.
18596 prelink_cmds=$lt_prelink_cmds_CXX
18597
18598 # Commands necessary for finishing linking programs.
18599 postlink_cmds=$lt_postlink_cmds_CXX
18600
18601 # Specify filename containing input files.
18602 file_list_spec=$lt_file_list_spec_CXX
18603
18604 # How to hardcode a shared library path into an executable.
18605 hardcode_action=$hardcode_action_CXX
18606
18607 # The directories searched by this compiler when creating a shared library.
18608 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18609
18610 # Dependencies to place before and after the objects being linked to
18611 # create a shared library.
18612 predep_objects=$lt_predep_objects_CXX
18613 postdep_objects=$lt_postdep_objects_CXX
18614 predeps=$lt_predeps_CXX
18615 postdeps=$lt_postdeps_CXX
18616
18617 # The library search path used internally by the compiler when linking
18618 # a shared library.
18619 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18620
18621 # ### END LIBTOOL TAG CONFIG: CXX
18622 _LT_EOF
18623
18624  ;;
18625
18626   esac
18627 done # for ac_tag
18628
18629
18630 as_fn_exit 0
18631 _ACEOF
18632 ac_clean_files=$ac_clean_files_save
18633
18634 test $ac_write_fail = 0 ||
18635   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18636
18637
18638 # configure is writing to config.log, and then calls config.status.
18639 # config.status does its own redirection, appending to config.log.
18640 # Unfortunately, on DOS this fails, as config.log is still kept open
18641 # by configure, so config.status won't be able to write to it; its
18642 # output is simply discarded.  So we exec the FD to /dev/null,
18643 # effectively closing config.log, so it can be properly (re)opened and
18644 # appended to by config.status.  When coming back to configure, we
18645 # need to make the FD available again.
18646 if test "$no_create" != yes; then
18647   ac_cs_success=:
18648   ac_config_status_args=
18649   test "$silent" = yes &&
18650     ac_config_status_args="$ac_config_status_args --quiet"
18651   exec 5>/dev/null
18652   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18653   exec 5>>config.log
18654   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18655   # would make configure fail if this is the last instruction.
18656   $ac_cs_success || as_fn_exit 1
18657 fi
18658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18659   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18660 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18661 fi
18662
18663
18664 abs_srcdir="`cd $srcdir && pwd`"
18665 abs_builddir="`pwd`"
18666 if test "$abs_srcdir" != "$abs_builddir"; then
18667   make mkdir-init
18668 fi