The rounded corners look really dumb at this size.
[wxWidgets.git] / src / expat / 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.0.
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 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: expat-bugs@libexpat.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560
561 # Check that we are running under the correct shell.
562 SHELL=${CONFIG_SHELL-/bin/sh}
563
564 case X$lt_ECHO in
565 X*--fallback-echo)
566   # Remove one level of quotation (which was required for Make).
567   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
568   ;;
569 esac
570
571 ECHO=${lt_ECHO-echo}
572 if test "X$1" = X--no-reexec; then
573   # Discard the --no-reexec flag, and continue.
574   shift
575 elif test "X$1" = X--fallback-echo; then
576   # Avoid inline document here, it may be left over
577   :
578 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
579   # Yippee, $ECHO works!
580   :
581 else
582   # Restart under the correct shell.
583   exec $SHELL "$0" --no-reexec ${1+"$@"}
584 fi
585
586 if test "X$1" = X--fallback-echo; then
587   # used as fallback echo
588   shift
589   cat <<_LT_EOF
590 $*
591 _LT_EOF
592   exit 0
593 fi
594
595 # The HP-UX ksh and POSIX shell print the target directory to stdout
596 # if CDPATH is set.
597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
598
599 if test -z "$lt_ECHO"; then
600   if test "X${echo_test_string+set}" != Xset; then
601     # find a string as large as possible, as long as the shell can cope with it
602     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
605          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
606       then
607         break
608       fi
609     done
610   fi
611
612   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
613      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
614      test "X$echo_testing_string" = "X$echo_test_string"; then
615     :
616   else
617     # The Solaris, AIX, and Digital Unix default echo programs unquote
618     # backslashes.  This makes it impossible to quote backslashes using
619     #   echo "$something" | sed 's/\\/\\\\/g'
620     #
621     # So, first we look for a working echo in the user's PATH.
622
623     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
624     for dir in $PATH /usr/ucb; do
625       IFS="$lt_save_ifs"
626       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
627          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
628          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
629          test "X$echo_testing_string" = "X$echo_test_string"; then
630         ECHO="$dir/echo"
631         break
632       fi
633     done
634     IFS="$lt_save_ifs"
635
636     if test "X$ECHO" = Xecho; then
637       # We didn't find a better echo, so look for alternatives.
638       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
639          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
640          test "X$echo_testing_string" = "X$echo_test_string"; then
641         # This shell has a builtin print -r that does the trick.
642         ECHO='print -r'
643       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
644            test "X$CONFIG_SHELL" != X/bin/ksh; then
645         # If we have ksh, try running configure again with it.
646         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
647         export ORIGINAL_CONFIG_SHELL
648         CONFIG_SHELL=/bin/ksh
649         export CONFIG_SHELL
650         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651       else
652         # Try using printf.
653         ECHO='printf %s\n'
654         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
655            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
656            test "X$echo_testing_string" = "X$echo_test_string"; then
657           # Cool, printf works
658           :
659         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
660              test "X$echo_testing_string" = 'X\t' &&
661              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
662              test "X$echo_testing_string" = "X$echo_test_string"; then
663           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
664           export CONFIG_SHELL
665           SHELL="$CONFIG_SHELL"
666           export SHELL
667           ECHO="$CONFIG_SHELL $0 --fallback-echo"
668         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
669              test "X$echo_testing_string" = 'X\t' &&
670              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
671              test "X$echo_testing_string" = "X$echo_test_string"; then
672           ECHO="$CONFIG_SHELL $0 --fallback-echo"
673         else
674           # maybe with a smaller string...
675           prev=:
676
677           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
678             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
679             then
680               break
681             fi
682             prev="$cmd"
683           done
684
685           if test "$prev" != 'sed 50q "$0"'; then
686             echo_test_string=`eval $prev`
687             export echo_test_string
688             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
689           else
690             # Oops.  We lost completely, so just stick with echo.
691             ECHO=echo
692           fi
693         fi
694       fi
695     fi
696   fi
697 fi
698
699 # Copy echo and quote the copy suitably for passing to libtool from
700 # the Makefile, instead of quoting the original, which is used later.
701 lt_ECHO=$ECHO
702 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
703    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 fi
705
706
707
708
709 test -n "$DJDIR" || exec 7<&0 </dev/null
710 exec 6>&1
711
712 # Name of the host.
713 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
714 # so uname gets run too.
715 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
717 #
718 # Initializations.
719 #
720 ac_default_prefix=/usr/local
721 ac_clean_files=
722 ac_config_libobj_dir=.
723 LIBOBJS=
724 cross_compiling=no
725 subdirs=
726 MFLAGS=
727 MAKEFLAGS=
728
729 # Identity of this package.
730 PACKAGE_NAME='expat'
731 PACKAGE_TARNAME='expat'
732 PACKAGE_VERSION='2.1.0'
733 PACKAGE_STRING='expat 2.1.0'
734 PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
735 PACKAGE_URL=''
736
737 ac_unique_file="Makefile.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 #  include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #  include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
773
774 ac_header_list=
775 ac_subst_vars='LTLIBOBJS
776 LIBOBJS
777 FILEMAP
778 INSTALL_DATA
779 INSTALL_SCRIPT
780 INSTALL_PROGRAM
781 CXXCPP
782 ac_ct_CXX
783 CXXFLAGS
784 CXX
785 LIBAGE
786 LIBREVISION
787 LIBCURRENT
788 CPP
789 OTOOL64
790 OTOOL
791 LIPO
792 NMEDIT
793 DSYMUTIL
794 lt_ECHO
795 RANLIB
796 STRIP
797 AR
798 LN_S
799 NM
800 ac_ct_DUMPBIN
801 DUMPBIN
802 LD
803 FGREP
804 EGREP
805 GREP
806 SED
807 LIBTOOL
808 OBJDUMP
809 DLLTOOL
810 AS
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 OBJEXT
820 EXEEXT
821 ac_ct_CC
822 CPPFLAGS
823 LDFLAGS
824 CFLAGS
825 CC
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_shared
868 enable_static
869 with_pic
870 enable_fast_install
871 with_gnu_ld
872 enable_libtool_lock
873 '
874       ac_precious_vars='build_alias
875 host_alias
876 target_alias
877 CC
878 CFLAGS
879 LDFLAGS
880 LIBS
881 CPPFLAGS
882 CPP
883 CXX
884 CXXFLAGS
885 CCC
886 CXXCPP'
887
888
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
910
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
936
937 ac_prev=
938 ac_dashdash=
939 for ac_option
940 do
941   # If the previous option needs an argument, assign it.
942   if test -n "$ac_prev"; then
943     eval $ac_prev=\$ac_option
944     ac_prev=
945     continue
946   fi
947
948   case $ac_option in
949   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950   *=)   ac_optarg= ;;
951   *)    ac_optarg=yes ;;
952   esac
953
954   # Accept the important Cygnus configure options, so we can diagnose typos.
955
956   case $ac_dashdash$ac_option in
957   --)
958     ac_dashdash=yes ;;
959
960   -bindir | --bindir | --bindi | --bind | --bin | --bi)
961     ac_prev=bindir ;;
962   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963     bindir=$ac_optarg ;;
964
965   -build | --build | --buil | --bui | --bu)
966     ac_prev=build_alias ;;
967   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968     build_alias=$ac_optarg ;;
969
970   -cache-file | --cache-file | --cache-fil | --cache-fi \
971   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972     ac_prev=cache_file ;;
973   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975     cache_file=$ac_optarg ;;
976
977   --config-cache | -C)
978     cache_file=config.cache ;;
979
980   -datadir | --datadir | --datadi | --datad)
981     ac_prev=datadir ;;
982   -datadir=* | --datadir=* | --datadi=* | --datad=*)
983     datadir=$ac_optarg ;;
984
985   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986   | --dataroo | --dataro | --datar)
987     ac_prev=datarootdir ;;
988   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990     datarootdir=$ac_optarg ;;
991
992   -disable-* | --disable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       as_fn_error $? "invalid feature name: $ac_useropt"
997     ac_useropt_orig=$ac_useropt
998     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999     case $ac_user_opts in
1000       *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004          ac_unrecognized_sep=', ';;
1005     esac
1006     eval enable_$ac_useropt=no ;;
1007
1008   -docdir | --docdir | --docdi | --doc | --do)
1009     ac_prev=docdir ;;
1010   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011     docdir=$ac_optarg ;;
1012
1013   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014     ac_prev=dvidir ;;
1015   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016     dvidir=$ac_optarg ;;
1017
1018   -enable-* | --enable-*)
1019     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022       as_fn_error $? "invalid feature name: $ac_useropt"
1023     ac_useropt_orig=$ac_useropt
1024     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025     case $ac_user_opts in
1026       *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030          ac_unrecognized_sep=', ';;
1031     esac
1032     eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036   | --exec | --exe | --ex)
1037     ac_prev=exec_prefix ;;
1038   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040   | --exec=* | --exe=* | --ex=*)
1041     exec_prefix=$ac_optarg ;;
1042
1043   -gas | --gas | --ga | --g)
1044     # Obsolete; use --with-gas.
1045     with_gas=yes ;;
1046
1047   -help | --help | --hel | --he | -h)
1048     ac_init_help=long ;;
1049   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050     ac_init_help=recursive ;;
1051   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052     ac_init_help=short ;;
1053
1054   -host | --host | --hos | --ho)
1055     ac_prev=host_alias ;;
1056   -host=* | --host=* | --hos=* | --ho=*)
1057     host_alias=$ac_optarg ;;
1058
1059   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060     ac_prev=htmldir ;;
1061   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062   | --ht=*)
1063     htmldir=$ac_optarg ;;
1064
1065   -includedir | --includedir | --includedi | --included | --include \
1066   | --includ | --inclu | --incl | --inc)
1067     ac_prev=includedir ;;
1068   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069   | --includ=* | --inclu=* | --incl=* | --inc=*)
1070     includedir=$ac_optarg ;;
1071
1072   -infodir | --infodir | --infodi | --infod | --info | --inf)
1073     ac_prev=infodir ;;
1074   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075     infodir=$ac_optarg ;;
1076
1077   -libdir | --libdir | --libdi | --libd)
1078     ac_prev=libdir ;;
1079   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080     libdir=$ac_optarg ;;
1081
1082   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083   | --libexe | --libex | --libe)
1084     ac_prev=libexecdir ;;
1085   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086   | --libexe=* | --libex=* | --libe=*)
1087     libexecdir=$ac_optarg ;;
1088
1089   -localedir | --localedir | --localedi | --localed | --locale)
1090     ac_prev=localedir ;;
1091   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092     localedir=$ac_optarg ;;
1093
1094   -localstatedir | --localstatedir | --localstatedi | --localstated \
1095   | --localstate | --localstat | --localsta | --localst | --locals)
1096     ac_prev=localstatedir ;;
1097   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099     localstatedir=$ac_optarg ;;
1100
1101   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102     ac_prev=mandir ;;
1103   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104     mandir=$ac_optarg ;;
1105
1106   -nfp | --nfp | --nf)
1107     # Obsolete; use --without-fp.
1108     with_fp=no ;;
1109
1110   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111   | --no-cr | --no-c | -n)
1112     no_create=yes ;;
1113
1114   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116     no_recursion=yes ;;
1117
1118   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120   | --oldin | --oldi | --old | --ol | --o)
1121     ac_prev=oldincludedir ;;
1122   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125     oldincludedir=$ac_optarg ;;
1126
1127   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128     ac_prev=prefix ;;
1129   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130     prefix=$ac_optarg ;;
1131
1132   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133   | --program-pre | --program-pr | --program-p)
1134     ac_prev=program_prefix ;;
1135   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137     program_prefix=$ac_optarg ;;
1138
1139   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140   | --program-suf | --program-su | --program-s)
1141     ac_prev=program_suffix ;;
1142   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144     program_suffix=$ac_optarg ;;
1145
1146   -program-transform-name | --program-transform-name \
1147   | --program-transform-nam | --program-transform-na \
1148   | --program-transform-n | --program-transform- \
1149   | --program-transform | --program-transfor \
1150   | --program-transfo | --program-transf \
1151   | --program-trans | --program-tran \
1152   | --progr-tra | --program-tr | --program-t)
1153     ac_prev=program_transform_name ;;
1154   -program-transform-name=* | --program-transform-name=* \
1155   | --program-transform-nam=* | --program-transform-na=* \
1156   | --program-transform-n=* | --program-transform-=* \
1157   | --program-transform=* | --program-transfor=* \
1158   | --program-transfo=* | --program-transf=* \
1159   | --program-trans=* | --program-tran=* \
1160   | --progr-tra=* | --program-tr=* | --program-t=*)
1161     program_transform_name=$ac_optarg ;;
1162
1163   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164     ac_prev=pdfdir ;;
1165   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166     pdfdir=$ac_optarg ;;
1167
1168   -psdir | --psdir | --psdi | --psd | --ps)
1169     ac_prev=psdir ;;
1170   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171     psdir=$ac_optarg ;;
1172
1173   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174   | -silent | --silent | --silen | --sile | --sil)
1175     silent=yes ;;
1176
1177   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178     ac_prev=sbindir ;;
1179   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180   | --sbi=* | --sb=*)
1181     sbindir=$ac_optarg ;;
1182
1183   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185   | --sharedst | --shareds | --shared | --share | --shar \
1186   | --sha | --sh)
1187     ac_prev=sharedstatedir ;;
1188   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191   | --sha=* | --sh=*)
1192     sharedstatedir=$ac_optarg ;;
1193
1194   -site | --site | --sit)
1195     ac_prev=site ;;
1196   -site=* | --site=* | --sit=*)
1197     site=$ac_optarg ;;
1198
1199   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200     ac_prev=srcdir ;;
1201   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202     srcdir=$ac_optarg ;;
1203
1204   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205   | --syscon | --sysco | --sysc | --sys | --sy)
1206     ac_prev=sysconfdir ;;
1207   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209     sysconfdir=$ac_optarg ;;
1210
1211   -target | --target | --targe | --targ | --tar | --ta | --t)
1212     ac_prev=target_alias ;;
1213   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214     target_alias=$ac_optarg ;;
1215
1216   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217     verbose=yes ;;
1218
1219   -version | --version | --versio | --versi | --vers | -V)
1220     ac_init_version=: ;;
1221
1222   -with-* | --with-*)
1223     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226       as_fn_error $? "invalid package name: $ac_useropt"
1227     ac_useropt_orig=$ac_useropt
1228     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229     case $ac_user_opts in
1230       *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234          ac_unrecognized_sep=', ';;
1235     esac
1236     eval with_$ac_useropt=\$ac_optarg ;;
1237
1238   -without-* | --without-*)
1239     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242       as_fn_error $? "invalid package name: $ac_useropt"
1243     ac_useropt_orig=$ac_useropt
1244     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245     case $ac_user_opts in
1246       *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250          ac_unrecognized_sep=', ';;
1251     esac
1252     eval with_$ac_useropt=no ;;
1253
1254   --x)
1255     # Obsolete; use --with-x.
1256     with_x=yes ;;
1257
1258   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259   | --x-incl | --x-inc | --x-in | --x-i)
1260     ac_prev=x_includes ;;
1261   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263     x_includes=$ac_optarg ;;
1264
1265   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267     ac_prev=x_libraries ;;
1268   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270     x_libraries=$ac_optarg ;;
1271
1272   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1274     ;;
1275
1276   *=*)
1277     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278     # Reject names that are not valid shell variable names.
1279     case $ac_envvar in #(
1280       '' | [0-9]* | *[!_$as_cr_alnum]* )
1281       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282     esac
1283     eval $ac_envvar=\$ac_optarg
1284     export $ac_envvar ;;
1285
1286   *)
1287     # FIXME: should be removed in autoconf 3.0.
1288     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292     ;;
1293
1294   esac
1295 done
1296
1297 if test -n "$ac_prev"; then
1298   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299   as_fn_error $? "missing argument to $ac_option"
1300 fi
1301
1302 if test -n "$ac_unrecognized_opts"; then
1303   case $enable_option_checking in
1304     no) ;;
1305     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307   esac
1308 fi
1309
1310 # Check all directory arguments for consistency.
1311 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312                 datadir sysconfdir sharedstatedir localstatedir includedir \
1313                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314                 libdir localedir mandir
1315 do
1316   eval ac_val=\$$ac_var
1317   # Remove trailing slashes.
1318   case $ac_val in
1319     */ )
1320       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321       eval $ac_var=\$ac_val;;
1322   esac
1323   # Be sure to have absolute directory names.
1324   case $ac_val in
1325     [\\/$]* | ?:[\\/]* )  continue;;
1326     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327   esac
1328   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340   if test "x$build_alias" = x; then
1341     cross_compiling=maybe
1342   elif test "x$build_alias" != "x$host_alias"; then
1343     cross_compiling=yes
1344   fi
1345 fi
1346
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350 test "$silent" = yes && exec 6>/dev/null
1351
1352
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356   as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358   as_fn_error $? "pwd does not report name of working directory"
1359
1360
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363   ac_srcdir_defaulted=yes
1364   # Try the directory containing this script, then the parent directory.
1365   ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367          X"$as_myself" : 'X\(//\)[^/]' \| \
1368          X"$as_myself" : 'X\(//\)$' \| \
1369          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372             s//\1/
1373             q
1374           }
1375           /^X\(\/\/\)[^/].*/{
1376             s//\1/
1377             q
1378           }
1379           /^X\(\/\/\)$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\).*/{
1384             s//\1/
1385             q
1386           }
1387           s/.*/./; q'`
1388   srcdir=$ac_confdir
1389   if test ! -r "$srcdir/$ac_unique_file"; then
1390     srcdir=..
1391   fi
1392 else
1393   ac_srcdir_defaulted=no
1394 fi
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398 fi
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402         pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405   srcdir=.
1406 fi
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 for ac_var in $ac_precious_vars; do
1414   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415   eval ac_env_${ac_var}_value=\$${ac_var}
1416   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1419
1420 #
1421 # Report the --help message.
1422 #
1423 if test "$ac_init_help" = "long"; then
1424   # Omit some internal or obsolete options to make the list less imposing.
1425   # This message is too long to be a string in the A/UX 3.1 sh.
1426   cat <<_ACEOF
1427 \`configure' configures expat 2.1.0 to adapt to many kinds of systems.
1428
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE.  See below for descriptions of some of the useful variables.
1433
1434 Defaults for the options are specified in brackets.
1435
1436 Configuration:
1437   -h, --help              display this help and exit
1438       --help=short        display options specific to this package
1439       --help=recursive    display the short help of all the included packages
1440   -V, --version           display version information and exit
1441   -q, --quiet, --silent   do not print \`checking ...' messages
1442       --cache-file=FILE   cache test results in FILE [disabled]
1443   -C, --config-cache      alias for \`--cache-file=config.cache'
1444   -n, --no-create         do not create output files
1445       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1446
1447 Installation directories:
1448   --prefix=PREFIX         install architecture-independent files in PREFIX
1449                           [$ac_default_prefix]
1450   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1451                           [PREFIX]
1452
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1457
1458 For better control, use the options below.
1459
1460 Fine tuning of the installation directories:
1461   --bindir=DIR            user executables [EPREFIX/bin]
1462   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1463   --libexecdir=DIR        program executables [EPREFIX/libexec]
1464   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1465   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1466   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1467   --libdir=DIR            object code libraries [EPREFIX/lib]
1468   --includedir=DIR        C header files [PREFIX/include]
1469   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1470   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1471   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1472   --infodir=DIR           info documentation [DATAROOTDIR/info]
1473   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1474   --mandir=DIR            man documentation [DATAROOTDIR/man]
1475   --docdir=DIR            documentation root [DATAROOTDIR/doc/expat]
1476   --htmldir=DIR           html documentation [DOCDIR]
1477   --dvidir=DIR            dvi documentation [DOCDIR]
1478   --pdfdir=DIR            pdf documentation [DOCDIR]
1479   --psdir=DIR             ps documentation [DOCDIR]
1480 _ACEOF
1481
1482   cat <<\_ACEOF
1483
1484 System types:
1485   --build=BUILD     configure for building on BUILD [guessed]
1486   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491   case $ac_init_help in
1492      short | recursive ) echo "Configuration of expat 2.1.0:";;
1493    esac
1494   cat <<\_ACEOF
1495
1496 Optional Features:
1497   --disable-option-checking  ignore unrecognized --enable/--with options
1498   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1499   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1500   --enable-shared[=PKGS]  build shared libraries [default=yes]
1501   --enable-static[=PKGS]  build static libraries [default=yes]
1502   --enable-fast-install[=PKGS]
1503                           optimize for fast installation [default=yes]
1504   --disable-libtool-lock  avoid locking (might break parallel builds)
1505
1506 Optional Packages:
1507   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509   --with-pic              try to use only PIC/non-PIC objects [default=use
1510                           both]
1511   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1512
1513 Some influential environment variables:
1514   CC          C compiler command
1515   CFLAGS      C compiler flags
1516   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1517               nonstandard directory <lib dir>
1518   LIBS        libraries to pass to the linker, e.g. -l<library>
1519   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520               you have headers in a nonstandard directory <include dir>
1521   CPP         C preprocessor
1522   CXX         C++ compiler command
1523   CXXFLAGS    C++ compiler flags
1524   CXXCPP      C++ preprocessor
1525
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 Report bugs to <expat-bugs@libexpat.org>.
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535   # If there are subdirs, report their specific --help.
1536   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537     test -d "$ac_dir" ||
1538       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539       continue
1540     ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1546   # A ".." for each directory in $ac_dir_suffix.
1547   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548   case $ac_top_builddir_sub in
1549   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551   esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559   .)  # We are building in place.
1560     ac_srcdir=.
1561     ac_top_srcdir=$ac_top_builddir_sub
1562     ac_abs_top_srcdir=$ac_pwd ;;
1563   [\\/]* | ?:[\\/]* )  # Absolute name.
1564     ac_srcdir=$srcdir$ac_dir_suffix;
1565     ac_top_srcdir=$srcdir
1566     ac_abs_top_srcdir=$srcdir ;;
1567   *) # Relative name.
1568     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569     ac_top_srcdir=$ac_top_build_prefix$srcdir
1570     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574     cd "$ac_dir" || { ac_status=$?; continue; }
1575     # Check for guested configure.
1576     if test -f "$ac_srcdir/configure.gnu"; then
1577       echo &&
1578       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579     elif test -f "$ac_srcdir/configure"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure" --help=recursive
1582     else
1583       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584     fi || ac_status=$?
1585     cd "$ac_pwd" || { ac_status=$?; break; }
1586   done
1587 fi
1588
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591   cat <<\_ACEOF
1592 expat configure 2.1.0
1593 generated by GNU Autoconf 2.69
1594
1595 Copyright (C) 2012 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599   exit
1600 fi
1601
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1605
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1610 {
1611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612   rm -f conftest.$ac_objext
1613   if { { ac_try="$ac_compile"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_compile") 2>conftest.err
1621   ac_status=$?
1622   if test -s conftest.err; then
1623     grep -v '^ *+' conftest.err >conftest.er1
1624     cat conftest.er1 >&5
1625     mv -f conftest.er1 conftest.err
1626   fi
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; } && {
1629          test -z "$ac_c_werror_flag" ||
1630          test ! -s conftest.err
1631        } && test -s conftest.$ac_objext; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637         ac_retval=1
1638 fi
1639   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640   as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_compile
1643
1644 # ac_fn_c_try_link LINENO
1645 # -----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_link ()
1648 {
1649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650   rm -f conftest.$ac_objext conftest$ac_exeext
1651   if { { ac_try="$ac_link"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_link") 2>conftest.err
1659   ac_status=$?
1660   if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664   fi
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; } && {
1667          test -z "$ac_c_werror_flag" ||
1668          test ! -s conftest.err
1669        } && test -s conftest$ac_exeext && {
1670          test "$cross_compiling" = yes ||
1671          test -x conftest$ac_exeext
1672        }; then :
1673   ac_retval=0
1674 else
1675   $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678         ac_retval=1
1679 fi
1680   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1681   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1682   # interfere with the next link command; also delete a directory that is
1683   # left behind by Apple's compiler.  We do this before executing the actions.
1684   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686   as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_link
1689
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700   $as_echo_n "(cached) " >&6
1701 else
1702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h.  */
1704 $4
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708   eval "$3=yes"
1709 else
1710   eval "$3=no"
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 fi
1714 eval ac_res=\$$3
1715                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719 } # ac_fn_c_check_header_compile
1720
1721 # ac_fn_c_try_cpp LINENO
1722 # ----------------------
1723 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_cpp ()
1725 {
1726   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727   if { { ac_try="$ac_cpp conftest.$ac_ext"
1728 case "(($ac_try" in
1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730   *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1735   ac_status=$?
1736   if test -s conftest.err; then
1737     grep -v '^ *+' conftest.err >conftest.er1
1738     cat conftest.er1 >&5
1739     mv -f conftest.er1 conftest.err
1740   fi
1741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742   test $ac_status = 0; } > conftest.i && {
1743          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1744          test ! -s conftest.err
1745        }; then :
1746   ac_retval=0
1747 else
1748   $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751     ac_retval=1
1752 fi
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_cpp
1757
1758 # ac_fn_c_try_run LINENO
1759 # ----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1761 # that executables *can* be run.
1762 ac_fn_c_try_run ()
1763 {
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_link") 2>&5
1773   ac_status=$?
1774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1776   { { case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_try") 2>&5
1783   ac_status=$?
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; }; }; then :
1786   ac_retval=0
1787 else
1788   $as_echo "$as_me: program exited with status $ac_status" >&5
1789        $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792        ac_retval=$ac_status
1793 fi
1794   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796   as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_run
1799
1800 # ac_fn_c_check_func LINENO FUNC VAR
1801 # ----------------------------------
1802 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1803 ac_fn_c_check_func ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809   $as_echo_n "(cached) " >&6
1810 else
1811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h.  */
1813 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1815 #define $2 innocuous_$2
1816
1817 /* System header to define __stub macros and hopefully few prototypes,
1818     which can conflict with char $2 (); below.
1819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1820     <limits.h> exists even on freestanding compilers.  */
1821
1822 #ifdef __STDC__
1823 # include <limits.h>
1824 #else
1825 # include <assert.h>
1826 #endif
1827
1828 #undef $2
1829
1830 /* Override any GCC internal prototype to avoid an error.
1831    Use char because int might match the return type of a GCC
1832    builtin and then its argument prototype would still apply.  */
1833 #ifdef __cplusplus
1834 extern "C"
1835 #endif
1836 char $2 ();
1837 /* The GNU C library defines this for functions which it implements
1838     to always fail with ENOSYS.  Some functions are actually named
1839     something starting with __ and the normal name is an alias.  */
1840 #if defined __stub_$2 || defined __stub___$2
1841 choke me
1842 #endif
1843
1844 int
1845 main ()
1846 {
1847 return $2 ();
1848   ;
1849   return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_link "$LINENO"; then :
1853   eval "$3=yes"
1854 else
1855   eval "$3=no"
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext \
1858     conftest$ac_exeext conftest.$ac_ext
1859 fi
1860 eval ac_res=\$$3
1861                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865 } # ac_fn_c_check_func
1866
1867 # ac_fn_cxx_try_compile LINENO
1868 # ----------------------------
1869 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_compile ()
1871 {
1872   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873   rm -f conftest.$ac_objext
1874   if { { ac_try="$ac_compile"
1875 case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_compile") 2>conftest.err
1882   ac_status=$?
1883   if test -s conftest.err; then
1884     grep -v '^ *+' conftest.err >conftest.er1
1885     cat conftest.er1 >&5
1886     mv -f conftest.er1 conftest.err
1887   fi
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; } && {
1890          test -z "$ac_cxx_werror_flag" ||
1891          test ! -s conftest.err
1892        } && test -s conftest.$ac_objext; then :
1893   ac_retval=0
1894 else
1895   $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898         ac_retval=1
1899 fi
1900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901   as_fn_set_status $ac_retval
1902
1903 } # ac_fn_cxx_try_compile
1904
1905 # ac_fn_cxx_try_cpp LINENO
1906 # ------------------------
1907 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_cxx_try_cpp ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   if { { ac_try="$ac_cpp conftest.$ac_ext"
1912 case "(($ac_try" in
1913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914   *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1919   ac_status=$?
1920   if test -s conftest.err; then
1921     grep -v '^ *+' conftest.err >conftest.er1
1922     cat conftest.er1 >&5
1923     mv -f conftest.er1 conftest.err
1924   fi
1925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926   test $ac_status = 0; } > conftest.i && {
1927          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1928          test ! -s conftest.err
1929        }; then :
1930   ac_retval=0
1931 else
1932   $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1934
1935     ac_retval=1
1936 fi
1937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938   as_fn_set_status $ac_retval
1939
1940 } # ac_fn_cxx_try_cpp
1941
1942 # ac_fn_cxx_try_link LINENO
1943 # -------------------------
1944 # Try to link conftest.$ac_ext, and return whether this succeeded.
1945 ac_fn_cxx_try_link ()
1946 {
1947   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948   rm -f conftest.$ac_objext conftest$ac_exeext
1949   if { { ac_try="$ac_link"
1950 case "(($ac_try" in
1951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952   *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956   (eval "$ac_link") 2>conftest.err
1957   ac_status=$?
1958   if test -s conftest.err; then
1959     grep -v '^ *+' conftest.err >conftest.er1
1960     cat conftest.er1 >&5
1961     mv -f conftest.er1 conftest.err
1962   fi
1963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964   test $ac_status = 0; } && {
1965          test -z "$ac_cxx_werror_flag" ||
1966          test ! -s conftest.err
1967        } && test -s conftest$ac_exeext && {
1968          test "$cross_compiling" = yes ||
1969          test -x conftest$ac_exeext
1970        }; then :
1971   ac_retval=0
1972 else
1973   $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1975
1976         ac_retval=1
1977 fi
1978   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1979   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1980   # interfere with the next link command; also delete a directory that is
1981   # left behind by Apple's compiler.  We do this before executing the actions.
1982   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1983   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984   as_fn_set_status $ac_retval
1985
1986 } # ac_fn_cxx_try_link
1987
1988 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1989 # -------------------------------------------
1990 # Tests whether TYPE exists after having included INCLUDES, setting cache
1991 # variable VAR accordingly.
1992 ac_fn_c_check_type ()
1993 {
1994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval \${$3+:} false; then :
1998   $as_echo_n "(cached) " >&6
1999 else
2000   eval "$3=no"
2001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 $4
2004 int
2005 main ()
2006 {
2007 if (sizeof ($2))
2008          return 0;
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2016 $4
2017 int
2018 main ()
2019 {
2020 if (sizeof (($2)))
2021             return 0;
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027
2028 else
2029   eval "$3=yes"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 fi
2035 eval ac_res=\$$3
2036                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040 } # ac_fn_c_check_type
2041
2042 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2043 # -------------------------------------------------------
2044 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2045 # the include files in INCLUDES and setting the cache variable VAR
2046 # accordingly.
2047 ac_fn_c_check_header_mongrel ()
2048 {
2049   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050   if eval \${$3+:} false; then :
2051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval \${$3+:} false; then :
2054   $as_echo_n "(cached) " >&6
2055 fi
2056 eval ac_res=\$$3
2057                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 else
2060   # Is the header compilable?
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2062 $as_echo_n "checking $2 usability... " >&6; }
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h.  */
2065 $4
2066 #include <$2>
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069   ac_header_compiler=yes
2070 else
2071   ac_header_compiler=no
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2075 $as_echo "$ac_header_compiler" >&6; }
2076
2077 # Is the header present?
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2079 $as_echo_n "checking $2 presence... " >&6; }
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h.  */
2082 #include <$2>
2083 _ACEOF
2084 if ac_fn_c_try_cpp "$LINENO"; then :
2085   ac_header_preproc=yes
2086 else
2087   ac_header_preproc=no
2088 fi
2089 rm -f conftest.err conftest.i conftest.$ac_ext
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2091 $as_echo "$ac_header_preproc" >&6; }
2092
2093 # So?  What about this header?
2094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2095   yes:no: )
2096     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2097 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2098     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2099 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2100     ;;
2101   no:yes:* )
2102     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2103 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2104     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2105 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2106     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2107 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2108     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2109 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2110     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2111 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2112 ( $as_echo "## -------------------------------------- ##
2113 ## Report this to expat-bugs@libexpat.org ##
2114 ## -------------------------------------- ##"
2115      ) | sed "s/^/$as_me: WARNING:     /" >&2
2116     ;;
2117 esac
2118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119 $as_echo_n "checking for $2... " >&6; }
2120 if eval \${$3+:} false; then :
2121   $as_echo_n "(cached) " >&6
2122 else
2123   eval "$3=\$ac_header_compiler"
2124 fi
2125 eval ac_res=\$$3
2126                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 fi
2129   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130
2131 } # ac_fn_c_check_header_mongrel
2132 cat >config.log <<_ACEOF
2133 This file contains any messages produced by compilers while
2134 running configure, to aid debugging if configure makes a mistake.
2135
2136 It was created by expat $as_me 2.1.0, which was
2137 generated by GNU Autoconf 2.69.  Invocation command line was
2138
2139   $ $0 $@
2140
2141 _ACEOF
2142 exec 5>>config.log
2143 {
2144 cat <<_ASUNAME
2145 ## --------- ##
2146 ## Platform. ##
2147 ## --------- ##
2148
2149 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2150 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2151 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2152 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2153 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2154
2155 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2156 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2157
2158 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2159 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2160 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2161 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2162 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2163 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2164 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2165
2166 _ASUNAME
2167
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2170 do
2171   IFS=$as_save_IFS
2172   test -z "$as_dir" && as_dir=.
2173     $as_echo "PATH: $as_dir"
2174   done
2175 IFS=$as_save_IFS
2176
2177 } >&5
2178
2179 cat >&5 <<_ACEOF
2180
2181
2182 ## ----------- ##
2183 ## Core tests. ##
2184 ## ----------- ##
2185
2186 _ACEOF
2187
2188
2189 # Keep a trace of the command line.
2190 # Strip out --no-create and --no-recursion so they do not pile up.
2191 # Strip out --silent because we don't want to record it for future runs.
2192 # Also quote any args containing shell meta-characters.
2193 # Make two passes to allow for proper duplicate-argument suppression.
2194 ac_configure_args=
2195 ac_configure_args0=
2196 ac_configure_args1=
2197 ac_must_keep_next=false
2198 for ac_pass in 1 2
2199 do
2200   for ac_arg
2201   do
2202     case $ac_arg in
2203     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205     | -silent | --silent | --silen | --sile | --sil)
2206       continue ;;
2207     *\'*)
2208       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2209     esac
2210     case $ac_pass in
2211     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2212     2)
2213       as_fn_append ac_configure_args1 " '$ac_arg'"
2214       if test $ac_must_keep_next = true; then
2215         ac_must_keep_next=false # Got value, back to normal.
2216       else
2217         case $ac_arg in
2218           *=* | --config-cache | -C | -disable-* | --disable-* \
2219           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221           | -with-* | --with-* | -without-* | --without-* | --x)
2222             case "$ac_configure_args0 " in
2223               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2224             esac
2225             ;;
2226           -* ) ac_must_keep_next=true ;;
2227         esac
2228       fi
2229       as_fn_append ac_configure_args " '$ac_arg'"
2230       ;;
2231     esac
2232   done
2233 done
2234 { ac_configure_args0=; unset ac_configure_args0;}
2235 { ac_configure_args1=; unset ac_configure_args1;}
2236
2237 # When interrupted or exit'd, cleanup temporary files, and complete
2238 # config.log.  We remove comments because anyway the quotes in there
2239 # would cause problems or look ugly.
2240 # WARNING: Use '\'' to represent an apostrophe within the trap.
2241 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2242 trap 'exit_status=$?
2243   # Save into config.log some information that might help in debugging.
2244   {
2245     echo
2246
2247     $as_echo "## ---------------- ##
2248 ## Cache variables. ##
2249 ## ---------------- ##"
2250     echo
2251     # The following way of writing the cache mishandles newlines in values,
2252 (
2253   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2254     eval ac_val=\$$ac_var
2255     case $ac_val in #(
2256     *${as_nl}*)
2257       case $ac_var in #(
2258       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2259 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2260       esac
2261       case $ac_var in #(
2262       _ | IFS | as_nl) ;; #(
2263       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2264       *) { eval $ac_var=; unset $ac_var;} ;;
2265       esac ;;
2266     esac
2267   done
2268   (set) 2>&1 |
2269     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2270     *${as_nl}ac_space=\ *)
2271       sed -n \
2272         "s/'\''/'\''\\\\'\'''\''/g;
2273           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2274       ;; #(
2275     *)
2276       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2277       ;;
2278     esac |
2279     sort
2280 )
2281     echo
2282
2283     $as_echo "## ----------------- ##
2284 ## Output variables. ##
2285 ## ----------------- ##"
2286     echo
2287     for ac_var in $ac_subst_vars
2288     do
2289       eval ac_val=\$$ac_var
2290       case $ac_val in
2291       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292       esac
2293       $as_echo "$ac_var='\''$ac_val'\''"
2294     done | sort
2295     echo
2296
2297     if test -n "$ac_subst_files"; then
2298       $as_echo "## ------------------- ##
2299 ## File substitutions. ##
2300 ## ------------------- ##"
2301       echo
2302       for ac_var in $ac_subst_files
2303       do
2304         eval ac_val=\$$ac_var
2305         case $ac_val in
2306         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2307         esac
2308         $as_echo "$ac_var='\''$ac_val'\''"
2309       done | sort
2310       echo
2311     fi
2312
2313     if test -s confdefs.h; then
2314       $as_echo "## ----------- ##
2315 ## confdefs.h. ##
2316 ## ----------- ##"
2317       echo
2318       cat confdefs.h
2319       echo
2320     fi
2321     test "$ac_signal" != 0 &&
2322       $as_echo "$as_me: caught signal $ac_signal"
2323     $as_echo "$as_me: exit $exit_status"
2324   } >&5
2325   rm -f core *.core core.conftest.* &&
2326     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2327     exit $exit_status
2328 ' 0
2329 for ac_signal in 1 2 13 15; do
2330   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2331 done
2332 ac_signal=0
2333
2334 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2335 rm -f -r conftest* confdefs.h
2336
2337 $as_echo "/* confdefs.h */" > confdefs.h
2338
2339 # Predefined preprocessor variables.
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_NAME "$PACKAGE_NAME"
2343 _ACEOF
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2347 _ACEOF
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2351 _ACEOF
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_STRING "$PACKAGE_STRING"
2355 _ACEOF
2356
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2359 _ACEOF
2360
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_URL "$PACKAGE_URL"
2363 _ACEOF
2364
2365
2366 # Let the site file select an alternate cache file if it wants to.
2367 # Prefer an explicitly selected file to automatically selected ones.
2368 ac_site_file1=NONE
2369 ac_site_file2=NONE
2370 if test -n "$CONFIG_SITE"; then
2371   # We do not want a PATH search for config.site.
2372   case $CONFIG_SITE in #((
2373     -*)  ac_site_file1=./$CONFIG_SITE;;
2374     */*) ac_site_file1=$CONFIG_SITE;;
2375     *)   ac_site_file1=./$CONFIG_SITE;;
2376   esac
2377 elif test "x$prefix" != xNONE; then
2378   ac_site_file1=$prefix/share/config.site
2379   ac_site_file2=$prefix/etc/config.site
2380 else
2381   ac_site_file1=$ac_default_prefix/share/config.site
2382   ac_site_file2=$ac_default_prefix/etc/config.site
2383 fi
2384 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2385 do
2386   test "x$ac_site_file" = xNONE && continue
2387   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2389 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2390     sed 's/^/| /' "$ac_site_file" >&5
2391     . "$ac_site_file" \
2392       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2394 as_fn_error $? "failed to load site script $ac_site_file
2395 See \`config.log' for more details" "$LINENO" 5; }
2396   fi
2397 done
2398
2399 if test -r "$cache_file"; then
2400   # Some versions of bash will fail to source /dev/null (special files
2401   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2402   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2403     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2404 $as_echo "$as_me: loading cache $cache_file" >&6;}
2405     case $cache_file in
2406       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2407       *)                      . "./$cache_file";;
2408     esac
2409   fi
2410 else
2411   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2412 $as_echo "$as_me: creating cache $cache_file" >&6;}
2413   >$cache_file
2414 fi
2415
2416 as_fn_append ac_header_list " stdlib.h"
2417 as_fn_append ac_header_list " unistd.h"
2418 as_fn_append ac_header_list " sys/param.h"
2419 # Check that the precious variables saved in the cache have kept the same
2420 # value.
2421 ac_cache_corrupted=false
2422 for ac_var in $ac_precious_vars; do
2423   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424   eval ac_new_set=\$ac_env_${ac_var}_set
2425   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426   eval ac_new_val=\$ac_env_${ac_var}_value
2427   case $ac_old_set,$ac_new_set in
2428     set,)
2429       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431       ac_cache_corrupted=: ;;
2432     ,set)
2433       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435       ac_cache_corrupted=: ;;
2436     ,);;
2437     *)
2438       if test "x$ac_old_val" != "x$ac_new_val"; then
2439         # differences in whitespace do not lead to failure.
2440         ac_old_val_w=`echo x $ac_old_val`
2441         ac_new_val_w=`echo x $ac_new_val`
2442         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445           ac_cache_corrupted=:
2446         else
2447           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449           eval $ac_var=\$ac_old_val
2450         fi
2451         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2452 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2453         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2454 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2455       fi;;
2456   esac
2457   # Pass precious variables to config.status.
2458   if test "$ac_new_set" = set; then
2459     case $ac_new_val in
2460     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461     *) ac_arg=$ac_var=$ac_new_val ;;
2462     esac
2463     case " $ac_configure_args " in
2464       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2465       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466     esac
2467   fi
2468 done
2469 if $ac_cache_corrupted; then
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2474   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2475 fi
2476 ## -------------------- ##
2477 ## Main body of script. ##
2478 ## -------------------- ##
2479
2480 ac_ext=c
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485
2486
2487
2488
2489
2490 ac_aux_dir=
2491 for ac_dir in conftools "$srcdir"/conftools; do
2492   if test -f "$ac_dir/install-sh"; then
2493     ac_aux_dir=$ac_dir
2494     ac_install_sh="$ac_aux_dir/install-sh -c"
2495     break
2496   elif test -f "$ac_dir/install.sh"; then
2497     ac_aux_dir=$ac_dir
2498     ac_install_sh="$ac_aux_dir/install.sh -c"
2499     break
2500   elif test -f "$ac_dir/shtool"; then
2501     ac_aux_dir=$ac_dir
2502     ac_install_sh="$ac_aux_dir/shtool install -c"
2503     break
2504   fi
2505 done
2506 if test -z "$ac_aux_dir"; then
2507   as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2508 fi
2509
2510 # These three variables are undocumented and unsupported,
2511 # and are intended to be withdrawn in a future Autoconf release.
2512 # They can cause serious problems if a builder's source tree is in a directory
2513 # whose full name contains unusual characters.
2514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2516 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2517
2518
2519
2520
2521
2522
2523 LIBCURRENT=7
2524 LIBREVISION=0
2525 LIBAGE=6
2526
2527 ac_config_headers="$ac_config_headers expat_config.h"
2528
2529
2530
2531
2532
2533
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539 if test -n "$ac_tool_prefix"; then
2540   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543 $as_echo_n "checking for $ac_word... " >&6; }
2544 if ${ac_cv_prog_CC+:} false; then :
2545   $as_echo_n "(cached) " >&6
2546 else
2547   if test -n "$CC"; then
2548   ac_cv_prog_CC="$CC" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553   IFS=$as_save_IFS
2554   test -z "$as_dir" && as_dir=.
2555     for ac_exec_ext in '' $ac_executable_extensions; do
2556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559     break 2
2560   fi
2561 done
2562   done
2563 IFS=$as_save_IFS
2564
2565 fi
2566 fi
2567 CC=$ac_cv_prog_CC
2568 if test -n "$CC"; then
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2570 $as_echo "$CC" >&6; }
2571 else
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2574 fi
2575
2576
2577 fi
2578 if test -z "$ac_cv_prog_CC"; then
2579   ac_ct_CC=$CC
2580   # Extract the first word of "gcc", so it can be a program name with args.
2581 set dummy gcc; ac_word=$2
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583 $as_echo_n "checking for $ac_word... " >&6; }
2584 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2585   $as_echo_n "(cached) " >&6
2586 else
2587   if test -n "$ac_ct_CC"; then
2588   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595     for ac_exec_ext in '' $ac_executable_extensions; do
2596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597     ac_cv_prog_ac_ct_CC="gcc"
2598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602   done
2603 IFS=$as_save_IFS
2604
2605 fi
2606 fi
2607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2608 if test -n "$ac_ct_CC"; then
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2610 $as_echo "$ac_ct_CC" >&6; }
2611 else
2612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2614 fi
2615
2616   if test "x$ac_ct_CC" = x; then
2617     CC=""
2618   else
2619     case $cross_compiling:$ac_tool_warned in
2620 yes:)
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2623 ac_tool_warned=yes ;;
2624 esac
2625     CC=$ac_ct_CC
2626   fi
2627 else
2628   CC="$ac_cv_prog_CC"
2629 fi
2630
2631 if test -z "$CC"; then
2632           if test -n "$ac_tool_prefix"; then
2633     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2634 set dummy ${ac_tool_prefix}cc; ac_word=$2
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636 $as_echo_n "checking for $ac_word... " >&6; }
2637 if ${ac_cv_prog_CC+:} false; then :
2638   $as_echo_n "(cached) " >&6
2639 else
2640   if test -n "$CC"; then
2641   ac_cv_prog_CC="$CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646   IFS=$as_save_IFS
2647   test -z "$as_dir" && as_dir=.
2648     for ac_exec_ext in '' $ac_executable_extensions; do
2649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650     ac_cv_prog_CC="${ac_tool_prefix}cc"
2651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652     break 2
2653   fi
2654 done
2655   done
2656 IFS=$as_save_IFS
2657
2658 fi
2659 fi
2660 CC=$ac_cv_prog_CC
2661 if test -n "$CC"; then
2662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2663 $as_echo "$CC" >&6; }
2664 else
2665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666 $as_echo "no" >&6; }
2667 fi
2668
2669
2670   fi
2671 fi
2672 if test -z "$CC"; then
2673   # Extract the first word of "cc", so it can be a program name with args.
2674 set dummy cc; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if ${ac_cv_prog_CC+:} false; then :
2678   $as_echo_n "(cached) " >&6
2679 else
2680   if test -n "$CC"; then
2681   ac_cv_prog_CC="$CC" # Let the user override the test.
2682 else
2683   ac_prog_rejected=no
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689     for ac_exec_ext in '' $ac_executable_extensions; do
2690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2692        ac_prog_rejected=yes
2693        continue
2694      fi
2695     ac_cv_prog_CC="cc"
2696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697     break 2
2698   fi
2699 done
2700   done
2701 IFS=$as_save_IFS
2702
2703 if test $ac_prog_rejected = yes; then
2704   # We found a bogon in the path, so make sure we never use it.
2705   set dummy $ac_cv_prog_CC
2706   shift
2707   if test $# != 0; then
2708     # We chose a different compiler from the bogus one.
2709     # However, it has the same basename, so the bogon will be chosen
2710     # first if we set CC to just the basename; use the full file name.
2711     shift
2712     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2713   fi
2714 fi
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2721 else
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727 fi
2728 if test -z "$CC"; then
2729   if test -n "$ac_tool_prefix"; then
2730   for ac_prog in cl.exe
2731   do
2732     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_CC+:} false; then :
2737   $as_echo_n "(cached) " >&6
2738 else
2739   if test -n "$CC"; then
2740   ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745   IFS=$as_save_IFS
2746   test -z "$as_dir" && as_dir=.
2747     for ac_exec_ext in '' $ac_executable_extensions; do
2748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751     break 2
2752   fi
2753 done
2754   done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762 $as_echo "$CC" >&6; }
2763 else
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769     test -n "$CC" && break
2770   done
2771 fi
2772 if test -z "$CC"; then
2773   ac_ct_CC=$CC
2774   for ac_prog in cl.exe
2775 do
2776   # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   if test -n "$ac_ct_CC"; then
2784   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791     for ac_exec_ext in '' $ac_executable_extensions; do
2792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793     ac_cv_prog_ac_ct_CC="$ac_prog"
2794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795     break 2
2796   fi
2797 done
2798   done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2806 $as_echo "$ac_ct_CC" >&6; }
2807 else
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813   test -n "$ac_ct_CC" && break
2814 done
2815
2816   if test "x$ac_ct_CC" = x; then
2817     CC=""
2818   else
2819     case $cross_compiling:$ac_tool_warned in
2820 yes:)
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2823 ac_tool_warned=yes ;;
2824 esac
2825     CC=$ac_ct_CC
2826   fi
2827 fi
2828
2829 fi
2830
2831
2832 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2834 as_fn_error $? "no acceptable C compiler found in \$PATH
2835 See \`config.log' for more details" "$LINENO" 5; }
2836
2837 # Provide some information about the compiler.
2838 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2839 set X $ac_compile
2840 ac_compiler=$2
2841 for ac_option in --version -v -V -qversion; do
2842   { { ac_try="$ac_compiler $ac_option >&5"
2843 case "(($ac_try" in
2844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845   *) ac_try_echo=$ac_try;;
2846 esac
2847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2848 $as_echo "$ac_try_echo"; } >&5
2849   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2850   ac_status=$?
2851   if test -s conftest.err; then
2852     sed '10a\
2853 ... rest of stderr output deleted ...
2854          10q' conftest.err >conftest.er1
2855     cat conftest.er1 >&5
2856   fi
2857   rm -f conftest.er1 conftest.err
2858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2859   test $ac_status = 0; }
2860 done
2861
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h.  */
2864
2865 int
2866 main ()
2867 {
2868
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 ac_clean_files_save=$ac_clean_files
2874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2875 # Try to create an executable without -o first, disregard a.out.
2876 # It will help us diagnose broken compilers, and finding out an intuition
2877 # of exeext.
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2879 $as_echo_n "checking whether the C compiler works... " >&6; }
2880 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2881
2882 # The possible output files:
2883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2884
2885 ac_rmfiles=
2886 for ac_file in $ac_files
2887 do
2888   case $ac_file in
2889     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2890     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2891   esac
2892 done
2893 rm -f $ac_rmfiles
2894
2895 if { { ac_try="$ac_link_default"
2896 case "(($ac_try" in
2897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898   *) ac_try_echo=$ac_try;;
2899 esac
2900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901 $as_echo "$ac_try_echo"; } >&5
2902   (eval "$ac_link_default") 2>&5
2903   ac_status=$?
2904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2905   test $ac_status = 0; }; then :
2906   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2907 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2908 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2909 # so that the user can short-circuit this test for compilers unknown to
2910 # Autoconf.
2911 for ac_file in $ac_files ''
2912 do
2913   test -f "$ac_file" || continue
2914   case $ac_file in
2915     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2916         ;;
2917     [ab].out )
2918         # We found the default executable, but exeext='' is most
2919         # certainly right.
2920         break;;
2921     *.* )
2922         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2923         then :; else
2924            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925         fi
2926         # We set ac_cv_exeext here because the later test for it is not
2927         # safe: cross compilers may not add the suffix if given an `-o'
2928         # argument, so we may need to know it at that point already.
2929         # Even if this section looks crufty: it has the advantage of
2930         # actually working.
2931         break;;
2932     * )
2933         break;;
2934   esac
2935 done
2936 test "$ac_cv_exeext" = no && ac_cv_exeext=
2937
2938 else
2939   ac_file=''
2940 fi
2941 if test -z "$ac_file"; then :
2942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 $as_echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 as_fn_error 77 "C compiler cannot create executables
2950 See \`config.log' for more details" "$LINENO" 5; }
2951 else
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2953 $as_echo "yes" >&6; }
2954 fi
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2956 $as_echo_n "checking for C compiler default output file name... " >&6; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2958 $as_echo "$ac_file" >&6; }
2959 ac_exeext=$ac_cv_exeext
2960
2961 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2962 ac_clean_files=$ac_clean_files_save
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2964 $as_echo_n "checking for suffix of executables... " >&6; }
2965 if { { ac_try="$ac_link"
2966 case "(($ac_try" in
2967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968   *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971 $as_echo "$ac_try_echo"; } >&5
2972   (eval "$ac_link") 2>&5
2973   ac_status=$?
2974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975   test $ac_status = 0; }; then :
2976   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2977 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2978 # work properly (i.e., refer to `conftest.exe'), while it won't with
2979 # `rm'.
2980 for ac_file in conftest.exe conftest conftest.*; do
2981   test -f "$ac_file" || continue
2982   case $ac_file in
2983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2984     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2985           break;;
2986     * ) break;;
2987   esac
2988 done
2989 else
2990   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2993 See \`config.log' for more details" "$LINENO" 5; }
2994 fi
2995 rm -f conftest conftest$ac_cv_exeext
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2997 $as_echo "$ac_cv_exeext" >&6; }
2998
2999 rm -f conftest.$ac_ext
3000 EXEEXT=$ac_cv_exeext
3001 ac_exeext=$EXEEXT
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h.  */
3004 #include <stdio.h>
3005 int
3006 main ()
3007 {
3008 FILE *f = fopen ("conftest.out", "w");
3009  return ferror (f) || fclose (f) != 0;
3010
3011   ;
3012   return 0;
3013 }
3014 _ACEOF
3015 ac_clean_files="$ac_clean_files conftest.out"
3016 # Check that the compiler produces executables we can run.  If not, either
3017 # the compiler is broken, or we cross compile.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3019 $as_echo_n "checking whether we are cross compiling... " >&6; }
3020 if test "$cross_compiling" != yes; then
3021   { { ac_try="$ac_link"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028   (eval "$ac_link") 2>&5
3029   ac_status=$?
3030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031   test $ac_status = 0; }
3032   if { ac_try='./conftest$ac_cv_exeext'
3033   { { case "(($ac_try" in
3034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035   *) ac_try_echo=$ac_try;;
3036 esac
3037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038 $as_echo "$ac_try_echo"; } >&5
3039   (eval "$ac_try") 2>&5
3040   ac_status=$?
3041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042   test $ac_status = 0; }; }; then
3043     cross_compiling=no
3044   else
3045     if test "$cross_compiling" = maybe; then
3046         cross_compiling=yes
3047     else
3048         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error $? "cannot run C compiled programs.
3051 If you meant to cross compile, use \`--host'.
3052 See \`config.log' for more details" "$LINENO" 5; }
3053     fi
3054   fi
3055 fi
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3057 $as_echo "$cross_compiling" >&6; }
3058
3059 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3060 ac_clean_files=$ac_clean_files_save
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3062 $as_echo_n "checking for suffix of object files... " >&6; }
3063 if ${ac_cv_objext+:} false; then :
3064   $as_echo_n "(cached) " >&6
3065 else
3066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h.  */
3068
3069 int
3070 main ()
3071 {
3072
3073   ;
3074   return 0;
3075 }
3076 _ACEOF
3077 rm -f conftest.o conftest.obj
3078 if { { ac_try="$ac_compile"
3079 case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 $as_echo "$ac_try_echo"; } >&5
3085   (eval "$ac_compile") 2>&5
3086   ac_status=$?
3087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088   test $ac_status = 0; }; then :
3089   for ac_file in conftest.o conftest.obj conftest.*; do
3090   test -f "$ac_file" || continue;
3091   case $ac_file in
3092     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3093     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3094        break;;
3095   esac
3096 done
3097 else
3098   $as_echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error $? "cannot compute suffix of object files: cannot compile
3104 See \`config.log' for more details" "$LINENO" 5; }
3105 fi
3106 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3107 fi
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3109 $as_echo "$ac_cv_objext" >&6; }
3110 OBJEXT=$ac_cv_objext
3111 ac_objext=$OBJEXT
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3113 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3114 if ${ac_cv_c_compiler_gnu+:} false; then :
3115   $as_echo_n "(cached) " >&6
3116 else
3117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h.  */
3119
3120 int
3121 main ()
3122 {
3123 #ifndef __GNUC__
3124        choke me
3125 #endif
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 if ac_fn_c_try_compile "$LINENO"; then :
3132   ac_compiler_gnu=yes
3133 else
3134   ac_compiler_gnu=no
3135 fi
3136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3138
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3142 if test $ac_compiler_gnu = yes; then
3143   GCC=yes
3144 else
3145   GCC=
3146 fi
3147 ac_test_CFLAGS=${CFLAGS+set}
3148 ac_save_CFLAGS=$CFLAGS
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3151 if ${ac_cv_prog_cc_g+:} false; then :
3152   $as_echo_n "(cached) " >&6
3153 else
3154   ac_save_c_werror_flag=$ac_c_werror_flag
3155    ac_c_werror_flag=yes
3156    ac_cv_prog_cc_g=no
3157    CFLAGS="-g"
3158    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 if ac_fn_c_try_compile "$LINENO"; then :
3170   ac_cv_prog_cc_g=yes
3171 else
3172   CFLAGS=""
3173       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h.  */
3175
3176 int
3177 main ()
3178 {
3179
3180   ;
3181   return 0;
3182 }
3183 _ACEOF
3184 if ac_fn_c_try_compile "$LINENO"; then :
3185
3186 else
3187   ac_c_werror_flag=$ac_save_c_werror_flag
3188          CFLAGS="-g"
3189          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h.  */
3191
3192 int
3193 main ()
3194 {
3195
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 if ac_fn_c_try_compile "$LINENO"; then :
3201   ac_cv_prog_cc_g=yes
3202 fi
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 fi
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 fi
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208    ac_c_werror_flag=$ac_save_c_werror_flag
3209 fi
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3211 $as_echo "$ac_cv_prog_cc_g" >&6; }
3212 if test "$ac_test_CFLAGS" = set; then
3213   CFLAGS=$ac_save_CFLAGS
3214 elif test $ac_cv_prog_cc_g = yes; then
3215   if test "$GCC" = yes; then
3216     CFLAGS="-g -O2"
3217   else
3218     CFLAGS="-g"
3219   fi
3220 else
3221   if test "$GCC" = yes; then
3222     CFLAGS="-O2"
3223   else
3224     CFLAGS=
3225   fi
3226 fi
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3228 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3229 if ${ac_cv_prog_cc_c89+:} false; then :
3230   $as_echo_n "(cached) " >&6
3231 else
3232   ac_cv_prog_cc_c89=no
3233 ac_save_CC=$CC
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h.  */
3236 #include <stdarg.h>
3237 #include <stdio.h>
3238 struct stat;
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3243      char **p;
3244      int i;
3245 {
3246   return p[i];
3247 }
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3249 {
3250   char *s;
3251   va_list v;
3252   va_start (v,p);
3253   s = g (p, va_arg (v,int));
3254   va_end (v);
3255   return s;
3256 }
3257
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3259    function prototypes and stuff, but not '\xHH' hex character constants.
3260    These don't provoke an error unfortunately, instead are silently treated
3261    as 'x'.  The following induces an error, until -std is added to get
3262    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3263    array size at least.  It's necessary to write '\x00'==0 to get something
3264    that's true only with -std.  */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268    inside strings and character constants.  */
3269 #define FOO(x) 'x'
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276 int argc;
3277 char **argv;
3278 int
3279 main ()
3280 {
3281 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3288 do
3289   CC="$ac_save_CC $ac_arg"
3290   if ac_fn_c_try_compile "$LINENO"; then :
3291   ac_cv_prog_cc_c89=$ac_arg
3292 fi
3293 rm -f core conftest.err conftest.$ac_objext
3294   test "x$ac_cv_prog_cc_c89" != "xno" && break
3295 done
3296 rm -f conftest.$ac_ext
3297 CC=$ac_save_CC
3298
3299 fi
3300 # AC_CACHE_VAL
3301 case "x$ac_cv_prog_cc_c89" in
3302   x)
3303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3304 $as_echo "none needed" >&6; } ;;
3305   xno)
3306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3307 $as_echo "unsupported" >&6; } ;;
3308   *)
3309     CC="$CC $ac_cv_prog_cc_c89"
3310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3312 esac
3313 if test "x$ac_cv_prog_cc_c89" != xno; then :
3314
3315 fi
3316
3317 ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323
3324
3325
3326
3327
3328
3329
3330     ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335
3336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel C compiler" >&5
3337 $as_echo_n "checking whether we are using the Intel C compiler... " >&6; }
3338 if ${bakefile_cv_c_compiler___INTEL_COMPILER+:} false; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h.  */
3343
3344 int
3345 main ()
3346 {
3347
3348              #ifndef __INTEL_COMPILER
3349                 choke me
3350              #endif
3351
3352   ;
3353   return 0;
3354 }
3355 _ACEOF
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357   bakefile_cv_c_compiler___INTEL_COMPILER=yes
3358 else
3359   bakefile_cv_c_compiler___INTEL_COMPILER=no
3360
3361 fi
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363
3364
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
3367 $as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
3368     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
3369         :; INTELCC=yes
3370     else
3371         :;
3372     fi
3373     ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378
3379
3380
3381
3382         if test "$INTELCC" = "yes"; then
3383
3384
3385     ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler v8 or later" >&5
3392 $as_echo_n "checking whether we are using Intel C compiler v8 or later... " >&6; }
3393 if ${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+:} false; then :
3394   $as_echo_n "(cached) " >&6
3395 else
3396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h.  */
3398
3399 int
3400 main ()
3401 {
3402
3403              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
3404                 choke me
3405              #endif
3406
3407   ;
3408   return 0;
3409 }
3410 _ACEOF
3411 if ac_fn_c_try_compile "$LINENO"; then :
3412   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
3413 else
3414   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
3415
3416 fi
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418
3419
3420 fi
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
3422 $as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
3423     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
3424         :; INTELCC8=yes
3425     else
3426         :;
3427     fi
3428     ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434
3435
3436
3437
3438     ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
3444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler v10 or later" >&5
3445 $as_echo_n "checking whether we are using Intel C compiler v10 or later... " >&6; }
3446 if ${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+:} false; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h.  */
3451
3452 int
3453 main ()
3454 {
3455
3456              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
3457                 choke me
3458              #endif
3459
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 if ac_fn_c_try_compile "$LINENO"; then :
3465   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
3466 else
3467   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
3468
3469 fi
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471
3472
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
3475 $as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
3476     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
3477         :; INTELCC10=yes
3478     else
3479         :;
3480     fi
3481     ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488
3489     fi
3490
3491         if test "x$GCC" != "xyes"; then
3492         if test "xCC" = "xC"; then
3493             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler requires -ext o" >&5
3494 $as_echo_n "checking if the C compiler requires -ext o... " >&6; }
3495 if ${bakefile_cv_c_exto+:} false; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 rm -f conftest.$ac_objext conftest.$ac_ext.o
3510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
3511   (eval $ac_compile) 2>&5
3512   ac_status=$?
3513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514   test $ac_status = 0; }; then :
3515   for ac_file in `(ls conftest.* 2>/dev/null)`; do
3516     case $ac_file in
3517         conftest.$ac_ext.o)
3518             bakefile_cv_c_exto="-ext o"
3519             ;;
3520         *)
3521             ;;
3522     esac
3523 done
3524 else
3525   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot figure out if compiler needs -ext o: cannot compile
3528 See \`config.log' for more details" "$LINENO" 5; }
3529
3530 fi
3531 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
3532
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_exto" >&5
3535 $as_echo "$bakefile_cv_c_exto" >&6; }
3536 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3537     if test "c" = "c"; then
3538         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
3539     fi
3540     if test "c" = "cxx"; then
3541         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
3542     fi
3543 fi
3544
3545             if test "x$bakefile_cv_c_exto" '!=' "x"; then
3546                 unset ac_cv_prog_cc_g
3547                 ac_test_CFLAGS=${CFLAGS+set}
3548 ac_save_CFLAGS=$CFLAGS
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3550 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3551 if ${ac_cv_prog_cc_g+:} false; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   ac_save_c_werror_flag=$ac_c_werror_flag
3555    ac_c_werror_flag=yes
3556    ac_cv_prog_cc_g=no
3557    CFLAGS="-g"
3558    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h.  */
3560
3561 int
3562 main ()
3563 {
3564
3565   ;
3566   return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570   ac_cv_prog_cc_g=yes
3571 else
3572   CFLAGS=""
3573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h.  */
3575
3576 int
3577 main ()
3578 {
3579
3580   ;
3581   return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585
3586 else
3587   ac_c_werror_flag=$ac_save_c_werror_flag
3588          CFLAGS="-g"
3589          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h.  */
3591
3592 int
3593 main ()
3594 {
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601   ac_cv_prog_cc_g=yes
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608    ac_c_werror_flag=$ac_save_c_werror_flag
3609 fi
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3611 $as_echo "$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613   CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615   if test "$GCC" = yes; then
3616     CFLAGS="-g -O2"
3617   else
3618     CFLAGS="-g"
3619   fi
3620 else
3621   if test "$GCC" = yes; then
3622     CFLAGS="-O2"
3623   else
3624     CFLAGS=
3625   fi
3626 fi
3627             fi
3628         fi
3629
3630                         case `uname -s` in
3631             AIX*)
3632
3633
3634     ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639
3640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C compiler" >&5
3641 $as_echo_n "checking whether we are using the IBM xlC C compiler... " >&6; }
3642 if ${bakefile_cv_c_compiler___xlC__+:} false; then :
3643   $as_echo_n "(cached) " >&6
3644 else
3645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h.  */
3647
3648 int
3649 main ()
3650 {
3651
3652              #ifndef __xlC__
3653                 choke me
3654              #endif
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 if ac_fn_c_try_compile "$LINENO"; then :
3661   bakefile_cv_c_compiler___xlC__=yes
3662 else
3663   bakefile_cv_c_compiler___xlC__=no
3664
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667
3668
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___xlC__" >&5
3671 $as_echo "$bakefile_cv_c_compiler___xlC__" >&6; }
3672     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
3673         :; XLCC=yes
3674     else
3675         :;
3676     fi
3677     ac_ext=c
3678 ac_cpp='$CPP $CPPFLAGS'
3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682
3683
3684
3685                 ;;
3686
3687             Darwin)
3688
3689
3690     ac_ext=c
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695
3696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Metrowerks C compiler" >&5
3697 $as_echo_n "checking whether we are using the Metrowerks C compiler... " >&6; }
3698 if ${bakefile_cv_c_compiler___MWERKS__+:} false; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h.  */
3703
3704 int
3705 main ()
3706 {
3707
3708              #ifndef __MWERKS__
3709                 choke me
3710              #endif
3711
3712   ;
3713   return 0;
3714 }
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717   bakefile_cv_c_compiler___MWERKS__=yes
3718 else
3719   bakefile_cv_c_compiler___MWERKS__=no
3720
3721 fi
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723
3724
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___MWERKS__" >&5
3727 $as_echo "$bakefile_cv_c_compiler___MWERKS__" >&6; }
3728     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
3729         :; MWCC=yes
3730     else
3731         :;
3732     fi
3733     ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738
3739
3740
3741                 if test "$MWCC" != "yes"; then
3742
3743
3744     ac_ext=c
3745 ac_cpp='$CPP $CPPFLAGS'
3746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749
3750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C compiler" >&5
3751 $as_echo_n "checking whether we are using the IBM xlC C compiler... " >&6; }
3752 if ${bakefile_cv_c_compiler___xlC__+:} false; then :
3753   $as_echo_n "(cached) " >&6
3754 else
3755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h.  */
3757
3758 int
3759 main ()
3760 {
3761
3762              #ifndef __xlC__
3763                 choke me
3764              #endif
3765
3766   ;
3767   return 0;
3768 }
3769 _ACEOF
3770 if ac_fn_c_try_compile "$LINENO"; then :
3771   bakefile_cv_c_compiler___xlC__=yes
3772 else
3773   bakefile_cv_c_compiler___xlC__=no
3774
3775 fi
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777
3778
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___xlC__" >&5
3781 $as_echo "$bakefile_cv_c_compiler___xlC__" >&6; }
3782     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
3783         :; XLCC=yes
3784     else
3785         :;
3786     fi
3787     ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
3793
3794
3795                 fi
3796                 ;;
3797
3798             IRIX*)
3799
3800
3801     ac_ext=c
3802 ac_cpp='$CPP $CPPFLAGS'
3803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the SGI C compiler" >&5
3808 $as_echo_n "checking whether we are using the SGI C compiler... " >&6; }
3809 if ${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+:} false; then :
3810   $as_echo_n "(cached) " >&6
3811 else
3812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h.  */
3814
3815 int
3816 main ()
3817 {
3818
3819              #ifndef _SGI_COMPILER_VERSION
3820                 choke me
3821              #endif
3822
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 if ac_fn_c_try_compile "$LINENO"; then :
3828   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
3829 else
3830   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
3831
3832 fi
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834
3835
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
3838 $as_echo "$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
3839     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
3840         :; SGICC=yes
3841     else
3842         :;
3843     fi
3844     ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849
3850
3851
3852                 ;;
3853
3854             Linux*)
3855                                                 if test "$INTELCC" != "yes"; then
3856
3857
3858     ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863
3864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C compiler" >&5
3865 $as_echo_n "checking whether we are using the Sun C compiler... " >&6; }
3866 if ${bakefile_cv_c_compiler___SUNPRO_C+:} false; then :
3867   $as_echo_n "(cached) " >&6
3868 else
3869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h.  */
3871
3872 int
3873 main ()
3874 {
3875
3876              #ifndef __SUNPRO_C
3877                 choke me
3878              #endif
3879
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 if ac_fn_c_try_compile "$LINENO"; then :
3885   bakefile_cv_c_compiler___SUNPRO_C=yes
3886 else
3887   bakefile_cv_c_compiler___SUNPRO_C=no
3888
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891
3892
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
3895 $as_echo "$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
3896     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
3897         :; SUNCC=yes
3898     else
3899         :;
3900     fi
3901     ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907
3908
3909                 fi
3910                 ;;
3911
3912             HP-UX*)
3913
3914
3915     ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920
3921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the HP C compiler" >&5
3922 $as_echo_n "checking whether we are using the HP C compiler... " >&6; }
3923 if ${bakefile_cv_c_compiler___HP_cc+:} false; then :
3924   $as_echo_n "(cached) " >&6
3925 else
3926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h.  */
3928
3929 int
3930 main ()
3931 {
3932
3933              #ifndef __HP_cc
3934                 choke me
3935              #endif
3936
3937   ;
3938   return 0;
3939 }
3940 _ACEOF
3941 if ac_fn_c_try_compile "$LINENO"; then :
3942   bakefile_cv_c_compiler___HP_cc=yes
3943 else
3944   bakefile_cv_c_compiler___HP_cc=no
3945
3946 fi
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948
3949
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___HP_cc" >&5
3952 $as_echo "$bakefile_cv_c_compiler___HP_cc" >&6; }
3953     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
3954         :; HPCC=yes
3955     else
3956         :;
3957     fi
3958     ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964
3965
3966                 ;;
3967
3968             OSF1)
3969
3970
3971     ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976
3977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Compaq C compiler" >&5
3978 $as_echo_n "checking whether we are using the Compaq C compiler... " >&6; }
3979 if ${bakefile_cv_c_compiler___DECC+:} false; then :
3980   $as_echo_n "(cached) " >&6
3981 else
3982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h.  */
3984
3985 int
3986 main ()
3987 {
3988
3989              #ifndef __DECC
3990                 choke me
3991              #endif
3992
3993   ;
3994   return 0;
3995 }
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998   bakefile_cv_c_compiler___DECC=yes
3999 else
4000   bakefile_cv_c_compiler___DECC=no
4001
4002 fi
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004
4005
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___DECC" >&5
4008 $as_echo "$bakefile_cv_c_compiler___DECC" >&6; }
4009     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
4010         :; COMPAQCC=yes
4011     else
4012         :;
4013     fi
4014     ac_ext=c
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019
4020
4021
4022                 ;;
4023
4024             SunOS)
4025
4026
4027     ac_ext=c
4028 ac_cpp='$CPP $CPPFLAGS'
4029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4032
4033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C compiler" >&5
4034 $as_echo_n "checking whether we are using the Sun C compiler... " >&6; }
4035 if ${bakefile_cv_c_compiler___SUNPRO_C+:} false; then :
4036   $as_echo_n "(cached) " >&6
4037 else
4038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h.  */
4040
4041 int
4042 main ()
4043 {
4044
4045              #ifndef __SUNPRO_C
4046                 choke me
4047              #endif
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054   bakefile_cv_c_compiler___SUNPRO_C=yes
4055 else
4056   bakefile_cv_c_compiler___SUNPRO_C=no
4057
4058 fi
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060
4061
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
4064 $as_echo "$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
4065     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
4066         :; SUNCC=yes
4067     else
4068         :;
4069     fi
4070     ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076
4077
4078                 ;;
4079         esac
4080     fi
4081
4082
4083
4084 # Make sure we can run config.sub.
4085 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4086   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4087
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4089 $as_echo_n "checking build system type... " >&6; }
4090 if ${ac_cv_build+:} false; then :
4091   $as_echo_n "(cached) " >&6
4092 else
4093   ac_build_alias=$build_alias
4094 test "x$ac_build_alias" = x &&
4095   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4096 test "x$ac_build_alias" = x &&
4097   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4098 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4099   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4100
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4103 $as_echo "$ac_cv_build" >&6; }
4104 case $ac_cv_build in
4105 *-*-*) ;;
4106 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4107 esac
4108 build=$ac_cv_build
4109 ac_save_IFS=$IFS; IFS='-'
4110 set x $ac_cv_build
4111 shift
4112 build_cpu=$1
4113 build_vendor=$2
4114 shift; shift
4115 # Remember, the first character of IFS is used to create $*,
4116 # except with old shells:
4117 build_os=$*
4118 IFS=$ac_save_IFS
4119 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4120
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4123 $as_echo_n "checking host system type... " >&6; }
4124 if ${ac_cv_host+:} false; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   if test "x$host_alias" = x; then
4128   ac_cv_host=$ac_cv_build
4129 else
4130   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4131     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4132 fi
4133
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4136 $as_echo "$ac_cv_host" >&6; }
4137 case $ac_cv_host in
4138 *-*-*) ;;
4139 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4140 esac
4141 host=$ac_cv_host
4142 ac_save_IFS=$IFS; IFS='-'
4143 set x $ac_cv_host
4144 shift
4145 host_cpu=$1
4146 host_vendor=$2
4147 shift; shift
4148 # Remember, the first character of IFS is used to create $*,
4149 # except with old shells:
4150 host_os=$*
4151 IFS=$ac_save_IFS
4152 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4153
4154
4155 enable_win32_dll=yes
4156
4157 case $host in
4158 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4159   if test -n "$ac_tool_prefix"; then
4160   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}as; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if ${ac_cv_prog_AS+:} false; then :
4165   $as_echo_n "(cached) " >&6
4166 else
4167   if test -n "$AS"; then
4168   ac_cv_prog_AS="$AS" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175     for ac_exec_ext in '' $ac_executable_extensions; do
4176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177     ac_cv_prog_AS="${ac_tool_prefix}as"
4178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179     break 2
4180   fi
4181 done
4182   done
4183 IFS=$as_save_IFS
4184
4185 fi
4186 fi
4187 AS=$ac_cv_prog_AS
4188 if test -n "$AS"; then
4189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4190 $as_echo "$AS" >&6; }
4191 else
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4194 fi
4195
4196
4197 fi
4198 if test -z "$ac_cv_prog_AS"; then
4199   ac_ct_AS=$AS
4200   # Extract the first word of "as", so it can be a program name with args.
4201 set dummy as; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4205   $as_echo_n "(cached) " >&6
4206 else
4207   if test -n "$ac_ct_AS"; then
4208   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215     for ac_exec_ext in '' $ac_executable_extensions; do
4216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217     ac_cv_prog_ac_ct_AS="as"
4218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222   done
4223 IFS=$as_save_IFS
4224
4225 fi
4226 fi
4227 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4228 if test -n "$ac_ct_AS"; then
4229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4230 $as_echo "$ac_ct_AS" >&6; }
4231 else
4232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 fi
4235
4236   if test "x$ac_ct_AS" = x; then
4237     AS="false"
4238   else
4239     case $cross_compiling:$ac_tool_warned in
4240 yes:)
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243 ac_tool_warned=yes ;;
4244 esac
4245     AS=$ac_ct_AS
4246   fi
4247 else
4248   AS="$ac_cv_prog_AS"
4249 fi
4250
4251   if test -n "$ac_tool_prefix"; then
4252   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4253 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if ${ac_cv_prog_DLLTOOL+:} false; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259   if test -n "$DLLTOOL"; then
4260   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265   IFS=$as_save_IFS
4266   test -z "$as_dir" && as_dir=.
4267     for ac_exec_ext in '' $ac_executable_extensions; do
4268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271     break 2
4272   fi
4273 done
4274   done
4275 IFS=$as_save_IFS
4276
4277 fi
4278 fi
4279 DLLTOOL=$ac_cv_prog_DLLTOOL
4280 if test -n "$DLLTOOL"; then
4281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4282 $as_echo "$DLLTOOL" >&6; }
4283 else
4284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4286 fi
4287
4288
4289 fi
4290 if test -z "$ac_cv_prog_DLLTOOL"; then
4291   ac_ct_DLLTOOL=$DLLTOOL
4292   # Extract the first word of "dlltool", so it can be a program name with args.
4293 set dummy dlltool; ac_word=$2
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 $as_echo_n "checking for $ac_word... " >&6; }
4296 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4297   $as_echo_n "(cached) " >&6
4298 else
4299   if test -n "$ac_ct_DLLTOOL"; then
4300   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4301 else
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305   IFS=$as_save_IFS
4306   test -z "$as_dir" && as_dir=.
4307     for ac_exec_ext in '' $ac_executable_extensions; do
4308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311     break 2
4312   fi
4313 done
4314   done
4315 IFS=$as_save_IFS
4316
4317 fi
4318 fi
4319 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4320 if test -n "$ac_ct_DLLTOOL"; then
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4322 $as_echo "$ac_ct_DLLTOOL" >&6; }
4323 else
4324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4326 fi
4327
4328   if test "x$ac_ct_DLLTOOL" = x; then
4329     DLLTOOL="false"
4330   else
4331     case $cross_compiling:$ac_tool_warned in
4332 yes:)
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4335 ac_tool_warned=yes ;;
4336 esac
4337     DLLTOOL=$ac_ct_DLLTOOL
4338   fi
4339 else
4340   DLLTOOL="$ac_cv_prog_DLLTOOL"
4341 fi
4342
4343   if test -n "$ac_tool_prefix"; then
4344   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4345 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 $as_echo_n "checking for $ac_word... " >&6; }
4348 if ${ac_cv_prog_OBJDUMP+:} false; then :
4349   $as_echo_n "(cached) " >&6
4350 else
4351   if test -n "$OBJDUMP"; then
4352   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4353 else
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4356 do
4357   IFS=$as_save_IFS
4358   test -z "$as_dir" && as_dir=.
4359     for ac_exec_ext in '' $ac_executable_extensions; do
4360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363     break 2
4364   fi
4365 done
4366   done
4367 IFS=$as_save_IFS
4368
4369 fi
4370 fi
4371 OBJDUMP=$ac_cv_prog_OBJDUMP
4372 if test -n "$OBJDUMP"; then
4373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4374 $as_echo "$OBJDUMP" >&6; }
4375 else
4376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4378 fi
4379
4380
4381 fi
4382 if test -z "$ac_cv_prog_OBJDUMP"; then
4383   ac_ct_OBJDUMP=$OBJDUMP
4384   # Extract the first word of "objdump", so it can be a program name with args.
4385 set dummy objdump; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4389   $as_echo_n "(cached) " >&6
4390 else
4391   if test -n "$ac_ct_OBJDUMP"; then
4392   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399     for ac_exec_ext in '' $ac_executable_extensions; do
4400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406   done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4412 if test -n "$ac_ct_OBJDUMP"; then
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4414 $as_echo "$ac_ct_OBJDUMP" >&6; }
4415 else
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420   if test "x$ac_ct_OBJDUMP" = x; then
4421     OBJDUMP="false"
4422   else
4423     case $cross_compiling:$ac_tool_warned in
4424 yes:)
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4427 ac_tool_warned=yes ;;
4428 esac
4429     OBJDUMP=$ac_ct_OBJDUMP
4430   fi
4431 else
4432   OBJDUMP="$ac_cv_prog_OBJDUMP"
4433 fi
4434
4435   ;;
4436 esac
4437
4438 test -z "$AS" && AS=as
4439
4440
4441
4442
4443
4444 test -z "$DLLTOOL" && DLLTOOL=dlltool
4445
4446
4447
4448
4449
4450 test -z "$OBJDUMP" && OBJDUMP=objdump
4451
4452
4453
4454
4455
4456
4457
4458 case `pwd` in
4459   *\ * | *\     *)
4460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4461 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4462 esac
4463
4464
4465
4466 macro_version='2.2.6b'
4467 macro_revision='1.3017'
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481 ltmain="$ac_aux_dir/ltmain.sh"
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4484 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4485 if ${ac_cv_path_SED+:} false; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4489      for ac_i in 1 2 3 4 5 6 7; do
4490        ac_script="$ac_script$as_nl$ac_script"
4491      done
4492      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4493      { ac_script=; unset ac_script;}
4494      if test -z "$SED"; then
4495   ac_path_SED_found=false
4496   # Loop through the user's path and test for each of PROGNAME-LIST
4497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500   IFS=$as_save_IFS
4501   test -z "$as_dir" && as_dir=.
4502     for ac_prog in sed gsed; do
4503     for ac_exec_ext in '' $ac_executable_extensions; do
4504       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4505       as_fn_executable_p "$ac_path_SED" || continue
4506 # Check for GNU ac_path_SED and select it if it is found.
4507   # Check for GNU $ac_path_SED
4508 case `"$ac_path_SED" --version 2>&1` in
4509 *GNU*)
4510   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4511 *)
4512   ac_count=0
4513   $as_echo_n 0123456789 >"conftest.in"
4514   while :
4515   do
4516     cat "conftest.in" "conftest.in" >"conftest.tmp"
4517     mv "conftest.tmp" "conftest.in"
4518     cp "conftest.in" "conftest.nl"
4519     $as_echo '' >> "conftest.nl"
4520     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522     as_fn_arith $ac_count + 1 && ac_count=$as_val
4523     if test $ac_count -gt ${ac_path_SED_max-0}; then
4524       # Best one so far, save it but keep looking for a better one
4525       ac_cv_path_SED="$ac_path_SED"
4526       ac_path_SED_max=$ac_count
4527     fi
4528     # 10*(2^10) chars as input seems more than enough
4529     test $ac_count -gt 10 && break
4530   done
4531   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532 esac
4533
4534       $ac_path_SED_found && break 3
4535     done
4536   done
4537   done
4538 IFS=$as_save_IFS
4539   if test -z "$ac_cv_path_SED"; then
4540     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4541   fi
4542 else
4543   ac_cv_path_SED=$SED
4544 fi
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4548 $as_echo "$ac_cv_path_SED" >&6; }
4549  SED="$ac_cv_path_SED"
4550   rm -f conftest.sed
4551
4552 test -z "$SED" && SED=sed
4553 Xsed="$SED -e 1s/^X//"
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4566 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4567 if ${ac_cv_path_GREP+:} false; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   if test -z "$GREP"; then
4571   ac_path_GREP_found=false
4572   # Loop through the user's path and test for each of PROGNAME-LIST
4573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578     for ac_prog in grep ggrep; do
4579     for ac_exec_ext in '' $ac_executable_extensions; do
4580       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4581       as_fn_executable_p "$ac_path_GREP" || continue
4582 # Check for GNU ac_path_GREP and select it if it is found.
4583   # Check for GNU $ac_path_GREP
4584 case `"$ac_path_GREP" --version 2>&1` in
4585 *GNU*)
4586   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4587 *)
4588   ac_count=0
4589   $as_echo_n 0123456789 >"conftest.in"
4590   while :
4591   do
4592     cat "conftest.in" "conftest.in" >"conftest.tmp"
4593     mv "conftest.tmp" "conftest.in"
4594     cp "conftest.in" "conftest.nl"
4595     $as_echo 'GREP' >> "conftest.nl"
4596     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598     as_fn_arith $ac_count + 1 && ac_count=$as_val
4599     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4600       # Best one so far, save it but keep looking for a better one
4601       ac_cv_path_GREP="$ac_path_GREP"
4602       ac_path_GREP_max=$ac_count
4603     fi
4604     # 10*(2^10) chars as input seems more than enough
4605     test $ac_count -gt 10 && break
4606   done
4607   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608 esac
4609
4610       $ac_path_GREP_found && break 3
4611     done
4612   done
4613   done
4614 IFS=$as_save_IFS
4615   if test -z "$ac_cv_path_GREP"; then
4616     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4617   fi
4618 else
4619   ac_cv_path_GREP=$GREP
4620 fi
4621
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4624 $as_echo "$ac_cv_path_GREP" >&6; }
4625  GREP="$ac_cv_path_GREP"
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4629 $as_echo_n "checking for egrep... " >&6; }
4630 if ${ac_cv_path_EGREP+:} false; then :
4631   $as_echo_n "(cached) " >&6
4632 else
4633   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4634    then ac_cv_path_EGREP="$GREP -E"
4635    else
4636      if test -z "$EGREP"; then
4637   ac_path_EGREP_found=false
4638   # Loop through the user's path and test for each of PROGNAME-LIST
4639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644     for ac_prog in egrep; do
4645     for ac_exec_ext in '' $ac_executable_extensions; do
4646       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4647       as_fn_executable_p "$ac_path_EGREP" || continue
4648 # Check for GNU ac_path_EGREP and select it if it is found.
4649   # Check for GNU $ac_path_EGREP
4650 case `"$ac_path_EGREP" --version 2>&1` in
4651 *GNU*)
4652   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4653 *)
4654   ac_count=0
4655   $as_echo_n 0123456789 >"conftest.in"
4656   while :
4657   do
4658     cat "conftest.in" "conftest.in" >"conftest.tmp"
4659     mv "conftest.tmp" "conftest.in"
4660     cp "conftest.in" "conftest.nl"
4661     $as_echo 'EGREP' >> "conftest.nl"
4662     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664     as_fn_arith $ac_count + 1 && ac_count=$as_val
4665     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4666       # Best one so far, save it but keep looking for a better one
4667       ac_cv_path_EGREP="$ac_path_EGREP"
4668       ac_path_EGREP_max=$ac_count
4669     fi
4670     # 10*(2^10) chars as input seems more than enough
4671     test $ac_count -gt 10 && break
4672   done
4673   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674 esac
4675
4676       $ac_path_EGREP_found && break 3
4677     done
4678   done
4679   done
4680 IFS=$as_save_IFS
4681   if test -z "$ac_cv_path_EGREP"; then
4682     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683   fi
4684 else
4685   ac_cv_path_EGREP=$EGREP
4686 fi
4687
4688    fi
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4691 $as_echo "$ac_cv_path_EGREP" >&6; }
4692  EGREP="$ac_cv_path_EGREP"
4693
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4696 $as_echo_n "checking for fgrep... " >&6; }
4697 if ${ac_cv_path_FGREP+:} false; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4701    then ac_cv_path_FGREP="$GREP -F"
4702    else
4703      if test -z "$FGREP"; then
4704   ac_path_FGREP_found=false
4705   # Loop through the user's path and test for each of PROGNAME-LIST
4706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711     for ac_prog in fgrep; do
4712     for ac_exec_ext in '' $ac_executable_extensions; do
4713       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4714       as_fn_executable_p "$ac_path_FGREP" || continue
4715 # Check for GNU ac_path_FGREP and select it if it is found.
4716   # Check for GNU $ac_path_FGREP
4717 case `"$ac_path_FGREP" --version 2>&1` in
4718 *GNU*)
4719   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4720 *)
4721   ac_count=0
4722   $as_echo_n 0123456789 >"conftest.in"
4723   while :
4724   do
4725     cat "conftest.in" "conftest.in" >"conftest.tmp"
4726     mv "conftest.tmp" "conftest.in"
4727     cp "conftest.in" "conftest.nl"
4728     $as_echo 'FGREP' >> "conftest.nl"
4729     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4730     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4731     as_fn_arith $ac_count + 1 && ac_count=$as_val
4732     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4733       # Best one so far, save it but keep looking for a better one
4734       ac_cv_path_FGREP="$ac_path_FGREP"
4735       ac_path_FGREP_max=$ac_count
4736     fi
4737     # 10*(2^10) chars as input seems more than enough
4738     test $ac_count -gt 10 && break
4739   done
4740   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4741 esac
4742
4743       $ac_path_FGREP_found && break 3
4744     done
4745   done
4746   done
4747 IFS=$as_save_IFS
4748   if test -z "$ac_cv_path_FGREP"; then
4749     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4750   fi
4751 else
4752   ac_cv_path_FGREP=$FGREP
4753 fi
4754
4755    fi
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4758 $as_echo "$ac_cv_path_FGREP" >&6; }
4759  FGREP="$ac_cv_path_FGREP"
4760
4761
4762 test -z "$GREP" && GREP=grep
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782 # Check whether --with-gnu-ld was given.
4783 if test "${with_gnu_ld+set}" = set; then :
4784   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4785 else
4786   with_gnu_ld=no
4787 fi
4788
4789 ac_prog=ld
4790 if test "$GCC" = yes; then
4791   # Check if gcc -print-prog-name=ld gives a path.
4792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4793 $as_echo_n "checking for ld used by $CC... " >&6; }
4794   case $host in
4795   *-*-mingw*)
4796     # gcc leaves a trailing carriage return which upsets mingw
4797     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4798   *)
4799     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4800   esac
4801   case $ac_prog in
4802     # Accept absolute paths.
4803     [\\/]* | ?:[\\/]*)
4804       re_direlt='/[^/][^/]*/\.\./'
4805       # Canonicalize the pathname of ld
4806       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4807       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4808         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4809       done
4810       test -z "$LD" && LD="$ac_prog"
4811       ;;
4812   "")
4813     # If it fails, then pretend we aren't using GCC.
4814     ac_prog=ld
4815     ;;
4816   *)
4817     # If it is relative, then search for the first ld in PATH.
4818     with_gnu_ld=unknown
4819     ;;
4820   esac
4821 elif test "$with_gnu_ld" = yes; then
4822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4823 $as_echo_n "checking for GNU ld... " >&6; }
4824 else
4825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4826 $as_echo_n "checking for non-GNU ld... " >&6; }
4827 fi
4828 if ${lt_cv_path_LD+:} false; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   if test -z "$LD"; then
4832   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4833   for ac_dir in $PATH; do
4834     IFS="$lt_save_ifs"
4835     test -z "$ac_dir" && ac_dir=.
4836     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4837       lt_cv_path_LD="$ac_dir/$ac_prog"
4838       # Check to see if the program is GNU ld.  I'd rather use --version,
4839       # but apparently some variants of GNU ld only accept -v.
4840       # Break only if it was the GNU/non-GNU ld that we prefer.
4841       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4842       *GNU* | *'with BFD'*)
4843         test "$with_gnu_ld" != no && break
4844         ;;
4845       *)
4846         test "$with_gnu_ld" != yes && break
4847         ;;
4848       esac
4849     fi
4850   done
4851   IFS="$lt_save_ifs"
4852 else
4853   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4854 fi
4855 fi
4856
4857 LD="$lt_cv_path_LD"
4858 if test -n "$LD"; then
4859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4860 $as_echo "$LD" >&6; }
4861 else
4862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4864 fi
4865 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4867 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4868 if ${lt_cv_prog_gnu_ld+:} false; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4872 case `$LD -v 2>&1 </dev/null` in
4873 *GNU* | *'with BFD'*)
4874   lt_cv_prog_gnu_ld=yes
4875   ;;
4876 *)
4877   lt_cv_prog_gnu_ld=no
4878   ;;
4879 esac
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4882 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4883 with_gnu_ld=$lt_cv_prog_gnu_ld
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4894 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4895 if ${lt_cv_path_NM+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   if test -n "$NM"; then
4899   # Let the user override the test.
4900   lt_cv_path_NM="$NM"
4901 else
4902   lt_nm_to_check="${ac_tool_prefix}nm"
4903   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4904     lt_nm_to_check="$lt_nm_to_check nm"
4905   fi
4906   for lt_tmp_nm in $lt_nm_to_check; do
4907     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4908     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4909       IFS="$lt_save_ifs"
4910       test -z "$ac_dir" && ac_dir=.
4911       tmp_nm="$ac_dir/$lt_tmp_nm"
4912       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4913         # Check to see if the nm accepts a BSD-compat flag.
4914         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4915         #   nm: unknown option "B" ignored
4916         # Tru64's nm complains that /dev/null is an invalid object file
4917         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4918         */dev/null* | *'Invalid file or object type'*)
4919           lt_cv_path_NM="$tmp_nm -B"
4920           break
4921           ;;
4922         *)
4923           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4924           */dev/null*)
4925             lt_cv_path_NM="$tmp_nm -p"
4926             break
4927             ;;
4928           *)
4929             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4930             continue # so that we can try to find one that supports BSD flags
4931             ;;
4932           esac
4933           ;;
4934         esac
4935       fi
4936     done
4937     IFS="$lt_save_ifs"
4938   done
4939   : ${lt_cv_path_NM=no}
4940 fi
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4943 $as_echo "$lt_cv_path_NM" >&6; }
4944 if test "$lt_cv_path_NM" != "no"; then
4945   NM="$lt_cv_path_NM"
4946 else
4947   # Didn't find any BSD compatible name lister, look for dumpbin.
4948   if test -n "$ac_tool_prefix"; then
4949   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4950   do
4951     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_DUMPBIN+:} false; then :
4956   $as_echo_n "(cached) " >&6
4957 else
4958   if test -n "$DUMPBIN"; then
4959   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964   IFS=$as_save_IFS
4965   test -z "$as_dir" && as_dir=.
4966     for ac_exec_ext in '' $ac_executable_extensions; do
4967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970     break 2
4971   fi
4972 done
4973   done
4974 IFS=$as_save_IFS
4975
4976 fi
4977 fi
4978 DUMPBIN=$ac_cv_prog_DUMPBIN
4979 if test -n "$DUMPBIN"; then
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4981 $as_echo "$DUMPBIN" >&6; }
4982 else
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987
4988     test -n "$DUMPBIN" && break
4989   done
4990 fi
4991 if test -z "$DUMPBIN"; then
4992   ac_ct_DUMPBIN=$DUMPBIN
4993   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4994 do
4995   # Extract the first word of "$ac_prog", so it can be a program name with args.
4996 set dummy $ac_prog; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5000   $as_echo_n "(cached) " >&6
5001 else
5002   if test -n "$ac_ct_DUMPBIN"; then
5003   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008   IFS=$as_save_IFS
5009   test -z "$as_dir" && as_dir=.
5010     for ac_exec_ext in '' $ac_executable_extensions; do
5011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014     break 2
5015   fi
5016 done
5017   done
5018 IFS=$as_save_IFS
5019
5020 fi
5021 fi
5022 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5023 if test -n "$ac_ct_DUMPBIN"; then
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5025 $as_echo "$ac_ct_DUMPBIN" >&6; }
5026 else
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 fi
5030
5031
5032   test -n "$ac_ct_DUMPBIN" && break
5033 done
5034
5035   if test "x$ac_ct_DUMPBIN" = x; then
5036     DUMPBIN=":"
5037   else
5038     case $cross_compiling:$ac_tool_warned in
5039 yes:)
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5042 ac_tool_warned=yes ;;
5043 esac
5044     DUMPBIN=$ac_ct_DUMPBIN
5045   fi
5046 fi
5047
5048
5049   if test "$DUMPBIN" != ":"; then
5050     NM="$DUMPBIN"
5051   fi
5052 fi
5053 test -z "$NM" && NM=nm
5054
5055
5056
5057
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5061 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5062 if ${lt_cv_nm_interface+:} false; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   lt_cv_nm_interface="BSD nm"
5066   echo "int some_variable = 0;" > conftest.$ac_ext
5067   (eval echo "\"\$as_me:5067: $ac_compile\"" >&5)
5068   (eval "$ac_compile" 2>conftest.err)
5069   cat conftest.err >&5
5070   (eval echo "\"\$as_me:5070: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5071   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5072   cat conftest.err >&5
5073   (eval echo "\"\$as_me:5073: output\"" >&5)
5074   cat conftest.out >&5
5075   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5076     lt_cv_nm_interface="MS dumpbin"
5077   fi
5078   rm -f conftest*
5079 fi
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5081 $as_echo "$lt_cv_nm_interface" >&6; }
5082
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5084 $as_echo_n "checking whether ln -s works... " >&6; }
5085 LN_S=$as_ln_s
5086 if test "$LN_S" = "ln -s"; then
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5088 $as_echo "yes" >&6; }
5089 else
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5091 $as_echo "no, using $LN_S" >&6; }
5092 fi
5093
5094 # find the maximum length of command line arguments
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5096 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5097 if ${lt_cv_sys_max_cmd_len+:} false; then :
5098   $as_echo_n "(cached) " >&6
5099 else
5100     i=0
5101   teststring="ABCD"
5102
5103   case $build_os in
5104   msdosdjgpp*)
5105     # On DJGPP, this test can blow up pretty badly due to problems in libc
5106     # (any single argument exceeding 2000 bytes causes a buffer overrun
5107     # during glob expansion).  Even if it were fixed, the result of this
5108     # check would be larger than it should be.
5109     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5110     ;;
5111
5112   gnu*)
5113     # Under GNU Hurd, this test is not required because there is
5114     # no limit to the length of command line arguments.
5115     # Libtool will interpret -1 as no limit whatsoever
5116     lt_cv_sys_max_cmd_len=-1;
5117     ;;
5118
5119   cygwin* | mingw* | cegcc*)
5120     # On Win9x/ME, this test blows up -- it succeeds, but takes
5121     # about 5 minutes as the teststring grows exponentially.
5122     # Worse, since 9x/ME are not pre-emptively multitasking,
5123     # you end up with a "frozen" computer, even though with patience
5124     # the test eventually succeeds (with a max line length of 256k).
5125     # Instead, let's just punt: use the minimum linelength reported by
5126     # all of the supported platforms: 8192 (on NT/2K/XP).
5127     lt_cv_sys_max_cmd_len=8192;
5128     ;;
5129
5130   amigaos*)
5131     # On AmigaOS with pdksh, this test takes hours, literally.
5132     # So we just punt and use a minimum line length of 8192.
5133     lt_cv_sys_max_cmd_len=8192;
5134     ;;
5135
5136   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5137     # This has been around since 386BSD, at least.  Likely further.
5138     if test -x /sbin/sysctl; then
5139       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5140     elif test -x /usr/sbin/sysctl; then
5141       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5142     else
5143       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5144     fi
5145     # And add a safety zone
5146     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5147     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5148     ;;
5149
5150   interix*)
5151     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5152     lt_cv_sys_max_cmd_len=196608
5153     ;;
5154
5155   osf*)
5156     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5157     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5158     # nice to cause kernel panics so lets avoid the loop below.
5159     # First set a reasonable default.
5160     lt_cv_sys_max_cmd_len=16384
5161     #
5162     if test -x /sbin/sysconfig; then
5163       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5164         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5165       esac
5166     fi
5167     ;;
5168   sco3.2v5*)
5169     lt_cv_sys_max_cmd_len=102400
5170     ;;
5171   sysv5* | sco5v6* | sysv4.2uw2*)
5172     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5173     if test -n "$kargmax"; then
5174       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5175     else
5176       lt_cv_sys_max_cmd_len=32768
5177     fi
5178     ;;
5179   *)
5180     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5181     if test -n "$lt_cv_sys_max_cmd_len"; then
5182       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5183       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5184     else
5185       # Make teststring a little bigger before we do anything with it.
5186       # a 1K string should be a reasonable start.
5187       for i in 1 2 3 4 5 6 7 8 ; do
5188         teststring=$teststring$teststring
5189       done
5190       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5191       # If test is not a shell built-in, we'll probably end up computing a
5192       # maximum length that is only half of the actual maximum length, but
5193       # we can't tell.
5194       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5195                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5196               test $i != 17 # 1/2 MB should be enough
5197       do
5198         i=`expr $i + 1`
5199         teststring=$teststring$teststring
5200       done
5201       # Only check the string length outside the loop.
5202       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5203       teststring=
5204       # Add a significant safety factor because C++ compilers can tack on
5205       # massive amounts of additional arguments before passing them to the
5206       # linker.  It appears as though 1/2 is a usable value.
5207       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5208     fi
5209     ;;
5210   esac
5211
5212 fi
5213
5214 if test -n $lt_cv_sys_max_cmd_len ; then
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5216 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5217 else
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5219 $as_echo "none" >&6; }
5220 fi
5221 max_cmd_len=$lt_cv_sys_max_cmd_len
5222
5223
5224
5225
5226
5227
5228 : ${CP="cp -f"}
5229 : ${MV="mv -f"}
5230 : ${RM="rm -f"}
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5233 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5234 # Try some XSI features
5235 xsi_shell=no
5236 ( _lt_dummy="a/b/c"
5237   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5238       = c,a/b,, \
5239     && eval 'test $(( 1 + 1 )) -eq 2 \
5240     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5241   && xsi_shell=yes
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5243 $as_echo "$xsi_shell" >&6; }
5244
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5247 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5248 lt_shell_append=no
5249 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5250     >/dev/null 2>&1 \
5251   && lt_shell_append=yes
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5253 $as_echo "$lt_shell_append" >&6; }
5254
5255
5256 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5257   lt_unset=unset
5258 else
5259   lt_unset=false
5260 fi
5261
5262
5263
5264
5265
5266 # test EBCDIC or ASCII
5267 case `echo X|tr X '\101'` in
5268  A) # ASCII based system
5269     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5270   lt_SP2NL='tr \040 \012'
5271   lt_NL2SP='tr \015\012 \040\040'
5272   ;;
5273  *) # EBCDIC based system
5274   lt_SP2NL='tr \100 \n'
5275   lt_NL2SP='tr \r\n \100\100'
5276   ;;
5277 esac
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5288 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5289 if ${lt_cv_ld_reload_flag+:} false; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   lt_cv_ld_reload_flag='-r'
5293 fi
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5295 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5296 reload_flag=$lt_cv_ld_reload_flag
5297 case $reload_flag in
5298 "" | " "*) ;;
5299 *) reload_flag=" $reload_flag" ;;
5300 esac
5301 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5302 case $host_os in
5303   darwin*)
5304     if test "$GCC" = yes; then
5305       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5306     else
5307       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5308     fi
5309     ;;
5310 esac
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320 if test -n "$ac_tool_prefix"; then
5321   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5322 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_OBJDUMP+:} false; then :
5326   $as_echo_n "(cached) " >&6
5327 else
5328   if test -n "$OBJDUMP"; then
5329   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334   IFS=$as_save_IFS
5335   test -z "$as_dir" && as_dir=.
5336     for ac_exec_ext in '' $ac_executable_extensions; do
5337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340     break 2
5341   fi
5342 done
5343   done
5344 IFS=$as_save_IFS
5345
5346 fi
5347 fi
5348 OBJDUMP=$ac_cv_prog_OBJDUMP
5349 if test -n "$OBJDUMP"; then
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5351 $as_echo "$OBJDUMP" >&6; }
5352 else
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5355 fi
5356
5357
5358 fi
5359 if test -z "$ac_cv_prog_OBJDUMP"; then
5360   ac_ct_OBJDUMP=$OBJDUMP
5361   # Extract the first word of "objdump", so it can be a program name with args.
5362 set dummy objdump; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5366   $as_echo_n "(cached) " >&6
5367 else
5368   if test -n "$ac_ct_OBJDUMP"; then
5369   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374   IFS=$as_save_IFS
5375   test -z "$as_dir" && as_dir=.
5376     for ac_exec_ext in '' $ac_executable_extensions; do
5377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380     break 2
5381   fi
5382 done
5383   done
5384 IFS=$as_save_IFS
5385
5386 fi
5387 fi
5388 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5389 if test -n "$ac_ct_OBJDUMP"; then
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5391 $as_echo "$ac_ct_OBJDUMP" >&6; }
5392 else
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 fi
5396
5397   if test "x$ac_ct_OBJDUMP" = x; then
5398     OBJDUMP="false"
5399   else
5400     case $cross_compiling:$ac_tool_warned in
5401 yes:)
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5404 ac_tool_warned=yes ;;
5405 esac
5406     OBJDUMP=$ac_ct_OBJDUMP
5407   fi
5408 else
5409   OBJDUMP="$ac_cv_prog_OBJDUMP"
5410 fi
5411
5412 test -z "$OBJDUMP" && OBJDUMP=objdump
5413
5414
5415
5416
5417
5418
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5420 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5421 if ${lt_cv_deplibs_check_method+:} false; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424   lt_cv_file_magic_cmd='$MAGIC_CMD'
5425 lt_cv_file_magic_test_file=
5426 lt_cv_deplibs_check_method='unknown'
5427 # Need to set the preceding variable on all platforms that support
5428 # interlibrary dependencies.
5429 # 'none' -- dependencies not supported.
5430 # `unknown' -- same as none, but documents that we really don't know.
5431 # 'pass_all' -- all dependencies passed with no checks.
5432 # 'test_compile' -- check by making test program.
5433 # 'file_magic [[regex]]' -- check by looking for files in library path
5434 # which responds to the $file_magic_cmd with a given extended regex.
5435 # If you have `file' or equivalent on your system and you're not sure
5436 # whether `pass_all' will *always* work, you probably want this one.
5437
5438 case $host_os in
5439 aix[4-9]*)
5440   lt_cv_deplibs_check_method=pass_all
5441   ;;
5442
5443 beos*)
5444   lt_cv_deplibs_check_method=pass_all
5445   ;;
5446
5447 bsdi[45]*)
5448   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5449   lt_cv_file_magic_cmd='/usr/bin/file -L'
5450   lt_cv_file_magic_test_file=/shlib/libc.so
5451   ;;
5452
5453 cygwin*)
5454   # func_win32_libid is a shell function defined in ltmain.sh
5455   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5456   lt_cv_file_magic_cmd='func_win32_libid'
5457   ;;
5458
5459 mingw* | pw32*)
5460   # Base MSYS/MinGW do not provide the 'file' command needed by
5461   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5462   # unless we find 'file', for example because we are cross-compiling.
5463   if ( file / ) >/dev/null 2>&1; then
5464     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5465     lt_cv_file_magic_cmd='func_win32_libid'
5466   else
5467     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5468     lt_cv_file_magic_cmd='$OBJDUMP -f'
5469   fi
5470   ;;
5471
5472 cegcc)
5473   # use the weaker test based on 'objdump'. See mingw*.
5474   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5475   lt_cv_file_magic_cmd='$OBJDUMP -f'
5476   ;;
5477
5478 darwin* | rhapsody*)
5479   lt_cv_deplibs_check_method=pass_all
5480   ;;
5481
5482 freebsd* | dragonfly*)
5483   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5484     case $host_cpu in
5485     i*86 )
5486       # Not sure whether the presence of OpenBSD here was a mistake.
5487       # Let's accept both of them until this is cleared up.
5488       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5489       lt_cv_file_magic_cmd=/usr/bin/file
5490       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5491       ;;
5492     esac
5493   else
5494     lt_cv_deplibs_check_method=pass_all
5495   fi
5496   ;;
5497
5498 gnu*)
5499   lt_cv_deplibs_check_method=pass_all
5500   ;;
5501
5502 hpux10.20* | hpux11*)
5503   lt_cv_file_magic_cmd=/usr/bin/file
5504   case $host_cpu in
5505   ia64*)
5506     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5507     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5508     ;;
5509   hppa*64*)
5510     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5511     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5512     ;;
5513   *)
5514     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5515     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5516     ;;
5517   esac
5518   ;;
5519
5520 interix[3-9]*)
5521   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5522   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5523   ;;
5524
5525 irix5* | irix6* | nonstopux*)
5526   case $LD in
5527   *-32|*"-32 ") libmagic=32-bit;;
5528   *-n32|*"-n32 ") libmagic=N32;;
5529   *-64|*"-64 ") libmagic=64-bit;;
5530   *) libmagic=never-match;;
5531   esac
5532   lt_cv_deplibs_check_method=pass_all
5533   ;;
5534
5535 # This must be Linux ELF.
5536 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5537   lt_cv_deplibs_check_method=pass_all
5538   ;;
5539
5540 netbsd* | netbsdelf*-gnu)
5541   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5542     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5543   else
5544     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5545   fi
5546   ;;
5547
5548 newos6*)
5549   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5550   lt_cv_file_magic_cmd=/usr/bin/file
5551   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5552   ;;
5553
5554 *nto* | *qnx*)
5555   lt_cv_deplibs_check_method=pass_all
5556   ;;
5557
5558 openbsd*)
5559   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5560     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5561   else
5562     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5563   fi
5564   ;;
5565
5566 osf3* | osf4* | osf5*)
5567   lt_cv_deplibs_check_method=pass_all
5568   ;;
5569
5570 rdos*)
5571   lt_cv_deplibs_check_method=pass_all
5572   ;;
5573
5574 solaris*)
5575   lt_cv_deplibs_check_method=pass_all
5576   ;;
5577
5578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5579   lt_cv_deplibs_check_method=pass_all
5580   ;;
5581
5582 sysv4 | sysv4.3*)
5583   case $host_vendor in
5584   motorola)
5585     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]'
5586     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5587     ;;
5588   ncr)
5589     lt_cv_deplibs_check_method=pass_all
5590     ;;
5591   sequent)
5592     lt_cv_file_magic_cmd='/bin/file'
5593     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5594     ;;
5595   sni)
5596     lt_cv_file_magic_cmd='/bin/file'
5597     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5598     lt_cv_file_magic_test_file=/lib/libc.so
5599     ;;
5600   siemens)
5601     lt_cv_deplibs_check_method=pass_all
5602     ;;
5603   pc)
5604     lt_cv_deplibs_check_method=pass_all
5605     ;;
5606   esac
5607   ;;
5608
5609 tpf*)
5610   lt_cv_deplibs_check_method=pass_all
5611   ;;
5612 esac
5613
5614 fi
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5616 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5617 file_magic_cmd=$lt_cv_file_magic_cmd
5618 deplibs_check_method=$lt_cv_deplibs_check_method
5619 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632 if test -n "$ac_tool_prefix"; then
5633   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5634 set dummy ${ac_tool_prefix}ar; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_AR+:} false; then :
5638   $as_echo_n "(cached) " >&6
5639 else
5640   if test -n "$AR"; then
5641   ac_cv_prog_AR="$AR" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646   IFS=$as_save_IFS
5647   test -z "$as_dir" && as_dir=.
5648     for ac_exec_ext in '' $ac_executable_extensions; do
5649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650     ac_cv_prog_AR="${ac_tool_prefix}ar"
5651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652     break 2
5653   fi
5654 done
5655   done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 AR=$ac_cv_prog_AR
5661 if test -n "$AR"; then
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5663 $as_echo "$AR" >&6; }
5664 else
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 fi
5671 if test -z "$ac_cv_prog_AR"; then
5672   ac_ct_AR=$AR
5673   # Extract the first word of "ar", so it can be a program name with args.
5674 set dummy ar; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   if test -n "$ac_ct_AR"; then
5681   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686   IFS=$as_save_IFS
5687   test -z "$as_dir" && as_dir=.
5688     for ac_exec_ext in '' $ac_executable_extensions; do
5689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690     ac_cv_prog_ac_ct_AR="ar"
5691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692     break 2
5693   fi
5694 done
5695   done
5696 IFS=$as_save_IFS
5697
5698 fi
5699 fi
5700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5701 if test -n "$ac_ct_AR"; then
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5703 $as_echo "$ac_ct_AR" >&6; }
5704 else
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708
5709   if test "x$ac_ct_AR" = x; then
5710     AR="false"
5711   else
5712     case $cross_compiling:$ac_tool_warned in
5713 yes:)
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716 ac_tool_warned=yes ;;
5717 esac
5718     AR=$ac_ct_AR
5719   fi
5720 else
5721   AR="$ac_cv_prog_AR"
5722 fi
5723
5724 test -z "$AR" && AR=ar
5725 test -z "$AR_FLAGS" && AR_FLAGS=cru
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737 if test -n "$ac_tool_prefix"; then
5738   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5739 set dummy ${ac_tool_prefix}strip; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_STRIP+:} false; then :
5743   $as_echo_n "(cached) " >&6
5744 else
5745   if test -n "$STRIP"; then
5746   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760   done
5761 IFS=$as_save_IFS
5762
5763 fi
5764 fi
5765 STRIP=$ac_cv_prog_STRIP
5766 if test -n "$STRIP"; then
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5768 $as_echo "$STRIP" >&6; }
5769 else
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772 fi
5773
5774
5775 fi
5776 if test -z "$ac_cv_prog_STRIP"; then
5777   ac_ct_STRIP=$STRIP
5778   # Extract the first word of "strip", so it can be a program name with args.
5779 set dummy strip; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785   if test -n "$ac_ct_STRIP"; then
5786   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791   IFS=$as_save_IFS
5792   test -z "$as_dir" && as_dir=.
5793     for ac_exec_ext in '' $ac_executable_extensions; do
5794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795     ac_cv_prog_ac_ct_STRIP="strip"
5796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797     break 2
5798   fi
5799 done
5800   done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5806 if test -n "$ac_ct_STRIP"; then
5807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5808 $as_echo "$ac_ct_STRIP" >&6; }
5809 else
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5812 fi
5813
5814   if test "x$ac_ct_STRIP" = x; then
5815     STRIP=":"
5816   else
5817     case $cross_compiling:$ac_tool_warned in
5818 yes:)
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821 ac_tool_warned=yes ;;
5822 esac
5823     STRIP=$ac_ct_STRIP
5824   fi
5825 else
5826   STRIP="$ac_cv_prog_STRIP"
5827 fi
5828
5829 test -z "$STRIP" && STRIP=:
5830
5831
5832
5833
5834
5835
5836 if test -n "$ac_tool_prefix"; then
5837   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_RANLIB+:} false; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   if test -n "$RANLIB"; then
5845   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850   IFS=$as_save_IFS
5851   test -z "$as_dir" && as_dir=.
5852     for ac_exec_ext in '' $ac_executable_extensions; do
5853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856     break 2
5857   fi
5858 done
5859   done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 RANLIB=$ac_cv_prog_RANLIB
5865 if test -n "$RANLIB"; then
5866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5867 $as_echo "$RANLIB" >&6; }
5868 else
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874 fi
5875 if test -z "$ac_cv_prog_RANLIB"; then
5876   ac_ct_RANLIB=$RANLIB
5877   # Extract the first word of "ranlib", so it can be a program name with args.
5878 set dummy ranlib; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5882   $as_echo_n "(cached) " >&6
5883 else
5884   if test -n "$ac_ct_RANLIB"; then
5885   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890   IFS=$as_save_IFS
5891   test -z "$as_dir" && as_dir=.
5892     for ac_exec_ext in '' $ac_executable_extensions; do
5893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894     ac_cv_prog_ac_ct_RANLIB="ranlib"
5895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896     break 2
5897   fi
5898 done
5899   done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5905 if test -n "$ac_ct_RANLIB"; then
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5907 $as_echo "$ac_ct_RANLIB" >&6; }
5908 else
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913   if test "x$ac_ct_RANLIB" = x; then
5914     RANLIB=":"
5915   else
5916     case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922     RANLIB=$ac_ct_RANLIB
5923   fi
5924 else
5925   RANLIB="$ac_cv_prog_RANLIB"
5926 fi
5927
5928 test -z "$RANLIB" && RANLIB=:
5929
5930
5931
5932
5933
5934
5935 # Determine commands to create old-style static archives.
5936 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5937 old_postinstall_cmds='chmod 644 $oldlib'
5938 old_postuninstall_cmds=
5939
5940 if test -n "$RANLIB"; then
5941   case $host_os in
5942   openbsd*)
5943     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5944     ;;
5945   *)
5946     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5947     ;;
5948   esac
5949   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5950 fi
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985 # If no C compiler was specified, use CC.
5986 LTCC=${LTCC-"$CC"}
5987
5988 # If no C compiler flags were specified, use CFLAGS.
5989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5990
5991 # Allow CC to be a program name with arguments.
5992 compiler=$CC
5993
5994
5995 # Check for command to grab the raw symbol name followed by C symbol from nm.
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5997 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5998 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5999   $as_echo_n "(cached) " >&6
6000 else
6001
6002 # These are sane defaults that work on at least a few old systems.
6003 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6004
6005 # Character class describing NM global symbol codes.
6006 symcode='[BCDEGRST]'
6007
6008 # Regexp to match symbols that can be accessed directly from C.
6009 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6010
6011 # Define system-specific variables.
6012 case $host_os in
6013 aix*)
6014   symcode='[BCDT]'
6015   ;;
6016 cygwin* | mingw* | pw32* | cegcc*)
6017   symcode='[ABCDGISTW]'
6018   ;;
6019 hpux*)
6020   if test "$host_cpu" = ia64; then
6021     symcode='[ABCDEGRST]'
6022   fi
6023   ;;
6024 irix* | nonstopux*)
6025   symcode='[BCDEGRST]'
6026   ;;
6027 osf*)
6028   symcode='[BCDEGQRST]'
6029   ;;
6030 solaris*)
6031   symcode='[BDRT]'
6032   ;;
6033 sco3.2v5*)
6034   symcode='[DT]'
6035   ;;
6036 sysv4.2uw2*)
6037   symcode='[DT]'
6038   ;;
6039 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6040   symcode='[ABDT]'
6041   ;;
6042 sysv4)
6043   symcode='[DFNSTU]'
6044   ;;
6045 esac
6046
6047 # If we're using GNU nm, then use its standard symbol codes.
6048 case `$NM -V 2>&1` in
6049 *GNU* | *'with BFD'*)
6050   symcode='[ABCDGIRSTW]' ;;
6051 esac
6052
6053 # Transform an extracted symbol line into a proper C declaration.
6054 # Some systems (esp. on ia64) link data and code symbols differently,
6055 # so use this general approach.
6056 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6057
6058 # Transform an extracted symbol line into symbol name and symbol address
6059 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6060 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'"
6061
6062 # Handle CRLF in mingw tool chain
6063 opt_cr=
6064 case $build_os in
6065 mingw*)
6066   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6067   ;;
6068 esac
6069
6070 # Try without a prefix underscore, then with it.
6071 for ac_symprfx in "" "_"; do
6072
6073   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6074   symxfrm="\\1 $ac_symprfx\\2 \\2"
6075
6076   # Write the raw and C identifiers.
6077   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6078     # Fake it for dumpbin and say T for any non-static function
6079     # and D for any global variable.
6080     # Also find C++ and __fastcall symbols from MSVC++,
6081     # which start with @ or ?.
6082     lt_cv_sys_global_symbol_pipe="$AWK '"\
6083 "     {last_section=section; section=\$ 3};"\
6084 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6085 "     \$ 0!~/External *\|/{next};"\
6086 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6087 "     {if(hide[section]) next};"\
6088 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6089 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6090 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6091 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6092 "     ' prfx=^$ac_symprfx"
6093   else
6094     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6095   fi
6096
6097   # Check to see that the pipe works correctly.
6098   pipe_works=no
6099
6100   rm -f conftest*
6101   cat > conftest.$ac_ext <<_LT_EOF
6102 #ifdef __cplusplus
6103 extern "C" {
6104 #endif
6105 char nm_test_var;
6106 void nm_test_func(void);
6107 void nm_test_func(void){}
6108 #ifdef __cplusplus
6109 }
6110 #endif
6111 int main(){nm_test_var='a';nm_test_func();return(0);}
6112 _LT_EOF
6113
6114   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6115   (eval $ac_compile) 2>&5
6116   ac_status=$?
6117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6118   test $ac_status = 0; }; then
6119     # Now try to grab the symbols.
6120     nlist=conftest.nm
6121     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6122   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6123   ac_status=$?
6124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6125   test $ac_status = 0; } && test -s "$nlist"; then
6126       # Try sorting and uniquifying the output.
6127       if sort "$nlist" | uniq > "$nlist"T; then
6128         mv -f "$nlist"T "$nlist"
6129       else
6130         rm -f "$nlist"T
6131       fi
6132
6133       # Make sure that we snagged all the symbols we need.
6134       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6135         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6136           cat <<_LT_EOF > conftest.$ac_ext
6137 #ifdef __cplusplus
6138 extern "C" {
6139 #endif
6140
6141 _LT_EOF
6142           # Now generate the symbol file.
6143           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6144
6145           cat <<_LT_EOF >> conftest.$ac_ext
6146
6147 /* The mapping between symbol names and symbols.  */
6148 const struct {
6149   const char *name;
6150   void       *address;
6151 }
6152 lt__PROGRAM__LTX_preloaded_symbols[] =
6153 {
6154   { "@PROGRAM@", (void *) 0 },
6155 _LT_EOF
6156           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6157           cat <<\_LT_EOF >> conftest.$ac_ext
6158   {0, (void *) 0}
6159 };
6160
6161 /* This works around a problem in FreeBSD linker */
6162 #ifdef FREEBSD_WORKAROUND
6163 static const void *lt_preloaded_setup() {
6164   return lt__PROGRAM__LTX_preloaded_symbols;
6165 }
6166 #endif
6167
6168 #ifdef __cplusplus
6169 }
6170 #endif
6171 _LT_EOF
6172           # Now try linking the two files.
6173           mv conftest.$ac_objext conftstm.$ac_objext
6174           lt_save_LIBS="$LIBS"
6175           lt_save_CFLAGS="$CFLAGS"
6176           LIBS="conftstm.$ac_objext"
6177           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6178           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6179   (eval $ac_link) 2>&5
6180   ac_status=$?
6181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6183             pipe_works=yes
6184           fi
6185           LIBS="$lt_save_LIBS"
6186           CFLAGS="$lt_save_CFLAGS"
6187         else
6188           echo "cannot find nm_test_func in $nlist" >&5
6189         fi
6190       else
6191         echo "cannot find nm_test_var in $nlist" >&5
6192       fi
6193     else
6194       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6195     fi
6196   else
6197     echo "$progname: failed program was:" >&5
6198     cat conftest.$ac_ext >&5
6199   fi
6200   rm -rf conftest* conftst*
6201
6202   # Do not use the global_symbol_pipe unless it works.
6203   if test "$pipe_works" = yes; then
6204     break
6205   else
6206     lt_cv_sys_global_symbol_pipe=
6207   fi
6208 done
6209
6210 fi
6211
6212 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6213   lt_cv_sys_global_symbol_to_cdecl=
6214 fi
6215 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6217 $as_echo "failed" >&6; }
6218 else
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6220 $as_echo "ok" >&6; }
6221 fi
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 # Check whether --enable-libtool-lock was given.
6245 if test "${enable_libtool_lock+set}" = set; then :
6246   enableval=$enable_libtool_lock;
6247 fi
6248
6249 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6250
6251 # Some flags need to be propagated to the compiler or linker for good
6252 # libtool support.
6253 case $host in
6254 ia64-*-hpux*)
6255   # Find out which ABI we are using.
6256   echo 'int i;' > conftest.$ac_ext
6257   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6258   (eval $ac_compile) 2>&5
6259   ac_status=$?
6260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6261   test $ac_status = 0; }; then
6262     case `/usr/bin/file conftest.$ac_objext` in
6263       *ELF-32*)
6264         HPUX_IA64_MODE="32"
6265         ;;
6266       *ELF-64*)
6267         HPUX_IA64_MODE="64"
6268         ;;
6269     esac
6270   fi
6271   rm -rf conftest*
6272   ;;
6273 *-*-irix6*)
6274   # Find out which ABI we are using.
6275   echo '#line 6275 "configure"' > conftest.$ac_ext
6276   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6277   (eval $ac_compile) 2>&5
6278   ac_status=$?
6279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6280   test $ac_status = 0; }; then
6281     if test "$lt_cv_prog_gnu_ld" = yes; then
6282       case `/usr/bin/file conftest.$ac_objext` in
6283         *32-bit*)
6284           LD="${LD-ld} -melf32bsmip"
6285           ;;
6286         *N32*)
6287           LD="${LD-ld} -melf32bmipn32"
6288           ;;
6289         *64-bit*)
6290           LD="${LD-ld} -melf64bmip"
6291         ;;
6292       esac
6293     else
6294       case `/usr/bin/file conftest.$ac_objext` in
6295         *32-bit*)
6296           LD="${LD-ld} -32"
6297           ;;
6298         *N32*)
6299           LD="${LD-ld} -n32"
6300           ;;
6301         *64-bit*)
6302           LD="${LD-ld} -64"
6303           ;;
6304       esac
6305     fi
6306   fi
6307   rm -rf conftest*
6308   ;;
6309
6310 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6311 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6312   # Find out which ABI we are using.
6313   echo 'int i;' > conftest.$ac_ext
6314   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6315   (eval $ac_compile) 2>&5
6316   ac_status=$?
6317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318   test $ac_status = 0; }; then
6319     case `/usr/bin/file conftest.o` in
6320       *32-bit*)
6321         case $host in
6322           x86_64-*kfreebsd*-gnu)
6323             LD="${LD-ld} -m elf_i386_fbsd"
6324             ;;
6325           x86_64-*linux*)
6326             LD="${LD-ld} -m elf_i386"
6327             ;;
6328           ppc64-*linux*|powerpc64-*linux*)
6329             LD="${LD-ld} -m elf32ppclinux"
6330             ;;
6331           s390x-*linux*)
6332             LD="${LD-ld} -m elf_s390"
6333             ;;
6334           sparc64-*linux*)
6335             LD="${LD-ld} -m elf32_sparc"
6336             ;;
6337         esac
6338         ;;
6339       *64-bit*)
6340         case $host in
6341           x86_64-*kfreebsd*-gnu)
6342             LD="${LD-ld} -m elf_x86_64_fbsd"
6343             ;;
6344           x86_64-*linux*)
6345             LD="${LD-ld} -m elf_x86_64"
6346             ;;
6347           ppc*-*linux*|powerpc*-*linux*)
6348             LD="${LD-ld} -m elf64ppc"
6349             ;;
6350           s390*-*linux*|s390*-*tpf*)
6351             LD="${LD-ld} -m elf64_s390"
6352             ;;
6353           sparc*-*linux*)
6354             LD="${LD-ld} -m elf64_sparc"
6355             ;;
6356         esac
6357         ;;
6358     esac
6359   fi
6360   rm -rf conftest*
6361   ;;
6362
6363 *-*-sco3.2v5*)
6364   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6365   SAVE_CFLAGS="$CFLAGS"
6366   CFLAGS="$CFLAGS -belf"
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6368 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6369 if ${lt_cv_cc_needs_belf+:} false; then :
6370   $as_echo_n "(cached) " >&6
6371 else
6372   ac_ext=c
6373 ac_cpp='$CPP $CPPFLAGS'
6374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377
6378      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h.  */
6380
6381 int
6382 main ()
6383 {
6384
6385   ;
6386   return 0;
6387 }
6388 _ACEOF
6389 if ac_fn_c_try_link "$LINENO"; then :
6390   lt_cv_cc_needs_belf=yes
6391 else
6392   lt_cv_cc_needs_belf=no
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext \
6395     conftest$ac_exeext conftest.$ac_ext
6396      ac_ext=c
6397 ac_cpp='$CPP $CPPFLAGS'
6398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6401
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6404 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6405   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6406     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6407     CFLAGS="$SAVE_CFLAGS"
6408   fi
6409   ;;
6410 sparc*-*solaris*)
6411   # Find out which ABI we are using.
6412   echo 'int i;' > conftest.$ac_ext
6413   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414   (eval $ac_compile) 2>&5
6415   ac_status=$?
6416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417   test $ac_status = 0; }; then
6418     case `/usr/bin/file conftest.o` in
6419     *64-bit*)
6420       case $lt_cv_prog_gnu_ld in
6421       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6422       *)
6423         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6424           LD="${LD-ld} -64"
6425         fi
6426         ;;
6427       esac
6428       ;;
6429     esac
6430   fi
6431   rm -rf conftest*
6432   ;;
6433 esac
6434
6435 need_locks="$enable_libtool_lock"
6436
6437
6438   case $host_os in
6439     rhapsody* | darwin*)
6440     if test -n "$ac_tool_prefix"; then
6441   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6442 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6446   $as_echo_n "(cached) " >&6
6447 else
6448   if test -n "$DSYMUTIL"; then
6449   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454   IFS=$as_save_IFS
6455   test -z "$as_dir" && as_dir=.
6456     for ac_exec_ext in '' $ac_executable_extensions; do
6457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460     break 2
6461   fi
6462 done
6463   done
6464 IFS=$as_save_IFS
6465
6466 fi
6467 fi
6468 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6469 if test -n "$DSYMUTIL"; then
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6471 $as_echo "$DSYMUTIL" >&6; }
6472 else
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476
6477
6478 fi
6479 if test -z "$ac_cv_prog_DSYMUTIL"; then
6480   ac_ct_DSYMUTIL=$DSYMUTIL
6481   # Extract the first word of "dsymutil", so it can be a program name with args.
6482 set dummy dsymutil; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6486   $as_echo_n "(cached) " >&6
6487 else
6488   if test -n "$ac_ct_DSYMUTIL"; then
6489   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494   IFS=$as_save_IFS
6495   test -z "$as_dir" && as_dir=.
6496     for ac_exec_ext in '' $ac_executable_extensions; do
6497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500     break 2
6501   fi
6502 done
6503   done
6504 IFS=$as_save_IFS
6505
6506 fi
6507 fi
6508 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6509 if test -n "$ac_ct_DSYMUTIL"; then
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6511 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6512 else
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6515 fi
6516
6517   if test "x$ac_ct_DSYMUTIL" = x; then
6518     DSYMUTIL=":"
6519   else
6520     case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526     DSYMUTIL=$ac_ct_DSYMUTIL
6527   fi
6528 else
6529   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6530 fi
6531
6532     if test -n "$ac_tool_prefix"; then
6533   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if ${ac_cv_prog_NMEDIT+:} false; then :
6538   $as_echo_n "(cached) " >&6
6539 else
6540   if test -n "$NMEDIT"; then
6541   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546   IFS=$as_save_IFS
6547   test -z "$as_dir" && as_dir=.
6548     for ac_exec_ext in '' $ac_executable_extensions; do
6549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552     break 2
6553   fi
6554 done
6555   done
6556 IFS=$as_save_IFS
6557
6558 fi
6559 fi
6560 NMEDIT=$ac_cv_prog_NMEDIT
6561 if test -n "$NMEDIT"; then
6562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6563 $as_echo "$NMEDIT" >&6; }
6564 else
6565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6567 fi
6568
6569
6570 fi
6571 if test -z "$ac_cv_prog_NMEDIT"; then
6572   ac_ct_NMEDIT=$NMEDIT
6573   # Extract the first word of "nmedit", so it can be a program name with args.
6574 set dummy nmedit; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6578   $as_echo_n "(cached) " >&6
6579 else
6580   if test -n "$ac_ct_NMEDIT"; then
6581   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586   IFS=$as_save_IFS
6587   test -z "$as_dir" && as_dir=.
6588     for ac_exec_ext in '' $ac_executable_extensions; do
6589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592     break 2
6593   fi
6594 done
6595   done
6596 IFS=$as_save_IFS
6597
6598 fi
6599 fi
6600 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6601 if test -n "$ac_ct_NMEDIT"; then
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6603 $as_echo "$ac_ct_NMEDIT" >&6; }
6604 else
6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6607 fi
6608
6609   if test "x$ac_ct_NMEDIT" = x; then
6610     NMEDIT=":"
6611   else
6612     case $cross_compiling:$ac_tool_warned in
6613 yes:)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618     NMEDIT=$ac_ct_NMEDIT
6619   fi
6620 else
6621   NMEDIT="$ac_cv_prog_NMEDIT"
6622 fi
6623
6624     if test -n "$ac_tool_prefix"; then
6625   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_LIPO+:} false; then :
6630   $as_echo_n "(cached) " >&6
6631 else
6632   if test -n "$LIPO"; then
6633   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640     for ac_exec_ext in '' $ac_executable_extensions; do
6641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647   done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 LIPO=$ac_cv_prog_LIPO
6653 if test -n "$LIPO"; then
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6655 $as_echo "$LIPO" >&6; }
6656 else
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661
6662 fi
6663 if test -z "$ac_cv_prog_LIPO"; then
6664   ac_ct_LIPO=$LIPO
6665   # Extract the first word of "lipo", so it can be a program name with args.
6666 set dummy lipo; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6670   $as_echo_n "(cached) " >&6
6671 else
6672   if test -n "$ac_ct_LIPO"; then
6673   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680     for ac_exec_ext in '' $ac_executable_extensions; do
6681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682     ac_cv_prog_ac_ct_LIPO="lipo"
6683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687   done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6693 if test -n "$ac_ct_LIPO"; then
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6695 $as_echo "$ac_ct_LIPO" >&6; }
6696 else
6697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6699 fi
6700
6701   if test "x$ac_ct_LIPO" = x; then
6702     LIPO=":"
6703   else
6704     case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710     LIPO=$ac_ct_LIPO
6711   fi
6712 else
6713   LIPO="$ac_cv_prog_LIPO"
6714 fi
6715
6716     if test -n "$ac_tool_prefix"; then
6717   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}otool; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if ${ac_cv_prog_OTOOL+:} false; then :
6722   $as_echo_n "(cached) " >&6
6723 else
6724   if test -n "$OTOOL"; then
6725   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730   IFS=$as_save_IFS
6731   test -z "$as_dir" && as_dir=.
6732     for ac_exec_ext in '' $ac_executable_extensions; do
6733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736     break 2
6737   fi
6738 done
6739   done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 OTOOL=$ac_cv_prog_OTOOL
6745 if test -n "$OTOOL"; then
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6747 $as_echo "$OTOOL" >&6; }
6748 else
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752
6753
6754 fi
6755 if test -z "$ac_cv_prog_OTOOL"; then
6756   ac_ct_OTOOL=$OTOOL
6757   # Extract the first word of "otool", so it can be a program name with args.
6758 set dummy otool; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6762   $as_echo_n "(cached) " >&6
6763 else
6764   if test -n "$ac_ct_OTOOL"; then
6765   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770   IFS=$as_save_IFS
6771   test -z "$as_dir" && as_dir=.
6772     for ac_exec_ext in '' $ac_executable_extensions; do
6773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774     ac_cv_prog_ac_ct_OTOOL="otool"
6775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776     break 2
6777   fi
6778 done
6779   done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6785 if test -n "$ac_ct_OTOOL"; then
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6787 $as_echo "$ac_ct_OTOOL" >&6; }
6788 else
6789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6791 fi
6792
6793   if test "x$ac_ct_OTOOL" = x; then
6794     OTOOL=":"
6795   else
6796     case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802     OTOOL=$ac_ct_OTOOL
6803   fi
6804 else
6805   OTOOL="$ac_cv_prog_OTOOL"
6806 fi
6807
6808     if test -n "$ac_tool_prefix"; then
6809   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_prog_OTOOL64+:} false; then :
6814   $as_echo_n "(cached) " >&6
6815 else
6816   if test -n "$OTOOL64"; then
6817   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824     for ac_exec_ext in '' $ac_executable_extensions; do
6825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831   done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 OTOOL64=$ac_cv_prog_OTOOL64
6837 if test -n "$OTOOL64"; then
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6839 $as_echo "$OTOOL64" >&6; }
6840 else
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6843 fi
6844
6845
6846 fi
6847 if test -z "$ac_cv_prog_OTOOL64"; then
6848   ac_ct_OTOOL64=$OTOOL64
6849   # Extract the first word of "otool64", so it can be a program name with args.
6850 set dummy otool64; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   if test -n "$ac_ct_OTOOL64"; then
6857   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864     for ac_exec_ext in '' $ac_executable_extensions; do
6865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866     ac_cv_prog_ac_ct_OTOOL64="otool64"
6867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871   done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6877 if test -n "$ac_ct_OTOOL64"; then
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6879 $as_echo "$ac_ct_OTOOL64" >&6; }
6880 else
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885   if test "x$ac_ct_OTOOL64" = x; then
6886     OTOOL64=":"
6887   else
6888     case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894     OTOOL64=$ac_ct_OTOOL64
6895   fi
6896 else
6897   OTOOL64="$ac_cv_prog_OTOOL64"
6898 fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6927 $as_echo_n "checking for -single_module linker flag... " >&6; }
6928 if ${lt_cv_apple_cc_single_mod+:} false; then :
6929   $as_echo_n "(cached) " >&6
6930 else
6931   lt_cv_apple_cc_single_mod=no
6932       if test -z "${LT_MULTI_MODULE}"; then
6933         # By default we will add the -single_module flag. You can override
6934         # by either setting the environment variable LT_MULTI_MODULE
6935         # non-empty at configure time, or by adding -multi_module to the
6936         # link flags.
6937         rm -rf libconftest.dylib*
6938         echo "int foo(void){return 1;}" > conftest.c
6939         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6940 -dynamiclib -Wl,-single_module conftest.c" >&5
6941         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6943         _lt_result=$?
6944         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6945           lt_cv_apple_cc_single_mod=yes
6946         else
6947           cat conftest.err >&5
6948         fi
6949         rm -rf libconftest.dylib*
6950         rm -f conftest.*
6951       fi
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6954 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6956 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6957 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960   lt_cv_ld_exported_symbols_list=no
6961       save_LDFLAGS=$LDFLAGS
6962       echo "_main" > conftest.sym
6963       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6964       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h.  */
6966
6967 int
6968 main ()
6969 {
6970
6971   ;
6972   return 0;
6973 }
6974 _ACEOF
6975 if ac_fn_c_try_link "$LINENO"; then :
6976   lt_cv_ld_exported_symbols_list=yes
6977 else
6978   lt_cv_ld_exported_symbols_list=no
6979 fi
6980 rm -f core conftest.err conftest.$ac_objext \
6981     conftest$ac_exeext conftest.$ac_ext
6982         LDFLAGS="$save_LDFLAGS"
6983
6984 fi
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6986 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6987     case $host_os in
6988     rhapsody* | darwin1.[012])
6989       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6990     darwin1.*)
6991       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6992     darwin*) # darwin 5.x on
6993       # if running on 10.5 or later, the deployment target defaults
6994       # to the OS version, if on x86, and 10.4, the deployment
6995       # target defaults to 10.4. Don't you love it?
6996       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6997         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6998           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6999         10.[012]*)
7000           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7001         10.*)
7002           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7003       esac
7004     ;;
7005   esac
7006     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7007       _lt_dar_single_mod='$single_module'
7008     fi
7009     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7010       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7011     else
7012       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7013     fi
7014     if test "$DSYMUTIL" != ":"; then
7015       _lt_dsymutil='~$DSYMUTIL $lib || :'
7016     else
7017       _lt_dsymutil=
7018     fi
7019     ;;
7020   esac
7021
7022 ac_ext=c
7023 ac_cpp='$CPP $CPPFLAGS'
7024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7028 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7029 # On Suns, sometimes $CPP names a directory.
7030 if test -n "$CPP" && test -d "$CPP"; then
7031   CPP=
7032 fi
7033 if test -z "$CPP"; then
7034   if ${ac_cv_prog_CPP+:} false; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037       # Double quotes because CPP needs to be expanded
7038     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7039     do
7040       ac_preproc_ok=false
7041 for ac_c_preproc_warn_flag in '' yes
7042 do
7043   # Use a header file that comes with gcc, so configuring glibc
7044   # with a fresh cross-compiler works.
7045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7046   # <limits.h> exists even on freestanding compilers.
7047   # On the NeXT, cc -E runs the code through the compiler's parser,
7048   # not just through cpp. "Syntax error" is here to catch this case.
7049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h.  */
7051 #ifdef __STDC__
7052 # include <limits.h>
7053 #else
7054 # include <assert.h>
7055 #endif
7056                      Syntax error
7057 _ACEOF
7058 if ac_fn_c_try_cpp "$LINENO"; then :
7059
7060 else
7061   # Broken: fails on valid input.
7062 continue
7063 fi
7064 rm -f conftest.err conftest.i conftest.$ac_ext
7065
7066   # OK, works on sane cases.  Now check whether nonexistent headers
7067   # can be detected and how.
7068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h.  */
7070 #include <ac_nonexistent.h>
7071 _ACEOF
7072 if ac_fn_c_try_cpp "$LINENO"; then :
7073   # Broken: success on invalid input.
7074 continue
7075 else
7076   # Passes both tests.
7077 ac_preproc_ok=:
7078 break
7079 fi
7080 rm -f conftest.err conftest.i conftest.$ac_ext
7081
7082 done
7083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7084 rm -f conftest.i conftest.err conftest.$ac_ext
7085 if $ac_preproc_ok; then :
7086   break
7087 fi
7088
7089     done
7090     ac_cv_prog_CPP=$CPP
7091
7092 fi
7093   CPP=$ac_cv_prog_CPP
7094 else
7095   ac_cv_prog_CPP=$CPP
7096 fi
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7098 $as_echo "$CPP" >&6; }
7099 ac_preproc_ok=false
7100 for ac_c_preproc_warn_flag in '' yes
7101 do
7102   # Use a header file that comes with gcc, so configuring glibc
7103   # with a fresh cross-compiler works.
7104   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7105   # <limits.h> exists even on freestanding compilers.
7106   # On the NeXT, cc -E runs the code through the compiler's parser,
7107   # not just through cpp. "Syntax error" is here to catch this case.
7108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h.  */
7110 #ifdef __STDC__
7111 # include <limits.h>
7112 #else
7113 # include <assert.h>
7114 #endif
7115                      Syntax error
7116 _ACEOF
7117 if ac_fn_c_try_cpp "$LINENO"; then :
7118
7119 else
7120   # Broken: fails on valid input.
7121 continue
7122 fi
7123 rm -f conftest.err conftest.i conftest.$ac_ext
7124
7125   # OK, works on sane cases.  Now check whether nonexistent headers
7126   # can be detected and how.
7127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h.  */
7129 #include <ac_nonexistent.h>
7130 _ACEOF
7131 if ac_fn_c_try_cpp "$LINENO"; then :
7132   # Broken: success on invalid input.
7133 continue
7134 else
7135   # Passes both tests.
7136 ac_preproc_ok=:
7137 break
7138 fi
7139 rm -f conftest.err conftest.i conftest.$ac_ext
7140
7141 done
7142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7143 rm -f conftest.i conftest.err conftest.$ac_ext
7144 if $ac_preproc_ok; then :
7145
7146 else
7147   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7149 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7150 See \`config.log' for more details" "$LINENO" 5; }
7151 fi
7152
7153 ac_ext=c
7154 ac_cpp='$CPP $CPPFLAGS'
7155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7158
7159
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7161 $as_echo_n "checking for ANSI C header files... " >&6; }
7162 if ${ac_cv_header_stdc+:} false; then :
7163   $as_echo_n "(cached) " >&6
7164 else
7165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h.  */
7167 #include <stdlib.h>
7168 #include <stdarg.h>
7169 #include <string.h>
7170 #include <float.h>
7171
7172 int
7173 main ()
7174 {
7175
7176   ;
7177   return 0;
7178 }
7179 _ACEOF
7180 if ac_fn_c_try_compile "$LINENO"; then :
7181   ac_cv_header_stdc=yes
7182 else
7183   ac_cv_header_stdc=no
7184 fi
7185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186
7187 if test $ac_cv_header_stdc = yes; then
7188   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h.  */
7191 #include <string.h>
7192
7193 _ACEOF
7194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7195   $EGREP "memchr" >/dev/null 2>&1; then :
7196
7197 else
7198   ac_cv_header_stdc=no
7199 fi
7200 rm -f conftest*
7201
7202 fi
7203
7204 if test $ac_cv_header_stdc = yes; then
7205   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h.  */
7208 #include <stdlib.h>
7209
7210 _ACEOF
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212   $EGREP "free" >/dev/null 2>&1; then :
7213
7214 else
7215   ac_cv_header_stdc=no
7216 fi
7217 rm -f conftest*
7218
7219 fi
7220
7221 if test $ac_cv_header_stdc = yes; then
7222   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7223   if test "$cross_compiling" = yes; then :
7224   :
7225 else
7226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h.  */
7228 #include <ctype.h>
7229 #include <stdlib.h>
7230 #if ((' ' & 0x0FF) == 0x020)
7231 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7232 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7233 #else
7234 # define ISLOWER(c) \
7235                    (('a' <= (c) && (c) <= 'i') \
7236                      || ('j' <= (c) && (c) <= 'r') \
7237                      || ('s' <= (c) && (c) <= 'z'))
7238 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7239 #endif
7240
7241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7242 int
7243 main ()
7244 {
7245   int i;
7246   for (i = 0; i < 256; i++)
7247     if (XOR (islower (i), ISLOWER (i))
7248         || toupper (i) != TOUPPER (i))
7249       return 2;
7250   return 0;
7251 }
7252 _ACEOF
7253 if ac_fn_c_try_run "$LINENO"; then :
7254
7255 else
7256   ac_cv_header_stdc=no
7257 fi
7258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7259   conftest.$ac_objext conftest.beam conftest.$ac_ext
7260 fi
7261
7262 fi
7263 fi
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7265 $as_echo "$ac_cv_header_stdc" >&6; }
7266 if test $ac_cv_header_stdc = yes; then
7267
7268 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7269
7270 fi
7271
7272 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7273 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7274                   inttypes.h stdint.h unistd.h
7275 do :
7276   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7277 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7278 "
7279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7280   cat >>confdefs.h <<_ACEOF
7281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7282 _ACEOF
7283
7284 fi
7285
7286 done
7287
7288
7289 for ac_header in dlfcn.h
7290 do :
7291   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7292 "
7293 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7294   cat >>confdefs.h <<_ACEOF
7295 #define HAVE_DLFCN_H 1
7296 _ACEOF
7297
7298 fi
7299
7300 done
7301
7302
7303
7304 # Set options
7305
7306
7307
7308         enable_dlopen=no
7309
7310
7311
7312             # Check whether --enable-shared was given.
7313 if test "${enable_shared+set}" = set; then :
7314   enableval=$enable_shared; p=${PACKAGE-default}
7315     case $enableval in
7316     yes) enable_shared=yes ;;
7317     no) enable_shared=no ;;
7318     *)
7319       enable_shared=no
7320       # Look at the argument we got.  We use all the common list separators.
7321       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7322       for pkg in $enableval; do
7323         IFS="$lt_save_ifs"
7324         if test "X$pkg" = "X$p"; then
7325           enable_shared=yes
7326         fi
7327       done
7328       IFS="$lt_save_ifs"
7329       ;;
7330     esac
7331 else
7332   enable_shared=yes
7333 fi
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343   # Check whether --enable-static was given.
7344 if test "${enable_static+set}" = set; then :
7345   enableval=$enable_static; p=${PACKAGE-default}
7346     case $enableval in
7347     yes) enable_static=yes ;;
7348     no) enable_static=no ;;
7349     *)
7350      enable_static=no
7351       # Look at the argument we got.  We use all the common list separators.
7352       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7353       for pkg in $enableval; do
7354         IFS="$lt_save_ifs"
7355         if test "X$pkg" = "X$p"; then
7356           enable_static=yes
7357         fi
7358       done
7359       IFS="$lt_save_ifs"
7360       ;;
7361     esac
7362 else
7363   enable_static=yes
7364 fi
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375 # Check whether --with-pic was given.
7376 if test "${with_pic+set}" = set; then :
7377   withval=$with_pic; pic_mode="$withval"
7378 else
7379   pic_mode=default
7380 fi
7381
7382
7383 test -z "$pic_mode" && pic_mode=default
7384
7385
7386
7387
7388
7389
7390
7391   # Check whether --enable-fast-install was given.
7392 if test "${enable_fast_install+set}" = set; then :
7393   enableval=$enable_fast_install; p=${PACKAGE-default}
7394     case $enableval in
7395     yes) enable_fast_install=yes ;;
7396     no) enable_fast_install=no ;;
7397     *)
7398       enable_fast_install=no
7399       # Look at the argument we got.  We use all the common list separators.
7400       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7401       for pkg in $enableval; do
7402         IFS="$lt_save_ifs"
7403         if test "X$pkg" = "X$p"; then
7404           enable_fast_install=yes
7405         fi
7406       done
7407       IFS="$lt_save_ifs"
7408       ;;
7409     esac
7410 else
7411   enable_fast_install=yes
7412 fi
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424 # This can be used to rebuild libtool when needed
7425 LIBTOOL_DEPS="$ltmain"
7426
7427 # Always use our own libtool.
7428 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454 test -z "$LN_S" && LN_S="ln -s"
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469 if test -n "${ZSH_VERSION+set}" ; then
7470    setopt NO_GLOB_SUBST
7471 fi
7472
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7474 $as_echo_n "checking for objdir... " >&6; }
7475 if ${lt_cv_objdir+:} false; then :
7476   $as_echo_n "(cached) " >&6
7477 else
7478   rm -f .libs 2>/dev/null
7479 mkdir .libs 2>/dev/null
7480 if test -d .libs; then
7481   lt_cv_objdir=.libs
7482 else
7483   # MS-DOS does not allow filenames that begin with a dot.
7484   lt_cv_objdir=_libs
7485 fi
7486 rmdir .libs 2>/dev/null
7487 fi
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7489 $as_echo "$lt_cv_objdir" >&6; }
7490 objdir=$lt_cv_objdir
7491
7492
7493
7494
7495
7496 cat >>confdefs.h <<_ACEOF
7497 #define LT_OBJDIR "$lt_cv_objdir/"
7498 _ACEOF
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516 case $host_os in
7517 aix3*)
7518   # AIX sometimes has problems with the GCC collect2 program.  For some
7519   # reason, if we set the COLLECT_NAMES environment variable, the problems
7520   # vanish in a puff of smoke.
7521   if test "X${COLLECT_NAMES+set}" != Xset; then
7522     COLLECT_NAMES=
7523     export COLLECT_NAMES
7524   fi
7525   ;;
7526 esac
7527
7528 # Sed substitution that helps us do robust quoting.  It backslashifies
7529 # metacharacters that are still active within double-quoted strings.
7530 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7531
7532 # Same as above, but do not quote variable references.
7533 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7534
7535 # Sed substitution to delay expansion of an escaped shell variable in a
7536 # double_quote_subst'ed string.
7537 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7538
7539 # Sed substitution to delay expansion of an escaped single quote.
7540 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7541
7542 # Sed substitution to avoid accidental globbing in evaled expressions
7543 no_glob_subst='s/\*/\\\*/g'
7544
7545 # Global variables:
7546 ofile=libtool
7547 can_build_shared=yes
7548
7549 # All known linkers require a `.a' archive for static linking (except MSVC,
7550 # which needs '.lib').
7551 libext=a
7552
7553 with_gnu_ld="$lt_cv_prog_gnu_ld"
7554
7555 old_CC="$CC"
7556 old_CFLAGS="$CFLAGS"
7557
7558 # Set sane defaults for various variables
7559 test -z "$CC" && CC=cc
7560 test -z "$LTCC" && LTCC=$CC
7561 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7562 test -z "$LD" && LD=ld
7563 test -z "$ac_objext" && ac_objext=o
7564
7565 for cc_temp in $compiler""; do
7566   case $cc_temp in
7567     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7568     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7569     \-*) ;;
7570     *) break;;
7571   esac
7572 done
7573 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7574
7575
7576 # Only perform the check for file, if the check method requires it
7577 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7578 case $deplibs_check_method in
7579 file_magic*)
7580   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7582 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7583 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7584   $as_echo_n "(cached) " >&6
7585 else
7586   case $MAGIC_CMD in
7587 [\\/*] |  ?:[\\/]*)
7588   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7589   ;;
7590 *)
7591   lt_save_MAGIC_CMD="$MAGIC_CMD"
7592   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7593   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7594   for ac_dir in $ac_dummy; do
7595     IFS="$lt_save_ifs"
7596     test -z "$ac_dir" && ac_dir=.
7597     if test -f $ac_dir/${ac_tool_prefix}file; then
7598       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7599       if test -n "$file_magic_test_file"; then
7600         case $deplibs_check_method in
7601         "file_magic "*)
7602           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7603           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7604           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7605             $EGREP "$file_magic_regex" > /dev/null; then
7606             :
7607           else
7608             cat <<_LT_EOF 1>&2
7609
7610 *** Warning: the command libtool uses to detect shared libraries,
7611 *** $file_magic_cmd, produces output that libtool cannot recognize.
7612 *** The result is that libtool may fail to recognize shared libraries
7613 *** as such.  This will affect the creation of libtool libraries that
7614 *** depend on shared libraries, but programs linked with such libtool
7615 *** libraries will work regardless of this problem.  Nevertheless, you
7616 *** may want to report the problem to your system manager and/or to
7617 *** bug-libtool@gnu.org
7618
7619 _LT_EOF
7620           fi ;;
7621         esac
7622       fi
7623       break
7624     fi
7625   done
7626   IFS="$lt_save_ifs"
7627   MAGIC_CMD="$lt_save_MAGIC_CMD"
7628   ;;
7629 esac
7630 fi
7631
7632 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7633 if test -n "$MAGIC_CMD"; then
7634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7635 $as_echo "$MAGIC_CMD" >&6; }
7636 else
7637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7639 fi
7640
7641
7642
7643
7644
7645 if test -z "$lt_cv_path_MAGIC_CMD"; then
7646   if test -n "$ac_tool_prefix"; then
7647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7648 $as_echo_n "checking for file... " >&6; }
7649 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   case $MAGIC_CMD in
7653 [\\/*] |  ?:[\\/]*)
7654   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7655   ;;
7656 *)
7657   lt_save_MAGIC_CMD="$MAGIC_CMD"
7658   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7659   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7660   for ac_dir in $ac_dummy; do
7661     IFS="$lt_save_ifs"
7662     test -z "$ac_dir" && ac_dir=.
7663     if test -f $ac_dir/file; then
7664       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7665       if test -n "$file_magic_test_file"; then
7666         case $deplibs_check_method in
7667         "file_magic "*)
7668           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7669           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7670           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7671             $EGREP "$file_magic_regex" > /dev/null; then
7672             :
7673           else
7674             cat <<_LT_EOF 1>&2
7675
7676 *** Warning: the command libtool uses to detect shared libraries,
7677 *** $file_magic_cmd, produces output that libtool cannot recognize.
7678 *** The result is that libtool may fail to recognize shared libraries
7679 *** as such.  This will affect the creation of libtool libraries that
7680 *** depend on shared libraries, but programs linked with such libtool
7681 *** libraries will work regardless of this problem.  Nevertheless, you
7682 *** may want to report the problem to your system manager and/or to
7683 *** bug-libtool@gnu.org
7684
7685 _LT_EOF
7686           fi ;;
7687         esac
7688       fi
7689       break
7690     fi
7691   done
7692   IFS="$lt_save_ifs"
7693   MAGIC_CMD="$lt_save_MAGIC_CMD"
7694   ;;
7695 esac
7696 fi
7697
7698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7699 if test -n "$MAGIC_CMD"; then
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7701 $as_echo "$MAGIC_CMD" >&6; }
7702 else
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 $as_echo "no" >&6; }
7705 fi
7706
7707
7708   else
7709     MAGIC_CMD=:
7710   fi
7711 fi
7712
7713   fi
7714   ;;
7715 esac
7716
7717 # Use C for the default configuration in the libtool script
7718
7719 lt_save_CC="$CC"
7720 ac_ext=c
7721 ac_cpp='$CPP $CPPFLAGS'
7722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7725
7726
7727 # Source file extension for C test sources.
7728 ac_ext=c
7729
7730 # Object file extension for compiled C test sources.
7731 objext=o
7732 objext=$objext
7733
7734 # Code to be used in simple compile tests
7735 lt_simple_compile_test_code="int some_variable = 0;"
7736
7737 # Code to be used in simple link tests
7738 lt_simple_link_test_code='int main(){return(0);}'
7739
7740
7741
7742
7743
7744
7745
7746 # If no C compiler was specified, use CC.
7747 LTCC=${LTCC-"$CC"}
7748
7749 # If no C compiler flags were specified, use CFLAGS.
7750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7751
7752 # Allow CC to be a program name with arguments.
7753 compiler=$CC
7754
7755 # Save the default compiler, since it gets overwritten when the other
7756 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7757 compiler_DEFAULT=$CC
7758
7759 # save warnings/boilerplate of simple test code
7760 ac_outfile=conftest.$ac_objext
7761 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7762 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7763 _lt_compiler_boilerplate=`cat conftest.err`
7764 $RM conftest*
7765
7766 ac_outfile=conftest.$ac_objext
7767 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7768 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7769 _lt_linker_boilerplate=`cat conftest.err`
7770 $RM -r conftest*
7771
7772
7773 if test -n "$compiler"; then
7774
7775 lt_prog_compiler_no_builtin_flag=
7776
7777 if test "$GCC" = yes; then
7778   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7779
7780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7781 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7782 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7783   $as_echo_n "(cached) " >&6
7784 else
7785   lt_cv_prog_compiler_rtti_exceptions=no
7786    ac_outfile=conftest.$ac_objext
7787    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7788    lt_compiler_flag="-fno-rtti -fno-exceptions"
7789    # Insert the option either (1) after the last *FLAGS variable, or
7790    # (2) before a word containing "conftest.", or (3) at the end.
7791    # Note that $ac_compile itself does not contain backslashes and begins
7792    # with a dollar sign (not a hyphen), so the echo should work correctly.
7793    # The option is referenced via a variable to avoid confusing sed.
7794    lt_compile=`echo "$ac_compile" | $SED \
7795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7797    -e 's:$: $lt_compiler_flag:'`
7798    (eval echo "\"\$as_me:7798: $lt_compile\"" >&5)
7799    (eval "$lt_compile" 2>conftest.err)
7800    ac_status=$?
7801    cat conftest.err >&5
7802    echo "$as_me:7802: \$? = $ac_status" >&5
7803    if (exit $ac_status) && test -s "$ac_outfile"; then
7804      # The compiler can only warn and ignore the option if not recognized
7805      # So say no if there are warnings other than the usual output.
7806      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7807      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7808      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7809        lt_cv_prog_compiler_rtti_exceptions=yes
7810      fi
7811    fi
7812    $RM conftest*
7813
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7816 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7817
7818 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7819     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7820 else
7821     :
7822 fi
7823
7824 fi
7825
7826
7827
7828
7829
7830
7831   lt_prog_compiler_wl=
7832 lt_prog_compiler_pic=
7833 lt_prog_compiler_static=
7834
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7836 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7837
7838   if test "$GCC" = yes; then
7839     lt_prog_compiler_wl='-Wl,'
7840     lt_prog_compiler_static='-static'
7841
7842     case $host_os in
7843       aix*)
7844       # All AIX code is PIC.
7845       if test "$host_cpu" = ia64; then
7846         # AIX 5 now supports IA64 processor
7847         lt_prog_compiler_static='-Bstatic'
7848       fi
7849       ;;
7850
7851     amigaos*)
7852       case $host_cpu in
7853       powerpc)
7854             # see comment about AmigaOS4 .so support
7855             lt_prog_compiler_pic='-fPIC'
7856         ;;
7857       m68k)
7858             # FIXME: we need at least 68020 code to build shared libraries, but
7859             # adding the `-m68020' flag to GCC prevents building anything better,
7860             # like `-m68040'.
7861             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7862         ;;
7863       esac
7864       ;;
7865
7866     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7867       # PIC is the default for these OSes.
7868       ;;
7869
7870     mingw* | cygwin* | pw32* | os2* | cegcc*)
7871       # This hack is so that the source file can tell whether it is being
7872       # built for inclusion in a dll (and should export symbols for example).
7873       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7874       # (--disable-auto-import) libraries
7875       lt_prog_compiler_pic='-DDLL_EXPORT'
7876       ;;
7877
7878     darwin* | rhapsody*)
7879       # PIC is the default on this platform
7880       # Common symbols not allowed in MH_DYLIB files
7881       lt_prog_compiler_pic='-fno-common'
7882       ;;
7883
7884     hpux*)
7885       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7886       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7887       # sets the default TLS model and affects inlining.
7888       case $host_cpu in
7889       hppa*64*)
7890         # +Z the default
7891         ;;
7892       *)
7893         lt_prog_compiler_pic='-fPIC'
7894         ;;
7895       esac
7896       ;;
7897
7898     interix[3-9]*)
7899       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7900       # Instead, we relocate shared libraries at runtime.
7901       ;;
7902
7903     msdosdjgpp*)
7904       # Just because we use GCC doesn't mean we suddenly get shared libraries
7905       # on systems that don't support them.
7906       lt_prog_compiler_can_build_shared=no
7907       enable_shared=no
7908       ;;
7909
7910     *nto* | *qnx*)
7911       # QNX uses GNU C++, but need to define -shared option too, otherwise
7912       # it will coredump.
7913       lt_prog_compiler_pic='-fPIC -shared'
7914       ;;
7915
7916     sysv4*MP*)
7917       if test -d /usr/nec; then
7918         lt_prog_compiler_pic=-Kconform_pic
7919       fi
7920       ;;
7921
7922     *)
7923       lt_prog_compiler_pic='-fPIC'
7924       ;;
7925     esac
7926   else
7927     # PORTME Check for flag to pass linker flags through the system compiler.
7928     case $host_os in
7929     aix*)
7930       lt_prog_compiler_wl='-Wl,'
7931       if test "$host_cpu" = ia64; then
7932         # AIX 5 now supports IA64 processor
7933         lt_prog_compiler_static='-Bstatic'
7934       else
7935         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7936       fi
7937       ;;
7938
7939     mingw* | cygwin* | pw32* | os2* | cegcc*)
7940       # This hack is so that the source file can tell whether it is being
7941       # built for inclusion in a dll (and should export symbols for example).
7942       lt_prog_compiler_pic='-DDLL_EXPORT'
7943       ;;
7944
7945     hpux9* | hpux10* | hpux11*)
7946       lt_prog_compiler_wl='-Wl,'
7947       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7948       # not for PA HP-UX.
7949       case $host_cpu in
7950       hppa*64*|ia64*)
7951         # +Z the default
7952         ;;
7953       *)
7954         lt_prog_compiler_pic='+Z'
7955         ;;
7956       esac
7957       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7958       lt_prog_compiler_static='${wl}-a ${wl}archive'
7959       ;;
7960
7961     irix5* | irix6* | nonstopux*)
7962       lt_prog_compiler_wl='-Wl,'
7963       # PIC (with -KPIC) is the default.
7964       lt_prog_compiler_static='-non_shared'
7965       ;;
7966
7967     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7968       case $cc_basename in
7969       # old Intel for x86_64 which still supported -KPIC.
7970       ecc*)
7971         lt_prog_compiler_wl='-Wl,'
7972         lt_prog_compiler_pic='-KPIC'
7973         lt_prog_compiler_static='-static'
7974         ;;
7975       # icc used to be incompatible with GCC.
7976       # ICC 10 doesn't accept -KPIC any more.
7977       icc* | ifort*)
7978         lt_prog_compiler_wl='-Wl,'
7979         lt_prog_compiler_pic='-fPIC'
7980         lt_prog_compiler_static='-static'
7981         ;;
7982       # Lahey Fortran 8.1.
7983       lf95*)
7984         lt_prog_compiler_wl='-Wl,'
7985         lt_prog_compiler_pic='--shared'
7986         lt_prog_compiler_static='--static'
7987         ;;
7988       pgcc* | pgf77* | pgf90* | pgf95*)
7989         # Portland Group compilers (*not* the Pentium gcc compiler,
7990         # which looks to be a dead project)
7991         lt_prog_compiler_wl='-Wl,'
7992         lt_prog_compiler_pic='-fpic'
7993         lt_prog_compiler_static='-Bstatic'
7994         ;;
7995       ccc*)
7996         lt_prog_compiler_wl='-Wl,'
7997         # All Alpha code is PIC.
7998         lt_prog_compiler_static='-non_shared'
7999         ;;
8000       xl*)
8001         # IBM XL C 8.0/Fortran 10.1 on PPC
8002         lt_prog_compiler_wl='-Wl,'
8003         lt_prog_compiler_pic='-qpic'
8004         lt_prog_compiler_static='-qstaticlink'
8005         ;;
8006       *)
8007         case `$CC -V 2>&1 | sed 5q` in
8008         *Sun\ C*)
8009           # Sun C 5.9
8010           lt_prog_compiler_pic='-KPIC'
8011           lt_prog_compiler_static='-Bstatic'
8012           lt_prog_compiler_wl='-Wl,'
8013           ;;
8014         *Sun\ F*)
8015           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8016           lt_prog_compiler_pic='-KPIC'
8017           lt_prog_compiler_static='-Bstatic'
8018           lt_prog_compiler_wl=''
8019           ;;
8020         esac
8021         ;;
8022       esac
8023       ;;
8024
8025     newsos6)
8026       lt_prog_compiler_pic='-KPIC'
8027       lt_prog_compiler_static='-Bstatic'
8028       ;;
8029
8030     *nto* | *qnx*)
8031       # QNX uses GNU C++, but need to define -shared option too, otherwise
8032       # it will coredump.
8033       lt_prog_compiler_pic='-fPIC -shared'
8034       ;;
8035
8036     osf3* | osf4* | osf5*)
8037       lt_prog_compiler_wl='-Wl,'
8038       # All OSF/1 code is PIC.
8039       lt_prog_compiler_static='-non_shared'
8040       ;;
8041
8042     rdos*)
8043       lt_prog_compiler_static='-non_shared'
8044       ;;
8045
8046     solaris*)
8047       lt_prog_compiler_pic='-KPIC'
8048       lt_prog_compiler_static='-Bstatic'
8049       case $cc_basename in
8050       f77* | f90* | f95*)
8051         lt_prog_compiler_wl='-Qoption ld ';;
8052       *)
8053         lt_prog_compiler_wl='-Wl,';;
8054       esac
8055       ;;
8056
8057     sunos4*)
8058       lt_prog_compiler_wl='-Qoption ld '
8059       lt_prog_compiler_pic='-PIC'
8060       lt_prog_compiler_static='-Bstatic'
8061       ;;
8062
8063     sysv4 | sysv4.2uw2* | sysv4.3*)
8064       lt_prog_compiler_wl='-Wl,'
8065       lt_prog_compiler_pic='-KPIC'
8066       lt_prog_compiler_static='-Bstatic'
8067       ;;
8068
8069     sysv4*MP*)
8070       if test -d /usr/nec ;then
8071         lt_prog_compiler_pic='-Kconform_pic'
8072         lt_prog_compiler_static='-Bstatic'
8073       fi
8074       ;;
8075
8076     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8077       lt_prog_compiler_wl='-Wl,'
8078       lt_prog_compiler_pic='-KPIC'
8079       lt_prog_compiler_static='-Bstatic'
8080       ;;
8081
8082     unicos*)
8083       lt_prog_compiler_wl='-Wl,'
8084       lt_prog_compiler_can_build_shared=no
8085       ;;
8086
8087     uts4*)
8088       lt_prog_compiler_pic='-pic'
8089       lt_prog_compiler_static='-Bstatic'
8090       ;;
8091
8092     *)
8093       lt_prog_compiler_can_build_shared=no
8094       ;;
8095     esac
8096   fi
8097
8098 case $host_os in
8099   # For platforms which do not support PIC, -DPIC is meaningless:
8100   *djgpp*)
8101     lt_prog_compiler_pic=
8102     ;;
8103   *)
8104     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8105     ;;
8106 esac
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8108 $as_echo "$lt_prog_compiler_pic" >&6; }
8109
8110
8111
8112
8113
8114
8115 #
8116 # Check to make sure the PIC flag actually works.
8117 #
8118 if test -n "$lt_prog_compiler_pic"; then
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8120 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8121 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8122   $as_echo_n "(cached) " >&6
8123 else
8124   lt_cv_prog_compiler_pic_works=no
8125    ac_outfile=conftest.$ac_objext
8126    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8127    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8128    # Insert the option either (1) after the last *FLAGS variable, or
8129    # (2) before a word containing "conftest.", or (3) at the end.
8130    # Note that $ac_compile itself does not contain backslashes and begins
8131    # with a dollar sign (not a hyphen), so the echo should work correctly.
8132    # The option is referenced via a variable to avoid confusing sed.
8133    lt_compile=`echo "$ac_compile" | $SED \
8134    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8135    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8136    -e 's:$: $lt_compiler_flag:'`
8137    (eval echo "\"\$as_me:8137: $lt_compile\"" >&5)
8138    (eval "$lt_compile" 2>conftest.err)
8139    ac_status=$?
8140    cat conftest.err >&5
8141    echo "$as_me:8141: \$? = $ac_status" >&5
8142    if (exit $ac_status) && test -s "$ac_outfile"; then
8143      # The compiler can only warn and ignore the option if not recognized
8144      # So say no if there are warnings other than the usual output.
8145      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8146      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8147      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8148        lt_cv_prog_compiler_pic_works=yes
8149      fi
8150    fi
8151    $RM conftest*
8152
8153 fi
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8155 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8156
8157 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8158     case $lt_prog_compiler_pic in
8159      "" | " "*) ;;
8160      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8161      esac
8162 else
8163     lt_prog_compiler_pic=
8164      lt_prog_compiler_can_build_shared=no
8165 fi
8166
8167 fi
8168
8169
8170
8171
8172
8173
8174 #
8175 # Check to make sure the static flag actually works.
8176 #
8177 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8179 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8180 if ${lt_cv_prog_compiler_static_works+:} false; then :
8181   $as_echo_n "(cached) " >&6
8182 else
8183   lt_cv_prog_compiler_static_works=no
8184    save_LDFLAGS="$LDFLAGS"
8185    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8186    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8187    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8188      # The linker can only warn and ignore the option if not recognized
8189      # So say no if there are warnings
8190      if test -s conftest.err; then
8191        # Append any errors to the config.log.
8192        cat conftest.err 1>&5
8193        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8194        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8195        if diff conftest.exp conftest.er2 >/dev/null; then
8196          lt_cv_prog_compiler_static_works=yes
8197        fi
8198      else
8199        lt_cv_prog_compiler_static_works=yes
8200      fi
8201    fi
8202    $RM -r conftest*
8203    LDFLAGS="$save_LDFLAGS"
8204
8205 fi
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8207 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8208
8209 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8210     :
8211 else
8212     lt_prog_compiler_static=
8213 fi
8214
8215
8216
8217
8218
8219
8220
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8222 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8223 if ${lt_cv_prog_compiler_c_o+:} false; then :
8224   $as_echo_n "(cached) " >&6
8225 else
8226   lt_cv_prog_compiler_c_o=no
8227    $RM -r conftest 2>/dev/null
8228    mkdir conftest
8229    cd conftest
8230    mkdir out
8231    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232
8233    lt_compiler_flag="-o out/conftest2.$ac_objext"
8234    # Insert the option either (1) after the last *FLAGS variable, or
8235    # (2) before a word containing "conftest.", or (3) at the end.
8236    # Note that $ac_compile itself does not contain backslashes and begins
8237    # with a dollar sign (not a hyphen), so the echo should work correctly.
8238    lt_compile=`echo "$ac_compile" | $SED \
8239    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241    -e 's:$: $lt_compiler_flag:'`
8242    (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
8243    (eval "$lt_compile" 2>out/conftest.err)
8244    ac_status=$?
8245    cat out/conftest.err >&5
8246    echo "$as_me:8246: \$? = $ac_status" >&5
8247    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8248    then
8249      # The compiler can only warn and ignore the option if not recognized
8250      # So say no if there are warnings
8251      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8252      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8253      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8254        lt_cv_prog_compiler_c_o=yes
8255      fi
8256    fi
8257    chmod u+w . 2>&5
8258    $RM conftest*
8259    # SGI C++ compiler will create directory out/ii_files/ for
8260    # template instantiation
8261    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8262    $RM out/* && rmdir out
8263    cd ..
8264    $RM -r conftest
8265    $RM conftest*
8266
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8269 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8270
8271
8272
8273
8274
8275
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8278 if ${lt_cv_prog_compiler_c_o+:} false; then :
8279   $as_echo_n "(cached) " >&6
8280 else
8281   lt_cv_prog_compiler_c_o=no
8282    $RM -r conftest 2>/dev/null
8283    mkdir conftest
8284    cd conftest
8285    mkdir out
8286    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287
8288    lt_compiler_flag="-o out/conftest2.$ac_objext"
8289    # Insert the option either (1) after the last *FLAGS variable, or
8290    # (2) before a word containing "conftest.", or (3) at the end.
8291    # Note that $ac_compile itself does not contain backslashes and begins
8292    # with a dollar sign (not a hyphen), so the echo should work correctly.
8293    lt_compile=`echo "$ac_compile" | $SED \
8294    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296    -e 's:$: $lt_compiler_flag:'`
8297    (eval echo "\"\$as_me:8297: $lt_compile\"" >&5)
8298    (eval "$lt_compile" 2>out/conftest.err)
8299    ac_status=$?
8300    cat out/conftest.err >&5
8301    echo "$as_me:8301: \$? = $ac_status" >&5
8302    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8303    then
8304      # The compiler can only warn and ignore the option if not recognized
8305      # So say no if there are warnings
8306      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8307      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8308      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8309        lt_cv_prog_compiler_c_o=yes
8310      fi
8311    fi
8312    chmod u+w . 2>&5
8313    $RM conftest*
8314    # SGI C++ compiler will create directory out/ii_files/ for
8315    # template instantiation
8316    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8317    $RM out/* && rmdir out
8318    cd ..
8319    $RM -r conftest
8320    $RM conftest*
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8324 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8325
8326
8327
8328
8329 hard_links="nottested"
8330 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8331   # do not overwrite the value of need_locks provided by the user
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8333 $as_echo_n "checking if we can lock with hard links... " >&6; }
8334   hard_links=yes
8335   $RM conftest*
8336   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8337   touch conftest.a
8338   ln conftest.a conftest.b 2>&5 || hard_links=no
8339   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8341 $as_echo "$hard_links" >&6; }
8342   if test "$hard_links" = no; then
8343     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8344 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8345     need_locks=warn
8346   fi
8347 else
8348   need_locks=no
8349 fi
8350
8351
8352
8353
8354
8355
8356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8357 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8358
8359   runpath_var=
8360   allow_undefined_flag=
8361   always_export_symbols=no
8362   archive_cmds=
8363   archive_expsym_cmds=
8364   compiler_needs_object=no
8365   enable_shared_with_static_runtimes=no
8366   export_dynamic_flag_spec=
8367   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8368   hardcode_automatic=no
8369   hardcode_direct=no
8370   hardcode_direct_absolute=no
8371   hardcode_libdir_flag_spec=
8372   hardcode_libdir_flag_spec_ld=
8373   hardcode_libdir_separator=
8374   hardcode_minus_L=no
8375   hardcode_shlibpath_var=unsupported
8376   inherit_rpath=no
8377   link_all_deplibs=unknown
8378   module_cmds=
8379   module_expsym_cmds=
8380   old_archive_from_new_cmds=
8381   old_archive_from_expsyms_cmds=
8382   thread_safe_flag_spec=
8383   whole_archive_flag_spec=
8384   # include_expsyms should be a list of space-separated symbols to be *always*
8385   # included in the symbol list
8386   include_expsyms=
8387   # exclude_expsyms can be an extended regexp of symbols to exclude
8388   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8389   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8390   # as well as any symbol that contains `d'.
8391   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8392   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8393   # platforms (ab)use it in PIC code, but their linkers get confused if
8394   # the symbol is explicitly referenced.  Since portable code cannot
8395   # rely on this symbol name, it's probably fine to never include it in
8396   # preloaded symbol tables.
8397   # Exclude shared library initialization/finalization symbols.
8398   extract_expsyms_cmds=
8399
8400   case $host_os in
8401   cygwin* | mingw* | pw32* | cegcc*)
8402     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8403     # When not using gcc, we currently assume that we are using
8404     # Microsoft Visual C++.
8405     if test "$GCC" != yes; then
8406       with_gnu_ld=no
8407     fi
8408     ;;
8409   interix*)
8410     # we just hope/assume this is gcc and not c89 (= MSVC++)
8411     with_gnu_ld=yes
8412     ;;
8413   openbsd*)
8414     with_gnu_ld=no
8415     ;;
8416   linux* | k*bsd*-gnu)
8417     link_all_deplibs=no
8418     ;;
8419   esac
8420
8421   ld_shlibs=yes
8422   if test "$with_gnu_ld" = yes; then
8423     # If archive_cmds runs LD, not CC, wlarc should be empty
8424     wlarc='${wl}'
8425
8426     # Set some defaults for GNU ld with shared library support. These
8427     # are reset later if shared libraries are not supported. Putting them
8428     # here allows them to be overridden if necessary.
8429     runpath_var=LD_RUN_PATH
8430     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8431     export_dynamic_flag_spec='${wl}--export-dynamic'
8432     # ancient GNU ld didn't support --whole-archive et. al.
8433     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8434       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8435     else
8436       whole_archive_flag_spec=
8437     fi
8438     supports_anon_versioning=no
8439     case `$LD -v 2>&1` in
8440       *GNU\ gold*) supports_anon_versioning=yes ;;
8441       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8442       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8443       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8444       *\ 2.11.*) ;; # other 2.11 versions
8445       *) supports_anon_versioning=yes ;;
8446     esac
8447
8448     # See if GNU ld supports shared libraries.
8449     case $host_os in
8450     aix[3-9]*)
8451       # On AIX/PPC, the GNU linker is very broken
8452       if test "$host_cpu" != ia64; then
8453         ld_shlibs=no
8454         cat <<_LT_EOF 1>&2
8455
8456 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8457 *** to be unable to reliably create shared libraries on AIX.
8458 *** Therefore, libtool is disabling shared libraries support.  If you
8459 *** really care for shared libraries, you may want to modify your PATH
8460 *** so that a non-GNU linker is found, and then restart.
8461
8462 _LT_EOF
8463       fi
8464       ;;
8465
8466     amigaos*)
8467       case $host_cpu in
8468       powerpc)
8469             # see comment about AmigaOS4 .so support
8470             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8471             archive_expsym_cmds=''
8472         ;;
8473       m68k)
8474             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)'
8475             hardcode_libdir_flag_spec='-L$libdir'
8476             hardcode_minus_L=yes
8477         ;;
8478       esac
8479       ;;
8480
8481     beos*)
8482       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8483         allow_undefined_flag=unsupported
8484         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8485         # support --undefined.  This deserves some investigation.  FIXME
8486         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8487       else
8488         ld_shlibs=no
8489       fi
8490       ;;
8491
8492     cygwin* | mingw* | pw32* | cegcc*)
8493       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8494       # as there is no search path for DLLs.
8495       hardcode_libdir_flag_spec='-L$libdir'
8496       allow_undefined_flag=unsupported
8497       always_export_symbols=no
8498       enable_shared_with_static_runtimes=yes
8499       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8500
8501       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8502         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8503         # If the export-symbols file already is a .def file (1st line
8504         # is EXPORTS), use it as is; otherwise, prepend...
8505         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8506           cp $export_symbols $output_objdir/$soname.def;
8507         else
8508           echo EXPORTS > $output_objdir/$soname.def;
8509           cat $export_symbols >> $output_objdir/$soname.def;
8510         fi~
8511         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8512       else
8513         ld_shlibs=no
8514       fi
8515       ;;
8516
8517     interix[3-9]*)
8518       hardcode_direct=no
8519       hardcode_shlibpath_var=no
8520       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8521       export_dynamic_flag_spec='${wl}-E'
8522       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8523       # Instead, shared libraries are loaded at an image base (0x10000000 by
8524       # default) and relocated if they conflict, which is a slow very memory
8525       # consuming and fragmenting process.  To avoid this, we pick a random,
8526       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8527       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8528       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8529       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'
8530       ;;
8531
8532     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8533       tmp_diet=no
8534       if test "$host_os" = linux-dietlibc; then
8535         case $cc_basename in
8536           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8537         esac
8538       fi
8539       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8540          && test "$tmp_diet" = no
8541       then
8542         tmp_addflag=
8543         tmp_sharedflag='-shared'
8544         case $cc_basename,$host_cpu in
8545         pgcc*)                          # Portland Group C compiler
8546           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8547           tmp_addflag=' $pic_flag'
8548           ;;
8549         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8550           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8551           tmp_addflag=' $pic_flag -Mnomain' ;;
8552         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8553           tmp_addflag=' -i_dynamic' ;;
8554         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8555           tmp_addflag=' -i_dynamic -nofor_main' ;;
8556         ifc* | ifort*)                  # Intel Fortran compiler
8557           tmp_addflag=' -nofor_main' ;;
8558         lf95*)                          # Lahey Fortran 8.1
8559           whole_archive_flag_spec=
8560           tmp_sharedflag='--shared' ;;
8561         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8562           tmp_sharedflag='-qmkshrobj'
8563           tmp_addflag= ;;
8564         esac
8565         case `$CC -V 2>&1 | sed 5q` in
8566         *Sun\ C*)                       # Sun C 5.9
8567           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8568           compiler_needs_object=yes
8569           tmp_sharedflag='-G' ;;
8570         *Sun\ F*)                       # Sun Fortran 8.3
8571           tmp_sharedflag='-G' ;;
8572         esac
8573         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574
8575         if test "x$supports_anon_versioning" = xyes; then
8576           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8577             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8578             echo "local: *; };" >> $output_objdir/$libname.ver~
8579             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8580         fi
8581
8582         case $cc_basename in
8583         xlf*)
8584           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8585           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8586           hardcode_libdir_flag_spec=
8587           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8588           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8589           if test "x$supports_anon_versioning" = xyes; then
8590             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8591               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8592               echo "local: *; };" >> $output_objdir/$libname.ver~
8593               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8594           fi
8595           ;;
8596         esac
8597       else
8598         ld_shlibs=no
8599       fi
8600       ;;
8601
8602     netbsd* | netbsdelf*-gnu)
8603       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8604         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8605         wlarc=
8606       else
8607         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8608         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8609       fi
8610       ;;
8611
8612     solaris*)
8613       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8614         ld_shlibs=no
8615         cat <<_LT_EOF 1>&2
8616
8617 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8618 *** create shared libraries on Solaris systems.  Therefore, libtool
8619 *** is disabling shared libraries support.  We urge you to upgrade GNU
8620 *** binutils to release 2.9.1 or newer.  Another option is to modify
8621 *** your PATH or compiler configuration so that the native linker is
8622 *** used, and then restart.
8623
8624 _LT_EOF
8625       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8628       else
8629         ld_shlibs=no
8630       fi
8631       ;;
8632
8633     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8634       case `$LD -v 2>&1` in
8635         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8636         ld_shlibs=no
8637         cat <<_LT_EOF 1>&2
8638
8639 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8640 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8641 *** is disabling shared libraries support.  We urge you to upgrade GNU
8642 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8643 *** your PATH or compiler configuration so that the native linker is
8644 *** used, and then restart.
8645
8646 _LT_EOF
8647         ;;
8648         *)
8649           # For security reasons, it is highly recommended that you always
8650           # use absolute paths for naming shared libraries, and exclude the
8651           # DT_RUNPATH tag from executables and libraries.  But doing so
8652           # requires that you compile everything twice, which is a pain.
8653           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8654             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8656             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8657           else
8658             ld_shlibs=no
8659           fi
8660         ;;
8661       esac
8662       ;;
8663
8664     sunos4*)
8665       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8666       wlarc=
8667       hardcode_direct=yes
8668       hardcode_shlibpath_var=no
8669       ;;
8670
8671     *)
8672       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8673         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8675       else
8676         ld_shlibs=no
8677       fi
8678       ;;
8679     esac
8680
8681     if test "$ld_shlibs" = no; then
8682       runpath_var=
8683       hardcode_libdir_flag_spec=
8684       export_dynamic_flag_spec=
8685       whole_archive_flag_spec=
8686     fi
8687   else
8688     # PORTME fill in a description of your system's linker (not GNU ld)
8689     case $host_os in
8690     aix3*)
8691       allow_undefined_flag=unsupported
8692       always_export_symbols=yes
8693       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'
8694       # Note: this linker hardcodes the directories in LIBPATH if there
8695       # are no directories specified by -L.
8696       hardcode_minus_L=yes
8697       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8698         # Neither direct hardcoding nor static linking is supported with a
8699         # broken collect2.
8700         hardcode_direct=unsupported
8701       fi
8702       ;;
8703
8704     aix[4-9]*)
8705       if test "$host_cpu" = ia64; then
8706         # On IA64, the linker does run time linking by default, so we don't
8707         # have to do anything special.
8708         aix_use_runtimelinking=no
8709         exp_sym_flag='-Bexport'
8710         no_entry_flag=""
8711       else
8712         # If we're using GNU nm, then we don't want the "-C" option.
8713         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8714         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8715           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8716         else
8717           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'
8718         fi
8719         aix_use_runtimelinking=no
8720
8721         # Test if we are trying to use run time linking or normal
8722         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8723         # need to do runtime linking.
8724         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8725           for ld_flag in $LDFLAGS; do
8726           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8727             aix_use_runtimelinking=yes
8728             break
8729           fi
8730           done
8731           ;;
8732         esac
8733
8734         exp_sym_flag='-bexport'
8735         no_entry_flag='-bnoentry'
8736       fi
8737
8738       # When large executables or shared objects are built, AIX ld can
8739       # have problems creating the table of contents.  If linking a library
8740       # or program results in "error TOC overflow" add -mminimal-toc to
8741       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8742       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8743
8744       archive_cmds=''
8745       hardcode_direct=yes
8746       hardcode_direct_absolute=yes
8747       hardcode_libdir_separator=':'
8748       link_all_deplibs=yes
8749       file_list_spec='${wl}-f,'
8750
8751       if test "$GCC" = yes; then
8752         case $host_os in aix4.[012]|aix4.[012].*)
8753         # We only want to do this on AIX 4.2 and lower, the check
8754         # below for broken collect2 doesn't work under 4.3+
8755           collect2name=`${CC} -print-prog-name=collect2`
8756           if test -f "$collect2name" &&
8757            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8758           then
8759           # We have reworked collect2
8760           :
8761           else
8762           # We have old collect2
8763           hardcode_direct=unsupported
8764           # It fails to find uninstalled libraries when the uninstalled
8765           # path is not listed in the libpath.  Setting hardcode_minus_L
8766           # to unsupported forces relinking
8767           hardcode_minus_L=yes
8768           hardcode_libdir_flag_spec='-L$libdir'
8769           hardcode_libdir_separator=
8770           fi
8771           ;;
8772         esac
8773         shared_flag='-shared'
8774         if test "$aix_use_runtimelinking" = yes; then
8775           shared_flag="$shared_flag "'${wl}-G'
8776         fi
8777         link_all_deplibs=no
8778       else
8779         # not using gcc
8780         if test "$host_cpu" = ia64; then
8781         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8782         # chokes on -Wl,-G. The following line is correct:
8783           shared_flag='-G'
8784         else
8785           if test "$aix_use_runtimelinking" = yes; then
8786             shared_flag='${wl}-G'
8787           else
8788             shared_flag='${wl}-bM:SRE'
8789           fi
8790         fi
8791       fi
8792
8793       export_dynamic_flag_spec='${wl}-bexpall'
8794       # It seems that -bexpall does not export symbols beginning with
8795       # underscore (_), so it is better to generate a list of symbols to export.
8796       always_export_symbols=yes
8797       if test "$aix_use_runtimelinking" = yes; then
8798         # Warning - without using the other runtime loading flags (-brtl),
8799         # -berok will link without error, but may produce a broken library.
8800         allow_undefined_flag='-berok'
8801         # Determine the default libpath from the value encoded in an
8802         # empty executable.
8803         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h.  */
8805
8806 int
8807 main ()
8808 {
8809
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 if ac_fn_c_try_link "$LINENO"; then :
8815
8816 lt_aix_libpath_sed='
8817     /Import File Strings/,/^$/ {
8818         /^0/ {
8819             s/^0  *\(.*\)$/\1/
8820             p
8821         }
8822     }'
8823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8824 # Check for a 64-bit object if we didn't find anything.
8825 if test -z "$aix_libpath"; then
8826   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8827 fi
8828 fi
8829 rm -f core conftest.err conftest.$ac_objext \
8830     conftest$ac_exeext conftest.$ac_ext
8831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8832
8833         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8834         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8835       else
8836         if test "$host_cpu" = ia64; then
8837           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8838           allow_undefined_flag="-z nodefs"
8839           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"
8840         else
8841          # Determine the default libpath from the value encoded in an
8842          # empty executable.
8843          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h.  */
8845
8846 int
8847 main ()
8848 {
8849
8850   ;
8851   return 0;
8852 }
8853 _ACEOF
8854 if ac_fn_c_try_link "$LINENO"; then :
8855
8856 lt_aix_libpath_sed='
8857     /Import File Strings/,/^$/ {
8858         /^0/ {
8859             s/^0  *\(.*\)$/\1/
8860             p
8861         }
8862     }'
8863 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8864 # Check for a 64-bit object if we didn't find anything.
8865 if test -z "$aix_libpath"; then
8866   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8867 fi
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext \
8870     conftest$ac_exeext conftest.$ac_ext
8871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8872
8873          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8874           # Warning - without using the other run time loading flags,
8875           # -berok will link without error, but may produce a broken library.
8876           no_undefined_flag=' ${wl}-bernotok'
8877           allow_undefined_flag=' ${wl}-berok'
8878           # Exported symbols can be pulled into shared objects from archives
8879           whole_archive_flag_spec='$convenience'
8880           archive_cmds_need_lc=yes
8881           # This is similar to how AIX traditionally builds its shared libraries.
8882           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'
8883         fi
8884       fi
8885       ;;
8886
8887     amigaos*)
8888       case $host_cpu in
8889       powerpc)
8890             # see comment about AmigaOS4 .so support
8891             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892             archive_expsym_cmds=''
8893         ;;
8894       m68k)
8895             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)'
8896             hardcode_libdir_flag_spec='-L$libdir'
8897             hardcode_minus_L=yes
8898         ;;
8899       esac
8900       ;;
8901
8902     bsdi[45]*)
8903       export_dynamic_flag_spec=-rdynamic
8904       ;;
8905
8906     cygwin* | mingw* | pw32* | cegcc*)
8907       # When not using gcc, we currently assume that we are using
8908       # Microsoft Visual C++.
8909       # hardcode_libdir_flag_spec is actually meaningless, as there is
8910       # no search path for DLLs.
8911       hardcode_libdir_flag_spec=' '
8912       allow_undefined_flag=unsupported
8913       # Tell ltmain to make .lib files, not .a files.
8914       libext=lib
8915       # Tell ltmain to make .dll files, not .so files.
8916       shrext_cmds=".dll"
8917       # FIXME: Setting linknames here is a bad hack.
8918       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8919       # The linker will automatically build a .lib file if we build a DLL.
8920       old_archive_from_new_cmds='true'
8921       # FIXME: Should let the user specify the lib program.
8922       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8923       fix_srcfile_path='`cygpath -w "$srcfile"`'
8924       enable_shared_with_static_runtimes=yes
8925       ;;
8926
8927     darwin* | rhapsody*)
8928
8929
8930   archive_cmds_need_lc=no
8931   hardcode_direct=no
8932   hardcode_automatic=yes
8933   hardcode_shlibpath_var=unsupported
8934   whole_archive_flag_spec=''
8935   link_all_deplibs=yes
8936   allow_undefined_flag="$_lt_dar_allow_undefined"
8937   case $cc_basename in
8938      ifort*) _lt_dar_can_shared=yes ;;
8939      *) _lt_dar_can_shared=$GCC ;;
8940   esac
8941   if test "$_lt_dar_can_shared" = "yes"; then
8942     output_verbose_link_cmd=echo
8943     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8944     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8945     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}"
8946     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}"
8947
8948   else
8949   ld_shlibs=no
8950   fi
8951
8952       ;;
8953
8954     dgux*)
8955       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8956       hardcode_libdir_flag_spec='-L$libdir'
8957       hardcode_shlibpath_var=no
8958       ;;
8959
8960     freebsd1*)
8961       ld_shlibs=no
8962       ;;
8963
8964     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8965     # support.  Future versions do this automatically, but an explicit c++rt0.o
8966     # does not break anything, and helps significantly (at the cost of a little
8967     # extra space).
8968     freebsd2.2*)
8969       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8970       hardcode_libdir_flag_spec='-R$libdir'
8971       hardcode_direct=yes
8972       hardcode_shlibpath_var=no
8973       ;;
8974
8975     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8976     freebsd2*)
8977       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8978       hardcode_direct=yes
8979       hardcode_minus_L=yes
8980       hardcode_shlibpath_var=no
8981       ;;
8982
8983     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8984     freebsd* | dragonfly*)
8985       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8986       hardcode_libdir_flag_spec='-R$libdir'
8987       hardcode_direct=yes
8988       hardcode_shlibpath_var=no
8989       ;;
8990
8991     hpux9*)
8992       if test "$GCC" = yes; then
8993         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8994       else
8995         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'
8996       fi
8997       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8998       hardcode_libdir_separator=:
8999       hardcode_direct=yes
9000
9001       # hardcode_minus_L: Not really in the search PATH,
9002       # but as the default location of the library.
9003       hardcode_minus_L=yes
9004       export_dynamic_flag_spec='${wl}-E'
9005       ;;
9006
9007     hpux10*)
9008       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9009         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9010       else
9011         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9012       fi
9013       if test "$with_gnu_ld" = no; then
9014         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9015         hardcode_libdir_flag_spec_ld='+b $libdir'
9016         hardcode_libdir_separator=:
9017         hardcode_direct=yes
9018         hardcode_direct_absolute=yes
9019         export_dynamic_flag_spec='${wl}-E'
9020         # hardcode_minus_L: Not really in the search PATH,
9021         # but as the default location of the library.
9022         hardcode_minus_L=yes
9023       fi
9024       ;;
9025
9026     hpux11*)
9027       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9028         case $host_cpu in
9029         hppa*64*)
9030           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9031           ;;
9032         ia64*)
9033           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9034           ;;
9035         *)
9036           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9037           ;;
9038         esac
9039       else
9040         case $host_cpu in
9041         hppa*64*)
9042           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9043           ;;
9044         ia64*)
9045           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9046           ;;
9047         *)
9048           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9049           ;;
9050         esac
9051       fi
9052       if test "$with_gnu_ld" = no; then
9053         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9054         hardcode_libdir_separator=:
9055
9056         case $host_cpu in
9057         hppa*64*|ia64*)
9058           hardcode_direct=no
9059           hardcode_shlibpath_var=no
9060           ;;
9061         *)
9062           hardcode_direct=yes
9063           hardcode_direct_absolute=yes
9064           export_dynamic_flag_spec='${wl}-E'
9065
9066           # hardcode_minus_L: Not really in the search PATH,
9067           # but as the default location of the library.
9068           hardcode_minus_L=yes
9069           ;;
9070         esac
9071       fi
9072       ;;
9073
9074     irix5* | irix6* | nonstopux*)
9075       if test "$GCC" = yes; then
9076         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9077         # Try to use the -exported_symbol ld option, if it does not
9078         # work, assume that -exports_file does not work either and
9079         # implicitly export all symbols.
9080         save_LDFLAGS="$LDFLAGS"
9081         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9082         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h.  */
9084 int foo(void) {}
9085 _ACEOF
9086 if ac_fn_c_try_link "$LINENO"; then :
9087   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9088
9089 fi
9090 rm -f core conftest.err conftest.$ac_objext \
9091     conftest$ac_exeext conftest.$ac_ext
9092         LDFLAGS="$save_LDFLAGS"
9093       else
9094         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9095         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9096       fi
9097       archive_cmds_need_lc='no'
9098       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9099       hardcode_libdir_separator=:
9100       inherit_rpath=yes
9101       link_all_deplibs=yes
9102       ;;
9103
9104     netbsd* | netbsdelf*-gnu)
9105       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9106         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9107       else
9108         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9109       fi
9110       hardcode_libdir_flag_spec='-R$libdir'
9111       hardcode_direct=yes
9112       hardcode_shlibpath_var=no
9113       ;;
9114
9115     newsos6)
9116       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9117       hardcode_direct=yes
9118       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9119       hardcode_libdir_separator=:
9120       hardcode_shlibpath_var=no
9121       ;;
9122
9123     *nto* | *qnx*)
9124       ;;
9125
9126     openbsd*)
9127       if test -f /usr/libexec/ld.so; then
9128         hardcode_direct=yes
9129         hardcode_shlibpath_var=no
9130         hardcode_direct_absolute=yes
9131         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9132           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9133           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9134           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9135           export_dynamic_flag_spec='${wl}-E'
9136         else
9137           case $host_os in
9138            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9139              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9140              hardcode_libdir_flag_spec='-R$libdir'
9141              ;;
9142            *)
9143              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9144              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9145              ;;
9146           esac
9147         fi
9148       else
9149         ld_shlibs=no
9150       fi
9151       ;;
9152
9153     os2*)
9154       hardcode_libdir_flag_spec='-L$libdir'
9155       hardcode_minus_L=yes
9156       allow_undefined_flag=unsupported
9157       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'
9158       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9159       ;;
9160
9161     osf3*)
9162       if test "$GCC" = yes; then
9163         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9164         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9165       else
9166         allow_undefined_flag=' -expect_unresolved \*'
9167         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9168       fi
9169       archive_cmds_need_lc='no'
9170       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9171       hardcode_libdir_separator=:
9172       ;;
9173
9174     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9175       if test "$GCC" = yes; then
9176         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9177         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9178         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9179       else
9180         allow_undefined_flag=' -expect_unresolved \*'
9181         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9182         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~
9183         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9184
9185         # Both c and cxx compiler support -rpath directly
9186         hardcode_libdir_flag_spec='-rpath $libdir'
9187       fi
9188       archive_cmds_need_lc='no'
9189       hardcode_libdir_separator=:
9190       ;;
9191
9192     solaris*)
9193       no_undefined_flag=' -z defs'
9194       if test "$GCC" = yes; then
9195         wlarc='${wl}'
9196         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9197         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9198           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9199       else
9200         case `$CC -V 2>&1` in
9201         *"Compilers 5.0"*)
9202           wlarc=''
9203           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9205           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9206           ;;
9207         *)
9208           wlarc='${wl}'
9209           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9210           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9211           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9212           ;;
9213         esac
9214       fi
9215       hardcode_libdir_flag_spec='-R$libdir'
9216       hardcode_shlibpath_var=no
9217       case $host_os in
9218       solaris2.[0-5] | solaris2.[0-5].*) ;;
9219       *)
9220         # The compiler driver will combine and reorder linker options,
9221         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9222         # but is careful enough not to reorder.
9223         # Supported since Solaris 2.6 (maybe 2.5.1?)
9224         if test "$GCC" = yes; then
9225           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9226         else
9227           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9228         fi
9229         ;;
9230       esac
9231       link_all_deplibs=yes
9232       ;;
9233
9234     sunos4*)
9235       if test "x$host_vendor" = xsequent; then
9236         # Use $CC to link under sequent, because it throws in some extra .o
9237         # files that make .init and .fini sections work.
9238         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9239       else
9240         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9241       fi
9242       hardcode_libdir_flag_spec='-L$libdir'
9243       hardcode_direct=yes
9244       hardcode_minus_L=yes
9245       hardcode_shlibpath_var=no
9246       ;;
9247
9248     sysv4)
9249       case $host_vendor in
9250         sni)
9251           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9252           hardcode_direct=yes # is this really true???
9253         ;;
9254         siemens)
9255           ## LD is ld it makes a PLAMLIB
9256           ## CC just makes a GrossModule.
9257           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9258           reload_cmds='$CC -r -o $output$reload_objs'
9259           hardcode_direct=no
9260         ;;
9261         motorola)
9262           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9263           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9264         ;;
9265       esac
9266       runpath_var='LD_RUN_PATH'
9267       hardcode_shlibpath_var=no
9268       ;;
9269
9270     sysv4.3*)
9271       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9272       hardcode_shlibpath_var=no
9273       export_dynamic_flag_spec='-Bexport'
9274       ;;
9275
9276     sysv4*MP*)
9277       if test -d /usr/nec; then
9278         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9279         hardcode_shlibpath_var=no
9280         runpath_var=LD_RUN_PATH
9281         hardcode_runpath_var=yes
9282         ld_shlibs=yes
9283       fi
9284       ;;
9285
9286     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9287       no_undefined_flag='${wl}-z,text'
9288       archive_cmds_need_lc=no
9289       hardcode_shlibpath_var=no
9290       runpath_var='LD_RUN_PATH'
9291
9292       if test "$GCC" = yes; then
9293         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9294         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9295       else
9296         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9297         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9298       fi
9299       ;;
9300
9301     sysv5* | sco3.2v5* | sco5v6*)
9302       # Note: We can NOT use -z defs as we might desire, because we do not
9303       # link with -lc, and that would cause any symbols used from libc to
9304       # always be unresolved, which means just about no library would
9305       # ever link correctly.  If we're not using GNU ld we use -z text
9306       # though, which does catch some bad symbols but isn't as heavy-handed
9307       # as -z defs.
9308       no_undefined_flag='${wl}-z,text'
9309       allow_undefined_flag='${wl}-z,nodefs'
9310       archive_cmds_need_lc=no
9311       hardcode_shlibpath_var=no
9312       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9313       hardcode_libdir_separator=':'
9314       link_all_deplibs=yes
9315       export_dynamic_flag_spec='${wl}-Bexport'
9316       runpath_var='LD_RUN_PATH'
9317
9318       if test "$GCC" = yes; then
9319         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9320         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9321       else
9322         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9323         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9324       fi
9325       ;;
9326
9327     uts4*)
9328       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329       hardcode_libdir_flag_spec='-L$libdir'
9330       hardcode_shlibpath_var=no
9331       ;;
9332
9333     *)
9334       ld_shlibs=no
9335       ;;
9336     esac
9337
9338     if test x$host_vendor = xsni; then
9339       case $host in
9340       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9341         export_dynamic_flag_spec='${wl}-Blargedynsym'
9342         ;;
9343       esac
9344     fi
9345   fi
9346
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9348 $as_echo "$ld_shlibs" >&6; }
9349 test "$ld_shlibs" = no && can_build_shared=no
9350
9351 with_gnu_ld=$with_gnu_ld
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367 #
9368 # Do we need to explicitly link libc?
9369 #
9370 case "x$archive_cmds_need_lc" in
9371 x|xyes)
9372   # Assume -lc should be added
9373   archive_cmds_need_lc=yes
9374
9375   if test "$enable_shared" = yes && test "$GCC" = yes; then
9376     case $archive_cmds in
9377     *'~'*)
9378       # FIXME: we may have to deal with multi-command sequences.
9379       ;;
9380     '$CC '*)
9381       # Test whether the compiler implicitly links with -lc since on some
9382       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9383       # to ld, don't add -lc before -lgcc.
9384       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9385 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9386       $RM conftest*
9387       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9388
9389       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9390   (eval $ac_compile) 2>&5
9391   ac_status=$?
9392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9393   test $ac_status = 0; } 2>conftest.err; then
9394         soname=conftest
9395         lib=conftest
9396         libobjs=conftest.$ac_objext
9397         deplibs=
9398         wl=$lt_prog_compiler_wl
9399         pic_flag=$lt_prog_compiler_pic
9400         compiler_flags=-v
9401         linker_flags=-v
9402         verstring=
9403         output_objdir=.
9404         libname=conftest
9405         lt_save_allow_undefined_flag=$allow_undefined_flag
9406         allow_undefined_flag=
9407         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9408   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9409   ac_status=$?
9410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9411   test $ac_status = 0; }
9412         then
9413           archive_cmds_need_lc=no
9414         else
9415           archive_cmds_need_lc=yes
9416         fi
9417         allow_undefined_flag=$lt_save_allow_undefined_flag
9418       else
9419         cat conftest.err 1>&5
9420       fi
9421       $RM conftest*
9422       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9423 $as_echo "$archive_cmds_need_lc" >&6; }
9424       ;;
9425     esac
9426   fi
9427   ;;
9428 esac
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9587 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9588
9589 if test "$GCC" = yes; then
9590   case $host_os in
9591     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9592     *) lt_awk_arg="/^libraries:/" ;;
9593   esac
9594   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9595   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9596     # if the path contains ";" then we assume it to be the separator
9597     # otherwise default to the standard path separator (i.e. ":") - it is
9598     # assumed that no part of a normal pathname contains ";" but that should
9599     # okay in the real world where ";" in dirpaths is itself problematic.
9600     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9601   else
9602     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9603   fi
9604   # Ok, now we have the path, separated by spaces, we can step through it
9605   # and add multilib dir if necessary.
9606   lt_tmp_lt_search_path_spec=
9607   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9608   for lt_sys_path in $lt_search_path_spec; do
9609     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9610       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9611     else
9612       test -d "$lt_sys_path" && \
9613         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9614     fi
9615   done
9616   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9617 BEGIN {RS=" "; FS="/|\n";} {
9618   lt_foo="";
9619   lt_count=0;
9620   for (lt_i = NF; lt_i > 0; lt_i--) {
9621     if ($lt_i != "" && $lt_i != ".") {
9622       if ($lt_i == "..") {
9623         lt_count++;
9624       } else {
9625         if (lt_count == 0) {
9626           lt_foo="/" $lt_i lt_foo;
9627         } else {
9628           lt_count--;
9629         }
9630       }
9631     }
9632   }
9633   if (lt_foo != "") { lt_freq[lt_foo]++; }
9634   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9635 }'`
9636   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9637 else
9638   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9639 fi
9640 library_names_spec=
9641 libname_spec='lib$name'
9642 soname_spec=
9643 shrext_cmds=".so"
9644 postinstall_cmds=
9645 postuninstall_cmds=
9646 finish_cmds=
9647 finish_eval=
9648 shlibpath_var=
9649 shlibpath_overrides_runpath=unknown
9650 version_type=none
9651 dynamic_linker="$host_os ld.so"
9652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9653 need_lib_prefix=unknown
9654 hardcode_into_libs=no
9655
9656 # when you set need_version to no, make sure it does not cause -set_version
9657 # flags to be left without arguments
9658 need_version=unknown
9659
9660 case $host_os in
9661 aix3*)
9662   version_type=linux
9663   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9664   shlibpath_var=LIBPATH
9665
9666   # AIX 3 has no versioning support, so we append a major version to the name.
9667   soname_spec='${libname}${release}${shared_ext}$major'
9668   ;;
9669
9670 aix[4-9]*)
9671   version_type=linux
9672   need_lib_prefix=no
9673   need_version=no
9674   hardcode_into_libs=yes
9675   if test "$host_cpu" = ia64; then
9676     # AIX 5 supports IA64
9677     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9678     shlibpath_var=LD_LIBRARY_PATH
9679   else
9680     # With GCC up to 2.95.x, collect2 would create an import file
9681     # for dependence libraries.  The import file would start with
9682     # the line `#! .'.  This would cause the generated library to
9683     # depend on `.', always an invalid library.  This was fixed in
9684     # development snapshots of GCC prior to 3.0.
9685     case $host_os in
9686       aix4 | aix4.[01] | aix4.[01].*)
9687       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9688            echo ' yes '
9689            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9690         :
9691       else
9692         can_build_shared=no
9693       fi
9694       ;;
9695     esac
9696     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9697     # soname into executable. Probably we can add versioning support to
9698     # collect2, so additional links can be useful in future.
9699     if test "$aix_use_runtimelinking" = yes; then
9700       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9701       # instead of lib<name>.a to let people know that these are not
9702       # typical AIX shared libraries.
9703       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704     else
9705       # We preserve .a as extension for shared libraries through AIX4.2
9706       # and later when we are not doing run time linking.
9707       library_names_spec='${libname}${release}.a $libname.a'
9708       soname_spec='${libname}${release}${shared_ext}$major'
9709     fi
9710     shlibpath_var=LIBPATH
9711   fi
9712   ;;
9713
9714 amigaos*)
9715   case $host_cpu in
9716   powerpc)
9717     # Since July 2007 AmigaOS4 officially supports .so libraries.
9718     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720     ;;
9721   m68k)
9722     library_names_spec='$libname.ixlibrary $libname.a'
9723     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9724     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9725     ;;
9726   esac
9727   ;;
9728
9729 beos*)
9730   library_names_spec='${libname}${shared_ext}'
9731   dynamic_linker="$host_os ld.so"
9732   shlibpath_var=LIBRARY_PATH
9733   ;;
9734
9735 bsdi[45]*)
9736   version_type=linux
9737   need_version=no
9738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9739   soname_spec='${libname}${release}${shared_ext}$major'
9740   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9741   shlibpath_var=LD_LIBRARY_PATH
9742   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9743   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9744   # the default ld.so.conf also contains /usr/contrib/lib and
9745   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9746   # libtool to hard-code these into programs
9747   ;;
9748
9749 cygwin* | mingw* | pw32* | cegcc*)
9750   version_type=windows
9751   shrext_cmds=".dll"
9752   need_version=no
9753   need_lib_prefix=no
9754
9755   case $GCC,$host_os in
9756   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9757     library_names_spec='$libname.dll.a'
9758     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9759     postinstall_cmds='base_file=`basename \${file}`~
9760       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9761       dldir=$destdir/`dirname \$dlpath`~
9762       test -d \$dldir || mkdir -p \$dldir~
9763       $install_prog $dir/$dlname \$dldir/$dlname~
9764       chmod a+x \$dldir/$dlname~
9765       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9766         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9767       fi'
9768     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9769       dlpath=$dir/\$dldll~
9770        $RM \$dlpath'
9771     shlibpath_overrides_runpath=yes
9772
9773     case $host_os in
9774     cygwin*)
9775       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9776       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9777       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9778       ;;
9779     mingw* | cegcc*)
9780       # MinGW DLLs use traditional 'lib' prefix
9781       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9782       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9783       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9784         # It is most probably a Windows format PATH printed by
9785         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9786         # path with ; separators, and with drive letters. We can handle the
9787         # drive letters (cygwin fileutils understands them), so leave them,
9788         # especially as we might pass files found there to a mingw objdump,
9789         # which wouldn't understand a cygwinified path. Ahh.
9790         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9791       else
9792         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9793       fi
9794       ;;
9795     pw32*)
9796       # pw32 DLLs use 'pw' prefix rather than 'lib'
9797       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9798       ;;
9799     esac
9800     ;;
9801
9802   *)
9803     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9804     ;;
9805   esac
9806   dynamic_linker='Win32 ld.exe'
9807   # FIXME: first we should search . and the directory the executable is in
9808   shlibpath_var=PATH
9809   ;;
9810
9811 darwin* | rhapsody*)
9812   dynamic_linker="$host_os dyld"
9813   version_type=darwin
9814   need_lib_prefix=no
9815   need_version=no
9816   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9817   soname_spec='${libname}${release}${major}$shared_ext'
9818   shlibpath_overrides_runpath=yes
9819   shlibpath_var=DYLD_LIBRARY_PATH
9820   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9821
9822   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9823   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9824   ;;
9825
9826 dgux*)
9827   version_type=linux
9828   need_lib_prefix=no
9829   need_version=no
9830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9831   soname_spec='${libname}${release}${shared_ext}$major'
9832   shlibpath_var=LD_LIBRARY_PATH
9833   ;;
9834
9835 freebsd1*)
9836   dynamic_linker=no
9837   ;;
9838
9839 freebsd* | dragonfly*)
9840   # DragonFly does not have aout.  When/if they implement a new
9841   # versioning mechanism, adjust this.
9842   if test -x /usr/bin/objformat; then
9843     objformat=`/usr/bin/objformat`
9844   else
9845     case $host_os in
9846     freebsd[123]*) objformat=aout ;;
9847     *) objformat=elf ;;
9848     esac
9849   fi
9850   version_type=freebsd-$objformat
9851   case $version_type in
9852     freebsd-elf*)
9853       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9854       need_version=no
9855       need_lib_prefix=no
9856       ;;
9857     freebsd-*)
9858       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9859       need_version=yes
9860       ;;
9861   esac
9862   shlibpath_var=LD_LIBRARY_PATH
9863   case $host_os in
9864   freebsd2*)
9865     shlibpath_overrides_runpath=yes
9866     ;;
9867   freebsd3.[01]* | freebsdelf3.[01]*)
9868     shlibpath_overrides_runpath=yes
9869     hardcode_into_libs=yes
9870     ;;
9871   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9872   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9873     shlibpath_overrides_runpath=no
9874     hardcode_into_libs=yes
9875     ;;
9876   *) # from 4.6 on, and DragonFly
9877     shlibpath_overrides_runpath=yes
9878     hardcode_into_libs=yes
9879     ;;
9880   esac
9881   ;;
9882
9883 gnu*)
9884   version_type=linux
9885   need_lib_prefix=no
9886   need_version=no
9887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9888   soname_spec='${libname}${release}${shared_ext}$major'
9889   shlibpath_var=LD_LIBRARY_PATH
9890   hardcode_into_libs=yes
9891   ;;
9892
9893 hpux9* | hpux10* | hpux11*)
9894   # Give a soname corresponding to the major version so that dld.sl refuses to
9895   # link against other versions.
9896   version_type=sunos
9897   need_lib_prefix=no
9898   need_version=no
9899   case $host_cpu in
9900   ia64*)
9901     shrext_cmds='.so'
9902     hardcode_into_libs=yes
9903     dynamic_linker="$host_os dld.so"
9904     shlibpath_var=LD_LIBRARY_PATH
9905     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907     soname_spec='${libname}${release}${shared_ext}$major'
9908     if test "X$HPUX_IA64_MODE" = X32; then
9909       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9910     else
9911       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9912     fi
9913     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9914     ;;
9915   hppa*64*)
9916     shrext_cmds='.sl'
9917     hardcode_into_libs=yes
9918     dynamic_linker="$host_os dld.sl"
9919     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9920     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922     soname_spec='${libname}${release}${shared_ext}$major'
9923     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9924     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9925     ;;
9926   *)
9927     shrext_cmds='.sl'
9928     dynamic_linker="$host_os dld.sl"
9929     shlibpath_var=SHLIB_PATH
9930     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932     soname_spec='${libname}${release}${shared_ext}$major'
9933     ;;
9934   esac
9935   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9936   postinstall_cmds='chmod 555 $lib'
9937   ;;
9938
9939 interix[3-9]*)
9940   version_type=linux
9941   need_lib_prefix=no
9942   need_version=no
9943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9944   soname_spec='${libname}${release}${shared_ext}$major'
9945   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9946   shlibpath_var=LD_LIBRARY_PATH
9947   shlibpath_overrides_runpath=no
9948   hardcode_into_libs=yes
9949   ;;
9950
9951 irix5* | irix6* | nonstopux*)
9952   case $host_os in
9953     nonstopux*) version_type=nonstopux ;;
9954     *)
9955         if test "$lt_cv_prog_gnu_ld" = yes; then
9956                 version_type=linux
9957         else
9958                 version_type=irix
9959         fi ;;
9960   esac
9961   need_lib_prefix=no
9962   need_version=no
9963   soname_spec='${libname}${release}${shared_ext}$major'
9964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9965   case $host_os in
9966   irix5* | nonstopux*)
9967     libsuff= shlibsuff=
9968     ;;
9969   *)
9970     case $LD in # libtool.m4 will add one of these switches to LD
9971     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9972       libsuff= shlibsuff= libmagic=32-bit;;
9973     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9974       libsuff=32 shlibsuff=N32 libmagic=N32;;
9975     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9976       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9977     *) libsuff= shlibsuff= libmagic=never-match;;
9978     esac
9979     ;;
9980   esac
9981   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9982   shlibpath_overrides_runpath=no
9983   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9984   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9985   hardcode_into_libs=yes
9986   ;;
9987
9988 # No shared lib support for Linux oldld, aout, or coff.
9989 linux*oldld* | linux*aout* | linux*coff*)
9990   dynamic_linker=no
9991   ;;
9992
9993 # This must be Linux ELF.
9994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9995   version_type=linux
9996   need_lib_prefix=no
9997   need_version=no
9998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999   soname_spec='${libname}${release}${shared_ext}$major'
10000   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10001   shlibpath_var=LD_LIBRARY_PATH
10002   shlibpath_overrides_runpath=no
10003   # Some binutils ld are patched to set DT_RUNPATH
10004   save_LDFLAGS=$LDFLAGS
10005   save_libdir=$libdir
10006   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10007        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h.  */
10010
10011 int
10012 main ()
10013 {
10014
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 if ac_fn_c_try_link "$LINENO"; then :
10020   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10021   shlibpath_overrides_runpath=yes
10022 fi
10023 fi
10024 rm -f core conftest.err conftest.$ac_objext \
10025     conftest$ac_exeext conftest.$ac_ext
10026   LDFLAGS=$save_LDFLAGS
10027   libdir=$save_libdir
10028
10029   # This implies no fast_install, which is unacceptable.
10030   # Some rework will be needed to allow for fast_install
10031   # before this can be enabled.
10032   hardcode_into_libs=yes
10033
10034   # Append ld.so.conf contents to the search path
10035   if test -f /etc/ld.so.conf; then
10036     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;/^$/d' | tr '\n' ' '`
10037     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10038   fi
10039
10040   # We used to test for /lib/ld.so.1 and disable shared libraries on
10041   # powerpc, because MkLinux only supported shared libraries with the
10042   # GNU dynamic linker.  Since this was broken with cross compilers,
10043   # most powerpc-linux boxes support dynamic linking these days and
10044   # people can always --disable-shared, the test was removed, and we
10045   # assume the GNU/Linux dynamic linker is in use.
10046   dynamic_linker='GNU/Linux ld.so'
10047   ;;
10048
10049 netbsdelf*-gnu)
10050   version_type=linux
10051   need_lib_prefix=no
10052   need_version=no
10053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10054   soname_spec='${libname}${release}${shared_ext}$major'
10055   shlibpath_var=LD_LIBRARY_PATH
10056   shlibpath_overrides_runpath=no
10057   hardcode_into_libs=yes
10058   dynamic_linker='NetBSD ld.elf_so'
10059   ;;
10060
10061 netbsd*)
10062   version_type=sunos
10063   need_lib_prefix=no
10064   need_version=no
10065   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10067     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10068     dynamic_linker='NetBSD (a.out) ld.so'
10069   else
10070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10071     soname_spec='${libname}${release}${shared_ext}$major'
10072     dynamic_linker='NetBSD ld.elf_so'
10073   fi
10074   shlibpath_var=LD_LIBRARY_PATH
10075   shlibpath_overrides_runpath=yes
10076   hardcode_into_libs=yes
10077   ;;
10078
10079 newsos6)
10080   version_type=linux
10081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082   shlibpath_var=LD_LIBRARY_PATH
10083   shlibpath_overrides_runpath=yes
10084   ;;
10085
10086 *nto* | *qnx*)
10087   version_type=qnx
10088   need_lib_prefix=no
10089   need_version=no
10090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091   soname_spec='${libname}${release}${shared_ext}$major'
10092   shlibpath_var=LD_LIBRARY_PATH
10093   shlibpath_overrides_runpath=no
10094   hardcode_into_libs=yes
10095   dynamic_linker='ldqnx.so'
10096   ;;
10097
10098 openbsd*)
10099   version_type=sunos
10100   sys_lib_dlsearch_path_spec="/usr/lib"
10101   need_lib_prefix=no
10102   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10103   case $host_os in
10104     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10105     *)                          need_version=no  ;;
10106   esac
10107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10108   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10109   shlibpath_var=LD_LIBRARY_PATH
10110   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10111     case $host_os in
10112       openbsd2.[89] | openbsd2.[89].*)
10113         shlibpath_overrides_runpath=no
10114         ;;
10115       *)
10116         shlibpath_overrides_runpath=yes
10117         ;;
10118       esac
10119   else
10120     shlibpath_overrides_runpath=yes
10121   fi
10122   ;;
10123
10124 os2*)
10125   libname_spec='$name'
10126   shrext_cmds=".dll"
10127   need_lib_prefix=no
10128   library_names_spec='$libname${shared_ext} $libname.a'
10129   dynamic_linker='OS/2 ld.exe'
10130   shlibpath_var=LIBPATH
10131   ;;
10132
10133 osf3* | osf4* | osf5*)
10134   version_type=osf
10135   need_lib_prefix=no
10136   need_version=no
10137   soname_spec='${libname}${release}${shared_ext}$major'
10138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139   shlibpath_var=LD_LIBRARY_PATH
10140   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10141   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10142   ;;
10143
10144 rdos*)
10145   dynamic_linker=no
10146   ;;
10147
10148 solaris*)
10149   version_type=linux
10150   need_lib_prefix=no
10151   need_version=no
10152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153   soname_spec='${libname}${release}${shared_ext}$major'
10154   shlibpath_var=LD_LIBRARY_PATH
10155   shlibpath_overrides_runpath=yes
10156   hardcode_into_libs=yes
10157   # ldd complains unless libraries are executable
10158   postinstall_cmds='chmod +x $lib'
10159   ;;
10160
10161 sunos4*)
10162   version_type=sunos
10163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10164   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10165   shlibpath_var=LD_LIBRARY_PATH
10166   shlibpath_overrides_runpath=yes
10167   if test "$with_gnu_ld" = yes; then
10168     need_lib_prefix=no
10169   fi
10170   need_version=yes
10171   ;;
10172
10173 sysv4 | sysv4.3*)
10174   version_type=linux
10175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176   soname_spec='${libname}${release}${shared_ext}$major'
10177   shlibpath_var=LD_LIBRARY_PATH
10178   case $host_vendor in
10179     sni)
10180       shlibpath_overrides_runpath=no
10181       need_lib_prefix=no
10182       runpath_var=LD_RUN_PATH
10183       ;;
10184     siemens)
10185       need_lib_prefix=no
10186       ;;
10187     motorola)
10188       need_lib_prefix=no
10189       need_version=no
10190       shlibpath_overrides_runpath=no
10191       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10192       ;;
10193   esac
10194   ;;
10195
10196 sysv4*MP*)
10197   if test -d /usr/nec ;then
10198     version_type=linux
10199     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10200     soname_spec='$libname${shared_ext}.$major'
10201     shlibpath_var=LD_LIBRARY_PATH
10202   fi
10203   ;;
10204
10205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10206   version_type=freebsd-elf
10207   need_lib_prefix=no
10208   need_version=no
10209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10210   soname_spec='${libname}${release}${shared_ext}$major'
10211   shlibpath_var=LD_LIBRARY_PATH
10212   shlibpath_overrides_runpath=yes
10213   hardcode_into_libs=yes
10214   if test "$with_gnu_ld" = yes; then
10215     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10216   else
10217     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10218     case $host_os in
10219       sco3.2v5*)
10220         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10221         ;;
10222     esac
10223   fi
10224   sys_lib_dlsearch_path_spec='/usr/lib'
10225   ;;
10226
10227 tpf*)
10228   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10229   version_type=linux
10230   need_lib_prefix=no
10231   need_version=no
10232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233   shlibpath_var=LD_LIBRARY_PATH
10234   shlibpath_overrides_runpath=no
10235   hardcode_into_libs=yes
10236   ;;
10237
10238 uts4*)
10239   version_type=linux
10240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241   soname_spec='${libname}${release}${shared_ext}$major'
10242   shlibpath_var=LD_LIBRARY_PATH
10243   ;;
10244
10245 *)
10246   dynamic_linker=no
10247   ;;
10248 esac
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10250 $as_echo "$dynamic_linker" >&6; }
10251 test "$dynamic_linker" = no && can_build_shared=no
10252
10253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10254 if test "$GCC" = yes; then
10255   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10256 fi
10257
10258 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10259   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10260 fi
10261 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10262   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10263 fi
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10352 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10353 hardcode_action=
10354 if test -n "$hardcode_libdir_flag_spec" ||
10355    test -n "$runpath_var" ||
10356    test "X$hardcode_automatic" = "Xyes" ; then
10357
10358   # We can hardcode non-existent directories.
10359   if test "$hardcode_direct" != no &&
10360      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10361      # have to relink, otherwise we might link with an installed library
10362      # when we should be linking with a yet-to-be-installed one
10363      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10364      test "$hardcode_minus_L" != no; then
10365     # Linking always hardcodes the temporary library directory.
10366     hardcode_action=relink
10367   else
10368     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10369     hardcode_action=immediate
10370   fi
10371 else
10372   # We cannot hardcode anything, or else we can only hardcode existing
10373   # directories.
10374   hardcode_action=unsupported
10375 fi
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10377 $as_echo "$hardcode_action" >&6; }
10378
10379 if test "$hardcode_action" = relink ||
10380    test "$inherit_rpath" = yes; then
10381   # Fast installation is not supported
10382   enable_fast_install=no
10383 elif test "$shlibpath_overrides_runpath" = yes ||
10384      test "$enable_shared" = no; then
10385   # Fast installation is not necessary
10386   enable_fast_install=needless
10387 fi
10388
10389
10390
10391
10392
10393
10394   if test "x$enable_dlopen" != xyes; then
10395   enable_dlopen=unknown
10396   enable_dlopen_self=unknown
10397   enable_dlopen_self_static=unknown
10398 else
10399   lt_cv_dlopen=no
10400   lt_cv_dlopen_libs=
10401
10402   case $host_os in
10403   beos*)
10404     lt_cv_dlopen="load_add_on"
10405     lt_cv_dlopen_libs=
10406     lt_cv_dlopen_self=yes
10407     ;;
10408
10409   mingw* | pw32* | cegcc*)
10410     lt_cv_dlopen="LoadLibrary"
10411     lt_cv_dlopen_libs=
10412     ;;
10413
10414   cygwin*)
10415     lt_cv_dlopen="dlopen"
10416     lt_cv_dlopen_libs=
10417     ;;
10418
10419   darwin*)
10420   # if libdl is installed we need to link against it
10421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10422 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10423 if ${ac_cv_lib_dl_dlopen+:} false; then :
10424   $as_echo_n "(cached) " >&6
10425 else
10426   ac_check_lib_save_LIBS=$LIBS
10427 LIBS="-ldl  $LIBS"
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h.  */
10430
10431 /* Override any GCC internal prototype to avoid an error.
10432    Use char because int might match the return type of a GCC
10433    builtin and then its argument prototype would still apply.  */
10434 #ifdef __cplusplus
10435 extern "C"
10436 #endif
10437 char dlopen ();
10438 int
10439 main ()
10440 {
10441 return dlopen ();
10442   ;
10443   return 0;
10444 }
10445 _ACEOF
10446 if ac_fn_c_try_link "$LINENO"; then :
10447   ac_cv_lib_dl_dlopen=yes
10448 else
10449   ac_cv_lib_dl_dlopen=no
10450 fi
10451 rm -f core conftest.err conftest.$ac_objext \
10452     conftest$ac_exeext conftest.$ac_ext
10453 LIBS=$ac_check_lib_save_LIBS
10454 fi
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10456 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10457 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10458   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10459 else
10460
10461     lt_cv_dlopen="dyld"
10462     lt_cv_dlopen_libs=
10463     lt_cv_dlopen_self=yes
10464
10465 fi
10466
10467     ;;
10468
10469   *)
10470     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10471 if test "x$ac_cv_func_shl_load" = xyes; then :
10472   lt_cv_dlopen="shl_load"
10473 else
10474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10475 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10476 if ${ac_cv_lib_dld_shl_load+:} false; then :
10477   $as_echo_n "(cached) " >&6
10478 else
10479   ac_check_lib_save_LIBS=$LIBS
10480 LIBS="-ldld  $LIBS"
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h.  */
10483
10484 /* Override any GCC internal prototype to avoid an error.
10485    Use char because int might match the return type of a GCC
10486    builtin and then its argument prototype would still apply.  */
10487 #ifdef __cplusplus
10488 extern "C"
10489 #endif
10490 char shl_load ();
10491 int
10492 main ()
10493 {
10494 return shl_load ();
10495   ;
10496   return 0;
10497 }
10498 _ACEOF
10499 if ac_fn_c_try_link "$LINENO"; then :
10500   ac_cv_lib_dld_shl_load=yes
10501 else
10502   ac_cv_lib_dld_shl_load=no
10503 fi
10504 rm -f core conftest.err conftest.$ac_objext \
10505     conftest$ac_exeext conftest.$ac_ext
10506 LIBS=$ac_check_lib_save_LIBS
10507 fi
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10509 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10510 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10511   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10512 else
10513   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10514 if test "x$ac_cv_func_dlopen" = xyes; then :
10515   lt_cv_dlopen="dlopen"
10516 else
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10557 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10558 if ${ac_cv_lib_svld_dlopen+:} false; then :
10559   $as_echo_n "(cached) " >&6
10560 else
10561   ac_check_lib_save_LIBS=$LIBS
10562 LIBS="-lsvld  $LIBS"
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h.  */
10565
10566 /* Override any GCC internal prototype to avoid an error.
10567    Use char because int might match the return type of a GCC
10568    builtin and then its argument prototype would still apply.  */
10569 #ifdef __cplusplus
10570 extern "C"
10571 #endif
10572 char dlopen ();
10573 int
10574 main ()
10575 {
10576 return dlopen ();
10577   ;
10578   return 0;
10579 }
10580 _ACEOF
10581 if ac_fn_c_try_link "$LINENO"; then :
10582   ac_cv_lib_svld_dlopen=yes
10583 else
10584   ac_cv_lib_svld_dlopen=no
10585 fi
10586 rm -f core conftest.err conftest.$ac_objext \
10587     conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10589 fi
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10591 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10592 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10593   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10594 else
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10596 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10597 if ${ac_cv_lib_dld_dld_link+:} false; then :
10598   $as_echo_n "(cached) " >&6
10599 else
10600   ac_check_lib_save_LIBS=$LIBS
10601 LIBS="-ldld  $LIBS"
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h.  */
10604
10605 /* Override any GCC internal prototype to avoid an error.
10606    Use char because int might match the return type of a GCC
10607    builtin and then its argument prototype would still apply.  */
10608 #ifdef __cplusplus
10609 extern "C"
10610 #endif
10611 char dld_link ();
10612 int
10613 main ()
10614 {
10615 return dld_link ();
10616   ;
10617   return 0;
10618 }
10619 _ACEOF
10620 if ac_fn_c_try_link "$LINENO"; then :
10621   ac_cv_lib_dld_dld_link=yes
10622 else
10623   ac_cv_lib_dld_dld_link=no
10624 fi
10625 rm -f core conftest.err conftest.$ac_objext \
10626     conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10628 fi
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10630 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10631 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10632   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10633 fi
10634
10635
10636 fi
10637
10638
10639 fi
10640
10641
10642 fi
10643
10644
10645 fi
10646
10647
10648 fi
10649
10650     ;;
10651   esac
10652
10653   if test "x$lt_cv_dlopen" != xno; then
10654     enable_dlopen=yes
10655   else
10656     enable_dlopen=no
10657   fi
10658
10659   case $lt_cv_dlopen in
10660   dlopen)
10661     save_CPPFLAGS="$CPPFLAGS"
10662     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10663
10664     save_LDFLAGS="$LDFLAGS"
10665     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10666
10667     save_LIBS="$LIBS"
10668     LIBS="$lt_cv_dlopen_libs $LIBS"
10669
10670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10671 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10672 if ${lt_cv_dlopen_self+:} false; then :
10673   $as_echo_n "(cached) " >&6
10674 else
10675           if test "$cross_compiling" = yes; then :
10676   lt_cv_dlopen_self=cross
10677 else
10678   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10679   lt_status=$lt_dlunknown
10680   cat > conftest.$ac_ext <<_LT_EOF
10681 #line 10681 "configure"
10682 #include "confdefs.h"
10683
10684 #if HAVE_DLFCN_H
10685 #include <dlfcn.h>
10686 #endif
10687
10688 #include <stdio.h>
10689
10690 #ifdef RTLD_GLOBAL
10691 #  define LT_DLGLOBAL           RTLD_GLOBAL
10692 #else
10693 #  ifdef DL_GLOBAL
10694 #    define LT_DLGLOBAL         DL_GLOBAL
10695 #  else
10696 #    define LT_DLGLOBAL         0
10697 #  endif
10698 #endif
10699
10700 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10701    find out it does not work in some platform. */
10702 #ifndef LT_DLLAZY_OR_NOW
10703 #  ifdef RTLD_LAZY
10704 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10705 #  else
10706 #    ifdef DL_LAZY
10707 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10708 #    else
10709 #      ifdef RTLD_NOW
10710 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10711 #      else
10712 #        ifdef DL_NOW
10713 #          define LT_DLLAZY_OR_NOW      DL_NOW
10714 #        else
10715 #          define LT_DLLAZY_OR_NOW      0
10716 #        endif
10717 #      endif
10718 #    endif
10719 #  endif
10720 #endif
10721
10722 void fnord() { int i=42;}
10723 int main ()
10724 {
10725   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10726   int status = $lt_dlunknown;
10727
10728   if (self)
10729     {
10730       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10731       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10732       /* dlclose (self); */
10733     }
10734   else
10735     puts (dlerror ());
10736
10737   return status;
10738 }
10739 _LT_EOF
10740   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10741   (eval $ac_link) 2>&5
10742   ac_status=$?
10743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10744   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10745     (./conftest; exit; ) >&5 2>/dev/null
10746     lt_status=$?
10747     case x$lt_status in
10748       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10749       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10750       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10751     esac
10752   else :
10753     # compilation failed
10754     lt_cv_dlopen_self=no
10755   fi
10756 fi
10757 rm -fr conftest*
10758
10759
10760 fi
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10762 $as_echo "$lt_cv_dlopen_self" >&6; }
10763
10764     if test "x$lt_cv_dlopen_self" = xyes; then
10765       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10766       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10767 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10768 if ${lt_cv_dlopen_self_static+:} false; then :
10769   $as_echo_n "(cached) " >&6
10770 else
10771           if test "$cross_compiling" = yes; then :
10772   lt_cv_dlopen_self_static=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 10777 "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 void fnord() { int i=42;}
10819 int main ()
10820 {
10821   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10822   int status = $lt_dlunknown;
10823
10824   if (self)
10825     {
10826       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10827       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10828       /* dlclose (self); */
10829     }
10830   else
10831     puts (dlerror ());
10832
10833   return status;
10834 }
10835 _LT_EOF
10836   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10837   (eval $ac_link) 2>&5
10838   ac_status=$?
10839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10840   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10841     (./conftest; exit; ) >&5 2>/dev/null
10842     lt_status=$?
10843     case x$lt_status in
10844       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10845       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10846       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10847     esac
10848   else :
10849     # compilation failed
10850     lt_cv_dlopen_self_static=no
10851   fi
10852 fi
10853 rm -fr conftest*
10854
10855
10856 fi
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10858 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10859     fi
10860
10861     CPPFLAGS="$save_CPPFLAGS"
10862     LDFLAGS="$save_LDFLAGS"
10863     LIBS="$save_LIBS"
10864     ;;
10865   esac
10866
10867   case $lt_cv_dlopen_self in
10868   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10869   *) enable_dlopen_self=unknown ;;
10870   esac
10871
10872   case $lt_cv_dlopen_self_static in
10873   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10874   *) enable_dlopen_self_static=unknown ;;
10875   esac
10876 fi
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894 striplib=
10895 old_striplib=
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10897 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10898 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10899   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10900   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10902 $as_echo "yes" >&6; }
10903 else
10904 # FIXME - insert some real tests, host_os isn't really good enough
10905   case $host_os in
10906   darwin*)
10907     if test -n "$STRIP" ; then
10908       striplib="$STRIP -x"
10909       old_striplib="$STRIP -S"
10910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10911 $as_echo "yes" >&6; }
10912     else
10913       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; }
10915     fi
10916     ;;
10917   *)
10918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10920     ;;
10921   esac
10922 fi
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935   # Report which library types will actually be built
10936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10937 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10939 $as_echo "$can_build_shared" >&6; }
10940
10941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10942 $as_echo_n "checking whether to build shared libraries... " >&6; }
10943   test "$can_build_shared" = "no" && enable_shared=no
10944
10945   # On AIX, shared libraries and static libraries use the same namespace, and
10946   # are all built from PIC.
10947   case $host_os in
10948   aix3*)
10949     test "$enable_shared" = yes && enable_static=no
10950     if test -n "$RANLIB"; then
10951       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10952       postinstall_cmds='$RANLIB $lib'
10953     fi
10954     ;;
10955
10956   aix[4-9]*)
10957     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10958       test "$enable_shared" = yes && enable_static=no
10959     fi
10960     ;;
10961   esac
10962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10963 $as_echo "$enable_shared" >&6; }
10964
10965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10966 $as_echo_n "checking whether to build static libraries... " >&6; }
10967   # Make sure either enable_shared or enable_static is yes.
10968   test "$enable_shared" = yes || enable_static=yes
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10970 $as_echo "$enable_static" >&6; }
10971
10972
10973
10974
10975 fi
10976 ac_ext=c
10977 ac_cpp='$CPP $CPPFLAGS'
10978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10981
10982 CC="$lt_save_CC"
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996         ac_config_commands="$ac_config_commands libtool"
10997
10998
10999
11000
11001 # Only expand once:
11002
11003
11004
11005
11006
11007
11008
11009 ac_ext=cpp
11010 ac_cpp='$CXXCPP $CPPFLAGS'
11011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11014 if test -z "$CXX"; then
11015   if test -n "$CCC"; then
11016     CXX=$CCC
11017   else
11018     if test -n "$ac_tool_prefix"; then
11019   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11020   do
11021     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if ${ac_cv_prog_CXX+:} false; then :
11026   $as_echo_n "(cached) " >&6
11027 else
11028   if test -n "$CXX"; then
11029   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11030 else
11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11033 do
11034   IFS=$as_save_IFS
11035   test -z "$as_dir" && as_dir=.
11036     for ac_exec_ext in '' $ac_executable_extensions; do
11037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11038     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11040     break 2
11041   fi
11042 done
11043   done
11044 IFS=$as_save_IFS
11045
11046 fi
11047 fi
11048 CXX=$ac_cv_prog_CXX
11049 if test -n "$CXX"; then
11050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11051 $as_echo "$CXX" >&6; }
11052 else
11053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11055 fi
11056
11057
11058     test -n "$CXX" && break
11059   done
11060 fi
11061 if test -z "$CXX"; then
11062   ac_ct_CXX=$CXX
11063   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11064 do
11065   # Extract the first word of "$ac_prog", so it can be a program name with args.
11066 set dummy $ac_prog; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11070   $as_echo_n "(cached) " >&6
11071 else
11072   if test -n "$ac_ct_CXX"; then
11073   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11074 else
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11077 do
11078   IFS=$as_save_IFS
11079   test -z "$as_dir" && as_dir=.
11080     for ac_exec_ext in '' $ac_executable_extensions; do
11081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082     ac_cv_prog_ac_ct_CXX="$ac_prog"
11083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084     break 2
11085   fi
11086 done
11087   done
11088 IFS=$as_save_IFS
11089
11090 fi
11091 fi
11092 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11093 if test -n "$ac_ct_CXX"; then
11094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11095 $as_echo "$ac_ct_CXX" >&6; }
11096 else
11097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11099 fi
11100
11101
11102   test -n "$ac_ct_CXX" && break
11103 done
11104
11105   if test "x$ac_ct_CXX" = x; then
11106     CXX="g++"
11107   else
11108     case $cross_compiling:$ac_tool_warned in
11109 yes:)
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11112 ac_tool_warned=yes ;;
11113 esac
11114     CXX=$ac_ct_CXX
11115   fi
11116 fi
11117
11118   fi
11119 fi
11120 # Provide some information about the compiler.
11121 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11122 set X $ac_compile
11123 ac_compiler=$2
11124 for ac_option in --version -v -V -qversion; do
11125   { { ac_try="$ac_compiler $ac_option >&5"
11126 case "(($ac_try" in
11127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128   *) ac_try_echo=$ac_try;;
11129 esac
11130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11131 $as_echo "$ac_try_echo"; } >&5
11132   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11133   ac_status=$?
11134   if test -s conftest.err; then
11135     sed '10a\
11136 ... rest of stderr output deleted ...
11137          10q' conftest.err >conftest.er1
11138     cat conftest.er1 >&5
11139   fi
11140   rm -f conftest.er1 conftest.err
11141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11142   test $ac_status = 0; }
11143 done
11144
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11146 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11147 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11148   $as_echo_n "(cached) " >&6
11149 else
11150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h.  */
11152
11153 int
11154 main ()
11155 {
11156 #ifndef __GNUC__
11157        choke me
11158 #endif
11159
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 if ac_fn_cxx_try_compile "$LINENO"; then :
11165   ac_compiler_gnu=yes
11166 else
11167   ac_compiler_gnu=no
11168 fi
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11171
11172 fi
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11174 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11175 if test $ac_compiler_gnu = yes; then
11176   GXX=yes
11177 else
11178   GXX=
11179 fi
11180 ac_test_CXXFLAGS=${CXXFLAGS+set}
11181 ac_save_CXXFLAGS=$CXXFLAGS
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11183 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11184 if ${ac_cv_prog_cxx_g+:} false; then :
11185   $as_echo_n "(cached) " >&6
11186 else
11187   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11188    ac_cxx_werror_flag=yes
11189    ac_cv_prog_cxx_g=no
11190    CXXFLAGS="-g"
11191    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h.  */
11193
11194 int
11195 main ()
11196 {
11197
11198   ;
11199   return 0;
11200 }
11201 _ACEOF
11202 if ac_fn_cxx_try_compile "$LINENO"; then :
11203   ac_cv_prog_cxx_g=yes
11204 else
11205   CXXFLAGS=""
11206       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h.  */
11208
11209 int
11210 main ()
11211 {
11212
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 if ac_fn_cxx_try_compile "$LINENO"; then :
11218
11219 else
11220   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11221          CXXFLAGS="-g"
11222          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h.  */
11224
11225 int
11226 main ()
11227 {
11228
11229   ;
11230   return 0;
11231 }
11232 _ACEOF
11233 if ac_fn_cxx_try_compile "$LINENO"; then :
11234   ac_cv_prog_cxx_g=yes
11235 fi
11236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237 fi
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 fi
11240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11242 fi
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11244 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11245 if test "$ac_test_CXXFLAGS" = set; then
11246   CXXFLAGS=$ac_save_CXXFLAGS
11247 elif test $ac_cv_prog_cxx_g = yes; then
11248   if test "$GXX" = yes; then
11249     CXXFLAGS="-g -O2"
11250   else
11251     CXXFLAGS="-g"
11252   fi
11253 else
11254   if test "$GXX" = yes; then
11255     CXXFLAGS="-O2"
11256   else
11257     CXXFLAGS=
11258   fi
11259 fi
11260 ac_ext=c
11261 ac_cpp='$CPP $CPPFLAGS'
11262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11265
11266
11267 ac_ext=cpp
11268 ac_cpp='$CXXCPP $CPPFLAGS'
11269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11272 if test -z "$CXX"; then
11273   if test -n "$CCC"; then
11274     CXX=$CCC
11275   else
11276     if test -n "$ac_tool_prefix"; then
11277   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11278   do
11279     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282 $as_echo_n "checking for $ac_word... " >&6; }
11283 if ${ac_cv_prog_CXX+:} false; then :
11284   $as_echo_n "(cached) " >&6
11285 else
11286   if test -n "$CXX"; then
11287   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11288 else
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11291 do
11292   IFS=$as_save_IFS
11293   test -z "$as_dir" && as_dir=.
11294     for ac_exec_ext in '' $ac_executable_extensions; do
11295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11296     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298     break 2
11299   fi
11300 done
11301   done
11302 IFS=$as_save_IFS
11303
11304 fi
11305 fi
11306 CXX=$ac_cv_prog_CXX
11307 if test -n "$CXX"; then
11308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11309 $as_echo "$CXX" >&6; }
11310 else
11311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11313 fi
11314
11315
11316     test -n "$CXX" && break
11317   done
11318 fi
11319 if test -z "$CXX"; then
11320   ac_ct_CXX=$CXX
11321   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11322 do
11323   # Extract the first word of "$ac_prog", so it can be a program name with args.
11324 set dummy $ac_prog; ac_word=$2
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11326 $as_echo_n "checking for $ac_word... " >&6; }
11327 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11328   $as_echo_n "(cached) " >&6
11329 else
11330   if test -n "$ac_ct_CXX"; then
11331   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11332 else
11333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11335 do
11336   IFS=$as_save_IFS
11337   test -z "$as_dir" && as_dir=.
11338     for ac_exec_ext in '' $ac_executable_extensions; do
11339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11340     ac_cv_prog_ac_ct_CXX="$ac_prog"
11341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11342     break 2
11343   fi
11344 done
11345   done
11346 IFS=$as_save_IFS
11347
11348 fi
11349 fi
11350 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11351 if test -n "$ac_ct_CXX"; then
11352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11353 $as_echo "$ac_ct_CXX" >&6; }
11354 else
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11357 fi
11358
11359
11360   test -n "$ac_ct_CXX" && break
11361 done
11362
11363   if test "x$ac_ct_CXX" = x; then
11364     CXX="g++"
11365   else
11366     case $cross_compiling:$ac_tool_warned in
11367 yes:)
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11370 ac_tool_warned=yes ;;
11371 esac
11372     CXX=$ac_ct_CXX
11373   fi
11374 fi
11375
11376   fi
11377 fi
11378 # Provide some information about the compiler.
11379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11380 set X $ac_compile
11381 ac_compiler=$2
11382 for ac_option in --version -v -V -qversion; do
11383   { { ac_try="$ac_compiler $ac_option >&5"
11384 case "(($ac_try" in
11385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386   *) ac_try_echo=$ac_try;;
11387 esac
11388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11389 $as_echo "$ac_try_echo"; } >&5
11390   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11391   ac_status=$?
11392   if test -s conftest.err; then
11393     sed '10a\
11394 ... rest of stderr output deleted ...
11395          10q' conftest.err >conftest.er1
11396     cat conftest.er1 >&5
11397   fi
11398   rm -f conftest.er1 conftest.err
11399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11400   test $ac_status = 0; }
11401 done
11402
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11404 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11405 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11406   $as_echo_n "(cached) " >&6
11407 else
11408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h.  */
11410
11411 int
11412 main ()
11413 {
11414 #ifndef __GNUC__
11415        choke me
11416 #endif
11417
11418   ;
11419   return 0;
11420 }
11421 _ACEOF
11422 if ac_fn_cxx_try_compile "$LINENO"; then :
11423   ac_compiler_gnu=yes
11424 else
11425   ac_compiler_gnu=no
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11429
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11432 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11433 if test $ac_compiler_gnu = yes; then
11434   GXX=yes
11435 else
11436   GXX=
11437 fi
11438 ac_test_CXXFLAGS=${CXXFLAGS+set}
11439 ac_save_CXXFLAGS=$CXXFLAGS
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11441 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11442 if ${ac_cv_prog_cxx_g+:} false; then :
11443   $as_echo_n "(cached) " >&6
11444 else
11445   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11446    ac_cxx_werror_flag=yes
11447    ac_cv_prog_cxx_g=no
11448    CXXFLAGS="-g"
11449    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h.  */
11451
11452 int
11453 main ()
11454 {
11455
11456   ;
11457   return 0;
11458 }
11459 _ACEOF
11460 if ac_fn_cxx_try_compile "$LINENO"; then :
11461   ac_cv_prog_cxx_g=yes
11462 else
11463   CXXFLAGS=""
11464       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h.  */
11466
11467 int
11468 main ()
11469 {
11470
11471   ;
11472   return 0;
11473 }
11474 _ACEOF
11475 if ac_fn_cxx_try_compile "$LINENO"; then :
11476
11477 else
11478   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11479          CXXFLAGS="-g"
11480          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h.  */
11482
11483 int
11484 main ()
11485 {
11486
11487   ;
11488   return 0;
11489 }
11490 _ACEOF
11491 if ac_fn_cxx_try_compile "$LINENO"; then :
11492   ac_cv_prog_cxx_g=yes
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 fi
11496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497 fi
11498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11502 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11503 if test "$ac_test_CXXFLAGS" = set; then
11504   CXXFLAGS=$ac_save_CXXFLAGS
11505 elif test $ac_cv_prog_cxx_g = yes; then
11506   if test "$GXX" = yes; then
11507     CXXFLAGS="-g -O2"
11508   else
11509     CXXFLAGS="-g"
11510   fi
11511 else
11512   if test "$GXX" = yes; then
11513     CXXFLAGS="-O2"
11514   else
11515     CXXFLAGS=
11516   fi
11517 fi
11518 ac_ext=c
11519 ac_cpp='$CPP $CPPFLAGS'
11520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11523
11524 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11525     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11526     (test "X$CXX" != "Xg++"))) ; then
11527   ac_ext=cpp
11528 ac_cpp='$CXXCPP $CPPFLAGS'
11529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11533 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11534 if test -z "$CXXCPP"; then
11535   if ${ac_cv_prog_CXXCPP+:} false; then :
11536   $as_echo_n "(cached) " >&6
11537 else
11538       # Double quotes because CXXCPP needs to be expanded
11539     for CXXCPP in "$CXX -E" "/lib/cpp"
11540     do
11541       ac_preproc_ok=false
11542 for ac_cxx_preproc_warn_flag in '' yes
11543 do
11544   # Use a header file that comes with gcc, so configuring glibc
11545   # with a fresh cross-compiler works.
11546   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11547   # <limits.h> exists even on freestanding compilers.
11548   # On the NeXT, cc -E runs the code through the compiler's parser,
11549   # not just through cpp. "Syntax error" is here to catch this case.
11550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h.  */
11552 #ifdef __STDC__
11553 # include <limits.h>
11554 #else
11555 # include <assert.h>
11556 #endif
11557                      Syntax error
11558 _ACEOF
11559 if ac_fn_cxx_try_cpp "$LINENO"; then :
11560
11561 else
11562   # Broken: fails on valid input.
11563 continue
11564 fi
11565 rm -f conftest.err conftest.i conftest.$ac_ext
11566
11567   # OK, works on sane cases.  Now check whether nonexistent headers
11568   # can be detected and how.
11569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h.  */
11571 #include <ac_nonexistent.h>
11572 _ACEOF
11573 if ac_fn_cxx_try_cpp "$LINENO"; then :
11574   # Broken: success on invalid input.
11575 continue
11576 else
11577   # Passes both tests.
11578 ac_preproc_ok=:
11579 break
11580 fi
11581 rm -f conftest.err conftest.i conftest.$ac_ext
11582
11583 done
11584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11585 rm -f conftest.i conftest.err conftest.$ac_ext
11586 if $ac_preproc_ok; then :
11587   break
11588 fi
11589
11590     done
11591     ac_cv_prog_CXXCPP=$CXXCPP
11592
11593 fi
11594   CXXCPP=$ac_cv_prog_CXXCPP
11595 else
11596   ac_cv_prog_CXXCPP=$CXXCPP
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11599 $as_echo "$CXXCPP" >&6; }
11600 ac_preproc_ok=false
11601 for ac_cxx_preproc_warn_flag in '' yes
11602 do
11603   # Use a header file that comes with gcc, so configuring glibc
11604   # with a fresh cross-compiler works.
11605   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11606   # <limits.h> exists even on freestanding compilers.
11607   # On the NeXT, cc -E runs the code through the compiler's parser,
11608   # not just through cpp. "Syntax error" is here to catch this case.
11609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h.  */
11611 #ifdef __STDC__
11612 # include <limits.h>
11613 #else
11614 # include <assert.h>
11615 #endif
11616                      Syntax error
11617 _ACEOF
11618 if ac_fn_cxx_try_cpp "$LINENO"; then :
11619
11620 else
11621   # Broken: fails on valid input.
11622 continue
11623 fi
11624 rm -f conftest.err conftest.i conftest.$ac_ext
11625
11626   # OK, works on sane cases.  Now check whether nonexistent headers
11627   # can be detected and how.
11628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h.  */
11630 #include <ac_nonexistent.h>
11631 _ACEOF
11632 if ac_fn_cxx_try_cpp "$LINENO"; then :
11633   # Broken: success on invalid input.
11634 continue
11635 else
11636   # Passes both tests.
11637 ac_preproc_ok=:
11638 break
11639 fi
11640 rm -f conftest.err conftest.i conftest.$ac_ext
11641
11642 done
11643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11644 rm -f conftest.i conftest.err conftest.$ac_ext
11645 if $ac_preproc_ok; then :
11646
11647 else
11648   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11650 _lt_caught_CXX_error=yes; }
11651 fi
11652
11653 ac_ext=c
11654 ac_cpp='$CPP $CPPFLAGS'
11655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11658
11659 else
11660   _lt_caught_CXX_error=yes
11661 fi
11662
11663
11664
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
11672 archive_cmds_need_lc_CXX=no
11673 allow_undefined_flag_CXX=
11674 always_export_symbols_CXX=no
11675 archive_expsym_cmds_CXX=
11676 compiler_needs_object_CXX=no
11677 export_dynamic_flag_spec_CXX=
11678 hardcode_direct_CXX=no
11679 hardcode_direct_absolute_CXX=no
11680 hardcode_libdir_flag_spec_CXX=
11681 hardcode_libdir_flag_spec_ld_CXX=
11682 hardcode_libdir_separator_CXX=
11683 hardcode_minus_L_CXX=no
11684 hardcode_shlibpath_var_CXX=unsupported
11685 hardcode_automatic_CXX=no
11686 inherit_rpath_CXX=no
11687 module_cmds_CXX=
11688 module_expsym_cmds_CXX=
11689 link_all_deplibs_CXX=unknown
11690 old_archive_cmds_CXX=$old_archive_cmds
11691 no_undefined_flag_CXX=
11692 whole_archive_flag_spec_CXX=
11693 enable_shared_with_static_runtimes_CXX=no
11694
11695 # Source file extension for C++ test sources.
11696 ac_ext=cpp
11697
11698 # Object file extension for compiled C++ test sources.
11699 objext=o
11700 objext_CXX=$objext
11701
11702 # No sense in running all these tests if we already determined that
11703 # the CXX compiler isn't working.  Some variables (like enable_shared)
11704 # are currently assumed to apply to all compilers on this platform,
11705 # and will be corrupted by setting them based on a non-working compiler.
11706 if test "$_lt_caught_CXX_error" != yes; then
11707   # Code to be used in simple compile tests
11708   lt_simple_compile_test_code="int some_variable = 0;"
11709
11710   # Code to be used in simple link tests
11711   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11712
11713   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11714
11715
11716
11717
11718
11719
11720 # If no C compiler was specified, use CC.
11721 LTCC=${LTCC-"$CC"}
11722
11723 # If no C compiler flags were specified, use CFLAGS.
11724 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11725
11726 # Allow CC to be a program name with arguments.
11727 compiler=$CC
11728
11729
11730   # save warnings/boilerplate of simple test code
11731   ac_outfile=conftest.$ac_objext
11732 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11733 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11734 _lt_compiler_boilerplate=`cat conftest.err`
11735 $RM conftest*
11736
11737   ac_outfile=conftest.$ac_objext
11738 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11739 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11740 _lt_linker_boilerplate=`cat conftest.err`
11741 $RM -r conftest*
11742
11743
11744   # Allow CC to be a program name with arguments.
11745   lt_save_CC=$CC
11746   lt_save_LD=$LD
11747   lt_save_GCC=$GCC
11748   GCC=$GXX
11749   lt_save_with_gnu_ld=$with_gnu_ld
11750   lt_save_path_LD=$lt_cv_path_LD
11751   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11752     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11753   else
11754     $as_unset lt_cv_prog_gnu_ld
11755   fi
11756   if test -n "${lt_cv_path_LDCXX+set}"; then
11757     lt_cv_path_LD=$lt_cv_path_LDCXX
11758   else
11759     $as_unset lt_cv_path_LD
11760   fi
11761   test -z "${LDCXX+set}" || LD=$LDCXX
11762   CC=${CXX-"c++"}
11763   compiler=$CC
11764   compiler_CXX=$CC
11765   for cc_temp in $compiler""; do
11766   case $cc_temp in
11767     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11768     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11769     \-*) ;;
11770     *) break;;
11771   esac
11772 done
11773 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11774
11775
11776   if test -n "$compiler"; then
11777     # We don't want -fno-exception when compiling C++ code, so set the
11778     # no_builtin_flag separately
11779     if test "$GXX" = yes; then
11780       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11781     else
11782       lt_prog_compiler_no_builtin_flag_CXX=
11783     fi
11784
11785     if test "$GXX" = yes; then
11786       # Set up default GNU C++ configuration
11787
11788
11789
11790 # Check whether --with-gnu-ld was given.
11791 if test "${with_gnu_ld+set}" = set; then :
11792   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11793 else
11794   with_gnu_ld=no
11795 fi
11796
11797 ac_prog=ld
11798 if test "$GCC" = yes; then
11799   # Check if gcc -print-prog-name=ld gives a path.
11800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11801 $as_echo_n "checking for ld used by $CC... " >&6; }
11802   case $host in
11803   *-*-mingw*)
11804     # gcc leaves a trailing carriage return which upsets mingw
11805     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11806   *)
11807     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11808   esac
11809   case $ac_prog in
11810     # Accept absolute paths.
11811     [\\/]* | ?:[\\/]*)
11812       re_direlt='/[^/][^/]*/\.\./'
11813       # Canonicalize the pathname of ld
11814       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11815       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11816         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11817       done
11818       test -z "$LD" && LD="$ac_prog"
11819       ;;
11820   "")
11821     # If it fails, then pretend we aren't using GCC.
11822     ac_prog=ld
11823     ;;
11824   *)
11825     # If it is relative, then search for the first ld in PATH.
11826     with_gnu_ld=unknown
11827     ;;
11828   esac
11829 elif test "$with_gnu_ld" = yes; then
11830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11831 $as_echo_n "checking for GNU ld... " >&6; }
11832 else
11833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11834 $as_echo_n "checking for non-GNU ld... " >&6; }
11835 fi
11836 if ${lt_cv_path_LD+:} false; then :
11837   $as_echo_n "(cached) " >&6
11838 else
11839   if test -z "$LD"; then
11840   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11841   for ac_dir in $PATH; do
11842     IFS="$lt_save_ifs"
11843     test -z "$ac_dir" && ac_dir=.
11844     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11845       lt_cv_path_LD="$ac_dir/$ac_prog"
11846       # Check to see if the program is GNU ld.  I'd rather use --version,
11847       # but apparently some variants of GNU ld only accept -v.
11848       # Break only if it was the GNU/non-GNU ld that we prefer.
11849       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11850       *GNU* | *'with BFD'*)
11851         test "$with_gnu_ld" != no && break
11852         ;;
11853       *)
11854         test "$with_gnu_ld" != yes && break
11855         ;;
11856       esac
11857     fi
11858   done
11859   IFS="$lt_save_ifs"
11860 else
11861   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11862 fi
11863 fi
11864
11865 LD="$lt_cv_path_LD"
11866 if test -n "$LD"; then
11867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11868 $as_echo "$LD" >&6; }
11869 else
11870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11872 fi
11873 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11875 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11876 if ${lt_cv_prog_gnu_ld+:} false; then :
11877   $as_echo_n "(cached) " >&6
11878 else
11879   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11880 case `$LD -v 2>&1 </dev/null` in
11881 *GNU* | *'with BFD'*)
11882   lt_cv_prog_gnu_ld=yes
11883   ;;
11884 *)
11885   lt_cv_prog_gnu_ld=no
11886   ;;
11887 esac
11888 fi
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11890 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11891 with_gnu_ld=$lt_cv_prog_gnu_ld
11892
11893
11894
11895
11896
11897
11898
11899       # Check if GNU C++ uses GNU ld as the underlying linker, since the
11900       # archiving commands below assume that GNU ld is being used.
11901       if test "$with_gnu_ld" = yes; then
11902         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11903         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11904
11905         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11906         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11907
11908         # If archive_cmds runs LD, not CC, wlarc should be empty
11909         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11910         #     investigate it a little bit more. (MM)
11911         wlarc='${wl}'
11912
11913         # ancient GNU ld didn't support --whole-archive et. al.
11914         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11915           $GREP 'no-whole-archive' > /dev/null; then
11916           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11917         else
11918           whole_archive_flag_spec_CXX=
11919         fi
11920       else
11921         with_gnu_ld=no
11922         wlarc=
11923
11924         # A generic and very simple default shared library creation
11925         # command for GNU C++ for the case where it uses the native
11926         # linker, instead of GNU ld.  If possible, this setting should
11927         # overridden to take advantage of the native linker features on
11928         # the platform it is being used on.
11929         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11930       fi
11931
11932       # Commands to make compiler produce verbose output that lists
11933       # what "hidden" libraries, object files and flags are used when
11934       # linking a shared library.
11935       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11936
11937     else
11938       GXX=no
11939       with_gnu_ld=no
11940       wlarc=
11941     fi
11942
11943     # PORTME: fill in a description of your system's C++ link characteristics
11944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11945 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11946     ld_shlibs_CXX=yes
11947     case $host_os in
11948       aix3*)
11949         # FIXME: insert proper C++ library support
11950         ld_shlibs_CXX=no
11951         ;;
11952       aix[4-9]*)
11953         if test "$host_cpu" = ia64; then
11954           # On IA64, the linker does run time linking by default, so we don't
11955           # have to do anything special.
11956           aix_use_runtimelinking=no
11957           exp_sym_flag='-Bexport'
11958           no_entry_flag=""
11959         else
11960           aix_use_runtimelinking=no
11961
11962           # Test if we are trying to use run time linking or normal
11963           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11964           # need to do runtime linking.
11965           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11966             for ld_flag in $LDFLAGS; do
11967               case $ld_flag in
11968               *-brtl*)
11969                 aix_use_runtimelinking=yes
11970                 break
11971                 ;;
11972               esac
11973             done
11974             ;;
11975           esac
11976
11977           exp_sym_flag='-bexport'
11978           no_entry_flag='-bnoentry'
11979         fi
11980
11981         # When large executables or shared objects are built, AIX ld can
11982         # have problems creating the table of contents.  If linking a library
11983         # or program results in "error TOC overflow" add -mminimal-toc to
11984         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11985         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11986
11987         archive_cmds_CXX=''
11988         hardcode_direct_CXX=yes
11989         hardcode_direct_absolute_CXX=yes
11990         hardcode_libdir_separator_CXX=':'
11991         link_all_deplibs_CXX=yes
11992         file_list_spec_CXX='${wl}-f,'
11993
11994         if test "$GXX" = yes; then
11995           case $host_os in aix4.[012]|aix4.[012].*)
11996           # We only want to do this on AIX 4.2 and lower, the check
11997           # below for broken collect2 doesn't work under 4.3+
11998           collect2name=`${CC} -print-prog-name=collect2`
11999           if test -f "$collect2name" &&
12000              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12001           then
12002             # We have reworked collect2
12003             :
12004           else
12005             # We have old collect2
12006             hardcode_direct_CXX=unsupported
12007             # It fails to find uninstalled libraries when the uninstalled
12008             # path is not listed in the libpath.  Setting hardcode_minus_L
12009             # to unsupported forces relinking
12010             hardcode_minus_L_CXX=yes
12011             hardcode_libdir_flag_spec_CXX='-L$libdir'
12012             hardcode_libdir_separator_CXX=
12013           fi
12014           esac
12015           shared_flag='-shared'
12016           if test "$aix_use_runtimelinking" = yes; then
12017             shared_flag="$shared_flag "'${wl}-G'
12018           fi
12019         else
12020           # not using gcc
12021           if test "$host_cpu" = ia64; then
12022           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12023           # chokes on -Wl,-G. The following line is correct:
12024           shared_flag='-G'
12025           else
12026             if test "$aix_use_runtimelinking" = yes; then
12027               shared_flag='${wl}-G'
12028             else
12029               shared_flag='${wl}-bM:SRE'
12030             fi
12031           fi
12032         fi
12033
12034         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12035         # It seems that -bexpall does not export symbols beginning with
12036         # underscore (_), so it is better to generate a list of symbols to
12037         # export.
12038         always_export_symbols_CXX=yes
12039         if test "$aix_use_runtimelinking" = yes; then
12040           # Warning - without using the other runtime loading flags (-brtl),
12041           # -berok will link without error, but may produce a broken library.
12042           allow_undefined_flag_CXX='-berok'
12043           # Determine the default libpath from the value encoded in an empty
12044           # executable.
12045           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h.  */
12047
12048 int
12049 main ()
12050 {
12051
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 if ac_fn_cxx_try_link "$LINENO"; then :
12057
12058 lt_aix_libpath_sed='
12059     /Import File Strings/,/^$/ {
12060         /^0/ {
12061             s/^0  *\(.*\)$/\1/
12062             p
12063         }
12064     }'
12065 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12066 # Check for a 64-bit object if we didn't find anything.
12067 if test -z "$aix_libpath"; then
12068   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12069 fi
12070 fi
12071 rm -f core conftest.err conftest.$ac_objext \
12072     conftest$ac_exeext conftest.$ac_ext
12073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12074
12075           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12076
12077           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12078         else
12079           if test "$host_cpu" = ia64; then
12080             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12081             allow_undefined_flag_CXX="-z nodefs"
12082             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"
12083           else
12084             # Determine the default libpath from the value encoded in an
12085             # empty executable.
12086             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h.  */
12088
12089 int
12090 main ()
12091 {
12092
12093   ;
12094   return 0;
12095 }
12096 _ACEOF
12097 if ac_fn_cxx_try_link "$LINENO"; then :
12098
12099 lt_aix_libpath_sed='
12100     /Import File Strings/,/^$/ {
12101         /^0/ {
12102             s/^0  *\(.*\)$/\1/
12103             p
12104         }
12105     }'
12106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12107 # Check for a 64-bit object if we didn't find anything.
12108 if test -z "$aix_libpath"; then
12109   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12110 fi
12111 fi
12112 rm -f core conftest.err conftest.$ac_objext \
12113     conftest$ac_exeext conftest.$ac_ext
12114 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12115
12116             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12117             # Warning - without using the other run time loading flags,
12118             # -berok will link without error, but may produce a broken library.
12119             no_undefined_flag_CXX=' ${wl}-bernotok'
12120             allow_undefined_flag_CXX=' ${wl}-berok'
12121             # Exported symbols can be pulled into shared objects from archives
12122             whole_archive_flag_spec_CXX='$convenience'
12123             archive_cmds_need_lc_CXX=yes
12124             # This is similar to how AIX traditionally builds its shared
12125             # libraries.
12126             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'
12127           fi
12128         fi
12129         ;;
12130
12131       beos*)
12132         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12133           allow_undefined_flag_CXX=unsupported
12134           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12135           # support --undefined.  This deserves some investigation.  FIXME
12136           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12137         else
12138           ld_shlibs_CXX=no
12139         fi
12140         ;;
12141
12142       chorus*)
12143         case $cc_basename in
12144           *)
12145           # FIXME: insert proper C++ library support
12146           ld_shlibs_CXX=no
12147           ;;
12148         esac
12149         ;;
12150
12151       cygwin* | mingw* | pw32* | cegcc*)
12152         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12153         # as there is no search path for DLLs.
12154         hardcode_libdir_flag_spec_CXX='-L$libdir'
12155         allow_undefined_flag_CXX=unsupported
12156         always_export_symbols_CXX=no
12157         enable_shared_with_static_runtimes_CXX=yes
12158
12159         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12160           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'
12161           # If the export-symbols file already is a .def file (1st line
12162           # is EXPORTS), use it as is; otherwise, prepend...
12163           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12164             cp $export_symbols $output_objdir/$soname.def;
12165           else
12166             echo EXPORTS > $output_objdir/$soname.def;
12167             cat $export_symbols >> $output_objdir/$soname.def;
12168           fi~
12169           $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'
12170         else
12171           ld_shlibs_CXX=no
12172         fi
12173         ;;
12174       darwin* | rhapsody*)
12175
12176
12177   archive_cmds_need_lc_CXX=no
12178   hardcode_direct_CXX=no
12179   hardcode_automatic_CXX=yes
12180   hardcode_shlibpath_var_CXX=unsupported
12181   whole_archive_flag_spec_CXX=''
12182   link_all_deplibs_CXX=yes
12183   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12184   case $cc_basename in
12185      ifort*) _lt_dar_can_shared=yes ;;
12186      *) _lt_dar_can_shared=$GCC ;;
12187   esac
12188   if test "$_lt_dar_can_shared" = "yes"; then
12189     output_verbose_link_cmd=echo
12190     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}"
12191     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12192     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}"
12193     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}"
12194        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12195       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}"
12196       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}"
12197     fi
12198
12199   else
12200   ld_shlibs_CXX=no
12201   fi
12202
12203         ;;
12204
12205       dgux*)
12206         case $cc_basename in
12207           ec++*)
12208             # FIXME: insert proper C++ library support
12209             ld_shlibs_CXX=no
12210             ;;
12211           ghcx*)
12212             # Green Hills C++ Compiler
12213             # FIXME: insert proper C++ library support
12214             ld_shlibs_CXX=no
12215             ;;
12216           *)
12217             # FIXME: insert proper C++ library support
12218             ld_shlibs_CXX=no
12219             ;;
12220         esac
12221         ;;
12222
12223       freebsd[12]*)
12224         # C++ shared libraries reported to be fairly broken before
12225         # switch to ELF
12226         ld_shlibs_CXX=no
12227         ;;
12228
12229       freebsd-elf*)
12230         archive_cmds_need_lc_CXX=no
12231         ;;
12232
12233       freebsd* | dragonfly*)
12234         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12235         # conventions
12236         ld_shlibs_CXX=yes
12237         ;;
12238
12239       gnu*)
12240         ;;
12241
12242       hpux9*)
12243         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12244         hardcode_libdir_separator_CXX=:
12245         export_dynamic_flag_spec_CXX='${wl}-E'
12246         hardcode_direct_CXX=yes
12247         hardcode_minus_L_CXX=yes # Not in the search PATH,
12248                                              # but as the default
12249                                              # location of the library.
12250
12251         case $cc_basename in
12252           CC*)
12253             # FIXME: insert proper C++ library support
12254             ld_shlibs_CXX=no
12255             ;;
12256           aCC*)
12257             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'
12258             # Commands to make compiler produce verbose output that lists
12259             # what "hidden" libraries, object files and flags are used when
12260             # linking a shared library.
12261             #
12262             # There doesn't appear to be a way to prevent this compiler from
12263             # explicitly linking system object files so we need to strip them
12264             # from the output so that they don't get included in the library
12265             # dependencies.
12266             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; $ECHO "X$list" | $Xsed'
12267             ;;
12268           *)
12269             if test "$GXX" = yes; then
12270               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12271             else
12272               # FIXME: insert proper C++ library support
12273               ld_shlibs_CXX=no
12274             fi
12275             ;;
12276         esac
12277         ;;
12278
12279       hpux10*|hpux11*)
12280         if test $with_gnu_ld = no; then
12281           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12282           hardcode_libdir_separator_CXX=:
12283
12284           case $host_cpu in
12285             hppa*64*|ia64*)
12286               ;;
12287             *)
12288               export_dynamic_flag_spec_CXX='${wl}-E'
12289               ;;
12290           esac
12291         fi
12292         case $host_cpu in
12293           hppa*64*|ia64*)
12294             hardcode_direct_CXX=no
12295             hardcode_shlibpath_var_CXX=no
12296             ;;
12297           *)
12298             hardcode_direct_CXX=yes
12299             hardcode_direct_absolute_CXX=yes
12300             hardcode_minus_L_CXX=yes # Not in the search PATH,
12301                                                  # but as the default
12302                                                  # location of the library.
12303             ;;
12304         esac
12305
12306         case $cc_basename in
12307           CC*)
12308             # FIXME: insert proper C++ library support
12309             ld_shlibs_CXX=no
12310             ;;
12311           aCC*)
12312             case $host_cpu in
12313               hppa*64*)
12314                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12315                 ;;
12316               ia64*)
12317                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12318                 ;;
12319               *)
12320                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12321                 ;;
12322             esac
12323             # Commands to make compiler produce verbose output that lists
12324             # what "hidden" libraries, object files and flags are used when
12325             # linking a shared library.
12326             #
12327             # There doesn't appear to be a way to prevent this compiler from
12328             # explicitly linking system object files so we need to strip them
12329             # from the output so that they don't get included in the library
12330             # dependencies.
12331             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; $ECHO "X$list" | $Xsed'
12332             ;;
12333           *)
12334             if test "$GXX" = yes; then
12335               if test $with_gnu_ld = no; then
12336                 case $host_cpu in
12337                   hppa*64*)
12338                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12339                     ;;
12340                   ia64*)
12341                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12342                     ;;
12343                   *)
12344                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12345                     ;;
12346                 esac
12347               fi
12348             else
12349               # FIXME: insert proper C++ library support
12350               ld_shlibs_CXX=no
12351             fi
12352             ;;
12353         esac
12354         ;;
12355
12356       interix[3-9]*)
12357         hardcode_direct_CXX=no
12358         hardcode_shlibpath_var_CXX=no
12359         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12360         export_dynamic_flag_spec_CXX='${wl}-E'
12361         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12362         # Instead, shared libraries are loaded at an image base (0x10000000 by
12363         # default) and relocated if they conflict, which is a slow very memory
12364         # consuming and fragmenting process.  To avoid this, we pick a random,
12365         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12366         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12367         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'
12368         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'
12369         ;;
12370       irix5* | irix6*)
12371         case $cc_basename in
12372           CC*)
12373             # SGI C++
12374             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12375
12376             # Archives containing C++ object files must be created using
12377             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12378             # necessary to make sure instantiated templates are included
12379             # in the archive.
12380             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12381             ;;
12382           *)
12383             if test "$GXX" = yes; then
12384               if test "$with_gnu_ld" = no; then
12385                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12386               else
12387                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12388               fi
12389             fi
12390             link_all_deplibs_CXX=yes
12391             ;;
12392         esac
12393         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12394         hardcode_libdir_separator_CXX=:
12395         inherit_rpath_CXX=yes
12396         ;;
12397
12398       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12399         case $cc_basename in
12400           KCC*)
12401             # Kuck and Associates, Inc. (KAI) C++ Compiler
12402
12403             # KCC will only create a shared library if the output file
12404             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12405             # to its proper name (with version) after linking.
12406             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'
12407             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'
12408             # Commands to make compiler produce verbose output that lists
12409             # what "hidden" libraries, object files and flags are used when
12410             # linking a shared library.
12411             #
12412             # There doesn't appear to be a way to prevent this compiler from
12413             # explicitly linking system object files so we need to strip them
12414             # from the output so that they don't get included in the library
12415             # dependencies.
12416             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; $ECHO "X$list" | $Xsed'
12417
12418             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12419             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12420
12421             # Archives containing C++ object files must be created using
12422             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12423             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12424             ;;
12425           icpc* | ecpc* )
12426             # Intel C++
12427             with_gnu_ld=yes
12428             # version 8.0 and above of icpc choke on multiply defined symbols
12429             # if we add $predep_objects and $postdep_objects, however 7.1 and
12430             # earlier do not add the objects themselves.
12431             case `$CC -V 2>&1` in
12432               *"Version 7."*)
12433                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12434                 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'
12435                 ;;
12436               *)  # Version 8.0 or newer
12437                 tmp_idyn=
12438                 case $host_cpu in
12439                   ia64*) tmp_idyn=' -i_dynamic';;
12440                 esac
12441                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12442                 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'
12443                 ;;
12444             esac
12445             archive_cmds_need_lc_CXX=no
12446             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12447             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12448             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12449             ;;
12450           pgCC* | pgcpp*)
12451             # Portland Group C++ compiler
12452             case `$CC -V` in
12453             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12454               prelink_cmds_CXX='tpldir=Template.dir~
12455                 rm -rf $tpldir~
12456                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12457                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12458               old_archive_cmds_CXX='tpldir=Template.dir~
12459                 rm -rf $tpldir~
12460                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12461                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12462                 $RANLIB $oldlib'
12463               archive_cmds_CXX='tpldir=Template.dir~
12464                 rm -rf $tpldir~
12465                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12466                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12467               archive_expsym_cmds_CXX='tpldir=Template.dir~
12468                 rm -rf $tpldir~
12469                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12470                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12471               ;;
12472             *) # Version 6 will use weak symbols
12473               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12474               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'
12475               ;;
12476             esac
12477
12478             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12479             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12480             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12481             ;;
12482           cxx*)
12483             # Compaq C++
12484             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12485             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'
12486
12487             runpath_var=LD_RUN_PATH
12488             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12489             hardcode_libdir_separator_CXX=:
12490
12491             # Commands to make compiler produce verbose output that lists
12492             # what "hidden" libraries, object files and flags are used when
12493             # linking a shared library.
12494             #
12495             # There doesn't appear to be a way to prevent this compiler from
12496             # explicitly linking system object files so we need to strip them
12497             # from the output so that they don't get included in the library
12498             # dependencies.
12499             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12500             ;;
12501           xl*)
12502             # IBM XL 8.0 on PPC, with GNU ld
12503             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12504             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12505             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12506             if test "x$supports_anon_versioning" = xyes; then
12507               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12508                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12509                 echo "local: *; };" >> $output_objdir/$libname.ver~
12510                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12511             fi
12512             ;;
12513           *)
12514             case `$CC -V 2>&1 | sed 5q` in
12515             *Sun\ C*)
12516               # Sun C++ 5.9
12517               no_undefined_flag_CXX=' -zdefs'
12518               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12519               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'
12520               hardcode_libdir_flag_spec_CXX='-R$libdir'
12521               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12522               compiler_needs_object_CXX=yes
12523
12524               # Not sure whether something based on
12525               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12526               # would be better.
12527               output_verbose_link_cmd='echo'
12528
12529               # Archives containing C++ object files must be created using
12530               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12531               # necessary to make sure instantiated templates are included
12532               # in the archive.
12533               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12534               ;;
12535             esac
12536             ;;
12537         esac
12538         ;;
12539
12540       lynxos*)
12541         # FIXME: insert proper C++ library support
12542         ld_shlibs_CXX=no
12543         ;;
12544
12545       m88k*)
12546         # FIXME: insert proper C++ library support
12547         ld_shlibs_CXX=no
12548         ;;
12549
12550       mvs*)
12551         case $cc_basename in
12552           cxx*)
12553             # FIXME: insert proper C++ library support
12554             ld_shlibs_CXX=no
12555             ;;
12556           *)
12557             # FIXME: insert proper C++ library support
12558             ld_shlibs_CXX=no
12559             ;;
12560         esac
12561         ;;
12562
12563       netbsd*)
12564         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12565           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12566           wlarc=
12567           hardcode_libdir_flag_spec_CXX='-R$libdir'
12568           hardcode_direct_CXX=yes
12569           hardcode_shlibpath_var_CXX=no
12570         fi
12571         # Workaround some broken pre-1.5 toolchains
12572         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12573         ;;
12574
12575       *nto* | *qnx*)
12576         ld_shlibs_CXX=yes
12577         ;;
12578
12579       openbsd2*)
12580         # C++ shared libraries are fairly broken
12581         ld_shlibs_CXX=no
12582         ;;
12583
12584       openbsd*)
12585         if test -f /usr/libexec/ld.so; then
12586           hardcode_direct_CXX=yes
12587           hardcode_shlibpath_var_CXX=no
12588           hardcode_direct_absolute_CXX=yes
12589           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12590           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12591           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12592             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12593             export_dynamic_flag_spec_CXX='${wl}-E'
12594             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12595           fi
12596           output_verbose_link_cmd=echo
12597         else
12598           ld_shlibs_CXX=no
12599         fi
12600         ;;
12601
12602       osf3* | osf4* | osf5*)
12603         case $cc_basename in
12604           KCC*)
12605             # Kuck and Associates, Inc. (KAI) C++ Compiler
12606
12607             # KCC will only create a shared library if the output file
12608             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12609             # to its proper name (with version) after linking.
12610             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'
12611
12612             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12613             hardcode_libdir_separator_CXX=:
12614
12615             # Archives containing C++ object files must be created using
12616             # the KAI C++ compiler.
12617             case $host in
12618               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12619               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12620             esac
12621             ;;
12622           RCC*)
12623             # Rational C++ 2.4.1
12624             # FIXME: insert proper C++ library support
12625             ld_shlibs_CXX=no
12626             ;;
12627           cxx*)
12628             case $host in
12629               osf3*)
12630                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12631                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12632                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12633                 ;;
12634               *)
12635                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12636                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12637                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12638                   echo "-hidden">> $lib.exp~
12639                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12640                   $RM $lib.exp'
12641                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12642                 ;;
12643             esac
12644
12645             hardcode_libdir_separator_CXX=:
12646
12647             # Commands to make compiler produce verbose output that lists
12648             # what "hidden" libraries, object files and flags are used when
12649             # linking a shared library.
12650             #
12651             # There doesn't appear to be a way to prevent this compiler from
12652             # explicitly linking system object files so we need to strip them
12653             # from the output so that they don't get included in the library
12654             # dependencies.
12655             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12656             ;;
12657           *)
12658             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12659               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12660               case $host in
12661                 osf3*)
12662                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12663                   ;;
12664                 *)
12665                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12666                   ;;
12667               esac
12668
12669               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12670               hardcode_libdir_separator_CXX=:
12671
12672               # Commands to make compiler produce verbose output that lists
12673               # what "hidden" libraries, object files and flags are used when
12674               # linking a shared library.
12675               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12676
12677             else
12678               # FIXME: insert proper C++ library support
12679               ld_shlibs_CXX=no
12680             fi
12681             ;;
12682         esac
12683         ;;
12684
12685       psos*)
12686         # FIXME: insert proper C++ library support
12687         ld_shlibs_CXX=no
12688         ;;
12689
12690       sunos4*)
12691         case $cc_basename in
12692           CC*)
12693             # Sun C++ 4.x
12694             # FIXME: insert proper C++ library support
12695             ld_shlibs_CXX=no
12696             ;;
12697           lcc*)
12698             # Lucid
12699             # FIXME: insert proper C++ library support
12700             ld_shlibs_CXX=no
12701             ;;
12702           *)
12703             # FIXME: insert proper C++ library support
12704             ld_shlibs_CXX=no
12705             ;;
12706         esac
12707         ;;
12708
12709       solaris*)
12710         case $cc_basename in
12711           CC*)
12712             # Sun C++ 4.2, 5.x and Centerline C++
12713             archive_cmds_need_lc_CXX=yes
12714             no_undefined_flag_CXX=' -zdefs'
12715             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12716             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12717               $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'
12718
12719             hardcode_libdir_flag_spec_CXX='-R$libdir'
12720             hardcode_shlibpath_var_CXX=no
12721             case $host_os in
12722               solaris2.[0-5] | solaris2.[0-5].*) ;;
12723               *)
12724                 # The compiler driver will combine and reorder linker options,
12725                 # but understands `-z linker_flag'.
12726                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12727                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12728                 ;;
12729             esac
12730             link_all_deplibs_CXX=yes
12731
12732             output_verbose_link_cmd='echo'
12733
12734             # Archives containing C++ object files must be created using
12735             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12736             # necessary to make sure instantiated templates are included
12737             # in the archive.
12738             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12739             ;;
12740           gcx*)
12741             # Green Hills C++ Compiler
12742             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12743
12744             # The C++ compiler must be used to create the archive.
12745             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12746             ;;
12747           *)
12748             # GNU C++ compiler with Solaris linker
12749             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12750               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12751               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12752                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12753                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12754                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12755
12756                 # Commands to make compiler produce verbose output that lists
12757                 # what "hidden" libraries, object files and flags are used when
12758                 # linking a shared library.
12759                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12760               else
12761                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12762                 # platform.
12763                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12764                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12765                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12766
12767                 # Commands to make compiler produce verbose output that lists
12768                 # what "hidden" libraries, object files and flags are used when
12769                 # linking a shared library.
12770                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12771               fi
12772
12773               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12774               case $host_os in
12775                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12776                 *)
12777                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12778                   ;;
12779               esac
12780             fi
12781             ;;
12782         esac
12783         ;;
12784
12785     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12786       no_undefined_flag_CXX='${wl}-z,text'
12787       archive_cmds_need_lc_CXX=no
12788       hardcode_shlibpath_var_CXX=no
12789       runpath_var='LD_RUN_PATH'
12790
12791       case $cc_basename in
12792         CC*)
12793           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12794           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12795           ;;
12796         *)
12797           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12798           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12799           ;;
12800       esac
12801       ;;
12802
12803       sysv5* | sco3.2v5* | sco5v6*)
12804         # Note: We can NOT use -z defs as we might desire, because we do not
12805         # link with -lc, and that would cause any symbols used from libc to
12806         # always be unresolved, which means just about no library would
12807         # ever link correctly.  If we're not using GNU ld we use -z text
12808         # though, which does catch some bad symbols but isn't as heavy-handed
12809         # as -z defs.
12810         no_undefined_flag_CXX='${wl}-z,text'
12811         allow_undefined_flag_CXX='${wl}-z,nodefs'
12812         archive_cmds_need_lc_CXX=no
12813         hardcode_shlibpath_var_CXX=no
12814         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12815         hardcode_libdir_separator_CXX=':'
12816         link_all_deplibs_CXX=yes
12817         export_dynamic_flag_spec_CXX='${wl}-Bexport'
12818         runpath_var='LD_RUN_PATH'
12819
12820         case $cc_basename in
12821           CC*)
12822             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12823             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12824             ;;
12825           *)
12826             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12827             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12828             ;;
12829         esac
12830       ;;
12831
12832       tandem*)
12833         case $cc_basename in
12834           NCC*)
12835             # NonStop-UX NCC 3.20
12836             # FIXME: insert proper C++ library support
12837             ld_shlibs_CXX=no
12838             ;;
12839           *)
12840             # FIXME: insert proper C++ library support
12841             ld_shlibs_CXX=no
12842             ;;
12843         esac
12844         ;;
12845
12846       vxworks*)
12847         # FIXME: insert proper C++ library support
12848         ld_shlibs_CXX=no
12849         ;;
12850
12851       *)
12852         # FIXME: insert proper C++ library support
12853         ld_shlibs_CXX=no
12854         ;;
12855     esac
12856
12857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12858 $as_echo "$ld_shlibs_CXX" >&6; }
12859     test "$ld_shlibs_CXX" = no && can_build_shared=no
12860
12861     GCC_CXX="$GXX"
12862     LD_CXX="$LD"
12863
12864     ## CAVEAT EMPTOR:
12865     ## There is no encapsulation within the following macros, do not change
12866     ## the running order or otherwise move them around unless you know exactly
12867     ## what you are doing...
12868     # Dependencies to place before and after the object being linked:
12869 predep_objects_CXX=
12870 postdep_objects_CXX=
12871 predeps_CXX=
12872 postdeps_CXX=
12873 compiler_lib_search_path_CXX=
12874
12875 cat > conftest.$ac_ext <<_LT_EOF
12876 class Foo
12877 {
12878 public:
12879   Foo (void) { a = 0; }
12880 private:
12881   int a;
12882 };
12883 _LT_EOF
12884
12885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12886   (eval $ac_compile) 2>&5
12887   ac_status=$?
12888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12889   test $ac_status = 0; }; then
12890   # Parse the compiler output and extract the necessary
12891   # objects, libraries and library flags.
12892
12893   # Sentinel used to keep track of whether or not we are before
12894   # the conftest object file.
12895   pre_test_object_deps_done=no
12896
12897   for p in `eval "$output_verbose_link_cmd"`; do
12898     case $p in
12899
12900     -L* | -R* | -l*)
12901        # Some compilers place space between "-{L,R}" and the path.
12902        # Remove the space.
12903        if test $p = "-L" ||
12904           test $p = "-R"; then
12905          prev=$p
12906          continue
12907        else
12908          prev=
12909        fi
12910
12911        if test "$pre_test_object_deps_done" = no; then
12912          case $p in
12913          -L* | -R*)
12914            # Internal compiler library paths should come after those
12915            # provided the user.  The postdeps already come after the
12916            # user supplied libs so there is no need to process them.
12917            if test -z "$compiler_lib_search_path_CXX"; then
12918              compiler_lib_search_path_CXX="${prev}${p}"
12919            else
12920              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12921            fi
12922            ;;
12923          # The "-l" case would never come before the object being
12924          # linked, so don't bother handling this case.
12925          esac
12926        else
12927          if test -z "$postdeps_CXX"; then
12928            postdeps_CXX="${prev}${p}"
12929          else
12930            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12931          fi
12932        fi
12933        ;;
12934
12935     *.$objext)
12936        # This assumes that the test object file only shows up
12937        # once in the compiler output.
12938        if test "$p" = "conftest.$objext"; then
12939          pre_test_object_deps_done=yes
12940          continue
12941        fi
12942
12943        if test "$pre_test_object_deps_done" = no; then
12944          if test -z "$predep_objects_CXX"; then
12945            predep_objects_CXX="$p"
12946          else
12947            predep_objects_CXX="$predep_objects_CXX $p"
12948          fi
12949        else
12950          if test -z "$postdep_objects_CXX"; then
12951            postdep_objects_CXX="$p"
12952          else
12953            postdep_objects_CXX="$postdep_objects_CXX $p"
12954          fi
12955        fi
12956        ;;
12957
12958     *) ;; # Ignore the rest.
12959
12960     esac
12961   done
12962
12963   # Clean up.
12964   rm -f a.out a.exe
12965 else
12966   echo "libtool.m4: error: problem compiling CXX test program"
12967 fi
12968
12969 $RM -f confest.$objext
12970
12971 # PORTME: override above test on systems where it is broken
12972 case $host_os in
12973 interix[3-9]*)
12974   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12975   # hack all around it, let's just trust "g++" to DTRT.
12976   predep_objects_CXX=
12977   postdep_objects_CXX=
12978   postdeps_CXX=
12979   ;;
12980
12981 linux*)
12982   case `$CC -V 2>&1 | sed 5q` in
12983   *Sun\ C*)
12984     # Sun C++ 5.9
12985
12986     # The more standards-conforming stlport4 library is
12987     # incompatible with the Cstd library. Avoid specifying
12988     # it if it's in CXXFLAGS. Ignore libCrun as
12989     # -library=stlport4 depends on it.
12990     case " $CXX $CXXFLAGS " in
12991     *" -library=stlport4 "*)
12992       solaris_use_stlport4=yes
12993       ;;
12994     esac
12995
12996     if test "$solaris_use_stlport4" != yes; then
12997       postdeps_CXX='-library=Cstd -library=Crun'
12998     fi
12999     ;;
13000   esac
13001   ;;
13002
13003 solaris*)
13004   case $cc_basename in
13005   CC*)
13006     # The more standards-conforming stlport4 library is
13007     # incompatible with the Cstd library. Avoid specifying
13008     # it if it's in CXXFLAGS. Ignore libCrun as
13009     # -library=stlport4 depends on it.
13010     case " $CXX $CXXFLAGS " in
13011     *" -library=stlport4 "*)
13012       solaris_use_stlport4=yes
13013       ;;
13014     esac
13015
13016     # Adding this requires a known-good setup of shared libraries for
13017     # Sun compiler versions before 5.6, else PIC objects from an old
13018     # archive will be linked into the output, leading to subtle bugs.
13019     if test "$solaris_use_stlport4" != yes; then
13020       postdeps_CXX='-library=Cstd -library=Crun'
13021     fi
13022     ;;
13023   esac
13024   ;;
13025 esac
13026
13027
13028 case " $postdeps_CXX " in
13029 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13030 esac
13031  compiler_lib_search_dirs_CXX=
13032 if test -n "${compiler_lib_search_path_CXX}"; then
13033  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13034 fi
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066     lt_prog_compiler_wl_CXX=
13067 lt_prog_compiler_pic_CXX=
13068 lt_prog_compiler_static_CXX=
13069
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13071 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13072
13073   # C++ specific cases for pic, static, wl, etc.
13074   if test "$GXX" = yes; then
13075     lt_prog_compiler_wl_CXX='-Wl,'
13076     lt_prog_compiler_static_CXX='-static'
13077
13078     case $host_os in
13079     aix*)
13080       # All AIX code is PIC.
13081       if test "$host_cpu" = ia64; then
13082         # AIX 5 now supports IA64 processor
13083         lt_prog_compiler_static_CXX='-Bstatic'
13084       fi
13085       ;;
13086
13087     amigaos*)
13088       case $host_cpu in
13089       powerpc)
13090             # see comment about AmigaOS4 .so support
13091             lt_prog_compiler_pic_CXX='-fPIC'
13092         ;;
13093       m68k)
13094             # FIXME: we need at least 68020 code to build shared libraries, but
13095             # adding the `-m68020' flag to GCC prevents building anything better,
13096             # like `-m68040'.
13097             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13098         ;;
13099       esac
13100       ;;
13101
13102     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13103       # PIC is the default for these OSes.
13104       ;;
13105     mingw* | cygwin* | os2* | pw32* | cegcc*)
13106       # This hack is so that the source file can tell whether it is being
13107       # built for inclusion in a dll (and should export symbols for example).
13108       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13109       # (--disable-auto-import) libraries
13110       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13111       ;;
13112     darwin* | rhapsody*)
13113       # PIC is the default on this platform
13114       # Common symbols not allowed in MH_DYLIB files
13115       lt_prog_compiler_pic_CXX='-fno-common'
13116       ;;
13117     *djgpp*)
13118       # DJGPP does not support shared libraries at all
13119       lt_prog_compiler_pic_CXX=
13120       ;;
13121     interix[3-9]*)
13122       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13123       # Instead, we relocate shared libraries at runtime.
13124       ;;
13125     sysv4*MP*)
13126       if test -d /usr/nec; then
13127         lt_prog_compiler_pic_CXX=-Kconform_pic
13128       fi
13129       ;;
13130     hpux*)
13131       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13132       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13133       # sets the default TLS model and affects inlining.
13134       case $host_cpu in
13135       hppa*64*)
13136         ;;
13137       *)
13138         lt_prog_compiler_pic_CXX='-fPIC'
13139         ;;
13140       esac
13141       ;;
13142     *qnx* | *nto*)
13143       # QNX uses GNU C++, but need to define -shared option too, otherwise
13144       # it will coredump.
13145       lt_prog_compiler_pic_CXX='-fPIC -shared'
13146       ;;
13147     *)
13148       lt_prog_compiler_pic_CXX='-fPIC'
13149       ;;
13150     esac
13151   else
13152     case $host_os in
13153       aix[4-9]*)
13154         # All AIX code is PIC.
13155         if test "$host_cpu" = ia64; then
13156           # AIX 5 now supports IA64 processor
13157           lt_prog_compiler_static_CXX='-Bstatic'
13158         else
13159           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13160         fi
13161         ;;
13162       chorus*)
13163         case $cc_basename in
13164         cxch68*)
13165           # Green Hills C++ Compiler
13166           # _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"
13167           ;;
13168         esac
13169         ;;
13170       dgux*)
13171         case $cc_basename in
13172           ec++*)
13173             lt_prog_compiler_pic_CXX='-KPIC'
13174             ;;
13175           ghcx*)
13176             # Green Hills C++ Compiler
13177             lt_prog_compiler_pic_CXX='-pic'
13178             ;;
13179           *)
13180             ;;
13181         esac
13182         ;;
13183       freebsd* | dragonfly*)
13184         # FreeBSD uses GNU C++
13185         ;;
13186       hpux9* | hpux10* | hpux11*)
13187         case $cc_basename in
13188           CC*)
13189             lt_prog_compiler_wl_CXX='-Wl,'
13190             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13191             if test "$host_cpu" != ia64; then
13192               lt_prog_compiler_pic_CXX='+Z'
13193             fi
13194             ;;
13195           aCC*)
13196             lt_prog_compiler_wl_CXX='-Wl,'
13197             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13198             case $host_cpu in
13199             hppa*64*|ia64*)
13200               # +Z the default
13201               ;;
13202             *)
13203               lt_prog_compiler_pic_CXX='+Z'
13204               ;;
13205             esac
13206             ;;
13207           *)
13208             ;;
13209         esac
13210         ;;
13211       interix*)
13212         # This is c89, which is MS Visual C++ (no shared libs)
13213         # Anyone wants to do a port?
13214         ;;
13215       irix5* | irix6* | nonstopux*)
13216         case $cc_basename in
13217           CC*)
13218             lt_prog_compiler_wl_CXX='-Wl,'
13219             lt_prog_compiler_static_CXX='-non_shared'
13220             # CC pic flag -KPIC is the default.
13221             ;;
13222           *)
13223             ;;
13224         esac
13225         ;;
13226       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13227         case $cc_basename in
13228           KCC*)
13229             # KAI C++ Compiler
13230             lt_prog_compiler_wl_CXX='--backend -Wl,'
13231             lt_prog_compiler_pic_CXX='-fPIC'
13232             ;;
13233           ecpc* )
13234             # old Intel C++ for x86_64 which still supported -KPIC.
13235             lt_prog_compiler_wl_CXX='-Wl,'
13236             lt_prog_compiler_pic_CXX='-KPIC'
13237             lt_prog_compiler_static_CXX='-static'
13238             ;;
13239           icpc* )
13240             # Intel C++, used to be incompatible with GCC.
13241             # ICC 10 doesn't accept -KPIC any more.
13242             lt_prog_compiler_wl_CXX='-Wl,'
13243             lt_prog_compiler_pic_CXX='-fPIC'
13244             lt_prog_compiler_static_CXX='-static'
13245             ;;
13246           pgCC* | pgcpp*)
13247             # Portland Group C++ compiler
13248             lt_prog_compiler_wl_CXX='-Wl,'
13249             lt_prog_compiler_pic_CXX='-fpic'
13250             lt_prog_compiler_static_CXX='-Bstatic'
13251             ;;
13252           cxx*)
13253             # Compaq C++
13254             # Make sure the PIC flag is empty.  It appears that all Alpha
13255             # Linux and Compaq Tru64 Unix objects are PIC.
13256             lt_prog_compiler_pic_CXX=
13257             lt_prog_compiler_static_CXX='-non_shared'
13258             ;;
13259           xlc* | xlC*)
13260             # IBM XL 8.0 on PPC
13261             lt_prog_compiler_wl_CXX='-Wl,'
13262             lt_prog_compiler_pic_CXX='-qpic'
13263             lt_prog_compiler_static_CXX='-qstaticlink'
13264             ;;
13265           *)
13266             case `$CC -V 2>&1 | sed 5q` in
13267             *Sun\ C*)
13268               # Sun C++ 5.9
13269               lt_prog_compiler_pic_CXX='-KPIC'
13270               lt_prog_compiler_static_CXX='-Bstatic'
13271               lt_prog_compiler_wl_CXX='-Qoption ld '
13272               ;;
13273             esac
13274             ;;
13275         esac
13276         ;;
13277       lynxos*)
13278         ;;
13279       m88k*)
13280         ;;
13281       mvs*)
13282         case $cc_basename in
13283           cxx*)
13284             lt_prog_compiler_pic_CXX='-W c,exportall'
13285             ;;
13286           *)
13287             ;;
13288         esac
13289         ;;
13290       netbsd* | netbsdelf*-gnu)
13291         ;;
13292       *qnx* | *nto*)
13293         # QNX uses GNU C++, but need to define -shared option too, otherwise
13294         # it will coredump.
13295         lt_prog_compiler_pic_CXX='-fPIC -shared'
13296         ;;
13297       osf3* | osf4* | osf5*)
13298         case $cc_basename in
13299           KCC*)
13300             lt_prog_compiler_wl_CXX='--backend -Wl,'
13301             ;;
13302           RCC*)
13303             # Rational C++ 2.4.1
13304             lt_prog_compiler_pic_CXX='-pic'
13305             ;;
13306           cxx*)
13307             # Digital/Compaq C++
13308             lt_prog_compiler_wl_CXX='-Wl,'
13309             # Make sure the PIC flag is empty.  It appears that all Alpha
13310             # Linux and Compaq Tru64 Unix objects are PIC.
13311             lt_prog_compiler_pic_CXX=
13312             lt_prog_compiler_static_CXX='-non_shared'
13313             ;;
13314           *)
13315             ;;
13316         esac
13317         ;;
13318       psos*)
13319         ;;
13320       solaris*)
13321         case $cc_basename in
13322           CC*)
13323             # Sun C++ 4.2, 5.x and Centerline C++
13324             lt_prog_compiler_pic_CXX='-KPIC'
13325             lt_prog_compiler_static_CXX='-Bstatic'
13326             lt_prog_compiler_wl_CXX='-Qoption ld '
13327             ;;
13328           gcx*)
13329             # Green Hills C++ Compiler
13330             lt_prog_compiler_pic_CXX='-PIC'
13331             ;;
13332           *)
13333             ;;
13334         esac
13335         ;;
13336       sunos4*)
13337         case $cc_basename in
13338           CC*)
13339             # Sun C++ 4.x
13340             lt_prog_compiler_pic_CXX='-pic'
13341             lt_prog_compiler_static_CXX='-Bstatic'
13342             ;;
13343           lcc*)
13344             # Lucid
13345             lt_prog_compiler_pic_CXX='-pic'
13346             ;;
13347           *)
13348             ;;
13349         esac
13350         ;;
13351       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13352         case $cc_basename in
13353           CC*)
13354             lt_prog_compiler_wl_CXX='-Wl,'
13355             lt_prog_compiler_pic_CXX='-KPIC'
13356             lt_prog_compiler_static_CXX='-Bstatic'
13357             ;;
13358         esac
13359         ;;
13360       tandem*)
13361         case $cc_basename in
13362           NCC*)
13363             # NonStop-UX NCC 3.20
13364             lt_prog_compiler_pic_CXX='-KPIC'
13365             ;;
13366           *)
13367             ;;
13368         esac
13369         ;;
13370       vxworks*)
13371         ;;
13372       *)
13373         lt_prog_compiler_can_build_shared_CXX=no
13374         ;;
13375     esac
13376   fi
13377
13378 case $host_os in
13379   # For platforms which do not support PIC, -DPIC is meaningless:
13380   *djgpp*)
13381     lt_prog_compiler_pic_CXX=
13382     ;;
13383   *)
13384     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13385     ;;
13386 esac
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13388 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13389
13390
13391
13392 #
13393 # Check to make sure the PIC flag actually works.
13394 #
13395 if test -n "$lt_prog_compiler_pic_CXX"; then
13396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13397 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13398 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13399   $as_echo_n "(cached) " >&6
13400 else
13401   lt_cv_prog_compiler_pic_works_CXX=no
13402    ac_outfile=conftest.$ac_objext
13403    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13404    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13405    # Insert the option either (1) after the last *FLAGS variable, or
13406    # (2) before a word containing "conftest.", or (3) at the end.
13407    # Note that $ac_compile itself does not contain backslashes and begins
13408    # with a dollar sign (not a hyphen), so the echo should work correctly.
13409    # The option is referenced via a variable to avoid confusing sed.
13410    lt_compile=`echo "$ac_compile" | $SED \
13411    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13413    -e 's:$: $lt_compiler_flag:'`
13414    (eval echo "\"\$as_me:13414: $lt_compile\"" >&5)
13415    (eval "$lt_compile" 2>conftest.err)
13416    ac_status=$?
13417    cat conftest.err >&5
13418    echo "$as_me:13418: \$? = $ac_status" >&5
13419    if (exit $ac_status) && test -s "$ac_outfile"; then
13420      # The compiler can only warn and ignore the option if not recognized
13421      # So say no if there are warnings other than the usual output.
13422      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13423      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13424      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13425        lt_cv_prog_compiler_pic_works_CXX=yes
13426      fi
13427    fi
13428    $RM conftest*
13429
13430 fi
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13432 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13433
13434 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13435     case $lt_prog_compiler_pic_CXX in
13436      "" | " "*) ;;
13437      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13438      esac
13439 else
13440     lt_prog_compiler_pic_CXX=
13441      lt_prog_compiler_can_build_shared_CXX=no
13442 fi
13443
13444 fi
13445
13446
13447
13448 #
13449 # Check to make sure the static flag actually works.
13450 #
13451 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13453 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13454 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13455   $as_echo_n "(cached) " >&6
13456 else
13457   lt_cv_prog_compiler_static_works_CXX=no
13458    save_LDFLAGS="$LDFLAGS"
13459    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13460    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13461    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13462      # The linker can only warn and ignore the option if not recognized
13463      # So say no if there are warnings
13464      if test -s conftest.err; then
13465        # Append any errors to the config.log.
13466        cat conftest.err 1>&5
13467        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13468        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13469        if diff conftest.exp conftest.er2 >/dev/null; then
13470          lt_cv_prog_compiler_static_works_CXX=yes
13471        fi
13472      else
13473        lt_cv_prog_compiler_static_works_CXX=yes
13474      fi
13475    fi
13476    $RM -r conftest*
13477    LDFLAGS="$save_LDFLAGS"
13478
13479 fi
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13481 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13482
13483 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13484     :
13485 else
13486     lt_prog_compiler_static_CXX=
13487 fi
13488
13489
13490
13491
13492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13493 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13494 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13495   $as_echo_n "(cached) " >&6
13496 else
13497   lt_cv_prog_compiler_c_o_CXX=no
13498    $RM -r conftest 2>/dev/null
13499    mkdir conftest
13500    cd conftest
13501    mkdir out
13502    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13503
13504    lt_compiler_flag="-o out/conftest2.$ac_objext"
13505    # Insert the option either (1) after the last *FLAGS variable, or
13506    # (2) before a word containing "conftest.", or (3) at the end.
13507    # Note that $ac_compile itself does not contain backslashes and begins
13508    # with a dollar sign (not a hyphen), so the echo should work correctly.
13509    lt_compile=`echo "$ac_compile" | $SED \
13510    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13511    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13512    -e 's:$: $lt_compiler_flag:'`
13513    (eval echo "\"\$as_me:13513: $lt_compile\"" >&5)
13514    (eval "$lt_compile" 2>out/conftest.err)
13515    ac_status=$?
13516    cat out/conftest.err >&5
13517    echo "$as_me:13517: \$? = $ac_status" >&5
13518    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13519    then
13520      # The compiler can only warn and ignore the option if not recognized
13521      # So say no if there are warnings
13522      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13523      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13524      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13525        lt_cv_prog_compiler_c_o_CXX=yes
13526      fi
13527    fi
13528    chmod u+w . 2>&5
13529    $RM conftest*
13530    # SGI C++ compiler will create directory out/ii_files/ for
13531    # template instantiation
13532    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13533    $RM out/* && rmdir out
13534    cd ..
13535    $RM -r conftest
13536    $RM conftest*
13537
13538 fi
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13540 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13541
13542
13543
13544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13545 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13546 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13547   $as_echo_n "(cached) " >&6
13548 else
13549   lt_cv_prog_compiler_c_o_CXX=no
13550    $RM -r conftest 2>/dev/null
13551    mkdir conftest
13552    cd conftest
13553    mkdir out
13554    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13555
13556    lt_compiler_flag="-o out/conftest2.$ac_objext"
13557    # Insert the option either (1) after the last *FLAGS variable, or
13558    # (2) before a word containing "conftest.", or (3) at the end.
13559    # Note that $ac_compile itself does not contain backslashes and begins
13560    # with a dollar sign (not a hyphen), so the echo should work correctly.
13561    lt_compile=`echo "$ac_compile" | $SED \
13562    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13564    -e 's:$: $lt_compiler_flag:'`
13565    (eval echo "\"\$as_me:13565: $lt_compile\"" >&5)
13566    (eval "$lt_compile" 2>out/conftest.err)
13567    ac_status=$?
13568    cat out/conftest.err >&5
13569    echo "$as_me:13569: \$? = $ac_status" >&5
13570    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13571    then
13572      # The compiler can only warn and ignore the option if not recognized
13573      # So say no if there are warnings
13574      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13575      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13576      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13577        lt_cv_prog_compiler_c_o_CXX=yes
13578      fi
13579    fi
13580    chmod u+w . 2>&5
13581    $RM conftest*
13582    # SGI C++ compiler will create directory out/ii_files/ for
13583    # template instantiation
13584    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13585    $RM out/* && rmdir out
13586    cd ..
13587    $RM -r conftest
13588    $RM conftest*
13589
13590 fi
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13592 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13593
13594
13595
13596
13597 hard_links="nottested"
13598 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13599   # do not overwrite the value of need_locks provided by the user
13600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13601 $as_echo_n "checking if we can lock with hard links... " >&6; }
13602   hard_links=yes
13603   $RM conftest*
13604   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13605   touch conftest.a
13606   ln conftest.a conftest.b 2>&5 || hard_links=no
13607   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13609 $as_echo "$hard_links" >&6; }
13610   if test "$hard_links" = no; then
13611     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13612 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13613     need_locks=warn
13614   fi
13615 else
13616   need_locks=no
13617 fi
13618
13619
13620
13621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13622 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13623
13624   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13625   case $host_os in
13626   aix[4-9]*)
13627     # If we're using GNU nm, then we don't want the "-C" option.
13628     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13629     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13630       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13631     else
13632       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'
13633     fi
13634     ;;
13635   pw32*)
13636     export_symbols_cmds_CXX="$ltdll_cmds"
13637   ;;
13638   cygwin* | mingw* | cegcc*)
13639     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13640   ;;
13641   linux* | k*bsd*-gnu)
13642     link_all_deplibs_CXX=no
13643   ;;
13644   *)
13645     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13646   ;;
13647   esac
13648   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13649
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13651 $as_echo "$ld_shlibs_CXX" >&6; }
13652 test "$ld_shlibs_CXX" = no && can_build_shared=no
13653
13654 with_gnu_ld_CXX=$with_gnu_ld
13655
13656
13657
13658
13659
13660
13661 #
13662 # Do we need to explicitly link libc?
13663 #
13664 case "x$archive_cmds_need_lc_CXX" in
13665 x|xyes)
13666   # Assume -lc should be added
13667   archive_cmds_need_lc_CXX=yes
13668
13669   if test "$enable_shared" = yes && test "$GCC" = yes; then
13670     case $archive_cmds_CXX in
13671     *'~'*)
13672       # FIXME: we may have to deal with multi-command sequences.
13673       ;;
13674     '$CC '*)
13675       # Test whether the compiler implicitly links with -lc since on some
13676       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13677       # to ld, don't add -lc before -lgcc.
13678       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13679 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13680       $RM conftest*
13681       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13682
13683       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13684   (eval $ac_compile) 2>&5
13685   ac_status=$?
13686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13687   test $ac_status = 0; } 2>conftest.err; then
13688         soname=conftest
13689         lib=conftest
13690         libobjs=conftest.$ac_objext
13691         deplibs=
13692         wl=$lt_prog_compiler_wl_CXX
13693         pic_flag=$lt_prog_compiler_pic_CXX
13694         compiler_flags=-v
13695         linker_flags=-v
13696         verstring=
13697         output_objdir=.
13698         libname=conftest
13699         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13700         allow_undefined_flag_CXX=
13701         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13702   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13703   ac_status=$?
13704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13705   test $ac_status = 0; }
13706         then
13707           archive_cmds_need_lc_CXX=no
13708         else
13709           archive_cmds_need_lc_CXX=yes
13710         fi
13711         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13712       else
13713         cat conftest.err 1>&5
13714       fi
13715       $RM conftest*
13716       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13717 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13718       ;;
13719     esac
13720   fi
13721   ;;
13722 esac
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13788 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13789
13790 library_names_spec=
13791 libname_spec='lib$name'
13792 soname_spec=
13793 shrext_cmds=".so"
13794 postinstall_cmds=
13795 postuninstall_cmds=
13796 finish_cmds=
13797 finish_eval=
13798 shlibpath_var=
13799 shlibpath_overrides_runpath=unknown
13800 version_type=none
13801 dynamic_linker="$host_os ld.so"
13802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13803 need_lib_prefix=unknown
13804 hardcode_into_libs=no
13805
13806 # when you set need_version to no, make sure it does not cause -set_version
13807 # flags to be left without arguments
13808 need_version=unknown
13809
13810 case $host_os in
13811 aix3*)
13812   version_type=linux
13813   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13814   shlibpath_var=LIBPATH
13815
13816   # AIX 3 has no versioning support, so we append a major version to the name.
13817   soname_spec='${libname}${release}${shared_ext}$major'
13818   ;;
13819
13820 aix[4-9]*)
13821   version_type=linux
13822   need_lib_prefix=no
13823   need_version=no
13824   hardcode_into_libs=yes
13825   if test "$host_cpu" = ia64; then
13826     # AIX 5 supports IA64
13827     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13828     shlibpath_var=LD_LIBRARY_PATH
13829   else
13830     # With GCC up to 2.95.x, collect2 would create an import file
13831     # for dependence libraries.  The import file would start with
13832     # the line `#! .'.  This would cause the generated library to
13833     # depend on `.', always an invalid library.  This was fixed in
13834     # development snapshots of GCC prior to 3.0.
13835     case $host_os in
13836       aix4 | aix4.[01] | aix4.[01].*)
13837       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13838            echo ' yes '
13839            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13840         :
13841       else
13842         can_build_shared=no
13843       fi
13844       ;;
13845     esac
13846     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13847     # soname into executable. Probably we can add versioning support to
13848     # collect2, so additional links can be useful in future.
13849     if test "$aix_use_runtimelinking" = yes; then
13850       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13851       # instead of lib<name>.a to let people know that these are not
13852       # typical AIX shared libraries.
13853       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13854     else
13855       # We preserve .a as extension for shared libraries through AIX4.2
13856       # and later when we are not doing run time linking.
13857       library_names_spec='${libname}${release}.a $libname.a'
13858       soname_spec='${libname}${release}${shared_ext}$major'
13859     fi
13860     shlibpath_var=LIBPATH
13861   fi
13862   ;;
13863
13864 amigaos*)
13865   case $host_cpu in
13866   powerpc)
13867     # Since July 2007 AmigaOS4 officially supports .so libraries.
13868     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13870     ;;
13871   m68k)
13872     library_names_spec='$libname.ixlibrary $libname.a'
13873     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13874     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
13875     ;;
13876   esac
13877   ;;
13878
13879 beos*)
13880   library_names_spec='${libname}${shared_ext}'
13881   dynamic_linker="$host_os ld.so"
13882   shlibpath_var=LIBRARY_PATH
13883   ;;
13884
13885 bsdi[45]*)
13886   version_type=linux
13887   need_version=no
13888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13889   soname_spec='${libname}${release}${shared_ext}$major'
13890   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13891   shlibpath_var=LD_LIBRARY_PATH
13892   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13893   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13894   # the default ld.so.conf also contains /usr/contrib/lib and
13895   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13896   # libtool to hard-code these into programs
13897   ;;
13898
13899 cygwin* | mingw* | pw32* | cegcc*)
13900   version_type=windows
13901   shrext_cmds=".dll"
13902   need_version=no
13903   need_lib_prefix=no
13904
13905   case $GCC,$host_os in
13906   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13907     library_names_spec='$libname.dll.a'
13908     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13909     postinstall_cmds='base_file=`basename \${file}`~
13910       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13911       dldir=$destdir/`dirname \$dlpath`~
13912       test -d \$dldir || mkdir -p \$dldir~
13913       $install_prog $dir/$dlname \$dldir/$dlname~
13914       chmod a+x \$dldir/$dlname~
13915       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13916         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13917       fi'
13918     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13919       dlpath=$dir/\$dldll~
13920        $RM \$dlpath'
13921     shlibpath_overrides_runpath=yes
13922
13923     case $host_os in
13924     cygwin*)
13925       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13926       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13927       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13928       ;;
13929     mingw* | cegcc*)
13930       # MinGW DLLs use traditional 'lib' prefix
13931       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13932       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13933       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13934         # It is most probably a Windows format PATH printed by
13935         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13936         # path with ; separators, and with drive letters. We can handle the
13937         # drive letters (cygwin fileutils understands them), so leave them,
13938         # especially as we might pass files found there to a mingw objdump,
13939         # which wouldn't understand a cygwinified path. Ahh.
13940         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13941       else
13942         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13943       fi
13944       ;;
13945     pw32*)
13946       # pw32 DLLs use 'pw' prefix rather than 'lib'
13947       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13948       ;;
13949     esac
13950     ;;
13951
13952   *)
13953     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13954     ;;
13955   esac
13956   dynamic_linker='Win32 ld.exe'
13957   # FIXME: first we should search . and the directory the executable is in
13958   shlibpath_var=PATH
13959   ;;
13960
13961 darwin* | rhapsody*)
13962   dynamic_linker="$host_os dyld"
13963   version_type=darwin
13964   need_lib_prefix=no
13965   need_version=no
13966   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13967   soname_spec='${libname}${release}${major}$shared_ext'
13968   shlibpath_overrides_runpath=yes
13969   shlibpath_var=DYLD_LIBRARY_PATH
13970   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13971
13972   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13973   ;;
13974
13975 dgux*)
13976   version_type=linux
13977   need_lib_prefix=no
13978   need_version=no
13979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13980   soname_spec='${libname}${release}${shared_ext}$major'
13981   shlibpath_var=LD_LIBRARY_PATH
13982   ;;
13983
13984 freebsd1*)
13985   dynamic_linker=no
13986   ;;
13987
13988 freebsd* | dragonfly*)
13989   # DragonFly does not have aout.  When/if they implement a new
13990   # versioning mechanism, adjust this.
13991   if test -x /usr/bin/objformat; then
13992     objformat=`/usr/bin/objformat`
13993   else
13994     case $host_os in
13995     freebsd[123]*) objformat=aout ;;
13996     *) objformat=elf ;;
13997     esac
13998   fi
13999   version_type=freebsd-$objformat
14000   case $version_type in
14001     freebsd-elf*)
14002       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14003       need_version=no
14004       need_lib_prefix=no
14005       ;;
14006     freebsd-*)
14007       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14008       need_version=yes
14009       ;;
14010   esac
14011   shlibpath_var=LD_LIBRARY_PATH
14012   case $host_os in
14013   freebsd2*)
14014     shlibpath_overrides_runpath=yes
14015     ;;
14016   freebsd3.[01]* | freebsdelf3.[01]*)
14017     shlibpath_overrides_runpath=yes
14018     hardcode_into_libs=yes
14019     ;;
14020   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14021   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14022     shlibpath_overrides_runpath=no
14023     hardcode_into_libs=yes
14024     ;;
14025   *) # from 4.6 on, and DragonFly
14026     shlibpath_overrides_runpath=yes
14027     hardcode_into_libs=yes
14028     ;;
14029   esac
14030   ;;
14031
14032 gnu*)
14033   version_type=linux
14034   need_lib_prefix=no
14035   need_version=no
14036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14037   soname_spec='${libname}${release}${shared_ext}$major'
14038   shlibpath_var=LD_LIBRARY_PATH
14039   hardcode_into_libs=yes
14040   ;;
14041
14042 hpux9* | hpux10* | hpux11*)
14043   # Give a soname corresponding to the major version so that dld.sl refuses to
14044   # link against other versions.
14045   version_type=sunos
14046   need_lib_prefix=no
14047   need_version=no
14048   case $host_cpu in
14049   ia64*)
14050     shrext_cmds='.so'
14051     hardcode_into_libs=yes
14052     dynamic_linker="$host_os dld.so"
14053     shlibpath_var=LD_LIBRARY_PATH
14054     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14056     soname_spec='${libname}${release}${shared_ext}$major'
14057     if test "X$HPUX_IA64_MODE" = X32; then
14058       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14059     else
14060       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14061     fi
14062     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14063     ;;
14064   hppa*64*)
14065     shrext_cmds='.sl'
14066     hardcode_into_libs=yes
14067     dynamic_linker="$host_os dld.sl"
14068     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14069     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071     soname_spec='${libname}${release}${shared_ext}$major'
14072     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14073     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14074     ;;
14075   *)
14076     shrext_cmds='.sl'
14077     dynamic_linker="$host_os dld.sl"
14078     shlibpath_var=SHLIB_PATH
14079     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081     soname_spec='${libname}${release}${shared_ext}$major'
14082     ;;
14083   esac
14084   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14085   postinstall_cmds='chmod 555 $lib'
14086   ;;
14087
14088 interix[3-9]*)
14089   version_type=linux
14090   need_lib_prefix=no
14091   need_version=no
14092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14093   soname_spec='${libname}${release}${shared_ext}$major'
14094   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14095   shlibpath_var=LD_LIBRARY_PATH
14096   shlibpath_overrides_runpath=no
14097   hardcode_into_libs=yes
14098   ;;
14099
14100 irix5* | irix6* | nonstopux*)
14101   case $host_os in
14102     nonstopux*) version_type=nonstopux ;;
14103     *)
14104         if test "$lt_cv_prog_gnu_ld" = yes; then
14105                 version_type=linux
14106         else
14107                 version_type=irix
14108         fi ;;
14109   esac
14110   need_lib_prefix=no
14111   need_version=no
14112   soname_spec='${libname}${release}${shared_ext}$major'
14113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14114   case $host_os in
14115   irix5* | nonstopux*)
14116     libsuff= shlibsuff=
14117     ;;
14118   *)
14119     case $LD in # libtool.m4 will add one of these switches to LD
14120     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14121       libsuff= shlibsuff= libmagic=32-bit;;
14122     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14123       libsuff=32 shlibsuff=N32 libmagic=N32;;
14124     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14125       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14126     *) libsuff= shlibsuff= libmagic=never-match;;
14127     esac
14128     ;;
14129   esac
14130   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14131   shlibpath_overrides_runpath=no
14132   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14133   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14134   hardcode_into_libs=yes
14135   ;;
14136
14137 # No shared lib support for Linux oldld, aout, or coff.
14138 linux*oldld* | linux*aout* | linux*coff*)
14139   dynamic_linker=no
14140   ;;
14141
14142 # This must be Linux ELF.
14143 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14144   version_type=linux
14145   need_lib_prefix=no
14146   need_version=no
14147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14148   soname_spec='${libname}${release}${shared_ext}$major'
14149   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14150   shlibpath_var=LD_LIBRARY_PATH
14151   shlibpath_overrides_runpath=no
14152   # Some binutils ld are patched to set DT_RUNPATH
14153   save_LDFLAGS=$LDFLAGS
14154   save_libdir=$libdir
14155   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14156        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h.  */
14159
14160 int
14161 main ()
14162 {
14163
14164   ;
14165   return 0;
14166 }
14167 _ACEOF
14168 if ac_fn_cxx_try_link "$LINENO"; then :
14169   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14170   shlibpath_overrides_runpath=yes
14171 fi
14172 fi
14173 rm -f core conftest.err conftest.$ac_objext \
14174     conftest$ac_exeext conftest.$ac_ext
14175   LDFLAGS=$save_LDFLAGS
14176   libdir=$save_libdir
14177
14178   # This implies no fast_install, which is unacceptable.
14179   # Some rework will be needed to allow for fast_install
14180   # before this can be enabled.
14181   hardcode_into_libs=yes
14182
14183   # Append ld.so.conf contents to the search path
14184   if test -f /etc/ld.so.conf; then
14185     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;/^$/d' | tr '\n' ' '`
14186     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14187   fi
14188
14189   # We used to test for /lib/ld.so.1 and disable shared libraries on
14190   # powerpc, because MkLinux only supported shared libraries with the
14191   # GNU dynamic linker.  Since this was broken with cross compilers,
14192   # most powerpc-linux boxes support dynamic linking these days and
14193   # people can always --disable-shared, the test was removed, and we
14194   # assume the GNU/Linux dynamic linker is in use.
14195   dynamic_linker='GNU/Linux ld.so'
14196   ;;
14197
14198 netbsdelf*-gnu)
14199   version_type=linux
14200   need_lib_prefix=no
14201   need_version=no
14202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14203   soname_spec='${libname}${release}${shared_ext}$major'
14204   shlibpath_var=LD_LIBRARY_PATH
14205   shlibpath_overrides_runpath=no
14206   hardcode_into_libs=yes
14207   dynamic_linker='NetBSD ld.elf_so'
14208   ;;
14209
14210 netbsd*)
14211   version_type=sunos
14212   need_lib_prefix=no
14213   need_version=no
14214   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14216     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14217     dynamic_linker='NetBSD (a.out) ld.so'
14218   else
14219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14220     soname_spec='${libname}${release}${shared_ext}$major'
14221     dynamic_linker='NetBSD ld.elf_so'
14222   fi
14223   shlibpath_var=LD_LIBRARY_PATH
14224   shlibpath_overrides_runpath=yes
14225   hardcode_into_libs=yes
14226   ;;
14227
14228 newsos6)
14229   version_type=linux
14230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14231   shlibpath_var=LD_LIBRARY_PATH
14232   shlibpath_overrides_runpath=yes
14233   ;;
14234
14235 *nto* | *qnx*)
14236   version_type=qnx
14237   need_lib_prefix=no
14238   need_version=no
14239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14240   soname_spec='${libname}${release}${shared_ext}$major'
14241   shlibpath_var=LD_LIBRARY_PATH
14242   shlibpath_overrides_runpath=no
14243   hardcode_into_libs=yes
14244   dynamic_linker='ldqnx.so'
14245   ;;
14246
14247 openbsd*)
14248   version_type=sunos
14249   sys_lib_dlsearch_path_spec="/usr/lib"
14250   need_lib_prefix=no
14251   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14252   case $host_os in
14253     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14254     *)                          need_version=no  ;;
14255   esac
14256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14257   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14258   shlibpath_var=LD_LIBRARY_PATH
14259   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14260     case $host_os in
14261       openbsd2.[89] | openbsd2.[89].*)
14262         shlibpath_overrides_runpath=no
14263         ;;
14264       *)
14265         shlibpath_overrides_runpath=yes
14266         ;;
14267       esac
14268   else
14269     shlibpath_overrides_runpath=yes
14270   fi
14271   ;;
14272
14273 os2*)
14274   libname_spec='$name'
14275   shrext_cmds=".dll"
14276   need_lib_prefix=no
14277   library_names_spec='$libname${shared_ext} $libname.a'
14278   dynamic_linker='OS/2 ld.exe'
14279   shlibpath_var=LIBPATH
14280   ;;
14281
14282 osf3* | osf4* | osf5*)
14283   version_type=osf
14284   need_lib_prefix=no
14285   need_version=no
14286   soname_spec='${libname}${release}${shared_ext}$major'
14287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14288   shlibpath_var=LD_LIBRARY_PATH
14289   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14290   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14291   ;;
14292
14293 rdos*)
14294   dynamic_linker=no
14295   ;;
14296
14297 solaris*)
14298   version_type=linux
14299   need_lib_prefix=no
14300   need_version=no
14301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302   soname_spec='${libname}${release}${shared_ext}$major'
14303   shlibpath_var=LD_LIBRARY_PATH
14304   shlibpath_overrides_runpath=yes
14305   hardcode_into_libs=yes
14306   # ldd complains unless libraries are executable
14307   postinstall_cmds='chmod +x $lib'
14308   ;;
14309
14310 sunos4*)
14311   version_type=sunos
14312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14313   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14314   shlibpath_var=LD_LIBRARY_PATH
14315   shlibpath_overrides_runpath=yes
14316   if test "$with_gnu_ld" = yes; then
14317     need_lib_prefix=no
14318   fi
14319   need_version=yes
14320   ;;
14321
14322 sysv4 | sysv4.3*)
14323   version_type=linux
14324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14325   soname_spec='${libname}${release}${shared_ext}$major'
14326   shlibpath_var=LD_LIBRARY_PATH
14327   case $host_vendor in
14328     sni)
14329       shlibpath_overrides_runpath=no
14330       need_lib_prefix=no
14331       runpath_var=LD_RUN_PATH
14332       ;;
14333     siemens)
14334       need_lib_prefix=no
14335       ;;
14336     motorola)
14337       need_lib_prefix=no
14338       need_version=no
14339       shlibpath_overrides_runpath=no
14340       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14341       ;;
14342   esac
14343   ;;
14344
14345 sysv4*MP*)
14346   if test -d /usr/nec ;then
14347     version_type=linux
14348     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14349     soname_spec='$libname${shared_ext}.$major'
14350     shlibpath_var=LD_LIBRARY_PATH
14351   fi
14352   ;;
14353
14354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14355   version_type=freebsd-elf
14356   need_lib_prefix=no
14357   need_version=no
14358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14359   soname_spec='${libname}${release}${shared_ext}$major'
14360   shlibpath_var=LD_LIBRARY_PATH
14361   shlibpath_overrides_runpath=yes
14362   hardcode_into_libs=yes
14363   if test "$with_gnu_ld" = yes; then
14364     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14365   else
14366     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14367     case $host_os in
14368       sco3.2v5*)
14369         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14370         ;;
14371     esac
14372   fi
14373   sys_lib_dlsearch_path_spec='/usr/lib'
14374   ;;
14375
14376 tpf*)
14377   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14378   version_type=linux
14379   need_lib_prefix=no
14380   need_version=no
14381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14382   shlibpath_var=LD_LIBRARY_PATH
14383   shlibpath_overrides_runpath=no
14384   hardcode_into_libs=yes
14385   ;;
14386
14387 uts4*)
14388   version_type=linux
14389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390   soname_spec='${libname}${release}${shared_ext}$major'
14391   shlibpath_var=LD_LIBRARY_PATH
14392   ;;
14393
14394 *)
14395   dynamic_linker=no
14396   ;;
14397 esac
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14399 $as_echo "$dynamic_linker" >&6; }
14400 test "$dynamic_linker" = no && can_build_shared=no
14401
14402 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14403 if test "$GCC" = yes; then
14404   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14405 fi
14406
14407 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14408   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14409 fi
14410 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14411   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14412 fi
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14450 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14451 hardcode_action_CXX=
14452 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14453    test -n "$runpath_var_CXX" ||
14454    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14455
14456   # We can hardcode non-existent directories.
14457   if test "$hardcode_direct_CXX" != no &&
14458      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14459      # have to relink, otherwise we might link with an installed library
14460      # when we should be linking with a yet-to-be-installed one
14461      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14462      test "$hardcode_minus_L_CXX" != no; then
14463     # Linking always hardcodes the temporary library directory.
14464     hardcode_action_CXX=relink
14465   else
14466     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14467     hardcode_action_CXX=immediate
14468   fi
14469 else
14470   # We cannot hardcode anything, or else we can only hardcode existing
14471   # directories.
14472   hardcode_action_CXX=unsupported
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14475 $as_echo "$hardcode_action_CXX" >&6; }
14476
14477 if test "$hardcode_action_CXX" = relink ||
14478    test "$inherit_rpath_CXX" = yes; then
14479   # Fast installation is not supported
14480   enable_fast_install=no
14481 elif test "$shlibpath_overrides_runpath" = yes ||
14482      test "$enable_shared" = no; then
14483   # Fast installation is not necessary
14484   enable_fast_install=needless
14485 fi
14486
14487
14488
14489
14490
14491
14492
14493   fi # test -n "$compiler"
14494
14495   CC=$lt_save_CC
14496   LDCXX=$LD
14497   LD=$lt_save_LD
14498   GCC=$lt_save_GCC
14499   with_gnu_ld=$lt_save_with_gnu_ld
14500   lt_cv_path_LDCXX=$lt_cv_path_LD
14501   lt_cv_path_LD=$lt_save_path_LD
14502   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14503   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14504 fi # test "$_lt_caught_CXX_error" != yes
14505
14506 ac_ext=c
14507 ac_cpp='$CPP $CPPFLAGS'
14508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14511
14512
14513 # Find a good install program.  We prefer a C program (faster),
14514 # so one script is as good as another.  But avoid the broken or
14515 # incompatible versions:
14516 # SysV /etc/install, /usr/sbin/install
14517 # SunOS /usr/etc/install
14518 # IRIX /sbin/install
14519 # AIX /bin/install
14520 # AmigaOS /C/install, which installs bootblocks on floppy discs
14521 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14524 # OS/2's system install, which has a completely different semantic
14525 # ./install, which can be erroneously created by make from ./install.sh.
14526 # Reject install programs that cannot install multiple files.
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14528 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14529 if test -z "$INSTALL"; then
14530 if ${ac_cv_path_install+:} false; then :
14531   $as_echo_n "(cached) " >&6
14532 else
14533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534 for as_dir in $PATH
14535 do
14536   IFS=$as_save_IFS
14537   test -z "$as_dir" && as_dir=.
14538     # Account for people who put trailing slashes in PATH elements.
14539 case $as_dir/ in #((
14540   ./ | .// | /[cC]/* | \
14541   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14542   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14543   /usr/ucb/* ) ;;
14544   *)
14545     # OSF1 and SCO ODT 3.0 have their own names for install.
14546     # Don't use installbsd from OSF since it installs stuff as root
14547     # by default.
14548     for ac_prog in ginstall scoinst install; do
14549       for ac_exec_ext in '' $ac_executable_extensions; do
14550         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14551           if test $ac_prog = install &&
14552             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14553             # AIX install.  It has an incompatible calling convention.
14554             :
14555           elif test $ac_prog = install &&
14556             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14557             # program-specific install script used by HP pwplus--don't use.
14558             :
14559           else
14560             rm -rf conftest.one conftest.two conftest.dir
14561             echo one > conftest.one
14562             echo two > conftest.two
14563             mkdir conftest.dir
14564             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14565               test -s conftest.one && test -s conftest.two &&
14566               test -s conftest.dir/conftest.one &&
14567               test -s conftest.dir/conftest.two
14568             then
14569               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14570               break 3
14571             fi
14572           fi
14573         fi
14574       done
14575     done
14576     ;;
14577 esac
14578
14579   done
14580 IFS=$as_save_IFS
14581
14582 rm -rf conftest.one conftest.two conftest.dir
14583
14584 fi
14585   if test "${ac_cv_path_install+set}" = set; then
14586     INSTALL=$ac_cv_path_install
14587   else
14588     # As a last resort, use the slow shell script.  Don't cache a
14589     # value for INSTALL within a source directory, because that will
14590     # break other packages using the cache if that directory is
14591     # removed, or if the value is a relative name.
14592     INSTALL=$ac_install_sh
14593   fi
14594 fi
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14596 $as_echo "$INSTALL" >&6; }
14597
14598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14599 # It thinks the first close brace ends the variable substitution.
14600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14601
14602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14603
14604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14605
14606
14607 if test "$GCC" = yes ; then
14608                         OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
14609     CFLAGS="$OLDCFLAGS -fexceptions"
14610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
14611 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
14612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h.  */
14614
14615 int
14616 main ()
14617 {
14618
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 if ac_fn_c_try_link "$LINENO"; then :
14624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14625 $as_echo "yes" >&6; }
14626 else
14627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14628 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
14629 fi
14630 rm -f core conftest.err conftest.$ac_objext \
14631     conftest$ac_exeext conftest.$ac_ext
14632     CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
14633 fi
14634
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14636 $as_echo_n "checking for ANSI C header files... " >&6; }
14637 if ${ac_cv_header_stdc+:} false; then :
14638   $as_echo_n "(cached) " >&6
14639 else
14640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h.  */
14642 #include <stdlib.h>
14643 #include <stdarg.h>
14644 #include <string.h>
14645 #include <float.h>
14646
14647 int
14648 main ()
14649 {
14650
14651   ;
14652   return 0;
14653 }
14654 _ACEOF
14655 if ac_fn_c_try_compile "$LINENO"; then :
14656   ac_cv_header_stdc=yes
14657 else
14658   ac_cv_header_stdc=no
14659 fi
14660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661
14662 if test $ac_cv_header_stdc = yes; then
14663   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h.  */
14666 #include <string.h>
14667
14668 _ACEOF
14669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14670   $EGREP "memchr" >/dev/null 2>&1; then :
14671
14672 else
14673   ac_cv_header_stdc=no
14674 fi
14675 rm -f conftest*
14676
14677 fi
14678
14679 if test $ac_cv_header_stdc = yes; then
14680   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h.  */
14683 #include <stdlib.h>
14684
14685 _ACEOF
14686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14687   $EGREP "free" >/dev/null 2>&1; then :
14688
14689 else
14690   ac_cv_header_stdc=no
14691 fi
14692 rm -f conftest*
14693
14694 fi
14695
14696 if test $ac_cv_header_stdc = yes; then
14697   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14698   if test "$cross_compiling" = yes; then :
14699   :
14700 else
14701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h.  */
14703 #include <ctype.h>
14704 #include <stdlib.h>
14705 #if ((' ' & 0x0FF) == 0x020)
14706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14708 #else
14709 # define ISLOWER(c) \
14710                    (('a' <= (c) && (c) <= 'i') \
14711                      || ('j' <= (c) && (c) <= 'r') \
14712                      || ('s' <= (c) && (c) <= 'z'))
14713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14714 #endif
14715
14716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14717 int
14718 main ()
14719 {
14720   int i;
14721   for (i = 0; i < 256; i++)
14722     if (XOR (islower (i), ISLOWER (i))
14723         || toupper (i) != TOUPPER (i))
14724       return 2;
14725   return 0;
14726 }
14727 _ACEOF
14728 if ac_fn_c_try_run "$LINENO"; then :
14729
14730 else
14731   ac_cv_header_stdc=no
14732 fi
14733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14734   conftest.$ac_objext conftest.beam conftest.$ac_ext
14735 fi
14736
14737 fi
14738 fi
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14740 $as_echo "$ac_cv_header_stdc" >&6; }
14741 if test $ac_cv_header_stdc = yes; then
14742
14743 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14744
14745 fi
14746
14747
14748
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14750 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14751 if ${ac_cv_c_bigendian+:} false; then :
14752   $as_echo_n "(cached) " >&6
14753 else
14754   ac_cv_c_bigendian=unknown
14755 # See if sys/param.h defines the BYTE_ORDER macro.
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h.  */
14758 #include <sys/types.h>
14759 #include <sys/param.h>
14760 int
14761 main ()
14762 {
14763
14764 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14765  bogus endian macros
14766 #endif
14767   ;
14768   return 0;
14769 }
14770 _ACEOF
14771 if ac_fn_c_try_compile "$LINENO"; then :
14772   # It does; now see whether it defined to BIG_ENDIAN or not.
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h.  */
14775 #include <sys/types.h>
14776 #include <sys/param.h>
14777 int
14778 main ()
14779 {
14780
14781 #if BYTE_ORDER != BIG_ENDIAN
14782  not big endian
14783 #endif
14784   ;
14785   return 0;
14786 }
14787 _ACEOF
14788 if ac_fn_c_try_compile "$LINENO"; then :
14789   ac_cv_c_bigendian=yes
14790 else
14791   ac_cv_c_bigendian=no
14792 fi
14793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794 fi
14795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14796 if test $ac_cv_c_bigendian = unknown; then
14797 if test "$cross_compiling" = yes; then :
14798    echo $ac_n "cross-compiling... " 2>&6
14799 else
14800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h.  */
14802 main () {
14803   /* Are we little or big endian?  From Harbison&Steele.  */
14804   union
14805   {
14806     long l;
14807     char c[sizeof (long)];
14808   } u;
14809   u.l = 1;
14810   exit (u.c[sizeof (long) - 1] == 1);
14811 }
14812 _ACEOF
14813 if ac_fn_c_try_run "$LINENO"; then :
14814   ac_cv_c_bigendian=no
14815 else
14816   ac_cv_c_bigendian=yes
14817 fi
14818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14819   conftest.$ac_objext conftest.beam conftest.$ac_ext
14820 fi
14821
14822 fi
14823 fi
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14825 $as_echo "$ac_cv_c_bigendian" >&6; }
14826 if test $ac_cv_c_bigendian = unknown; then
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
14828 $as_echo_n "checking to probe for byte ordering... " >&6; }
14829
14830 cat >conftest.c <<EOF
14831 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14832 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14833 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
14834 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14835 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14836 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
14837 int main() { _ascii (); _ebcdic (); return 0; }
14838 EOF
14839  if test -f conftest.c ; then
14840      if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
14841         if test `grep -l BIGenDianSyS conftest.o` ; then
14842            echo $ac_n ' big endian probe OK, ' 1>&6
14843            ac_cv_c_bigendian=yes
14844         fi
14845         if test `grep -l LiTTleEnDian conftest.o` ; then
14846            echo $ac_n ' little endian probe OK, ' 1>&6
14847            if test $ac_cv_c_bigendian = yes ; then
14848             ac_cv_c_bigendian=unknown;
14849            else
14850             ac_cv_c_bigendian=no
14851            fi
14852         fi
14853         echo $ac_n 'guessing bigendian ...  ' >&6
14854      fi
14855   fi
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14857 $as_echo "$ac_cv_c_bigendian" >&6; }
14858 fi
14859 if test $ac_cv_c_bigendian = yes; then
14860
14861 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14862
14863   BYTEORDER=4321
14864 else
14865   BYTEORDER=1234
14866 fi
14867
14868 cat >>confdefs.h <<_ACEOF
14869 #define BYTEORDER $BYTEORDER
14870 _ACEOF
14871
14872 if test $ac_cv_c_bigendian = unknown; then
14873   as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
14874 fi
14875
14876
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14878 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14879 if ${ac_cv_c_const+:} false; then :
14880   $as_echo_n "(cached) " >&6
14881 else
14882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h.  */
14884
14885 int
14886 main ()
14887 {
14888
14889 #ifndef __cplusplus
14890   /* Ultrix mips cc rejects this sort of thing.  */
14891   typedef int charset[2];
14892   const charset cs = { 0, 0 };
14893   /* SunOS 4.1.1 cc rejects this.  */
14894   char const *const *pcpcc;
14895   char **ppc;
14896   /* NEC SVR4.0.2 mips cc rejects this.  */
14897   struct point {int x, y;};
14898   static struct point const zero = {0,0};
14899   /* AIX XL C 1.02.0.0 rejects this.
14900      It does not let you subtract one const X* pointer from another in
14901      an arm of an if-expression whose if-part is not a constant
14902      expression */
14903   const char *g = "string";
14904   pcpcc = &g + (g ? g-g : 0);
14905   /* HPUX 7.0 cc rejects these. */
14906   ++pcpcc;
14907   ppc = (char**) pcpcc;
14908   pcpcc = (char const *const *) ppc;
14909   { /* SCO 3.2v4 cc rejects this sort of thing.  */
14910     char tx;
14911     char *t = &tx;
14912     char const *s = 0 ? (char *) 0 : (char const *) 0;
14913
14914     *t++ = 0;
14915     if (s) return 0;
14916   }
14917   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14918     int x[] = {25, 17};
14919     const int *foo = &x[0];
14920     ++foo;
14921   }
14922   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14923     typedef const int *iptr;
14924     iptr p = 0;
14925     ++p;
14926   }
14927   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14928        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14929     struct s { int j; const int *ap[3]; } bx;
14930     struct s *b = &bx; b->j = 5;
14931   }
14932   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14933     const int foo = 10;
14934     if (!foo) return 0;
14935   }
14936   return !cs[0] && !zero.x;
14937 #endif
14938
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 if ac_fn_c_try_compile "$LINENO"; then :
14944   ac_cv_c_const=yes
14945 else
14946   ac_cv_c_const=no
14947 fi
14948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949 fi
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14951 $as_echo "$ac_cv_c_const" >&6; }
14952 if test $ac_cv_c_const = no; then
14953
14954 $as_echo "#define const /**/" >>confdefs.h
14955
14956 fi
14957
14958 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14959 if test "x$ac_cv_type_size_t" = xyes; then :
14960
14961 else
14962
14963 cat >>confdefs.h <<_ACEOF
14964 #define size_t unsigned int
14965 _ACEOF
14966
14967 fi
14968
14969 for ac_func in memmove bcopy
14970 do :
14971   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14972 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14973 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14974   cat >>confdefs.h <<_ACEOF
14975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14976 _ACEOF
14977
14978 fi
14979 done
14980
14981
14982 for ac_header in fcntl.h unistd.h
14983 do :
14984   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14985 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14987   cat >>confdefs.h <<_ACEOF
14988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14989 _ACEOF
14990
14991 fi
14992
14993 done
14994
14995 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14996 if test "x$ac_cv_type_off_t" = xyes; then :
14997
14998 else
14999
15000 cat >>confdefs.h <<_ACEOF
15001 #define off_t long int
15002 _ACEOF
15003
15004 fi
15005
15006
15007
15008
15009   for ac_header in $ac_header_list
15010 do :
15011   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15012 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15013 "
15014 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15015   cat >>confdefs.h <<_ACEOF
15016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15017 _ACEOF
15018
15019 fi
15020
15021 done
15022
15023
15024
15025
15026
15027
15028
15029
15030 for ac_func in getpagesize
15031 do :
15032   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15033 if test "x$ac_cv_func_getpagesize" = xyes; then :
15034   cat >>confdefs.h <<_ACEOF
15035 #define HAVE_GETPAGESIZE 1
15036 _ACEOF
15037
15038 fi
15039 done
15040
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15042 $as_echo_n "checking for working mmap... " >&6; }
15043 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15044   $as_echo_n "(cached) " >&6
15045 else
15046   if test "$cross_compiling" = yes; then :
15047   ac_cv_func_mmap_fixed_mapped=no
15048 else
15049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h.  */
15051 $ac_includes_default
15052 /* malloc might have been renamed as rpl_malloc. */
15053 #undef malloc
15054
15055 /* Thanks to Mike Haertel and Jim Avera for this test.
15056    Here is a matrix of mmap possibilities:
15057         mmap private not fixed
15058         mmap private fixed at somewhere currently unmapped
15059         mmap private fixed at somewhere already mapped
15060         mmap shared not fixed
15061         mmap shared fixed at somewhere currently unmapped
15062         mmap shared fixed at somewhere already mapped
15063    For private mappings, we should verify that changes cannot be read()
15064    back from the file, nor mmap's back from the file at a different
15065    address.  (There have been systems where private was not correctly
15066    implemented like the infamous i386 svr4.0, and systems where the
15067    VM page cache was not coherent with the file system buffer cache
15068    like early versions of FreeBSD and possibly contemporary NetBSD.)
15069    For shared mappings, we should conversely verify that changes get
15070    propagated back to all the places they're supposed to be.
15071
15072    Grep wants private fixed already mapped.
15073    The main things grep needs to know about mmap are:
15074    * does it exist and is it safe to write into the mmap'd area
15075    * how to use it (BSD variants)  */
15076
15077 #include <fcntl.h>
15078 #include <sys/mman.h>
15079
15080 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15081 char *malloc ();
15082 #endif
15083
15084 /* This mess was copied from the GNU getpagesize.h.  */
15085 #ifndef HAVE_GETPAGESIZE
15086 # ifdef _SC_PAGESIZE
15087 #  define getpagesize() sysconf(_SC_PAGESIZE)
15088 # else /* no _SC_PAGESIZE */
15089 #  ifdef HAVE_SYS_PARAM_H
15090 #   include <sys/param.h>
15091 #   ifdef EXEC_PAGESIZE
15092 #    define getpagesize() EXEC_PAGESIZE
15093 #   else /* no EXEC_PAGESIZE */
15094 #    ifdef NBPG
15095 #     define getpagesize() NBPG * CLSIZE
15096 #     ifndef CLSIZE
15097 #      define CLSIZE 1
15098 #     endif /* no CLSIZE */
15099 #    else /* no NBPG */
15100 #     ifdef NBPC
15101 #      define getpagesize() NBPC
15102 #     else /* no NBPC */
15103 #      ifdef PAGESIZE
15104 #       define getpagesize() PAGESIZE
15105 #      endif /* PAGESIZE */
15106 #     endif /* no NBPC */
15107 #    endif /* no NBPG */
15108 #   endif /* no EXEC_PAGESIZE */
15109 #  else /* no HAVE_SYS_PARAM_H */
15110 #   define getpagesize() 8192   /* punt totally */
15111 #  endif /* no HAVE_SYS_PARAM_H */
15112 # endif /* no _SC_PAGESIZE */
15113
15114 #endif /* no HAVE_GETPAGESIZE */
15115
15116 int
15117 main ()
15118 {
15119   char *data, *data2, *data3;
15120   const char *cdata2;
15121   int i, pagesize;
15122   int fd, fd2;
15123
15124   pagesize = getpagesize ();
15125
15126   /* First, make a file with some known garbage in it. */
15127   data = (char *) malloc (pagesize);
15128   if (!data)
15129     return 1;
15130   for (i = 0; i < pagesize; ++i)
15131     *(data + i) = rand ();
15132   umask (0);
15133   fd = creat ("conftest.mmap", 0600);
15134   if (fd < 0)
15135     return 2;
15136   if (write (fd, data, pagesize) != pagesize)
15137     return 3;
15138   close (fd);
15139
15140   /* Next, check that the tail of a page is zero-filled.  File must have
15141      non-zero length, otherwise we risk SIGBUS for entire page.  */
15142   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15143   if (fd2 < 0)
15144     return 4;
15145   cdata2 = "";
15146   if (write (fd2, cdata2, 1) != 1)
15147     return 5;
15148   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15149   if (data2 == MAP_FAILED)
15150     return 6;
15151   for (i = 0; i < pagesize; ++i)
15152     if (*(data2 + i))
15153       return 7;
15154   close (fd2);
15155   if (munmap (data2, pagesize))
15156     return 8;
15157
15158   /* Next, try to mmap the file at a fixed address which already has
15159      something else allocated at it.  If we can, also make sure that
15160      we see the same garbage.  */
15161   fd = open ("conftest.mmap", O_RDWR);
15162   if (fd < 0)
15163     return 9;
15164   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15165                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15166     return 10;
15167   for (i = 0; i < pagesize; ++i)
15168     if (*(data + i) != *(data2 + i))
15169       return 11;
15170
15171   /* Finally, make sure that changes to the mapped area do not
15172      percolate back to the file as seen by read().  (This is a bug on
15173      some variants of i386 svr4.0.)  */
15174   for (i = 0; i < pagesize; ++i)
15175     *(data2 + i) = *(data2 + i) + 1;
15176   data3 = (char *) malloc (pagesize);
15177   if (!data3)
15178     return 12;
15179   if (read (fd, data3, pagesize) != pagesize)
15180     return 13;
15181   for (i = 0; i < pagesize; ++i)
15182     if (*(data + i) != *(data3 + i))
15183       return 14;
15184   close (fd);
15185   return 0;
15186 }
15187 _ACEOF
15188 if ac_fn_c_try_run "$LINENO"; then :
15189   ac_cv_func_mmap_fixed_mapped=yes
15190 else
15191   ac_cv_func_mmap_fixed_mapped=no
15192 fi
15193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15194   conftest.$ac_objext conftest.beam conftest.$ac_ext
15195 fi
15196
15197 fi
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15199 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15200 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15201
15202 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15203
15204 fi
15205 rm -f conftest.mmap conftest.txt
15206
15207
15208 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
15209     FILEMAP=unixfilemap
15210 else
15211     FILEMAP=readfilemap
15212 fi
15213
15214
15215
15216 # AC_CPP_FUNC
15217 # ------------------ #
15218 # Checks to see if ANSI C99 CPP variable __func__ works.
15219 # If not, perhaps __FUNCTION__ works instead.
15220 # If not, we'll just define __func__ to "".
15221 # AC_CPP_FUNC
15222
15223    case $ac_cv_prog_cc_stdc in #(
15224   no) :
15225     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
15226   *) :
15227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
15228 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
15229 if ${ac_cv_prog_cc_c99+:} false; then :
15230   $as_echo_n "(cached) " >&6
15231 else
15232   ac_cv_prog_cc_c99=no
15233 ac_save_CC=$CC
15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h.  */
15236 #include <stdarg.h>
15237 #include <stdbool.h>
15238 #include <stdlib.h>
15239 #include <wchar.h>
15240 #include <stdio.h>
15241
15242 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
15243 #define debug(...) fprintf (stderr, __VA_ARGS__)
15244 #define showlist(...) puts (#__VA_ARGS__)
15245 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
15246 static void
15247 test_varargs_macros (void)
15248 {
15249   int x = 1234;
15250   int y = 5678;
15251   debug ("Flag");
15252   debug ("X = %d\n", x);
15253   showlist (The first, second, and third items.);
15254   report (x>y, "x is %d but y is %d", x, y);
15255 }
15256
15257 // Check long long types.
15258 #define BIG64 18446744073709551615ull
15259 #define BIG32 4294967295ul
15260 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
15261 #if !BIG_OK
15262   your preprocessor is broken;
15263 #endif
15264 #if BIG_OK
15265 #else
15266   your preprocessor is broken;
15267 #endif
15268 static long long int bignum = -9223372036854775807LL;
15269 static unsigned long long int ubignum = BIG64;
15270
15271 struct incomplete_array
15272 {
15273   int datasize;
15274   double data[];
15275 };
15276
15277 struct named_init {
15278   int number;
15279   const wchar_t *name;
15280   double average;
15281 };
15282
15283 typedef const char *ccp;
15284
15285 static inline int
15286 test_restrict (ccp restrict text)
15287 {
15288   // See if C++-style comments work.
15289   // Iterate through items via the restricted pointer.
15290   // Also check for declarations in for loops.
15291   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
15292     continue;
15293   return 0;
15294 }
15295
15296 // Check varargs and va_copy.
15297 static void
15298 test_varargs (const char *format, ...)
15299 {
15300   va_list args;
15301   va_start (args, format);
15302   va_list args_copy;
15303   va_copy (args_copy, args);
15304
15305   const char *str;
15306   int number;
15307   float fnumber;
15308
15309   while (*format)
15310     {
15311       switch (*format++)
15312         {
15313         case 's': // string
15314           str = va_arg (args_copy, const char *);
15315           break;
15316         case 'd': // int
15317           number = va_arg (args_copy, int);
15318           break;
15319         case 'f': // float
15320           fnumber = va_arg (args_copy, double);
15321           break;
15322         default:
15323           break;
15324         }
15325     }
15326   va_end (args_copy);
15327   va_end (args);
15328 }
15329
15330 int
15331 main ()
15332 {
15333
15334   // Check bool.
15335   _Bool success = false;
15336
15337   // Check restrict.
15338   if (test_restrict ("String literal") == 0)
15339     success = true;
15340   char *restrict newvar = "Another string";
15341
15342   // Check varargs.
15343   test_varargs ("s, d' f .", "string", 65, 34.234);
15344   test_varargs_macros ();
15345
15346   // Check flexible array members.
15347   struct incomplete_array *ia =
15348     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
15349   ia->datasize = 10;
15350   for (int i = 0; i < ia->datasize; ++i)
15351     ia->data[i] = i * 1.234;
15352
15353   // Check named initializers.
15354   struct named_init ni = {
15355     .number = 34,
15356     .name = L"Test wide string",
15357     .average = 543.34343,
15358   };
15359
15360   ni.number = 58;
15361
15362   int dynamic_array[ni.number];
15363   dynamic_array[ni.number - 1] = 543;
15364
15365   // work around unused variable warnings
15366   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
15367           || dynamic_array[ni.number - 1] != 543);
15368
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
15374 do
15375   CC="$ac_save_CC $ac_arg"
15376   if ac_fn_c_try_compile "$LINENO"; then :
15377   ac_cv_prog_cc_c99=$ac_arg
15378 fi
15379 rm -f core conftest.err conftest.$ac_objext
15380   test "x$ac_cv_prog_cc_c99" != "xno" && break
15381 done
15382 rm -f conftest.$ac_ext
15383 CC=$ac_save_CC
15384
15385 fi
15386 # AC_CACHE_VAL
15387 case "x$ac_cv_prog_cc_c99" in
15388   x)
15389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15390 $as_echo "none needed" >&6; } ;;
15391   xno)
15392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15393 $as_echo "unsupported" >&6; } ;;
15394   *)
15395     CC="$CC $ac_cv_prog_cc_c99"
15396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15397 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
15398 esac
15399 if test "x$ac_cv_prog_cc_c99" != xno; then :
15400   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15401 else
15402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
15403 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15404 if ${ac_cv_prog_cc_c89+:} false; then :
15405   $as_echo_n "(cached) " >&6
15406 else
15407   ac_cv_prog_cc_c89=no
15408 ac_save_CC=$CC
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h.  */
15411 #include <stdarg.h>
15412 #include <stdio.h>
15413 struct stat;
15414 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
15415 struct buf { int x; };
15416 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15417 static char *e (p, i)
15418      char **p;
15419      int i;
15420 {
15421   return p[i];
15422 }
15423 static char *f (char * (*g) (char **, int), char **p, ...)
15424 {
15425   char *s;
15426   va_list v;
15427   va_start (v,p);
15428   s = g (p, va_arg (v,int));
15429   va_end (v);
15430   return s;
15431 }
15432
15433 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
15434    function prototypes and stuff, but not '\xHH' hex character constants.
15435    These don't provoke an error unfortunately, instead are silently treated
15436    as 'x'.  The following induces an error, until -std is added to get
15437    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
15438    array size at least.  It's necessary to write '\x00'==0 to get something
15439    that's true only with -std.  */
15440 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15441
15442 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15443    inside strings and character constants.  */
15444 #define FOO(x) 'x'
15445 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15446
15447 int test (int i, double x);
15448 struct s1 {int (*f) (int a);};
15449 struct s2 {int (*f) (double a);};
15450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15451 int argc;
15452 char **argv;
15453 int
15454 main ()
15455 {
15456 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
15457   ;
15458   return 0;
15459 }
15460 _ACEOF
15461 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15462         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15463 do
15464   CC="$ac_save_CC $ac_arg"
15465   if ac_fn_c_try_compile "$LINENO"; then :
15466   ac_cv_prog_cc_c89=$ac_arg
15467 fi
15468 rm -f core conftest.err conftest.$ac_objext
15469   test "x$ac_cv_prog_cc_c89" != "xno" && break
15470 done
15471 rm -f conftest.$ac_ext
15472 CC=$ac_save_CC
15473
15474 fi
15475 # AC_CACHE_VAL
15476 case "x$ac_cv_prog_cc_c89" in
15477   x)
15478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15479 $as_echo "none needed" >&6; } ;;
15480   xno)
15481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15482 $as_echo "unsupported" >&6; } ;;
15483   *)
15484     CC="$CC $ac_cv_prog_cc_c89"
15485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15486 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15487 esac
15488 if test "x$ac_cv_prog_cc_c89" != xno; then :
15489   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15490 else
15491   ac_cv_prog_cc_stdc=no
15492 fi
15493
15494 fi
15495  ;;
15496 esac
15497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
15498 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
15499   if ${ac_cv_prog_cc_stdc+:} false; then :
15500   $as_echo_n "(cached) " >&6
15501 fi
15502
15503   case $ac_cv_prog_cc_stdc in #(
15504   no) :
15505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15506 $as_echo "unsupported" >&6; } ;; #(
15507   '') :
15508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15509 $as_echo "none needed" >&6; } ;; #(
15510   *) :
15511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
15512 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
15513 esac
15514
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
15516 $as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
15517 if ${ac_cv_cpp_func+:} false; then :
15518   $as_echo_n "(cached) " >&6
15519 else
15520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521 /* end confdefs.h.  */
15522
15523 int
15524 main ()
15525 {
15526 char *foo = __func__;
15527   ;
15528   return 0;
15529 }
15530 _ACEOF
15531 if ac_fn_c_try_compile "$LINENO"; then :
15532   ac_cv_cpp_func=yes
15533 else
15534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535 /* end confdefs.h.  */
15536
15537 int
15538 main ()
15539 {
15540 char *foo = __FUNCTION__;
15541   ;
15542   return 0;
15543 }
15544 _ACEOF
15545 if ac_fn_c_try_compile "$LINENO"; then :
15546   ac_cv_cpp_func=__FUNCTION__
15547 else
15548   ac_cv_cpp_func=no
15549 fi
15550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551 fi
15552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15553 fi
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
15555 $as_echo "$ac_cv_cpp_func" >&6; }
15556 if test $ac_cv_cpp_func = __FUNCTION__; then
15557
15558 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
15559
15560 elif test $ac_cv_cpp_func = no; then
15561
15562 $as_echo "#define __func__ \"\"" >>confdefs.h
15563
15564 fi
15565
15566
15567
15568
15569 $as_echo "#define XML_NS 1" >>confdefs.h
15570
15571
15572 $as_echo "#define XML_DTD 1" >>confdefs.h
15573
15574
15575 $as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h
15576
15577
15578 ac_config_files="$ac_config_files Makefile expat.pc"
15579
15580 cat >confcache <<\_ACEOF
15581 # This file is a shell script that caches the results of configure
15582 # tests run on this system so they can be shared between configure
15583 # scripts and configure runs, see configure's option --config-cache.
15584 # It is not useful on other systems.  If it contains results you don't
15585 # want to keep, you may remove or edit it.
15586 #
15587 # config.status only pays attention to the cache file if you give it
15588 # the --recheck option to rerun configure.
15589 #
15590 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15591 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15592 # following values.
15593
15594 _ACEOF
15595
15596 # The following way of writing the cache mishandles newlines in values,
15597 # but we know of no workaround that is simple, portable, and efficient.
15598 # So, we kill variables containing newlines.
15599 # Ultrix sh set writes to stderr and can't be redirected directly,
15600 # and sets the high bit in the cache file unless we assign to the vars.
15601 (
15602   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15603     eval ac_val=\$$ac_var
15604     case $ac_val in #(
15605     *${as_nl}*)
15606       case $ac_var in #(
15607       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15609       esac
15610       case $ac_var in #(
15611       _ | IFS | as_nl) ;; #(
15612       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15613       *) { eval $ac_var=; unset $ac_var;} ;;
15614       esac ;;
15615     esac
15616   done
15617
15618   (set) 2>&1 |
15619     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15620     *${as_nl}ac_space=\ *)
15621       # `set' does not quote correctly, so add quotes: double-quote
15622       # substitution turns \\\\ into \\, and sed turns \\ into \.
15623       sed -n \
15624         "s/'/'\\\\''/g;
15625           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15626       ;; #(
15627     *)
15628       # `set' quotes correctly as required by POSIX, so do not add quotes.
15629       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15630       ;;
15631     esac |
15632     sort
15633 ) |
15634   sed '
15635      /^ac_cv_env_/b end
15636      t clear
15637      :clear
15638      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15639      t end
15640      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15641      :end' >>confcache
15642 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15643   if test -w "$cache_file"; then
15644     if test "x$cache_file" != "x/dev/null"; then
15645       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15646 $as_echo "$as_me: updating cache $cache_file" >&6;}
15647       if test ! -f "$cache_file" || test -h "$cache_file"; then
15648         cat confcache >"$cache_file"
15649       else
15650         case $cache_file in #(
15651         */* | ?:*)
15652           mv -f confcache "$cache_file"$$ &&
15653           mv -f "$cache_file"$$ "$cache_file" ;; #(
15654         *)
15655           mv -f confcache "$cache_file" ;;
15656         esac
15657       fi
15658     fi
15659   else
15660     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15661 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15662   fi
15663 fi
15664 rm -f confcache
15665
15666 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15667 # Let make expand exec_prefix.
15668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15669
15670 DEFS=-DHAVE_CONFIG_H
15671
15672 ac_libobjs=
15673 ac_ltlibobjs=
15674 U=
15675 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15676   # 1. Remove the extension, and $U if already installed.
15677   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15678   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15679   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15680   #    will be set to the directory where LIBOBJS objects are built.
15681   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15682   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15683 done
15684 LIBOBJS=$ac_libobjs
15685
15686 LTLIBOBJS=$ac_ltlibobjs
15687
15688
15689
15690 : "${CONFIG_STATUS=./config.status}"
15691 ac_write_fail=0
15692 ac_clean_files_save=$ac_clean_files
15693 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15695 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15696 as_write_fail=0
15697 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15698 #! $SHELL
15699 # Generated by $as_me.
15700 # Run this file to recreate the current configuration.
15701 # Compiler output produced by configure, useful for debugging
15702 # configure, is in config.log if it exists.
15703
15704 debug=false
15705 ac_cs_recheck=false
15706 ac_cs_silent=false
15707
15708 SHELL=\${CONFIG_SHELL-$SHELL}
15709 export SHELL
15710 _ASEOF
15711 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15712 ## -------------------- ##
15713 ## M4sh Initialization. ##
15714 ## -------------------- ##
15715
15716 # Be more Bourne compatible
15717 DUALCASE=1; export DUALCASE # for MKS sh
15718 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15719   emulate sh
15720   NULLCMD=:
15721   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15722   # is contrary to our usage.  Disable this feature.
15723   alias -g '${1+"$@"}'='"$@"'
15724   setopt NO_GLOB_SUBST
15725 else
15726   case `(set -o) 2>/dev/null` in #(
15727   *posix*) :
15728     set -o posix ;; #(
15729   *) :
15730      ;;
15731 esac
15732 fi
15733
15734
15735 as_nl='
15736 '
15737 export as_nl
15738 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15739 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15742 # Prefer a ksh shell builtin over an external printf program on Solaris,
15743 # but without wasting forks for bash or zsh.
15744 if test -z "$BASH_VERSION$ZSH_VERSION" \
15745     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15746   as_echo='print -r --'
15747   as_echo_n='print -rn --'
15748 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15749   as_echo='printf %s\n'
15750   as_echo_n='printf %s'
15751 else
15752   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15753     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15754     as_echo_n='/usr/ucb/echo -n'
15755   else
15756     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15757     as_echo_n_body='eval
15758       arg=$1;
15759       case $arg in #(
15760       *"$as_nl"*)
15761         expr "X$arg" : "X\\(.*\\)$as_nl";
15762         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15763       esac;
15764       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15765     '
15766     export as_echo_n_body
15767     as_echo_n='sh -c $as_echo_n_body as_echo'
15768   fi
15769   export as_echo_body
15770   as_echo='sh -c $as_echo_body as_echo'
15771 fi
15772
15773 # The user is always right.
15774 if test "${PATH_SEPARATOR+set}" != set; then
15775   PATH_SEPARATOR=:
15776   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15777     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15778       PATH_SEPARATOR=';'
15779   }
15780 fi
15781
15782
15783 # IFS
15784 # We need space, tab and new line, in precisely that order.  Quoting is
15785 # there to prevent editors from complaining about space-tab.
15786 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15787 # splitting by setting IFS to empty value.)
15788 IFS=" ""        $as_nl"
15789
15790 # Find who we are.  Look in the path if we contain no directory separator.
15791 as_myself=
15792 case $0 in #((
15793   *[\\/]* ) as_myself=$0 ;;
15794   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15795 for as_dir in $PATH
15796 do
15797   IFS=$as_save_IFS
15798   test -z "$as_dir" && as_dir=.
15799     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15800   done
15801 IFS=$as_save_IFS
15802
15803      ;;
15804 esac
15805 # We did not find ourselves, most probably we were run as `sh COMMAND'
15806 # in which case we are not to be found in the path.
15807 if test "x$as_myself" = x; then
15808   as_myself=$0
15809 fi
15810 if test ! -f "$as_myself"; then
15811   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15812   exit 1
15813 fi
15814
15815 # Unset variables that we do not need and which cause bugs (e.g. in
15816 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15817 # suppresses any "Segmentation fault" message there.  '((' could
15818 # trigger a bug in pdksh 5.2.14.
15819 for as_var in BASH_ENV ENV MAIL MAILPATH
15820 do eval test x\${$as_var+set} = xset \
15821   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15822 done
15823 PS1='$ '
15824 PS2='> '
15825 PS4='+ '
15826
15827 # NLS nuisances.
15828 LC_ALL=C
15829 export LC_ALL
15830 LANGUAGE=C
15831 export LANGUAGE
15832
15833 # CDPATH.
15834 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15835
15836
15837 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15838 # ----------------------------------------
15839 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15840 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15841 # script with STATUS, using 1 if that was 0.
15842 as_fn_error ()
15843 {
15844   as_status=$1; test $as_status -eq 0 && as_status=1
15845   if test "$4"; then
15846     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15847     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15848   fi
15849   $as_echo "$as_me: error: $2" >&2
15850   as_fn_exit $as_status
15851 } # as_fn_error
15852
15853
15854 # as_fn_set_status STATUS
15855 # -----------------------
15856 # Set $? to STATUS, without forking.
15857 as_fn_set_status ()
15858 {
15859   return $1
15860 } # as_fn_set_status
15861
15862 # as_fn_exit STATUS
15863 # -----------------
15864 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15865 as_fn_exit ()
15866 {
15867   set +e
15868   as_fn_set_status $1
15869   exit $1
15870 } # as_fn_exit
15871
15872 # as_fn_unset VAR
15873 # ---------------
15874 # Portably unset VAR.
15875 as_fn_unset ()
15876 {
15877   { eval $1=; unset $1;}
15878 }
15879 as_unset=as_fn_unset
15880 # as_fn_append VAR VALUE
15881 # ----------------------
15882 # Append the text in VALUE to the end of the definition contained in VAR. Take
15883 # advantage of any shell optimizations that allow amortized linear growth over
15884 # repeated appends, instead of the typical quadratic growth present in naive
15885 # implementations.
15886 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15887   eval 'as_fn_append ()
15888   {
15889     eval $1+=\$2
15890   }'
15891 else
15892   as_fn_append ()
15893   {
15894     eval $1=\$$1\$2
15895   }
15896 fi # as_fn_append
15897
15898 # as_fn_arith ARG...
15899 # ------------------
15900 # Perform arithmetic evaluation on the ARGs, and store the result in the
15901 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15902 # must be portable across $(()) and expr.
15903 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15904   eval 'as_fn_arith ()
15905   {
15906     as_val=$(( $* ))
15907   }'
15908 else
15909   as_fn_arith ()
15910   {
15911     as_val=`expr "$@" || test $? -eq 1`
15912   }
15913 fi # as_fn_arith
15914
15915
15916 if expr a : '\(a\)' >/dev/null 2>&1 &&
15917    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15918   as_expr=expr
15919 else
15920   as_expr=false
15921 fi
15922
15923 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15924   as_basename=basename
15925 else
15926   as_basename=false
15927 fi
15928
15929 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15930   as_dirname=dirname
15931 else
15932   as_dirname=false
15933 fi
15934
15935 as_me=`$as_basename -- "$0" ||
15936 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15937          X"$0" : 'X\(//\)$' \| \
15938          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15939 $as_echo X/"$0" |
15940     sed '/^.*\/\([^/][^/]*\)\/*$/{
15941             s//\1/
15942             q
15943           }
15944           /^X\/\(\/\/\)$/{
15945             s//\1/
15946             q
15947           }
15948           /^X\/\(\/\).*/{
15949             s//\1/
15950             q
15951           }
15952           s/.*/./; q'`
15953
15954 # Avoid depending upon Character Ranges.
15955 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15956 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15957 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15958 as_cr_digits='0123456789'
15959 as_cr_alnum=$as_cr_Letters$as_cr_digits
15960
15961 ECHO_C= ECHO_N= ECHO_T=
15962 case `echo -n x` in #(((((
15963 -n*)
15964   case `echo 'xy\c'` in
15965   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15966   xy)  ECHO_C='\c';;
15967   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15968        ECHO_T=' ';;
15969   esac;;
15970 *)
15971   ECHO_N='-n';;
15972 esac
15973
15974 rm -f conf$$ conf$$.exe conf$$.file
15975 if test -d conf$$.dir; then
15976   rm -f conf$$.dir/conf$$.file
15977 else
15978   rm -f conf$$.dir
15979   mkdir conf$$.dir 2>/dev/null
15980 fi
15981 if (echo >conf$$.file) 2>/dev/null; then
15982   if ln -s conf$$.file conf$$ 2>/dev/null; then
15983     as_ln_s='ln -s'
15984     # ... but there are two gotchas:
15985     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15986     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15987     # In both cases, we have to default to `cp -pR'.
15988     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15989       as_ln_s='cp -pR'
15990   elif ln conf$$.file conf$$ 2>/dev/null; then
15991     as_ln_s=ln
15992   else
15993     as_ln_s='cp -pR'
15994   fi
15995 else
15996   as_ln_s='cp -pR'
15997 fi
15998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15999 rmdir conf$$.dir 2>/dev/null
16000
16001
16002 # as_fn_mkdir_p
16003 # -------------
16004 # Create "$as_dir" as a directory, including parents if necessary.
16005 as_fn_mkdir_p ()
16006 {
16007
16008   case $as_dir in #(
16009   -*) as_dir=./$as_dir;;
16010   esac
16011   test -d "$as_dir" || eval $as_mkdir_p || {
16012     as_dirs=
16013     while :; do
16014       case $as_dir in #(
16015       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16016       *) as_qdir=$as_dir;;
16017       esac
16018       as_dirs="'$as_qdir' $as_dirs"
16019       as_dir=`$as_dirname -- "$as_dir" ||
16020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16021          X"$as_dir" : 'X\(//\)[^/]' \| \
16022          X"$as_dir" : 'X\(//\)$' \| \
16023          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16024 $as_echo X"$as_dir" |
16025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16026             s//\1/
16027             q
16028           }
16029           /^X\(\/\/\)[^/].*/{
16030             s//\1/
16031             q
16032           }
16033           /^X\(\/\/\)$/{
16034             s//\1/
16035             q
16036           }
16037           /^X\(\/\).*/{
16038             s//\1/
16039             q
16040           }
16041           s/.*/./; q'`
16042       test -d "$as_dir" && break
16043     done
16044     test -z "$as_dirs" || eval "mkdir $as_dirs"
16045   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16046
16047
16048 } # as_fn_mkdir_p
16049 if mkdir -p . 2>/dev/null; then
16050   as_mkdir_p='mkdir -p "$as_dir"'
16051 else
16052   test -d ./-p && rmdir ./-p
16053   as_mkdir_p=false
16054 fi
16055
16056
16057 # as_fn_executable_p FILE
16058 # -----------------------
16059 # Test if FILE is an executable regular file.
16060 as_fn_executable_p ()
16061 {
16062   test -f "$1" && test -x "$1"
16063 } # as_fn_executable_p
16064 as_test_x='test -x'
16065 as_executable_p=as_fn_executable_p
16066
16067 # Sed expression to map a string onto a valid CPP name.
16068 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16069
16070 # Sed expression to map a string onto a valid variable name.
16071 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16072
16073
16074 exec 6>&1
16075 ## ----------------------------------- ##
16076 ## Main body of $CONFIG_STATUS script. ##
16077 ## ----------------------------------- ##
16078 _ASEOF
16079 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16080
16081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16082 # Save the log message, to keep $0 and so on meaningful, and to
16083 # report actual input values of CONFIG_FILES etc. instead of their
16084 # values after options handling.
16085 ac_log="
16086 This file was extended by expat $as_me 2.1.0, which was
16087 generated by GNU Autoconf 2.69.  Invocation command line was
16088
16089   CONFIG_FILES    = $CONFIG_FILES
16090   CONFIG_HEADERS  = $CONFIG_HEADERS
16091   CONFIG_LINKS    = $CONFIG_LINKS
16092   CONFIG_COMMANDS = $CONFIG_COMMANDS
16093   $ $0 $@
16094
16095 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16096 "
16097
16098 _ACEOF
16099
16100 case $ac_config_files in *"
16101 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16102 esac
16103
16104 case $ac_config_headers in *"
16105 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16106 esac
16107
16108
16109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16110 # Files that config.status was made for.
16111 config_files="$ac_config_files"
16112 config_headers="$ac_config_headers"
16113 config_commands="$ac_config_commands"
16114
16115 _ACEOF
16116
16117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16118 ac_cs_usage="\
16119 \`$as_me' instantiates files and other configuration actions
16120 from templates according to the current configuration.  Unless the files
16121 and actions are specified as TAGs, all are instantiated by default.
16122
16123 Usage: $0 [OPTION]... [TAG]...
16124
16125   -h, --help       print this help, then exit
16126   -V, --version    print version number and configuration settings, then exit
16127       --config     print configuration, then exit
16128   -q, --quiet, --silent
16129                    do not print progress messages
16130   -d, --debug      don't remove temporary files
16131       --recheck    update $as_me by reconfiguring in the same conditions
16132       --file=FILE[:TEMPLATE]
16133                    instantiate the configuration file FILE
16134       --header=FILE[:TEMPLATE]
16135                    instantiate the configuration header FILE
16136
16137 Configuration files:
16138 $config_files
16139
16140 Configuration headers:
16141 $config_headers
16142
16143 Configuration commands:
16144 $config_commands
16145
16146 Report bugs to <expat-bugs@libexpat.org>."
16147
16148 _ACEOF
16149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16150 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16151 ac_cs_version="\\
16152 expat config.status 2.1.0
16153 configured by $0, generated by GNU Autoconf 2.69,
16154   with options \\"\$ac_cs_config\\"
16155
16156 Copyright (C) 2012 Free Software Foundation, Inc.
16157 This config.status script is free software; the Free Software Foundation
16158 gives unlimited permission to copy, distribute and modify it."
16159
16160 ac_pwd='$ac_pwd'
16161 srcdir='$srcdir'
16162 INSTALL='$INSTALL'
16163 test -n "\$AWK" || AWK=awk
16164 _ACEOF
16165
16166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16167 # The default lists apply if the user does not specify any file.
16168 ac_need_defaults=:
16169 while test $# != 0
16170 do
16171   case $1 in
16172   --*=?*)
16173     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16174     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16175     ac_shift=:
16176     ;;
16177   --*=)
16178     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16179     ac_optarg=
16180     ac_shift=:
16181     ;;
16182   *)
16183     ac_option=$1
16184     ac_optarg=$2
16185     ac_shift=shift
16186     ;;
16187   esac
16188
16189   case $ac_option in
16190   # Handling of the options.
16191   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16192     ac_cs_recheck=: ;;
16193   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16194     $as_echo "$ac_cs_version"; exit ;;
16195   --config | --confi | --conf | --con | --co | --c )
16196     $as_echo "$ac_cs_config"; exit ;;
16197   --debug | --debu | --deb | --de | --d | -d )
16198     debug=: ;;
16199   --file | --fil | --fi | --f )
16200     $ac_shift
16201     case $ac_optarg in
16202     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16203     '') as_fn_error $? "missing file argument" ;;
16204     esac
16205     as_fn_append CONFIG_FILES " '$ac_optarg'"
16206     ac_need_defaults=false;;
16207   --header | --heade | --head | --hea )
16208     $ac_shift
16209     case $ac_optarg in
16210     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16211     esac
16212     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16213     ac_need_defaults=false;;
16214   --he | --h)
16215     # Conflict between --help and --header
16216     as_fn_error $? "ambiguous option: \`$1'
16217 Try \`$0 --help' for more information.";;
16218   --help | --hel | -h )
16219     $as_echo "$ac_cs_usage"; exit ;;
16220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16221   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16222     ac_cs_silent=: ;;
16223
16224   # This is an error.
16225   -*) as_fn_error $? "unrecognized option: \`$1'
16226 Try \`$0 --help' for more information." ;;
16227
16228   *) as_fn_append ac_config_targets " $1"
16229      ac_need_defaults=false ;;
16230
16231   esac
16232   shift
16233 done
16234
16235 ac_configure_extra_args=
16236
16237 if $ac_cs_silent; then
16238   exec 6>/dev/null
16239   ac_configure_extra_args="$ac_configure_extra_args --silent"
16240 fi
16241
16242 _ACEOF
16243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16244 if \$ac_cs_recheck; then
16245   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16246   shift
16247   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16248   CONFIG_SHELL='$SHELL'
16249   export CONFIG_SHELL
16250   exec "\$@"
16251 fi
16252
16253 _ACEOF
16254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16255 exec 5>>config.log
16256 {
16257   echo
16258   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16259 ## Running $as_me. ##
16260 _ASBOX
16261   $as_echo "$ac_log"
16262 } >&5
16263
16264 _ACEOF
16265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16266 #
16267 # INIT-COMMANDS
16268 #
16269
16270
16271 # The HP-UX ksh and POSIX shell print the target directory to stdout
16272 # if CDPATH is set.
16273 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16274
16275 sed_quote_subst='$sed_quote_subst'
16276 double_quote_subst='$double_quote_subst'
16277 delay_variable_subst='$delay_variable_subst'
16278 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16279 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16280 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16281 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16282 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16283 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16284 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16285 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16286 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16287 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16288 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16289 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16290 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16291 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16292 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16293 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16294 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16295 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16296 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16297 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16298 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16299 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16300 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16301 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16302 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16303 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16304 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16305 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16306 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16307 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16308 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16309 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16310 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16311 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16312 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16313 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16314 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16315 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16316 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16317 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16318 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16319 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16320 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16321 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16322 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16323 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16324 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16325 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16326 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16327 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16328 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16329 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16330 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16331 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16332 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16333 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16334 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16335 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16336 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16337 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16338 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16339 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16340 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16341 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16342 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16343 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16344 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16345 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16346 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16347 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16348 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16349 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16350 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16351 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16352 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16353 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16354 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16355 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16356 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16357 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16358 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16359 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16360 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16361 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16362 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16363 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16364 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16365 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16366 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16367 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16368 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16369 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16370 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16371 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16372 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16373 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16374 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16375 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16376 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16377 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16378 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16379 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16380 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16381 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16382 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16383 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16384 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16385 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16386 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16387 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16388 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16389 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16390 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16391 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16392 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16393 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16394 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16395 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16396 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16397 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16398 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16399 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16400 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16401 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16402 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16403 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16404 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16405 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16406 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16407 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16408 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16409 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16410 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16411 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16412 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16413 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16414 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16415 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16416 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16417 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16418 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16419 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16420 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16421 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16422 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16423 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16424 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16425 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16426 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16427 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16428 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16429 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16430 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16431 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16432 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16433 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16434 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16435 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16436 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16437 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16438 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16439 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16440 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16441 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16442 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16443 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16444 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16445 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16446 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16447 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16448 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16449 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16450 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16451
16452 LTCC='$LTCC'
16453 LTCFLAGS='$LTCFLAGS'
16454 compiler='$compiler_DEFAULT'
16455
16456 # Quote evaled strings.
16457 for var in SED \
16458 GREP \
16459 EGREP \
16460 FGREP \
16461 LD \
16462 NM \
16463 LN_S \
16464 lt_SP2NL \
16465 lt_NL2SP \
16466 reload_flag \
16467 deplibs_check_method \
16468 file_magic_cmd \
16469 AR \
16470 AR_FLAGS \
16471 STRIP \
16472 RANLIB \
16473 CC \
16474 CFLAGS \
16475 compiler \
16476 lt_cv_sys_global_symbol_pipe \
16477 lt_cv_sys_global_symbol_to_cdecl \
16478 lt_cv_sys_global_symbol_to_c_name_address \
16479 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16480 SHELL \
16481 ECHO \
16482 lt_prog_compiler_no_builtin_flag \
16483 lt_prog_compiler_wl \
16484 lt_prog_compiler_pic \
16485 lt_prog_compiler_static \
16486 lt_cv_prog_compiler_c_o \
16487 need_locks \
16488 DSYMUTIL \
16489 NMEDIT \
16490 LIPO \
16491 OTOOL \
16492 OTOOL64 \
16493 shrext_cmds \
16494 export_dynamic_flag_spec \
16495 whole_archive_flag_spec \
16496 compiler_needs_object \
16497 with_gnu_ld \
16498 allow_undefined_flag \
16499 no_undefined_flag \
16500 hardcode_libdir_flag_spec \
16501 hardcode_libdir_flag_spec_ld \
16502 hardcode_libdir_separator \
16503 fix_srcfile_path \
16504 exclude_expsyms \
16505 include_expsyms \
16506 file_list_spec \
16507 variables_saved_for_relink \
16508 libname_spec \
16509 library_names_spec \
16510 soname_spec \
16511 finish_eval \
16512 old_striplib \
16513 striplib \
16514 compiler_lib_search_dirs \
16515 predep_objects \
16516 postdep_objects \
16517 predeps \
16518 postdeps \
16519 compiler_lib_search_path \
16520 LD_CXX \
16521 compiler_CXX \
16522 lt_prog_compiler_no_builtin_flag_CXX \
16523 lt_prog_compiler_wl_CXX \
16524 lt_prog_compiler_pic_CXX \
16525 lt_prog_compiler_static_CXX \
16526 lt_cv_prog_compiler_c_o_CXX \
16527 export_dynamic_flag_spec_CXX \
16528 whole_archive_flag_spec_CXX \
16529 compiler_needs_object_CXX \
16530 with_gnu_ld_CXX \
16531 allow_undefined_flag_CXX \
16532 no_undefined_flag_CXX \
16533 hardcode_libdir_flag_spec_CXX \
16534 hardcode_libdir_flag_spec_ld_CXX \
16535 hardcode_libdir_separator_CXX \
16536 fix_srcfile_path_CXX \
16537 exclude_expsyms_CXX \
16538 include_expsyms_CXX \
16539 file_list_spec_CXX \
16540 compiler_lib_search_dirs_CXX \
16541 predep_objects_CXX \
16542 postdep_objects_CXX \
16543 predeps_CXX \
16544 postdeps_CXX \
16545 compiler_lib_search_path_CXX; do
16546     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16547     *[\\\\\\\`\\"\\\$]*)
16548       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16549       ;;
16550     *)
16551       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16552       ;;
16553     esac
16554 done
16555
16556 # Double-quote double-evaled strings.
16557 for var in reload_cmds \
16558 old_postinstall_cmds \
16559 old_postuninstall_cmds \
16560 old_archive_cmds \
16561 extract_expsyms_cmds \
16562 old_archive_from_new_cmds \
16563 old_archive_from_expsyms_cmds \
16564 archive_cmds \
16565 archive_expsym_cmds \
16566 module_cmds \
16567 module_expsym_cmds \
16568 export_symbols_cmds \
16569 prelink_cmds \
16570 postinstall_cmds \
16571 postuninstall_cmds \
16572 finish_cmds \
16573 sys_lib_search_path_spec \
16574 sys_lib_dlsearch_path_spec \
16575 old_archive_cmds_CXX \
16576 old_archive_from_new_cmds_CXX \
16577 old_archive_from_expsyms_cmds_CXX \
16578 archive_cmds_CXX \
16579 archive_expsym_cmds_CXX \
16580 module_cmds_CXX \
16581 module_expsym_cmds_CXX \
16582 export_symbols_cmds_CXX \
16583 prelink_cmds_CXX; do
16584     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16585     *[\\\\\\\`\\"\\\$]*)
16586       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16587       ;;
16588     *)
16589       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16590       ;;
16591     esac
16592 done
16593
16594 # Fix-up fallback echo if it was mangled by the above quoting rules.
16595 case \$lt_ECHO in
16596 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16597   ;;
16598 esac
16599
16600 ac_aux_dir='$ac_aux_dir'
16601 xsi_shell='$xsi_shell'
16602 lt_shell_append='$lt_shell_append'
16603
16604 # See if we are running on zsh, and set the options which allow our
16605 # commands through without removal of \ escapes INIT.
16606 if test -n "\${ZSH_VERSION+set}" ; then
16607    setopt NO_GLOB_SUBST
16608 fi
16609
16610
16611     PACKAGE='$PACKAGE'
16612     VERSION='$VERSION'
16613     TIMESTAMP='$TIMESTAMP'
16614     RM='$RM'
16615     ofile='$ofile'
16616
16617
16618
16619
16620
16621
16622 _ACEOF
16623
16624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16625
16626 # Handling of arguments.
16627 for ac_config_target in $ac_config_targets
16628 do
16629   case $ac_config_target in
16630     "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
16631     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16632     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16633     "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
16634
16635   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16636   esac
16637 done
16638
16639
16640 # If the user did not use the arguments to specify the items to instantiate,
16641 # then the envvar interface is used.  Set only those that are not.
16642 # We use the long form for the default assignment because of an extremely
16643 # bizarre bug on SunOS 4.1.3.
16644 if $ac_need_defaults; then
16645   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16646   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16647   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16648 fi
16649
16650 # Have a temporary directory for convenience.  Make it in the build tree
16651 # simply because there is no reason against having it here, and in addition,
16652 # creating and moving files from /tmp can sometimes cause problems.
16653 # Hook for its removal unless debugging.
16654 # Note that there is a small window in which the directory will not be cleaned:
16655 # after its creation but before its name has been assigned to `$tmp'.
16656 $debug ||
16657 {
16658   tmp= ac_tmp=
16659   trap 'exit_status=$?
16660   : "${ac_tmp:=$tmp}"
16661   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16662 ' 0
16663   trap 'as_fn_exit 1' 1 2 13 15
16664 }
16665 # Create a (secure) tmp directory for tmp files.
16666
16667 {
16668   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16669   test -d "$tmp"
16670 }  ||
16671 {
16672   tmp=./conf$$-$RANDOM
16673   (umask 077 && mkdir "$tmp")
16674 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16675 ac_tmp=$tmp
16676
16677 # Set up the scripts for CONFIG_FILES section.
16678 # No need to generate them if there are no CONFIG_FILES.
16679 # This happens for instance with `./config.status config.h'.
16680 if test -n "$CONFIG_FILES"; then
16681
16682
16683 ac_cr=`echo X | tr X '\015'`
16684 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16685 # But we know of no other shell where ac_cr would be empty at this
16686 # point, so we can use a bashism as a fallback.
16687 if test "x$ac_cr" = x; then
16688   eval ac_cr=\$\'\\r\'
16689 fi
16690 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16691 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16692   ac_cs_awk_cr='\\r'
16693 else
16694   ac_cs_awk_cr=$ac_cr
16695 fi
16696
16697 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16698 _ACEOF
16699
16700
16701 {
16702   echo "cat >conf$$subs.awk <<_ACEOF" &&
16703   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16704   echo "_ACEOF"
16705 } >conf$$subs.sh ||
16706   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16707 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16708 ac_delim='%!_!# '
16709 for ac_last_try in false false false false false :; do
16710   . ./conf$$subs.sh ||
16711     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16712
16713   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16714   if test $ac_delim_n = $ac_delim_num; then
16715     break
16716   elif $ac_last_try; then
16717     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16718   else
16719     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16720   fi
16721 done
16722 rm -f conf$$subs.sh
16723
16724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16725 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16726 _ACEOF
16727 sed -n '
16728 h
16729 s/^/S["/; s/!.*/"]=/
16730 p
16731 g
16732 s/^[^!]*!//
16733 :repl
16734 t repl
16735 s/'"$ac_delim"'$//
16736 t delim
16737 :nl
16738 h
16739 s/\(.\{148\}\)..*/\1/
16740 t more1
16741 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16742 p
16743 n
16744 b repl
16745 :more1
16746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16747 p
16748 g
16749 s/.\{148\}//
16750 t nl
16751 :delim
16752 h
16753 s/\(.\{148\}\)..*/\1/
16754 t more2
16755 s/["\\]/\\&/g; s/^/"/; s/$/"/
16756 p
16757 b
16758 :more2
16759 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16760 p
16761 g
16762 s/.\{148\}//
16763 t delim
16764 ' <conf$$subs.awk | sed '
16765 /^[^""]/{
16766   N
16767   s/\n//
16768 }
16769 ' >>$CONFIG_STATUS || ac_write_fail=1
16770 rm -f conf$$subs.awk
16771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16772 _ACAWK
16773 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16774   for (key in S) S_is_set[key] = 1
16775   FS = "\a"
16776
16777 }
16778 {
16779   line = $ 0
16780   nfields = split(line, field, "@")
16781   substed = 0
16782   len = length(field[1])
16783   for (i = 2; i < nfields; i++) {
16784     key = field[i]
16785     keylen = length(key)
16786     if (S_is_set[key]) {
16787       value = S[key]
16788       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16789       len += length(value) + length(field[++i])
16790       substed = 1
16791     } else
16792       len += 1 + keylen
16793   }
16794
16795   print line
16796 }
16797
16798 _ACAWK
16799 _ACEOF
16800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16801 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16802   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16803 else
16804   cat
16805 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16806   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16807 _ACEOF
16808
16809 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16810 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16811 # trailing colons and then remove the whole line if VPATH becomes empty
16812 # (actually we leave an empty line to preserve line numbers).
16813 if test "x$srcdir" = x.; then
16814   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16815 h
16816 s///
16817 s/^/:/
16818 s/[      ]*$/:/
16819 s/:\$(srcdir):/:/g
16820 s/:\${srcdir}:/:/g
16821 s/:@srcdir@:/:/g
16822 s/^:*//
16823 s/:*$//
16824 x
16825 s/\(=[   ]*\).*/\1/
16826 G
16827 s/\n//
16828 s/^[^=]*=[       ]*$//
16829 }'
16830 fi
16831
16832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16833 fi # test -n "$CONFIG_FILES"
16834
16835 # Set up the scripts for CONFIG_HEADERS section.
16836 # No need to generate them if there are no CONFIG_HEADERS.
16837 # This happens for instance with `./config.status Makefile'.
16838 if test -n "$CONFIG_HEADERS"; then
16839 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16840 BEGIN {
16841 _ACEOF
16842
16843 # Transform confdefs.h into an awk script `defines.awk', embedded as
16844 # here-document in config.status, that substitutes the proper values into
16845 # config.h.in to produce config.h.
16846
16847 # Create a delimiter string that does not exist in confdefs.h, to ease
16848 # handling of long lines.
16849 ac_delim='%!_!# '
16850 for ac_last_try in false false :; do
16851   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16852   if test -z "$ac_tt"; then
16853     break
16854   elif $ac_last_try; then
16855     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16856   else
16857     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16858   fi
16859 done
16860
16861 # For the awk script, D is an array of macro values keyed by name,
16862 # likewise P contains macro parameters if any.  Preserve backslash
16863 # newline sequences.
16864
16865 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16866 sed -n '
16867 s/.\{148\}/&'"$ac_delim"'/g
16868 t rset
16869 :rset
16870 s/^[     ]*#[    ]*define[       ][      ]*/ /
16871 t def
16872 d
16873 :def
16874 s/\\$//
16875 t bsnl
16876 s/["\\]/\\&/g
16877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16878 D["\1"]=" \3"/p
16879 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16880 d
16881 :bsnl
16882 s/["\\]/\\&/g
16883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16884 D["\1"]=" \3\\\\\\n"\\/p
16885 t cont
16886 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16887 t cont
16888 d
16889 :cont
16890 n
16891 s/.\{148\}/&'"$ac_delim"'/g
16892 t clear
16893 :clear
16894 s/\\$//
16895 t bsnlc
16896 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16897 d
16898 :bsnlc
16899 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16900 b cont
16901 ' <confdefs.h | sed '
16902 s/'"$ac_delim"'/"\\\
16903 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16904
16905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16906   for (key in D) D_is_set[key] = 1
16907   FS = "\a"
16908 }
16909 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16910   line = \$ 0
16911   split(line, arg, " ")
16912   if (arg[1] == "#") {
16913     defundef = arg[2]
16914     mac1 = arg[3]
16915   } else {
16916     defundef = substr(arg[1], 2)
16917     mac1 = arg[2]
16918   }
16919   split(mac1, mac2, "(") #)
16920   macro = mac2[1]
16921   prefix = substr(line, 1, index(line, defundef) - 1)
16922   if (D_is_set[macro]) {
16923     # Preserve the white space surrounding the "#".
16924     print prefix "define", macro P[macro] D[macro]
16925     next
16926   } else {
16927     # Replace #undef with comments.  This is necessary, for example,
16928     # in the case of _POSIX_SOURCE, which is predefined and required
16929     # on some systems where configure will not decide to define it.
16930     if (defundef == "undef") {
16931       print "/*", prefix defundef, macro, "*/"
16932       next
16933     }
16934   }
16935 }
16936 { print }
16937 _ACAWK
16938 _ACEOF
16939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16940   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16941 fi # test -n "$CONFIG_HEADERS"
16942
16943
16944 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16945 shift
16946 for ac_tag
16947 do
16948   case $ac_tag in
16949   :[FHLC]) ac_mode=$ac_tag; continue;;
16950   esac
16951   case $ac_mode$ac_tag in
16952   :[FHL]*:*);;
16953   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16954   :[FH]-) ac_tag=-:-;;
16955   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16956   esac
16957   ac_save_IFS=$IFS
16958   IFS=:
16959   set x $ac_tag
16960   IFS=$ac_save_IFS
16961   shift
16962   ac_file=$1
16963   shift
16964
16965   case $ac_mode in
16966   :L) ac_source=$1;;
16967   :[FH])
16968     ac_file_inputs=
16969     for ac_f
16970     do
16971       case $ac_f in
16972       -) ac_f="$ac_tmp/stdin";;
16973       *) # Look for the file first in the build tree, then in the source tree
16974          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16975          # because $ac_f cannot contain `:'.
16976          test -f "$ac_f" ||
16977            case $ac_f in
16978            [\\/$]*) false;;
16979            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16980            esac ||
16981            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16982       esac
16983       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16984       as_fn_append ac_file_inputs " '$ac_f'"
16985     done
16986
16987     # Let's still pretend it is `configure' which instantiates (i.e., don't
16988     # use $as_me), people would be surprised to read:
16989     #    /* config.h.  Generated by config.status.  */
16990     configure_input='Generated from '`
16991           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16992         `' by configure.'
16993     if test x"$ac_file" != x-; then
16994       configure_input="$ac_file.  $configure_input"
16995       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16996 $as_echo "$as_me: creating $ac_file" >&6;}
16997     fi
16998     # Neutralize special characters interpreted by sed in replacement strings.
16999     case $configure_input in #(
17000     *\&* | *\|* | *\\* )
17001        ac_sed_conf_input=`$as_echo "$configure_input" |
17002        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17003     *) ac_sed_conf_input=$configure_input;;
17004     esac
17005
17006     case $ac_tag in
17007     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17008       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17009     esac
17010     ;;
17011   esac
17012
17013   ac_dir=`$as_dirname -- "$ac_file" ||
17014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17015          X"$ac_file" : 'X\(//\)[^/]' \| \
17016          X"$ac_file" : 'X\(//\)$' \| \
17017          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17018 $as_echo X"$ac_file" |
17019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17020             s//\1/
17021             q
17022           }
17023           /^X\(\/\/\)[^/].*/{
17024             s//\1/
17025             q
17026           }
17027           /^X\(\/\/\)$/{
17028             s//\1/
17029             q
17030           }
17031           /^X\(\/\).*/{
17032             s//\1/
17033             q
17034           }
17035           s/.*/./; q'`
17036   as_dir="$ac_dir"; as_fn_mkdir_p
17037   ac_builddir=.
17038
17039 case "$ac_dir" in
17040 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17041 *)
17042   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17043   # A ".." for each directory in $ac_dir_suffix.
17044   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17045   case $ac_top_builddir_sub in
17046   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17047   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17048   esac ;;
17049 esac
17050 ac_abs_top_builddir=$ac_pwd
17051 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17052 # for backward compatibility:
17053 ac_top_builddir=$ac_top_build_prefix
17054
17055 case $srcdir in
17056   .)  # We are building in place.
17057     ac_srcdir=.
17058     ac_top_srcdir=$ac_top_builddir_sub
17059     ac_abs_top_srcdir=$ac_pwd ;;
17060   [\\/]* | ?:[\\/]* )  # Absolute name.
17061     ac_srcdir=$srcdir$ac_dir_suffix;
17062     ac_top_srcdir=$srcdir
17063     ac_abs_top_srcdir=$srcdir ;;
17064   *) # Relative name.
17065     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17066     ac_top_srcdir=$ac_top_build_prefix$srcdir
17067     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17068 esac
17069 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17070
17071
17072   case $ac_mode in
17073   :F)
17074   #
17075   # CONFIG_FILE
17076   #
17077
17078   case $INSTALL in
17079   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17080   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17081   esac
17082 _ACEOF
17083
17084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17085 # If the template does not know about datarootdir, expand it.
17086 # FIXME: This hack should be removed a few years after 2.60.
17087 ac_datarootdir_hack=; ac_datarootdir_seen=
17088 ac_sed_dataroot='
17089 /datarootdir/ {
17090   p
17091   q
17092 }
17093 /@datadir@/p
17094 /@docdir@/p
17095 /@infodir@/p
17096 /@localedir@/p
17097 /@mandir@/p'
17098 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17099 *datarootdir*) ac_datarootdir_seen=yes;;
17100 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17101   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17102 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17103 _ACEOF
17104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17105   ac_datarootdir_hack='
17106   s&@datadir@&$datadir&g
17107   s&@docdir@&$docdir&g
17108   s&@infodir@&$infodir&g
17109   s&@localedir@&$localedir&g
17110   s&@mandir@&$mandir&g
17111   s&\\\${datarootdir}&$datarootdir&g' ;;
17112 esac
17113 _ACEOF
17114
17115 # Neutralize VPATH when `$srcdir' = `.'.
17116 # Shell code in configure.ac might set extrasub.
17117 # FIXME: do we really want to maintain this feature?
17118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17119 ac_sed_extra="$ac_vpsub
17120 $extrasub
17121 _ACEOF
17122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17123 :t
17124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17125 s|@configure_input@|$ac_sed_conf_input|;t t
17126 s&@top_builddir@&$ac_top_builddir_sub&;t t
17127 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17128 s&@srcdir@&$ac_srcdir&;t t
17129 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17130 s&@top_srcdir@&$ac_top_srcdir&;t t
17131 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17132 s&@builddir@&$ac_builddir&;t t
17133 s&@abs_builddir@&$ac_abs_builddir&;t t
17134 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17135 s&@INSTALL@&$ac_INSTALL&;t t
17136 $ac_datarootdir_hack
17137 "
17138 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17139   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17140
17141 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17142   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17143   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17144       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17145   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17146 which seems to be undefined.  Please make sure it is defined" >&5
17147 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17148 which seems to be undefined.  Please make sure it is defined" >&2;}
17149
17150   rm -f "$ac_tmp/stdin"
17151   case $ac_file in
17152   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17153   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17154   esac \
17155   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17156  ;;
17157   :H)
17158   #
17159   # CONFIG_HEADER
17160   #
17161   if test x"$ac_file" != x-; then
17162     {
17163       $as_echo "/* $configure_input  */" \
17164       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17165     } >"$ac_tmp/config.h" \
17166       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17167     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17168       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17169 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17170     else
17171       rm -f "$ac_file"
17172       mv "$ac_tmp/config.h" "$ac_file" \
17173         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17174     fi
17175   else
17176     $as_echo "/* $configure_input  */" \
17177       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17178       || as_fn_error $? "could not create -" "$LINENO" 5
17179   fi
17180  ;;
17181
17182   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17183 $as_echo "$as_me: executing $ac_file commands" >&6;}
17184  ;;
17185   esac
17186
17187
17188   case $ac_file$ac_mode in
17189     "libtool":C)
17190
17191     # See if we are running on zsh, and set the options which allow our
17192     # commands through without removal of \ escapes.
17193     if test -n "${ZSH_VERSION+set}" ; then
17194       setopt NO_GLOB_SUBST
17195     fi
17196
17197     cfgfile="${ofile}T"
17198     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17199     $RM "$cfgfile"
17200
17201     cat <<_LT_EOF >> "$cfgfile"
17202 #! $SHELL
17203
17204 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17205 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17206 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17207 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17208 #
17209 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17210 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17211 #   Written by Gordon Matzigkeit, 1996
17212 #
17213 #   This file is part of GNU Libtool.
17214 #
17215 # GNU Libtool is free software; you can redistribute it and/or
17216 # modify it under the terms of the GNU General Public License as
17217 # published by the Free Software Foundation; either version 2 of
17218 # the License, or (at your option) any later version.
17219 #
17220 # As a special exception to the GNU General Public License,
17221 # if you distribute this file as part of a program or library that
17222 # is built using GNU Libtool, you may include this file under the
17223 # same distribution terms that you use for the rest of that program.
17224 #
17225 # GNU Libtool is distributed in the hope that it will be useful,
17226 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17227 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17228 # GNU General Public License for more details.
17229 #
17230 # You should have received a copy of the GNU General Public License
17231 # along with GNU Libtool; see the file COPYING.  If not, a copy
17232 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17233 # obtained by writing to the Free Software Foundation, Inc.,
17234 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17235
17236
17237 # The names of the tagged configurations supported by this script.
17238 available_tags="CXX "
17239
17240 # ### BEGIN LIBTOOL CONFIG
17241
17242 # Assembler program.
17243 AS=$AS
17244
17245 # DLL creation program.
17246 DLLTOOL=$DLLTOOL
17247
17248 # Object dumper program.
17249 OBJDUMP=$OBJDUMP
17250
17251 # Which release of libtool.m4 was used?
17252 macro_version=$macro_version
17253 macro_revision=$macro_revision
17254
17255 # Whether or not to build shared libraries.
17256 build_libtool_libs=$enable_shared
17257
17258 # Whether or not to build static libraries.
17259 build_old_libs=$enable_static
17260
17261 # What type of objects to build.
17262 pic_mode=$pic_mode
17263
17264 # Whether or not to optimize for fast installation.
17265 fast_install=$enable_fast_install
17266
17267 # The host system.
17268 host_alias=$host_alias
17269 host=$host
17270 host_os=$host_os
17271
17272 # The build system.
17273 build_alias=$build_alias
17274 build=$build
17275 build_os=$build_os
17276
17277 # A sed program that does not truncate output.
17278 SED=$lt_SED
17279
17280 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17281 Xsed="\$SED -e 1s/^X//"
17282
17283 # A grep program that handles long lines.
17284 GREP=$lt_GREP
17285
17286 # An ERE matcher.
17287 EGREP=$lt_EGREP
17288
17289 # A literal string matcher.
17290 FGREP=$lt_FGREP
17291
17292 # A BSD- or MS-compatible name lister.
17293 NM=$lt_NM
17294
17295 # Whether we need soft or hard links.
17296 LN_S=$lt_LN_S
17297
17298 # What is the maximum length of a command?
17299 max_cmd_len=$max_cmd_len
17300
17301 # Object file suffix (normally "o").
17302 objext=$ac_objext
17303
17304 # Executable file suffix (normally "").
17305 exeext=$exeext
17306
17307 # whether the shell understands "unset".
17308 lt_unset=$lt_unset
17309
17310 # turn spaces into newlines.
17311 SP2NL=$lt_lt_SP2NL
17312
17313 # turn newlines into spaces.
17314 NL2SP=$lt_lt_NL2SP
17315
17316 # How to create reloadable object files.
17317 reload_flag=$lt_reload_flag
17318 reload_cmds=$lt_reload_cmds
17319
17320 # Method to check whether dependent libraries are shared objects.
17321 deplibs_check_method=$lt_deplibs_check_method
17322
17323 # Command to use when deplibs_check_method == "file_magic".
17324 file_magic_cmd=$lt_file_magic_cmd
17325
17326 # The archiver.
17327 AR=$lt_AR
17328 AR_FLAGS=$lt_AR_FLAGS
17329
17330 # A symbol stripping program.
17331 STRIP=$lt_STRIP
17332
17333 # Commands used to install an old-style archive.
17334 RANLIB=$lt_RANLIB
17335 old_postinstall_cmds=$lt_old_postinstall_cmds
17336 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17337
17338 # A C compiler.
17339 LTCC=$lt_CC
17340
17341 # LTCC compiler flags.
17342 LTCFLAGS=$lt_CFLAGS
17343
17344 # Take the output of nm and produce a listing of raw symbols and C names.
17345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17346
17347 # Transform the output of nm in a proper C declaration.
17348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17349
17350 # Transform the output of nm in a C name address pair.
17351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17352
17353 # Transform the output of nm in a C name address pair when lib prefix is needed.
17354 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17355
17356 # The name of the directory that contains temporary libtool files.
17357 objdir=$objdir
17358
17359 # Shell to use when invoking shell scripts.
17360 SHELL=$lt_SHELL
17361
17362 # An echo program that does not interpret backslashes.
17363 ECHO=$lt_ECHO
17364
17365 # Used to examine libraries when file_magic_cmd begins with "file".
17366 MAGIC_CMD=$MAGIC_CMD
17367
17368 # Must we lock files when doing compilation?
17369 need_locks=$lt_need_locks
17370
17371 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17372 DSYMUTIL=$lt_DSYMUTIL
17373
17374 # Tool to change global to local symbols on Mac OS X.
17375 NMEDIT=$lt_NMEDIT
17376
17377 # Tool to manipulate fat objects and archives on Mac OS X.
17378 LIPO=$lt_LIPO
17379
17380 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17381 OTOOL=$lt_OTOOL
17382
17383 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17384 OTOOL64=$lt_OTOOL64
17385
17386 # Old archive suffix (normally "a").
17387 libext=$libext
17388
17389 # Shared library suffix (normally ".so").
17390 shrext_cmds=$lt_shrext_cmds
17391
17392 # The commands to extract the exported symbol list from a shared archive.
17393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17394
17395 # Variables whose values should be saved in libtool wrapper scripts and
17396 # restored at link time.
17397 variables_saved_for_relink=$lt_variables_saved_for_relink
17398
17399 # Do we need the "lib" prefix for modules?
17400 need_lib_prefix=$need_lib_prefix
17401
17402 # Do we need a version for libraries?
17403 need_version=$need_version
17404
17405 # Library versioning type.
17406 version_type=$version_type
17407
17408 # Shared library runtime path variable.
17409 runpath_var=$runpath_var
17410
17411 # Shared library path variable.
17412 shlibpath_var=$shlibpath_var
17413
17414 # Is shlibpath searched before the hard-coded library search path?
17415 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17416
17417 # Format of library name prefix.
17418 libname_spec=$lt_libname_spec
17419
17420 # List of archive names.  First name is the real one, the rest are links.
17421 # The last name is the one that the linker finds with -lNAME
17422 library_names_spec=$lt_library_names_spec
17423
17424 # The coded name of the library, if different from the real name.
17425 soname_spec=$lt_soname_spec
17426
17427 # Command to use after installation of a shared archive.
17428 postinstall_cmds=$lt_postinstall_cmds
17429
17430 # Command to use after uninstallation of a shared archive.
17431 postuninstall_cmds=$lt_postuninstall_cmds
17432
17433 # Commands used to finish a libtool library installation in a directory.
17434 finish_cmds=$lt_finish_cmds
17435
17436 # As "finish_cmds", except a single script fragment to be evaled but
17437 # not shown.
17438 finish_eval=$lt_finish_eval
17439
17440 # Whether we should hardcode library paths into libraries.
17441 hardcode_into_libs=$hardcode_into_libs
17442
17443 # Compile-time system search path for libraries.
17444 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17445
17446 # Run-time system search path for libraries.
17447 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17448
17449 # Whether dlopen is supported.
17450 dlopen_support=$enable_dlopen
17451
17452 # Whether dlopen of programs is supported.
17453 dlopen_self=$enable_dlopen_self
17454
17455 # Whether dlopen of statically linked programs is supported.
17456 dlopen_self_static=$enable_dlopen_self_static
17457
17458 # Commands to strip libraries.
17459 old_striplib=$lt_old_striplib
17460 striplib=$lt_striplib
17461
17462
17463 # The linker used to build libraries.
17464 LD=$lt_LD
17465
17466 # Commands used to build an old-style archive.
17467 old_archive_cmds=$lt_old_archive_cmds
17468
17469 # A language specific compiler.
17470 CC=$lt_compiler
17471
17472 # Is the compiler the GNU compiler?
17473 with_gcc=$GCC
17474
17475 # Compiler flag to turn off builtin functions.
17476 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17477
17478 # How to pass a linker flag through the compiler.
17479 wl=$lt_lt_prog_compiler_wl
17480
17481 # Additional compiler flags for building library objects.
17482 pic_flag=$lt_lt_prog_compiler_pic
17483
17484 # Compiler flag to prevent dynamic linking.
17485 link_static_flag=$lt_lt_prog_compiler_static
17486
17487 # Does compiler simultaneously support -c and -o options?
17488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17489
17490 # Whether or not to add -lc for building shared libraries.
17491 build_libtool_need_lc=$archive_cmds_need_lc
17492
17493 # Whether or not to disallow shared libs when runtime libs are static.
17494 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17495
17496 # Compiler flag to allow reflexive dlopens.
17497 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17498
17499 # Compiler flag to generate shared objects directly from archives.
17500 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17501
17502 # Whether the compiler copes with passing no objects directly.
17503 compiler_needs_object=$lt_compiler_needs_object
17504
17505 # Create an old-style archive from a shared archive.
17506 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17507
17508 # Create a temporary old-style archive to link instead of a shared archive.
17509 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17510
17511 # Commands used to build a shared archive.
17512 archive_cmds=$lt_archive_cmds
17513 archive_expsym_cmds=$lt_archive_expsym_cmds
17514
17515 # Commands used to build a loadable module if different from building
17516 # a shared archive.
17517 module_cmds=$lt_module_cmds
17518 module_expsym_cmds=$lt_module_expsym_cmds
17519
17520 # Whether we are building with GNU ld or not.
17521 with_gnu_ld=$lt_with_gnu_ld
17522
17523 # Flag that allows shared libraries with undefined symbols to be built.
17524 allow_undefined_flag=$lt_allow_undefined_flag
17525
17526 # Flag that enforces no undefined symbols.
17527 no_undefined_flag=$lt_no_undefined_flag
17528
17529 # Flag to hardcode \$libdir into a binary during linking.
17530 # This must work even if \$libdir does not exist
17531 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17532
17533 # If ld is used when linking, flag to hardcode \$libdir into a binary
17534 # during linking.  This must work even if \$libdir does not exist.
17535 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17536
17537 # Whether we need a single "-rpath" flag with a separated argument.
17538 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17539
17540 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17541 # DIR into the resulting binary.
17542 hardcode_direct=$hardcode_direct
17543
17544 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17545 # DIR into the resulting binary and the resulting library dependency is
17546 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17547 # library is relocated.
17548 hardcode_direct_absolute=$hardcode_direct_absolute
17549
17550 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17551 # into the resulting binary.
17552 hardcode_minus_L=$hardcode_minus_L
17553
17554 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17555 # into the resulting binary.
17556 hardcode_shlibpath_var=$hardcode_shlibpath_var
17557
17558 # Set to "yes" if building a shared library automatically hardcodes DIR
17559 # into the library and all subsequent libraries and executables linked
17560 # against it.
17561 hardcode_automatic=$hardcode_automatic
17562
17563 # Set to yes if linker adds runtime paths of dependent libraries
17564 # to runtime path list.
17565 inherit_rpath=$inherit_rpath
17566
17567 # Whether libtool must link a program against all its dependency libraries.
17568 link_all_deplibs=$link_all_deplibs
17569
17570 # Fix the shell variable \$srcfile for the compiler.
17571 fix_srcfile_path=$lt_fix_srcfile_path
17572
17573 # Set to "yes" if exported symbols are required.
17574 always_export_symbols=$always_export_symbols
17575
17576 # The commands to list exported symbols.
17577 export_symbols_cmds=$lt_export_symbols_cmds
17578
17579 # Symbols that should not be listed in the preloaded symbols.
17580 exclude_expsyms=$lt_exclude_expsyms
17581
17582 # Symbols that must always be exported.
17583 include_expsyms=$lt_include_expsyms
17584
17585 # Commands necessary for linking programs (against libraries) with templates.
17586 prelink_cmds=$lt_prelink_cmds
17587
17588 # Specify filename containing input files.
17589 file_list_spec=$lt_file_list_spec
17590
17591 # How to hardcode a shared library path into an executable.
17592 hardcode_action=$hardcode_action
17593
17594 # The directories searched by this compiler when creating a shared library.
17595 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17596
17597 # Dependencies to place before and after the objects being linked to
17598 # create a shared library.
17599 predep_objects=$lt_predep_objects
17600 postdep_objects=$lt_postdep_objects
17601 predeps=$lt_predeps
17602 postdeps=$lt_postdeps
17603
17604 # The library search path used internally by the compiler when linking
17605 # a shared library.
17606 compiler_lib_search_path=$lt_compiler_lib_search_path
17607
17608 # ### END LIBTOOL CONFIG
17609
17610 _LT_EOF
17611
17612   case $host_os in
17613   aix3*)
17614     cat <<\_LT_EOF >> "$cfgfile"
17615 # AIX sometimes has problems with the GCC collect2 program.  For some
17616 # reason, if we set the COLLECT_NAMES environment variable, the problems
17617 # vanish in a puff of smoke.
17618 if test "X${COLLECT_NAMES+set}" != Xset; then
17619   COLLECT_NAMES=
17620   export COLLECT_NAMES
17621 fi
17622 _LT_EOF
17623     ;;
17624   esac
17625
17626
17627 ltmain="$ac_aux_dir/ltmain.sh"
17628
17629
17630   # We use sed instead of cat because bash on DJGPP gets confused if
17631   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17632   # text mode, it properly converts lines to CR/LF.  This bash problem
17633   # is reportedly fixed, but why not run on old versions too?
17634   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17635     || (rm -f "$cfgfile"; exit 1)
17636
17637   case $xsi_shell in
17638   yes)
17639     cat << \_LT_EOF >> "$cfgfile"
17640
17641 # func_dirname file append nondir_replacement
17642 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17643 # otherwise set result to NONDIR_REPLACEMENT.
17644 func_dirname ()
17645 {
17646   case ${1} in
17647     */*) func_dirname_result="${1%/*}${2}" ;;
17648     *  ) func_dirname_result="${3}" ;;
17649   esac
17650 }
17651
17652 # func_basename file
17653 func_basename ()
17654 {
17655   func_basename_result="${1##*/}"
17656 }
17657
17658 # func_dirname_and_basename file append nondir_replacement
17659 # perform func_basename and func_dirname in a single function
17660 # call:
17661 #   dirname:  Compute the dirname of FILE.  If nonempty,
17662 #             add APPEND to the result, otherwise set result
17663 #             to NONDIR_REPLACEMENT.
17664 #             value returned in "$func_dirname_result"
17665 #   basename: Compute filename of FILE.
17666 #             value retuned in "$func_basename_result"
17667 # Implementation must be kept synchronized with func_dirname
17668 # and func_basename. For efficiency, we do not delegate to
17669 # those functions but instead duplicate the functionality here.
17670 func_dirname_and_basename ()
17671 {
17672   case ${1} in
17673     */*) func_dirname_result="${1%/*}${2}" ;;
17674     *  ) func_dirname_result="${3}" ;;
17675   esac
17676   func_basename_result="${1##*/}"
17677 }
17678
17679 # func_stripname prefix suffix name
17680 # strip PREFIX and SUFFIX off of NAME.
17681 # PREFIX and SUFFIX must not contain globbing or regex special
17682 # characters, hashes, percent signs, but SUFFIX may contain a leading
17683 # dot (in which case that matches only a dot).
17684 func_stripname ()
17685 {
17686   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17687   # positional parameters, so assign one to ordinary parameter first.
17688   func_stripname_result=${3}
17689   func_stripname_result=${func_stripname_result#"${1}"}
17690   func_stripname_result=${func_stripname_result%"${2}"}
17691 }
17692
17693 # func_opt_split
17694 func_opt_split ()
17695 {
17696   func_opt_split_opt=${1%%=*}
17697   func_opt_split_arg=${1#*=}
17698 }
17699
17700 # func_lo2o object
17701 func_lo2o ()
17702 {
17703   case ${1} in
17704     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17705     *)    func_lo2o_result=${1} ;;
17706   esac
17707 }
17708
17709 # func_xform libobj-or-source
17710 func_xform ()
17711 {
17712   func_xform_result=${1%.*}.lo
17713 }
17714
17715 # func_arith arithmetic-term...
17716 func_arith ()
17717 {
17718   func_arith_result=$(( $* ))
17719 }
17720
17721 # func_len string
17722 # STRING may not start with a hyphen.
17723 func_len ()
17724 {
17725   func_len_result=${#1}
17726 }
17727
17728 _LT_EOF
17729     ;;
17730   *) # Bourne compatible functions.
17731     cat << \_LT_EOF >> "$cfgfile"
17732
17733 # func_dirname file append nondir_replacement
17734 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17735 # otherwise set result to NONDIR_REPLACEMENT.
17736 func_dirname ()
17737 {
17738   # Extract subdirectory from the argument.
17739   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17740   if test "X$func_dirname_result" = "X${1}"; then
17741     func_dirname_result="${3}"
17742   else
17743     func_dirname_result="$func_dirname_result${2}"
17744   fi
17745 }
17746
17747 # func_basename file
17748 func_basename ()
17749 {
17750   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17751 }
17752
17753
17754 # func_stripname prefix suffix name
17755 # strip PREFIX and SUFFIX off of NAME.
17756 # PREFIX and SUFFIX must not contain globbing or regex special
17757 # characters, hashes, percent signs, but SUFFIX may contain a leading
17758 # dot (in which case that matches only a dot).
17759 # func_strip_suffix prefix name
17760 func_stripname ()
17761 {
17762   case ${2} in
17763     .*) func_stripname_result=`$ECHO "X${3}" \
17764            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17765     *)  func_stripname_result=`$ECHO "X${3}" \
17766            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17767   esac
17768 }
17769
17770 # sed scripts:
17771 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17772 my_sed_long_arg='1s/^-[^=]*=//'
17773
17774 # func_opt_split
17775 func_opt_split ()
17776 {
17777   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17778   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17779 }
17780
17781 # func_lo2o object
17782 func_lo2o ()
17783 {
17784   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17785 }
17786
17787 # func_xform libobj-or-source
17788 func_xform ()
17789 {
17790   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17791 }
17792
17793 # func_arith arithmetic-term...
17794 func_arith ()
17795 {
17796   func_arith_result=`expr "$@"`
17797 }
17798
17799 # func_len string
17800 # STRING may not start with a hyphen.
17801 func_len ()
17802 {
17803   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17804 }
17805
17806 _LT_EOF
17807 esac
17808
17809 case $lt_shell_append in
17810   yes)
17811     cat << \_LT_EOF >> "$cfgfile"
17812
17813 # func_append var value
17814 # Append VALUE to the end of shell variable VAR.
17815 func_append ()
17816 {
17817   eval "$1+=\$2"
17818 }
17819 _LT_EOF
17820     ;;
17821   *)
17822     cat << \_LT_EOF >> "$cfgfile"
17823
17824 # func_append var value
17825 # Append VALUE to the end of shell variable VAR.
17826 func_append ()
17827 {
17828   eval "$1=\$$1\$2"
17829 }
17830
17831 _LT_EOF
17832     ;;
17833   esac
17834
17835
17836   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17837     || (rm -f "$cfgfile"; exit 1)
17838
17839   mv -f "$cfgfile" "$ofile" ||
17840     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17841   chmod +x "$ofile"
17842
17843
17844     cat <<_LT_EOF >> "$ofile"
17845
17846 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17847
17848 # The linker used to build libraries.
17849 LD=$lt_LD_CXX
17850
17851 # Commands used to build an old-style archive.
17852 old_archive_cmds=$lt_old_archive_cmds_CXX
17853
17854 # A language specific compiler.
17855 CC=$lt_compiler_CXX
17856
17857 # Is the compiler the GNU compiler?
17858 with_gcc=$GCC_CXX
17859
17860 # Compiler flag to turn off builtin functions.
17861 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17862
17863 # How to pass a linker flag through the compiler.
17864 wl=$lt_lt_prog_compiler_wl_CXX
17865
17866 # Additional compiler flags for building library objects.
17867 pic_flag=$lt_lt_prog_compiler_pic_CXX
17868
17869 # Compiler flag to prevent dynamic linking.
17870 link_static_flag=$lt_lt_prog_compiler_static_CXX
17871
17872 # Does compiler simultaneously support -c and -o options?
17873 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17874
17875 # Whether or not to add -lc for building shared libraries.
17876 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17877
17878 # Whether or not to disallow shared libs when runtime libs are static.
17879 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17880
17881 # Compiler flag to allow reflexive dlopens.
17882 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17883
17884 # Compiler flag to generate shared objects directly from archives.
17885 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17886
17887 # Whether the compiler copes with passing no objects directly.
17888 compiler_needs_object=$lt_compiler_needs_object_CXX
17889
17890 # Create an old-style archive from a shared archive.
17891 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17892
17893 # Create a temporary old-style archive to link instead of a shared archive.
17894 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17895
17896 # Commands used to build a shared archive.
17897 archive_cmds=$lt_archive_cmds_CXX
17898 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17899
17900 # Commands used to build a loadable module if different from building
17901 # a shared archive.
17902 module_cmds=$lt_module_cmds_CXX
17903 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17904
17905 # Whether we are building with GNU ld or not.
17906 with_gnu_ld=$lt_with_gnu_ld_CXX
17907
17908 # Flag that allows shared libraries with undefined symbols to be built.
17909 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17910
17911 # Flag that enforces no undefined symbols.
17912 no_undefined_flag=$lt_no_undefined_flag_CXX
17913
17914 # Flag to hardcode \$libdir into a binary during linking.
17915 # This must work even if \$libdir does not exist
17916 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17917
17918 # If ld is used when linking, flag to hardcode \$libdir into a binary
17919 # during linking.  This must work even if \$libdir does not exist.
17920 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17921
17922 # Whether we need a single "-rpath" flag with a separated argument.
17923 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17924
17925 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17926 # DIR into the resulting binary.
17927 hardcode_direct=$hardcode_direct_CXX
17928
17929 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17930 # DIR into the resulting binary and the resulting library dependency is
17931 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17932 # library is relocated.
17933 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17934
17935 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17936 # into the resulting binary.
17937 hardcode_minus_L=$hardcode_minus_L_CXX
17938
17939 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17940 # into the resulting binary.
17941 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17942
17943 # Set to "yes" if building a shared library automatically hardcodes DIR
17944 # into the library and all subsequent libraries and executables linked
17945 # against it.
17946 hardcode_automatic=$hardcode_automatic_CXX
17947
17948 # Set to yes if linker adds runtime paths of dependent libraries
17949 # to runtime path list.
17950 inherit_rpath=$inherit_rpath_CXX
17951
17952 # Whether libtool must link a program against all its dependency libraries.
17953 link_all_deplibs=$link_all_deplibs_CXX
17954
17955 # Fix the shell variable \$srcfile for the compiler.
17956 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17957
17958 # Set to "yes" if exported symbols are required.
17959 always_export_symbols=$always_export_symbols_CXX
17960
17961 # The commands to list exported symbols.
17962 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17963
17964 # Symbols that should not be listed in the preloaded symbols.
17965 exclude_expsyms=$lt_exclude_expsyms_CXX
17966
17967 # Symbols that must always be exported.
17968 include_expsyms=$lt_include_expsyms_CXX
17969
17970 # Commands necessary for linking programs (against libraries) with templates.
17971 prelink_cmds=$lt_prelink_cmds_CXX
17972
17973 # Specify filename containing input files.
17974 file_list_spec=$lt_file_list_spec_CXX
17975
17976 # How to hardcode a shared library path into an executable.
17977 hardcode_action=$hardcode_action_CXX
17978
17979 # The directories searched by this compiler when creating a shared library.
17980 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17981
17982 # Dependencies to place before and after the objects being linked to
17983 # create a shared library.
17984 predep_objects=$lt_predep_objects_CXX
17985 postdep_objects=$lt_postdep_objects_CXX
17986 predeps=$lt_predeps_CXX
17987 postdeps=$lt_postdeps_CXX
17988
17989 # The library search path used internally by the compiler when linking
17990 # a shared library.
17991 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17992
17993 # ### END LIBTOOL TAG CONFIG: CXX
17994 _LT_EOF
17995
17996  ;;
17997
17998   esac
17999 done # for ac_tag
18000
18001
18002 as_fn_exit 0
18003 _ACEOF
18004 ac_clean_files=$ac_clean_files_save
18005
18006 test $ac_write_fail = 0 ||
18007   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18008
18009
18010 # configure is writing to config.log, and then calls config.status.
18011 # config.status does its own redirection, appending to config.log.
18012 # Unfortunately, on DOS this fails, as config.log is still kept open
18013 # by configure, so config.status won't be able to write to it; its
18014 # output is simply discarded.  So we exec the FD to /dev/null,
18015 # effectively closing config.log, so it can be properly (re)opened and
18016 # appended to by config.status.  When coming back to configure, we
18017 # need to make the FD available again.
18018 if test "$no_create" != yes; then
18019   ac_cs_success=:
18020   ac_config_status_args=
18021   test "$silent" = yes &&
18022     ac_config_status_args="$ac_config_status_args --quiet"
18023   exec 5>/dev/null
18024   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18025   exec 5>>config.log
18026   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18027   # would make configure fail if this is the last instruction.
18028   $ac_cs_success || as_fn_exit 1
18029 fi
18030 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18031   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18032 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18033 fi
18034
18035
18036 abs_srcdir="`cd $srcdir && pwd`"
18037 abs_builddir="`pwd`"
18038 if test "$abs_srcdir" != "$abs_builddir"; then
18039   ${MAKE:-make} mkdir-init
18040 fi