Include "cos-hash.h".
[chise/concord.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for concord 0.9.0.
4 #
5 # Report bugs to <chise-en@lists.chise.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: chise-en@lists.chise.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$ECHO in
565 X*--fallback-echo)
566   # Remove one level of quotation (which was required for Make).
567   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568   ;;
569 esac
570
571 echo=${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 <<EOF
590 $*
591 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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
598
599 if test -z "$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        echo_test_string="`eval $cmd`" &&
606        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607     then
608       break
609     fi
610   done
611 fi
612
613 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
614    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
615    test "X$echo_testing_string" = "X$echo_test_string"; then
616   :
617 else
618   # The Solaris, AIX, and Digital Unix default echo programs unquote
619   # backslashes.  This makes it impossible to quote backslashes using
620   #   echo "$something" | sed 's/\\/\\\\/g'
621   #
622   # So, first we look for a working echo in the user's PATH.
623
624   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625   for dir in $PATH /usr/ucb; do
626     IFS="$lt_save_ifs"
627     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630        test "X$echo_testing_string" = "X$echo_test_string"; then
631       echo="$dir/echo"
632       break
633     fi
634   done
635   IFS="$lt_save_ifs"
636
637   if test "X$echo" = Xecho; then
638     # We didn't find a better echo, so look for alternatives.
639     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
640        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
641        test "X$echo_testing_string" = "X$echo_test_string"; then
642       # This shell has a builtin print -r that does the trick.
643       echo='print -r'
644     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
645          test "X$CONFIG_SHELL" != X/bin/ksh; then
646       # If we have ksh, try running configure again with it.
647       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648       export ORIGINAL_CONFIG_SHELL
649       CONFIG_SHELL=/bin/ksh
650       export CONFIG_SHELL
651       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
652     else
653       # Try using printf.
654       echo='printf %s\n'
655       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
656          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
657          test "X$echo_testing_string" = "X$echo_test_string"; then
658         # Cool, printf works
659         :
660       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661            test "X$echo_testing_string" = 'X\t' &&
662            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663            test "X$echo_testing_string" = "X$echo_test_string"; then
664         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
665         export CONFIG_SHELL
666         SHELL="$CONFIG_SHELL"
667         export SHELL
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670            test "X$echo_testing_string" = 'X\t' &&
671            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673         echo="$CONFIG_SHELL $0 --fallback-echo"
674       else
675         # maybe with a smaller string...
676         prev=:
677
678         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680           then
681             break
682           fi
683           prev="$cmd"
684         done
685
686         if test "$prev" != 'sed 50q "$0"'; then
687           echo_test_string=`eval $prev`
688           export echo_test_string
689           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
690         else
691           # Oops.  We lost completely, so just stick with echo.
692           echo=echo
693         fi
694       fi
695     fi
696   fi
697 fi
698 fi
699
700 # Copy echo and quote the copy suitably for passing to libtool from
701 # the Makefile, instead of quoting the original, which is used later.
702 ECHO=$echo
703 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 fi
706
707
708
709
710 tagnames=${tagnames+${tagnames},}CXX
711
712 tagnames=${tagnames+${tagnames},}F77
713
714 test -n "$DJDIR" || exec 7<&0 </dev/null
715 exec 6>&1
716
717 # Name of the host.
718 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
719 # so uname gets run too.
720 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
721
722 #
723 # Initializations.
724 #
725 ac_default_prefix=/usr/local
726 ac_clean_files=
727 ac_config_libobj_dir=.
728 LIBOBJS=
729 cross_compiling=no
730 subdirs=
731 MFLAGS=
732 MAKEFLAGS=
733
734 # Identity of this package.
735 PACKAGE_NAME='concord'
736 PACKAGE_TARNAME='concord'
737 PACKAGE_VERSION='0.9.0'
738 PACKAGE_STRING='concord 0.9.0'
739 PACKAGE_BUGREPORT='chise-en@lists.chise.org'
740 PACKAGE_URL=''
741
742 ac_unique_file="concord.c"
743 # Factoring default headers for most tests.
744 ac_includes_default="\
745 #include <stdio.h>
746 #ifdef HAVE_SYS_TYPES_H
747 # include <sys/types.h>
748 #endif
749 #ifdef HAVE_SYS_STAT_H
750 # include <sys/stat.h>
751 #endif
752 #ifdef STDC_HEADERS
753 # include <stdlib.h>
754 # include <stddef.h>
755 #else
756 # ifdef HAVE_STDLIB_H
757 #  include <stdlib.h>
758 # endif
759 #endif
760 #ifdef HAVE_STRING_H
761 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
762 #  include <memory.h>
763 # endif
764 # include <string.h>
765 #endif
766 #ifdef HAVE_STRINGS_H
767 # include <strings.h>
768 #endif
769 #ifdef HAVE_INTTYPES_H
770 # include <inttypes.h>
771 #endif
772 #ifdef HAVE_STDINT_H
773 # include <stdint.h>
774 #endif
775 #ifdef HAVE_UNISTD_H
776 # include <unistd.h>
777 #endif"
778
779 ac_subst_vars='LTLIBOBJS
780 LIBOBJS
781 ALLOCA
782 LIBTOOL
783 ac_ct_F77
784 FFLAGS
785 F77
786 CXXCPP
787 ac_ct_CXX
788 CXXFLAGS
789 CXX
790 CPP
791 STRIP
792 RANLIB
793 AR
794 ECHO
795 LN_S
796 EGREP
797 GREP
798 OBJEXT
799 EXEEXT
800 ac_ct_CC
801 CPPFLAGS
802 LDFLAGS
803 CFLAGS
804 CC
805 target_os
806 target_vendor
807 target_cpu
808 target
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 localstatedir
837 sharedstatedir
838 sysconfdir
839 datadir
840 datarootdir
841 libexecdir
842 sbindir
843 bindir
844 program_transform_name
845 prefix
846 exec_prefix
847 PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851 PACKAGE_TARNAME
852 PACKAGE_NAME
853 PATH_SEPARATOR
854 SHELL'
855 ac_subst_files=''
856 ac_user_opts='
857 enable_option_checking
858 enable_shared
859 enable_static
860 enable_fast_install
861 with_gnu_ld
862 enable_libtool_lock
863 with_pic
864 with_tags
865 with_site_includes
866 with_site_libraries
867 '
868       ac_precious_vars='build_alias
869 host_alias
870 target_alias
871 CC
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
876 CPP
877 CXX
878 CXXFLAGS
879 CCC
880 CXXCPP
881 F77
882 FFLAGS'
883
884
885 # Initialize some variables set by options.
886 ac_init_help=
887 ac_init_version=false
888 ac_unrecognized_opts=
889 ac_unrecognized_sep=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
892 cache_file=/dev/null
893 exec_prefix=NONE
894 no_create=
895 no_recursion=
896 prefix=NONE
897 program_prefix=NONE
898 program_suffix=NONE
899 program_transform_name=s,x,x,
900 silent=
901 site=
902 srcdir=
903 verbose=
904 x_includes=NONE
905 x_libraries=NONE
906
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924 infodir='${datarootdir}/info'
925 htmldir='${docdir}'
926 dvidir='${docdir}'
927 pdfdir='${docdir}'
928 psdir='${docdir}'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
932
933 ac_prev=
934 ac_dashdash=
935 for ac_option
936 do
937   # If the previous option needs an argument, assign it.
938   if test -n "$ac_prev"; then
939     eval $ac_prev=\$ac_option
940     ac_prev=
941     continue
942   fi
943
944   case $ac_option in
945   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946   *=)   ac_optarg= ;;
947   *)    ac_optarg=yes ;;
948   esac
949
950   # Accept the important Cygnus configure options, so we can diagnose typos.
951
952   case $ac_dashdash$ac_option in
953   --)
954     ac_dashdash=yes ;;
955
956   -bindir | --bindir | --bindi | --bind | --bin | --bi)
957     ac_prev=bindir ;;
958   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959     bindir=$ac_optarg ;;
960
961   -build | --build | --buil | --bui | --bu)
962     ac_prev=build_alias ;;
963   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964     build_alias=$ac_optarg ;;
965
966   -cache-file | --cache-file | --cache-fil | --cache-fi \
967   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968     ac_prev=cache_file ;;
969   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971     cache_file=$ac_optarg ;;
972
973   --config-cache | -C)
974     cache_file=config.cache ;;
975
976   -datadir | --datadir | --datadi | --datad)
977     ac_prev=datadir ;;
978   -datadir=* | --datadir=* | --datadi=* | --datad=*)
979     datadir=$ac_optarg ;;
980
981   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982   | --dataroo | --dataro | --datar)
983     ac_prev=datarootdir ;;
984   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986     datarootdir=$ac_optarg ;;
987
988   -disable-* | --disable-*)
989     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990     # Reject names that are not valid shell variable names.
991     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992       as_fn_error $? "invalid feature name: $ac_useropt"
993     ac_useropt_orig=$ac_useropt
994     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995     case $ac_user_opts in
996       *"
997 "enable_$ac_useropt"
998 "*) ;;
999       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000          ac_unrecognized_sep=', ';;
1001     esac
1002     eval enable_$ac_useropt=no ;;
1003
1004   -docdir | --docdir | --docdi | --doc | --do)
1005     ac_prev=docdir ;;
1006   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007     docdir=$ac_optarg ;;
1008
1009   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010     ac_prev=dvidir ;;
1011   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012     dvidir=$ac_optarg ;;
1013
1014   -enable-* | --enable-*)
1015     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016     # Reject names that are not valid shell variable names.
1017     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018       as_fn_error $? "invalid feature name: $ac_useropt"
1019     ac_useropt_orig=$ac_useropt
1020     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021     case $ac_user_opts in
1022       *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026          ac_unrecognized_sep=', ';;
1027     esac
1028     eval enable_$ac_useropt=\$ac_optarg ;;
1029
1030   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032   | --exec | --exe | --ex)
1033     ac_prev=exec_prefix ;;
1034   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036   | --exec=* | --exe=* | --ex=*)
1037     exec_prefix=$ac_optarg ;;
1038
1039   -gas | --gas | --ga | --g)
1040     # Obsolete; use --with-gas.
1041     with_gas=yes ;;
1042
1043   -help | --help | --hel | --he | -h)
1044     ac_init_help=long ;;
1045   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046     ac_init_help=recursive ;;
1047   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048     ac_init_help=short ;;
1049
1050   -host | --host | --hos | --ho)
1051     ac_prev=host_alias ;;
1052   -host=* | --host=* | --hos=* | --ho=*)
1053     host_alias=$ac_optarg ;;
1054
1055   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056     ac_prev=htmldir ;;
1057   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058   | --ht=*)
1059     htmldir=$ac_optarg ;;
1060
1061   -includedir | --includedir | --includedi | --included | --include \
1062   | --includ | --inclu | --incl | --inc)
1063     ac_prev=includedir ;;
1064   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065   | --includ=* | --inclu=* | --incl=* | --inc=*)
1066     includedir=$ac_optarg ;;
1067
1068   -infodir | --infodir | --infodi | --infod | --info | --inf)
1069     ac_prev=infodir ;;
1070   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071     infodir=$ac_optarg ;;
1072
1073   -libdir | --libdir | --libdi | --libd)
1074     ac_prev=libdir ;;
1075   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076     libdir=$ac_optarg ;;
1077
1078   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079   | --libexe | --libex | --libe)
1080     ac_prev=libexecdir ;;
1081   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082   | --libexe=* | --libex=* | --libe=*)
1083     libexecdir=$ac_optarg ;;
1084
1085   -localedir | --localedir | --localedi | --localed | --locale)
1086     ac_prev=localedir ;;
1087   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088     localedir=$ac_optarg ;;
1089
1090   -localstatedir | --localstatedir | --localstatedi | --localstated \
1091   | --localstate | --localstat | --localsta | --localst | --locals)
1092     ac_prev=localstatedir ;;
1093   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095     localstatedir=$ac_optarg ;;
1096
1097   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098     ac_prev=mandir ;;
1099   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100     mandir=$ac_optarg ;;
1101
1102   -nfp | --nfp | --nf)
1103     # Obsolete; use --without-fp.
1104     with_fp=no ;;
1105
1106   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107   | --no-cr | --no-c | -n)
1108     no_create=yes ;;
1109
1110   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112     no_recursion=yes ;;
1113
1114   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116   | --oldin | --oldi | --old | --ol | --o)
1117     ac_prev=oldincludedir ;;
1118   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121     oldincludedir=$ac_optarg ;;
1122
1123   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124     ac_prev=prefix ;;
1125   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126     prefix=$ac_optarg ;;
1127
1128   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129   | --program-pre | --program-pr | --program-p)
1130     ac_prev=program_prefix ;;
1131   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133     program_prefix=$ac_optarg ;;
1134
1135   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136   | --program-suf | --program-su | --program-s)
1137     ac_prev=program_suffix ;;
1138   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140     program_suffix=$ac_optarg ;;
1141
1142   -program-transform-name | --program-transform-name \
1143   | --program-transform-nam | --program-transform-na \
1144   | --program-transform-n | --program-transform- \
1145   | --program-transform | --program-transfor \
1146   | --program-transfo | --program-transf \
1147   | --program-trans | --program-tran \
1148   | --progr-tra | --program-tr | --program-t)
1149     ac_prev=program_transform_name ;;
1150   -program-transform-name=* | --program-transform-name=* \
1151   | --program-transform-nam=* | --program-transform-na=* \
1152   | --program-transform-n=* | --program-transform-=* \
1153   | --program-transform=* | --program-transfor=* \
1154   | --program-transfo=* | --program-transf=* \
1155   | --program-trans=* | --program-tran=* \
1156   | --progr-tra=* | --program-tr=* | --program-t=*)
1157     program_transform_name=$ac_optarg ;;
1158
1159   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160     ac_prev=pdfdir ;;
1161   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162     pdfdir=$ac_optarg ;;
1163
1164   -psdir | --psdir | --psdi | --psd | --ps)
1165     ac_prev=psdir ;;
1166   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167     psdir=$ac_optarg ;;
1168
1169   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170   | -silent | --silent | --silen | --sile | --sil)
1171     silent=yes ;;
1172
1173   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174     ac_prev=sbindir ;;
1175   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176   | --sbi=* | --sb=*)
1177     sbindir=$ac_optarg ;;
1178
1179   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181   | --sharedst | --shareds | --shared | --share | --shar \
1182   | --sha | --sh)
1183     ac_prev=sharedstatedir ;;
1184   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187   | --sha=* | --sh=*)
1188     sharedstatedir=$ac_optarg ;;
1189
1190   -site | --site | --sit)
1191     ac_prev=site ;;
1192   -site=* | --site=* | --sit=*)
1193     site=$ac_optarg ;;
1194
1195   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196     ac_prev=srcdir ;;
1197   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198     srcdir=$ac_optarg ;;
1199
1200   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201   | --syscon | --sysco | --sysc | --sys | --sy)
1202     ac_prev=sysconfdir ;;
1203   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205     sysconfdir=$ac_optarg ;;
1206
1207   -target | --target | --targe | --targ | --tar | --ta | --t)
1208     ac_prev=target_alias ;;
1209   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210     target_alias=$ac_optarg ;;
1211
1212   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213     verbose=yes ;;
1214
1215   -version | --version | --versio | --versi | --vers | -V)
1216     ac_init_version=: ;;
1217
1218   -with-* | --with-*)
1219     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222       as_fn_error $? "invalid package name: $ac_useropt"
1223     ac_useropt_orig=$ac_useropt
1224     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225     case $ac_user_opts in
1226       *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230          ac_unrecognized_sep=', ';;
1231     esac
1232     eval with_$ac_useropt=\$ac_optarg ;;
1233
1234   -without-* | --without-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error $? "invalid package name: $ac_useropt"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval with_$ac_useropt=no ;;
1249
1250   --x)
1251     # Obsolete; use --with-x.
1252     with_x=yes ;;
1253
1254   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255   | --x-incl | --x-inc | --x-in | --x-i)
1256     ac_prev=x_includes ;;
1257   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259     x_includes=$ac_optarg ;;
1260
1261   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263     ac_prev=x_libraries ;;
1264   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266     x_libraries=$ac_optarg ;;
1267
1268   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1269 Try \`$0 --help' for more information"
1270     ;;
1271
1272   *=*)
1273     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274     # Reject names that are not valid shell variable names.
1275     case $ac_envvar in #(
1276       '' | [0-9]* | *[!_$as_cr_alnum]* )
1277       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1278     esac
1279     eval $ac_envvar=\$ac_optarg
1280     export $ac_envvar ;;
1281
1282   *)
1283     # FIXME: should be removed in autoconf 3.0.
1284     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288     ;;
1289
1290   esac
1291 done
1292
1293 if test -n "$ac_prev"; then
1294   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295   as_fn_error $? "missing argument to $ac_option"
1296 fi
1297
1298 if test -n "$ac_unrecognized_opts"; then
1299   case $enable_option_checking in
1300     no) ;;
1301     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1302     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303   esac
1304 fi
1305
1306 # Check all directory arguments for consistency.
1307 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308                 datadir sysconfdir sharedstatedir localstatedir includedir \
1309                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310                 libdir localedir mandir
1311 do
1312   eval ac_val=\$$ac_var
1313   # Remove trailing slashes.
1314   case $ac_val in
1315     */ )
1316       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317       eval $ac_var=\$ac_val;;
1318   esac
1319   # Be sure to have absolute directory names.
1320   case $ac_val in
1321     [\\/$]* | ?:[\\/]* )  continue;;
1322     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323   esac
1324   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325 done
1326
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1333
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336   if test "x$build_alias" = x; then
1337     cross_compiling=maybe
1338   elif test "x$build_alias" != "x$host_alias"; then
1339     cross_compiling=yes
1340   fi
1341 fi
1342
1343 ac_tool_prefix=
1344 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346 test "$silent" = yes && exec 6>/dev/null
1347
1348
1349 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di=`ls -di .` &&
1351 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352   as_fn_error $? "working directory cannot be determined"
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354   as_fn_error $? "pwd does not report name of working directory"
1355
1356
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359   ac_srcdir_defaulted=yes
1360   # Try the directory containing this script, then the parent directory.
1361   ac_confdir=`$as_dirname -- "$as_myself" ||
1362 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363          X"$as_myself" : 'X\(//\)[^/]' \| \
1364          X"$as_myself" : 'X\(//\)$' \| \
1365          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366 $as_echo X"$as_myself" |
1367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\/\)[^/].*/{
1372             s//\1/
1373             q
1374           }
1375           /^X\(\/\/\)$/{
1376             s//\1/
1377             q
1378           }
1379           /^X\(\/\).*/{
1380             s//\1/
1381             q
1382           }
1383           s/.*/./; q'`
1384   srcdir=$ac_confdir
1385   if test ! -r "$srcdir/$ac_unique_file"; then
1386     srcdir=..
1387   fi
1388 else
1389   ac_srcdir_defaulted=no
1390 fi
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1394 fi
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1398         pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401   srcdir=.
1402 fi
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411   eval ac_env_${ac_var}_value=\$${ac_var}
1412   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1415
1416 #
1417 # Report the --help message.
1418 #
1419 if test "$ac_init_help" = "long"; then
1420   # Omit some internal or obsolete options to make the list less imposing.
1421   # This message is too long to be a string in the A/UX 3.1 sh.
1422   cat <<_ACEOF
1423 \`configure' configures concord 0.9.0 to adapt to many kinds of systems.
1424
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE.  See below for descriptions of some of the useful variables.
1429
1430 Defaults for the options are specified in brackets.
1431
1432 Configuration:
1433   -h, --help              display this help and exit
1434       --help=short        display options specific to this package
1435       --help=recursive    display the short help of all the included packages
1436   -V, --version           display version information and exit
1437   -q, --quiet, --silent   do not print \`checking ...' messages
1438       --cache-file=FILE   cache test results in FILE [disabled]
1439   -C, --config-cache      alias for \`--cache-file=config.cache'
1440   -n, --no-create         do not create output files
1441       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1442
1443 Installation directories:
1444   --prefix=PREFIX         install architecture-independent files in PREFIX
1445                           [$ac_default_prefix]
1446   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1447                           [PREFIX]
1448
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1453
1454 For better control, use the options below.
1455
1456 Fine tuning of the installation directories:
1457   --bindir=DIR            user executables [EPREFIX/bin]
1458   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1459   --libexecdir=DIR        program executables [EPREFIX/libexec]
1460   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1461   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1462   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1463   --libdir=DIR            object code libraries [EPREFIX/lib]
1464   --includedir=DIR        C header files [PREFIX/include]
1465   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1466   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1467   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1468   --infodir=DIR           info documentation [DATAROOTDIR/info]
1469   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1470   --mandir=DIR            man documentation [DATAROOTDIR/man]
1471   --docdir=DIR            documentation root [DATAROOTDIR/doc/concord]
1472   --htmldir=DIR           html documentation [DOCDIR]
1473   --dvidir=DIR            dvi documentation [DOCDIR]
1474   --pdfdir=DIR            pdf documentation [DOCDIR]
1475   --psdir=DIR             ps documentation [DOCDIR]
1476 _ACEOF
1477
1478   cat <<\_ACEOF
1479
1480 System types:
1481   --build=BUILD     configure for building on BUILD [guessed]
1482   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1483   --target=TARGET   configure for building compilers for TARGET [HOST]
1484 _ACEOF
1485 fi
1486
1487 if test -n "$ac_init_help"; then
1488   case $ac_init_help in
1489      short | recursive ) echo "Configuration of concord 0.9.0:";;
1490    esac
1491   cat <<\_ACEOF
1492
1493 Optional Features:
1494   --disable-option-checking  ignore unrecognized --enable/--with options
1495   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1496   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1497   --enable-shared[=PKGS]  build shared libraries [default=yes]
1498   --enable-static[=PKGS]  build static libraries [default=yes]
1499   --enable-fast-install[=PKGS]
1500                           optimize for fast installation [default=yes]
1501   --disable-libtool-lock  avoid locking (might break parallel builds)
1502
1503 Optional Packages:
1504   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1505   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1506   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1507   --with-pic              try to use only PIC/non-PIC objects [default=use
1508                           both]
1509   --with-tags[=TAGS]      include additional configurations [automatic]
1510 --with-site-includes=PATH List of directories to search first for header files
1511
1512 --with-site-libraries=PATH List of directories to search first for libraries
1513
1514
1515 Some influential environment variables:
1516   CC          C compiler command
1517   CFLAGS      C compiler flags
1518   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1519               nonstandard directory <lib dir>
1520   LIBS        libraries to pass to the linker, e.g. -l<library>
1521   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522               you have headers in a nonstandard directory <include dir>
1523   CPP         C preprocessor
1524   CXX         C++ compiler command
1525   CXXFLAGS    C++ compiler flags
1526   CXXCPP      C++ preprocessor
1527   F77         Fortran 77 compiler command
1528   FFLAGS      Fortran 77 compiler flags
1529
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1532
1533 Report bugs to <chise-en@lists.chise.org>.
1534 _ACEOF
1535 ac_status=$?
1536 fi
1537
1538 if test "$ac_init_help" = "recursive"; then
1539   # If there are subdirs, report their specific --help.
1540   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541     test -d "$ac_dir" ||
1542       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543       continue
1544     ac_builddir=.
1545
1546 case "$ac_dir" in
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *)
1549   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550   # A ".." for each directory in $ac_dir_suffix.
1551   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552   case $ac_top_builddir_sub in
1553   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555   esac ;;
1556 esac
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1561
1562 case $srcdir in
1563   .)  # We are building in place.
1564     ac_srcdir=.
1565     ac_top_srcdir=$ac_top_builddir_sub
1566     ac_abs_top_srcdir=$ac_pwd ;;
1567   [\\/]* | ?:[\\/]* )  # Absolute name.
1568     ac_srcdir=$srcdir$ac_dir_suffix;
1569     ac_top_srcdir=$srcdir
1570     ac_abs_top_srcdir=$srcdir ;;
1571   *) # Relative name.
1572     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573     ac_top_srcdir=$ac_top_build_prefix$srcdir
1574     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 esac
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578     cd "$ac_dir" || { ac_status=$?; continue; }
1579     # Check for guested configure.
1580     if test -f "$ac_srcdir/configure.gnu"; then
1581       echo &&
1582       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583     elif test -f "$ac_srcdir/configure"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure" --help=recursive
1586     else
1587       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588     fi || ac_status=$?
1589     cd "$ac_pwd" || { ac_status=$?; break; }
1590   done
1591 fi
1592
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595   cat <<\_ACEOF
1596 concord configure 0.9.0
1597 generated by GNU Autoconf 2.69
1598
1599 Copyright (C) 2012 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603   exit
1604 fi
1605
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1609
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   rm -f conftest.$ac_objext
1617   if { { ac_try="$ac_compile"
1618 case "(($ac_try" in
1619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620   *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624   (eval "$ac_compile") 2>conftest.err
1625   ac_status=$?
1626   if test -s conftest.err; then
1627     grep -v '^ *+' conftest.err >conftest.er1
1628     cat conftest.er1 >&5
1629     mv -f conftest.er1 conftest.err
1630   fi
1631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632   test $ac_status = 0; } && {
1633          test -z "$ac_c_werror_flag" ||
1634          test ! -s conftest.err
1635        } && test -s conftest.$ac_objext; then :
1636   ac_retval=0
1637 else
1638   $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641         ac_retval=1
1642 fi
1643   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644   as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_compile
1647
1648 # ac_fn_c_try_link LINENO
1649 # -----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_link ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   rm -f conftest.$ac_objext conftest$ac_exeext
1655   if { { ac_try="$ac_link"
1656 case "(($ac_try" in
1657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658   *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662   (eval "$ac_link") 2>conftest.err
1663   ac_status=$?
1664   if test -s conftest.err; then
1665     grep -v '^ *+' conftest.err >conftest.er1
1666     cat conftest.er1 >&5
1667     mv -f conftest.er1 conftest.err
1668   fi
1669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670   test $ac_status = 0; } && {
1671          test -z "$ac_c_werror_flag" ||
1672          test ! -s conftest.err
1673        } && test -s conftest$ac_exeext && {
1674          test "$cross_compiling" = yes ||
1675          test -x conftest$ac_exeext
1676        }; then :
1677   ac_retval=0
1678 else
1679   $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682         ac_retval=1
1683 fi
1684   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686   # interfere with the next link command; also delete a directory that is
1687   # left behind by Apple's compiler.  We do this before executing the actions.
1688   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690   as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_link
1693
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_cpp ()
1698 {
1699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700   if { { ac_try="$ac_cpp conftest.$ac_ext"
1701 case "(($ac_try" in
1702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703   *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708   ac_status=$?
1709   if test -s conftest.err; then
1710     grep -v '^ *+' conftest.err >conftest.er1
1711     cat conftest.er1 >&5
1712     mv -f conftest.er1 conftest.err
1713   fi
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; } > conftest.i && {
1716          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717          test ! -s conftest.err
1718        }; then :
1719   ac_retval=0
1720 else
1721   $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724     ac_retval=1
1725 fi
1726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727   as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_cpp
1730
1731 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1734 # the include files in INCLUDES and setting the cache variable VAR
1735 # accordingly.
1736 ac_fn_c_check_header_mongrel ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   if eval \${$3+:} false; then :
1740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743   $as_echo_n "(cached) " >&6
1744 fi
1745 eval ac_res=\$$3
1746                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 else
1749   # Is the header compilable?
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1751 $as_echo_n "checking $2 usability... " >&6; }
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h.  */
1754 $4
1755 #include <$2>
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"; then :
1758   ac_header_compiler=yes
1759 else
1760   ac_header_compiler=no
1761 fi
1762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1764 $as_echo "$ac_header_compiler" >&6; }
1765
1766 # Is the header present?
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1768 $as_echo_n "checking $2 presence... " >&6; }
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h.  */
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_cpp "$LINENO"; then :
1774   ac_header_preproc=yes
1775 else
1776   ac_header_preproc=no
1777 fi
1778 rm -f conftest.err conftest.i conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1780 $as_echo "$ac_header_preproc" >&6; }
1781
1782 # So?  What about this header?
1783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1784   yes:no: )
1785     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1786 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1787     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789     ;;
1790   no:yes:* )
1791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1792 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1793     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1794 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1796 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1797     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1798 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 ( $as_echo "## --------------------------------------- ##
1802 ## Report this to chise-en@lists.chise.org ##
1803 ## --------------------------------------- ##"
1804      ) | sed "s/^/$as_me: WARNING:     /" >&2
1805     ;;
1806 esac
1807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810   $as_echo_n "(cached) " >&6
1811 else
1812   eval "$3=\$ac_header_compiler"
1813 fi
1814 eval ac_res=\$$3
1815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 fi
1818   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_check_header_mongrel
1821
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1826 ac_fn_c_try_run ()
1827 {
1828   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829   if { { ac_try="$ac_link"
1830 case "(($ac_try" in
1831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832   *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836   (eval "$ac_link") 2>&5
1837   ac_status=$?
1838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840   { { case "(($ac_try" in
1841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842   *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846   (eval "$ac_try") 2>&5
1847   ac_status=$?
1848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849   test $ac_status = 0; }; }; then :
1850   ac_retval=0
1851 else
1852   $as_echo "$as_me: program exited with status $ac_status" >&5
1853        $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856        ac_retval=$ac_status
1857 fi
1858   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860   as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_run
1863
1864 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists and can be compiled using the include files in
1867 # INCLUDES, setting the cache variable VAR accordingly.
1868 ac_fn_c_check_header_compile ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874   $as_echo_n "(cached) " >&6
1875 else
1876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h.  */
1878 $4
1879 #include <$2>
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882   eval "$3=yes"
1883 else
1884   eval "$3=no"
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 fi
1888 eval ac_res=\$$3
1889                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892
1893 } # ac_fn_c_check_header_compile
1894
1895 # ac_fn_c_check_func LINENO FUNC VAR
1896 # ----------------------------------
1897 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1898 ac_fn_c_check_func ()
1899 {
1900   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval \${$3+:} false; then :
1904   $as_echo_n "(cached) " >&6
1905 else
1906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h.  */
1908 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1910 #define $2 innocuous_$2
1911
1912 /* System header to define __stub macros and hopefully few prototypes,
1913     which can conflict with char $2 (); below.
1914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1915     <limits.h> exists even on freestanding compilers.  */
1916
1917 #ifdef __STDC__
1918 # include <limits.h>
1919 #else
1920 # include <assert.h>
1921 #endif
1922
1923 #undef $2
1924
1925 /* Override any GCC internal prototype to avoid an error.
1926    Use char because int might match the return type of a GCC
1927    builtin and then its argument prototype would still apply.  */
1928 #ifdef __cplusplus
1929 extern "C"
1930 #endif
1931 char $2 ();
1932 /* The GNU C library defines this for functions which it implements
1933     to always fail with ENOSYS.  Some functions are actually named
1934     something starting with __ and the normal name is an alias.  */
1935 #if defined __stub_$2 || defined __stub___$2
1936 choke me
1937 #endif
1938
1939 int
1940 main ()
1941 {
1942 return $2 ();
1943   ;
1944   return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_link "$LINENO"; then :
1948   eval "$3=yes"
1949 else
1950   eval "$3=no"
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext \
1953     conftest$ac_exeext conftest.$ac_ext
1954 fi
1955 eval ac_res=\$$3
1956                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959
1960 } # ac_fn_c_check_func
1961
1962 # ac_fn_cxx_try_compile LINENO
1963 # ----------------------------
1964 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1965 ac_fn_cxx_try_compile ()
1966 {
1967   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968   rm -f conftest.$ac_objext
1969   if { { ac_try="$ac_compile"
1970 case "(($ac_try" in
1971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972   *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976   (eval "$ac_compile") 2>conftest.err
1977   ac_status=$?
1978   if test -s conftest.err; then
1979     grep -v '^ *+' conftest.err >conftest.er1
1980     cat conftest.er1 >&5
1981     mv -f conftest.er1 conftest.err
1982   fi
1983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984   test $ac_status = 0; } && {
1985          test -z "$ac_cxx_werror_flag" ||
1986          test ! -s conftest.err
1987        } && test -s conftest.$ac_objext; then :
1988   ac_retval=0
1989 else
1990   $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993         ac_retval=1
1994 fi
1995   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996   as_fn_set_status $ac_retval
1997
1998 } # ac_fn_cxx_try_compile
1999
2000 # ac_fn_cxx_try_cpp LINENO
2001 # ------------------------
2002 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_cxx_try_cpp ()
2004 {
2005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006   if { { ac_try="$ac_cpp conftest.$ac_ext"
2007 case "(($ac_try" in
2008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009   *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2014   ac_status=$?
2015   if test -s conftest.err; then
2016     grep -v '^ *+' conftest.err >conftest.er1
2017     cat conftest.er1 >&5
2018     mv -f conftest.er1 conftest.err
2019   fi
2020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021   test $ac_status = 0; } > conftest.i && {
2022          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2023          test ! -s conftest.err
2024        }; then :
2025   ac_retval=0
2026 else
2027   $as_echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2029
2030     ac_retval=1
2031 fi
2032   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033   as_fn_set_status $ac_retval
2034
2035 } # ac_fn_cxx_try_cpp
2036
2037 # ac_fn_cxx_try_link LINENO
2038 # -------------------------
2039 # Try to link conftest.$ac_ext, and return whether this succeeded.
2040 ac_fn_cxx_try_link ()
2041 {
2042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043   rm -f conftest.$ac_objext conftest$ac_exeext
2044   if { { ac_try="$ac_link"
2045 case "(($ac_try" in
2046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047   *) ac_try_echo=$ac_try;;
2048 esac
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051   (eval "$ac_link") 2>conftest.err
2052   ac_status=$?
2053   if test -s conftest.err; then
2054     grep -v '^ *+' conftest.err >conftest.er1
2055     cat conftest.er1 >&5
2056     mv -f conftest.er1 conftest.err
2057   fi
2058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059   test $ac_status = 0; } && {
2060          test -z "$ac_cxx_werror_flag" ||
2061          test ! -s conftest.err
2062        } && test -s conftest$ac_exeext && {
2063          test "$cross_compiling" = yes ||
2064          test -x conftest$ac_exeext
2065        }; then :
2066   ac_retval=0
2067 else
2068   $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071         ac_retval=1
2072 fi
2073   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2074   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2075   # interfere with the next link command; also delete a directory that is
2076   # left behind by Apple's compiler.  We do this before executing the actions.
2077   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2078   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079   as_fn_set_status $ac_retval
2080
2081 } # ac_fn_cxx_try_link
2082
2083 # ac_fn_cxx_check_func LINENO FUNC VAR
2084 # ------------------------------------
2085 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2086 ac_fn_cxx_check_func ()
2087 {
2088   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval \${$3+:} false; then :
2092   $as_echo_n "(cached) " >&6
2093 else
2094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2098 #define $2 innocuous_$2
2099
2100 /* System header to define __stub macros and hopefully few prototypes,
2101     which can conflict with char $2 (); below.
2102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2103     <limits.h> exists even on freestanding compilers.  */
2104
2105 #ifdef __STDC__
2106 # include <limits.h>
2107 #else
2108 # include <assert.h>
2109 #endif
2110
2111 #undef $2
2112
2113 /* Override any GCC internal prototype to avoid an error.
2114    Use char because int might match the return type of a GCC
2115    builtin and then its argument prototype would still apply.  */
2116 #ifdef __cplusplus
2117 extern "C"
2118 #endif
2119 char $2 ();
2120 /* The GNU C library defines this for functions which it implements
2121     to always fail with ENOSYS.  Some functions are actually named
2122     something starting with __ and the normal name is an alias.  */
2123 #if defined __stub_$2 || defined __stub___$2
2124 choke me
2125 #endif
2126
2127 int
2128 main ()
2129 {
2130 return $2 ();
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 if ac_fn_cxx_try_link "$LINENO"; then :
2136   eval "$3=yes"
2137 else
2138   eval "$3=no"
2139 fi
2140 rm -f core conftest.err conftest.$ac_objext \
2141     conftest$ac_exeext conftest.$ac_ext
2142 fi
2143 eval ac_res=\$$3
2144                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2146   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147
2148 } # ac_fn_cxx_check_func
2149
2150 # ac_fn_f77_try_compile LINENO
2151 # ----------------------------
2152 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2153 ac_fn_f77_try_compile ()
2154 {
2155   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156   rm -f conftest.$ac_objext
2157   if { { ac_try="$ac_compile"
2158 case "(($ac_try" in
2159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160   *) ac_try_echo=$ac_try;;
2161 esac
2162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163 $as_echo "$ac_try_echo"; } >&5
2164   (eval "$ac_compile") 2>conftest.err
2165   ac_status=$?
2166   if test -s conftest.err; then
2167     grep -v '^ *+' conftest.err >conftest.er1
2168     cat conftest.er1 >&5
2169     mv -f conftest.er1 conftest.err
2170   fi
2171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172   test $ac_status = 0; } && {
2173          test -z "$ac_f77_werror_flag" ||
2174          test ! -s conftest.err
2175        } && test -s conftest.$ac_objext; then :
2176   ac_retval=0
2177 else
2178   $as_echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2180
2181         ac_retval=1
2182 fi
2183   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184   as_fn_set_status $ac_retval
2185
2186 } # ac_fn_f77_try_compile
2187
2188 # ac_fn_f77_try_link LINENO
2189 # -------------------------
2190 # Try to link conftest.$ac_ext, and return whether this succeeded.
2191 ac_fn_f77_try_link ()
2192 {
2193   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194   rm -f conftest.$ac_objext conftest$ac_exeext
2195   if { { ac_try="$ac_link"
2196 case "(($ac_try" in
2197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198   *) ac_try_echo=$ac_try;;
2199 esac
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202   (eval "$ac_link") 2>conftest.err
2203   ac_status=$?
2204   if test -s conftest.err; then
2205     grep -v '^ *+' conftest.err >conftest.er1
2206     cat conftest.er1 >&5
2207     mv -f conftest.er1 conftest.err
2208   fi
2209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2210   test $ac_status = 0; } && {
2211          test -z "$ac_f77_werror_flag" ||
2212          test ! -s conftest.err
2213        } && test -s conftest$ac_exeext && {
2214          test "$cross_compiling" = yes ||
2215          test -x conftest$ac_exeext
2216        }; then :
2217   ac_retval=0
2218 else
2219   $as_echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2221
2222         ac_retval=1
2223 fi
2224   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2225   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2226   # interfere with the next link command; also delete a directory that is
2227   # left behind by Apple's compiler.  We do this before executing the actions.
2228   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2229   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230   as_fn_set_status $ac_retval
2231
2232 } # ac_fn_f77_try_link
2233
2234 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2235 # --------------------------------------------
2236 # Tries to find the compile-time value of EXPR in a program that includes
2237 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2238 # computed
2239 ac_fn_c_compute_int ()
2240 {
2241   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242   if test "$cross_compiling" = yes; then
2243     # Depending upon the size, compute the lo and hi bounds.
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h.  */
2246 $4
2247 int
2248 main ()
2249 {
2250 static int test_array [1 - 2 * !(($2) >= 0)];
2251 test_array [0] = 0;
2252 return test_array [0];
2253
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259   ac_lo=0 ac_mid=0
2260   while :; do
2261     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h.  */
2263 $4
2264 int
2265 main ()
2266 {
2267 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2268 test_array [0] = 0;
2269 return test_array [0];
2270
2271   ;
2272   return 0;
2273 }
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276   ac_hi=$ac_mid; break
2277 else
2278   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2279                         if test $ac_lo -le $ac_mid; then
2280                           ac_lo= ac_hi=
2281                           break
2282                         fi
2283                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2284 fi
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286   done
2287 else
2288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h.  */
2290 $4
2291 int
2292 main ()
2293 {
2294 static int test_array [1 - 2 * !(($2) < 0)];
2295 test_array [0] = 0;
2296 return test_array [0];
2297
2298   ;
2299   return 0;
2300 }
2301 _ACEOF
2302 if ac_fn_c_try_compile "$LINENO"; then :
2303   ac_hi=-1 ac_mid=-1
2304   while :; do
2305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h.  */
2307 $4
2308 int
2309 main ()
2310 {
2311 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2312 test_array [0] = 0;
2313 return test_array [0];
2314
2315   ;
2316   return 0;
2317 }
2318 _ACEOF
2319 if ac_fn_c_try_compile "$LINENO"; then :
2320   ac_lo=$ac_mid; break
2321 else
2322   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2323                         if test $ac_mid -le $ac_hi; then
2324                           ac_lo= ac_hi=
2325                           break
2326                         fi
2327                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2328 fi
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330   done
2331 else
2332   ac_lo= ac_hi=
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 # Binary search between lo and hi bounds.
2338 while test "x$ac_lo" != "x$ac_hi"; do
2339   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h.  */
2342 $4
2343 int
2344 main ()
2345 {
2346 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2347 test_array [0] = 0;
2348 return test_array [0];
2349
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 if ac_fn_c_try_compile "$LINENO"; then :
2355   ac_hi=$ac_mid
2356 else
2357   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2358 fi
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 done
2361 case $ac_lo in #((
2362 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2363 '') ac_retval=1 ;;
2364 esac
2365   else
2366     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h.  */
2368 $4
2369 static long int longval () { return $2; }
2370 static unsigned long int ulongval () { return $2; }
2371 #include <stdio.h>
2372 #include <stdlib.h>
2373 int
2374 main ()
2375 {
2376
2377   FILE *f = fopen ("conftest.val", "w");
2378   if (! f)
2379     return 1;
2380   if (($2) < 0)
2381     {
2382       long int i = longval ();
2383       if (i != ($2))
2384         return 1;
2385       fprintf (f, "%ld", i);
2386     }
2387   else
2388     {
2389       unsigned long int i = ulongval ();
2390       if (i != ($2))
2391         return 1;
2392       fprintf (f, "%lu", i);
2393     }
2394   /* Do not output a trailing newline, as this causes \r\n confusion
2395      on some platforms.  */
2396   return ferror (f) || fclose (f) != 0;
2397
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 if ac_fn_c_try_run "$LINENO"; then :
2403   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2404 else
2405   ac_retval=1
2406 fi
2407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2408   conftest.$ac_objext conftest.beam conftest.$ac_ext
2409 rm -f conftest.val
2410
2411   fi
2412   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413   as_fn_set_status $ac_retval
2414
2415 } # ac_fn_c_compute_int
2416
2417 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2418 # -------------------------------------------
2419 # Tests whether TYPE exists after having included INCLUDES, setting cache
2420 # variable VAR accordingly.
2421 ac_fn_c_check_type ()
2422 {
2423   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if eval \${$3+:} false; then :
2427   $as_echo_n "(cached) " >&6
2428 else
2429   eval "$3=no"
2430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h.  */
2432 $4
2433 int
2434 main ()
2435 {
2436 if (sizeof ($2))
2437          return 0;
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 if ac_fn_c_try_compile "$LINENO"; then :
2443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h.  */
2445 $4
2446 int
2447 main ()
2448 {
2449 if (sizeof (($2)))
2450             return 0;
2451   ;
2452   return 0;
2453 }
2454 _ACEOF
2455 if ac_fn_c_try_compile "$LINENO"; then :
2456
2457 else
2458   eval "$3=yes"
2459 fi
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 fi
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 fi
2464 eval ac_res=\$$3
2465                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2468
2469 } # ac_fn_c_check_type
2470 cat >config.log <<_ACEOF
2471 This file contains any messages produced by compilers while
2472 running configure, to aid debugging if configure makes a mistake.
2473
2474 It was created by concord $as_me 0.9.0, which was
2475 generated by GNU Autoconf 2.69.  Invocation command line was
2476
2477   $ $0 $@
2478
2479 _ACEOF
2480 exec 5>>config.log
2481 {
2482 cat <<_ASUNAME
2483 ## --------- ##
2484 ## Platform. ##
2485 ## --------- ##
2486
2487 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2488 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2489 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2490 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2491 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2492
2493 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2494 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2495
2496 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2497 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2498 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2499 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2500 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2501 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2502 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2503
2504 _ASUNAME
2505
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511     $as_echo "PATH: $as_dir"
2512   done
2513 IFS=$as_save_IFS
2514
2515 } >&5
2516
2517 cat >&5 <<_ACEOF
2518
2519
2520 ## ----------- ##
2521 ## Core tests. ##
2522 ## ----------- ##
2523
2524 _ACEOF
2525
2526
2527 # Keep a trace of the command line.
2528 # Strip out --no-create and --no-recursion so they do not pile up.
2529 # Strip out --silent because we don't want to record it for future runs.
2530 # Also quote any args containing shell meta-characters.
2531 # Make two passes to allow for proper duplicate-argument suppression.
2532 ac_configure_args=
2533 ac_configure_args0=
2534 ac_configure_args1=
2535 ac_must_keep_next=false
2536 for ac_pass in 1 2
2537 do
2538   for ac_arg
2539   do
2540     case $ac_arg in
2541     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2542     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2543     | -silent | --silent | --silen | --sile | --sil)
2544       continue ;;
2545     *\'*)
2546       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2547     esac
2548     case $ac_pass in
2549     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2550     2)
2551       as_fn_append ac_configure_args1 " '$ac_arg'"
2552       if test $ac_must_keep_next = true; then
2553         ac_must_keep_next=false # Got value, back to normal.
2554       else
2555         case $ac_arg in
2556           *=* | --config-cache | -C | -disable-* | --disable-* \
2557           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2558           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2559           | -with-* | --with-* | -without-* | --without-* | --x)
2560             case "$ac_configure_args0 " in
2561               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2562             esac
2563             ;;
2564           -* ) ac_must_keep_next=true ;;
2565         esac
2566       fi
2567       as_fn_append ac_configure_args " '$ac_arg'"
2568       ;;
2569     esac
2570   done
2571 done
2572 { ac_configure_args0=; unset ac_configure_args0;}
2573 { ac_configure_args1=; unset ac_configure_args1;}
2574
2575 # When interrupted or exit'd, cleanup temporary files, and complete
2576 # config.log.  We remove comments because anyway the quotes in there
2577 # would cause problems or look ugly.
2578 # WARNING: Use '\'' to represent an apostrophe within the trap.
2579 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2580 trap 'exit_status=$?
2581   # Save into config.log some information that might help in debugging.
2582   {
2583     echo
2584
2585     $as_echo "## ---------------- ##
2586 ## Cache variables. ##
2587 ## ---------------- ##"
2588     echo
2589     # The following way of writing the cache mishandles newlines in values,
2590 (
2591   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2592     eval ac_val=\$$ac_var
2593     case $ac_val in #(
2594     *${as_nl}*)
2595       case $ac_var in #(
2596       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2597 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2598       esac
2599       case $ac_var in #(
2600       _ | IFS | as_nl) ;; #(
2601       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2602       *) { eval $ac_var=; unset $ac_var;} ;;
2603       esac ;;
2604     esac
2605   done
2606   (set) 2>&1 |
2607     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2608     *${as_nl}ac_space=\ *)
2609       sed -n \
2610         "s/'\''/'\''\\\\'\'''\''/g;
2611           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2612       ;; #(
2613     *)
2614       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2615       ;;
2616     esac |
2617     sort
2618 )
2619     echo
2620
2621     $as_echo "## ----------------- ##
2622 ## Output variables. ##
2623 ## ----------------- ##"
2624     echo
2625     for ac_var in $ac_subst_vars
2626     do
2627       eval ac_val=\$$ac_var
2628       case $ac_val in
2629       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2630       esac
2631       $as_echo "$ac_var='\''$ac_val'\''"
2632     done | sort
2633     echo
2634
2635     if test -n "$ac_subst_files"; then
2636       $as_echo "## ------------------- ##
2637 ## File substitutions. ##
2638 ## ------------------- ##"
2639       echo
2640       for ac_var in $ac_subst_files
2641       do
2642         eval ac_val=\$$ac_var
2643         case $ac_val in
2644         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2645         esac
2646         $as_echo "$ac_var='\''$ac_val'\''"
2647       done | sort
2648       echo
2649     fi
2650
2651     if test -s confdefs.h; then
2652       $as_echo "## ----------- ##
2653 ## confdefs.h. ##
2654 ## ----------- ##"
2655       echo
2656       cat confdefs.h
2657       echo
2658     fi
2659     test "$ac_signal" != 0 &&
2660       $as_echo "$as_me: caught signal $ac_signal"
2661     $as_echo "$as_me: exit $exit_status"
2662   } >&5
2663   rm -f core *.core core.conftest.* &&
2664     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2665     exit $exit_status
2666 ' 0
2667 for ac_signal in 1 2 13 15; do
2668   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2669 done
2670 ac_signal=0
2671
2672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2673 rm -f -r conftest* confdefs.h
2674
2675 $as_echo "/* confdefs.h */" > confdefs.h
2676
2677 # Predefined preprocessor variables.
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_NAME "$PACKAGE_NAME"
2681 _ACEOF
2682
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2685 _ACEOF
2686
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2689 _ACEOF
2690
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_STRING "$PACKAGE_STRING"
2693 _ACEOF
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2697 _ACEOF
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_URL "$PACKAGE_URL"
2701 _ACEOF
2702
2703
2704 # Let the site file select an alternate cache file if it wants to.
2705 # Prefer an explicitly selected file to automatically selected ones.
2706 ac_site_file1=NONE
2707 ac_site_file2=NONE
2708 if test -n "$CONFIG_SITE"; then
2709   # We do not want a PATH search for config.site.
2710   case $CONFIG_SITE in #((
2711     -*)  ac_site_file1=./$CONFIG_SITE;;
2712     */*) ac_site_file1=$CONFIG_SITE;;
2713     *)   ac_site_file1=./$CONFIG_SITE;;
2714   esac
2715 elif test "x$prefix" != xNONE; then
2716   ac_site_file1=$prefix/share/config.site
2717   ac_site_file2=$prefix/etc/config.site
2718 else
2719   ac_site_file1=$ac_default_prefix/share/config.site
2720   ac_site_file2=$ac_default_prefix/etc/config.site
2721 fi
2722 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2723 do
2724   test "x$ac_site_file" = xNONE && continue
2725   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2726     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2727 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2728     sed 's/^/| /' "$ac_site_file" >&5
2729     . "$ac_site_file" \
2730       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 as_fn_error $? "failed to load site script $ac_site_file
2733 See \`config.log' for more details" "$LINENO" 5; }
2734   fi
2735 done
2736
2737 if test -r "$cache_file"; then
2738   # Some versions of bash will fail to source /dev/null (special files
2739   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2740   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2741     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2742 $as_echo "$as_me: loading cache $cache_file" >&6;}
2743     case $cache_file in
2744       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2745       *)                      . "./$cache_file";;
2746     esac
2747   fi
2748 else
2749   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2750 $as_echo "$as_me: creating cache $cache_file" >&6;}
2751   >$cache_file
2752 fi
2753
2754 # Check that the precious variables saved in the cache have kept the same
2755 # value.
2756 ac_cache_corrupted=false
2757 for ac_var in $ac_precious_vars; do
2758   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2759   eval ac_new_set=\$ac_env_${ac_var}_set
2760   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2761   eval ac_new_val=\$ac_env_${ac_var}_value
2762   case $ac_old_set,$ac_new_set in
2763     set,)
2764       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2765 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2766       ac_cache_corrupted=: ;;
2767     ,set)
2768       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2769 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2770       ac_cache_corrupted=: ;;
2771     ,);;
2772     *)
2773       if test "x$ac_old_val" != "x$ac_new_val"; then
2774         # differences in whitespace do not lead to failure.
2775         ac_old_val_w=`echo x $ac_old_val`
2776         ac_new_val_w=`echo x $ac_new_val`
2777         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2778           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2779 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2780           ac_cache_corrupted=:
2781         else
2782           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2783 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2784           eval $ac_var=\$ac_old_val
2785         fi
2786         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2787 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2788         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2789 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2790       fi;;
2791   esac
2792   # Pass precious variables to config.status.
2793   if test "$ac_new_set" = set; then
2794     case $ac_new_val in
2795     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2796     *) ac_arg=$ac_var=$ac_new_val ;;
2797     esac
2798     case " $ac_configure_args " in
2799       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2800       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2801     esac
2802   fi
2803 done
2804 if $ac_cache_corrupted; then
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2808 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2809   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2810 fi
2811 ## -------------------- ##
2812 ## Main body of script. ##
2813 ## -------------------- ##
2814
2815 ac_ext=c
2816 ac_cpp='$CPP $CPPFLAGS'
2817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820
2821
2822
2823 ac_config_headers="$ac_config_headers config.h"
2824
2825
2826 ac_aux_dir=
2827 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2828   if test -f "$ac_dir/install-sh"; then
2829     ac_aux_dir=$ac_dir
2830     ac_install_sh="$ac_aux_dir/install-sh -c"
2831     break
2832   elif test -f "$ac_dir/install.sh"; then
2833     ac_aux_dir=$ac_dir
2834     ac_install_sh="$ac_aux_dir/install.sh -c"
2835     break
2836   elif test -f "$ac_dir/shtool"; then
2837     ac_aux_dir=$ac_dir
2838     ac_install_sh="$ac_aux_dir/shtool install -c"
2839     break
2840   fi
2841 done
2842 if test -z "$ac_aux_dir"; then
2843   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2844 fi
2845
2846 # These three variables are undocumented and unsupported,
2847 # and are intended to be withdrawn in a future Autoconf release.
2848 # They can cause serious problems if a builder's source tree is in a directory
2849 # whose full name contains unusual characters.
2850 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2851 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2852 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2853
2854
2855 # Make sure we can run config.sub.
2856 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2857   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2858
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2860 $as_echo_n "checking build system type... " >&6; }
2861 if ${ac_cv_build+:} false; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   ac_build_alias=$build_alias
2865 test "x$ac_build_alias" = x &&
2866   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2867 test "x$ac_build_alias" = x &&
2868   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2869 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2870   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2871
2872 fi
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2874 $as_echo "$ac_cv_build" >&6; }
2875 case $ac_cv_build in
2876 *-*-*) ;;
2877 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2878 esac
2879 build=$ac_cv_build
2880 ac_save_IFS=$IFS; IFS='-'
2881 set x $ac_cv_build
2882 shift
2883 build_cpu=$1
2884 build_vendor=$2
2885 shift; shift
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2888 build_os=$*
2889 IFS=$ac_save_IFS
2890 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2891
2892
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2894 $as_echo_n "checking host system type... " >&6; }
2895 if ${ac_cv_host+:} false; then :
2896   $as_echo_n "(cached) " >&6
2897 else
2898   if test "x$host_alias" = x; then
2899   ac_cv_host=$ac_cv_build
2900 else
2901   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2902     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2903 fi
2904
2905 fi
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2907 $as_echo "$ac_cv_host" >&6; }
2908 case $ac_cv_host in
2909 *-*-*) ;;
2910 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2911 esac
2912 host=$ac_cv_host
2913 ac_save_IFS=$IFS; IFS='-'
2914 set x $ac_cv_host
2915 shift
2916 host_cpu=$1
2917 host_vendor=$2
2918 shift; shift
2919 # Remember, the first character of IFS is used to create $*,
2920 # except with old shells:
2921 host_os=$*
2922 IFS=$ac_save_IFS
2923 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2924
2925
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2927 $as_echo_n "checking target system type... " >&6; }
2928 if ${ac_cv_target+:} false; then :
2929   $as_echo_n "(cached) " >&6
2930 else
2931   if test "x$target_alias" = x; then
2932   ac_cv_target=$ac_cv_host
2933 else
2934   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2935     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2936 fi
2937
2938 fi
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2940 $as_echo "$ac_cv_target" >&6; }
2941 case $ac_cv_target in
2942 *-*-*) ;;
2943 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2944 esac
2945 target=$ac_cv_target
2946 ac_save_IFS=$IFS; IFS='-'
2947 set x $ac_cv_target
2948 shift
2949 target_cpu=$1
2950 target_vendor=$2
2951 shift; shift
2952 # Remember, the first character of IFS is used to create $*,
2953 # except with old shells:
2954 target_os=$*
2955 IFS=$ac_save_IFS
2956 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2957
2958
2959 # The aliases save the names the user supplied, while $host etc.
2960 # will get canonicalized.
2961 test -n "$target_alias" &&
2962   test "$program_prefix$program_suffix$program_transform_name" = \
2963     NONENONEs,x,x, &&
2964   program_prefix=${target_alias}-
2965
2966 # Checks for programs.
2967 ac_ext=c
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 if test -n "$ac_tool_prefix"; then
2973   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_CC+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   if test -n "$CC"; then
2981   ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995   done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 CC=$ac_cv_prog_CC
3001 if test -n "$CC"; then
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3004 else
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010 fi
3011 if test -z "$ac_cv_prog_CC"; then
3012   ac_ct_CC=$CC
3013   # Extract the first word of "gcc", so it can be a program name with args.
3014 set dummy gcc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3018   $as_echo_n "(cached) " >&6
3019 else
3020   if test -n "$ac_ct_CC"; then
3021   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026   IFS=$as_save_IFS
3027   test -z "$as_dir" && as_dir=.
3028     for ac_exec_ext in '' $ac_executable_extensions; do
3029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030     ac_cv_prog_ac_ct_CC="gcc"
3031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032     break 2
3033   fi
3034 done
3035   done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3041 if test -n "$ac_ct_CC"; then
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3043 $as_echo "$ac_ct_CC" >&6; }
3044 else
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049   if test "x$ac_ct_CC" = x; then
3050     CC=""
3051   else
3052     case $cross_compiling:$ac_tool_warned in
3053 yes:)
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056 ac_tool_warned=yes ;;
3057 esac
3058     CC=$ac_ct_CC
3059   fi
3060 else
3061   CC="$ac_cv_prog_CC"
3062 fi
3063
3064 if test -z "$CC"; then
3065           if test -n "$ac_tool_prefix"; then
3066     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}cc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_CC+:} false; then :
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test -n "$CC"; then
3074   ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081     for ac_exec_ext in '' $ac_executable_extensions; do
3082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083     ac_cv_prog_CC="${ac_tool_prefix}cc"
3084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088   done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3097 else
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102
3103   fi
3104 fi
3105 if test -z "$CC"; then
3106   # Extract the first word of "cc", so it can be a program name with args.
3107 set dummy cc; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_CC+:} false; then :
3111   $as_echo_n "(cached) " >&6
3112 else
3113   if test -n "$CC"; then
3114   ac_cv_prog_CC="$CC" # Let the user override the test.
3115 else
3116   ac_prog_rejected=no
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120   IFS=$as_save_IFS
3121   test -z "$as_dir" && as_dir=.
3122     for ac_exec_ext in '' $ac_executable_extensions; do
3123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3125        ac_prog_rejected=yes
3126        continue
3127      fi
3128     ac_cv_prog_CC="cc"
3129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133   done
3134 IFS=$as_save_IFS
3135
3136 if test $ac_prog_rejected = yes; then
3137   # We found a bogon in the path, so make sure we never use it.
3138   set dummy $ac_cv_prog_CC
3139   shift
3140   if test $# != 0; then
3141     # We chose a different compiler from the bogus one.
3142     # However, it has the same basename, so the bogon will be chosen
3143     # first if we set CC to just the basename; use the full file name.
3144     shift
3145     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3146   fi
3147 fi
3148 fi
3149 fi
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3154 else
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160 fi
3161 if test -z "$CC"; then
3162   if test -n "$ac_tool_prefix"; then
3163   for ac_prog in cl.exe
3164   do
3165     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_CC+:} false; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   if test -n "$CC"; then
3173   ac_cv_prog_CC="$CC" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178   IFS=$as_save_IFS
3179   test -z "$as_dir" && as_dir=.
3180     for ac_exec_ext in '' $ac_executable_extensions; do
3181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184     break 2
3185   fi
3186 done
3187   done
3188 IFS=$as_save_IFS
3189
3190 fi
3191 fi
3192 CC=$ac_cv_prog_CC
3193 if test -n "$CC"; then
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3195 $as_echo "$CC" >&6; }
3196 else
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200
3201
3202     test -n "$CC" && break
3203   done
3204 fi
3205 if test -z "$CC"; then
3206   ac_ct_CC=$CC
3207   for ac_prog in cl.exe
3208 do
3209   # Extract the first word of "$ac_prog", so it can be a program name with args.
3210 set dummy $ac_prog; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3214   $as_echo_n "(cached) " >&6
3215 else
3216   if test -n "$ac_ct_CC"; then
3217   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222   IFS=$as_save_IFS
3223   test -z "$as_dir" && as_dir=.
3224     for ac_exec_ext in '' $ac_executable_extensions; do
3225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226     ac_cv_prog_ac_ct_CC="$ac_prog"
3227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228     break 2
3229   fi
3230 done
3231   done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3237 if test -n "$ac_ct_CC"; then
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3239 $as_echo "$ac_ct_CC" >&6; }
3240 else
3241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246   test -n "$ac_ct_CC" && break
3247 done
3248
3249   if test "x$ac_ct_CC" = x; then
3250     CC=""
3251   else
3252     case $cross_compiling:$ac_tool_warned in
3253 yes:)
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3256 ac_tool_warned=yes ;;
3257 esac
3258     CC=$ac_ct_CC
3259   fi
3260 fi
3261
3262 fi
3263
3264
3265 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 as_fn_error $? "no acceptable C compiler found in \$PATH
3268 See \`config.log' for more details" "$LINENO" 5; }
3269
3270 # Provide some information about the compiler.
3271 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3272 set X $ac_compile
3273 ac_compiler=$2
3274 for ac_option in --version -v -V -qversion; do
3275   { { ac_try="$ac_compiler $ac_option >&5"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3283   ac_status=$?
3284   if test -s conftest.err; then
3285     sed '10a\
3286 ... rest of stderr output deleted ...
3287          10q' conftest.err >conftest.er1
3288     cat conftest.er1 >&5
3289   fi
3290   rm -f conftest.er1 conftest.err
3291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292   test $ac_status = 0; }
3293 done
3294
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h.  */
3297
3298 int
3299 main ()
3300 {
3301
3302   ;
3303   return 0;
3304 }
3305 _ACEOF
3306 ac_clean_files_save=$ac_clean_files
3307 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3308 # Try to create an executable without -o first, disregard a.out.
3309 # It will help us diagnose broken compilers, and finding out an intuition
3310 # of exeext.
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3312 $as_echo_n "checking whether the C compiler works... " >&6; }
3313 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3314
3315 # The possible output files:
3316 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3317
3318 ac_rmfiles=
3319 for ac_file in $ac_files
3320 do
3321   case $ac_file in
3322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3323     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3324   esac
3325 done
3326 rm -f $ac_rmfiles
3327
3328 if { { ac_try="$ac_link_default"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335   (eval "$ac_link_default") 2>&5
3336   ac_status=$?
3337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338   test $ac_status = 0; }; then :
3339   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3340 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3341 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3342 # so that the user can short-circuit this test for compilers unknown to
3343 # Autoconf.
3344 for ac_file in $ac_files ''
3345 do
3346   test -f "$ac_file" || continue
3347   case $ac_file in
3348     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3349         ;;
3350     [ab].out )
3351         # We found the default executable, but exeext='' is most
3352         # certainly right.
3353         break;;
3354     *.* )
3355         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3356         then :; else
3357            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3358         fi
3359         # We set ac_cv_exeext here because the later test for it is not
3360         # safe: cross compilers may not add the suffix if given an `-o'
3361         # argument, so we may need to know it at that point already.
3362         # Even if this section looks crufty: it has the advantage of
3363         # actually working.
3364         break;;
3365     * )
3366         break;;
3367   esac
3368 done
3369 test "$ac_cv_exeext" = no && ac_cv_exeext=
3370
3371 else
3372   ac_file=''
3373 fi
3374 if test -z "$ac_file"; then :
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 $as_echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3379
3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error 77 "C compiler cannot create executables
3383 See \`config.log' for more details" "$LINENO" 5; }
3384 else
3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 $as_echo "yes" >&6; }
3387 fi
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3389 $as_echo_n "checking for C compiler default output file name... " >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3391 $as_echo "$ac_file" >&6; }
3392 ac_exeext=$ac_cv_exeext
3393
3394 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3395 ac_clean_files=$ac_clean_files_save
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3397 $as_echo_n "checking for suffix of executables... " >&6; }
3398 if { { ac_try="$ac_link"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404 $as_echo "$ac_try_echo"; } >&5
3405   (eval "$ac_link") 2>&5
3406   ac_status=$?
3407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408   test $ac_status = 0; }; then :
3409   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3410 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3411 # work properly (i.e., refer to `conftest.exe'), while it won't with
3412 # `rm'.
3413 for ac_file in conftest.exe conftest conftest.*; do
3414   test -f "$ac_file" || continue
3415   case $ac_file in
3416     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3417     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3418           break;;
3419     * ) break;;
3420   esac
3421 done
3422 else
3423   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3426 See \`config.log' for more details" "$LINENO" 5; }
3427 fi
3428 rm -f conftest conftest$ac_cv_exeext
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3430 $as_echo "$ac_cv_exeext" >&6; }
3431
3432 rm -f conftest.$ac_ext
3433 EXEEXT=$ac_cv_exeext
3434 ac_exeext=$EXEEXT
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h.  */
3437 #include <stdio.h>
3438 int
3439 main ()
3440 {
3441 FILE *f = fopen ("conftest.out", "w");
3442  return ferror (f) || fclose (f) != 0;
3443
3444   ;
3445   return 0;
3446 }
3447 _ACEOF
3448 ac_clean_files="$ac_clean_files conftest.out"
3449 # Check that the compiler produces executables we can run.  If not, either
3450 # the compiler is broken, or we cross compile.
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3452 $as_echo_n "checking whether we are cross compiling... " >&6; }
3453 if test "$cross_compiling" != yes; then
3454   { { ac_try="$ac_link"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461   (eval "$ac_link") 2>&5
3462   ac_status=$?
3463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464   test $ac_status = 0; }
3465   if { ac_try='./conftest$ac_cv_exeext'
3466   { { case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472   (eval "$ac_try") 2>&5
3473   ac_status=$?
3474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475   test $ac_status = 0; }; }; then
3476     cross_compiling=no
3477   else
3478     if test "$cross_compiling" = maybe; then
3479         cross_compiling=yes
3480     else
3481         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error $? "cannot run C compiled programs.
3484 If you meant to cross compile, use \`--host'.
3485 See \`config.log' for more details" "$LINENO" 5; }
3486     fi
3487   fi
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3490 $as_echo "$cross_compiling" >&6; }
3491
3492 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3493 ac_clean_files=$ac_clean_files_save
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3495 $as_echo_n "checking for suffix of object files... " >&6; }
3496 if ${ac_cv_objext+:} false; then :
3497   $as_echo_n "(cached) " >&6
3498 else
3499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h.  */
3501
3502 int
3503 main ()
3504 {
3505
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 rm -f conftest.o conftest.obj
3511 if { { ac_try="$ac_compile"
3512 case "(($ac_try" in
3513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514   *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518   (eval "$ac_compile") 2>&5
3519   ac_status=$?
3520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521   test $ac_status = 0; }; then :
3522   for ac_file in conftest.o conftest.obj conftest.*; do
3523   test -f "$ac_file" || continue;
3524   case $ac_file in
3525     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3526     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3527        break;;
3528   esac
3529 done
3530 else
3531   $as_echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "cannot compute suffix of object files: cannot compile
3537 See \`config.log' for more details" "$LINENO" 5; }
3538 fi
3539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3540 fi
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3542 $as_echo "$ac_cv_objext" >&6; }
3543 OBJEXT=$ac_cv_objext
3544 ac_objext=$OBJEXT
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3547 if ${ac_cv_c_compiler_gnu+:} false; then :
3548   $as_echo_n "(cached) " >&6
3549 else
3550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h.  */
3552
3553 int
3554 main ()
3555 {
3556 #ifndef __GNUC__
3557        choke me
3558 #endif
3559
3560   ;
3561   return 0;
3562 }
3563 _ACEOF
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565   ac_compiler_gnu=yes
3566 else
3567   ac_compiler_gnu=no
3568 fi
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3571
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3574 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3575 if test $ac_compiler_gnu = yes; then
3576   GCC=yes
3577 else
3578   GCC=
3579 fi
3580 ac_test_CFLAGS=${CFLAGS+set}
3581 ac_save_CFLAGS=$CFLAGS
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3583 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3584 if ${ac_cv_prog_cc_g+:} false; then :
3585   $as_echo_n "(cached) " >&6
3586 else
3587   ac_save_c_werror_flag=$ac_c_werror_flag
3588    ac_c_werror_flag=yes
3589    ac_cv_prog_cc_g=no
3590    CFLAGS="-g"
3591    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h.  */
3593
3594 int
3595 main ()
3596 {
3597
3598   ;
3599   return 0;
3600 }
3601 _ACEOF
3602 if ac_fn_c_try_compile "$LINENO"; then :
3603   ac_cv_prog_cc_g=yes
3604 else
3605   CFLAGS=""
3606       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h.  */
3608
3609 int
3610 main ()
3611 {
3612
3613   ;
3614   return 0;
3615 }
3616 _ACEOF
3617 if ac_fn_c_try_compile "$LINENO"; then :
3618
3619 else
3620   ac_c_werror_flag=$ac_save_c_werror_flag
3621          CFLAGS="-g"
3622          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h.  */
3624
3625 int
3626 main ()
3627 {
3628
3629   ;
3630   return 0;
3631 }
3632 _ACEOF
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634   ac_cv_prog_cc_g=yes
3635 fi
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 fi
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 fi
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641    ac_c_werror_flag=$ac_save_c_werror_flag
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3644 $as_echo "$ac_cv_prog_cc_g" >&6; }
3645 if test "$ac_test_CFLAGS" = set; then
3646   CFLAGS=$ac_save_CFLAGS
3647 elif test $ac_cv_prog_cc_g = yes; then
3648   if test "$GCC" = yes; then
3649     CFLAGS="-g -O2"
3650   else
3651     CFLAGS="-g"
3652   fi
3653 else
3654   if test "$GCC" = yes; then
3655     CFLAGS="-O2"
3656   else
3657     CFLAGS=
3658   fi
3659 fi
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3662 if ${ac_cv_prog_cc_c89+:} false; then :
3663   $as_echo_n "(cached) " >&6
3664 else
3665   ac_cv_prog_cc_c89=no
3666 ac_save_CC=$CC
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h.  */
3669 #include <stdarg.h>
3670 #include <stdio.h>
3671 struct stat;
3672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3673 struct buf { int x; };
3674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675 static char *e (p, i)
3676      char **p;
3677      int i;
3678 {
3679   return p[i];
3680 }
3681 static char *f (char * (*g) (char **, int), char **p, ...)
3682 {
3683   char *s;
3684   va_list v;
3685   va_start (v,p);
3686   s = g (p, va_arg (v,int));
3687   va_end (v);
3688   return s;
3689 }
3690
3691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3692    function prototypes and stuff, but not '\xHH' hex character constants.
3693    These don't provoke an error unfortunately, instead are silently treated
3694    as 'x'.  The following induces an error, until -std is added to get
3695    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3696    array size at least.  It's necessary to write '\x00'==0 to get something
3697    that's true only with -std.  */
3698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3699
3700 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3701    inside strings and character constants.  */
3702 #define FOO(x) 'x'
3703 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3704
3705 int test (int i, double x);
3706 struct s1 {int (*f) (int a);};
3707 struct s2 {int (*f) (double a);};
3708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709 int argc;
3710 char **argv;
3711 int
3712 main ()
3713 {
3714 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3720         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3721 do
3722   CC="$ac_save_CC $ac_arg"
3723   if ac_fn_c_try_compile "$LINENO"; then :
3724   ac_cv_prog_cc_c89=$ac_arg
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext
3727   test "x$ac_cv_prog_cc_c89" != "xno" && break
3728 done
3729 rm -f conftest.$ac_ext
3730 CC=$ac_save_CC
3731
3732 fi
3733 # AC_CACHE_VAL
3734 case "x$ac_cv_prog_cc_c89" in
3735   x)
3736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 $as_echo "none needed" >&6; } ;;
3738   xno)
3739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3740 $as_echo "unsupported" >&6; } ;;
3741   *)
3742     CC="$CC $ac_cv_prog_cc_c89"
3743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3744 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3745 esac
3746 if test "x$ac_cv_prog_cc_c89" != xno; then :
3747
3748 fi
3749
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755
3756 # Check whether --enable-shared was given.
3757 if test "${enable_shared+set}" = set; then :
3758   enableval=$enable_shared; p=${PACKAGE-default}
3759     case $enableval in
3760     yes) enable_shared=yes ;;
3761     no) enable_shared=no ;;
3762     *)
3763       enable_shared=no
3764       # Look at the argument we got.  We use all the common list separators.
3765       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3766       for pkg in $enableval; do
3767         IFS="$lt_save_ifs"
3768         if test "X$pkg" = "X$p"; then
3769           enable_shared=yes
3770         fi
3771       done
3772       IFS="$lt_save_ifs"
3773       ;;
3774     esac
3775 else
3776   enable_shared=yes
3777 fi
3778
3779
3780 # Check whether --enable-static was given.
3781 if test "${enable_static+set}" = set; then :
3782   enableval=$enable_static; p=${PACKAGE-default}
3783     case $enableval in
3784     yes) enable_static=yes ;;
3785     no) enable_static=no ;;
3786     *)
3787      enable_static=no
3788       # Look at the argument we got.  We use all the common list separators.
3789       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3790       for pkg in $enableval; do
3791         IFS="$lt_save_ifs"
3792         if test "X$pkg" = "X$p"; then
3793           enable_static=yes
3794         fi
3795       done
3796       IFS="$lt_save_ifs"
3797       ;;
3798     esac
3799 else
3800   enable_static=yes
3801 fi
3802
3803
3804 # Check whether --enable-fast-install was given.
3805 if test "${enable_fast_install+set}" = set; then :
3806   enableval=$enable_fast_install; p=${PACKAGE-default}
3807     case $enableval in
3808     yes) enable_fast_install=yes ;;
3809     no) enable_fast_install=no ;;
3810     *)
3811       enable_fast_install=no
3812       # Look at the argument we got.  We use all the common list separators.
3813       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3814       for pkg in $enableval; do
3815         IFS="$lt_save_ifs"
3816         if test "X$pkg" = "X$p"; then
3817           enable_fast_install=yes
3818         fi
3819       done
3820       IFS="$lt_save_ifs"
3821       ;;
3822     esac
3823 else
3824   enable_fast_install=yes
3825 fi
3826
3827
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3829 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3830 if ${lt_cv_path_SED+:} false; then :
3831   $as_echo_n "(cached) " >&6
3832 else
3833   # Loop through the user's path and test for sed and gsed.
3834 # Then use that list of sed's as ones to test for truncation.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840   for lt_ac_prog in sed gsed; do
3841     for ac_exec_ext in '' $ac_executable_extensions; do
3842       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3843         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3844       fi
3845     done
3846   done
3847 done
3848 lt_ac_max=0
3849 lt_ac_count=0
3850 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3851 # along with /bin/sed that truncates output.
3852 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3853   test ! -f $lt_ac_sed && break
3854   cat /dev/null > conftest.in
3855   lt_ac_count=0
3856   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3857   # Check for GNU sed and select it if it is found.
3858   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3859     lt_cv_path_SED=$lt_ac_sed
3860     break
3861   fi
3862   while true; do
3863     cat conftest.in conftest.in >conftest.tmp
3864     mv conftest.tmp conftest.in
3865     cp conftest.in conftest.nl
3866     echo >>conftest.nl
3867     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3868     cmp -s conftest.out conftest.nl || break
3869     # 10000 chars as input seems more than enough
3870     test $lt_ac_count -gt 10 && break
3871     lt_ac_count=`expr $lt_ac_count + 1`
3872     if test $lt_ac_count -gt $lt_ac_max; then
3873       lt_ac_max=$lt_ac_count
3874       lt_cv_path_SED=$lt_ac_sed
3875     fi
3876   done
3877 done
3878 SED=$lt_cv_path_SED
3879
3880 fi
3881
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3883 $as_echo "$SED" >&6; }
3884
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3886 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3887 if ${ac_cv_path_GREP+:} false; then :
3888   $as_echo_n "(cached) " >&6
3889 else
3890   if test -z "$GREP"; then
3891   ac_path_GREP_found=false
3892   # Loop through the user's path and test for each of PROGNAME-LIST
3893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898     for ac_prog in grep ggrep; do
3899     for ac_exec_ext in '' $ac_executable_extensions; do
3900       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3901       as_fn_executable_p "$ac_path_GREP" || continue
3902 # Check for GNU ac_path_GREP and select it if it is found.
3903   # Check for GNU $ac_path_GREP
3904 case `"$ac_path_GREP" --version 2>&1` in
3905 *GNU*)
3906   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3907 *)
3908   ac_count=0
3909   $as_echo_n 0123456789 >"conftest.in"
3910   while :
3911   do
3912     cat "conftest.in" "conftest.in" >"conftest.tmp"
3913     mv "conftest.tmp" "conftest.in"
3914     cp "conftest.in" "conftest.nl"
3915     $as_echo 'GREP' >> "conftest.nl"
3916     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3917     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3918     as_fn_arith $ac_count + 1 && ac_count=$as_val
3919     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3920       # Best one so far, save it but keep looking for a better one
3921       ac_cv_path_GREP="$ac_path_GREP"
3922       ac_path_GREP_max=$ac_count
3923     fi
3924     # 10*(2^10) chars as input seems more than enough
3925     test $ac_count -gt 10 && break
3926   done
3927   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3928 esac
3929
3930       $ac_path_GREP_found && break 3
3931     done
3932   done
3933   done
3934 IFS=$as_save_IFS
3935   if test -z "$ac_cv_path_GREP"; then
3936     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3937   fi
3938 else
3939   ac_cv_path_GREP=$GREP
3940 fi
3941
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3944 $as_echo "$ac_cv_path_GREP" >&6; }
3945  GREP="$ac_cv_path_GREP"
3946
3947
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3949 $as_echo_n "checking for egrep... " >&6; }
3950 if ${ac_cv_path_EGREP+:} false; then :
3951   $as_echo_n "(cached) " >&6
3952 else
3953   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3954    then ac_cv_path_EGREP="$GREP -E"
3955    else
3956      if test -z "$EGREP"; then
3957   ac_path_EGREP_found=false
3958   # Loop through the user's path and test for each of PROGNAME-LIST
3959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961 do
3962   IFS=$as_save_IFS
3963   test -z "$as_dir" && as_dir=.
3964     for ac_prog in egrep; do
3965     for ac_exec_ext in '' $ac_executable_extensions; do
3966       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3967       as_fn_executable_p "$ac_path_EGREP" || continue
3968 # Check for GNU ac_path_EGREP and select it if it is found.
3969   # Check for GNU $ac_path_EGREP
3970 case `"$ac_path_EGREP" --version 2>&1` in
3971 *GNU*)
3972   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3973 *)
3974   ac_count=0
3975   $as_echo_n 0123456789 >"conftest.in"
3976   while :
3977   do
3978     cat "conftest.in" "conftest.in" >"conftest.tmp"
3979     mv "conftest.tmp" "conftest.in"
3980     cp "conftest.in" "conftest.nl"
3981     $as_echo 'EGREP' >> "conftest.nl"
3982     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984     as_fn_arith $ac_count + 1 && ac_count=$as_val
3985     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3986       # Best one so far, save it but keep looking for a better one
3987       ac_cv_path_EGREP="$ac_path_EGREP"
3988       ac_path_EGREP_max=$ac_count
3989     fi
3990     # 10*(2^10) chars as input seems more than enough
3991     test $ac_count -gt 10 && break
3992   done
3993   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994 esac
3995
3996       $ac_path_EGREP_found && break 3
3997     done
3998   done
3999   done
4000 IFS=$as_save_IFS
4001   if test -z "$ac_cv_path_EGREP"; then
4002     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4003   fi
4004 else
4005   ac_cv_path_EGREP=$EGREP
4006 fi
4007
4008    fi
4009 fi
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4011 $as_echo "$ac_cv_path_EGREP" >&6; }
4012  EGREP="$ac_cv_path_EGREP"
4013
4014
4015
4016 # Check whether --with-gnu-ld was given.
4017 if test "${with_gnu_ld+set}" = set; then :
4018   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4019 else
4020   with_gnu_ld=no
4021 fi
4022
4023 ac_prog=ld
4024 if test "$GCC" = yes; then
4025   # Check if gcc -print-prog-name=ld gives a path.
4026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4027 $as_echo_n "checking for ld used by $CC... " >&6; }
4028   case $host in
4029   *-*-mingw*)
4030     # gcc leaves a trailing carriage return which upsets mingw
4031     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4032   *)
4033     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4034   esac
4035   case $ac_prog in
4036     # Accept absolute paths.
4037     [\\/]* | ?:[\\/]*)
4038       re_direlt='/[^/][^/]*/\.\./'
4039       # Canonicalize the pathname of ld
4040       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4041       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4042         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4043       done
4044       test -z "$LD" && LD="$ac_prog"
4045       ;;
4046   "")
4047     # If it fails, then pretend we aren't using GCC.
4048     ac_prog=ld
4049     ;;
4050   *)
4051     # If it is relative, then search for the first ld in PATH.
4052     with_gnu_ld=unknown
4053     ;;
4054   esac
4055 elif test "$with_gnu_ld" = yes; then
4056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4057 $as_echo_n "checking for GNU ld... " >&6; }
4058 else
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4060 $as_echo_n "checking for non-GNU ld... " >&6; }
4061 fi
4062 if ${lt_cv_path_LD+:} false; then :
4063   $as_echo_n "(cached) " >&6
4064 else
4065   if test -z "$LD"; then
4066   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4067   for ac_dir in $PATH; do
4068     IFS="$lt_save_ifs"
4069     test -z "$ac_dir" && ac_dir=.
4070     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4071       lt_cv_path_LD="$ac_dir/$ac_prog"
4072       # Check to see if the program is GNU ld.  I'd rather use --version,
4073       # but apparently some GNU ld's only accept -v.
4074       # Break only if it was the GNU/non-GNU ld that we prefer.
4075       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4076       *GNU* | *'with BFD'*)
4077         test "$with_gnu_ld" != no && break
4078         ;;
4079       *)
4080         test "$with_gnu_ld" != yes && break
4081         ;;
4082       esac
4083     fi
4084   done
4085   IFS="$lt_save_ifs"
4086 else
4087   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4088 fi
4089 fi
4090
4091 LD="$lt_cv_path_LD"
4092 if test -n "$LD"; then
4093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4094 $as_echo "$LD" >&6; }
4095 else
4096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097 $as_echo "no" >&6; }
4098 fi
4099 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4101 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4102 if ${lt_cv_prog_gnu_ld+:} false; then :
4103   $as_echo_n "(cached) " >&6
4104 else
4105   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4106 case `$LD -v 2>&1 </dev/null` in
4107 *GNU* | *'with BFD'*)
4108   lt_cv_prog_gnu_ld=yes
4109   ;;
4110 *)
4111   lt_cv_prog_gnu_ld=no
4112   ;;
4113 esac
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4116 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4117 with_gnu_ld=$lt_cv_prog_gnu_ld
4118
4119
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4121 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4122 if ${lt_cv_ld_reload_flag+:} false; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   lt_cv_ld_reload_flag='-r'
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4128 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4129 reload_flag=$lt_cv_ld_reload_flag
4130 case $reload_flag in
4131 "" | " "*) ;;
4132 *) reload_flag=" $reload_flag" ;;
4133 esac
4134 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4135
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4137 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4138 if ${lt_cv_path_NM+:} false; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   if test -n "$NM"; then
4142   # Let the user override the test.
4143   lt_cv_path_NM="$NM"
4144 else
4145   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4146   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4147     IFS="$lt_save_ifs"
4148     test -z "$ac_dir" && ac_dir=.
4149     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4150     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4151       # Check to see if the nm accepts a BSD-compat flag.
4152       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4153       #   nm: unknown option "B" ignored
4154       # Tru64's nm complains that /dev/null is an invalid object file
4155       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4156       */dev/null* | *'Invalid file or object type'*)
4157         lt_cv_path_NM="$tmp_nm -B"
4158         break
4159         ;;
4160       *)
4161         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4162         */dev/null*)
4163           lt_cv_path_NM="$tmp_nm -p"
4164           break
4165           ;;
4166         *)
4167           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4168           continue # so that we can try to find one that supports BSD flags
4169           ;;
4170         esac
4171       esac
4172     fi
4173   done
4174   IFS="$lt_save_ifs"
4175   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4176 fi
4177 fi
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4179 $as_echo "$lt_cv_path_NM" >&6; }
4180 NM="$lt_cv_path_NM"
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4183 $as_echo_n "checking whether ln -s works... " >&6; }
4184 LN_S=$as_ln_s
4185 if test "$LN_S" = "ln -s"; then
4186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4187 $as_echo "yes" >&6; }
4188 else
4189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4190 $as_echo "no, using $LN_S" >&6; }
4191 fi
4192
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4194 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4195 if ${lt_cv_deplibs_check_method+:} false; then :
4196   $as_echo_n "(cached) " >&6
4197 else
4198   lt_cv_file_magic_cmd='$MAGIC_CMD'
4199 lt_cv_file_magic_test_file=
4200 lt_cv_deplibs_check_method='unknown'
4201 # Need to set the preceding variable on all platforms that support
4202 # interlibrary dependencies.
4203 # 'none' -- dependencies not supported.
4204 # `unknown' -- same as none, but documents that we really don't know.
4205 # 'pass_all' -- all dependencies passed with no checks.
4206 # 'test_compile' -- check by making test program.
4207 # 'file_magic [[regex]]' -- check by looking for files in library path
4208 # which responds to the $file_magic_cmd with a given extended regex.
4209 # If you have `file' or equivalent on your system and you're not sure
4210 # whether `pass_all' will *always* work, you probably want this one.
4211
4212 case $host_os in
4213 aix4* | aix5*)
4214   lt_cv_deplibs_check_method=pass_all
4215   ;;
4216
4217 beos*)
4218   lt_cv_deplibs_check_method=pass_all
4219   ;;
4220
4221 bsdi4*)
4222   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4223   lt_cv_file_magic_cmd='/usr/bin/file -L'
4224   lt_cv_file_magic_test_file=/shlib/libc.so
4225   ;;
4226
4227 cygwin* | mingw* | pw32*)
4228   # win32_libid is a shell function defined in ltmain.sh
4229   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4230   lt_cv_file_magic_cmd='win32_libid'
4231   ;;
4232
4233 darwin* | rhapsody*)
4234   # this will be overwritten by pass_all, but leave it in just in case
4235   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4236   lt_cv_file_magic_cmd='/usr/bin/file -L'
4237   case "$host_os" in
4238   rhapsody* | darwin1.[012])
4239     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4240     ;;
4241   *) # Darwin 1.3 on
4242     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4243     ;;
4244   esac
4245   lt_cv_deplibs_check_method=pass_all
4246   ;;
4247
4248 freebsd* | kfreebsd*-gnu)
4249   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4250     case $host_cpu in
4251     i*86 )
4252       # Not sure whether the presence of OpenBSD here was a mistake.
4253       # Let's accept both of them until this is cleared up.
4254       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4255       lt_cv_file_magic_cmd=/usr/bin/file
4256       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4257       ;;
4258     esac
4259   else
4260     lt_cv_deplibs_check_method=pass_all
4261   fi
4262   ;;
4263
4264 gnu*)
4265   lt_cv_deplibs_check_method=pass_all
4266   ;;
4267
4268 hpux10.20* | hpux11*)
4269   lt_cv_file_magic_cmd=/usr/bin/file
4270   case "$host_cpu" in
4271   ia64*)
4272     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4273     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4274     ;;
4275   hppa*64*)
4276     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]'
4277     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4278     ;;
4279   *)
4280     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4281     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4282     ;;
4283   esac
4284   ;;
4285
4286 irix5* | irix6* | nonstopux*)
4287   case $host_os in
4288   irix5* | nonstopux*)
4289     # this will be overridden with pass_all, but let us keep it just in case
4290     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4291     ;;
4292   *)
4293     case $LD in
4294     *-32|*"-32 ") libmagic=32-bit;;
4295     *-n32|*"-n32 ") libmagic=N32;;
4296     *-64|*"-64 ") libmagic=64-bit;;
4297     *) libmagic=never-match;;
4298     esac
4299     # this will be overridden with pass_all, but let us keep it just in case
4300     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4301     ;;
4302   esac
4303   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4304   lt_cv_deplibs_check_method=pass_all
4305   ;;
4306
4307 # This must be Linux ELF.
4308 linux*)
4309   # linux always uses pass_all now, this code is the old way (tm)
4310   case $host_cpu in
4311   alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4312     lt_cv_deplibs_check_method=pass_all ;;
4313   *)
4314     # glibc up to 2.1.1 does not perform some relocations on ARM
4315     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4316   esac
4317   lt_cv_deplibs_check_method=pass_all
4318   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4319   ;;
4320
4321 netbsd*)
4322   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4323     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4324   else
4325     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4326   fi
4327   ;;
4328
4329 newos6*)
4330   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4331   lt_cv_file_magic_cmd=/usr/bin/file
4332   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4333   ;;
4334
4335 nto-qnx*)
4336   lt_cv_deplibs_check_method=unknown
4337   ;;
4338
4339 openbsd*)
4340   lt_cv_file_magic_cmd=/usr/bin/file
4341   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4342   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4343     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4344   else
4345     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4346   fi
4347   ;;
4348
4349 osf3* | osf4* | osf5*)
4350   # this will be overridden with pass_all, but let us keep it just in case
4351   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4352   lt_cv_file_magic_test_file=/shlib/libc.so
4353   lt_cv_deplibs_check_method=pass_all
4354   ;;
4355
4356 sco3.2v5*)
4357   lt_cv_deplibs_check_method=pass_all
4358   ;;
4359
4360 solaris*)
4361   lt_cv_deplibs_check_method=pass_all
4362   lt_cv_file_magic_test_file=/lib/libc.so
4363   ;;
4364
4365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4366   case $host_vendor in
4367   motorola)
4368     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]'
4369     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4370     ;;
4371   ncr)
4372     lt_cv_deplibs_check_method=pass_all
4373     ;;
4374   sequent)
4375     lt_cv_file_magic_cmd='/bin/file'
4376     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4377     ;;
4378   sni)
4379     lt_cv_file_magic_cmd='/bin/file'
4380     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4381     lt_cv_file_magic_test_file=/lib/libc.so
4382     ;;
4383   siemens)
4384     lt_cv_deplibs_check_method=pass_all
4385     ;;
4386   esac
4387   ;;
4388
4389 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4390   lt_cv_deplibs_check_method=pass_all
4391   ;;
4392 esac
4393
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4396 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4397 file_magic_cmd=$lt_cv_file_magic_cmd
4398 deplibs_check_method=$lt_cv_deplibs_check_method
4399 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4400
4401
4402
4403
4404 # If no C compiler was specified, use CC.
4405 LTCC=${LTCC-"$CC"}
4406
4407 # Allow CC to be a program name with arguments.
4408 compiler=$CC
4409
4410
4411 # Check whether --enable-libtool-lock was given.
4412 if test "${enable_libtool_lock+set}" = set; then :
4413   enableval=$enable_libtool_lock;
4414 fi
4415
4416 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4417
4418 # Some flags need to be propagated to the compiler or linker for good
4419 # libtool support.
4420 case $host in
4421 ia64-*-hpux*)
4422   # Find out which ABI we are using.
4423   echo 'int i;' > conftest.$ac_ext
4424   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4425   (eval $ac_compile) 2>&5
4426   ac_status=$?
4427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428   test $ac_status = 0; }; then
4429     case `/usr/bin/file conftest.$ac_objext` in
4430     *ELF-32*)
4431       HPUX_IA64_MODE="32"
4432       ;;
4433     *ELF-64*)
4434       HPUX_IA64_MODE="64"
4435       ;;
4436     esac
4437   fi
4438   rm -rf conftest*
4439   ;;
4440 *-*-irix6*)
4441   # Find out which ABI we are using.
4442   echo '#line 4442 "configure"' > conftest.$ac_ext
4443   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4444   (eval $ac_compile) 2>&5
4445   ac_status=$?
4446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447   test $ac_status = 0; }; then
4448    if test "$lt_cv_prog_gnu_ld" = yes; then
4449     case `/usr/bin/file conftest.$ac_objext` in
4450     *32-bit*)
4451       LD="${LD-ld} -melf32bsmip"
4452       ;;
4453     *N32*)
4454       LD="${LD-ld} -melf32bmipn32"
4455       ;;
4456     *64-bit*)
4457       LD="${LD-ld} -melf64bmip"
4458       ;;
4459     esac
4460    else
4461     case `/usr/bin/file conftest.$ac_objext` in
4462     *32-bit*)
4463       LD="${LD-ld} -32"
4464       ;;
4465     *N32*)
4466       LD="${LD-ld} -n32"
4467       ;;
4468     *64-bit*)
4469       LD="${LD-ld} -64"
4470       ;;
4471     esac
4472    fi
4473   fi
4474   rm -rf conftest*
4475   ;;
4476
4477 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4478   # Find out which ABI we are using.
4479   echo 'int i;' > conftest.$ac_ext
4480   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4481   (eval $ac_compile) 2>&5
4482   ac_status=$?
4483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484   test $ac_status = 0; }; then
4485     case "`/usr/bin/file conftest.o`" in
4486     *32-bit*)
4487       case $host in
4488         x86_64-*linux*)
4489           LD="${LD-ld} -m elf_i386"
4490           ;;
4491         ppc64-*linux*|powerpc64-*linux*)
4492           LD="${LD-ld} -m elf32ppclinux"
4493           ;;
4494         s390x-*linux*)
4495           LD="${LD-ld} -m elf_s390"
4496           ;;
4497         sparc64-*linux*)
4498           LD="${LD-ld} -m elf32_sparc"
4499           ;;
4500       esac
4501       ;;
4502     *64-bit*)
4503       case $host in
4504         x86_64-*linux*)
4505           LD="${LD-ld} -m elf_x86_64"
4506           ;;
4507         ppc*-*linux*|powerpc*-*linux*)
4508           LD="${LD-ld} -m elf64ppc"
4509           ;;
4510         s390*-*linux*)
4511           LD="${LD-ld} -m elf64_s390"
4512           ;;
4513         sparc*-*linux*)
4514           LD="${LD-ld} -m elf64_sparc"
4515           ;;
4516       esac
4517       ;;
4518     esac
4519   fi
4520   rm -rf conftest*
4521   ;;
4522
4523 *-*-sco3.2v5*)
4524   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4525   SAVE_CFLAGS="$CFLAGS"
4526   CFLAGS="$CFLAGS -belf"
4527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4528 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4529 if ${lt_cv_cc_needs_belf+:} false; then :
4530   $as_echo_n "(cached) " >&6
4531 else
4532   ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537
4538      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h.  */
4540
4541 int
4542 main ()
4543 {
4544
4545   ;
4546   return 0;
4547 }
4548 _ACEOF
4549 if ac_fn_c_try_link "$LINENO"; then :
4550   lt_cv_cc_needs_belf=yes
4551 else
4552   lt_cv_cc_needs_belf=no
4553 fi
4554 rm -f core conftest.err conftest.$ac_objext \
4555     conftest$ac_exeext conftest.$ac_ext
4556      ac_ext=c
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4561
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4564 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4565   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4566     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4567     CFLAGS="$SAVE_CFLAGS"
4568   fi
4569   ;;
4570
4571 esac
4572
4573 need_locks="$enable_libtool_lock"
4574
4575
4576 ac_ext=c
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4582 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4583 # On Suns, sometimes $CPP names a directory.
4584 if test -n "$CPP" && test -d "$CPP"; then
4585   CPP=
4586 fi
4587 if test -z "$CPP"; then
4588   if ${ac_cv_prog_CPP+:} false; then :
4589   $as_echo_n "(cached) " >&6
4590 else
4591       # Double quotes because CPP needs to be expanded
4592     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4593     do
4594       ac_preproc_ok=false
4595 for ac_c_preproc_warn_flag in '' yes
4596 do
4597   # Use a header file that comes with gcc, so configuring glibc
4598   # with a fresh cross-compiler works.
4599   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4600   # <limits.h> exists even on freestanding compilers.
4601   # On the NeXT, cc -E runs the code through the compiler's parser,
4602   # not just through cpp. "Syntax error" is here to catch this case.
4603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h.  */
4605 #ifdef __STDC__
4606 # include <limits.h>
4607 #else
4608 # include <assert.h>
4609 #endif
4610                      Syntax error
4611 _ACEOF
4612 if ac_fn_c_try_cpp "$LINENO"; then :
4613
4614 else
4615   # Broken: fails on valid input.
4616 continue
4617 fi
4618 rm -f conftest.err conftest.i conftest.$ac_ext
4619
4620   # OK, works on sane cases.  Now check whether nonexistent headers
4621   # can be detected and how.
4622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h.  */
4624 #include <ac_nonexistent.h>
4625 _ACEOF
4626 if ac_fn_c_try_cpp "$LINENO"; then :
4627   # Broken: success on invalid input.
4628 continue
4629 else
4630   # Passes both tests.
4631 ac_preproc_ok=:
4632 break
4633 fi
4634 rm -f conftest.err conftest.i conftest.$ac_ext
4635
4636 done
4637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4638 rm -f conftest.i conftest.err conftest.$ac_ext
4639 if $ac_preproc_ok; then :
4640   break
4641 fi
4642
4643     done
4644     ac_cv_prog_CPP=$CPP
4645
4646 fi
4647   CPP=$ac_cv_prog_CPP
4648 else
4649   ac_cv_prog_CPP=$CPP
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4652 $as_echo "$CPP" >&6; }
4653 ac_preproc_ok=false
4654 for ac_c_preproc_warn_flag in '' yes
4655 do
4656   # Use a header file that comes with gcc, so configuring glibc
4657   # with a fresh cross-compiler works.
4658   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4659   # <limits.h> exists even on freestanding compilers.
4660   # On the NeXT, cc -E runs the code through the compiler's parser,
4661   # not just through cpp. "Syntax error" is here to catch this case.
4662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h.  */
4664 #ifdef __STDC__
4665 # include <limits.h>
4666 #else
4667 # include <assert.h>
4668 #endif
4669                      Syntax error
4670 _ACEOF
4671 if ac_fn_c_try_cpp "$LINENO"; then :
4672
4673 else
4674   # Broken: fails on valid input.
4675 continue
4676 fi
4677 rm -f conftest.err conftest.i conftest.$ac_ext
4678
4679   # OK, works on sane cases.  Now check whether nonexistent headers
4680   # can be detected and how.
4681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h.  */
4683 #include <ac_nonexistent.h>
4684 _ACEOF
4685 if ac_fn_c_try_cpp "$LINENO"; then :
4686   # Broken: success on invalid input.
4687 continue
4688 else
4689   # Passes both tests.
4690 ac_preproc_ok=:
4691 break
4692 fi
4693 rm -f conftest.err conftest.i conftest.$ac_ext
4694
4695 done
4696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4697 rm -f conftest.i conftest.err conftest.$ac_ext
4698 if $ac_preproc_ok; then :
4699
4700 else
4701   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4703 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4704 See \`config.log' for more details" "$LINENO" 5; }
4705 fi
4706
4707 ac_ext=c
4708 ac_cpp='$CPP $CPPFLAGS'
4709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4712
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4715 $as_echo_n "checking for ANSI C header files... " >&6; }
4716 if ${ac_cv_header_stdc+:} false; then :
4717   $as_echo_n "(cached) " >&6
4718 else
4719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h.  */
4721 #include <stdlib.h>
4722 #include <stdarg.h>
4723 #include <string.h>
4724 #include <float.h>
4725
4726 int
4727 main ()
4728 {
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735   ac_cv_header_stdc=yes
4736 else
4737   ac_cv_header_stdc=no
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740
4741 if test $ac_cv_header_stdc = yes; then
4742   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h.  */
4745 #include <string.h>
4746
4747 _ACEOF
4748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4749   $EGREP "memchr" >/dev/null 2>&1; then :
4750
4751 else
4752   ac_cv_header_stdc=no
4753 fi
4754 rm -f conftest*
4755
4756 fi
4757
4758 if test $ac_cv_header_stdc = yes; then
4759   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h.  */
4762 #include <stdlib.h>
4763
4764 _ACEOF
4765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766   $EGREP "free" >/dev/null 2>&1; then :
4767
4768 else
4769   ac_cv_header_stdc=no
4770 fi
4771 rm -f conftest*
4772
4773 fi
4774
4775 if test $ac_cv_header_stdc = yes; then
4776   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4777   if test "$cross_compiling" = yes; then :
4778   :
4779 else
4780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h.  */
4782 #include <ctype.h>
4783 #include <stdlib.h>
4784 #if ((' ' & 0x0FF) == 0x020)
4785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4787 #else
4788 # define ISLOWER(c) \
4789                    (('a' <= (c) && (c) <= 'i') \
4790                      || ('j' <= (c) && (c) <= 'r') \
4791                      || ('s' <= (c) && (c) <= 'z'))
4792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4793 #endif
4794
4795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4796 int
4797 main ()
4798 {
4799   int i;
4800   for (i = 0; i < 256; i++)
4801     if (XOR (islower (i), ISLOWER (i))
4802         || toupper (i) != TOUPPER (i))
4803       return 2;
4804   return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_run "$LINENO"; then :
4808
4809 else
4810   ac_cv_header_stdc=no
4811 fi
4812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4813   conftest.$ac_objext conftest.beam conftest.$ac_ext
4814 fi
4815
4816 fi
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4819 $as_echo "$ac_cv_header_stdc" >&6; }
4820 if test $ac_cv_header_stdc = yes; then
4821
4822 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4823
4824 fi
4825
4826 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4827 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4828                   inttypes.h stdint.h unistd.h
4829 do :
4830   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4831 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4832 "
4833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4834   cat >>confdefs.h <<_ACEOF
4835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4836 _ACEOF
4837
4838 fi
4839
4840 done
4841
4842
4843 for ac_header in dlfcn.h
4844 do :
4845   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4846 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4847   cat >>confdefs.h <<_ACEOF
4848 #define HAVE_DLFCN_H 1
4849 _ACEOF
4850
4851 fi
4852
4853 done
4854
4855 ac_ext=cpp
4856 ac_cpp='$CXXCPP $CPPFLAGS'
4857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4860 if test -z "$CXX"; then
4861   if test -n "$CCC"; then
4862     CXX=$CCC
4863   else
4864     if test -n "$ac_tool_prefix"; then
4865   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4866   do
4867     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if ${ac_cv_prog_CXX+:} false; then :
4872   $as_echo_n "(cached) " >&6
4873 else
4874   if test -n "$CXX"; then
4875   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882     for ac_exec_ext in '' $ac_executable_extensions; do
4883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886     break 2
4887   fi
4888 done
4889   done
4890 IFS=$as_save_IFS
4891
4892 fi
4893 fi
4894 CXX=$ac_cv_prog_CXX
4895 if test -n "$CXX"; then
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4897 $as_echo "$CXX" >&6; }
4898 else
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 fi
4902
4903
4904     test -n "$CXX" && break
4905   done
4906 fi
4907 if test -z "$CXX"; then
4908   ac_ct_CXX=$CXX
4909   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4910 do
4911   # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy $ac_prog; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4916   $as_echo_n "(cached) " >&6
4917 else
4918   if test -n "$ac_ct_CXX"; then
4919   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4920 else
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924   IFS=$as_save_IFS
4925   test -z "$as_dir" && as_dir=.
4926     for ac_exec_ext in '' $ac_executable_extensions; do
4927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928     ac_cv_prog_ac_ct_CXX="$ac_prog"
4929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930     break 2
4931   fi
4932 done
4933   done
4934 IFS=$as_save_IFS
4935
4936 fi
4937 fi
4938 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4939 if test -n "$ac_ct_CXX"; then
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4941 $as_echo "$ac_ct_CXX" >&6; }
4942 else
4943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4945 fi
4946
4947
4948   test -n "$ac_ct_CXX" && break
4949 done
4950
4951   if test "x$ac_ct_CXX" = x; then
4952     CXX="g++"
4953   else
4954     case $cross_compiling:$ac_tool_warned in
4955 yes:)
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4958 ac_tool_warned=yes ;;
4959 esac
4960     CXX=$ac_ct_CXX
4961   fi
4962 fi
4963
4964   fi
4965 fi
4966 # Provide some information about the compiler.
4967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4968 set X $ac_compile
4969 ac_compiler=$2
4970 for ac_option in --version -v -V -qversion; do
4971   { { ac_try="$ac_compiler $ac_option >&5"
4972 case "(($ac_try" in
4973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974   *) ac_try_echo=$ac_try;;
4975 esac
4976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4977 $as_echo "$ac_try_echo"; } >&5
4978   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4979   ac_status=$?
4980   if test -s conftest.err; then
4981     sed '10a\
4982 ... rest of stderr output deleted ...
4983          10q' conftest.err >conftest.er1
4984     cat conftest.er1 >&5
4985   fi
4986   rm -f conftest.er1 conftest.err
4987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988   test $ac_status = 0; }
4989 done
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4992 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4993 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h.  */
4998
4999 int
5000 main ()
5001 {
5002 #ifndef __GNUC__
5003        choke me
5004 #endif
5005
5006   ;
5007   return 0;
5008 }
5009 _ACEOF
5010 if ac_fn_cxx_try_compile "$LINENO"; then :
5011   ac_compiler_gnu=yes
5012 else
5013   ac_compiler_gnu=no
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5017
5018 fi
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5020 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5021 if test $ac_compiler_gnu = yes; then
5022   GXX=yes
5023 else
5024   GXX=
5025 fi
5026 ac_test_CXXFLAGS=${CXXFLAGS+set}
5027 ac_save_CXXFLAGS=$CXXFLAGS
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5029 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5030 if ${ac_cv_prog_cxx_g+:} false; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5034    ac_cxx_werror_flag=yes
5035    ac_cv_prog_cxx_g=no
5036    CXXFLAGS="-g"
5037    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h.  */
5039
5040 int
5041 main ()
5042 {
5043
5044   ;
5045   return 0;
5046 }
5047 _ACEOF
5048 if ac_fn_cxx_try_compile "$LINENO"; then :
5049   ac_cv_prog_cxx_g=yes
5050 else
5051   CXXFLAGS=""
5052       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h.  */
5054
5055 int
5056 main ()
5057 {
5058
5059   ;
5060   return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_cxx_try_compile "$LINENO"; then :
5064
5065 else
5066   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5067          CXXFLAGS="-g"
5068          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h.  */
5070
5071 int
5072 main ()
5073 {
5074
5075   ;
5076   return 0;
5077 }
5078 _ACEOF
5079 if ac_fn_cxx_try_compile "$LINENO"; then :
5080   ac_cv_prog_cxx_g=yes
5081 fi
5082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 fi
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 fi
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5090 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5091 if test "$ac_test_CXXFLAGS" = set; then
5092   CXXFLAGS=$ac_save_CXXFLAGS
5093 elif test $ac_cv_prog_cxx_g = yes; then
5094   if test "$GXX" = yes; then
5095     CXXFLAGS="-g -O2"
5096   else
5097     CXXFLAGS="-g"
5098   fi
5099 else
5100   if test "$GXX" = yes; then
5101     CXXFLAGS="-O2"
5102   else
5103     CXXFLAGS=
5104   fi
5105 fi
5106 ac_ext=cpp
5107 ac_cpp='$CXXCPP $CPPFLAGS'
5108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5111
5112 ac_ext=cpp
5113 ac_cpp='$CXXCPP $CPPFLAGS'
5114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5118 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5119 if test -z "$CXXCPP"; then
5120   if ${ac_cv_prog_CXXCPP+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123       # Double quotes because CXXCPP needs to be expanded
5124     for CXXCPP in "$CXX -E" "/lib/cpp"
5125     do
5126       ac_preproc_ok=false
5127 for ac_cxx_preproc_warn_flag in '' yes
5128 do
5129   # Use a header file that comes with gcc, so configuring glibc
5130   # with a fresh cross-compiler works.
5131   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5132   # <limits.h> exists even on freestanding compilers.
5133   # On the NeXT, cc -E runs the code through the compiler's parser,
5134   # not just through cpp. "Syntax error" is here to catch this case.
5135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h.  */
5137 #ifdef __STDC__
5138 # include <limits.h>
5139 #else
5140 # include <assert.h>
5141 #endif
5142                      Syntax error
5143 _ACEOF
5144 if ac_fn_cxx_try_cpp "$LINENO"; then :
5145
5146 else
5147   # Broken: fails on valid input.
5148 continue
5149 fi
5150 rm -f conftest.err conftest.i conftest.$ac_ext
5151
5152   # OK, works on sane cases.  Now check whether nonexistent headers
5153   # can be detected and how.
5154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h.  */
5156 #include <ac_nonexistent.h>
5157 _ACEOF
5158 if ac_fn_cxx_try_cpp "$LINENO"; then :
5159   # Broken: success on invalid input.
5160 continue
5161 else
5162   # Passes both tests.
5163 ac_preproc_ok=:
5164 break
5165 fi
5166 rm -f conftest.err conftest.i conftest.$ac_ext
5167
5168 done
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.i conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then :
5172   break
5173 fi
5174
5175     done
5176     ac_cv_prog_CXXCPP=$CXXCPP
5177
5178 fi
5179   CXXCPP=$ac_cv_prog_CXXCPP
5180 else
5181   ac_cv_prog_CXXCPP=$CXXCPP
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5184 $as_echo "$CXXCPP" >&6; }
5185 ac_preproc_ok=false
5186 for ac_cxx_preproc_warn_flag in '' yes
5187 do
5188   # Use a header file that comes with gcc, so configuring glibc
5189   # with a fresh cross-compiler works.
5190   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5191   # <limits.h> exists even on freestanding compilers.
5192   # On the NeXT, cc -E runs the code through the compiler's parser,
5193   # not just through cpp. "Syntax error" is here to catch this case.
5194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h.  */
5196 #ifdef __STDC__
5197 # include <limits.h>
5198 #else
5199 # include <assert.h>
5200 #endif
5201                      Syntax error
5202 _ACEOF
5203 if ac_fn_cxx_try_cpp "$LINENO"; then :
5204
5205 else
5206   # Broken: fails on valid input.
5207 continue
5208 fi
5209 rm -f conftest.err conftest.i conftest.$ac_ext
5210
5211   # OK, works on sane cases.  Now check whether nonexistent headers
5212   # can be detected and how.
5213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h.  */
5215 #include <ac_nonexistent.h>
5216 _ACEOF
5217 if ac_fn_cxx_try_cpp "$LINENO"; then :
5218   # Broken: success on invalid input.
5219 continue
5220 else
5221   # Passes both tests.
5222 ac_preproc_ok=:
5223 break
5224 fi
5225 rm -f conftest.err conftest.i conftest.$ac_ext
5226
5227 done
5228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5229 rm -f conftest.i conftest.err conftest.$ac_ext
5230 if $ac_preproc_ok; then :
5231
5232 else
5233   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5235 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5236 See \`config.log' for more details" "$LINENO" 5; }
5237 fi
5238
5239 ac_ext=cpp
5240 ac_cpp='$CXXCPP $CPPFLAGS'
5241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5244
5245
5246 ac_ext=f
5247 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5248 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5250 if test -n "$ac_tool_prefix"; then
5251   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
5252   do
5253     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_prog_F77+:} false; then :
5258   $as_echo_n "(cached) " >&6
5259 else
5260   if test -n "$F77"; then
5261   ac_cv_prog_F77="$F77" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268     for ac_exec_ext in '' $ac_executable_extensions; do
5269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272     break 2
5273   fi
5274 done
5275   done
5276 IFS=$as_save_IFS
5277
5278 fi
5279 fi
5280 F77=$ac_cv_prog_F77
5281 if test -n "$F77"; then
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5283 $as_echo "$F77" >&6; }
5284 else
5285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288
5289
5290     test -n "$F77" && break
5291   done
5292 fi
5293 if test -z "$F77"; then
5294   ac_ct_F77=$F77
5295   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
5296 do
5297   # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if ${ac_cv_prog_ac_ct_F77+:} false; then :
5302   $as_echo_n "(cached) " >&6
5303 else
5304   if test -n "$ac_ct_F77"; then
5305   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312     for ac_exec_ext in '' $ac_executable_extensions; do
5313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314     ac_cv_prog_ac_ct_F77="$ac_prog"
5315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316     break 2
5317   fi
5318 done
5319   done
5320 IFS=$as_save_IFS
5321
5322 fi
5323 fi
5324 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5325 if test -n "$ac_ct_F77"; then
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5327 $as_echo "$ac_ct_F77" >&6; }
5328 else
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5331 fi
5332
5333
5334   test -n "$ac_ct_F77" && break
5335 done
5336
5337   if test "x$ac_ct_F77" = x; then
5338     F77=""
5339   else
5340     case $cross_compiling:$ac_tool_warned in
5341 yes:)
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344 ac_tool_warned=yes ;;
5345 esac
5346     F77=$ac_ct_F77
5347   fi
5348 fi
5349
5350
5351 # Provide some information about the compiler.
5352 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5353 set X $ac_compile
5354 ac_compiler=$2
5355 for ac_option in --version -v -V -qversion; do
5356   { { ac_try="$ac_compiler $ac_option >&5"
5357 case "(($ac_try" in
5358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359   *) ac_try_echo=$ac_try;;
5360 esac
5361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5362 $as_echo "$ac_try_echo"; } >&5
5363   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5364   ac_status=$?
5365   if test -s conftest.err; then
5366     sed '10a\
5367 ... rest of stderr output deleted ...
5368          10q' conftest.err >conftest.er1
5369     cat conftest.er1 >&5
5370   fi
5371   rm -f conftest.er1 conftest.err
5372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5373   test $ac_status = 0; }
5374 done
5375 rm -f a.out
5376
5377 # If we don't use `.F' as extension, the preprocessor is not run on the
5378 # input file.  (Note that this only needs to work for GNU compilers.)
5379 ac_save_ext=$ac_ext
5380 ac_ext=F
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5382 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5383 if ${ac_cv_f77_compiler_gnu+:} false; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   cat > conftest.$ac_ext <<_ACEOF
5387       program main
5388 #ifndef __GNUC__
5389        choke me
5390 #endif
5391
5392       end
5393 _ACEOF
5394 if ac_fn_f77_try_compile "$LINENO"; then :
5395   ac_compiler_gnu=yes
5396 else
5397   ac_compiler_gnu=no
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5401
5402 fi
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5404 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5405 ac_ext=$ac_save_ext
5406 ac_test_FFLAGS=${FFLAGS+set}
5407 ac_save_FFLAGS=$FFLAGS
5408 FFLAGS=
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5410 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5411 if ${ac_cv_prog_f77_g+:} false; then :
5412   $as_echo_n "(cached) " >&6
5413 else
5414   FFLAGS=-g
5415 cat > conftest.$ac_ext <<_ACEOF
5416       program main
5417
5418       end
5419 _ACEOF
5420 if ac_fn_f77_try_compile "$LINENO"; then :
5421   ac_cv_prog_f77_g=yes
5422 else
5423   ac_cv_prog_f77_g=no
5424 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426
5427 fi
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5429 $as_echo "$ac_cv_prog_f77_g" >&6; }
5430 if test "$ac_test_FFLAGS" = set; then
5431   FFLAGS=$ac_save_FFLAGS
5432 elif test $ac_cv_prog_f77_g = yes; then
5433   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5434     FFLAGS="-g -O2"
5435   else
5436     FFLAGS="-g"
5437   fi
5438 else
5439   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5440     FFLAGS="-O2"
5441   else
5442     FFLAGS=
5443   fi
5444 fi
5445
5446 if test $ac_compiler_gnu = yes; then
5447   G77=yes
5448 else
5449   G77=
5450 fi
5451 ac_ext=c
5452 ac_cpp='$CPP $CPPFLAGS'
5453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5456
5457
5458
5459 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5460
5461 # find the maximum length of command line arguments
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5463 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5464 if ${lt_cv_sys_max_cmd_len+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467     i=0
5468   testring="ABCD"
5469
5470   case $build_os in
5471   msdosdjgpp*)
5472     # On DJGPP, this test can blow up pretty badly due to problems in libc
5473     # (any single argument exceeding 2000 bytes causes a buffer overrun
5474     # during glob expansion).  Even if it were fixed, the result of this
5475     # check would be larger than it should be.
5476     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5477     ;;
5478
5479   gnu*)
5480     # Under GNU Hurd, this test is not required because there is
5481     # no limit to the length of command line arguments.
5482     # Libtool will interpret -1 as no limit whatsoever
5483     lt_cv_sys_max_cmd_len=-1;
5484     ;;
5485
5486   cygwin* | mingw*)
5487     # On Win9x/ME, this test blows up -- it succeeds, but takes
5488     # about 5 minutes as the teststring grows exponentially.
5489     # Worse, since 9x/ME are not pre-emptively multitasking,
5490     # you end up with a "frozen" computer, even though with patience
5491     # the test eventually succeeds (with a max line length of 256k).
5492     # Instead, let's just punt: use the minimum linelength reported by
5493     # all of the supported platforms: 8192 (on NT/2K/XP).
5494     lt_cv_sys_max_cmd_len=8192;
5495     ;;
5496
5497   amigaos*)
5498     # On AmigaOS with pdksh, this test takes hours, literally.
5499     # So we just punt and use a minimum line length of 8192.
5500     lt_cv_sys_max_cmd_len=8192;
5501     ;;
5502
5503  *)
5504     # If test is not a shell built-in, we'll probably end up computing a
5505     # maximum length that is only half of the actual maximum length, but
5506     # we can't tell.
5507     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5508                = "XX$testring") >/dev/null 2>&1 &&
5509             new_result=`expr "X$testring" : ".*" 2>&1` &&
5510             lt_cv_sys_max_cmd_len=$new_result &&
5511             test $i != 17 # 1/2 MB should be enough
5512     do
5513       i=`expr $i + 1`
5514       testring=$testring$testring
5515     done
5516     testring=
5517     # Add a significant safety factor because C++ compilers can tack on massive
5518     # amounts of additional arguments before passing them to the linker.
5519     # It appears as though 1/2 is a usable value.
5520     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5521     ;;
5522   esac
5523
5524 fi
5525
5526 if test -n $lt_cv_sys_max_cmd_len ; then
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5528 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5529 else
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5531 $as_echo "none" >&6; }
5532 fi
5533
5534
5535
5536
5537 # Check for command to grab the raw symbol name followed by C symbol from nm.
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5539 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5540 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543
5544 # These are sane defaults that work on at least a few old systems.
5545 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5546
5547 # Character class describing NM global symbol codes.
5548 symcode='[BCDEGRST]'
5549
5550 # Regexp to match symbols that can be accessed directly from C.
5551 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5552
5553 # Transform the above into a raw symbol and a C symbol.
5554 symxfrm='\1 \2\3 \3'
5555
5556 # Transform an extracted symbol line into a proper C declaration
5557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5558
5559 # Transform an extracted symbol line into symbol name and symbol address
5560 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5561
5562 # Define system-specific variables.
5563 case $host_os in
5564 aix*)
5565   symcode='[BCDT]'
5566   ;;
5567 cygwin* | mingw* | pw32*)
5568   symcode='[ABCDGISTW]'
5569   ;;
5570 hpux*) # Its linker distinguishes data from code symbols
5571   if test "$host_cpu" = ia64; then
5572     symcode='[ABCDEGRST]'
5573   fi
5574   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5575   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5576   ;;
5577 irix* | nonstopux*)
5578   symcode='[BCDEGRST]'
5579   ;;
5580 osf*)
5581   symcode='[BCDEGQRST]'
5582   ;;
5583 solaris* | sysv5*)
5584   symcode='[BDRT]'
5585   ;;
5586 sysv4)
5587   symcode='[DFNSTU]'
5588   ;;
5589 esac
5590
5591 # Handle CRLF in mingw tool chain
5592 opt_cr=
5593 case $build_os in
5594 mingw*)
5595   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5596   ;;
5597 esac
5598
5599 # If we're using GNU nm, then use its standard symbol codes.
5600 case `$NM -V 2>&1` in
5601 *GNU* | *'with BFD'*)
5602   symcode='[ABCDGIRSTW]' ;;
5603 esac
5604
5605 # Try without a prefix undercore, then with it.
5606 for ac_symprfx in "" "_"; do
5607
5608   # Write the raw and C identifiers.
5609   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5610
5611   # Check to see that the pipe works correctly.
5612   pipe_works=no
5613
5614   rm -f conftest*
5615   cat > conftest.$ac_ext <<EOF
5616 #ifdef __cplusplus
5617 extern "C" {
5618 #endif
5619 char nm_test_var;
5620 void nm_test_func(){}
5621 #ifdef __cplusplus
5622 }
5623 #endif
5624 int main(){nm_test_var='a';nm_test_func();return(0);}
5625 EOF
5626
5627   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5628   (eval $ac_compile) 2>&5
5629   ac_status=$?
5630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631   test $ac_status = 0; }; then
5632     # Now try to grab the symbols.
5633     nlist=conftest.nm
5634     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5635   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5636   ac_status=$?
5637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638   test $ac_status = 0; } && test -s "$nlist"; then
5639       # Try sorting and uniquifying the output.
5640       if sort "$nlist" | uniq > "$nlist"T; then
5641         mv -f "$nlist"T "$nlist"
5642       else
5643         rm -f "$nlist"T
5644       fi
5645
5646       # Make sure that we snagged all the symbols we need.
5647       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5648         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5649           cat <<EOF > conftest.$ac_ext
5650 #ifdef __cplusplus
5651 extern "C" {
5652 #endif
5653
5654 EOF
5655           # Now generate the symbol file.
5656           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5657
5658           cat <<EOF >> conftest.$ac_ext
5659 #if defined (__STDC__) && __STDC__
5660 # define lt_ptr_t void *
5661 #else
5662 # define lt_ptr_t char *
5663 # define const
5664 #endif
5665
5666 /* The mapping between symbol names and symbols. */
5667 const struct {
5668   const char *name;
5669   lt_ptr_t address;
5670 }
5671 lt_preloaded_symbols[] =
5672 {
5673 EOF
5674           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5675           cat <<\EOF >> conftest.$ac_ext
5676   {0, (lt_ptr_t) 0}
5677 };
5678
5679 #ifdef __cplusplus
5680 }
5681 #endif
5682 EOF
5683           # Now try linking the two files.
5684           mv conftest.$ac_objext conftstm.$ac_objext
5685           lt_save_LIBS="$LIBS"
5686           lt_save_CFLAGS="$CFLAGS"
5687           LIBS="conftstm.$ac_objext"
5688           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5689           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5690   (eval $ac_link) 2>&5
5691   ac_status=$?
5692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5694             pipe_works=yes
5695           fi
5696           LIBS="$lt_save_LIBS"
5697           CFLAGS="$lt_save_CFLAGS"
5698         else
5699           echo "cannot find nm_test_func in $nlist" >&5
5700         fi
5701       else
5702         echo "cannot find nm_test_var in $nlist" >&5
5703       fi
5704     else
5705       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5706     fi
5707   else
5708     echo "$progname: failed program was:" >&5
5709     cat conftest.$ac_ext >&5
5710   fi
5711   rm -f conftest* conftst*
5712
5713   # Do not use the global_symbol_pipe unless it works.
5714   if test "$pipe_works" = yes; then
5715     break
5716   else
5717     lt_cv_sys_global_symbol_pipe=
5718   fi
5719 done
5720
5721 fi
5722
5723 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5724   lt_cv_sys_global_symbol_to_cdecl=
5725 fi
5726 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5728 $as_echo "failed" >&6; }
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5731 $as_echo "ok" >&6; }
5732 fi
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5735 $as_echo_n "checking for objdir... " >&6; }
5736 if ${lt_cv_objdir+:} false; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739   rm -f .libs 2>/dev/null
5740 mkdir .libs 2>/dev/null
5741 if test -d .libs; then
5742   lt_cv_objdir=.libs
5743 else
5744   # MS-DOS does not allow filenames that begin with a dot.
5745   lt_cv_objdir=_libs
5746 fi
5747 rmdir .libs 2>/dev/null
5748 fi
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5750 $as_echo "$lt_cv_objdir" >&6; }
5751 objdir=$lt_cv_objdir
5752
5753
5754
5755
5756
5757 case $host_os in
5758 aix3*)
5759   # AIX sometimes has problems with the GCC collect2 program.  For some
5760   # reason, if we set the COLLECT_NAMES environment variable, the problems
5761   # vanish in a puff of smoke.
5762   if test "X${COLLECT_NAMES+set}" != Xset; then
5763     COLLECT_NAMES=
5764     export COLLECT_NAMES
5765   fi
5766   ;;
5767 esac
5768
5769 # Sed substitution that helps us do robust quoting.  It backslashifies
5770 # metacharacters that are still active within double-quoted strings.
5771 Xsed='sed -e s/^X//'
5772 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5773
5774 # Same as above, but do not quote variable references.
5775 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5776
5777 # Sed substitution to delay expansion of an escaped shell variable in a
5778 # double_quote_subst'ed string.
5779 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5780
5781 # Sed substitution to avoid accidental globbing in evaled expressions
5782 no_glob_subst='s/\*/\\\*/g'
5783
5784 # Constants:
5785 rm="rm -f"
5786
5787 # Global variables:
5788 default_ofile=libtool
5789 can_build_shared=yes
5790
5791 # All known linkers require a `.a' archive for static linking (except M$VC,
5792 # which needs '.lib').
5793 libext=a
5794 ltmain="$ac_aux_dir/ltmain.sh"
5795 ofile="$default_ofile"
5796 with_gnu_ld="$lt_cv_prog_gnu_ld"
5797
5798 if test -n "$ac_tool_prefix"; then
5799   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5800 set dummy ${ac_tool_prefix}ar; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_AR+:} false; then :
5804   $as_echo_n "(cached) " >&6
5805 else
5806   if test -n "$AR"; then
5807   ac_cv_prog_AR="$AR" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814     for ac_exec_ext in '' $ac_executable_extensions; do
5815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816     ac_cv_prog_AR="${ac_tool_prefix}ar"
5817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821   done
5822 IFS=$as_save_IFS
5823
5824 fi
5825 fi
5826 AR=$ac_cv_prog_AR
5827 if test -n "$AR"; then
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5829 $as_echo "$AR" >&6; }
5830 else
5831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5834
5835
5836 fi
5837 if test -z "$ac_cv_prog_AR"; then
5838   ac_ct_AR=$AR
5839   # Extract the first word of "ar", so it can be a program name with args.
5840 set dummy ar; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   if test -n "$ac_ct_AR"; then
5847   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854     for ac_exec_ext in '' $ac_executable_extensions; do
5855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856     ac_cv_prog_ac_ct_AR="ar"
5857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858     break 2
5859   fi
5860 done
5861   done
5862 IFS=$as_save_IFS
5863
5864 fi
5865 fi
5866 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5867 if test -n "$ac_ct_AR"; then
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5869 $as_echo "$ac_ct_AR" >&6; }
5870 else
5871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874
5875   if test "x$ac_ct_AR" = x; then
5876     AR="false"
5877   else
5878     case $cross_compiling:$ac_tool_warned in
5879 yes:)
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5882 ac_tool_warned=yes ;;
5883 esac
5884     AR=$ac_ct_AR
5885   fi
5886 else
5887   AR="$ac_cv_prog_AR"
5888 fi
5889
5890 if test -n "$ac_tool_prefix"; then
5891   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5892 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_RANLIB+:} false; then :
5896   $as_echo_n "(cached) " >&6
5897 else
5898   if test -n "$RANLIB"; then
5899   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906     for ac_exec_ext in '' $ac_executable_extensions; do
5907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913   done
5914 IFS=$as_save_IFS
5915
5916 fi
5917 fi
5918 RANLIB=$ac_cv_prog_RANLIB
5919 if test -n "$RANLIB"; then
5920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5921 $as_echo "$RANLIB" >&6; }
5922 else
5923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5925 fi
5926
5927
5928 fi
5929 if test -z "$ac_cv_prog_RANLIB"; then
5930   ac_ct_RANLIB=$RANLIB
5931   # Extract the first word of "ranlib", so it can be a program name with args.
5932 set dummy ranlib; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5936   $as_echo_n "(cached) " >&6
5937 else
5938   if test -n "$ac_ct_RANLIB"; then
5939   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946     for ac_exec_ext in '' $ac_executable_extensions; do
5947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948     ac_cv_prog_ac_ct_RANLIB="ranlib"
5949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953   done
5954 IFS=$as_save_IFS
5955
5956 fi
5957 fi
5958 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5959 if test -n "$ac_ct_RANLIB"; then
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5961 $as_echo "$ac_ct_RANLIB" >&6; }
5962 else
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5965 fi
5966
5967   if test "x$ac_ct_RANLIB" = x; then
5968     RANLIB=":"
5969   else
5970     case $cross_compiling:$ac_tool_warned in
5971 yes:)
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned=yes ;;
5975 esac
5976     RANLIB=$ac_ct_RANLIB
5977   fi
5978 else
5979   RANLIB="$ac_cv_prog_RANLIB"
5980 fi
5981
5982 if test -n "$ac_tool_prefix"; then
5983   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}strip; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if ${ac_cv_prog_STRIP+:} false; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   if test -n "$STRIP"; then
5991   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998     for ac_exec_ext in '' $ac_executable_extensions; do
5999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005   done
6006 IFS=$as_save_IFS
6007
6008 fi
6009 fi
6010 STRIP=$ac_cv_prog_STRIP
6011 if test -n "$STRIP"; then
6012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6013 $as_echo "$STRIP" >&6; }
6014 else
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6017 fi
6018
6019
6020 fi
6021 if test -z "$ac_cv_prog_STRIP"; then
6022   ac_ct_STRIP=$STRIP
6023   # Extract the first word of "strip", so it can be a program name with args.
6024 set dummy strip; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6028   $as_echo_n "(cached) " >&6
6029 else
6030   if test -n "$ac_ct_STRIP"; then
6031   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038     for ac_exec_ext in '' $ac_executable_extensions; do
6039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040     ac_cv_prog_ac_ct_STRIP="strip"
6041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045   done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6051 if test -n "$ac_ct_STRIP"; then
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6053 $as_echo "$ac_ct_STRIP" >&6; }
6054 else
6055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059   if test "x$ac_ct_STRIP" = x; then
6060     STRIP=":"
6061   else
6062     case $cross_compiling:$ac_tool_warned in
6063 yes:)
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066 ac_tool_warned=yes ;;
6067 esac
6068     STRIP=$ac_ct_STRIP
6069   fi
6070 else
6071   STRIP="$ac_cv_prog_STRIP"
6072 fi
6073
6074
6075 old_CC="$CC"
6076 old_CFLAGS="$CFLAGS"
6077
6078 # Set sane defaults for various variables
6079 test -z "$AR" && AR=ar
6080 test -z "$AR_FLAGS" && AR_FLAGS=cru
6081 test -z "$AS" && AS=as
6082 test -z "$CC" && CC=cc
6083 test -z "$LTCC" && LTCC=$CC
6084 test -z "$DLLTOOL" && DLLTOOL=dlltool
6085 test -z "$LD" && LD=ld
6086 test -z "$LN_S" && LN_S="ln -s"
6087 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6088 test -z "$NM" && NM=nm
6089 test -z "$SED" && SED=sed
6090 test -z "$OBJDUMP" && OBJDUMP=objdump
6091 test -z "$RANLIB" && RANLIB=:
6092 test -z "$STRIP" && STRIP=:
6093 test -z "$ac_objext" && ac_objext=o
6094
6095 # Determine commands to create old-style static archives.
6096 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6097 old_postinstall_cmds='chmod 644 $oldlib'
6098 old_postuninstall_cmds=
6099
6100 if test -n "$RANLIB"; then
6101   case $host_os in
6102   openbsd*)
6103     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6104     ;;
6105   *)
6106     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6107     ;;
6108   esac
6109   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6110 fi
6111
6112 # Only perform the check for file, if the check method requires it
6113 case $deplibs_check_method in
6114 file_magic*)
6115   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6117 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6118 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6119   $as_echo_n "(cached) " >&6
6120 else
6121   case $MAGIC_CMD in
6122 [\\/*] |  ?:[\\/]*)
6123   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6124   ;;
6125 *)
6126   lt_save_MAGIC_CMD="$MAGIC_CMD"
6127   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6128   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6129   for ac_dir in $ac_dummy; do
6130     IFS="$lt_save_ifs"
6131     test -z "$ac_dir" && ac_dir=.
6132     if test -f $ac_dir/${ac_tool_prefix}file; then
6133       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6134       if test -n "$file_magic_test_file"; then
6135         case $deplibs_check_method in
6136         "file_magic "*)
6137           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6138           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6139           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6140             $EGREP "$file_magic_regex" > /dev/null; then
6141             :
6142           else
6143             cat <<EOF 1>&2
6144
6145 *** Warning: the command libtool uses to detect shared libraries,
6146 *** $file_magic_cmd, produces output that libtool cannot recognize.
6147 *** The result is that libtool may fail to recognize shared libraries
6148 *** as such.  This will affect the creation of libtool libraries that
6149 *** depend on shared libraries, but programs linked with such libtool
6150 *** libraries will work regardless of this problem.  Nevertheless, you
6151 *** may want to report the problem to your system manager and/or to
6152 *** bug-libtool@gnu.org
6153
6154 EOF
6155           fi ;;
6156         esac
6157       fi
6158       break
6159     fi
6160   done
6161   IFS="$lt_save_ifs"
6162   MAGIC_CMD="$lt_save_MAGIC_CMD"
6163   ;;
6164 esac
6165 fi
6166
6167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6168 if test -n "$MAGIC_CMD"; then
6169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6170 $as_echo "$MAGIC_CMD" >&6; }
6171 else
6172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173 $as_echo "no" >&6; }
6174 fi
6175
6176 if test -z "$lt_cv_path_MAGIC_CMD"; then
6177   if test -n "$ac_tool_prefix"; then
6178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6179 $as_echo_n "checking for file... " >&6; }
6180 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6181   $as_echo_n "(cached) " >&6
6182 else
6183   case $MAGIC_CMD in
6184 [\\/*] |  ?:[\\/]*)
6185   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6186   ;;
6187 *)
6188   lt_save_MAGIC_CMD="$MAGIC_CMD"
6189   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6190   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6191   for ac_dir in $ac_dummy; do
6192     IFS="$lt_save_ifs"
6193     test -z "$ac_dir" && ac_dir=.
6194     if test -f $ac_dir/file; then
6195       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6196       if test -n "$file_magic_test_file"; then
6197         case $deplibs_check_method in
6198         "file_magic "*)
6199           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6200           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6201           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6202             $EGREP "$file_magic_regex" > /dev/null; then
6203             :
6204           else
6205             cat <<EOF 1>&2
6206
6207 *** Warning: the command libtool uses to detect shared libraries,
6208 *** $file_magic_cmd, produces output that libtool cannot recognize.
6209 *** The result is that libtool may fail to recognize shared libraries
6210 *** as such.  This will affect the creation of libtool libraries that
6211 *** depend on shared libraries, but programs linked with such libtool
6212 *** libraries will work regardless of this problem.  Nevertheless, you
6213 *** may want to report the problem to your system manager and/or to
6214 *** bug-libtool@gnu.org
6215
6216 EOF
6217           fi ;;
6218         esac
6219       fi
6220       break
6221     fi
6222   done
6223   IFS="$lt_save_ifs"
6224   MAGIC_CMD="$lt_save_MAGIC_CMD"
6225   ;;
6226 esac
6227 fi
6228
6229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6230 if test -n "$MAGIC_CMD"; then
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6232 $as_echo "$MAGIC_CMD" >&6; }
6233 else
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238   else
6239     MAGIC_CMD=:
6240   fi
6241 fi
6242
6243   fi
6244   ;;
6245 esac
6246
6247 enable_dlopen=no
6248 enable_win32_dll=no
6249
6250 # Check whether --enable-libtool-lock was given.
6251 if test "${enable_libtool_lock+set}" = set; then :
6252   enableval=$enable_libtool_lock;
6253 fi
6254
6255 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6256
6257
6258 # Check whether --with-pic was given.
6259 if test "${with_pic+set}" = set; then :
6260   withval=$with_pic; pic_mode="$withval"
6261 else
6262   pic_mode=default
6263 fi
6264
6265 test -z "$pic_mode" && pic_mode=default
6266
6267 # Use C for the default configuration in the libtool script
6268 tagname=
6269 lt_save_CC="$CC"
6270 ac_ext=c
6271 ac_cpp='$CPP $CPPFLAGS'
6272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6275
6276
6277 # Source file extension for C test sources.
6278 ac_ext=c
6279
6280 # Object file extension for compiled C test sources.
6281 objext=o
6282 objext=$objext
6283
6284 # Code to be used in simple compile tests
6285 lt_simple_compile_test_code="int some_variable = 0;\n"
6286
6287 # Code to be used in simple link tests
6288 lt_simple_link_test_code='int main(){return(0);}\n'
6289
6290
6291 # If no C compiler was specified, use CC.
6292 LTCC=${LTCC-"$CC"}
6293
6294 # Allow CC to be a program name with arguments.
6295 compiler=$CC
6296
6297
6298 #
6299 # Check for any special shared library compilation flags.
6300 #
6301 lt_prog_cc_shlib=
6302 if test "$GCC" = no; then
6303   case $host_os in
6304   sco3.2v5*)
6305     lt_prog_cc_shlib='-belf'
6306     ;;
6307   esac
6308 fi
6309 if test -n "$lt_prog_cc_shlib"; then
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6311 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6312   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6313   else
6314     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6315 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6316     lt_cv_prog_cc_can_build_shared=no
6317   fi
6318 fi
6319
6320
6321 #
6322 # Check to make sure the static flag actually works.
6323 #
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6325 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6326 if ${lt_prog_compiler_static_works+:} false; then :
6327   $as_echo_n "(cached) " >&6
6328 else
6329   lt_prog_compiler_static_works=no
6330    save_LDFLAGS="$LDFLAGS"
6331    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6332    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6333    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6334      # The compiler can only warn and ignore the option if not recognized
6335      # So say no if there are warnings
6336      if test -s conftest.err; then
6337        # Append any errors to the config.log.
6338        cat conftest.err 1>&5
6339      else
6340        lt_prog_compiler_static_works=yes
6341      fi
6342    fi
6343    $rm conftest*
6344    LDFLAGS="$save_LDFLAGS"
6345
6346 fi
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6348 $as_echo "$lt_prog_compiler_static_works" >&6; }
6349
6350 if test x"$lt_prog_compiler_static_works" = xyes; then
6351     :
6352 else
6353     lt_prog_compiler_static=
6354 fi
6355
6356
6357
6358 ## CAVEAT EMPTOR:
6359 ## There is no encapsulation within the following macros, do not change
6360 ## the running order or otherwise move them around unless you know exactly
6361 ## what you are doing...
6362
6363 lt_prog_compiler_no_builtin_flag=
6364
6365 if test "$GCC" = yes; then
6366   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6367
6368
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6370 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6371 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6372   $as_echo_n "(cached) " >&6
6373 else
6374   lt_cv_prog_compiler_rtti_exceptions=no
6375   ac_outfile=conftest.$ac_objext
6376    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6377    lt_compiler_flag="-fno-rtti -fno-exceptions"
6378    # Insert the option either (1) after the last *FLAGS variable, or
6379    # (2) before a word containing "conftest.", or (3) at the end.
6380    # Note that $ac_compile itself does not contain backslashes and begins
6381    # with a dollar sign (not a hyphen), so the echo should work correctly.
6382    # The option is referenced via a variable to avoid confusing sed.
6383    lt_compile=`echo "$ac_compile" | $SED \
6384    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6385    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6386    -e 's:$: $lt_compiler_flag:'`
6387    (eval echo "\"\$as_me:6387: $lt_compile\"" >&5)
6388    (eval "$lt_compile" 2>conftest.err)
6389    ac_status=$?
6390    cat conftest.err >&5
6391    echo "$as_me:6391: \$? = $ac_status" >&5
6392    if (exit $ac_status) && test -s "$ac_outfile"; then
6393      # The compiler can only warn and ignore the option if not recognized
6394      # So say no if there are warnings
6395      if test ! -s conftest.err; then
6396        lt_cv_prog_compiler_rtti_exceptions=yes
6397      fi
6398    fi
6399    $rm conftest*
6400
6401 fi
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6403 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6404
6405 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6406     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6407 else
6408     :
6409 fi
6410
6411 fi
6412
6413 lt_prog_compiler_wl=
6414 lt_prog_compiler_pic=
6415 lt_prog_compiler_static=
6416
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6418 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6419
6420   if test "$GCC" = yes; then
6421     lt_prog_compiler_wl='-Wl,'
6422     lt_prog_compiler_static='-static'
6423
6424     case $host_os in
6425       aix*)
6426       # All AIX code is PIC.
6427       if test "$host_cpu" = ia64; then
6428         # AIX 5 now supports IA64 processor
6429         lt_prog_compiler_static='-Bstatic'
6430       fi
6431       ;;
6432
6433     amigaos*)
6434       # FIXME: we need at least 68020 code to build shared libraries, but
6435       # adding the `-m68020' flag to GCC prevents building anything better,
6436       # like `-m68040'.
6437       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6438       ;;
6439
6440     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6441       # PIC is the default for these OSes.
6442       ;;
6443
6444     mingw* | pw32* | os2*)
6445       # This hack is so that the source file can tell whether it is being
6446       # built for inclusion in a dll (and should export symbols for example).
6447       lt_prog_compiler_pic='-DDLL_EXPORT'
6448       ;;
6449
6450     darwin* | rhapsody*)
6451       # PIC is the default on this platform
6452       # Common symbols not allowed in MH_DYLIB files
6453       lt_prog_compiler_pic='-fno-common'
6454       ;;
6455
6456     msdosdjgpp*)
6457       # Just because we use GCC doesn't mean we suddenly get shared libraries
6458       # on systems that don't support them.
6459       lt_prog_compiler_can_build_shared=no
6460       enable_shared=no
6461       ;;
6462
6463     sysv4*MP*)
6464       if test -d /usr/nec; then
6465         lt_prog_compiler_pic=-Kconform_pic
6466       fi
6467       ;;
6468
6469     hpux*)
6470       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6471       # not for PA HP-UX.
6472       case "$host_cpu" in
6473       hppa*64*|ia64*)
6474         # +Z the default
6475         ;;
6476       *)
6477         lt_prog_compiler_pic='-fPIC'
6478         ;;
6479       esac
6480       ;;
6481
6482     *)
6483       lt_prog_compiler_pic='-fPIC'
6484       ;;
6485     esac
6486   else
6487     # PORTME Check for flag to pass linker flags through the system compiler.
6488     case $host_os in
6489     aix*)
6490       lt_prog_compiler_wl='-Wl,'
6491       if test "$host_cpu" = ia64; then
6492         # AIX 5 now supports IA64 processor
6493         lt_prog_compiler_static='-Bstatic'
6494       else
6495         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6496       fi
6497       ;;
6498
6499     mingw* | pw32* | os2*)
6500       # This hack is so that the source file can tell whether it is being
6501       # built for inclusion in a dll (and should export symbols for example).
6502       lt_prog_compiler_pic='-DDLL_EXPORT'
6503       ;;
6504
6505     hpux9* | hpux10* | hpux11*)
6506       lt_prog_compiler_wl='-Wl,'
6507       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6508       # not for PA HP-UX.
6509       case "$host_cpu" in
6510       hppa*64*|ia64*)
6511         # +Z the default
6512         ;;
6513       *)
6514         lt_prog_compiler_pic='+Z'
6515         ;;
6516       esac
6517       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6518       lt_prog_compiler_static='${wl}-a ${wl}archive'
6519       ;;
6520
6521     irix5* | irix6* | nonstopux*)
6522       lt_prog_compiler_wl='-Wl,'
6523       # PIC (with -KPIC) is the default.
6524       lt_prog_compiler_static='-non_shared'
6525       ;;
6526
6527     newsos6)
6528       lt_prog_compiler_pic='-KPIC'
6529       lt_prog_compiler_static='-Bstatic'
6530       ;;
6531
6532     linux*)
6533       case $CC in
6534       icc* | ecc*)
6535         lt_prog_compiler_wl='-Wl,'
6536         lt_prog_compiler_pic='-KPIC'
6537         lt_prog_compiler_static='-static'
6538         ;;
6539       ccc*)
6540         lt_prog_compiler_wl='-Wl,'
6541         # All Alpha code is PIC.
6542         lt_prog_compiler_static='-non_shared'
6543         ;;
6544       esac
6545       ;;
6546
6547     osf3* | osf4* | osf5*)
6548       lt_prog_compiler_wl='-Wl,'
6549       # All OSF/1 code is PIC.
6550       lt_prog_compiler_static='-non_shared'
6551       ;;
6552
6553     sco3.2v5*)
6554       lt_prog_compiler_pic='-Kpic'
6555       lt_prog_compiler_static='-dn'
6556       ;;
6557
6558     solaris*)
6559       lt_prog_compiler_wl='-Wl,'
6560       lt_prog_compiler_pic='-KPIC'
6561       lt_prog_compiler_static='-Bstatic'
6562       ;;
6563
6564     sunos4*)
6565       lt_prog_compiler_wl='-Qoption ld '
6566       lt_prog_compiler_pic='-PIC'
6567       lt_prog_compiler_static='-Bstatic'
6568       ;;
6569
6570     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6571       lt_prog_compiler_wl='-Wl,'
6572       lt_prog_compiler_pic='-KPIC'
6573       lt_prog_compiler_static='-Bstatic'
6574       ;;
6575
6576     sysv4*MP*)
6577       if test -d /usr/nec ;then
6578         lt_prog_compiler_pic='-Kconform_pic'
6579         lt_prog_compiler_static='-Bstatic'
6580       fi
6581       ;;
6582
6583     uts4*)
6584       lt_prog_compiler_pic='-pic'
6585       lt_prog_compiler_static='-Bstatic'
6586       ;;
6587
6588     *)
6589       lt_prog_compiler_can_build_shared=no
6590       ;;
6591     esac
6592   fi
6593
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6595 $as_echo "$lt_prog_compiler_pic" >&6; }
6596
6597 #
6598 # Check to make sure the PIC flag actually works.
6599 #
6600 if test -n "$lt_prog_compiler_pic"; then
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6603 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6604 if ${lt_prog_compiler_pic_works+:} false; then :
6605   $as_echo_n "(cached) " >&6
6606 else
6607   lt_prog_compiler_pic_works=no
6608   ac_outfile=conftest.$ac_objext
6609    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6610    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6611    # Insert the option either (1) after the last *FLAGS variable, or
6612    # (2) before a word containing "conftest.", or (3) at the end.
6613    # Note that $ac_compile itself does not contain backslashes and begins
6614    # with a dollar sign (not a hyphen), so the echo should work correctly.
6615    # The option is referenced via a variable to avoid confusing sed.
6616    lt_compile=`echo "$ac_compile" | $SED \
6617    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6618    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6619    -e 's:$: $lt_compiler_flag:'`
6620    (eval echo "\"\$as_me:6620: $lt_compile\"" >&5)
6621    (eval "$lt_compile" 2>conftest.err)
6622    ac_status=$?
6623    cat conftest.err >&5
6624    echo "$as_me:6624: \$? = $ac_status" >&5
6625    if (exit $ac_status) && test -s "$ac_outfile"; then
6626      # The compiler can only warn and ignore the option if not recognized
6627      # So say no if there are warnings
6628      if test ! -s conftest.err; then
6629        lt_prog_compiler_pic_works=yes
6630      fi
6631    fi
6632    $rm conftest*
6633
6634 fi
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
6636 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6637
6638 if test x"$lt_prog_compiler_pic_works" = xyes; then
6639     case $lt_prog_compiler_pic in
6640      "" | " "*) ;;
6641      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6642      esac
6643 else
6644     lt_prog_compiler_pic=
6645      lt_prog_compiler_can_build_shared=no
6646 fi
6647
6648 fi
6649 case "$host_os" in
6650   # For platforms which do not support PIC, -DPIC is meaningless:
6651   *djgpp*)
6652     lt_prog_compiler_pic=
6653     ;;
6654   *)
6655     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6656     ;;
6657 esac
6658
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6660 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6661 if ${lt_cv_prog_compiler_c_o+:} false; then :
6662   $as_echo_n "(cached) " >&6
6663 else
6664   lt_cv_prog_compiler_c_o=no
6665    $rm -r conftest 2>/dev/null
6666    mkdir conftest
6667    cd conftest
6668    mkdir out
6669    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6670
6671    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6672    # that will create temporary files in the current directory regardless of
6673    # the output directory.  Thus, making CWD read-only will cause this test
6674    # to fail, enabling locking or at least warning the user not to do parallel
6675    # builds.
6676    chmod -w .
6677
6678    lt_compiler_flag="-o out/conftest2.$ac_objext"
6679    # Insert the option either (1) after the last *FLAGS variable, or
6680    # (2) before a word containing "conftest.", or (3) at the end.
6681    # Note that $ac_compile itself does not contain backslashes and begins
6682    # with a dollar sign (not a hyphen), so the echo should work correctly.
6683    lt_compile=`echo "$ac_compile" | $SED \
6684    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6685    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6686    -e 's:$: $lt_compiler_flag:'`
6687    (eval echo "\"\$as_me:6687: $lt_compile\"" >&5)
6688    (eval "$lt_compile" 2>out/conftest.err)
6689    ac_status=$?
6690    cat out/conftest.err >&5
6691    echo "$as_me:6691: \$? = $ac_status" >&5
6692    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6693    then
6694      # The compiler can only warn and ignore the option if not recognized
6695      # So say no if there are warnings
6696      if test ! -s out/conftest.err; then
6697        lt_cv_prog_compiler_c_o=yes
6698      fi
6699    fi
6700    chmod u+w .
6701    $rm conftest*
6702    # SGI C++ compiler will create directory out/ii_files/ for
6703    # template instantiation
6704    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6705    $rm out/* && rmdir out
6706    cd ..
6707    rmdir conftest
6708    $rm conftest*
6709
6710 fi
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
6712 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6713
6714
6715 hard_links="nottested"
6716 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6717   # do not overwrite the value of need_locks provided by the user
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
6719 $as_echo_n "checking if we can lock with hard links... " >&6; }
6720   hard_links=yes
6721   $rm conftest*
6722   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6723   touch conftest.a
6724   ln conftest.a conftest.b 2>&5 || hard_links=no
6725   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
6727 $as_echo "$hard_links" >&6; }
6728   if test "$hard_links" = no; then
6729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6730 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6731     need_locks=warn
6732   fi
6733 else
6734   need_locks=no
6735 fi
6736
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6738 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6739
6740   runpath_var=
6741   allow_undefined_flag=
6742   enable_shared_with_static_runtimes=no
6743   archive_cmds=
6744   archive_expsym_cmds=
6745   old_archive_From_new_cmds=
6746   old_archive_from_expsyms_cmds=
6747   export_dynamic_flag_spec=
6748   whole_archive_flag_spec=
6749   thread_safe_flag_spec=
6750   hardcode_libdir_flag_spec=
6751   hardcode_libdir_flag_spec_ld=
6752   hardcode_libdir_separator=
6753   hardcode_direct=no
6754   hardcode_minus_L=no
6755   hardcode_shlibpath_var=unsupported
6756   link_all_deplibs=unknown
6757   hardcode_automatic=no
6758   module_cmds=
6759   module_expsym_cmds=
6760   always_export_symbols=no
6761   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6762   # include_expsyms should be a list of space-separated symbols to be *always*
6763   # included in the symbol list
6764   include_expsyms=
6765   # exclude_expsyms can be an extended regexp of symbols to exclude
6766   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6767   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6768   # as well as any symbol that contains `d'.
6769   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6770   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6771   # platforms (ab)use it in PIC code, but their linkers get confused if
6772   # the symbol is explicitly referenced.  Since portable code cannot
6773   # rely on this symbol name, it's probably fine to never include it in
6774   # preloaded symbol tables.
6775   extract_expsyms_cmds=
6776
6777   case $host_os in
6778   cygwin* | mingw* | pw32*)
6779     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6780     # When not using gcc, we currently assume that we are using
6781     # Microsoft Visual C++.
6782     if test "$GCC" != yes; then
6783       with_gnu_ld=no
6784     fi
6785     ;;
6786   openbsd*)
6787     with_gnu_ld=no
6788     ;;
6789   esac
6790
6791   ld_shlibs=yes
6792   if test "$with_gnu_ld" = yes; then
6793     # If archive_cmds runs LD, not CC, wlarc should be empty
6794     wlarc='${wl}'
6795
6796     # See if GNU ld supports shared libraries.
6797     case $host_os in
6798     aix3* | aix4* | aix5*)
6799       # On AIX/PPC, the GNU linker is very broken
6800       if test "$host_cpu" != ia64; then
6801         ld_shlibs=no
6802         cat <<EOF 1>&2
6803
6804 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6805 *** to be unable to reliably create shared libraries on AIX.
6806 *** Therefore, libtool is disabling shared libraries support.  If you
6807 *** really care for shared libraries, you may want to modify your PATH
6808 *** so that a non-GNU linker is found, and then restart.
6809
6810 EOF
6811       fi
6812       ;;
6813
6814     amigaos*)
6815       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)'
6816       hardcode_libdir_flag_spec='-L$libdir'
6817       hardcode_minus_L=yes
6818
6819       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6820       # that the semantics of dynamic libraries on AmigaOS, at least up
6821       # to version 4, is to share data among multiple programs linked
6822       # with the same dynamic library.  Since this doesn't match the
6823       # behavior of shared libraries on other platforms, we can't use
6824       # them.
6825       ld_shlibs=no
6826       ;;
6827
6828     beos*)
6829       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6830         allow_undefined_flag=unsupported
6831         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6832         # support --undefined.  This deserves some investigation.  FIXME
6833         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6834       else
6835         ld_shlibs=no
6836       fi
6837       ;;
6838
6839     cygwin* | mingw* | pw32*)
6840       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6841       # as there is no search path for DLLs.
6842       hardcode_libdir_flag_spec='-L$libdir'
6843       allow_undefined_flag=unsupported
6844       always_export_symbols=no
6845       enable_shared_with_static_runtimes=yes
6846       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6847
6848       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6849         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6850         # If the export-symbols file already is a .def file (1st line
6851         # is EXPORTS), use it as is; otherwise, prepend...
6852         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6853           cp $export_symbols $output_objdir/$soname.def;
6854         else
6855           echo EXPORTS > $output_objdir/$soname.def;
6856           cat $export_symbols >> $output_objdir/$soname.def;
6857         fi~
6858         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6859       else
6860         ld_shlibs=no
6861       fi
6862       ;;
6863
6864     netbsd*)
6865       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6866         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6867         wlarc=
6868       else
6869         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6870         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6871       fi
6872       ;;
6873
6874     solaris* | sysv5*)
6875       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6876         ld_shlibs=no
6877         cat <<EOF 1>&2
6878
6879 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6880 *** create shared libraries on Solaris systems.  Therefore, libtool
6881 *** is disabling shared libraries support.  We urge you to upgrade GNU
6882 *** binutils to release 2.9.1 or newer.  Another option is to modify
6883 *** your PATH or compiler configuration so that the native linker is
6884 *** used, and then restart.
6885
6886 EOF
6887       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6888         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6889         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6890       else
6891         ld_shlibs=no
6892       fi
6893       ;;
6894
6895     sunos4*)
6896       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6897       wlarc=
6898       hardcode_direct=yes
6899       hardcode_shlibpath_var=no
6900       ;;
6901
6902   linux*)
6903     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6904         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6905         archive_cmds="$tmp_archive_cmds"
6906       supports_anon_versioning=no
6907       case `$LD -v 2>/dev/null` in
6908         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6909         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6910         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6911         *\ 2.11.*) ;; # other 2.11 versions
6912         *) supports_anon_versioning=yes ;;
6913       esac
6914       if test $supports_anon_versioning = yes; then
6915         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6916 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6917 $echo "local: *; };" >> $output_objdir/$libname.ver~
6918         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6919       else
6920         archive_expsym_cmds="$tmp_archive_cmds"
6921       fi
6922     else
6923       ld_shlibs=no
6924     fi
6925     ;;
6926
6927     *)
6928       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6929         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6930         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6931       else
6932         ld_shlibs=no
6933       fi
6934       ;;
6935     esac
6936
6937     if test "$ld_shlibs" = yes; then
6938       runpath_var=LD_RUN_PATH
6939       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6940       export_dynamic_flag_spec='${wl}--export-dynamic'
6941       # ancient GNU ld didn't support --whole-archive et. al.
6942       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6943         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6944       else
6945         whole_archive_flag_spec=
6946       fi
6947     fi
6948   else
6949     # PORTME fill in a description of your system's linker (not GNU ld)
6950     case $host_os in
6951     aix3*)
6952       allow_undefined_flag=unsupported
6953       always_export_symbols=yes
6954       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'
6955       # Note: this linker hardcodes the directories in LIBPATH if there
6956       # are no directories specified by -L.
6957       hardcode_minus_L=yes
6958       if test "$GCC" = yes && test -z "$link_static_flag"; then
6959         # Neither direct hardcoding nor static linking is supported with a
6960         # broken collect2.
6961         hardcode_direct=unsupported
6962       fi
6963       ;;
6964
6965     aix4* | aix5*)
6966       if test "$host_cpu" = ia64; then
6967         # On IA64, the linker does run time linking by default, so we don't
6968         # have to do anything special.
6969         aix_use_runtimelinking=no
6970         exp_sym_flag='-Bexport'
6971         no_entry_flag=""
6972       else
6973         # If we're using GNU nm, then we don't want the "-C" option.
6974         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6975         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6976           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'
6977         else
6978           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'
6979         fi
6980         aix_use_runtimelinking=no
6981
6982         # Test if we are trying to use run time linking or normal
6983         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6984         # need to do runtime linking.
6985         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6986           for ld_flag in $LDFLAGS; do
6987           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6988             aix_use_runtimelinking=yes
6989             break
6990           fi
6991           done
6992         esac
6993
6994         exp_sym_flag='-bexport'
6995         no_entry_flag='-bnoentry'
6996       fi
6997
6998       # When large executables or shared objects are built, AIX ld can
6999       # have problems creating the table of contents.  If linking a library
7000       # or program results in "error TOC overflow" add -mminimal-toc to
7001       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7002       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7003
7004       archive_cmds=''
7005       hardcode_direct=yes
7006       hardcode_libdir_separator=':'
7007       link_all_deplibs=yes
7008
7009       if test "$GCC" = yes; then
7010         case $host_os in aix4.012|aix4.012.*)
7011         # We only want to do this on AIX 4.2 and lower, the check
7012         # below for broken collect2 doesn't work under 4.3+
7013           collect2name=`${CC} -print-prog-name=collect2`
7014           if test -f "$collect2name" && \
7015            strings "$collect2name" | grep resolve_lib_name >/dev/null
7016           then
7017           # We have reworked collect2
7018           hardcode_direct=yes
7019           else
7020           # We have old collect2
7021           hardcode_direct=unsupported
7022           # It fails to find uninstalled libraries when the uninstalled
7023           # path is not listed in the libpath.  Setting hardcode_minus_L
7024           # to unsupported forces relinking
7025           hardcode_minus_L=yes
7026           hardcode_libdir_flag_spec='-L$libdir'
7027           hardcode_libdir_separator=
7028           fi
7029         esac
7030         shared_flag='-shared'
7031       else
7032         # not using gcc
7033         if test "$host_cpu" = ia64; then
7034         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7035         # chokes on -Wl,-G. The following line is correct:
7036           shared_flag='-G'
7037         else
7038         if test "$aix_use_runtimelinking" = yes; then
7039             shared_flag='${wl}-G'
7040           else
7041             shared_flag='${wl}-bM:SRE'
7042         fi
7043         fi
7044       fi
7045
7046       # It seems that -bexpall does not export symbols beginning with
7047       # underscore (_), so it is better to generate a list of symbols to export.
7048       always_export_symbols=yes
7049       if test "$aix_use_runtimelinking" = yes; then
7050         # Warning - without using the other runtime loading flags (-brtl),
7051         # -berok will link without error, but may produce a broken library.
7052         allow_undefined_flag='-berok'
7053        # Determine the default libpath from the value encoded in an empty executable.
7054        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h.  */
7056
7057 int
7058 main ()
7059 {
7060
7061   ;
7062   return 0;
7063 }
7064 _ACEOF
7065 if ac_fn_c_try_link "$LINENO"; then :
7066
7067 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7068 }'`
7069 # Check for a 64-bit object if we didn't find anything.
7070 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7071 }'`; fi
7072 fi
7073 rm -f core conftest.err conftest.$ac_objext \
7074     conftest$ac_exeext conftest.$ac_ext
7075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7076
7077        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7078         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7079        else
7080         if test "$host_cpu" = ia64; then
7081           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7082           allow_undefined_flag="-z nodefs"
7083           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7084         else
7085          # Determine the default libpath from the value encoded in an empty executable.
7086          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h.  */
7088
7089 int
7090 main ()
7091 {
7092
7093   ;
7094   return 0;
7095 }
7096 _ACEOF
7097 if ac_fn_c_try_link "$LINENO"; then :
7098
7099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7100 }'`
7101 # Check for a 64-bit object if we didn't find anything.
7102 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7103 }'`; fi
7104 fi
7105 rm -f core conftest.err conftest.$ac_objext \
7106     conftest$ac_exeext conftest.$ac_ext
7107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7108
7109          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7110           # Warning - without using the other run time loading flags,
7111           # -berok will link without error, but may produce a broken library.
7112           no_undefined_flag=' ${wl}-bernotok'
7113           allow_undefined_flag=' ${wl}-berok'
7114           # -bexpall does not export symbols beginning with underscore (_)
7115           always_export_symbols=yes
7116           # Exported symbols can be pulled into shared objects from archives
7117           whole_archive_flag_spec=' '
7118           archive_cmds_need_lc=yes
7119           # This is similar to how AIX traditionally builds it's shared libraries.
7120           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7121         fi
7122       fi
7123       ;;
7124
7125     amigaos*)
7126       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)'
7127       hardcode_libdir_flag_spec='-L$libdir'
7128       hardcode_minus_L=yes
7129       # see comment about different semantics on the GNU ld section
7130       ld_shlibs=no
7131       ;;
7132
7133     bsdi4*)
7134       export_dynamic_flag_spec=-rdynamic
7135       ;;
7136
7137     cygwin* | mingw* | pw32*)
7138       # When not using gcc, we currently assume that we are using
7139       # Microsoft Visual C++.
7140       # hardcode_libdir_flag_spec is actually meaningless, as there is
7141       # no search path for DLLs.
7142       hardcode_libdir_flag_spec=' '
7143       allow_undefined_flag=unsupported
7144       # Tell ltmain to make .lib files, not .a files.
7145       libext=lib
7146       # Tell ltmain to make .dll files, not .so files.
7147       shrext=".dll"
7148       # FIXME: Setting linknames here is a bad hack.
7149       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7150       # The linker will automatically build a .lib file if we build a DLL.
7151       old_archive_From_new_cmds='true'
7152       # FIXME: Should let the user specify the lib program.
7153       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7154       fix_srcfile_path='`cygpath -w "$srcfile"`'
7155       enable_shared_with_static_runtimes=yes
7156       ;;
7157
7158     darwin* | rhapsody*)
7159     if test "$GXX" = yes ; then
7160       archive_cmds_need_lc=no
7161       case "$host_os" in
7162       rhapsody* | darwin1.[012])
7163         allow_undefined_flag='-undefined suppress'
7164         ;;
7165       *) # Darwin 1.3 on
7166       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7167         allow_undefined_flag='-flat_namespace -undefined suppress'
7168       else
7169         case ${MACOSX_DEPLOYMENT_TARGET} in
7170           10.[012])
7171             allow_undefined_flag='-flat_namespace -undefined suppress'
7172             ;;
7173           10.*)
7174             allow_undefined_flag='-undefined dynamic_lookup'
7175             ;;
7176         esac
7177       fi
7178         ;;
7179       esac
7180         lt_int_apple_cc_single_mod=no
7181         output_verbose_link_cmd='echo'
7182         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7183           lt_int_apple_cc_single_mod=yes
7184         fi
7185         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7186           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7187         else
7188         archive_cmds='$CC -r ${wl}-bind_at_load -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'
7189       fi
7190       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7191       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7192         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7193           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7194         else
7195           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7196         fi
7197           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7198       hardcode_direct=no
7199       hardcode_automatic=yes
7200       hardcode_shlibpath_var=unsupported
7201       whole_archive_flag_spec='-all_load $convenience'
7202       link_all_deplibs=yes
7203     else
7204       ld_shlibs=no
7205     fi
7206       ;;
7207
7208     dgux*)
7209       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7210       hardcode_libdir_flag_spec='-L$libdir'
7211       hardcode_shlibpath_var=no
7212       ;;
7213
7214     freebsd1*)
7215       ld_shlibs=no
7216       ;;
7217
7218     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7219     # support.  Future versions do this automatically, but an explicit c++rt0.o
7220     # does not break anything, and helps significantly (at the cost of a little
7221     # extra space).
7222     freebsd2.2*)
7223       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7224       hardcode_libdir_flag_spec='-R$libdir'
7225       hardcode_direct=yes
7226       hardcode_shlibpath_var=no
7227       ;;
7228
7229     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7230     freebsd2*)
7231       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7232       hardcode_direct=yes
7233       hardcode_minus_L=yes
7234       hardcode_shlibpath_var=no
7235       ;;
7236
7237     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7238     freebsd* | kfreebsd*-gnu)
7239       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7240       hardcode_libdir_flag_spec='-R$libdir'
7241       hardcode_direct=yes
7242       hardcode_shlibpath_var=no
7243       ;;
7244
7245     hpux9*)
7246       if test "$GCC" = yes; then
7247         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'
7248       else
7249         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'
7250       fi
7251       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7252       hardcode_libdir_separator=:
7253       hardcode_direct=yes
7254
7255       # hardcode_minus_L: Not really in the search PATH,
7256       # but as the default location of the library.
7257       hardcode_minus_L=yes
7258       export_dynamic_flag_spec='${wl}-E'
7259       ;;
7260
7261     hpux10* | hpux11*)
7262       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7263         case "$host_cpu" in
7264         hppa*64*|ia64*)
7265           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7266           ;;
7267         *)
7268           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7269           ;;
7270         esac
7271       else
7272         case "$host_cpu" in
7273         hppa*64*|ia64*)
7274           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7275           ;;
7276         *)
7277           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7278           ;;
7279         esac
7280       fi
7281       if test "$with_gnu_ld" = no; then
7282         case "$host_cpu" in
7283         hppa*64*)
7284           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7285           hardcode_libdir_flag_spec_ld='+b $libdir'
7286           hardcode_libdir_separator=:
7287           hardcode_direct=no
7288           hardcode_shlibpath_var=no
7289           ;;
7290         ia64*)
7291           hardcode_libdir_flag_spec='-L$libdir'
7292           hardcode_direct=no
7293           hardcode_shlibpath_var=no
7294
7295           # hardcode_minus_L: Not really in the search PATH,
7296           # but as the default location of the library.
7297           hardcode_minus_L=yes
7298           ;;
7299         *)
7300           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7301           hardcode_libdir_separator=:
7302           hardcode_direct=yes
7303           export_dynamic_flag_spec='${wl}-E'
7304
7305           # hardcode_minus_L: Not really in the search PATH,
7306           # but as the default location of the library.
7307           hardcode_minus_L=yes
7308           ;;
7309         esac
7310       fi
7311       ;;
7312
7313     irix5* | irix6* | nonstopux*)
7314       if test "$GCC" = yes; then
7315         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7316       else
7317         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7318         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7319       fi
7320       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7321       hardcode_libdir_separator=:
7322       link_all_deplibs=yes
7323       ;;
7324
7325     netbsd*)
7326       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7327         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7328       else
7329         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7330       fi
7331       hardcode_libdir_flag_spec='-R$libdir'
7332       hardcode_direct=yes
7333       hardcode_shlibpath_var=no
7334       ;;
7335
7336     newsos6)
7337       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7338       hardcode_direct=yes
7339       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7340       hardcode_libdir_separator=:
7341       hardcode_shlibpath_var=no
7342       ;;
7343
7344     openbsd*)
7345       hardcode_direct=yes
7346       hardcode_shlibpath_var=no
7347       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7348         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7349         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7350         export_dynamic_flag_spec='${wl}-E'
7351       else
7352        case $host_os in
7353          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7354            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7355            hardcode_libdir_flag_spec='-R$libdir'
7356            ;;
7357          *)
7358            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7359            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7360            ;;
7361        esac
7362       fi
7363       ;;
7364
7365     os2*)
7366       hardcode_libdir_flag_spec='-L$libdir'
7367       hardcode_minus_L=yes
7368       allow_undefined_flag=unsupported
7369       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'
7370       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7371       ;;
7372
7373     osf3*)
7374       if test "$GCC" = yes; then
7375         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7376         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7377       else
7378         allow_undefined_flag=' -expect_unresolved \*'
7379         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7380       fi
7381       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7382       hardcode_libdir_separator=:
7383       ;;
7384
7385     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7386       if test "$GCC" = yes; then
7387         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7388         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7389         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7390       else
7391         allow_undefined_flag=' -expect_unresolved \*'
7392         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7393         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7394         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7395
7396         # Both c and cxx compiler support -rpath directly
7397         hardcode_libdir_flag_spec='-rpath $libdir'
7398       fi
7399       hardcode_libdir_separator=:
7400       ;;
7401
7402     sco3.2v5*)
7403       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7404       hardcode_shlibpath_var=no
7405       export_dynamic_flag_spec='${wl}-Bexport'
7406       runpath_var=LD_RUN_PATH
7407       hardcode_runpath_var=yes
7408       ;;
7409
7410     solaris*)
7411       no_undefined_flag=' -z text'
7412       if test "$GCC" = yes; then
7413         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7414         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7415           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7416       else
7417         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7419         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7420       fi
7421       hardcode_libdir_flag_spec='-R$libdir'
7422       hardcode_shlibpath_var=no
7423       case $host_os in
7424       solaris2.[0-5] | solaris2.[0-5].*) ;;
7425       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7426         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7427       esac
7428       link_all_deplibs=yes
7429       ;;
7430
7431     sunos4*)
7432       if test "x$host_vendor" = xsequent; then
7433         # Use $CC to link under sequent, because it throws in some extra .o
7434         # files that make .init and .fini sections work.
7435         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7436       else
7437         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7438       fi
7439       hardcode_libdir_flag_spec='-L$libdir'
7440       hardcode_direct=yes
7441       hardcode_minus_L=yes
7442       hardcode_shlibpath_var=no
7443       ;;
7444
7445     sysv4)
7446       case $host_vendor in
7447         sni)
7448           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7449           hardcode_direct=yes # is this really true???
7450         ;;
7451         siemens)
7452           ## LD is ld it makes a PLAMLIB
7453           ## CC just makes a GrossModule.
7454           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7455           reload_cmds='$CC -r -o $output$reload_objs'
7456           hardcode_direct=no
7457         ;;
7458         motorola)
7459           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7460           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7461         ;;
7462       esac
7463       runpath_var='LD_RUN_PATH'
7464       hardcode_shlibpath_var=no
7465       ;;
7466
7467     sysv4.3*)
7468       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7469       hardcode_shlibpath_var=no
7470       export_dynamic_flag_spec='-Bexport'
7471       ;;
7472
7473     sysv4*MP*)
7474       if test -d /usr/nec; then
7475         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7476         hardcode_shlibpath_var=no
7477         runpath_var=LD_RUN_PATH
7478         hardcode_runpath_var=yes
7479         ld_shlibs=yes
7480       fi
7481       ;;
7482
7483     sysv4.2uw2*)
7484       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7485       hardcode_direct=yes
7486       hardcode_minus_L=no
7487       hardcode_shlibpath_var=no
7488       hardcode_runpath_var=yes
7489       runpath_var=LD_RUN_PATH
7490       ;;
7491
7492    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7493       no_undefined_flag='${wl}-z ${wl}text'
7494       if test "$GCC" = yes; then
7495         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7496       else
7497         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7498       fi
7499       runpath_var='LD_RUN_PATH'
7500       hardcode_shlibpath_var=no
7501       ;;
7502
7503     sysv5*)
7504       no_undefined_flag=' -z text'
7505       # $CC -shared without GNU ld will not create a library from C++
7506       # object files and a static libstdc++, better avoid it by now
7507       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7508       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7509                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7510       hardcode_libdir_flag_spec=
7511       hardcode_shlibpath_var=no
7512       runpath_var='LD_RUN_PATH'
7513       ;;
7514
7515     uts4*)
7516       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7517       hardcode_libdir_flag_spec='-L$libdir'
7518       hardcode_shlibpath_var=no
7519       ;;
7520
7521     *)
7522       ld_shlibs=no
7523       ;;
7524     esac
7525   fi
7526
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7528 $as_echo "$ld_shlibs" >&6; }
7529 test "$ld_shlibs" = no && can_build_shared=no
7530
7531 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7532 if test "$GCC" = yes; then
7533   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7534 fi
7535
7536 #
7537 # Do we need to explicitly link libc?
7538 #
7539 case "x$archive_cmds_need_lc" in
7540 x|xyes)
7541   # Assume -lc should be added
7542   archive_cmds_need_lc=yes
7543
7544   if test "$enable_shared" = yes && test "$GCC" = yes; then
7545     case $archive_cmds in
7546     *'~'*)
7547       # FIXME: we may have to deal with multi-command sequences.
7548       ;;
7549     '$CC '*)
7550       # Test whether the compiler implicitly links with -lc since on some
7551       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7552       # to ld, don't add -lc before -lgcc.
7553       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7554 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7555       $rm conftest*
7556       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7557
7558       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7559   (eval $ac_compile) 2>&5
7560   ac_status=$?
7561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7562   test $ac_status = 0; } 2>conftest.err; then
7563         soname=conftest
7564         lib=conftest
7565         libobjs=conftest.$ac_objext
7566         deplibs=
7567         wl=$lt_prog_compiler_wl
7568         compiler_flags=-v
7569         linker_flags=-v
7570         verstring=
7571         output_objdir=.
7572         libname=conftest
7573         lt_save_allow_undefined_flag=$allow_undefined_flag
7574         allow_undefined_flag=
7575         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7576   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7577   ac_status=$?
7578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579   test $ac_status = 0; }
7580         then
7581           archive_cmds_need_lc=no
7582         else
7583           archive_cmds_need_lc=yes
7584         fi
7585         allow_undefined_flag=$lt_save_allow_undefined_flag
7586       else
7587         cat conftest.err 1>&5
7588       fi
7589       $rm conftest*
7590       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
7591 $as_echo "$archive_cmds_need_lc" >&6; }
7592       ;;
7593     esac
7594   fi
7595   ;;
7596 esac
7597
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
7599 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7600 library_names_spec=
7601 libname_spec='lib$name'
7602 soname_spec=
7603 shrext=".so"
7604 postinstall_cmds=
7605 postuninstall_cmds=
7606 finish_cmds=
7607 finish_eval=
7608 shlibpath_var=
7609 shlibpath_overrides_runpath=unknown
7610 version_type=none
7611 dynamic_linker="$host_os ld.so"
7612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7613 if test "$GCC" = yes; then
7614   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7615   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7616     # if the path contains ";" then we assume it to be the separator
7617     # otherwise default to the standard path separator (i.e. ":") - it is
7618     # assumed that no part of a normal pathname contains ";" but that should
7619     # okay in the real world where ";" in dirpaths is itself problematic.
7620     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7621   else
7622     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7623   fi
7624 else
7625   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7626 fi
7627 need_lib_prefix=unknown
7628 hardcode_into_libs=no
7629
7630 # when you set need_version to no, make sure it does not cause -set_version
7631 # flags to be left without arguments
7632 need_version=unknown
7633
7634 case $host_os in
7635 aix3*)
7636   version_type=linux
7637   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7638   shlibpath_var=LIBPATH
7639
7640   # AIX 3 has no versioning support, so we append a major version to the name.
7641   soname_spec='${libname}${release}${shared_ext}$major'
7642   ;;
7643
7644 aix4* | aix5*)
7645   version_type=linux
7646   need_lib_prefix=no
7647   need_version=no
7648   hardcode_into_libs=yes
7649   if test "$host_cpu" = ia64; then
7650     # AIX 5 supports IA64
7651     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7652     shlibpath_var=LD_LIBRARY_PATH
7653   else
7654     # With GCC up to 2.95.x, collect2 would create an import file
7655     # for dependence libraries.  The import file would start with
7656     # the line `#! .'.  This would cause the generated library to
7657     # depend on `.', always an invalid library.  This was fixed in
7658     # development snapshots of GCC prior to 3.0.
7659     case $host_os in
7660       aix4 | aix4.[01] | aix4.[01].*)
7661       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7662            echo ' yes '
7663            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7664         :
7665       else
7666         can_build_shared=no
7667       fi
7668       ;;
7669     esac
7670     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7671     # soname into executable. Probably we can add versioning support to
7672     # collect2, so additional links can be useful in future.
7673     if test "$aix_use_runtimelinking" = yes; then
7674       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7675       # instead of lib<name>.a to let people know that these are not
7676       # typical AIX shared libraries.
7677       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678     else
7679       # We preserve .a as extension for shared libraries through AIX4.2
7680       # and later when we are not doing run time linking.
7681       library_names_spec='${libname}${release}.a $libname.a'
7682       soname_spec='${libname}${release}${shared_ext}$major'
7683     fi
7684     shlibpath_var=LIBPATH
7685   fi
7686   ;;
7687
7688 amigaos*)
7689   library_names_spec='$libname.ixlibrary $libname.a'
7690   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7691   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'
7692   ;;
7693
7694 beos*)
7695   library_names_spec='${libname}${shared_ext}'
7696   dynamic_linker="$host_os ld.so"
7697   shlibpath_var=LIBRARY_PATH
7698   ;;
7699
7700 bsdi4*)
7701   version_type=linux
7702   need_version=no
7703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7704   soname_spec='${libname}${release}${shared_ext}$major'
7705   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7706   shlibpath_var=LD_LIBRARY_PATH
7707   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7708   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7709   # the default ld.so.conf also contains /usr/contrib/lib and
7710   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7711   # libtool to hard-code these into programs
7712   ;;
7713
7714 cygwin* | mingw* | pw32*)
7715   version_type=windows
7716   shrext=".dll"
7717   need_version=no
7718   need_lib_prefix=no
7719
7720   case $GCC,$host_os in
7721   yes,cygwin* | yes,mingw* | yes,pw32*)
7722     library_names_spec='$libname.dll.a'
7723     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7724     postinstall_cmds='base_file=`basename \${file}`~
7725       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7726       dldir=$destdir/`dirname \$dlpath`~
7727       test -d \$dldir || mkdir -p \$dldir~
7728       $install_prog $dir/$dlname \$dldir/$dlname'
7729     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7730       dlpath=$dir/\$dldll~
7731        $rm \$dlpath'
7732     shlibpath_overrides_runpath=yes
7733
7734     case $host_os in
7735     cygwin*)
7736       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7737       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7738       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7739       ;;
7740     mingw*)
7741       # MinGW DLLs use traditional 'lib' prefix
7742       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7743       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7744       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7745         # It is most probably a Windows format PATH printed by
7746         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7747         # path with ; separators, and with drive letters. We can handle the
7748         # drive letters (cygwin fileutils understands them), so leave them,
7749         # especially as we might pass files found there to a mingw objdump,
7750         # which wouldn't understand a cygwinified path. Ahh.
7751         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7752       else
7753         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7754       fi
7755       ;;
7756     pw32*)
7757       # pw32 DLLs use 'pw' prefix rather than 'lib'
7758       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7759       ;;
7760     esac
7761     ;;
7762
7763   *)
7764     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7765     ;;
7766   esac
7767   dynamic_linker='Win32 ld.exe'
7768   # FIXME: first we should search . and the directory the executable is in
7769   shlibpath_var=PATH
7770   ;;
7771
7772 darwin* | rhapsody*)
7773   dynamic_linker="$host_os dyld"
7774   version_type=darwin
7775   need_lib_prefix=no
7776   need_version=no
7777   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7778   soname_spec='${libname}${release}${major}$shared_ext'
7779   shlibpath_overrides_runpath=yes
7780   shlibpath_var=DYLD_LIBRARY_PATH
7781   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7782   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7783   if test "$GCC" = yes; then
7784     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7785   else
7786     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7787   fi
7788   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7789   ;;
7790
7791 dgux*)
7792   version_type=linux
7793   need_lib_prefix=no
7794   need_version=no
7795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7796   soname_spec='${libname}${release}${shared_ext}$major'
7797   shlibpath_var=LD_LIBRARY_PATH
7798   ;;
7799
7800 freebsd1*)
7801   dynamic_linker=no
7802   ;;
7803
7804 kfreebsd*-gnu)
7805   version_type=linux
7806   need_lib_prefix=no
7807   need_version=no
7808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7809   soname_spec='${libname}${release}${shared_ext}$major'
7810   shlibpath_var=LD_LIBRARY_PATH
7811   shlibpath_overrides_runpath=no
7812   hardcode_into_libs=yes
7813   dynamic_linker='GNU ld.so'
7814   ;;
7815
7816 freebsd*)
7817   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7818   version_type=freebsd-$objformat
7819   case $version_type in
7820     freebsd-elf*)
7821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7822       need_version=no
7823       need_lib_prefix=no
7824       ;;
7825     freebsd-*)
7826       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7827       need_version=yes
7828       ;;
7829   esac
7830   shlibpath_var=LD_LIBRARY_PATH
7831   case $host_os in
7832   freebsd2*)
7833     shlibpath_overrides_runpath=yes
7834     ;;
7835   freebsd3.01* | freebsdelf3.01*)
7836     shlibpath_overrides_runpath=yes
7837     hardcode_into_libs=yes
7838     ;;
7839   *) # from 3.2 on
7840     shlibpath_overrides_runpath=no
7841     hardcode_into_libs=yes
7842     ;;
7843   esac
7844   ;;
7845
7846 gnu*)
7847   version_type=linux
7848   need_lib_prefix=no
7849   need_version=no
7850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7851   soname_spec='${libname}${release}${shared_ext}$major'
7852   shlibpath_var=LD_LIBRARY_PATH
7853   hardcode_into_libs=yes
7854   ;;
7855
7856 hpux9* | hpux10* | hpux11*)
7857   # Give a soname corresponding to the major version so that dld.sl refuses to
7858   # link against other versions.
7859   version_type=sunos
7860   need_lib_prefix=no
7861   need_version=no
7862   case "$host_cpu" in
7863   ia64*)
7864     shrext='.so'
7865     hardcode_into_libs=yes
7866     dynamic_linker="$host_os dld.so"
7867     shlibpath_var=LD_LIBRARY_PATH
7868     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7870     soname_spec='${libname}${release}${shared_ext}$major'
7871     if test "X$HPUX_IA64_MODE" = X32; then
7872       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7873     else
7874       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7875     fi
7876     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7877     ;;
7878    hppa*64*)
7879      shrext='.sl'
7880      hardcode_into_libs=yes
7881      dynamic_linker="$host_os dld.sl"
7882      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7883      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7884      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7885      soname_spec='${libname}${release}${shared_ext}$major'
7886      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7887      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7888      ;;
7889    *)
7890     shrext='.sl'
7891     dynamic_linker="$host_os dld.sl"
7892     shlibpath_var=SHLIB_PATH
7893     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7895     soname_spec='${libname}${release}${shared_ext}$major'
7896     ;;
7897   esac
7898   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7899   postinstall_cmds='chmod 555 $lib'
7900   ;;
7901
7902 irix5* | irix6* | nonstopux*)
7903   case $host_os in
7904     nonstopux*) version_type=nonstopux ;;
7905     *)
7906         if test "$lt_cv_prog_gnu_ld" = yes; then
7907                 version_type=linux
7908         else
7909                 version_type=irix
7910         fi ;;
7911   esac
7912   need_lib_prefix=no
7913   need_version=no
7914   soname_spec='${libname}${release}${shared_ext}$major'
7915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7916   case $host_os in
7917   irix5* | nonstopux*)
7918     libsuff= shlibsuff=
7919     ;;
7920   *)
7921     case $LD in # libtool.m4 will add one of these switches to LD
7922     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7923       libsuff= shlibsuff= libmagic=32-bit;;
7924     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7925       libsuff=32 shlibsuff=N32 libmagic=N32;;
7926     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7927       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7928     *) libsuff= shlibsuff= libmagic=never-match;;
7929     esac
7930     ;;
7931   esac
7932   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7933   shlibpath_overrides_runpath=no
7934   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7935   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7936   hardcode_into_libs=yes
7937   ;;
7938
7939 # No shared lib support for Linux oldld, aout, or coff.
7940 linux*oldld* | linux*aout* | linux*coff*)
7941   dynamic_linker=no
7942   ;;
7943
7944 # This must be Linux ELF.
7945 linux*)
7946   version_type=linux
7947   need_lib_prefix=no
7948   need_version=no
7949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950   soname_spec='${libname}${release}${shared_ext}$major'
7951   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7952   shlibpath_var=LD_LIBRARY_PATH
7953   shlibpath_overrides_runpath=no
7954   # This implies no fast_install, which is unacceptable.
7955   # Some rework will be needed to allow for fast_install
7956   # before this can be enabled.
7957   hardcode_into_libs=yes
7958
7959   # We used to test for /lib/ld.so.1 and disable shared libraries on
7960   # powerpc, because MkLinux only supported shared libraries with the
7961   # GNU dynamic linker.  Since this was broken with cross compilers,
7962   # most powerpc-linux boxes support dynamic linking these days and
7963   # people can always --disable-shared, the test was removed, and we
7964   # assume the GNU/Linux dynamic linker is in use.
7965   dynamic_linker='GNU/Linux ld.so'
7966   ;;
7967
7968 netbsd*)
7969   version_type=sunos
7970   need_lib_prefix=no
7971   need_version=no
7972   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7973     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7974     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7975     dynamic_linker='NetBSD (a.out) ld.so'
7976   else
7977     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7978     soname_spec='${libname}${release}${shared_ext}$major'
7979     dynamic_linker='NetBSD ld.elf_so'
7980   fi
7981   shlibpath_var=LD_LIBRARY_PATH
7982   shlibpath_overrides_runpath=yes
7983   hardcode_into_libs=yes
7984   ;;
7985
7986 newsos6)
7987   version_type=linux
7988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7989   shlibpath_var=LD_LIBRARY_PATH
7990   shlibpath_overrides_runpath=yes
7991   ;;
7992
7993 nto-qnx*)
7994   version_type=linux
7995   need_lib_prefix=no
7996   need_version=no
7997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7998   soname_spec='${libname}${release}${shared_ext}$major'
7999   shlibpath_var=LD_LIBRARY_PATH
8000   shlibpath_overrides_runpath=yes
8001   ;;
8002
8003 openbsd*)
8004   version_type=sunos
8005   need_lib_prefix=no
8006   need_version=no
8007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8008   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8009   shlibpath_var=LD_LIBRARY_PATH
8010   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8011     case $host_os in
8012       openbsd2.[89] | openbsd2.[89].*)
8013         shlibpath_overrides_runpath=no
8014         ;;
8015       *)
8016         shlibpath_overrides_runpath=yes
8017         ;;
8018       esac
8019   else
8020     shlibpath_overrides_runpath=yes
8021   fi
8022   ;;
8023
8024 os2*)
8025   libname_spec='$name'
8026   shrext=".dll"
8027   need_lib_prefix=no
8028   library_names_spec='$libname${shared_ext} $libname.a'
8029   dynamic_linker='OS/2 ld.exe'
8030   shlibpath_var=LIBPATH
8031   ;;
8032
8033 osf3* | osf4* | osf5*)
8034   version_type=osf
8035   need_lib_prefix=no
8036   need_version=no
8037   soname_spec='${libname}${release}${shared_ext}$major'
8038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8039   shlibpath_var=LD_LIBRARY_PATH
8040   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8041   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8042   ;;
8043
8044 sco3.2v5*)
8045   version_type=osf
8046   soname_spec='${libname}${release}${shared_ext}$major'
8047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048   shlibpath_var=LD_LIBRARY_PATH
8049   ;;
8050
8051 solaris*)
8052   version_type=linux
8053   need_lib_prefix=no
8054   need_version=no
8055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056   soname_spec='${libname}${release}${shared_ext}$major'
8057   shlibpath_var=LD_LIBRARY_PATH
8058   shlibpath_overrides_runpath=yes
8059   hardcode_into_libs=yes
8060   # ldd complains unless libraries are executable
8061   postinstall_cmds='chmod +x $lib'
8062   ;;
8063
8064 sunos4*)
8065   version_type=sunos
8066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8067   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8068   shlibpath_var=LD_LIBRARY_PATH
8069   shlibpath_overrides_runpath=yes
8070   if test "$with_gnu_ld" = yes; then
8071     need_lib_prefix=no
8072   fi
8073   need_version=yes
8074   ;;
8075
8076 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8077   version_type=linux
8078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8079   soname_spec='${libname}${release}${shared_ext}$major'
8080   shlibpath_var=LD_LIBRARY_PATH
8081   case $host_vendor in
8082     sni)
8083       shlibpath_overrides_runpath=no
8084       need_lib_prefix=no
8085       export_dynamic_flag_spec='${wl}-Blargedynsym'
8086       runpath_var=LD_RUN_PATH
8087       ;;
8088     siemens)
8089       need_lib_prefix=no
8090       ;;
8091     motorola)
8092       need_lib_prefix=no
8093       need_version=no
8094       shlibpath_overrides_runpath=no
8095       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8096       ;;
8097   esac
8098   ;;
8099
8100 sysv4*MP*)
8101   if test -d /usr/nec ;then
8102     version_type=linux
8103     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8104     soname_spec='$libname${shared_ext}.$major'
8105     shlibpath_var=LD_LIBRARY_PATH
8106   fi
8107   ;;
8108
8109 uts4*)
8110   version_type=linux
8111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8112   soname_spec='${libname}${release}${shared_ext}$major'
8113   shlibpath_var=LD_LIBRARY_PATH
8114   ;;
8115
8116 *)
8117   dynamic_linker=no
8118   ;;
8119 esac
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8121 $as_echo "$dynamic_linker" >&6; }
8122 test "$dynamic_linker" = no && can_build_shared=no
8123
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8125 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8126 hardcode_action=
8127 if test -n "$hardcode_libdir_flag_spec" || \
8128    test -n "$runpath_var " || \
8129    test "X$hardcode_automatic"="Xyes" ; then
8130
8131   # We can hardcode non-existant directories.
8132   if test "$hardcode_direct" != no &&
8133      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8134      # have to relink, otherwise we might link with an installed library
8135      # when we should be linking with a yet-to-be-installed one
8136      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8137      test "$hardcode_minus_L" != no; then
8138     # Linking always hardcodes the temporary library directory.
8139     hardcode_action=relink
8140   else
8141     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8142     hardcode_action=immediate
8143   fi
8144 else
8145   # We cannot hardcode anything, or else we can only hardcode existing
8146   # directories.
8147   hardcode_action=unsupported
8148 fi
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8150 $as_echo "$hardcode_action" >&6; }
8151
8152 if test "$hardcode_action" = relink; then
8153   # Fast installation is not supported
8154   enable_fast_install=no
8155 elif test "$shlibpath_overrides_runpath" = yes ||
8156      test "$enable_shared" = no; then
8157   # Fast installation is not necessary
8158   enable_fast_install=needless
8159 fi
8160
8161 striplib=
8162 old_striplib=
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8164 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8165 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8166   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8167   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8169 $as_echo "yes" >&6; }
8170 else
8171 # FIXME - insert some real tests, host_os isn't really good enough
8172   case $host_os in
8173    darwin*)
8174        if test -n "$STRIP" ; then
8175          striplib="$STRIP -x"
8176          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8177 $as_echo "yes" >&6; }
8178        else
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8181 fi
8182        ;;
8183    *)
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8186     ;;
8187   esac
8188 fi
8189
8190 if test "x$enable_dlopen" != xyes; then
8191   enable_dlopen=unknown
8192   enable_dlopen_self=unknown
8193   enable_dlopen_self_static=unknown
8194 else
8195   lt_cv_dlopen=no
8196   lt_cv_dlopen_libs=
8197
8198   case $host_os in
8199   beos*)
8200     lt_cv_dlopen="load_add_on"
8201     lt_cv_dlopen_libs=
8202     lt_cv_dlopen_self=yes
8203     ;;
8204
8205   mingw* | pw32*)
8206     lt_cv_dlopen="LoadLibrary"
8207     lt_cv_dlopen_libs=
8208    ;;
8209
8210   cygwin*)
8211     lt_cv_dlopen="dlopen"
8212     lt_cv_dlopen_libs=
8213    ;;
8214
8215   darwin*)
8216   # if libdl is installed we need to link against it
8217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8218 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8219 if ${ac_cv_lib_dl_dlopen+:} false; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   ac_check_lib_save_LIBS=$LIBS
8223 LIBS="-ldl  $LIBS"
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h.  */
8226
8227 /* Override any GCC internal prototype to avoid an error.
8228    Use char because int might match the return type of a GCC
8229    builtin and then its argument prototype would still apply.  */
8230 #ifdef __cplusplus
8231 extern "C"
8232 #endif
8233 char dlopen ();
8234 int
8235 main ()
8236 {
8237 return dlopen ();
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 if ac_fn_c_try_link "$LINENO"; then :
8243   ac_cv_lib_dl_dlopen=yes
8244 else
8245   ac_cv_lib_dl_dlopen=no
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext \
8248     conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8252 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8253 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8254   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8255 else
8256
8257     lt_cv_dlopen="dyld"
8258     lt_cv_dlopen_libs=
8259     lt_cv_dlopen_self=yes
8260
8261 fi
8262
8263    ;;
8264
8265   *)
8266     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8267 if test "x$ac_cv_func_shl_load" = xyes; then :
8268   lt_cv_dlopen="shl_load"
8269 else
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8271 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8272 if ${ac_cv_lib_dld_shl_load+:} false; then :
8273   $as_echo_n "(cached) " >&6
8274 else
8275   ac_check_lib_save_LIBS=$LIBS
8276 LIBS="-ldld  $LIBS"
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h.  */
8279
8280 /* Override any GCC internal prototype to avoid an error.
8281    Use char because int might match the return type of a GCC
8282    builtin and then its argument prototype would still apply.  */
8283 #ifdef __cplusplus
8284 extern "C"
8285 #endif
8286 char shl_load ();
8287 int
8288 main ()
8289 {
8290 return shl_load ();
8291   ;
8292   return 0;
8293 }
8294 _ACEOF
8295 if ac_fn_c_try_link "$LINENO"; then :
8296   ac_cv_lib_dld_shl_load=yes
8297 else
8298   ac_cv_lib_dld_shl_load=no
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext \
8301     conftest$ac_exeext conftest.$ac_ext
8302 LIBS=$ac_check_lib_save_LIBS
8303 fi
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8305 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8306 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8307   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8308 else
8309   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8310 if test "x$ac_cv_func_dlopen" = xyes; then :
8311   lt_cv_dlopen="dlopen"
8312 else
8313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8314 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8315 if ${ac_cv_lib_dl_dlopen+:} false; then :
8316   $as_echo_n "(cached) " >&6
8317 else
8318   ac_check_lib_save_LIBS=$LIBS
8319 LIBS="-ldl  $LIBS"
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h.  */
8322
8323 /* Override any GCC internal prototype to avoid an error.
8324    Use char because int might match the return type of a GCC
8325    builtin and then its argument prototype would still apply.  */
8326 #ifdef __cplusplus
8327 extern "C"
8328 #endif
8329 char dlopen ();
8330 int
8331 main ()
8332 {
8333 return dlopen ();
8334   ;
8335   return 0;
8336 }
8337 _ACEOF
8338 if ac_fn_c_try_link "$LINENO"; then :
8339   ac_cv_lib_dl_dlopen=yes
8340 else
8341   ac_cv_lib_dl_dlopen=no
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext \
8344     conftest$ac_exeext conftest.$ac_ext
8345 LIBS=$ac_check_lib_save_LIBS
8346 fi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8348 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8349 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8350   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8351 else
8352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8353 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8354 if ${ac_cv_lib_svld_dlopen+:} false; then :
8355   $as_echo_n "(cached) " >&6
8356 else
8357   ac_check_lib_save_LIBS=$LIBS
8358 LIBS="-lsvld  $LIBS"
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h.  */
8361
8362 /* Override any GCC internal prototype to avoid an error.
8363    Use char because int might match the return type of a GCC
8364    builtin and then its argument prototype would still apply.  */
8365 #ifdef __cplusplus
8366 extern "C"
8367 #endif
8368 char dlopen ();
8369 int
8370 main ()
8371 {
8372 return dlopen ();
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 if ac_fn_c_try_link "$LINENO"; then :
8378   ac_cv_lib_svld_dlopen=yes
8379 else
8380   ac_cv_lib_svld_dlopen=no
8381 fi
8382 rm -f core conftest.err conftest.$ac_objext \
8383     conftest$ac_exeext conftest.$ac_ext
8384 LIBS=$ac_check_lib_save_LIBS
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8387 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8388 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8389   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8390 else
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8392 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8393 if ${ac_cv_lib_dld_dld_link+:} false; then :
8394   $as_echo_n "(cached) " >&6
8395 else
8396   ac_check_lib_save_LIBS=$LIBS
8397 LIBS="-ldld  $LIBS"
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h.  */
8400
8401 /* Override any GCC internal prototype to avoid an error.
8402    Use char because int might match the return type of a GCC
8403    builtin and then its argument prototype would still apply.  */
8404 #ifdef __cplusplus
8405 extern "C"
8406 #endif
8407 char dld_link ();
8408 int
8409 main ()
8410 {
8411 return dld_link ();
8412   ;
8413   return 0;
8414 }
8415 _ACEOF
8416 if ac_fn_c_try_link "$LINENO"; then :
8417   ac_cv_lib_dld_dld_link=yes
8418 else
8419   ac_cv_lib_dld_dld_link=no
8420 fi
8421 rm -f core conftest.err conftest.$ac_objext \
8422     conftest$ac_exeext conftest.$ac_ext
8423 LIBS=$ac_check_lib_save_LIBS
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8426 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8427 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8428   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8429 fi
8430
8431
8432 fi
8433
8434
8435 fi
8436
8437
8438 fi
8439
8440
8441 fi
8442
8443
8444 fi
8445
8446     ;;
8447   esac
8448
8449   if test "x$lt_cv_dlopen" != xno; then
8450     enable_dlopen=yes
8451   else
8452     enable_dlopen=no
8453   fi
8454
8455   case $lt_cv_dlopen in
8456   dlopen)
8457     save_CPPFLAGS="$CPPFLAGS"
8458     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8459
8460     save_LDFLAGS="$LDFLAGS"
8461     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8462
8463     save_LIBS="$LIBS"
8464     LIBS="$lt_cv_dlopen_libs $LIBS"
8465
8466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8467 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8468 if ${lt_cv_dlopen_self+:} false; then :
8469   $as_echo_n "(cached) " >&6
8470 else
8471           if test "$cross_compiling" = yes; then :
8472   lt_cv_dlopen_self=cross
8473 else
8474   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8475   lt_status=$lt_dlunknown
8476   cat > conftest.$ac_ext <<EOF
8477 #line 8477 "configure"
8478 #include "confdefs.h"
8479
8480 #if HAVE_DLFCN_H
8481 #include <dlfcn.h>
8482 #endif
8483
8484 #include <stdio.h>
8485
8486 #ifdef RTLD_GLOBAL
8487 #  define LT_DLGLOBAL           RTLD_GLOBAL
8488 #else
8489 #  ifdef DL_GLOBAL
8490 #    define LT_DLGLOBAL         DL_GLOBAL
8491 #  else
8492 #    define LT_DLGLOBAL         0
8493 #  endif
8494 #endif
8495
8496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8497    find out it does not work in some platform. */
8498 #ifndef LT_DLLAZY_OR_NOW
8499 #  ifdef RTLD_LAZY
8500 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8501 #  else
8502 #    ifdef DL_LAZY
8503 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8504 #    else
8505 #      ifdef RTLD_NOW
8506 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8507 #      else
8508 #        ifdef DL_NOW
8509 #          define LT_DLLAZY_OR_NOW      DL_NOW
8510 #        else
8511 #          define LT_DLLAZY_OR_NOW      0
8512 #        endif
8513 #      endif
8514 #    endif
8515 #  endif
8516 #endif
8517
8518 #ifdef __cplusplus
8519 extern "C" void exit (int);
8520 #endif
8521
8522 void fnord() { int i=42;}
8523 int main ()
8524 {
8525   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8526   int status = $lt_dlunknown;
8527
8528   if (self)
8529     {
8530       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8531       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8532       /* dlclose (self); */
8533     }
8534
8535     exit (status);
8536 }
8537 EOF
8538   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8539   (eval $ac_link) 2>&5
8540   ac_status=$?
8541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8542   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8543     (./conftest; exit; ) 2>/dev/null
8544     lt_status=$?
8545     case x$lt_status in
8546       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8547       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8548       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8549     esac
8550   else :
8551     # compilation failed
8552     lt_cv_dlopen_self=no
8553   fi
8554 fi
8555 rm -fr conftest*
8556
8557
8558 fi
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8560 $as_echo "$lt_cv_dlopen_self" >&6; }
8561
8562     if test "x$lt_cv_dlopen_self" = xyes; then
8563       LDFLAGS="$LDFLAGS $link_static_flag"
8564       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8565 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8566 if ${lt_cv_dlopen_self_static+:} false; then :
8567   $as_echo_n "(cached) " >&6
8568 else
8569           if test "$cross_compiling" = yes; then :
8570   lt_cv_dlopen_self_static=cross
8571 else
8572   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8573   lt_status=$lt_dlunknown
8574   cat > conftest.$ac_ext <<EOF
8575 #line 8575 "configure"
8576 #include "confdefs.h"
8577
8578 #if HAVE_DLFCN_H
8579 #include <dlfcn.h>
8580 #endif
8581
8582 #include <stdio.h>
8583
8584 #ifdef RTLD_GLOBAL
8585 #  define LT_DLGLOBAL           RTLD_GLOBAL
8586 #else
8587 #  ifdef DL_GLOBAL
8588 #    define LT_DLGLOBAL         DL_GLOBAL
8589 #  else
8590 #    define LT_DLGLOBAL         0
8591 #  endif
8592 #endif
8593
8594 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8595    find out it does not work in some platform. */
8596 #ifndef LT_DLLAZY_OR_NOW
8597 #  ifdef RTLD_LAZY
8598 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8599 #  else
8600 #    ifdef DL_LAZY
8601 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8602 #    else
8603 #      ifdef RTLD_NOW
8604 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8605 #      else
8606 #        ifdef DL_NOW
8607 #          define LT_DLLAZY_OR_NOW      DL_NOW
8608 #        else
8609 #          define LT_DLLAZY_OR_NOW      0
8610 #        endif
8611 #      endif
8612 #    endif
8613 #  endif
8614 #endif
8615
8616 #ifdef __cplusplus
8617 extern "C" void exit (int);
8618 #endif
8619
8620 void fnord() { int i=42;}
8621 int main ()
8622 {
8623   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8624   int status = $lt_dlunknown;
8625
8626   if (self)
8627     {
8628       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8629       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8630       /* dlclose (self); */
8631     }
8632
8633     exit (status);
8634 }
8635 EOF
8636   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8637   (eval $ac_link) 2>&5
8638   ac_status=$?
8639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8640   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8641     (./conftest; exit; ) 2>/dev/null
8642     lt_status=$?
8643     case x$lt_status in
8644       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8645       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8646       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8647     esac
8648   else :
8649     # compilation failed
8650     lt_cv_dlopen_self_static=no
8651   fi
8652 fi
8653 rm -fr conftest*
8654
8655
8656 fi
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8658 $as_echo "$lt_cv_dlopen_self_static" >&6; }
8659     fi
8660
8661     CPPFLAGS="$save_CPPFLAGS"
8662     LDFLAGS="$save_LDFLAGS"
8663     LIBS="$save_LIBS"
8664     ;;
8665   esac
8666
8667   case $lt_cv_dlopen_self in
8668   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8669   *) enable_dlopen_self=unknown ;;
8670   esac
8671
8672   case $lt_cv_dlopen_self_static in
8673   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8674   *) enable_dlopen_self_static=unknown ;;
8675   esac
8676 fi
8677
8678
8679 # Report which librarie types wil actually be built
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8681 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8683 $as_echo "$can_build_shared" >&6; }
8684
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8686 $as_echo_n "checking whether to build shared libraries... " >&6; }
8687 test "$can_build_shared" = "no" && enable_shared=no
8688
8689 # On AIX, shared libraries and static libraries use the same namespace, and
8690 # are all built from PIC.
8691 case "$host_os" in
8692 aix3*)
8693   test "$enable_shared" = yes && enable_static=no
8694   if test -n "$RANLIB"; then
8695     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8696     postinstall_cmds='$RANLIB $lib'
8697   fi
8698   ;;
8699
8700 aix4*)
8701   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8702     test "$enable_shared" = yes && enable_static=no
8703   fi
8704   ;;
8705   darwin* | rhapsody*)
8706   if test "$GCC" = yes; then
8707     archive_cmds_need_lc=no
8708     case "$host_os" in
8709     rhapsody* | darwin1.[012])
8710       allow_undefined_flag='-undefined suppress'
8711       ;;
8712     *) # Darwin 1.3 on
8713       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8714         allow_undefined_flag='-flat_namespace -undefined suppress'
8715       else
8716         case ${MACOSX_DEPLOYMENT_TARGET} in
8717           10.[012])
8718             allow_undefined_flag='-flat_namespace -undefined suppress'
8719             ;;
8720           10.*)
8721             allow_undefined_flag='-undefined dynamic_lookup'
8722             ;;
8723         esac
8724       fi
8725       ;;
8726     esac
8727     output_verbose_link_cmd='echo'
8728     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8729     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8730     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8731     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8732     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8733     hardcode_direct=no
8734     hardcode_automatic=yes
8735     hardcode_shlibpath_var=unsupported
8736     whole_archive_flag_spec='-all_load $convenience'
8737     link_all_deplibs=yes
8738   else
8739     ld_shlibs=no
8740   fi
8741     ;;
8742 esac
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8744 $as_echo "$enable_shared" >&6; }
8745
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8747 $as_echo_n "checking whether to build static libraries... " >&6; }
8748 # Make sure either enable_shared or enable_static is yes.
8749 test "$enable_shared" = yes || enable_static=yes
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8751 $as_echo "$enable_static" >&6; }
8752
8753 # The else clause should only fire when bootstrapping the
8754 # libtool distribution, otherwise you forgot to ship ltmain.sh
8755 # with your package, and you will get complaints that there are
8756 # no rules to generate ltmain.sh.
8757 if test -f "$ltmain"; then
8758   # See if we are running on zsh, and set the options which allow our commands through
8759   # without removal of \ escapes.
8760   if test -n "${ZSH_VERSION+set}" ; then
8761     setopt NO_GLOB_SUBST
8762   fi
8763   # Now quote all the things that may contain metacharacters while being
8764   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8765   # variables and quote the copies for generation of the libtool script.
8766   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8767     SED SHELL STRIP \
8768     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8769     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8770     deplibs_check_method reload_flag reload_cmds need_locks \
8771     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8772     lt_cv_sys_global_symbol_to_c_name_address \
8773     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8774     old_postinstall_cmds old_postuninstall_cmds \
8775     compiler \
8776     CC \
8777     LD \
8778     lt_prog_compiler_wl \
8779     lt_prog_compiler_pic \
8780     lt_prog_compiler_static \
8781     lt_prog_compiler_no_builtin_flag \
8782     export_dynamic_flag_spec \
8783     thread_safe_flag_spec \
8784     whole_archive_flag_spec \
8785     enable_shared_with_static_runtimes \
8786     old_archive_cmds \
8787     old_archive_from_new_cmds \
8788     predep_objects \
8789     postdep_objects \
8790     predeps \
8791     postdeps \
8792     compiler_lib_search_path \
8793     archive_cmds \
8794     archive_expsym_cmds \
8795     postinstall_cmds \
8796     postuninstall_cmds \
8797     old_archive_from_expsyms_cmds \
8798     allow_undefined_flag \
8799     no_undefined_flag \
8800     export_symbols_cmds \
8801     hardcode_libdir_flag_spec \
8802     hardcode_libdir_flag_spec_ld \
8803     hardcode_libdir_separator \
8804     hardcode_automatic \
8805     module_cmds \
8806     module_expsym_cmds \
8807     lt_cv_prog_compiler_c_o \
8808     exclude_expsyms \
8809     include_expsyms; do
8810
8811     case $var in
8812     old_archive_cmds | \
8813     old_archive_from_new_cmds | \
8814     archive_cmds | \
8815     archive_expsym_cmds | \
8816     module_cmds | \
8817     module_expsym_cmds | \
8818     old_archive_from_expsyms_cmds | \
8819     export_symbols_cmds | \
8820     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8821     postinstall_cmds | postuninstall_cmds | \
8822     old_postinstall_cmds | old_postuninstall_cmds | \
8823     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8824       # Double-quote double-evaled strings.
8825       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8826       ;;
8827     *)
8828       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8829       ;;
8830     esac
8831   done
8832
8833   case $lt_echo in
8834   *'\$0 --fallback-echo"')
8835     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8836     ;;
8837   esac
8838
8839 cfgfile="${ofile}T"
8840   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8841   $rm -f "$cfgfile"
8842   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
8843 $as_echo "$as_me: creating $ofile" >&6;}
8844
8845   cat <<__EOF__ >> "$cfgfile"
8846 #! $SHELL
8847
8848 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8849 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8850 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8851 #
8852 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8853 # Free Software Foundation, Inc.
8854 #
8855 # This file is part of GNU Libtool:
8856 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8857 #
8858 # This program is free software; you can redistribute it and/or modify
8859 # it under the terms of the GNU General Public License as published by
8860 # the Free Software Foundation; either version 2 of the License, or
8861 # (at your option) any later version.
8862 #
8863 # This program is distributed in the hope that it will be useful, but
8864 # WITHOUT ANY WARRANTY; without even the implied warranty of
8865 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8866 # General Public License for more details.
8867 #
8868 # You should have received a copy of the GNU General Public License
8869 # along with this program; if not, write to the Free Software
8870 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8871 #
8872 # As a special exception to the GNU General Public License, if you
8873 # distribute this file as part of a program that contains a
8874 # configuration script generated by Autoconf, you may include it under
8875 # the same distribution terms that you use for the rest of that program.
8876
8877 # A sed program that does not truncate output.
8878 SED=$lt_SED
8879
8880 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8881 Xsed="$SED -e s/^X//"
8882
8883 # The HP-UX ksh and POSIX shell print the target directory to stdout
8884 # if CDPATH is set.
8885 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8886
8887 # The names of the tagged configurations supported by this script.
8888 available_tags=
8889
8890 # ### BEGIN LIBTOOL CONFIG
8891
8892 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8893
8894 # Shell to use when invoking shell scripts.
8895 SHELL=$lt_SHELL
8896
8897 # Whether or not to build shared libraries.
8898 build_libtool_libs=$enable_shared
8899
8900 # Whether or not to build static libraries.
8901 build_old_libs=$enable_static
8902
8903 # Whether or not to add -lc for building shared libraries.
8904 build_libtool_need_lc=$archive_cmds_need_lc
8905
8906 # Whether or not to disallow shared libs when runtime libs are static
8907 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8908
8909 # Whether or not to optimize for fast installation.
8910 fast_install=$enable_fast_install
8911
8912 # The host system.
8913 host_alias=$host_alias
8914 host=$host
8915
8916 # An echo program that does not interpret backslashes.
8917 echo=$lt_echo
8918
8919 # The archiver.
8920 AR=$lt_AR
8921 AR_FLAGS=$lt_AR_FLAGS
8922
8923 # A C compiler.
8924 LTCC=$lt_LTCC
8925
8926 # A language-specific compiler.
8927 CC=$lt_compiler
8928
8929 # Is the compiler the GNU C compiler?
8930 with_gcc=$GCC
8931
8932 # An ERE matcher.
8933 EGREP=$lt_EGREP
8934
8935 # The linker used to build libraries.
8936 LD=$lt_LD
8937
8938 # Whether we need hard or soft links.
8939 LN_S=$lt_LN_S
8940
8941 # A BSD-compatible nm program.
8942 NM=$lt_NM
8943
8944 # A symbol stripping program
8945 STRIP=$lt_STRIP
8946
8947 # Used to examine libraries when file_magic_cmd begins "file"
8948 MAGIC_CMD=$MAGIC_CMD
8949
8950 # Used on cygwin: DLL creation program.
8951 DLLTOOL="$DLLTOOL"
8952
8953 # Used on cygwin: object dumper.
8954 OBJDUMP="$OBJDUMP"
8955
8956 # Used on cygwin: assembler.
8957 AS="$AS"
8958
8959 # The name of the directory that contains temporary libtool files.
8960 objdir=$objdir
8961
8962 # How to create reloadable object files.
8963 reload_flag=$lt_reload_flag
8964 reload_cmds=$lt_reload_cmds
8965
8966 # How to pass a linker flag through the compiler.
8967 wl=$lt_lt_prog_compiler_wl
8968
8969 # Object file suffix (normally "o").
8970 objext="$ac_objext"
8971
8972 # Old archive suffix (normally "a").
8973 libext="$libext"
8974
8975 # Shared library suffix (normally ".so").
8976 shrext='$shrext'
8977
8978 # Executable file suffix (normally "").
8979 exeext="$exeext"
8980
8981 # Additional compiler flags for building library objects.
8982 pic_flag=$lt_lt_prog_compiler_pic
8983 pic_mode=$pic_mode
8984
8985 # What is the maximum length of a command?
8986 max_cmd_len=$lt_cv_sys_max_cmd_len
8987
8988 # Does compiler simultaneously support -c and -o options?
8989 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8990
8991 # Must we lock files when doing compilation ?
8992 need_locks=$lt_need_locks
8993
8994 # Do we need the lib prefix for modules?
8995 need_lib_prefix=$need_lib_prefix
8996
8997 # Do we need a version for libraries?
8998 need_version=$need_version
8999
9000 # Whether dlopen is supported.
9001 dlopen_support=$enable_dlopen
9002
9003 # Whether dlopen of programs is supported.
9004 dlopen_self=$enable_dlopen_self
9005
9006 # Whether dlopen of statically linked programs is supported.
9007 dlopen_self_static=$enable_dlopen_self_static
9008
9009 # Compiler flag to prevent dynamic linking.
9010 link_static_flag=$lt_lt_prog_compiler_static
9011
9012 # Compiler flag to turn off builtin functions.
9013 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9014
9015 # Compiler flag to allow reflexive dlopens.
9016 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9017
9018 # Compiler flag to generate shared objects directly from archives.
9019 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9020
9021 # Compiler flag to generate thread-safe objects.
9022 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9023
9024 # Library versioning type.
9025 version_type=$version_type
9026
9027 # Format of library name prefix.
9028 libname_spec=$lt_libname_spec
9029
9030 # List of archive names.  First name is the real one, the rest are links.
9031 # The last name is the one that the linker finds with -lNAME.
9032 library_names_spec=$lt_library_names_spec
9033
9034 # The coded name of the library, if different from the real name.
9035 soname_spec=$lt_soname_spec
9036
9037 # Commands used to build and install an old-style archive.
9038 RANLIB=$lt_RANLIB
9039 old_archive_cmds=$lt_old_archive_cmds
9040 old_postinstall_cmds=$lt_old_postinstall_cmds
9041 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9042
9043 # Create an old-style archive from a shared archive.
9044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9045
9046 # Create a temporary old-style archive to link instead of a shared archive.
9047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9048
9049 # Commands used to build and install a shared archive.
9050 archive_cmds=$lt_archive_cmds
9051 archive_expsym_cmds=$lt_archive_expsym_cmds
9052 postinstall_cmds=$lt_postinstall_cmds
9053 postuninstall_cmds=$lt_postuninstall_cmds
9054
9055 # Commands used to build a loadable module (assumed same as above if empty)
9056 module_cmds=$lt_module_cmds
9057 module_expsym_cmds=$lt_module_expsym_cmds
9058
9059 # Commands to strip libraries.
9060 old_striplib=$lt_old_striplib
9061 striplib=$lt_striplib
9062
9063 # Dependencies to place before the objects being linked to create a
9064 # shared library.
9065 predep_objects=$lt_predep_objects
9066
9067 # Dependencies to place after the objects being linked to create a
9068 # shared library.
9069 postdep_objects=$lt_postdep_objects
9070
9071 # Dependencies to place before the objects being linked to create a
9072 # shared library.
9073 predeps=$lt_predeps
9074
9075 # Dependencies to place after the objects being linked to create a
9076 # shared library.
9077 postdeps=$lt_postdeps
9078
9079 # The library search path used internally by the compiler when linking
9080 # a shared library.
9081 compiler_lib_search_path=$lt_compiler_lib_search_path
9082
9083 # Method to check whether dependent libraries are shared objects.
9084 deplibs_check_method=$lt_deplibs_check_method
9085
9086 # Command to use when deplibs_check_method == file_magic.
9087 file_magic_cmd=$lt_file_magic_cmd
9088
9089 # Flag that allows shared libraries with undefined symbols to be built.
9090 allow_undefined_flag=$lt_allow_undefined_flag
9091
9092 # Flag that forces no undefined symbols.
9093 no_undefined_flag=$lt_no_undefined_flag
9094
9095 # Commands used to finish a libtool library installation in a directory.
9096 finish_cmds=$lt_finish_cmds
9097
9098 # Same as above, but a single script fragment to be evaled but not shown.
9099 finish_eval=$lt_finish_eval
9100
9101 # Take the output of nm and produce a listing of raw symbols and C names.
9102 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9103
9104 # Transform the output of nm in a proper C declaration
9105 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9106
9107 # Transform the output of nm in a C name address pair
9108 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9109
9110 # This is the shared library runtime path variable.
9111 runpath_var=$runpath_var
9112
9113 # This is the shared library path variable.
9114 shlibpath_var=$shlibpath_var
9115
9116 # Is shlibpath searched before the hard-coded library search path?
9117 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9118
9119 # How to hardcode a shared library path into an executable.
9120 hardcode_action=$hardcode_action
9121
9122 # Whether we should hardcode library paths into libraries.
9123 hardcode_into_libs=$hardcode_into_libs
9124
9125 # Flag to hardcode \$libdir into a binary during linking.
9126 # This must work even if \$libdir does not exist.
9127 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9128
9129 # If ld is used when linking, flag to hardcode \$libdir into
9130 # a binary during linking. This must work even if \$libdir does
9131 # not exist.
9132 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9133
9134 # Whether we need a single -rpath flag with a separated argument.
9135 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9136
9137 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9138 # resulting binary.
9139 hardcode_direct=$hardcode_direct
9140
9141 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9142 # resulting binary.
9143 hardcode_minus_L=$hardcode_minus_L
9144
9145 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9146 # the resulting binary.
9147 hardcode_shlibpath_var=$hardcode_shlibpath_var
9148
9149 # Set to yes if building a shared library automatically hardcodes DIR into the library
9150 # and all subsequent libraries and executables linked against it.
9151 hardcode_automatic=$hardcode_automatic
9152
9153 # Variables whose values should be saved in libtool wrapper scripts and
9154 # restored at relink time.
9155 variables_saved_for_relink="$variables_saved_for_relink"
9156
9157 # Whether libtool must link a program against all its dependency libraries.
9158 link_all_deplibs=$link_all_deplibs
9159
9160 # Compile-time system search path for libraries
9161 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9162
9163 # Run-time system search path for libraries
9164 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9165
9166 # Fix the shell variable \$srcfile for the compiler.
9167 fix_srcfile_path="$fix_srcfile_path"
9168
9169 # Set to yes if exported symbols are required.
9170 always_export_symbols=$always_export_symbols
9171
9172 # The commands to list exported symbols.
9173 export_symbols_cmds=$lt_export_symbols_cmds
9174
9175 # The commands to extract the exported symbol list from a shared archive.
9176 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9177
9178 # Symbols that should not be listed in the preloaded symbols.
9179 exclude_expsyms=$lt_exclude_expsyms
9180
9181 # Symbols that must always be exported.
9182 include_expsyms=$lt_include_expsyms
9183
9184 # ### END LIBTOOL CONFIG
9185
9186 __EOF__
9187
9188
9189   case $host_os in
9190   aix3*)
9191     cat <<\EOF >> "$cfgfile"
9192
9193 # AIX sometimes has problems with the GCC collect2 program.  For some
9194 # reason, if we set the COLLECT_NAMES environment variable, the problems
9195 # vanish in a puff of smoke.
9196 if test "X${COLLECT_NAMES+set}" != Xset; then
9197   COLLECT_NAMES=
9198   export COLLECT_NAMES
9199 fi
9200 EOF
9201     ;;
9202   esac
9203
9204   # We use sed instead of cat because bash on DJGPP gets confused if
9205   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9206   # text mode, it properly converts lines to CR/LF.  This bash problem
9207   # is reportedly fixed, but why not run on old versions too?
9208   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9209
9210   mv -f "$cfgfile" "$ofile" || \
9211     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9212   chmod +x "$ofile"
9213
9214 else
9215   # If there is no Makefile yet, we rely on a make rule to execute
9216   # `config.status --recheck' to rerun these tests and create the
9217   # libtool script then.
9218   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9219   if test -f "$ltmain_in"; then
9220     test -f Makefile && make "$ltmain"
9221   fi
9222 fi
9223
9224
9225 ac_ext=c
9226 ac_cpp='$CPP $CPPFLAGS'
9227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9230
9231 CC="$lt_save_CC"
9232
9233
9234 # Check whether --with-tags was given.
9235 if test "${with_tags+set}" = set; then :
9236   withval=$with_tags; tagnames="$withval"
9237 fi
9238
9239
9240 if test -f "$ltmain" && test -n "$tagnames"; then
9241   if test ! -f "${ofile}"; then
9242     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9243 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9244   fi
9245
9246   if test -z "$LTCC"; then
9247     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9248     if test -z "$LTCC"; then
9249       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9250 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9251     else
9252       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9253 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9254     fi
9255   fi
9256
9257   # Extract list of available tagged configurations in $ofile.
9258   # Note that this assumes the entire list is on one line.
9259   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9260
9261   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9262   for tagname in $tagnames; do
9263     IFS="$lt_save_ifs"
9264     # Check whether tagname contains only valid characters
9265     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9266     "") ;;
9267     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
9268         ;;
9269     esac
9270
9271     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9272     then
9273       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
9274     fi
9275
9276     # Update the list of available tags.
9277     if test -n "$tagname"; then
9278       echo appending configuration tag \"$tagname\" to $ofile
9279
9280       case $tagname in
9281       CXX)
9282         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9283           ac_ext=cpp
9284 ac_cpp='$CXXCPP $CPPFLAGS'
9285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9288
9289
9290
9291
9292 archive_cmds_need_lc_CXX=no
9293 allow_undefined_flag_CXX=
9294 always_export_symbols_CXX=no
9295 archive_expsym_cmds_CXX=
9296 export_dynamic_flag_spec_CXX=
9297 hardcode_direct_CXX=no
9298 hardcode_libdir_flag_spec_CXX=
9299 hardcode_libdir_flag_spec_ld_CXX=
9300 hardcode_libdir_separator_CXX=
9301 hardcode_minus_L_CXX=no
9302 hardcode_automatic_CXX=no
9303 module_cmds_CXX=
9304 module_expsym_cmds_CXX=
9305 link_all_deplibs_CXX=unknown
9306 old_archive_cmds_CXX=$old_archive_cmds
9307 no_undefined_flag_CXX=
9308 whole_archive_flag_spec_CXX=
9309 enable_shared_with_static_runtimes_CXX=no
9310
9311 # Dependencies to place before and after the object being linked:
9312 predep_objects_CXX=
9313 postdep_objects_CXX=
9314 predeps_CXX=
9315 postdeps_CXX=
9316 compiler_lib_search_path_CXX=
9317
9318 # Source file extension for C++ test sources.
9319 ac_ext=cc
9320
9321 # Object file extension for compiled C++ test sources.
9322 objext=o
9323 objext_CXX=$objext
9324
9325 # Code to be used in simple compile tests
9326 lt_simple_compile_test_code="int some_variable = 0;\n"
9327
9328 # Code to be used in simple link tests
9329 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9330
9331 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9332
9333 # If no C compiler was specified, use CC.
9334 LTCC=${LTCC-"$CC"}
9335
9336 # Allow CC to be a program name with arguments.
9337 compiler=$CC
9338
9339
9340 # Allow CC to be a program name with arguments.
9341 lt_save_CC=$CC
9342 lt_save_LD=$LD
9343 lt_save_GCC=$GCC
9344 GCC=$GXX
9345 lt_save_with_gnu_ld=$with_gnu_ld
9346 lt_save_path_LD=$lt_cv_path_LD
9347 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9348   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9349 else
9350   unset lt_cv_prog_gnu_ld
9351 fi
9352 if test -n "${lt_cv_path_LDCXX+set}"; then
9353   lt_cv_path_LD=$lt_cv_path_LDCXX
9354 else
9355   unset lt_cv_path_LD
9356 fi
9357 test -z "${LDCXX+set}" || LD=$LDCXX
9358 CC=${CXX-"c++"}
9359 compiler=$CC
9360 compiler_CXX=$CC
9361 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9362
9363 # We don't want -fno-exception wen compiling C++ code, so set the
9364 # no_builtin_flag separately
9365 if test "$GXX" = yes; then
9366   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9367 else
9368   lt_prog_compiler_no_builtin_flag_CXX=
9369 fi
9370
9371 if test "$GXX" = yes; then
9372   # Set up default GNU C++ configuration
9373
9374
9375 # Check whether --with-gnu-ld was given.
9376 if test "${with_gnu_ld+set}" = set; then :
9377   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9378 else
9379   with_gnu_ld=no
9380 fi
9381
9382 ac_prog=ld
9383 if test "$GCC" = yes; then
9384   # Check if gcc -print-prog-name=ld gives a path.
9385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9386 $as_echo_n "checking for ld used by $CC... " >&6; }
9387   case $host in
9388   *-*-mingw*)
9389     # gcc leaves a trailing carriage return which upsets mingw
9390     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9391   *)
9392     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9393   esac
9394   case $ac_prog in
9395     # Accept absolute paths.
9396     [\\/]* | ?:[\\/]*)
9397       re_direlt='/[^/][^/]*/\.\./'
9398       # Canonicalize the pathname of ld
9399       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9400       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9401         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9402       done
9403       test -z "$LD" && LD="$ac_prog"
9404       ;;
9405   "")
9406     # If it fails, then pretend we aren't using GCC.
9407     ac_prog=ld
9408     ;;
9409   *)
9410     # If it is relative, then search for the first ld in PATH.
9411     with_gnu_ld=unknown
9412     ;;
9413   esac
9414 elif test "$with_gnu_ld" = yes; then
9415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9416 $as_echo_n "checking for GNU ld... " >&6; }
9417 else
9418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9419 $as_echo_n "checking for non-GNU ld... " >&6; }
9420 fi
9421 if ${lt_cv_path_LD+:} false; then :
9422   $as_echo_n "(cached) " >&6
9423 else
9424   if test -z "$LD"; then
9425   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9426   for ac_dir in $PATH; do
9427     IFS="$lt_save_ifs"
9428     test -z "$ac_dir" && ac_dir=.
9429     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9430       lt_cv_path_LD="$ac_dir/$ac_prog"
9431       # Check to see if the program is GNU ld.  I'd rather use --version,
9432       # but apparently some GNU ld's only accept -v.
9433       # Break only if it was the GNU/non-GNU ld that we prefer.
9434       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9435       *GNU* | *'with BFD'*)
9436         test "$with_gnu_ld" != no && break
9437         ;;
9438       *)
9439         test "$with_gnu_ld" != yes && break
9440         ;;
9441       esac
9442     fi
9443   done
9444   IFS="$lt_save_ifs"
9445 else
9446   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9447 fi
9448 fi
9449
9450 LD="$lt_cv_path_LD"
9451 if test -n "$LD"; then
9452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9453 $as_echo "$LD" >&6; }
9454 else
9455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9457 fi
9458 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9460 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9461 if ${lt_cv_prog_gnu_ld+:} false; then :
9462   $as_echo_n "(cached) " >&6
9463 else
9464   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9465 case `$LD -v 2>&1 </dev/null` in
9466 *GNU* | *'with BFD'*)
9467   lt_cv_prog_gnu_ld=yes
9468   ;;
9469 *)
9470   lt_cv_prog_gnu_ld=no
9471   ;;
9472 esac
9473 fi
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9475 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9476 with_gnu_ld=$lt_cv_prog_gnu_ld
9477
9478
9479
9480   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9481   # archiving commands below assume that GNU ld is being used.
9482   if test "$with_gnu_ld" = yes; then
9483     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484     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'
9485
9486     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9487     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9488
9489     # If archive_cmds runs LD, not CC, wlarc should be empty
9490     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9491     #     investigate it a little bit more. (MM)
9492     wlarc='${wl}'
9493
9494     # ancient GNU ld didn't support --whole-archive et. al.
9495     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9496         grep 'no-whole-archive' > /dev/null; then
9497       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9498     else
9499       whole_archive_flag_spec_CXX=
9500     fi
9501   else
9502     with_gnu_ld=no
9503     wlarc=
9504
9505     # A generic and very simple default shared library creation
9506     # command for GNU C++ for the case where it uses the native
9507     # linker, instead of GNU ld.  If possible, this setting should
9508     # overridden to take advantage of the native linker features on
9509     # the platform it is being used on.
9510     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9511   fi
9512
9513   # Commands to make compiler produce verbose output that lists
9514   # what "hidden" libraries, object files and flags are used when
9515   # linking a shared library.
9516   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9517
9518 else
9519   GXX=no
9520   with_gnu_ld=no
9521   wlarc=
9522 fi
9523
9524 # PORTME: fill in a description of your system's C++ link characteristics
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9527 ld_shlibs_CXX=yes
9528 case $host_os in
9529   aix3*)
9530     # FIXME: insert proper C++ library support
9531     ld_shlibs_CXX=no
9532     ;;
9533   aix4* | aix5*)
9534     if test "$host_cpu" = ia64; then
9535       # On IA64, the linker does run time linking by default, so we don't
9536       # have to do anything special.
9537       aix_use_runtimelinking=no
9538       exp_sym_flag='-Bexport'
9539       no_entry_flag=""
9540     else
9541       aix_use_runtimelinking=no
9542
9543       # Test if we are trying to use run time linking or normal
9544       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9545       # need to do runtime linking.
9546       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9547         for ld_flag in $LDFLAGS; do
9548           case $ld_flag in
9549           *-brtl*)
9550             aix_use_runtimelinking=yes
9551             break
9552             ;;
9553           esac
9554         done
9555       esac
9556
9557       exp_sym_flag='-bexport'
9558       no_entry_flag='-bnoentry'
9559     fi
9560
9561     # When large executables or shared objects are built, AIX ld can
9562     # have problems creating the table of contents.  If linking a library
9563     # or program results in "error TOC overflow" add -mminimal-toc to
9564     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9565     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9566
9567     archive_cmds_CXX=''
9568     hardcode_direct_CXX=yes
9569     hardcode_libdir_separator_CXX=':'
9570     link_all_deplibs_CXX=yes
9571
9572     if test "$GXX" = yes; then
9573       case $host_os in aix4.012|aix4.012.*)
9574       # We only want to do this on AIX 4.2 and lower, the check
9575       # below for broken collect2 doesn't work under 4.3+
9576         collect2name=`${CC} -print-prog-name=collect2`
9577         if test -f "$collect2name" && \
9578            strings "$collect2name" | grep resolve_lib_name >/dev/null
9579         then
9580           # We have reworked collect2
9581           hardcode_direct_CXX=yes
9582         else
9583           # We have old collect2
9584           hardcode_direct_CXX=unsupported
9585           # It fails to find uninstalled libraries when the uninstalled
9586           # path is not listed in the libpath.  Setting hardcode_minus_L
9587           # to unsupported forces relinking
9588           hardcode_minus_L_CXX=yes
9589           hardcode_libdir_flag_spec_CXX='-L$libdir'
9590           hardcode_libdir_separator_CXX=
9591         fi
9592       esac
9593       shared_flag='-shared'
9594     else
9595       # not using gcc
9596       if test "$host_cpu" = ia64; then
9597         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9598         # chokes on -Wl,-G. The following line is correct:
9599         shared_flag='-G'
9600       else
9601         if test "$aix_use_runtimelinking" = yes; then
9602           shared_flag='${wl}-G'
9603         else
9604           shared_flag='${wl}-bM:SRE'
9605         fi
9606       fi
9607     fi
9608
9609     # It seems that -bexpall does not export symbols beginning with
9610     # underscore (_), so it is better to generate a list of symbols to export.
9611     always_export_symbols_CXX=yes
9612     if test "$aix_use_runtimelinking" = yes; then
9613       # Warning - without using the other runtime loading flags (-brtl),
9614       # -berok will link without error, but may produce a broken library.
9615       allow_undefined_flag_CXX='-berok'
9616       # Determine the default libpath from the value encoded in an empty executable.
9617       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h.  */
9619
9620 int
9621 main ()
9622 {
9623
9624   ;
9625   return 0;
9626 }
9627 _ACEOF
9628 if ac_fn_cxx_try_link "$LINENO"; then :
9629
9630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9631 }'`
9632 # Check for a 64-bit object if we didn't find anything.
9633 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9634 }'`; fi
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext \
9637     conftest$ac_exeext conftest.$ac_ext
9638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9639
9640       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9641
9642       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9643      else
9644       if test "$host_cpu" = ia64; then
9645         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9646         allow_undefined_flag_CXX="-z nodefs"
9647         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9648       else
9649         # Determine the default libpath from the value encoded in an empty executable.
9650         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h.  */
9652
9653 int
9654 main ()
9655 {
9656
9657   ;
9658   return 0;
9659 }
9660 _ACEOF
9661 if ac_fn_cxx_try_link "$LINENO"; then :
9662
9663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9664 }'`
9665 # Check for a 64-bit object if we didn't find anything.
9666 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9667 }'`; fi
9668 fi
9669 rm -f core conftest.err conftest.$ac_objext \
9670     conftest$ac_exeext conftest.$ac_ext
9671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9672
9673         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9674         # Warning - without using the other run time loading flags,
9675         # -berok will link without error, but may produce a broken library.
9676         no_undefined_flag_CXX=' ${wl}-bernotok'
9677         allow_undefined_flag_CXX=' ${wl}-berok'
9678         # -bexpall does not export symbols beginning with underscore (_)
9679         always_export_symbols_CXX=yes
9680         # Exported symbols can be pulled into shared objects from archives
9681         whole_archive_flag_spec_CXX=' '
9682         archive_cmds_need_lc_CXX=yes
9683         # This is similar to how AIX traditionally builds it's shared libraries.
9684         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9685       fi
9686     fi
9687     ;;
9688   chorus*)
9689     case $cc_basename in
9690       *)
9691         # FIXME: insert proper C++ library support
9692         ld_shlibs_CXX=no
9693         ;;
9694     esac
9695     ;;
9696
9697   cygwin* | mingw* | pw32*)
9698     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9699     # as there is no search path for DLLs.
9700     hardcode_libdir_flag_spec_CXX='-L$libdir'
9701     allow_undefined_flag_CXX=unsupported
9702     always_export_symbols_CXX=no
9703     enable_shared_with_static_runtimes_CXX=yes
9704
9705     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9706       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9707       # If the export-symbols file already is a .def file (1st line
9708       # is EXPORTS), use it as is; otherwise, prepend...
9709       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9710         cp $export_symbols $output_objdir/$soname.def;
9711       else
9712         echo EXPORTS > $output_objdir/$soname.def;
9713         cat $export_symbols >> $output_objdir/$soname.def;
9714       fi~
9715       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9716     else
9717       ld_shlibs_CXX=no
9718     fi
9719   ;;
9720
9721   darwin* | rhapsody*)
9722   if test "$GXX" = yes; then
9723     archive_cmds_need_lc_CXX=no
9724     case "$host_os" in
9725     rhapsody* | darwin1.[012])
9726       allow_undefined_flag_CXX='-undefined suppress'
9727       ;;
9728     *) # Darwin 1.3 on
9729       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9730         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9731       else
9732         case ${MACOSX_DEPLOYMENT_TARGET} in
9733           10.[012])
9734             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9735             ;;
9736           10.*)
9737             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9738             ;;
9739         esac
9740       fi
9741       ;;
9742     esac
9743     lt_int_apple_cc_single_mod=no
9744     output_verbose_link_cmd='echo'
9745     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9746       lt_int_apple_cc_single_mod=yes
9747     fi
9748     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9749       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9750     else
9751       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9752     fi
9753     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9754
9755     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9756     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9757       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9758     else
9759       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9760     fi
9761     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9762     hardcode_direct_CXX=no
9763     hardcode_automatic_CXX=yes
9764     hardcode_shlibpath_var_CXX=unsupported
9765     whole_archive_flag_spec_CXX='-all_load $convenience'
9766     link_all_deplibs_CXX=yes
9767   else
9768     ld_shlibs_CXX=no
9769   fi
9770     ;;
9771
9772   dgux*)
9773     case $cc_basename in
9774       ec++)
9775         # FIXME: insert proper C++ library support
9776         ld_shlibs_CXX=no
9777         ;;
9778       ghcx)
9779         # Green Hills C++ Compiler
9780         # FIXME: insert proper C++ library support
9781         ld_shlibs_CXX=no
9782         ;;
9783       *)
9784         # FIXME: insert proper C++ library support
9785         ld_shlibs_CXX=no
9786         ;;
9787     esac
9788     ;;
9789   freebsd12*)
9790     # C++ shared libraries reported to be fairly broken before switch to ELF
9791     ld_shlibs_CXX=no
9792     ;;
9793   freebsd-elf*)
9794     archive_cmds_need_lc_CXX=no
9795     ;;
9796   freebsd* | kfreebsd*-gnu)
9797     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9798     # conventions
9799     ld_shlibs_CXX=yes
9800     ;;
9801   gnu*)
9802     ;;
9803   hpux9*)
9804     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9805     hardcode_libdir_separator_CXX=:
9806     export_dynamic_flag_spec_CXX='${wl}-E'
9807     hardcode_direct_CXX=yes
9808     hardcode_minus_L_CXX=yes # Not in the search PATH,
9809                                 # but as the default
9810                                 # location of the library.
9811
9812     case $cc_basename in
9813     CC)
9814       # FIXME: insert proper C++ library support
9815       ld_shlibs_CXX=no
9816       ;;
9817     aCC)
9818       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'
9819       # Commands to make compiler produce verbose output that lists
9820       # what "hidden" libraries, object files and flags are used when
9821       # linking a shared library.
9822       #
9823       # There doesn't appear to be a way to prevent this compiler from
9824       # explicitly linking system object files so we need to strip them
9825       # from the output so that they don't get included in the library
9826       # dependencies.
9827       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 $list'
9828       ;;
9829     *)
9830       if test "$GXX" = yes; then
9831         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'
9832       else
9833         # FIXME: insert proper C++ library support
9834         ld_shlibs_CXX=no
9835       fi
9836       ;;
9837     esac
9838     ;;
9839   hpux10*|hpux11*)
9840     if test $with_gnu_ld = no; then
9841       case "$host_cpu" in
9842       hppa*64*)
9843         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9844         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9845         hardcode_libdir_separator_CXX=:
9846         ;;
9847       ia64*)
9848         hardcode_libdir_flag_spec_CXX='-L$libdir'
9849         ;;
9850       *)
9851         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9852         hardcode_libdir_separator_CXX=:
9853         export_dynamic_flag_spec_CXX='${wl}-E'
9854         ;;
9855       esac
9856     fi
9857     case "$host_cpu" in
9858     hppa*64*)
9859       hardcode_direct_CXX=no
9860       hardcode_shlibpath_var_CXX=no
9861       ;;
9862     ia64*)
9863       hardcode_direct_CXX=no
9864       hardcode_shlibpath_var_CXX=no
9865       hardcode_minus_L_CXX=yes # Not in the search PATH,
9866                                               # but as the default
9867                                               # location of the library.
9868       ;;
9869     *)
9870       hardcode_direct_CXX=yes
9871       hardcode_minus_L_CXX=yes # Not in the search PATH,
9872                                               # but as the default
9873                                               # location of the library.
9874       ;;
9875     esac
9876
9877     case $cc_basename in
9878       CC)
9879         # FIXME: insert proper C++ library support
9880         ld_shlibs_CXX=no
9881         ;;
9882       aCC)
9883         case "$host_cpu" in
9884         hppa*64*|ia64*)
9885           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9886           ;;
9887         *)
9888           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9889           ;;
9890         esac
9891         # Commands to make compiler produce verbose output that lists
9892         # what "hidden" libraries, object files and flags are used when
9893         # linking a shared library.
9894         #
9895         # There doesn't appear to be a way to prevent this compiler from
9896         # explicitly linking system object files so we need to strip them
9897         # from the output so that they don't get included in the library
9898         # dependencies.
9899         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 $list'
9900         ;;
9901       *)
9902         if test "$GXX" = yes; then
9903           if test $with_gnu_ld = no; then
9904             case "$host_cpu" in
9905             ia64*|hppa*64*)
9906               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9907               ;;
9908             *)
9909               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'
9910               ;;
9911             esac
9912           fi
9913         else
9914           # FIXME: insert proper C++ library support
9915           ld_shlibs_CXX=no
9916         fi
9917         ;;
9918     esac
9919     ;;
9920   irix5* | irix6*)
9921     case $cc_basename in
9922       CC)
9923         # SGI C++
9924         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9925
9926         # Archives containing C++ object files must be created using
9927         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9928         # necessary to make sure instantiated templates are included
9929         # in the archive.
9930         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9931         ;;
9932       *)
9933         if test "$GXX" = yes; then
9934           if test "$with_gnu_ld" = no; then
9935             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9936           else
9937             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9938           fi
9939         fi
9940         link_all_deplibs_CXX=yes
9941         ;;
9942     esac
9943     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9944     hardcode_libdir_separator_CXX=:
9945     ;;
9946   linux*)
9947     case $cc_basename in
9948       KCC)
9949         # Kuck and Associates, Inc. (KAI) C++ Compiler
9950
9951         # KCC will only create a shared library if the output file
9952         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9953         # to its proper name (with version) after linking.
9954         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'
9955         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'
9956         # Commands to make compiler produce verbose output that lists
9957         # what "hidden" libraries, object files and flags are used when
9958         # linking a shared library.
9959         #
9960         # There doesn't appear to be a way to prevent this compiler from
9961         # explicitly linking system object files so we need to strip them
9962         # from the output so that they don't get included in the library
9963         # dependencies.
9964         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 $list'
9965
9966         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9967         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9968
9969         # Archives containing C++ object files must be created using
9970         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9971         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9972         ;;
9973       icpc)
9974         # Intel C++
9975         with_gnu_ld=yes
9976         archive_cmds_need_lc_CXX=no
9977         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9978         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'
9979         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9980         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9981         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9982         ;;
9983       cxx)
9984         # Compaq C++
9985         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9986         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'
9987
9988         runpath_var=LD_RUN_PATH
9989         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9990         hardcode_libdir_separator_CXX=:
9991
9992         # Commands to make compiler produce verbose output that lists
9993         # what "hidden" libraries, object files and flags are used when
9994         # linking a shared library.
9995         #
9996         # There doesn't appear to be a way to prevent this compiler from
9997         # explicitly linking system object files so we need to strip them
9998         # from the output so that they don't get included in the library
9999         # dependencies.
10000         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10001         ;;
10002     esac
10003     ;;
10004   lynxos*)
10005     # FIXME: insert proper C++ library support
10006     ld_shlibs_CXX=no
10007     ;;
10008   m88k*)
10009     # FIXME: insert proper C++ library support
10010     ld_shlibs_CXX=no
10011     ;;
10012   mvs*)
10013     case $cc_basename in
10014       cxx)
10015         # FIXME: insert proper C++ library support
10016         ld_shlibs_CXX=no
10017         ;;
10018       *)
10019         # FIXME: insert proper C++ library support
10020         ld_shlibs_CXX=no
10021         ;;
10022     esac
10023     ;;
10024   netbsd*)
10025     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10026       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10027       wlarc=
10028       hardcode_libdir_flag_spec_CXX='-R$libdir'
10029       hardcode_direct_CXX=yes
10030       hardcode_shlibpath_var_CXX=no
10031     fi
10032     # Workaround some broken pre-1.5 toolchains
10033     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10034     ;;
10035   osf3*)
10036     case $cc_basename in
10037       KCC)
10038         # Kuck and Associates, Inc. (KAI) C++ Compiler
10039
10040         # KCC will only create a shared library if the output file
10041         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10042         # to its proper name (with version) after linking.
10043         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'
10044
10045         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10046         hardcode_libdir_separator_CXX=:
10047
10048         # Archives containing C++ object files must be created using
10049         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10050         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10051
10052         ;;
10053       RCC)
10054         # Rational C++ 2.4.1
10055         # FIXME: insert proper C++ library support
10056         ld_shlibs_CXX=no
10057         ;;
10058       cxx)
10059         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10060         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10061
10062         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10063         hardcode_libdir_separator_CXX=:
10064
10065         # Commands to make compiler produce verbose output that lists
10066         # what "hidden" libraries, object files and flags are used when
10067         # linking a shared library.
10068         #
10069         # There doesn't appear to be a way to prevent this compiler from
10070         # explicitly linking system object files so we need to strip them
10071         # from the output so that they don't get included in the library
10072         # dependencies.
10073         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10074         ;;
10075       *)
10076         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10077           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10078           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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10079
10080           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10081           hardcode_libdir_separator_CXX=:
10082
10083           # Commands to make compiler produce verbose output that lists
10084           # what "hidden" libraries, object files and flags are used when
10085           # linking a shared library.
10086           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10087
10088         else
10089           # FIXME: insert proper C++ library support
10090           ld_shlibs_CXX=no
10091         fi
10092         ;;
10093     esac
10094     ;;
10095   osf4* | osf5*)
10096     case $cc_basename in
10097       KCC)
10098         # Kuck and Associates, Inc. (KAI) C++ Compiler
10099
10100         # KCC will only create a shared library if the output file
10101         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10102         # to its proper name (with version) after linking.
10103         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'
10104
10105         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10106         hardcode_libdir_separator_CXX=:
10107
10108         # Archives containing C++ object files must be created using
10109         # the KAI C++ compiler.
10110         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10111         ;;
10112       RCC)
10113         # Rational C++ 2.4.1
10114         # FIXME: insert proper C++ library support
10115         ld_shlibs_CXX=no
10116         ;;
10117       cxx)
10118         allow_undefined_flag_CXX=' -expect_unresolved \*'
10119         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10120         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10121           echo "-hidden">> $lib.exp~
10122           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10123           $rm $lib.exp'
10124
10125         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10126         hardcode_libdir_separator_CXX=:
10127
10128         # Commands to make compiler produce verbose output that lists
10129         # what "hidden" libraries, object files and flags are used when
10130         # linking a shared library.
10131         #
10132         # There doesn't appear to be a way to prevent this compiler from
10133         # explicitly linking system object files so we need to strip them
10134         # from the output so that they don't get included in the library
10135         # dependencies.
10136         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10137         ;;
10138       *)
10139         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10140           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10141          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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10142
10143           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10144           hardcode_libdir_separator_CXX=:
10145
10146           # Commands to make compiler produce verbose output that lists
10147           # what "hidden" libraries, object files and flags are used when
10148           # linking a shared library.
10149           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10150
10151         else
10152           # FIXME: insert proper C++ library support
10153           ld_shlibs_CXX=no
10154         fi
10155         ;;
10156     esac
10157     ;;
10158   psos*)
10159     # FIXME: insert proper C++ library support
10160     ld_shlibs_CXX=no
10161     ;;
10162   sco*)
10163     archive_cmds_need_lc_CXX=no
10164     case $cc_basename in
10165       CC)
10166         # FIXME: insert proper C++ library support
10167         ld_shlibs_CXX=no
10168         ;;
10169       *)
10170         # FIXME: insert proper C++ library support
10171         ld_shlibs_CXX=no
10172         ;;
10173     esac
10174     ;;
10175   sunos4*)
10176     case $cc_basename in
10177       CC)
10178         # Sun C++ 4.x
10179         # FIXME: insert proper C++ library support
10180         ld_shlibs_CXX=no
10181         ;;
10182       lcc)
10183         # Lucid
10184         # FIXME: insert proper C++ library support
10185         ld_shlibs_CXX=no
10186         ;;
10187       *)
10188         # FIXME: insert proper C++ library support
10189         ld_shlibs_CXX=no
10190         ;;
10191     esac
10192     ;;
10193   solaris*)
10194     case $cc_basename in
10195       CC)
10196         # Sun C++ 4.2, 5.x and Centerline C++
10197         no_undefined_flag_CXX=' -zdefs'
10198         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10199         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10200         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10201
10202         hardcode_libdir_flag_spec_CXX='-R$libdir'
10203         hardcode_shlibpath_var_CXX=no
10204         case $host_os in
10205           solaris2.0-5 | solaris2.0-5.*) ;;
10206           *)
10207             # The C++ compiler is used as linker so we must use $wl
10208             # flag to pass the commands to the underlying system
10209             # linker.
10210             # Supported since Solaris 2.6 (maybe 2.5.1?)
10211             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10212             ;;
10213         esac
10214         link_all_deplibs_CXX=yes
10215
10216         # Commands to make compiler produce verbose output that lists
10217         # what "hidden" libraries, object files and flags are used when
10218         # linking a shared library.
10219         #
10220         # There doesn't appear to be a way to prevent this compiler from
10221         # explicitly linking system object files so we need to strip them
10222         # from the output so that they don't get included in the library
10223         # dependencies.
10224         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10225
10226         # Archives containing C++ object files must be created using
10227         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10228         # necessary to make sure instantiated templates are included
10229         # in the archive.
10230         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10231         ;;
10232       gcx)
10233         # Green Hills C++ Compiler
10234         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10235
10236         # The C++ compiler must be used to create the archive.
10237         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10238         ;;
10239       *)
10240         # GNU C++ compiler with Solaris linker
10241         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10242           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10243           if $CC --version | grep -v '^2\.7' > /dev/null; then
10244             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10245             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10246                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10247
10248             # Commands to make compiler produce verbose output that lists
10249             # what "hidden" libraries, object files and flags are used when
10250             # linking a shared library.
10251             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10252           else
10253             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10254             # platform.
10255             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10256             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10257                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10258
10259             # Commands to make compiler produce verbose output that lists
10260             # what "hidden" libraries, object files and flags are used when
10261             # linking a shared library.
10262             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10263           fi
10264
10265           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10266         fi
10267         ;;
10268     esac
10269     ;;
10270   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10271     archive_cmds_need_lc_CXX=no
10272     ;;
10273   tandem*)
10274     case $cc_basename in
10275       NCC)
10276         # NonStop-UX NCC 3.20
10277         # FIXME: insert proper C++ library support
10278         ld_shlibs_CXX=no
10279         ;;
10280       *)
10281         # FIXME: insert proper C++ library support
10282         ld_shlibs_CXX=no
10283         ;;
10284     esac
10285     ;;
10286   vxworks*)
10287     # FIXME: insert proper C++ library support
10288     ld_shlibs_CXX=no
10289     ;;
10290   *)
10291     # FIXME: insert proper C++ library support
10292     ld_shlibs_CXX=no
10293     ;;
10294 esac
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10296 $as_echo "$ld_shlibs_CXX" >&6; }
10297 test "$ld_shlibs_CXX" = no && can_build_shared=no
10298
10299 GCC_CXX="$GXX"
10300 LD_CXX="$LD"
10301
10302 ## CAVEAT EMPTOR:
10303 ## There is no encapsulation within the following macros, do not change
10304 ## the running order or otherwise move them around unless you know exactly
10305 ## what you are doing...
10306
10307 cat > conftest.$ac_ext <<EOF
10308 class Foo
10309 {
10310 public:
10311   Foo (void) { a = 0; }
10312 private:
10313   int a;
10314 };
10315 EOF
10316
10317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10318   (eval $ac_compile) 2>&5
10319   ac_status=$?
10320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10321   test $ac_status = 0; }; then
10322   # Parse the compiler output and extract the necessary
10323   # objects, libraries and library flags.
10324
10325   # Sentinel used to keep track of whether or not we are before
10326   # the conftest object file.
10327   pre_test_object_deps_done=no
10328
10329   # The `*' in the case matches for architectures that use `case' in
10330   # $output_verbose_cmd can trigger glob expansion during the loop
10331   # eval without this substitution.
10332   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10333
10334   for p in `eval $output_verbose_link_cmd`; do
10335     case $p in
10336
10337     -L* | -R* | -l*)
10338        # Some compilers place space between "-{L,R}" and the path.
10339        # Remove the space.
10340        if test $p = "-L" \
10341           || test $p = "-R"; then
10342          prev=$p
10343          continue
10344        else
10345          prev=
10346        fi
10347
10348        if test "$pre_test_object_deps_done" = no; then
10349          case $p in
10350          -L* | -R*)
10351            # Internal compiler library paths should come after those
10352            # provided the user.  The postdeps already come after the
10353            # user supplied libs so there is no need to process them.
10354            if test -z "$compiler_lib_search_path_CXX"; then
10355              compiler_lib_search_path_CXX="${prev}${p}"
10356            else
10357              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10358            fi
10359            ;;
10360          # The "-l" case would never come before the object being
10361          # linked, so don't bother handling this case.
10362          esac
10363        else
10364          if test -z "$postdeps_CXX"; then
10365            postdeps_CXX="${prev}${p}"
10366          else
10367            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10368          fi
10369        fi
10370        ;;
10371
10372     *.$objext)
10373        # This assumes that the test object file only shows up
10374        # once in the compiler output.
10375        if test "$p" = "conftest.$objext"; then
10376          pre_test_object_deps_done=yes
10377          continue
10378        fi
10379
10380        if test "$pre_test_object_deps_done" = no; then
10381          if test -z "$predep_objects_CXX"; then
10382            predep_objects_CXX="$p"
10383          else
10384            predep_objects_CXX="$predep_objects_CXX $p"
10385          fi
10386        else
10387          if test -z "$postdep_objects_CXX"; then
10388            postdep_objects_CXX="$p"
10389          else
10390            postdep_objects_CXX="$postdep_objects_CXX $p"
10391          fi
10392        fi
10393        ;;
10394
10395     *) ;; # Ignore the rest.
10396
10397     esac
10398   done
10399
10400   # Clean up.
10401   rm -f a.out a.exe
10402 else
10403   echo "libtool.m4: error: problem compiling CXX test program"
10404 fi
10405
10406 $rm -f confest.$objext
10407
10408 case " $postdeps_CXX " in
10409 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10410 esac
10411
10412 lt_prog_compiler_wl_CXX=
10413 lt_prog_compiler_pic_CXX=
10414 lt_prog_compiler_static_CXX=
10415
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10417 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10418
10419   # C++ specific cases for pic, static, wl, etc.
10420   if test "$GXX" = yes; then
10421     lt_prog_compiler_wl_CXX='-Wl,'
10422     lt_prog_compiler_static_CXX='-static'
10423
10424     case $host_os in
10425     aix*)
10426       # All AIX code is PIC.
10427       if test "$host_cpu" = ia64; then
10428         # AIX 5 now supports IA64 processor
10429         lt_prog_compiler_static_CXX='-Bstatic'
10430       fi
10431       ;;
10432     amigaos*)
10433       # FIXME: we need at least 68020 code to build shared libraries, but
10434       # adding the `-m68020' flag to GCC prevents building anything better,
10435       # like `-m68040'.
10436       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10437       ;;
10438     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10439       # PIC is the default for these OSes.
10440       ;;
10441     mingw* | os2* | pw32*)
10442       # This hack is so that the source file can tell whether it is being
10443       # built for inclusion in a dll (and should export symbols for example).
10444       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10445       ;;
10446     darwin* | rhapsody*)
10447       # PIC is the default on this platform
10448       # Common symbols not allowed in MH_DYLIB files
10449       lt_prog_compiler_pic_CXX='-fno-common'
10450       ;;
10451     *djgpp*)
10452       # DJGPP does not support shared libraries at all
10453       lt_prog_compiler_pic_CXX=
10454       ;;
10455     sysv4*MP*)
10456       if test -d /usr/nec; then
10457         lt_prog_compiler_pic_CXX=-Kconform_pic
10458       fi
10459       ;;
10460     hpux*)
10461       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10462       # not for PA HP-UX.
10463       case "$host_cpu" in
10464       hppa*64*|ia64*)
10465         ;;
10466       *)
10467         lt_prog_compiler_pic_CXX='-fPIC'
10468         ;;
10469       esac
10470       ;;
10471     *)
10472       lt_prog_compiler_pic_CXX='-fPIC'
10473       ;;
10474     esac
10475   else
10476     case $host_os in
10477       aix4* | aix5*)
10478         # All AIX code is PIC.
10479         if test "$host_cpu" = ia64; then
10480           # AIX 5 now supports IA64 processor
10481           lt_prog_compiler_static_CXX='-Bstatic'
10482         else
10483           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10484         fi
10485         ;;
10486       chorus*)
10487         case $cc_basename in
10488         cxch68)
10489           # Green Hills C++ Compiler
10490           # _LT_AC_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"
10491           ;;
10492         esac
10493         ;;
10494       dgux*)
10495         case $cc_basename in
10496           ec++)
10497             lt_prog_compiler_pic_CXX='-KPIC'
10498             ;;
10499           ghcx)
10500             # Green Hills C++ Compiler
10501             lt_prog_compiler_pic_CXX='-pic'
10502             ;;
10503           *)
10504             ;;
10505         esac
10506         ;;
10507       freebsd* | kfreebsd*-gnu)
10508         # FreeBSD uses GNU C++
10509         ;;
10510       hpux9* | hpux10* | hpux11*)
10511         case $cc_basename in
10512           CC)
10513             lt_prog_compiler_wl_CXX='-Wl,'
10514             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10515             if test "$host_cpu" != ia64; then
10516               lt_prog_compiler_pic_CXX='+Z'
10517             fi
10518             ;;
10519           aCC)
10520             lt_prog_compiler_wl_CXX='-Wl,'
10521             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10522             case "$host_cpu" in
10523             hppa*64*|ia64*)
10524               # +Z the default
10525               ;;
10526             *)
10527               lt_prog_compiler_pic_CXX='+Z'
10528               ;;
10529             esac
10530             ;;
10531           *)
10532             ;;
10533         esac
10534         ;;
10535       irix5* | irix6* | nonstopux*)
10536         case $cc_basename in
10537           CC)
10538             lt_prog_compiler_wl_CXX='-Wl,'
10539             lt_prog_compiler_static_CXX='-non_shared'
10540             # CC pic flag -KPIC is the default.
10541             ;;
10542           *)
10543             ;;
10544         esac
10545         ;;
10546       linux*)
10547         case $cc_basename in
10548           KCC)
10549             # KAI C++ Compiler
10550             lt_prog_compiler_wl_CXX='--backend -Wl,'
10551             lt_prog_compiler_pic_CXX='-fPIC'
10552             ;;
10553           icpc)
10554             # Intel C++
10555             lt_prog_compiler_wl_CXX='-Wl,'
10556             lt_prog_compiler_pic_CXX='-KPIC'
10557             lt_prog_compiler_static_CXX='-static'
10558             ;;
10559           cxx)
10560             # Compaq C++
10561             # Make sure the PIC flag is empty.  It appears that all Alpha
10562             # Linux and Compaq Tru64 Unix objects are PIC.
10563             lt_prog_compiler_pic_CXX=
10564             lt_prog_compiler_static_CXX='-non_shared'
10565             ;;
10566           *)
10567             ;;
10568         esac
10569         ;;
10570       lynxos*)
10571         ;;
10572       m88k*)
10573         ;;
10574       mvs*)
10575         case $cc_basename in
10576           cxx)
10577             lt_prog_compiler_pic_CXX='-W c,exportall'
10578             ;;
10579           *)
10580             ;;
10581         esac
10582         ;;
10583       netbsd*)
10584         ;;
10585       osf3* | osf4* | osf5*)
10586         case $cc_basename in
10587           KCC)
10588             lt_prog_compiler_wl_CXX='--backend -Wl,'
10589             ;;
10590           RCC)
10591             # Rational C++ 2.4.1
10592             lt_prog_compiler_pic_CXX='-pic'
10593             ;;
10594           cxx)
10595             # Digital/Compaq C++
10596             lt_prog_compiler_wl_CXX='-Wl,'
10597             # Make sure the PIC flag is empty.  It appears that all Alpha
10598             # Linux and Compaq Tru64 Unix objects are PIC.
10599             lt_prog_compiler_pic_CXX=
10600             lt_prog_compiler_static_CXX='-non_shared'
10601             ;;
10602           *)
10603             ;;
10604         esac
10605         ;;
10606       psos*)
10607         ;;
10608       sco*)
10609         case $cc_basename in
10610           CC)
10611             lt_prog_compiler_pic_CXX='-fPIC'
10612             ;;
10613           *)
10614             ;;
10615         esac
10616         ;;
10617       solaris*)
10618         case $cc_basename in
10619           CC)
10620             # Sun C++ 4.2, 5.x and Centerline C++
10621             lt_prog_compiler_pic_CXX='-KPIC'
10622             lt_prog_compiler_static_CXX='-Bstatic'
10623             lt_prog_compiler_wl_CXX='-Qoption ld '
10624             ;;
10625           gcx)
10626             # Green Hills C++ Compiler
10627             lt_prog_compiler_pic_CXX='-PIC'
10628             ;;
10629           *)
10630             ;;
10631         esac
10632         ;;
10633       sunos4*)
10634         case $cc_basename in
10635           CC)
10636             # Sun C++ 4.x
10637             lt_prog_compiler_pic_CXX='-pic'
10638             lt_prog_compiler_static_CXX='-Bstatic'
10639             ;;
10640           lcc)
10641             # Lucid
10642             lt_prog_compiler_pic_CXX='-pic'
10643             ;;
10644           *)
10645             ;;
10646         esac
10647         ;;
10648       tandem*)
10649         case $cc_basename in
10650           NCC)
10651             # NonStop-UX NCC 3.20
10652             lt_prog_compiler_pic_CXX='-KPIC'
10653             ;;
10654           *)
10655             ;;
10656         esac
10657         ;;
10658       unixware*)
10659         ;;
10660       vxworks*)
10661         ;;
10662       *)
10663         lt_prog_compiler_can_build_shared_CXX=no
10664         ;;
10665     esac
10666   fi
10667
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
10669 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
10670
10671 #
10672 # Check to make sure the PIC flag actually works.
10673 #
10674 if test -n "$lt_prog_compiler_pic_CXX"; then
10675
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10677 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
10678 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
10679   $as_echo_n "(cached) " >&6
10680 else
10681   lt_prog_compiler_pic_works_CXX=no
10682   ac_outfile=conftest.$ac_objext
10683    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10684    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10685    # Insert the option either (1) after the last *FLAGS variable, or
10686    # (2) before a word containing "conftest.", or (3) at the end.
10687    # Note that $ac_compile itself does not contain backslashes and begins
10688    # with a dollar sign (not a hyphen), so the echo should work correctly.
10689    # The option is referenced via a variable to avoid confusing sed.
10690    lt_compile=`echo "$ac_compile" | $SED \
10691    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10692    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10693    -e 's:$: $lt_compiler_flag:'`
10694    (eval echo "\"\$as_me:10694: $lt_compile\"" >&5)
10695    (eval "$lt_compile" 2>conftest.err)
10696    ac_status=$?
10697    cat conftest.err >&5
10698    echo "$as_me:10698: \$? = $ac_status" >&5
10699    if (exit $ac_status) && test -s "$ac_outfile"; then
10700      # The compiler can only warn and ignore the option if not recognized
10701      # So say no if there are warnings
10702      if test ! -s conftest.err; then
10703        lt_prog_compiler_pic_works_CXX=yes
10704      fi
10705    fi
10706    $rm conftest*
10707
10708 fi
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
10710 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
10711
10712 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10713     case $lt_prog_compiler_pic_CXX in
10714      "" | " "*) ;;
10715      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10716      esac
10717 else
10718     lt_prog_compiler_pic_CXX=
10719      lt_prog_compiler_can_build_shared_CXX=no
10720 fi
10721
10722 fi
10723 case "$host_os" in
10724   # For platforms which do not support PIC, -DPIC is meaningless:
10725   *djgpp*)
10726     lt_prog_compiler_pic_CXX=
10727     ;;
10728   *)
10729     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10730     ;;
10731 esac
10732
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10734 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10735 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
10736   $as_echo_n "(cached) " >&6
10737 else
10738   lt_cv_prog_compiler_c_o_CXX=no
10739    $rm -r conftest 2>/dev/null
10740    mkdir conftest
10741    cd conftest
10742    mkdir out
10743    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10744
10745    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10746    # that will create temporary files in the current directory regardless of
10747    # the output directory.  Thus, making CWD read-only will cause this test
10748    # to fail, enabling locking or at least warning the user not to do parallel
10749    # builds.
10750    chmod -w .
10751
10752    lt_compiler_flag="-o out/conftest2.$ac_objext"
10753    # Insert the option either (1) after the last *FLAGS variable, or
10754    # (2) before a word containing "conftest.", or (3) at the end.
10755    # Note that $ac_compile itself does not contain backslashes and begins
10756    # with a dollar sign (not a hyphen), so the echo should work correctly.
10757    lt_compile=`echo "$ac_compile" | $SED \
10758    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10760    -e 's:$: $lt_compiler_flag:'`
10761    (eval echo "\"\$as_me:10761: $lt_compile\"" >&5)
10762    (eval "$lt_compile" 2>out/conftest.err)
10763    ac_status=$?
10764    cat out/conftest.err >&5
10765    echo "$as_me:10765: \$? = $ac_status" >&5
10766    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10767    then
10768      # The compiler can only warn and ignore the option if not recognized
10769      # So say no if there are warnings
10770      if test ! -s out/conftest.err; then
10771        lt_cv_prog_compiler_c_o_CXX=yes
10772      fi
10773    fi
10774    chmod u+w .
10775    $rm conftest*
10776    # SGI C++ compiler will create directory out/ii_files/ for
10777    # template instantiation
10778    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10779    $rm out/* && rmdir out
10780    cd ..
10781    rmdir conftest
10782    $rm conftest*
10783
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10786 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
10787
10788
10789 hard_links="nottested"
10790 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10791   # do not overwrite the value of need_locks provided by the user
10792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10793 $as_echo_n "checking if we can lock with hard links... " >&6; }
10794   hard_links=yes
10795   $rm conftest*
10796   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10797   touch conftest.a
10798   ln conftest.a conftest.b 2>&5 || hard_links=no
10799   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10801 $as_echo "$hard_links" >&6; }
10802   if test "$hard_links" = no; then
10803     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10804 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10805     need_locks=warn
10806   fi
10807 else
10808   need_locks=no
10809 fi
10810
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10812 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10813
10814   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10815   case $host_os in
10816   aix4* | aix5*)
10817     # If we're using GNU nm, then we don't want the "-C" option.
10818     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10819     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10820       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'
10821     else
10822       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'
10823     fi
10824     ;;
10825   pw32*)
10826     export_symbols_cmds_CXX="$ltdll_cmds"
10827   ;;
10828   cygwin* | mingw*)
10829     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10830   ;;
10831   *)
10832     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10833   ;;
10834   esac
10835
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10837 $as_echo "$ld_shlibs_CXX" >&6; }
10838 test "$ld_shlibs_CXX" = no && can_build_shared=no
10839
10840 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10841 if test "$GCC" = yes; then
10842   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10843 fi
10844
10845 #
10846 # Do we need to explicitly link libc?
10847 #
10848 case "x$archive_cmds_need_lc_CXX" in
10849 x|xyes)
10850   # Assume -lc should be added
10851   archive_cmds_need_lc_CXX=yes
10852
10853   if test "$enable_shared" = yes && test "$GCC" = yes; then
10854     case $archive_cmds_CXX in
10855     *'~'*)
10856       # FIXME: we may have to deal with multi-command sequences.
10857       ;;
10858     '$CC '*)
10859       # Test whether the compiler implicitly links with -lc since on some
10860       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10861       # to ld, don't add -lc before -lgcc.
10862       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10863 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10864       $rm conftest*
10865       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10866
10867       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10868   (eval $ac_compile) 2>&5
10869   ac_status=$?
10870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10871   test $ac_status = 0; } 2>conftest.err; then
10872         soname=conftest
10873         lib=conftest
10874         libobjs=conftest.$ac_objext
10875         deplibs=
10876         wl=$lt_prog_compiler_wl_CXX
10877         compiler_flags=-v
10878         linker_flags=-v
10879         verstring=
10880         output_objdir=.
10881         libname=conftest
10882         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10883         allow_undefined_flag_CXX=
10884         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10885   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10886   ac_status=$?
10887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10888   test $ac_status = 0; }
10889         then
10890           archive_cmds_need_lc_CXX=no
10891         else
10892           archive_cmds_need_lc_CXX=yes
10893         fi
10894         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10895       else
10896         cat conftest.err 1>&5
10897       fi
10898       $rm conftest*
10899       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
10900 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
10901       ;;
10902     esac
10903   fi
10904   ;;
10905 esac
10906
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10908 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10909 library_names_spec=
10910 libname_spec='lib$name'
10911 soname_spec=
10912 shrext=".so"
10913 postinstall_cmds=
10914 postuninstall_cmds=
10915 finish_cmds=
10916 finish_eval=
10917 shlibpath_var=
10918 shlibpath_overrides_runpath=unknown
10919 version_type=none
10920 dynamic_linker="$host_os ld.so"
10921 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10922 if test "$GCC" = yes; then
10923   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10924   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10925     # if the path contains ";" then we assume it to be the separator
10926     # otherwise default to the standard path separator (i.e. ":") - it is
10927     # assumed that no part of a normal pathname contains ";" but that should
10928     # okay in the real world where ";" in dirpaths is itself problematic.
10929     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10930   else
10931     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10932   fi
10933 else
10934   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10935 fi
10936 need_lib_prefix=unknown
10937 hardcode_into_libs=no
10938
10939 # when you set need_version to no, make sure it does not cause -set_version
10940 # flags to be left without arguments
10941 need_version=unknown
10942
10943 case $host_os in
10944 aix3*)
10945   version_type=linux
10946   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10947   shlibpath_var=LIBPATH
10948
10949   # AIX 3 has no versioning support, so we append a major version to the name.
10950   soname_spec='${libname}${release}${shared_ext}$major'
10951   ;;
10952
10953 aix4* | aix5*)
10954   version_type=linux
10955   need_lib_prefix=no
10956   need_version=no
10957   hardcode_into_libs=yes
10958   if test "$host_cpu" = ia64; then
10959     # AIX 5 supports IA64
10960     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10961     shlibpath_var=LD_LIBRARY_PATH
10962   else
10963     # With GCC up to 2.95.x, collect2 would create an import file
10964     # for dependence libraries.  The import file would start with
10965     # the line `#! .'.  This would cause the generated library to
10966     # depend on `.', always an invalid library.  This was fixed in
10967     # development snapshots of GCC prior to 3.0.
10968     case $host_os in
10969       aix4 | aix4.[01] | aix4.[01].*)
10970       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10971            echo ' yes '
10972            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10973         :
10974       else
10975         can_build_shared=no
10976       fi
10977       ;;
10978     esac
10979     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10980     # soname into executable. Probably we can add versioning support to
10981     # collect2, so additional links can be useful in future.
10982     if test "$aix_use_runtimelinking" = yes; then
10983       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10984       # instead of lib<name>.a to let people know that these are not
10985       # typical AIX shared libraries.
10986       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987     else
10988       # We preserve .a as extension for shared libraries through AIX4.2
10989       # and later when we are not doing run time linking.
10990       library_names_spec='${libname}${release}.a $libname.a'
10991       soname_spec='${libname}${release}${shared_ext}$major'
10992     fi
10993     shlibpath_var=LIBPATH
10994   fi
10995   ;;
10996
10997 amigaos*)
10998   library_names_spec='$libname.ixlibrary $libname.a'
10999   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11000   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'
11001   ;;
11002
11003 beos*)
11004   library_names_spec='${libname}${shared_ext}'
11005   dynamic_linker="$host_os ld.so"
11006   shlibpath_var=LIBRARY_PATH
11007   ;;
11008
11009 bsdi4*)
11010   version_type=linux
11011   need_version=no
11012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013   soname_spec='${libname}${release}${shared_ext}$major'
11014   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11015   shlibpath_var=LD_LIBRARY_PATH
11016   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11017   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11018   # the default ld.so.conf also contains /usr/contrib/lib and
11019   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11020   # libtool to hard-code these into programs
11021   ;;
11022
11023 cygwin* | mingw* | pw32*)
11024   version_type=windows
11025   shrext=".dll"
11026   need_version=no
11027   need_lib_prefix=no
11028
11029   case $GCC,$host_os in
11030   yes,cygwin* | yes,mingw* | yes,pw32*)
11031     library_names_spec='$libname.dll.a'
11032     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11033     postinstall_cmds='base_file=`basename \${file}`~
11034       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11035       dldir=$destdir/`dirname \$dlpath`~
11036       test -d \$dldir || mkdir -p \$dldir~
11037       $install_prog $dir/$dlname \$dldir/$dlname'
11038     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11039       dlpath=$dir/\$dldll~
11040        $rm \$dlpath'
11041     shlibpath_overrides_runpath=yes
11042
11043     case $host_os in
11044     cygwin*)
11045       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11046       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11047       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11048       ;;
11049     mingw*)
11050       # MinGW DLLs use traditional 'lib' prefix
11051       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11052       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11053       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11054         # It is most probably a Windows format PATH printed by
11055         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11056         # path with ; separators, and with drive letters. We can handle the
11057         # drive letters (cygwin fileutils understands them), so leave them,
11058         # especially as we might pass files found there to a mingw objdump,
11059         # which wouldn't understand a cygwinified path. Ahh.
11060         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11061       else
11062         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11063       fi
11064       ;;
11065     pw32*)
11066       # pw32 DLLs use 'pw' prefix rather than 'lib'
11067       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11068       ;;
11069     esac
11070     ;;
11071
11072   *)
11073     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11074     ;;
11075   esac
11076   dynamic_linker='Win32 ld.exe'
11077   # FIXME: first we should search . and the directory the executable is in
11078   shlibpath_var=PATH
11079   ;;
11080
11081 darwin* | rhapsody*)
11082   dynamic_linker="$host_os dyld"
11083   version_type=darwin
11084   need_lib_prefix=no
11085   need_version=no
11086   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11087   soname_spec='${libname}${release}${major}$shared_ext'
11088   shlibpath_overrides_runpath=yes
11089   shlibpath_var=DYLD_LIBRARY_PATH
11090   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11091   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11092   if test "$GCC" = yes; then
11093     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11094   else
11095     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11096   fi
11097   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11098   ;;
11099
11100 dgux*)
11101   version_type=linux
11102   need_lib_prefix=no
11103   need_version=no
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11105   soname_spec='${libname}${release}${shared_ext}$major'
11106   shlibpath_var=LD_LIBRARY_PATH
11107   ;;
11108
11109 freebsd1*)
11110   dynamic_linker=no
11111   ;;
11112
11113 kfreebsd*-gnu)
11114   version_type=linux
11115   need_lib_prefix=no
11116   need_version=no
11117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11118   soname_spec='${libname}${release}${shared_ext}$major'
11119   shlibpath_var=LD_LIBRARY_PATH
11120   shlibpath_overrides_runpath=no
11121   hardcode_into_libs=yes
11122   dynamic_linker='GNU ld.so'
11123   ;;
11124
11125 freebsd*)
11126   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11127   version_type=freebsd-$objformat
11128   case $version_type in
11129     freebsd-elf*)
11130       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11131       need_version=no
11132       need_lib_prefix=no
11133       ;;
11134     freebsd-*)
11135       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11136       need_version=yes
11137       ;;
11138   esac
11139   shlibpath_var=LD_LIBRARY_PATH
11140   case $host_os in
11141   freebsd2*)
11142     shlibpath_overrides_runpath=yes
11143     ;;
11144   freebsd3.01* | freebsdelf3.01*)
11145     shlibpath_overrides_runpath=yes
11146     hardcode_into_libs=yes
11147     ;;
11148   *) # from 3.2 on
11149     shlibpath_overrides_runpath=no
11150     hardcode_into_libs=yes
11151     ;;
11152   esac
11153   ;;
11154
11155 gnu*)
11156   version_type=linux
11157   need_lib_prefix=no
11158   need_version=no
11159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11160   soname_spec='${libname}${release}${shared_ext}$major'
11161   shlibpath_var=LD_LIBRARY_PATH
11162   hardcode_into_libs=yes
11163   ;;
11164
11165 hpux9* | hpux10* | hpux11*)
11166   # Give a soname corresponding to the major version so that dld.sl refuses to
11167   # link against other versions.
11168   version_type=sunos
11169   need_lib_prefix=no
11170   need_version=no
11171   case "$host_cpu" in
11172   ia64*)
11173     shrext='.so'
11174     hardcode_into_libs=yes
11175     dynamic_linker="$host_os dld.so"
11176     shlibpath_var=LD_LIBRARY_PATH
11177     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179     soname_spec='${libname}${release}${shared_ext}$major'
11180     if test "X$HPUX_IA64_MODE" = X32; then
11181       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11182     else
11183       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11184     fi
11185     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11186     ;;
11187    hppa*64*)
11188      shrext='.sl'
11189      hardcode_into_libs=yes
11190      dynamic_linker="$host_os dld.sl"
11191      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11192      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11193      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194      soname_spec='${libname}${release}${shared_ext}$major'
11195      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11196      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11197      ;;
11198    *)
11199     shrext='.sl'
11200     dynamic_linker="$host_os dld.sl"
11201     shlibpath_var=SHLIB_PATH
11202     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204     soname_spec='${libname}${release}${shared_ext}$major'
11205     ;;
11206   esac
11207   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11208   postinstall_cmds='chmod 555 $lib'
11209   ;;
11210
11211 irix5* | irix6* | nonstopux*)
11212   case $host_os in
11213     nonstopux*) version_type=nonstopux ;;
11214     *)
11215         if test "$lt_cv_prog_gnu_ld" = yes; then
11216                 version_type=linux
11217         else
11218                 version_type=irix
11219         fi ;;
11220   esac
11221   need_lib_prefix=no
11222   need_version=no
11223   soname_spec='${libname}${release}${shared_ext}$major'
11224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11225   case $host_os in
11226   irix5* | nonstopux*)
11227     libsuff= shlibsuff=
11228     ;;
11229   *)
11230     case $LD in # libtool.m4 will add one of these switches to LD
11231     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11232       libsuff= shlibsuff= libmagic=32-bit;;
11233     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11234       libsuff=32 shlibsuff=N32 libmagic=N32;;
11235     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11236       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11237     *) libsuff= shlibsuff= libmagic=never-match;;
11238     esac
11239     ;;
11240   esac
11241   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11242   shlibpath_overrides_runpath=no
11243   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11244   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11245   hardcode_into_libs=yes
11246   ;;
11247
11248 # No shared lib support for Linux oldld, aout, or coff.
11249 linux*oldld* | linux*aout* | linux*coff*)
11250   dynamic_linker=no
11251   ;;
11252
11253 # This must be Linux ELF.
11254 linux*)
11255   version_type=linux
11256   need_lib_prefix=no
11257   need_version=no
11258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259   soname_spec='${libname}${release}${shared_ext}$major'
11260   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11261   shlibpath_var=LD_LIBRARY_PATH
11262   shlibpath_overrides_runpath=no
11263   # This implies no fast_install, which is unacceptable.
11264   # Some rework will be needed to allow for fast_install
11265   # before this can be enabled.
11266   hardcode_into_libs=yes
11267
11268   # We used to test for /lib/ld.so.1 and disable shared libraries on
11269   # powerpc, because MkLinux only supported shared libraries with the
11270   # GNU dynamic linker.  Since this was broken with cross compilers,
11271   # most powerpc-linux boxes support dynamic linking these days and
11272   # people can always --disable-shared, the test was removed, and we
11273   # assume the GNU/Linux dynamic linker is in use.
11274   dynamic_linker='GNU/Linux ld.so'
11275   ;;
11276
11277 netbsd*)
11278   version_type=sunos
11279   need_lib_prefix=no
11280   need_version=no
11281   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11283     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11284     dynamic_linker='NetBSD (a.out) ld.so'
11285   else
11286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11287     soname_spec='${libname}${release}${shared_ext}$major'
11288     dynamic_linker='NetBSD ld.elf_so'
11289   fi
11290   shlibpath_var=LD_LIBRARY_PATH
11291   shlibpath_overrides_runpath=yes
11292   hardcode_into_libs=yes
11293   ;;
11294
11295 newsos6)
11296   version_type=linux
11297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298   shlibpath_var=LD_LIBRARY_PATH
11299   shlibpath_overrides_runpath=yes
11300   ;;
11301
11302 nto-qnx*)
11303   version_type=linux
11304   need_lib_prefix=no
11305   need_version=no
11306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307   soname_spec='${libname}${release}${shared_ext}$major'
11308   shlibpath_var=LD_LIBRARY_PATH
11309   shlibpath_overrides_runpath=yes
11310   ;;
11311
11312 openbsd*)
11313   version_type=sunos
11314   need_lib_prefix=no
11315   need_version=no
11316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11317   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11318   shlibpath_var=LD_LIBRARY_PATH
11319   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11320     case $host_os in
11321       openbsd2.[89] | openbsd2.[89].*)
11322         shlibpath_overrides_runpath=no
11323         ;;
11324       *)
11325         shlibpath_overrides_runpath=yes
11326         ;;
11327       esac
11328   else
11329     shlibpath_overrides_runpath=yes
11330   fi
11331   ;;
11332
11333 os2*)
11334   libname_spec='$name'
11335   shrext=".dll"
11336   need_lib_prefix=no
11337   library_names_spec='$libname${shared_ext} $libname.a'
11338   dynamic_linker='OS/2 ld.exe'
11339   shlibpath_var=LIBPATH
11340   ;;
11341
11342 osf3* | osf4* | osf5*)
11343   version_type=osf
11344   need_lib_prefix=no
11345   need_version=no
11346   soname_spec='${libname}${release}${shared_ext}$major'
11347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348   shlibpath_var=LD_LIBRARY_PATH
11349   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11350   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11351   ;;
11352
11353 sco3.2v5*)
11354   version_type=osf
11355   soname_spec='${libname}${release}${shared_ext}$major'
11356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357   shlibpath_var=LD_LIBRARY_PATH
11358   ;;
11359
11360 solaris*)
11361   version_type=linux
11362   need_lib_prefix=no
11363   need_version=no
11364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11365   soname_spec='${libname}${release}${shared_ext}$major'
11366   shlibpath_var=LD_LIBRARY_PATH
11367   shlibpath_overrides_runpath=yes
11368   hardcode_into_libs=yes
11369   # ldd complains unless libraries are executable
11370   postinstall_cmds='chmod +x $lib'
11371   ;;
11372
11373 sunos4*)
11374   version_type=sunos
11375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11376   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11377   shlibpath_var=LD_LIBRARY_PATH
11378   shlibpath_overrides_runpath=yes
11379   if test "$with_gnu_ld" = yes; then
11380     need_lib_prefix=no
11381   fi
11382   need_version=yes
11383   ;;
11384
11385 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11386   version_type=linux
11387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388   soname_spec='${libname}${release}${shared_ext}$major'
11389   shlibpath_var=LD_LIBRARY_PATH
11390   case $host_vendor in
11391     sni)
11392       shlibpath_overrides_runpath=no
11393       need_lib_prefix=no
11394       export_dynamic_flag_spec='${wl}-Blargedynsym'
11395       runpath_var=LD_RUN_PATH
11396       ;;
11397     siemens)
11398       need_lib_prefix=no
11399       ;;
11400     motorola)
11401       need_lib_prefix=no
11402       need_version=no
11403       shlibpath_overrides_runpath=no
11404       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11405       ;;
11406   esac
11407   ;;
11408
11409 sysv4*MP*)
11410   if test -d /usr/nec ;then
11411     version_type=linux
11412     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11413     soname_spec='$libname${shared_ext}.$major'
11414     shlibpath_var=LD_LIBRARY_PATH
11415   fi
11416   ;;
11417
11418 uts4*)
11419   version_type=linux
11420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421   soname_spec='${libname}${release}${shared_ext}$major'
11422   shlibpath_var=LD_LIBRARY_PATH
11423   ;;
11424
11425 *)
11426   dynamic_linker=no
11427   ;;
11428 esac
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11430 $as_echo "$dynamic_linker" >&6; }
11431 test "$dynamic_linker" = no && can_build_shared=no
11432
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11434 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11435 hardcode_action_CXX=
11436 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11437    test -n "$runpath_var CXX" || \
11438    test "X$hardcode_automatic_CXX"="Xyes" ; then
11439
11440   # We can hardcode non-existant directories.
11441   if test "$hardcode_direct_CXX" != no &&
11442      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11443      # have to relink, otherwise we might link with an installed library
11444      # when we should be linking with a yet-to-be-installed one
11445      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11446      test "$hardcode_minus_L_CXX" != no; then
11447     # Linking always hardcodes the temporary library directory.
11448     hardcode_action_CXX=relink
11449   else
11450     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11451     hardcode_action_CXX=immediate
11452   fi
11453 else
11454   # We cannot hardcode anything, or else we can only hardcode existing
11455   # directories.
11456   hardcode_action_CXX=unsupported
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
11459 $as_echo "$hardcode_action_CXX" >&6; }
11460
11461 if test "$hardcode_action_CXX" = relink; then
11462   # Fast installation is not supported
11463   enable_fast_install=no
11464 elif test "$shlibpath_overrides_runpath" = yes ||
11465      test "$enable_shared" = no; then
11466   # Fast installation is not necessary
11467   enable_fast_install=needless
11468 fi
11469
11470 striplib=
11471 old_striplib=
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11473 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11474 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11475   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11476   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11478 $as_echo "yes" >&6; }
11479 else
11480 # FIXME - insert some real tests, host_os isn't really good enough
11481   case $host_os in
11482    darwin*)
11483        if test -n "$STRIP" ; then
11484          striplib="$STRIP -x"
11485          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11486 $as_echo "yes" >&6; }
11487        else
11488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11490 fi
11491        ;;
11492    *)
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11495     ;;
11496   esac
11497 fi
11498
11499 if test "x$enable_dlopen" != xyes; then
11500   enable_dlopen=unknown
11501   enable_dlopen_self=unknown
11502   enable_dlopen_self_static=unknown
11503 else
11504   lt_cv_dlopen=no
11505   lt_cv_dlopen_libs=
11506
11507   case $host_os in
11508   beos*)
11509     lt_cv_dlopen="load_add_on"
11510     lt_cv_dlopen_libs=
11511     lt_cv_dlopen_self=yes
11512     ;;
11513
11514   mingw* | pw32*)
11515     lt_cv_dlopen="LoadLibrary"
11516     lt_cv_dlopen_libs=
11517    ;;
11518
11519   cygwin*)
11520     lt_cv_dlopen="dlopen"
11521     lt_cv_dlopen_libs=
11522    ;;
11523
11524   darwin*)
11525   # if libdl is installed we need to link against it
11526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11527 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11528 if ${ac_cv_lib_dl_dlopen+:} false; then :
11529   $as_echo_n "(cached) " >&6
11530 else
11531   ac_check_lib_save_LIBS=$LIBS
11532 LIBS="-ldl  $LIBS"
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h.  */
11535
11536 /* Override any GCC internal prototype to avoid an error.
11537    Use char because int might match the return type of a GCC
11538    builtin and then its argument prototype would still apply.  */
11539 #ifdef __cplusplus
11540 extern "C"
11541 #endif
11542 char dlopen ();
11543 int
11544 main ()
11545 {
11546 return dlopen ();
11547   ;
11548   return 0;
11549 }
11550 _ACEOF
11551 if ac_fn_cxx_try_link "$LINENO"; then :
11552   ac_cv_lib_dl_dlopen=yes
11553 else
11554   ac_cv_lib_dl_dlopen=no
11555 fi
11556 rm -f core conftest.err conftest.$ac_objext \
11557     conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11559 fi
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11561 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11562 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11563   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11564 else
11565
11566     lt_cv_dlopen="dyld"
11567     lt_cv_dlopen_libs=
11568     lt_cv_dlopen_self=yes
11569
11570 fi
11571
11572    ;;
11573
11574   *)
11575     ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11576 if test "x$ac_cv_func_shl_load" = xyes; then :
11577   lt_cv_dlopen="shl_load"
11578 else
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11580 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11581 if ${ac_cv_lib_dld_shl_load+:} false; then :
11582   $as_echo_n "(cached) " >&6
11583 else
11584   ac_check_lib_save_LIBS=$LIBS
11585 LIBS="-ldld  $LIBS"
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h.  */
11588
11589 /* Override any GCC internal prototype to avoid an error.
11590    Use char because int might match the return type of a GCC
11591    builtin and then its argument prototype would still apply.  */
11592 #ifdef __cplusplus
11593 extern "C"
11594 #endif
11595 char shl_load ();
11596 int
11597 main ()
11598 {
11599 return shl_load ();
11600   ;
11601   return 0;
11602 }
11603 _ACEOF
11604 if ac_fn_cxx_try_link "$LINENO"; then :
11605   ac_cv_lib_dld_shl_load=yes
11606 else
11607   ac_cv_lib_dld_shl_load=no
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext \
11610     conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11612 fi
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11614 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11615 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11616   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11617 else
11618   ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11619 if test "x$ac_cv_func_dlopen" = xyes; then :
11620   lt_cv_dlopen="dlopen"
11621 else
11622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11623 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11624 if ${ac_cv_lib_dl_dlopen+:} false; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627   ac_check_lib_save_LIBS=$LIBS
11628 LIBS="-ldl  $LIBS"
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h.  */
11631
11632 /* Override any GCC internal prototype to avoid an error.
11633    Use char because int might match the return type of a GCC
11634    builtin and then its argument prototype would still apply.  */
11635 #ifdef __cplusplus
11636 extern "C"
11637 #endif
11638 char dlopen ();
11639 int
11640 main ()
11641 {
11642 return dlopen ();
11643   ;
11644   return 0;
11645 }
11646 _ACEOF
11647 if ac_fn_cxx_try_link "$LINENO"; then :
11648   ac_cv_lib_dl_dlopen=yes
11649 else
11650   ac_cv_lib_dl_dlopen=no
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext \
11653     conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS
11655 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11657 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11658 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11659   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11660 else
11661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11662 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11663 if ${ac_cv_lib_svld_dlopen+:} false; then :
11664   $as_echo_n "(cached) " >&6
11665 else
11666   ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-lsvld  $LIBS"
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h.  */
11670
11671 /* Override any GCC internal prototype to avoid an error.
11672    Use char because int might match the return type of a GCC
11673    builtin and then its argument prototype would still apply.  */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char dlopen ();
11678 int
11679 main ()
11680 {
11681 return dlopen ();
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 if ac_fn_cxx_try_link "$LINENO"; then :
11687   ac_cv_lib_svld_dlopen=yes
11688 else
11689   ac_cv_lib_svld_dlopen=no
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext \
11692     conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11696 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11697 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11698   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11699 else
11700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11701 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11702 if ${ac_cv_lib_dld_dld_link+:} false; then :
11703   $as_echo_n "(cached) " >&6
11704 else
11705   ac_check_lib_save_LIBS=$LIBS
11706 LIBS="-ldld  $LIBS"
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h.  */
11709
11710 /* Override any GCC internal prototype to avoid an error.
11711    Use char because int might match the return type of a GCC
11712    builtin and then its argument prototype would still apply.  */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char dld_link ();
11717 int
11718 main ()
11719 {
11720 return dld_link ();
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 if ac_fn_cxx_try_link "$LINENO"; then :
11726   ac_cv_lib_dld_dld_link=yes
11727 else
11728   ac_cv_lib_dld_dld_link=no
11729 fi
11730 rm -f core conftest.err conftest.$ac_objext \
11731     conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_lib_save_LIBS
11733 fi
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11735 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11736 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11737   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11738 fi
11739
11740
11741 fi
11742
11743
11744 fi
11745
11746
11747 fi
11748
11749
11750 fi
11751
11752
11753 fi
11754
11755     ;;
11756   esac
11757
11758   if test "x$lt_cv_dlopen" != xno; then
11759     enable_dlopen=yes
11760   else
11761     enable_dlopen=no
11762   fi
11763
11764   case $lt_cv_dlopen in
11765   dlopen)
11766     save_CPPFLAGS="$CPPFLAGS"
11767     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11768
11769     save_LDFLAGS="$LDFLAGS"
11770     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11771
11772     save_LIBS="$LIBS"
11773     LIBS="$lt_cv_dlopen_libs $LIBS"
11774
11775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11776 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11777 if ${lt_cv_dlopen_self+:} false; then :
11778   $as_echo_n "(cached) " >&6
11779 else
11780           if test "$cross_compiling" = yes; then :
11781   lt_cv_dlopen_self=cross
11782 else
11783   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11784   lt_status=$lt_dlunknown
11785   cat > conftest.$ac_ext <<EOF
11786 #line 11786 "configure"
11787 #include "confdefs.h"
11788
11789 #if HAVE_DLFCN_H
11790 #include <dlfcn.h>
11791 #endif
11792
11793 #include <stdio.h>
11794
11795 #ifdef RTLD_GLOBAL
11796 #  define LT_DLGLOBAL           RTLD_GLOBAL
11797 #else
11798 #  ifdef DL_GLOBAL
11799 #    define LT_DLGLOBAL         DL_GLOBAL
11800 #  else
11801 #    define LT_DLGLOBAL         0
11802 #  endif
11803 #endif
11804
11805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11806    find out it does not work in some platform. */
11807 #ifndef LT_DLLAZY_OR_NOW
11808 #  ifdef RTLD_LAZY
11809 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11810 #  else
11811 #    ifdef DL_LAZY
11812 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11813 #    else
11814 #      ifdef RTLD_NOW
11815 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11816 #      else
11817 #        ifdef DL_NOW
11818 #          define LT_DLLAZY_OR_NOW      DL_NOW
11819 #        else
11820 #          define LT_DLLAZY_OR_NOW      0
11821 #        endif
11822 #      endif
11823 #    endif
11824 #  endif
11825 #endif
11826
11827 #ifdef __cplusplus
11828 extern "C" void exit (int);
11829 #endif
11830
11831 void fnord() { int i=42;}
11832 int main ()
11833 {
11834   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11835   int status = $lt_dlunknown;
11836
11837   if (self)
11838     {
11839       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11840       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11841       /* dlclose (self); */
11842     }
11843
11844     exit (status);
11845 }
11846 EOF
11847   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11848   (eval $ac_link) 2>&5
11849   ac_status=$?
11850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11851   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11852     (./conftest; exit; ) 2>/dev/null
11853     lt_status=$?
11854     case x$lt_status in
11855       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11856       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11857       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11858     esac
11859   else :
11860     # compilation failed
11861     lt_cv_dlopen_self=no
11862   fi
11863 fi
11864 rm -fr conftest*
11865
11866
11867 fi
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11869 $as_echo "$lt_cv_dlopen_self" >&6; }
11870
11871     if test "x$lt_cv_dlopen_self" = xyes; then
11872       LDFLAGS="$LDFLAGS $link_static_flag"
11873       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11874 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11875 if ${lt_cv_dlopen_self_static+:} false; then :
11876   $as_echo_n "(cached) " >&6
11877 else
11878           if test "$cross_compiling" = yes; then :
11879   lt_cv_dlopen_self_static=cross
11880 else
11881   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11882   lt_status=$lt_dlunknown
11883   cat > conftest.$ac_ext <<EOF
11884 #line 11884 "configure"
11885 #include "confdefs.h"
11886
11887 #if HAVE_DLFCN_H
11888 #include <dlfcn.h>
11889 #endif
11890
11891 #include <stdio.h>
11892
11893 #ifdef RTLD_GLOBAL
11894 #  define LT_DLGLOBAL           RTLD_GLOBAL
11895 #else
11896 #  ifdef DL_GLOBAL
11897 #    define LT_DLGLOBAL         DL_GLOBAL
11898 #  else
11899 #    define LT_DLGLOBAL         0
11900 #  endif
11901 #endif
11902
11903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11904    find out it does not work in some platform. */
11905 #ifndef LT_DLLAZY_OR_NOW
11906 #  ifdef RTLD_LAZY
11907 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11908 #  else
11909 #    ifdef DL_LAZY
11910 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11911 #    else
11912 #      ifdef RTLD_NOW
11913 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11914 #      else
11915 #        ifdef DL_NOW
11916 #          define LT_DLLAZY_OR_NOW      DL_NOW
11917 #        else
11918 #          define LT_DLLAZY_OR_NOW      0
11919 #        endif
11920 #      endif
11921 #    endif
11922 #  endif
11923 #endif
11924
11925 #ifdef __cplusplus
11926 extern "C" void exit (int);
11927 #endif
11928
11929 void fnord() { int i=42;}
11930 int main ()
11931 {
11932   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11933   int status = $lt_dlunknown;
11934
11935   if (self)
11936     {
11937       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11938       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11939       /* dlclose (self); */
11940     }
11941
11942     exit (status);
11943 }
11944 EOF
11945   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11946   (eval $ac_link) 2>&5
11947   ac_status=$?
11948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11949   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11950     (./conftest; exit; ) 2>/dev/null
11951     lt_status=$?
11952     case x$lt_status in
11953       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11954       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11955       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11956     esac
11957   else :
11958     # compilation failed
11959     lt_cv_dlopen_self_static=no
11960   fi
11961 fi
11962 rm -fr conftest*
11963
11964
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11967 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11968     fi
11969
11970     CPPFLAGS="$save_CPPFLAGS"
11971     LDFLAGS="$save_LDFLAGS"
11972     LIBS="$save_LIBS"
11973     ;;
11974   esac
11975
11976   case $lt_cv_dlopen_self in
11977   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11978   *) enable_dlopen_self=unknown ;;
11979   esac
11980
11981   case $lt_cv_dlopen_self_static in
11982   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11983   *) enable_dlopen_self_static=unknown ;;
11984   esac
11985 fi
11986
11987
11988 # The else clause should only fire when bootstrapping the
11989 # libtool distribution, otherwise you forgot to ship ltmain.sh
11990 # with your package, and you will get complaints that there are
11991 # no rules to generate ltmain.sh.
11992 if test -f "$ltmain"; then
11993   # See if we are running on zsh, and set the options which allow our commands through
11994   # without removal of \ escapes.
11995   if test -n "${ZSH_VERSION+set}" ; then
11996     setopt NO_GLOB_SUBST
11997   fi
11998   # Now quote all the things that may contain metacharacters while being
11999   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12000   # variables and quote the copies for generation of the libtool script.
12001   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12002     SED SHELL STRIP \
12003     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12004     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12005     deplibs_check_method reload_flag reload_cmds need_locks \
12006     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12007     lt_cv_sys_global_symbol_to_c_name_address \
12008     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12009     old_postinstall_cmds old_postuninstall_cmds \
12010     compiler_CXX \
12011     CC_CXX \
12012     LD_CXX \
12013     lt_prog_compiler_wl_CXX \
12014     lt_prog_compiler_pic_CXX \
12015     lt_prog_compiler_static_CXX \
12016     lt_prog_compiler_no_builtin_flag_CXX \
12017     export_dynamic_flag_spec_CXX \
12018     thread_safe_flag_spec_CXX \
12019     whole_archive_flag_spec_CXX \
12020     enable_shared_with_static_runtimes_CXX \
12021     old_archive_cmds_CXX \
12022     old_archive_from_new_cmds_CXX \
12023     predep_objects_CXX \
12024     postdep_objects_CXX \
12025     predeps_CXX \
12026     postdeps_CXX \
12027     compiler_lib_search_path_CXX \
12028     archive_cmds_CXX \
12029     archive_expsym_cmds_CXX \
12030     postinstall_cmds_CXX \
12031     postuninstall_cmds_CXX \
12032     old_archive_from_expsyms_cmds_CXX \
12033     allow_undefined_flag_CXX \
12034     no_undefined_flag_CXX \
12035     export_symbols_cmds_CXX \
12036     hardcode_libdir_flag_spec_CXX \
12037     hardcode_libdir_flag_spec_ld_CXX \
12038     hardcode_libdir_separator_CXX \
12039     hardcode_automatic_CXX \
12040     module_cmds_CXX \
12041     module_expsym_cmds_CXX \
12042     lt_cv_prog_compiler_c_o_CXX \
12043     exclude_expsyms_CXX \
12044     include_expsyms_CXX; do
12045
12046     case $var in
12047     old_archive_cmds_CXX | \
12048     old_archive_from_new_cmds_CXX | \
12049     archive_cmds_CXX | \
12050     archive_expsym_cmds_CXX | \
12051     module_cmds_CXX | \
12052     module_expsym_cmds_CXX | \
12053     old_archive_from_expsyms_cmds_CXX | \
12054     export_symbols_cmds_CXX | \
12055     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12056     postinstall_cmds | postuninstall_cmds | \
12057     old_postinstall_cmds | old_postuninstall_cmds | \
12058     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12059       # Double-quote double-evaled strings.
12060       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12061       ;;
12062     *)
12063       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12064       ;;
12065     esac
12066   done
12067
12068   case $lt_echo in
12069   *'\$0 --fallback-echo"')
12070     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12071     ;;
12072   esac
12073
12074 cfgfile="$ofile"
12075
12076   cat <<__EOF__ >> "$cfgfile"
12077 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12078
12079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12080
12081 # Shell to use when invoking shell scripts.
12082 SHELL=$lt_SHELL
12083
12084 # Whether or not to build shared libraries.
12085 build_libtool_libs=$enable_shared
12086
12087 # Whether or not to build static libraries.
12088 build_old_libs=$enable_static
12089
12090 # Whether or not to add -lc for building shared libraries.
12091 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12092
12093 # Whether or not to disallow shared libs when runtime libs are static
12094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12095
12096 # Whether or not to optimize for fast installation.
12097 fast_install=$enable_fast_install
12098
12099 # The host system.
12100 host_alias=$host_alias
12101 host=$host
12102
12103 # An echo program that does not interpret backslashes.
12104 echo=$lt_echo
12105
12106 # The archiver.
12107 AR=$lt_AR
12108 AR_FLAGS=$lt_AR_FLAGS
12109
12110 # A C compiler.
12111 LTCC=$lt_LTCC
12112
12113 # A language-specific compiler.
12114 CC=$lt_compiler_CXX
12115
12116 # Is the compiler the GNU C compiler?
12117 with_gcc=$GCC_CXX
12118
12119 # An ERE matcher.
12120 EGREP=$lt_EGREP
12121
12122 # The linker used to build libraries.
12123 LD=$lt_LD_CXX
12124
12125 # Whether we need hard or soft links.
12126 LN_S=$lt_LN_S
12127
12128 # A BSD-compatible nm program.
12129 NM=$lt_NM
12130
12131 # A symbol stripping program
12132 STRIP=$lt_STRIP
12133
12134 # Used to examine libraries when file_magic_cmd begins "file"
12135 MAGIC_CMD=$MAGIC_CMD
12136
12137 # Used on cygwin: DLL creation program.
12138 DLLTOOL="$DLLTOOL"
12139
12140 # Used on cygwin: object dumper.
12141 OBJDUMP="$OBJDUMP"
12142
12143 # Used on cygwin: assembler.
12144 AS="$AS"
12145
12146 # The name of the directory that contains temporary libtool files.
12147 objdir=$objdir
12148
12149 # How to create reloadable object files.
12150 reload_flag=$lt_reload_flag
12151 reload_cmds=$lt_reload_cmds
12152
12153 # How to pass a linker flag through the compiler.
12154 wl=$lt_lt_prog_compiler_wl_CXX
12155
12156 # Object file suffix (normally "o").
12157 objext="$ac_objext"
12158
12159 # Old archive suffix (normally "a").
12160 libext="$libext"
12161
12162 # Shared library suffix (normally ".so").
12163 shrext='$shrext'
12164
12165 # Executable file suffix (normally "").
12166 exeext="$exeext"
12167
12168 # Additional compiler flags for building library objects.
12169 pic_flag=$lt_lt_prog_compiler_pic_CXX
12170 pic_mode=$pic_mode
12171
12172 # What is the maximum length of a command?
12173 max_cmd_len=$lt_cv_sys_max_cmd_len
12174
12175 # Does compiler simultaneously support -c and -o options?
12176 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12177
12178 # Must we lock files when doing compilation ?
12179 need_locks=$lt_need_locks
12180
12181 # Do we need the lib prefix for modules?
12182 need_lib_prefix=$need_lib_prefix
12183
12184 # Do we need a version for libraries?
12185 need_version=$need_version
12186
12187 # Whether dlopen is supported.
12188 dlopen_support=$enable_dlopen
12189
12190 # Whether dlopen of programs is supported.
12191 dlopen_self=$enable_dlopen_self
12192
12193 # Whether dlopen of statically linked programs is supported.
12194 dlopen_self_static=$enable_dlopen_self_static
12195
12196 # Compiler flag to prevent dynamic linking.
12197 link_static_flag=$lt_lt_prog_compiler_static_CXX
12198
12199 # Compiler flag to turn off builtin functions.
12200 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12201
12202 # Compiler flag to allow reflexive dlopens.
12203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12204
12205 # Compiler flag to generate shared objects directly from archives.
12206 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12207
12208 # Compiler flag to generate thread-safe objects.
12209 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12210
12211 # Library versioning type.
12212 version_type=$version_type
12213
12214 # Format of library name prefix.
12215 libname_spec=$lt_libname_spec
12216
12217 # List of archive names.  First name is the real one, the rest are links.
12218 # The last name is the one that the linker finds with -lNAME.
12219 library_names_spec=$lt_library_names_spec
12220
12221 # The coded name of the library, if different from the real name.
12222 soname_spec=$lt_soname_spec
12223
12224 # Commands used to build and install an old-style archive.
12225 RANLIB=$lt_RANLIB
12226 old_archive_cmds=$lt_old_archive_cmds_CXX
12227 old_postinstall_cmds=$lt_old_postinstall_cmds
12228 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12229
12230 # Create an old-style archive from a shared archive.
12231 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12232
12233 # Create a temporary old-style archive to link instead of a shared archive.
12234 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12235
12236 # Commands used to build and install a shared archive.
12237 archive_cmds=$lt_archive_cmds_CXX
12238 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12239 postinstall_cmds=$lt_postinstall_cmds
12240 postuninstall_cmds=$lt_postuninstall_cmds
12241
12242 # Commands used to build a loadable module (assumed same as above if empty)
12243 module_cmds=$lt_module_cmds_CXX
12244 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12245
12246 # Commands to strip libraries.
12247 old_striplib=$lt_old_striplib
12248 striplib=$lt_striplib
12249
12250 # Dependencies to place before the objects being linked to create a
12251 # shared library.
12252 predep_objects=$lt_predep_objects_CXX
12253
12254 # Dependencies to place after the objects being linked to create a
12255 # shared library.
12256 postdep_objects=$lt_postdep_objects_CXX
12257
12258 # Dependencies to place before the objects being linked to create a
12259 # shared library.
12260 predeps=$lt_predeps_CXX
12261
12262 # Dependencies to place after the objects being linked to create a
12263 # shared library.
12264 postdeps=$lt_postdeps_CXX
12265
12266 # The library search path used internally by the compiler when linking
12267 # a shared library.
12268 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12269
12270 # Method to check whether dependent libraries are shared objects.
12271 deplibs_check_method=$lt_deplibs_check_method
12272
12273 # Command to use when deplibs_check_method == file_magic.
12274 file_magic_cmd=$lt_file_magic_cmd
12275
12276 # Flag that allows shared libraries with undefined symbols to be built.
12277 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12278
12279 # Flag that forces no undefined symbols.
12280 no_undefined_flag=$lt_no_undefined_flag_CXX
12281
12282 # Commands used to finish a libtool library installation in a directory.
12283 finish_cmds=$lt_finish_cmds
12284
12285 # Same as above, but a single script fragment to be evaled but not shown.
12286 finish_eval=$lt_finish_eval
12287
12288 # Take the output of nm and produce a listing of raw symbols and C names.
12289 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12290
12291 # Transform the output of nm in a proper C declaration
12292 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12293
12294 # Transform the output of nm in a C name address pair
12295 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12296
12297 # This is the shared library runtime path variable.
12298 runpath_var=$runpath_var
12299
12300 # This is the shared library path variable.
12301 shlibpath_var=$shlibpath_var
12302
12303 # Is shlibpath searched before the hard-coded library search path?
12304 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12305
12306 # How to hardcode a shared library path into an executable.
12307 hardcode_action=$hardcode_action_CXX
12308
12309 # Whether we should hardcode library paths into libraries.
12310 hardcode_into_libs=$hardcode_into_libs
12311
12312 # Flag to hardcode \$libdir into a binary during linking.
12313 # This must work even if \$libdir does not exist.
12314 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12315
12316 # If ld is used when linking, flag to hardcode \$libdir into
12317 # a binary during linking. This must work even if \$libdir does
12318 # not exist.
12319 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12320
12321 # Whether we need a single -rpath flag with a separated argument.
12322 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12323
12324 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12325 # resulting binary.
12326 hardcode_direct=$hardcode_direct_CXX
12327
12328 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12329 # resulting binary.
12330 hardcode_minus_L=$hardcode_minus_L_CXX
12331
12332 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12333 # the resulting binary.
12334 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12335
12336 # Set to yes if building a shared library automatically hardcodes DIR into the library
12337 # and all subsequent libraries and executables linked against it.
12338 hardcode_automatic=$hardcode_automatic_CXX
12339
12340 # Variables whose values should be saved in libtool wrapper scripts and
12341 # restored at relink time.
12342 variables_saved_for_relink="$variables_saved_for_relink"
12343
12344 # Whether libtool must link a program against all its dependency libraries.
12345 link_all_deplibs=$link_all_deplibs_CXX
12346
12347 # Compile-time system search path for libraries
12348 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12349
12350 # Run-time system search path for libraries
12351 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12352
12353 # Fix the shell variable \$srcfile for the compiler.
12354 fix_srcfile_path="$fix_srcfile_path_CXX"
12355
12356 # Set to yes if exported symbols are required.
12357 always_export_symbols=$always_export_symbols_CXX
12358
12359 # The commands to list exported symbols.
12360 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12361
12362 # The commands to extract the exported symbol list from a shared archive.
12363 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12364
12365 # Symbols that should not be listed in the preloaded symbols.
12366 exclude_expsyms=$lt_exclude_expsyms_CXX
12367
12368 # Symbols that must always be exported.
12369 include_expsyms=$lt_include_expsyms_CXX
12370
12371 # ### END LIBTOOL TAG CONFIG: $tagname
12372
12373 __EOF__
12374
12375
12376 else
12377   # If there is no Makefile yet, we rely on a make rule to execute
12378   # `config.status --recheck' to rerun these tests and create the
12379   # libtool script then.
12380   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12381   if test -f "$ltmain_in"; then
12382     test -f Makefile && make "$ltmain"
12383   fi
12384 fi
12385
12386
12387 ac_ext=c
12388 ac_cpp='$CPP $CPPFLAGS'
12389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12392
12393 CC=$lt_save_CC
12394 LDCXX=$LD
12395 LD=$lt_save_LD
12396 GCC=$lt_save_GCC
12397 with_gnu_ldcxx=$with_gnu_ld
12398 with_gnu_ld=$lt_save_with_gnu_ld
12399 lt_cv_path_LDCXX=$lt_cv_path_LD
12400 lt_cv_path_LD=$lt_save_path_LD
12401 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12402 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12403
12404         else
12405           tagname=""
12406         fi
12407         ;;
12408
12409       F77)
12410         if test -n "$F77" && test "X$F77" != "Xno"; then
12411
12412 ac_ext=f
12413 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12414 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12415 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12416
12417
12418 archive_cmds_need_lc_F77=no
12419 allow_undefined_flag_F77=
12420 always_export_symbols_F77=no
12421 archive_expsym_cmds_F77=
12422 export_dynamic_flag_spec_F77=
12423 hardcode_direct_F77=no
12424 hardcode_libdir_flag_spec_F77=
12425 hardcode_libdir_flag_spec_ld_F77=
12426 hardcode_libdir_separator_F77=
12427 hardcode_minus_L_F77=no
12428 hardcode_automatic_F77=no
12429 module_cmds_F77=
12430 module_expsym_cmds_F77=
12431 link_all_deplibs_F77=unknown
12432 old_archive_cmds_F77=$old_archive_cmds
12433 no_undefined_flag_F77=
12434 whole_archive_flag_spec_F77=
12435 enable_shared_with_static_runtimes_F77=no
12436
12437 # Source file extension for f77 test sources.
12438 ac_ext=f
12439
12440 # Object file extension for compiled f77 test sources.
12441 objext=o
12442 objext_F77=$objext
12443
12444 # Code to be used in simple compile tests
12445 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12446
12447 # Code to be used in simple link tests
12448 lt_simple_link_test_code="      program t\n      end\n"
12449
12450 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12451
12452 # If no C compiler was specified, use CC.
12453 LTCC=${LTCC-"$CC"}
12454
12455 # Allow CC to be a program name with arguments.
12456 compiler=$CC
12457
12458
12459 # Allow CC to be a program name with arguments.
12460 lt_save_CC="$CC"
12461 CC=${F77-"f77"}
12462 compiler=$CC
12463 compiler_F77=$CC
12464 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12465
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12467 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12469 $as_echo "$can_build_shared" >&6; }
12470
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12472 $as_echo_n "checking whether to build shared libraries... " >&6; }
12473 test "$can_build_shared" = "no" && enable_shared=no
12474
12475 # On AIX, shared libraries and static libraries use the same namespace, and
12476 # are all built from PIC.
12477 case "$host_os" in
12478 aix3*)
12479   test "$enable_shared" = yes && enable_static=no
12480   if test -n "$RANLIB"; then
12481     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12482     postinstall_cmds='$RANLIB $lib'
12483   fi
12484   ;;
12485 aix4*)
12486   test "$enable_shared" = yes && enable_static=no
12487   ;;
12488 esac
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12490 $as_echo "$enable_shared" >&6; }
12491
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12493 $as_echo_n "checking whether to build static libraries... " >&6; }
12494 # Make sure either enable_shared or enable_static is yes.
12495 test "$enable_shared" = yes || enable_static=yes
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12497 $as_echo "$enable_static" >&6; }
12498
12499 test "$ld_shlibs_F77" = no && can_build_shared=no
12500
12501 GCC_F77="$G77"
12502 LD_F77="$LD"
12503
12504 lt_prog_compiler_wl_F77=
12505 lt_prog_compiler_pic_F77=
12506 lt_prog_compiler_static_F77=
12507
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12509 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12510
12511   if test "$GCC" = yes; then
12512     lt_prog_compiler_wl_F77='-Wl,'
12513     lt_prog_compiler_static_F77='-static'
12514
12515     case $host_os in
12516       aix*)
12517       # All AIX code is PIC.
12518       if test "$host_cpu" = ia64; then
12519         # AIX 5 now supports IA64 processor
12520         lt_prog_compiler_static_F77='-Bstatic'
12521       fi
12522       ;;
12523
12524     amigaos*)
12525       # FIXME: we need at least 68020 code to build shared libraries, but
12526       # adding the `-m68020' flag to GCC prevents building anything better,
12527       # like `-m68040'.
12528       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12529       ;;
12530
12531     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12532       # PIC is the default for these OSes.
12533       ;;
12534
12535     mingw* | pw32* | os2*)
12536       # This hack is so that the source file can tell whether it is being
12537       # built for inclusion in a dll (and should export symbols for example).
12538       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12539       ;;
12540
12541     darwin* | rhapsody*)
12542       # PIC is the default on this platform
12543       # Common symbols not allowed in MH_DYLIB files
12544       lt_prog_compiler_pic_F77='-fno-common'
12545       ;;
12546
12547     msdosdjgpp*)
12548       # Just because we use GCC doesn't mean we suddenly get shared libraries
12549       # on systems that don't support them.
12550       lt_prog_compiler_can_build_shared_F77=no
12551       enable_shared=no
12552       ;;
12553
12554     sysv4*MP*)
12555       if test -d /usr/nec; then
12556         lt_prog_compiler_pic_F77=-Kconform_pic
12557       fi
12558       ;;
12559
12560     hpux*)
12561       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12562       # not for PA HP-UX.
12563       case "$host_cpu" in
12564       hppa*64*|ia64*)
12565         # +Z the default
12566         ;;
12567       *)
12568         lt_prog_compiler_pic_F77='-fPIC'
12569         ;;
12570       esac
12571       ;;
12572
12573     *)
12574       lt_prog_compiler_pic_F77='-fPIC'
12575       ;;
12576     esac
12577   else
12578     # PORTME Check for flag to pass linker flags through the system compiler.
12579     case $host_os in
12580     aix*)
12581       lt_prog_compiler_wl_F77='-Wl,'
12582       if test "$host_cpu" = ia64; then
12583         # AIX 5 now supports IA64 processor
12584         lt_prog_compiler_static_F77='-Bstatic'
12585       else
12586         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12587       fi
12588       ;;
12589
12590     mingw* | pw32* | os2*)
12591       # This hack is so that the source file can tell whether it is being
12592       # built for inclusion in a dll (and should export symbols for example).
12593       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12594       ;;
12595
12596     hpux9* | hpux10* | hpux11*)
12597       lt_prog_compiler_wl_F77='-Wl,'
12598       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12599       # not for PA HP-UX.
12600       case "$host_cpu" in
12601       hppa*64*|ia64*)
12602         # +Z the default
12603         ;;
12604       *)
12605         lt_prog_compiler_pic_F77='+Z'
12606         ;;
12607       esac
12608       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12609       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12610       ;;
12611
12612     irix5* | irix6* | nonstopux*)
12613       lt_prog_compiler_wl_F77='-Wl,'
12614       # PIC (with -KPIC) is the default.
12615       lt_prog_compiler_static_F77='-non_shared'
12616       ;;
12617
12618     newsos6)
12619       lt_prog_compiler_pic_F77='-KPIC'
12620       lt_prog_compiler_static_F77='-Bstatic'
12621       ;;
12622
12623     linux*)
12624       case $CC in
12625       icc* | ecc*)
12626         lt_prog_compiler_wl_F77='-Wl,'
12627         lt_prog_compiler_pic_F77='-KPIC'
12628         lt_prog_compiler_static_F77='-static'
12629         ;;
12630       ccc*)
12631         lt_prog_compiler_wl_F77='-Wl,'
12632         # All Alpha code is PIC.
12633         lt_prog_compiler_static_F77='-non_shared'
12634         ;;
12635       esac
12636       ;;
12637
12638     osf3* | osf4* | osf5*)
12639       lt_prog_compiler_wl_F77='-Wl,'
12640       # All OSF/1 code is PIC.
12641       lt_prog_compiler_static_F77='-non_shared'
12642       ;;
12643
12644     sco3.2v5*)
12645       lt_prog_compiler_pic_F77='-Kpic'
12646       lt_prog_compiler_static_F77='-dn'
12647       ;;
12648
12649     solaris*)
12650       lt_prog_compiler_wl_F77='-Wl,'
12651       lt_prog_compiler_pic_F77='-KPIC'
12652       lt_prog_compiler_static_F77='-Bstatic'
12653       ;;
12654
12655     sunos4*)
12656       lt_prog_compiler_wl_F77='-Qoption ld '
12657       lt_prog_compiler_pic_F77='-PIC'
12658       lt_prog_compiler_static_F77='-Bstatic'
12659       ;;
12660
12661     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12662       lt_prog_compiler_wl_F77='-Wl,'
12663       lt_prog_compiler_pic_F77='-KPIC'
12664       lt_prog_compiler_static_F77='-Bstatic'
12665       ;;
12666
12667     sysv4*MP*)
12668       if test -d /usr/nec ;then
12669         lt_prog_compiler_pic_F77='-Kconform_pic'
12670         lt_prog_compiler_static_F77='-Bstatic'
12671       fi
12672       ;;
12673
12674     uts4*)
12675       lt_prog_compiler_pic_F77='-pic'
12676       lt_prog_compiler_static_F77='-Bstatic'
12677       ;;
12678
12679     *)
12680       lt_prog_compiler_can_build_shared_F77=no
12681       ;;
12682     esac
12683   fi
12684
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
12686 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
12687
12688 #
12689 # Check to make sure the PIC flag actually works.
12690 #
12691 if test -n "$lt_prog_compiler_pic_F77"; then
12692
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12694 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
12695 if ${lt_prog_compiler_pic_works_F77+:} false; then :
12696   $as_echo_n "(cached) " >&6
12697 else
12698   lt_prog_compiler_pic_works_F77=no
12699   ac_outfile=conftest.$ac_objext
12700    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12701    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12702    # Insert the option either (1) after the last *FLAGS variable, or
12703    # (2) before a word containing "conftest.", or (3) at the end.
12704    # Note that $ac_compile itself does not contain backslashes and begins
12705    # with a dollar sign (not a hyphen), so the echo should work correctly.
12706    # The option is referenced via a variable to avoid confusing sed.
12707    lt_compile=`echo "$ac_compile" | $SED \
12708    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12710    -e 's:$: $lt_compiler_flag:'`
12711    (eval echo "\"\$as_me:12711: $lt_compile\"" >&5)
12712    (eval "$lt_compile" 2>conftest.err)
12713    ac_status=$?
12714    cat conftest.err >&5
12715    echo "$as_me:12715: \$? = $ac_status" >&5
12716    if (exit $ac_status) && test -s "$ac_outfile"; then
12717      # The compiler can only warn and ignore the option if not recognized
12718      # So say no if there are warnings
12719      if test ! -s conftest.err; then
12720        lt_prog_compiler_pic_works_F77=yes
12721      fi
12722    fi
12723    $rm conftest*
12724
12725 fi
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
12727 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
12728
12729 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12730     case $lt_prog_compiler_pic_F77 in
12731      "" | " "*) ;;
12732      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12733      esac
12734 else
12735     lt_prog_compiler_pic_F77=
12736      lt_prog_compiler_can_build_shared_F77=no
12737 fi
12738
12739 fi
12740 case "$host_os" in
12741   # For platforms which do not support PIC, -DPIC is meaningless:
12742   *djgpp*)
12743     lt_prog_compiler_pic_F77=
12744     ;;
12745   *)
12746     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12747     ;;
12748 esac
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12751 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12752 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
12753   $as_echo_n "(cached) " >&6
12754 else
12755   lt_cv_prog_compiler_c_o_F77=no
12756    $rm -r conftest 2>/dev/null
12757    mkdir conftest
12758    cd conftest
12759    mkdir out
12760    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12761
12762    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12763    # that will create temporary files in the current directory regardless of
12764    # the output directory.  Thus, making CWD read-only will cause this test
12765    # to fail, enabling locking or at least warning the user not to do parallel
12766    # builds.
12767    chmod -w .
12768
12769    lt_compiler_flag="-o out/conftest2.$ac_objext"
12770    # Insert the option either (1) after the last *FLAGS variable, or
12771    # (2) before a word containing "conftest.", or (3) at the end.
12772    # Note that $ac_compile itself does not contain backslashes and begins
12773    # with a dollar sign (not a hyphen), so the echo should work correctly.
12774    lt_compile=`echo "$ac_compile" | $SED \
12775    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12776    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12777    -e 's:$: $lt_compiler_flag:'`
12778    (eval echo "\"\$as_me:12778: $lt_compile\"" >&5)
12779    (eval "$lt_compile" 2>out/conftest.err)
12780    ac_status=$?
12781    cat out/conftest.err >&5
12782    echo "$as_me:12782: \$? = $ac_status" >&5
12783    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12784    then
12785      # The compiler can only warn and ignore the option if not recognized
12786      # So say no if there are warnings
12787      if test ! -s out/conftest.err; then
12788        lt_cv_prog_compiler_c_o_F77=yes
12789      fi
12790    fi
12791    chmod u+w .
12792    $rm conftest*
12793    # SGI C++ compiler will create directory out/ii_files/ for
12794    # template instantiation
12795    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12796    $rm out/* && rmdir out
12797    cd ..
12798    rmdir conftest
12799    $rm conftest*
12800
12801 fi
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12803 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12804
12805
12806 hard_links="nottested"
12807 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12808   # do not overwrite the value of need_locks provided by the user
12809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12810 $as_echo_n "checking if we can lock with hard links... " >&6; }
12811   hard_links=yes
12812   $rm conftest*
12813   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12814   touch conftest.a
12815   ln conftest.a conftest.b 2>&5 || hard_links=no
12816   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12818 $as_echo "$hard_links" >&6; }
12819   if test "$hard_links" = no; then
12820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12821 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12822     need_locks=warn
12823   fi
12824 else
12825   need_locks=no
12826 fi
12827
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12829 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12830
12831   runpath_var=
12832   allow_undefined_flag_F77=
12833   enable_shared_with_static_runtimes_F77=no
12834   archive_cmds_F77=
12835   archive_expsym_cmds_F77=
12836   old_archive_From_new_cmds_F77=
12837   old_archive_from_expsyms_cmds_F77=
12838   export_dynamic_flag_spec_F77=
12839   whole_archive_flag_spec_F77=
12840   thread_safe_flag_spec_F77=
12841   hardcode_libdir_flag_spec_F77=
12842   hardcode_libdir_flag_spec_ld_F77=
12843   hardcode_libdir_separator_F77=
12844   hardcode_direct_F77=no
12845   hardcode_minus_L_F77=no
12846   hardcode_shlibpath_var_F77=unsupported
12847   link_all_deplibs_F77=unknown
12848   hardcode_automatic_F77=no
12849   module_cmds_F77=
12850   module_expsym_cmds_F77=
12851   always_export_symbols_F77=no
12852   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12853   # include_expsyms should be a list of space-separated symbols to be *always*
12854   # included in the symbol list
12855   include_expsyms_F77=
12856   # exclude_expsyms can be an extended regexp of symbols to exclude
12857   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12858   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12859   # as well as any symbol that contains `d'.
12860   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12861   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12862   # platforms (ab)use it in PIC code, but their linkers get confused if
12863   # the symbol is explicitly referenced.  Since portable code cannot
12864   # rely on this symbol name, it's probably fine to never include it in
12865   # preloaded symbol tables.
12866   extract_expsyms_cmds=
12867
12868   case $host_os in
12869   cygwin* | mingw* | pw32*)
12870     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12871     # When not using gcc, we currently assume that we are using
12872     # Microsoft Visual C++.
12873     if test "$GCC" != yes; then
12874       with_gnu_ld=no
12875     fi
12876     ;;
12877   openbsd*)
12878     with_gnu_ld=no
12879     ;;
12880   esac
12881
12882   ld_shlibs_F77=yes
12883   if test "$with_gnu_ld" = yes; then
12884     # If archive_cmds runs LD, not CC, wlarc should be empty
12885     wlarc='${wl}'
12886
12887     # See if GNU ld supports shared libraries.
12888     case $host_os in
12889     aix3* | aix4* | aix5*)
12890       # On AIX/PPC, the GNU linker is very broken
12891       if test "$host_cpu" != ia64; then
12892         ld_shlibs_F77=no
12893         cat <<EOF 1>&2
12894
12895 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12896 *** to be unable to reliably create shared libraries on AIX.
12897 *** Therefore, libtool is disabling shared libraries support.  If you
12898 *** really care for shared libraries, you may want to modify your PATH
12899 *** so that a non-GNU linker is found, and then restart.
12900
12901 EOF
12902       fi
12903       ;;
12904
12905     amigaos*)
12906       archive_cmds_F77='$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)'
12907       hardcode_libdir_flag_spec_F77='-L$libdir'
12908       hardcode_minus_L_F77=yes
12909
12910       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12911       # that the semantics of dynamic libraries on AmigaOS, at least up
12912       # to version 4, is to share data among multiple programs linked
12913       # with the same dynamic library.  Since this doesn't match the
12914       # behavior of shared libraries on other platforms, we can't use
12915       # them.
12916       ld_shlibs_F77=no
12917       ;;
12918
12919     beos*)
12920       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12921         allow_undefined_flag_F77=unsupported
12922         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12923         # support --undefined.  This deserves some investigation.  FIXME
12924         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12925       else
12926         ld_shlibs_F77=no
12927       fi
12928       ;;
12929
12930     cygwin* | mingw* | pw32*)
12931       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12932       # as there is no search path for DLLs.
12933       hardcode_libdir_flag_spec_F77='-L$libdir'
12934       allow_undefined_flag_F77=unsupported
12935       always_export_symbols_F77=no
12936       enable_shared_with_static_runtimes_F77=yes
12937       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12938
12939       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12940         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12941         # If the export-symbols file already is a .def file (1st line
12942         # is EXPORTS), use it as is; otherwise, prepend...
12943         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12944           cp $export_symbols $output_objdir/$soname.def;
12945         else
12946           echo EXPORTS > $output_objdir/$soname.def;
12947           cat $export_symbols >> $output_objdir/$soname.def;
12948         fi~
12949         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12950       else
12951         ld_shlibs=no
12952       fi
12953       ;;
12954
12955     netbsd*)
12956       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12957         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12958         wlarc=
12959       else
12960         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12961         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12962       fi
12963       ;;
12964
12965     solaris* | sysv5*)
12966       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12967         ld_shlibs_F77=no
12968         cat <<EOF 1>&2
12969
12970 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12971 *** create shared libraries on Solaris systems.  Therefore, libtool
12972 *** is disabling shared libraries support.  We urge you to upgrade GNU
12973 *** binutils to release 2.9.1 or newer.  Another option is to modify
12974 *** your PATH or compiler configuration so that the native linker is
12975 *** used, and then restart.
12976
12977 EOF
12978       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12979         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12980         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12981       else
12982         ld_shlibs_F77=no
12983       fi
12984       ;;
12985
12986     sunos4*)
12987       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12988       wlarc=
12989       hardcode_direct_F77=yes
12990       hardcode_shlibpath_var_F77=no
12991       ;;
12992
12993   linux*)
12994     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12995         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12996         archive_cmds_F77="$tmp_archive_cmds"
12997       supports_anon_versioning=no
12998       case `$LD -v 2>/dev/null` in
12999         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13000         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13001         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13002         *\ 2.11.*) ;; # other 2.11 versions
13003         *) supports_anon_versioning=yes ;;
13004       esac
13005       if test $supports_anon_versioning = yes; then
13006         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13008 $echo "local: *; };" >> $output_objdir/$libname.ver~
13009         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13010       else
13011         archive_expsym_cmds_F77="$tmp_archive_cmds"
13012       fi
13013     else
13014       ld_shlibs_F77=no
13015     fi
13016     ;;
13017
13018     *)
13019       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13020         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13022       else
13023         ld_shlibs_F77=no
13024       fi
13025       ;;
13026     esac
13027
13028     if test "$ld_shlibs_F77" = yes; then
13029       runpath_var=LD_RUN_PATH
13030       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13031       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13032       # ancient GNU ld didn't support --whole-archive et. al.
13033       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13034         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13035       else
13036         whole_archive_flag_spec_F77=
13037       fi
13038     fi
13039   else
13040     # PORTME fill in a description of your system's linker (not GNU ld)
13041     case $host_os in
13042     aix3*)
13043       allow_undefined_flag_F77=unsupported
13044       always_export_symbols_F77=yes
13045       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13046       # Note: this linker hardcodes the directories in LIBPATH if there
13047       # are no directories specified by -L.
13048       hardcode_minus_L_F77=yes
13049       if test "$GCC" = yes && test -z "$link_static_flag"; then
13050         # Neither direct hardcoding nor static linking is supported with a
13051         # broken collect2.
13052         hardcode_direct_F77=unsupported
13053       fi
13054       ;;
13055
13056     aix4* | aix5*)
13057       if test "$host_cpu" = ia64; then
13058         # On IA64, the linker does run time linking by default, so we don't
13059         # have to do anything special.
13060         aix_use_runtimelinking=no
13061         exp_sym_flag='-Bexport'
13062         no_entry_flag=""
13063       else
13064         # If we're using GNU nm, then we don't want the "-C" option.
13065         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13066         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13067           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13068         else
13069           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13070         fi
13071         aix_use_runtimelinking=no
13072
13073         # Test if we are trying to use run time linking or normal
13074         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13075         # need to do runtime linking.
13076         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13077           for ld_flag in $LDFLAGS; do
13078           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13079             aix_use_runtimelinking=yes
13080             break
13081           fi
13082           done
13083         esac
13084
13085         exp_sym_flag='-bexport'
13086         no_entry_flag='-bnoentry'
13087       fi
13088
13089       # When large executables or shared objects are built, AIX ld can
13090       # have problems creating the table of contents.  If linking a library
13091       # or program results in "error TOC overflow" add -mminimal-toc to
13092       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13093       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13094
13095       archive_cmds_F77=''
13096       hardcode_direct_F77=yes
13097       hardcode_libdir_separator_F77=':'
13098       link_all_deplibs_F77=yes
13099
13100       if test "$GCC" = yes; then
13101         case $host_os in aix4.012|aix4.012.*)
13102         # We only want to do this on AIX 4.2 and lower, the check
13103         # below for broken collect2 doesn't work under 4.3+
13104           collect2name=`${CC} -print-prog-name=collect2`
13105           if test -f "$collect2name" && \
13106            strings "$collect2name" | grep resolve_lib_name >/dev/null
13107           then
13108           # We have reworked collect2
13109           hardcode_direct_F77=yes
13110           else
13111           # We have old collect2
13112           hardcode_direct_F77=unsupported
13113           # It fails to find uninstalled libraries when the uninstalled
13114           # path is not listed in the libpath.  Setting hardcode_minus_L
13115           # to unsupported forces relinking
13116           hardcode_minus_L_F77=yes
13117           hardcode_libdir_flag_spec_F77='-L$libdir'
13118           hardcode_libdir_separator_F77=
13119           fi
13120         esac
13121         shared_flag='-shared'
13122       else
13123         # not using gcc
13124         if test "$host_cpu" = ia64; then
13125         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13126         # chokes on -Wl,-G. The following line is correct:
13127           shared_flag='-G'
13128         else
13129         if test "$aix_use_runtimelinking" = yes; then
13130             shared_flag='${wl}-G'
13131           else
13132             shared_flag='${wl}-bM:SRE'
13133         fi
13134         fi
13135       fi
13136
13137       # It seems that -bexpall does not export symbols beginning with
13138       # underscore (_), so it is better to generate a list of symbols to export.
13139       always_export_symbols_F77=yes
13140       if test "$aix_use_runtimelinking" = yes; then
13141         # Warning - without using the other runtime loading flags (-brtl),
13142         # -berok will link without error, but may produce a broken library.
13143         allow_undefined_flag_F77='-berok'
13144        # Determine the default libpath from the value encoded in an empty executable.
13145        cat > conftest.$ac_ext <<_ACEOF
13146       program main
13147
13148       end
13149 _ACEOF
13150 if ac_fn_f77_try_link "$LINENO"; then :
13151
13152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13153 }'`
13154 # Check for a 64-bit object if we didn't find anything.
13155 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13156 }'`; fi
13157 fi
13158 rm -f core conftest.err conftest.$ac_objext \
13159     conftest$ac_exeext conftest.$ac_ext
13160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13161
13162        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13163         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13164        else
13165         if test "$host_cpu" = ia64; then
13166           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13167           allow_undefined_flag_F77="-z nodefs"
13168           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13169         else
13170          # Determine the default libpath from the value encoded in an empty executable.
13171          cat > conftest.$ac_ext <<_ACEOF
13172       program main
13173
13174       end
13175 _ACEOF
13176 if ac_fn_f77_try_link "$LINENO"; then :
13177
13178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13179 }'`
13180 # Check for a 64-bit object if we didn't find anything.
13181 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13182 }'`; fi
13183 fi
13184 rm -f core conftest.err conftest.$ac_objext \
13185     conftest$ac_exeext conftest.$ac_ext
13186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13187
13188          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13189           # Warning - without using the other run time loading flags,
13190           # -berok will link without error, but may produce a broken library.
13191           no_undefined_flag_F77=' ${wl}-bernotok'
13192           allow_undefined_flag_F77=' ${wl}-berok'
13193           # -bexpall does not export symbols beginning with underscore (_)
13194           always_export_symbols_F77=yes
13195           # Exported symbols can be pulled into shared objects from archives
13196           whole_archive_flag_spec_F77=' '
13197           archive_cmds_need_lc_F77=yes
13198           # This is similar to how AIX traditionally builds it's shared libraries.
13199           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13200         fi
13201       fi
13202       ;;
13203
13204     amigaos*)
13205       archive_cmds_F77='$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)'
13206       hardcode_libdir_flag_spec_F77='-L$libdir'
13207       hardcode_minus_L_F77=yes
13208       # see comment about different semantics on the GNU ld section
13209       ld_shlibs_F77=no
13210       ;;
13211
13212     bsdi4*)
13213       export_dynamic_flag_spec_F77=-rdynamic
13214       ;;
13215
13216     cygwin* | mingw* | pw32*)
13217       # When not using gcc, we currently assume that we are using
13218       # Microsoft Visual C++.
13219       # hardcode_libdir_flag_spec is actually meaningless, as there is
13220       # no search path for DLLs.
13221       hardcode_libdir_flag_spec_F77=' '
13222       allow_undefined_flag_F77=unsupported
13223       # Tell ltmain to make .lib files, not .a files.
13224       libext=lib
13225       # Tell ltmain to make .dll files, not .so files.
13226       shrext=".dll"
13227       # FIXME: Setting linknames here is a bad hack.
13228       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13229       # The linker will automatically build a .lib file if we build a DLL.
13230       old_archive_From_new_cmds_F77='true'
13231       # FIXME: Should let the user specify the lib program.
13232       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13233       fix_srcfile_path='`cygpath -w "$srcfile"`'
13234       enable_shared_with_static_runtimes_F77=yes
13235       ;;
13236
13237     darwin* | rhapsody*)
13238     if test "$GXX" = yes ; then
13239       archive_cmds_need_lc_F77=no
13240       case "$host_os" in
13241       rhapsody* | darwin1.[012])
13242         allow_undefined_flag_F77='-undefined suppress'
13243         ;;
13244       *) # Darwin 1.3 on
13245       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13246         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13247       else
13248         case ${MACOSX_DEPLOYMENT_TARGET} in
13249           10.[012])
13250             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13251             ;;
13252           10.*)
13253             allow_undefined_flag_F77='-undefined dynamic_lookup'
13254             ;;
13255         esac
13256       fi
13257         ;;
13258       esac
13259         lt_int_apple_cc_single_mod=no
13260         output_verbose_link_cmd='echo'
13261         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13262           lt_int_apple_cc_single_mod=yes
13263         fi
13264         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13265           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13266         else
13267         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13268       fi
13269       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13270       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13271         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13272           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13273         else
13274           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13275         fi
13276           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13277       hardcode_direct_F77=no
13278       hardcode_automatic_F77=yes
13279       hardcode_shlibpath_var_F77=unsupported
13280       whole_archive_flag_spec_F77='-all_load $convenience'
13281       link_all_deplibs_F77=yes
13282     else
13283       ld_shlibs_F77=no
13284     fi
13285       ;;
13286
13287     dgux*)
13288       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13289       hardcode_libdir_flag_spec_F77='-L$libdir'
13290       hardcode_shlibpath_var_F77=no
13291       ;;
13292
13293     freebsd1*)
13294       ld_shlibs_F77=no
13295       ;;
13296
13297     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13298     # support.  Future versions do this automatically, but an explicit c++rt0.o
13299     # does not break anything, and helps significantly (at the cost of a little
13300     # extra space).
13301     freebsd2.2*)
13302       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13303       hardcode_libdir_flag_spec_F77='-R$libdir'
13304       hardcode_direct_F77=yes
13305       hardcode_shlibpath_var_F77=no
13306       ;;
13307
13308     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13309     freebsd2*)
13310       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13311       hardcode_direct_F77=yes
13312       hardcode_minus_L_F77=yes
13313       hardcode_shlibpath_var_F77=no
13314       ;;
13315
13316     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13317     freebsd* | kfreebsd*-gnu)
13318       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13319       hardcode_libdir_flag_spec_F77='-R$libdir'
13320       hardcode_direct_F77=yes
13321       hardcode_shlibpath_var_F77=no
13322       ;;
13323
13324     hpux9*)
13325       if test "$GCC" = yes; then
13326         archive_cmds_F77='$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'
13327       else
13328         archive_cmds_F77='$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'
13329       fi
13330       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13331       hardcode_libdir_separator_F77=:
13332       hardcode_direct_F77=yes
13333
13334       # hardcode_minus_L: Not really in the search PATH,
13335       # but as the default location of the library.
13336       hardcode_minus_L_F77=yes
13337       export_dynamic_flag_spec_F77='${wl}-E'
13338       ;;
13339
13340     hpux10* | hpux11*)
13341       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13342         case "$host_cpu" in
13343         hppa*64*|ia64*)
13344           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13345           ;;
13346         *)
13347           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13348           ;;
13349         esac
13350       else
13351         case "$host_cpu" in
13352         hppa*64*|ia64*)
13353           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13354           ;;
13355         *)
13356           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13357           ;;
13358         esac
13359       fi
13360       if test "$with_gnu_ld" = no; then
13361         case "$host_cpu" in
13362         hppa*64*)
13363           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13364           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13365           hardcode_libdir_separator_F77=:
13366           hardcode_direct_F77=no
13367           hardcode_shlibpath_var_F77=no
13368           ;;
13369         ia64*)
13370           hardcode_libdir_flag_spec_F77='-L$libdir'
13371           hardcode_direct_F77=no
13372           hardcode_shlibpath_var_F77=no
13373
13374           # hardcode_minus_L: Not really in the search PATH,
13375           # but as the default location of the library.
13376           hardcode_minus_L_F77=yes
13377           ;;
13378         *)
13379           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13380           hardcode_libdir_separator_F77=:
13381           hardcode_direct_F77=yes
13382           export_dynamic_flag_spec_F77='${wl}-E'
13383
13384           # hardcode_minus_L: Not really in the search PATH,
13385           # but as the default location of the library.
13386           hardcode_minus_L_F77=yes
13387           ;;
13388         esac
13389       fi
13390       ;;
13391
13392     irix5* | irix6* | nonstopux*)
13393       if test "$GCC" = yes; then
13394         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13395       else
13396         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13397         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13398       fi
13399       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13400       hardcode_libdir_separator_F77=:
13401       link_all_deplibs_F77=yes
13402       ;;
13403
13404     netbsd*)
13405       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13406         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13407       else
13408         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13409       fi
13410       hardcode_libdir_flag_spec_F77='-R$libdir'
13411       hardcode_direct_F77=yes
13412       hardcode_shlibpath_var_F77=no
13413       ;;
13414
13415     newsos6)
13416       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13417       hardcode_direct_F77=yes
13418       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13419       hardcode_libdir_separator_F77=:
13420       hardcode_shlibpath_var_F77=no
13421       ;;
13422
13423     openbsd*)
13424       hardcode_direct_F77=yes
13425       hardcode_shlibpath_var_F77=no
13426       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13427         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13428         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13429         export_dynamic_flag_spec_F77='${wl}-E'
13430       else
13431        case $host_os in
13432          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13433            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13434            hardcode_libdir_flag_spec_F77='-R$libdir'
13435            ;;
13436          *)
13437            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13438            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13439            ;;
13440        esac
13441       fi
13442       ;;
13443
13444     os2*)
13445       hardcode_libdir_flag_spec_F77='-L$libdir'
13446       hardcode_minus_L_F77=yes
13447       allow_undefined_flag_F77=unsupported
13448       archive_cmds_F77='$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'
13449       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13450       ;;
13451
13452     osf3*)
13453       if test "$GCC" = yes; then
13454         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13455         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13456       else
13457         allow_undefined_flag_F77=' -expect_unresolved \*'
13458         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13459       fi
13460       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13461       hardcode_libdir_separator_F77=:
13462       ;;
13463
13464     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13465       if test "$GCC" = yes; then
13466         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13467         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13468         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13469       else
13470         allow_undefined_flag_F77=' -expect_unresolved \*'
13471         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13472         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13473         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13474
13475         # Both c and cxx compiler support -rpath directly
13476         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13477       fi
13478       hardcode_libdir_separator_F77=:
13479       ;;
13480
13481     sco3.2v5*)
13482       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13483       hardcode_shlibpath_var_F77=no
13484       export_dynamic_flag_spec_F77='${wl}-Bexport'
13485       runpath_var=LD_RUN_PATH
13486       hardcode_runpath_var=yes
13487       ;;
13488
13489     solaris*)
13490       no_undefined_flag_F77=' -z text'
13491       if test "$GCC" = yes; then
13492         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13493         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13494           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13495       else
13496         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13498         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13499       fi
13500       hardcode_libdir_flag_spec_F77='-R$libdir'
13501       hardcode_shlibpath_var_F77=no
13502       case $host_os in
13503       solaris2.[0-5] | solaris2.[0-5].*) ;;
13504       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13505         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13506       esac
13507       link_all_deplibs_F77=yes
13508       ;;
13509
13510     sunos4*)
13511       if test "x$host_vendor" = xsequent; then
13512         # Use $CC to link under sequent, because it throws in some extra .o
13513         # files that make .init and .fini sections work.
13514         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13515       else
13516         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13517       fi
13518       hardcode_libdir_flag_spec_F77='-L$libdir'
13519       hardcode_direct_F77=yes
13520       hardcode_minus_L_F77=yes
13521       hardcode_shlibpath_var_F77=no
13522       ;;
13523
13524     sysv4)
13525       case $host_vendor in
13526         sni)
13527           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13528           hardcode_direct_F77=yes # is this really true???
13529         ;;
13530         siemens)
13531           ## LD is ld it makes a PLAMLIB
13532           ## CC just makes a GrossModule.
13533           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13534           reload_cmds_F77='$CC -r -o $output$reload_objs'
13535           hardcode_direct_F77=no
13536         ;;
13537         motorola)
13538           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13539           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13540         ;;
13541       esac
13542       runpath_var='LD_RUN_PATH'
13543       hardcode_shlibpath_var_F77=no
13544       ;;
13545
13546     sysv4.3*)
13547       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548       hardcode_shlibpath_var_F77=no
13549       export_dynamic_flag_spec_F77='-Bexport'
13550       ;;
13551
13552     sysv4*MP*)
13553       if test -d /usr/nec; then
13554         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13555         hardcode_shlibpath_var_F77=no
13556         runpath_var=LD_RUN_PATH
13557         hardcode_runpath_var=yes
13558         ld_shlibs_F77=yes
13559       fi
13560       ;;
13561
13562     sysv4.2uw2*)
13563       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13564       hardcode_direct_F77=yes
13565       hardcode_minus_L_F77=no
13566       hardcode_shlibpath_var_F77=no
13567       hardcode_runpath_var=yes
13568       runpath_var=LD_RUN_PATH
13569       ;;
13570
13571    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13572       no_undefined_flag_F77='${wl}-z ${wl}text'
13573       if test "$GCC" = yes; then
13574         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13575       else
13576         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13577       fi
13578       runpath_var='LD_RUN_PATH'
13579       hardcode_shlibpath_var_F77=no
13580       ;;
13581
13582     sysv5*)
13583       no_undefined_flag_F77=' -z text'
13584       # $CC -shared without GNU ld will not create a library from C++
13585       # object files and a static libstdc++, better avoid it by now
13586       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13587       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13588                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13589       hardcode_libdir_flag_spec_F77=
13590       hardcode_shlibpath_var_F77=no
13591       runpath_var='LD_RUN_PATH'
13592       ;;
13593
13594     uts4*)
13595       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13596       hardcode_libdir_flag_spec_F77='-L$libdir'
13597       hardcode_shlibpath_var_F77=no
13598       ;;
13599
13600     *)
13601       ld_shlibs_F77=no
13602       ;;
13603     esac
13604   fi
13605
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
13607 $as_echo "$ld_shlibs_F77" >&6; }
13608 test "$ld_shlibs_F77" = no && can_build_shared=no
13609
13610 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13611 if test "$GCC" = yes; then
13612   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13613 fi
13614
13615 #
13616 # Do we need to explicitly link libc?
13617 #
13618 case "x$archive_cmds_need_lc_F77" in
13619 x|xyes)
13620   # Assume -lc should be added
13621   archive_cmds_need_lc_F77=yes
13622
13623   if test "$enable_shared" = yes && test "$GCC" = yes; then
13624     case $archive_cmds_F77 in
13625     *'~'*)
13626       # FIXME: we may have to deal with multi-command sequences.
13627       ;;
13628     '$CC '*)
13629       # Test whether the compiler implicitly links with -lc since on some
13630       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13631       # to ld, don't add -lc before -lgcc.
13632       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13633 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13634       $rm conftest*
13635       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13636
13637       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13638   (eval $ac_compile) 2>&5
13639   ac_status=$?
13640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13641   test $ac_status = 0; } 2>conftest.err; then
13642         soname=conftest
13643         lib=conftest
13644         libobjs=conftest.$ac_objext
13645         deplibs=
13646         wl=$lt_prog_compiler_wl_F77
13647         compiler_flags=-v
13648         linker_flags=-v
13649         verstring=
13650         output_objdir=.
13651         libname=conftest
13652         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13653         allow_undefined_flag_F77=
13654         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13655   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13656   ac_status=$?
13657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13658   test $ac_status = 0; }
13659         then
13660           archive_cmds_need_lc_F77=no
13661         else
13662           archive_cmds_need_lc_F77=yes
13663         fi
13664         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13665       else
13666         cat conftest.err 1>&5
13667       fi
13668       $rm conftest*
13669       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
13670 $as_echo "$archive_cmds_need_lc_F77" >&6; }
13671       ;;
13672     esac
13673   fi
13674   ;;
13675 esac
13676
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13679 library_names_spec=
13680 libname_spec='lib$name'
13681 soname_spec=
13682 shrext=".so"
13683 postinstall_cmds=
13684 postuninstall_cmds=
13685 finish_cmds=
13686 finish_eval=
13687 shlibpath_var=
13688 shlibpath_overrides_runpath=unknown
13689 version_type=none
13690 dynamic_linker="$host_os ld.so"
13691 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13692 if test "$GCC" = yes; then
13693   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13694   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13695     # if the path contains ";" then we assume it to be the separator
13696     # otherwise default to the standard path separator (i.e. ":") - it is
13697     # assumed that no part of a normal pathname contains ";" but that should
13698     # okay in the real world where ";" in dirpaths is itself problematic.
13699     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13700   else
13701     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13702   fi
13703 else
13704   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13705 fi
13706 need_lib_prefix=unknown
13707 hardcode_into_libs=no
13708
13709 # when you set need_version to no, make sure it does not cause -set_version
13710 # flags to be left without arguments
13711 need_version=unknown
13712
13713 case $host_os in
13714 aix3*)
13715   version_type=linux
13716   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13717   shlibpath_var=LIBPATH
13718
13719   # AIX 3 has no versioning support, so we append a major version to the name.
13720   soname_spec='${libname}${release}${shared_ext}$major'
13721   ;;
13722
13723 aix4* | aix5*)
13724   version_type=linux
13725   need_lib_prefix=no
13726   need_version=no
13727   hardcode_into_libs=yes
13728   if test "$host_cpu" = ia64; then
13729     # AIX 5 supports IA64
13730     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13731     shlibpath_var=LD_LIBRARY_PATH
13732   else
13733     # With GCC up to 2.95.x, collect2 would create an import file
13734     # for dependence libraries.  The import file would start with
13735     # the line `#! .'.  This would cause the generated library to
13736     # depend on `.', always an invalid library.  This was fixed in
13737     # development snapshots of GCC prior to 3.0.
13738     case $host_os in
13739       aix4 | aix4.[01] | aix4.[01].*)
13740       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13741            echo ' yes '
13742            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13743         :
13744       else
13745         can_build_shared=no
13746       fi
13747       ;;
13748     esac
13749     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13750     # soname into executable. Probably we can add versioning support to
13751     # collect2, so additional links can be useful in future.
13752     if test "$aix_use_runtimelinking" = yes; then
13753       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13754       # instead of lib<name>.a to let people know that these are not
13755       # typical AIX shared libraries.
13756       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13757     else
13758       # We preserve .a as extension for shared libraries through AIX4.2
13759       # and later when we are not doing run time linking.
13760       library_names_spec='${libname}${release}.a $libname.a'
13761       soname_spec='${libname}${release}${shared_ext}$major'
13762     fi
13763     shlibpath_var=LIBPATH
13764   fi
13765   ;;
13766
13767 amigaos*)
13768   library_names_spec='$libname.ixlibrary $libname.a'
13769   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13770   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'
13771   ;;
13772
13773 beos*)
13774   library_names_spec='${libname}${shared_ext}'
13775   dynamic_linker="$host_os ld.so"
13776   shlibpath_var=LIBRARY_PATH
13777   ;;
13778
13779 bsdi4*)
13780   version_type=linux
13781   need_version=no
13782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13783   soname_spec='${libname}${release}${shared_ext}$major'
13784   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13785   shlibpath_var=LD_LIBRARY_PATH
13786   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13787   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13788   # the default ld.so.conf also contains /usr/contrib/lib and
13789   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13790   # libtool to hard-code these into programs
13791   ;;
13792
13793 cygwin* | mingw* | pw32*)
13794   version_type=windows
13795   shrext=".dll"
13796   need_version=no
13797   need_lib_prefix=no
13798
13799   case $GCC,$host_os in
13800   yes,cygwin* | yes,mingw* | yes,pw32*)
13801     library_names_spec='$libname.dll.a'
13802     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13803     postinstall_cmds='base_file=`basename \${file}`~
13804       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13805       dldir=$destdir/`dirname \$dlpath`~
13806       test -d \$dldir || mkdir -p \$dldir~
13807       $install_prog $dir/$dlname \$dldir/$dlname'
13808     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13809       dlpath=$dir/\$dldll~
13810        $rm \$dlpath'
13811     shlibpath_overrides_runpath=yes
13812
13813     case $host_os in
13814     cygwin*)
13815       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13816       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13817       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13818       ;;
13819     mingw*)
13820       # MinGW DLLs use traditional 'lib' prefix
13821       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13822       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13823       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13824         # It is most probably a Windows format PATH printed by
13825         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13826         # path with ; separators, and with drive letters. We can handle the
13827         # drive letters (cygwin fileutils understands them), so leave them,
13828         # especially as we might pass files found there to a mingw objdump,
13829         # which wouldn't understand a cygwinified path. Ahh.
13830         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13831       else
13832         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13833       fi
13834       ;;
13835     pw32*)
13836       # pw32 DLLs use 'pw' prefix rather than 'lib'
13837       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13838       ;;
13839     esac
13840     ;;
13841
13842   *)
13843     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13844     ;;
13845   esac
13846   dynamic_linker='Win32 ld.exe'
13847   # FIXME: first we should search . and the directory the executable is in
13848   shlibpath_var=PATH
13849   ;;
13850
13851 darwin* | rhapsody*)
13852   dynamic_linker="$host_os dyld"
13853   version_type=darwin
13854   need_lib_prefix=no
13855   need_version=no
13856   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13857   soname_spec='${libname}${release}${major}$shared_ext'
13858   shlibpath_overrides_runpath=yes
13859   shlibpath_var=DYLD_LIBRARY_PATH
13860   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13861   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13862   if test "$GCC" = yes; then
13863     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13864   else
13865     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13866   fi
13867   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13868   ;;
13869
13870 dgux*)
13871   version_type=linux
13872   need_lib_prefix=no
13873   need_version=no
13874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13875   soname_spec='${libname}${release}${shared_ext}$major'
13876   shlibpath_var=LD_LIBRARY_PATH
13877   ;;
13878
13879 freebsd1*)
13880   dynamic_linker=no
13881   ;;
13882
13883 kfreebsd*-gnu)
13884   version_type=linux
13885   need_lib_prefix=no
13886   need_version=no
13887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13888   soname_spec='${libname}${release}${shared_ext}$major'
13889   shlibpath_var=LD_LIBRARY_PATH
13890   shlibpath_overrides_runpath=no
13891   hardcode_into_libs=yes
13892   dynamic_linker='GNU ld.so'
13893   ;;
13894
13895 freebsd*)
13896   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13897   version_type=freebsd-$objformat
13898   case $version_type in
13899     freebsd-elf*)
13900       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13901       need_version=no
13902       need_lib_prefix=no
13903       ;;
13904     freebsd-*)
13905       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13906       need_version=yes
13907       ;;
13908   esac
13909   shlibpath_var=LD_LIBRARY_PATH
13910   case $host_os in
13911   freebsd2*)
13912     shlibpath_overrides_runpath=yes
13913     ;;
13914   freebsd3.01* | freebsdelf3.01*)
13915     shlibpath_overrides_runpath=yes
13916     hardcode_into_libs=yes
13917     ;;
13918   *) # from 3.2 on
13919     shlibpath_overrides_runpath=no
13920     hardcode_into_libs=yes
13921     ;;
13922   esac
13923   ;;
13924
13925 gnu*)
13926   version_type=linux
13927   need_lib_prefix=no
13928   need_version=no
13929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13930   soname_spec='${libname}${release}${shared_ext}$major'
13931   shlibpath_var=LD_LIBRARY_PATH
13932   hardcode_into_libs=yes
13933   ;;
13934
13935 hpux9* | hpux10* | hpux11*)
13936   # Give a soname corresponding to the major version so that dld.sl refuses to
13937   # link against other versions.
13938   version_type=sunos
13939   need_lib_prefix=no
13940   need_version=no
13941   case "$host_cpu" in
13942   ia64*)
13943     shrext='.so'
13944     hardcode_into_libs=yes
13945     dynamic_linker="$host_os dld.so"
13946     shlibpath_var=LD_LIBRARY_PATH
13947     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13948     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949     soname_spec='${libname}${release}${shared_ext}$major'
13950     if test "X$HPUX_IA64_MODE" = X32; then
13951       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13952     else
13953       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13954     fi
13955     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13956     ;;
13957    hppa*64*)
13958      shrext='.sl'
13959      hardcode_into_libs=yes
13960      dynamic_linker="$host_os dld.sl"
13961      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13962      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13963      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964      soname_spec='${libname}${release}${shared_ext}$major'
13965      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13966      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13967      ;;
13968    *)
13969     shrext='.sl'
13970     dynamic_linker="$host_os dld.sl"
13971     shlibpath_var=SHLIB_PATH
13972     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13973     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13974     soname_spec='${libname}${release}${shared_ext}$major'
13975     ;;
13976   esac
13977   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13978   postinstall_cmds='chmod 555 $lib'
13979   ;;
13980
13981 irix5* | irix6* | nonstopux*)
13982   case $host_os in
13983     nonstopux*) version_type=nonstopux ;;
13984     *)
13985         if test "$lt_cv_prog_gnu_ld" = yes; then
13986                 version_type=linux
13987         else
13988                 version_type=irix
13989         fi ;;
13990   esac
13991   need_lib_prefix=no
13992   need_version=no
13993   soname_spec='${libname}${release}${shared_ext}$major'
13994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13995   case $host_os in
13996   irix5* | nonstopux*)
13997     libsuff= shlibsuff=
13998     ;;
13999   *)
14000     case $LD in # libtool.m4 will add one of these switches to LD
14001     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14002       libsuff= shlibsuff= libmagic=32-bit;;
14003     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14004       libsuff=32 shlibsuff=N32 libmagic=N32;;
14005     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14006       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14007     *) libsuff= shlibsuff= libmagic=never-match;;
14008     esac
14009     ;;
14010   esac
14011   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14012   shlibpath_overrides_runpath=no
14013   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14014   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14015   hardcode_into_libs=yes
14016   ;;
14017
14018 # No shared lib support for Linux oldld, aout, or coff.
14019 linux*oldld* | linux*aout* | linux*coff*)
14020   dynamic_linker=no
14021   ;;
14022
14023 # This must be Linux ELF.
14024 linux*)
14025   version_type=linux
14026   need_lib_prefix=no
14027   need_version=no
14028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14029   soname_spec='${libname}${release}${shared_ext}$major'
14030   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14031   shlibpath_var=LD_LIBRARY_PATH
14032   shlibpath_overrides_runpath=no
14033   # This implies no fast_install, which is unacceptable.
14034   # Some rework will be needed to allow for fast_install
14035   # before this can be enabled.
14036   hardcode_into_libs=yes
14037
14038   # We used to test for /lib/ld.so.1 and disable shared libraries on
14039   # powerpc, because MkLinux only supported shared libraries with the
14040   # GNU dynamic linker.  Since this was broken with cross compilers,
14041   # most powerpc-linux boxes support dynamic linking these days and
14042   # people can always --disable-shared, the test was removed, and we
14043   # assume the GNU/Linux dynamic linker is in use.
14044   dynamic_linker='GNU/Linux ld.so'
14045   ;;
14046
14047 netbsd*)
14048   version_type=sunos
14049   need_lib_prefix=no
14050   need_version=no
14051   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14053     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14054     dynamic_linker='NetBSD (a.out) ld.so'
14055   else
14056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14057     soname_spec='${libname}${release}${shared_ext}$major'
14058     dynamic_linker='NetBSD ld.elf_so'
14059   fi
14060   shlibpath_var=LD_LIBRARY_PATH
14061   shlibpath_overrides_runpath=yes
14062   hardcode_into_libs=yes
14063   ;;
14064
14065 newsos6)
14066   version_type=linux
14067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068   shlibpath_var=LD_LIBRARY_PATH
14069   shlibpath_overrides_runpath=yes
14070   ;;
14071
14072 nto-qnx*)
14073   version_type=linux
14074   need_lib_prefix=no
14075   need_version=no
14076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077   soname_spec='${libname}${release}${shared_ext}$major'
14078   shlibpath_var=LD_LIBRARY_PATH
14079   shlibpath_overrides_runpath=yes
14080   ;;
14081
14082 openbsd*)
14083   version_type=sunos
14084   need_lib_prefix=no
14085   need_version=no
14086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14087   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14088   shlibpath_var=LD_LIBRARY_PATH
14089   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14090     case $host_os in
14091       openbsd2.[89] | openbsd2.[89].*)
14092         shlibpath_overrides_runpath=no
14093         ;;
14094       *)
14095         shlibpath_overrides_runpath=yes
14096         ;;
14097       esac
14098   else
14099     shlibpath_overrides_runpath=yes
14100   fi
14101   ;;
14102
14103 os2*)
14104   libname_spec='$name'
14105   shrext=".dll"
14106   need_lib_prefix=no
14107   library_names_spec='$libname${shared_ext} $libname.a'
14108   dynamic_linker='OS/2 ld.exe'
14109   shlibpath_var=LIBPATH
14110   ;;
14111
14112 osf3* | osf4* | osf5*)
14113   version_type=osf
14114   need_lib_prefix=no
14115   need_version=no
14116   soname_spec='${libname}${release}${shared_ext}$major'
14117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118   shlibpath_var=LD_LIBRARY_PATH
14119   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14120   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14121   ;;
14122
14123 sco3.2v5*)
14124   version_type=osf
14125   soname_spec='${libname}${release}${shared_ext}$major'
14126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127   shlibpath_var=LD_LIBRARY_PATH
14128   ;;
14129
14130 solaris*)
14131   version_type=linux
14132   need_lib_prefix=no
14133   need_version=no
14134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135   soname_spec='${libname}${release}${shared_ext}$major'
14136   shlibpath_var=LD_LIBRARY_PATH
14137   shlibpath_overrides_runpath=yes
14138   hardcode_into_libs=yes
14139   # ldd complains unless libraries are executable
14140   postinstall_cmds='chmod +x $lib'
14141   ;;
14142
14143 sunos4*)
14144   version_type=sunos
14145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14146   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14147   shlibpath_var=LD_LIBRARY_PATH
14148   shlibpath_overrides_runpath=yes
14149   if test "$with_gnu_ld" = yes; then
14150     need_lib_prefix=no
14151   fi
14152   need_version=yes
14153   ;;
14154
14155 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14156   version_type=linux
14157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158   soname_spec='${libname}${release}${shared_ext}$major'
14159   shlibpath_var=LD_LIBRARY_PATH
14160   case $host_vendor in
14161     sni)
14162       shlibpath_overrides_runpath=no
14163       need_lib_prefix=no
14164       export_dynamic_flag_spec='${wl}-Blargedynsym'
14165       runpath_var=LD_RUN_PATH
14166       ;;
14167     siemens)
14168       need_lib_prefix=no
14169       ;;
14170     motorola)
14171       need_lib_prefix=no
14172       need_version=no
14173       shlibpath_overrides_runpath=no
14174       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14175       ;;
14176   esac
14177   ;;
14178
14179 sysv4*MP*)
14180   if test -d /usr/nec ;then
14181     version_type=linux
14182     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14183     soname_spec='$libname${shared_ext}.$major'
14184     shlibpath_var=LD_LIBRARY_PATH
14185   fi
14186   ;;
14187
14188 uts4*)
14189   version_type=linux
14190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191   soname_spec='${libname}${release}${shared_ext}$major'
14192   shlibpath_var=LD_LIBRARY_PATH
14193   ;;
14194
14195 *)
14196   dynamic_linker=no
14197   ;;
14198 esac
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14200 $as_echo "$dynamic_linker" >&6; }
14201 test "$dynamic_linker" = no && can_build_shared=no
14202
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14204 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14205 hardcode_action_F77=
14206 if test -n "$hardcode_libdir_flag_spec_F77" || \
14207    test -n "$runpath_var F77" || \
14208    test "X$hardcode_automatic_F77"="Xyes" ; then
14209
14210   # We can hardcode non-existant directories.
14211   if test "$hardcode_direct_F77" != no &&
14212      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14213      # have to relink, otherwise we might link with an installed library
14214      # when we should be linking with a yet-to-be-installed one
14215      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14216      test "$hardcode_minus_L_F77" != no; then
14217     # Linking always hardcodes the temporary library directory.
14218     hardcode_action_F77=relink
14219   else
14220     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14221     hardcode_action_F77=immediate
14222   fi
14223 else
14224   # We cannot hardcode anything, or else we can only hardcode existing
14225   # directories.
14226   hardcode_action_F77=unsupported
14227 fi
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14229 $as_echo "$hardcode_action_F77" >&6; }
14230
14231 if test "$hardcode_action_F77" = relink; then
14232   # Fast installation is not supported
14233   enable_fast_install=no
14234 elif test "$shlibpath_overrides_runpath" = yes ||
14235      test "$enable_shared" = no; then
14236   # Fast installation is not necessary
14237   enable_fast_install=needless
14238 fi
14239
14240 striplib=
14241 old_striplib=
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14243 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14244 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14245   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14246   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14248 $as_echo "yes" >&6; }
14249 else
14250 # FIXME - insert some real tests, host_os isn't really good enough
14251   case $host_os in
14252    darwin*)
14253        if test -n "$STRIP" ; then
14254          striplib="$STRIP -x"
14255          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14256 $as_echo "yes" >&6; }
14257        else
14258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259 $as_echo "no" >&6; }
14260 fi
14261        ;;
14262    *)
14263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14265     ;;
14266   esac
14267 fi
14268
14269
14270
14271 # The else clause should only fire when bootstrapping the
14272 # libtool distribution, otherwise you forgot to ship ltmain.sh
14273 # with your package, and you will get complaints that there are
14274 # no rules to generate ltmain.sh.
14275 if test -f "$ltmain"; then
14276   # See if we are running on zsh, and set the options which allow our commands through
14277   # without removal of \ escapes.
14278   if test -n "${ZSH_VERSION+set}" ; then
14279     setopt NO_GLOB_SUBST
14280   fi
14281   # Now quote all the things that may contain metacharacters while being
14282   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14283   # variables and quote the copies for generation of the libtool script.
14284   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14285     SED SHELL STRIP \
14286     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14287     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14288     deplibs_check_method reload_flag reload_cmds need_locks \
14289     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14290     lt_cv_sys_global_symbol_to_c_name_address \
14291     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14292     old_postinstall_cmds old_postuninstall_cmds \
14293     compiler_F77 \
14294     CC_F77 \
14295     LD_F77 \
14296     lt_prog_compiler_wl_F77 \
14297     lt_prog_compiler_pic_F77 \
14298     lt_prog_compiler_static_F77 \
14299     lt_prog_compiler_no_builtin_flag_F77 \
14300     export_dynamic_flag_spec_F77 \
14301     thread_safe_flag_spec_F77 \
14302     whole_archive_flag_spec_F77 \
14303     enable_shared_with_static_runtimes_F77 \
14304     old_archive_cmds_F77 \
14305     old_archive_from_new_cmds_F77 \
14306     predep_objects_F77 \
14307     postdep_objects_F77 \
14308     predeps_F77 \
14309     postdeps_F77 \
14310     compiler_lib_search_path_F77 \
14311     archive_cmds_F77 \
14312     archive_expsym_cmds_F77 \
14313     postinstall_cmds_F77 \
14314     postuninstall_cmds_F77 \
14315     old_archive_from_expsyms_cmds_F77 \
14316     allow_undefined_flag_F77 \
14317     no_undefined_flag_F77 \
14318     export_symbols_cmds_F77 \
14319     hardcode_libdir_flag_spec_F77 \
14320     hardcode_libdir_flag_spec_ld_F77 \
14321     hardcode_libdir_separator_F77 \
14322     hardcode_automatic_F77 \
14323     module_cmds_F77 \
14324     module_expsym_cmds_F77 \
14325     lt_cv_prog_compiler_c_o_F77 \
14326     exclude_expsyms_F77 \
14327     include_expsyms_F77; do
14328
14329     case $var in
14330     old_archive_cmds_F77 | \
14331     old_archive_from_new_cmds_F77 | \
14332     archive_cmds_F77 | \
14333     archive_expsym_cmds_F77 | \
14334     module_cmds_F77 | \
14335     module_expsym_cmds_F77 | \
14336     old_archive_from_expsyms_cmds_F77 | \
14337     export_symbols_cmds_F77 | \
14338     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14339     postinstall_cmds | postuninstall_cmds | \
14340     old_postinstall_cmds | old_postuninstall_cmds | \
14341     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14342       # Double-quote double-evaled strings.
14343       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14344       ;;
14345     *)
14346       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14347       ;;
14348     esac
14349   done
14350
14351   case $lt_echo in
14352   *'\$0 --fallback-echo"')
14353     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14354     ;;
14355   esac
14356
14357 cfgfile="$ofile"
14358
14359   cat <<__EOF__ >> "$cfgfile"
14360 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14361
14362 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14363
14364 # Shell to use when invoking shell scripts.
14365 SHELL=$lt_SHELL
14366
14367 # Whether or not to build shared libraries.
14368 build_libtool_libs=$enable_shared
14369
14370 # Whether or not to build static libraries.
14371 build_old_libs=$enable_static
14372
14373 # Whether or not to add -lc for building shared libraries.
14374 build_libtool_need_lc=$archive_cmds_need_lc_F77
14375
14376 # Whether or not to disallow shared libs when runtime libs are static
14377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14378
14379 # Whether or not to optimize for fast installation.
14380 fast_install=$enable_fast_install
14381
14382 # The host system.
14383 host_alias=$host_alias
14384 host=$host
14385
14386 # An echo program that does not interpret backslashes.
14387 echo=$lt_echo
14388
14389 # The archiver.
14390 AR=$lt_AR
14391 AR_FLAGS=$lt_AR_FLAGS
14392
14393 # A C compiler.
14394 LTCC=$lt_LTCC
14395
14396 # A language-specific compiler.
14397 CC=$lt_compiler_F77
14398
14399 # Is the compiler the GNU C compiler?
14400 with_gcc=$GCC_F77
14401
14402 # An ERE matcher.
14403 EGREP=$lt_EGREP
14404
14405 # The linker used to build libraries.
14406 LD=$lt_LD_F77
14407
14408 # Whether we need hard or soft links.
14409 LN_S=$lt_LN_S
14410
14411 # A BSD-compatible nm program.
14412 NM=$lt_NM
14413
14414 # A symbol stripping program
14415 STRIP=$lt_STRIP
14416
14417 # Used to examine libraries when file_magic_cmd begins "file"
14418 MAGIC_CMD=$MAGIC_CMD
14419
14420 # Used on cygwin: DLL creation program.
14421 DLLTOOL="$DLLTOOL"
14422
14423 # Used on cygwin: object dumper.
14424 OBJDUMP="$OBJDUMP"
14425
14426 # Used on cygwin: assembler.
14427 AS="$AS"
14428
14429 # The name of the directory that contains temporary libtool files.
14430 objdir=$objdir
14431
14432 # How to create reloadable object files.
14433 reload_flag=$lt_reload_flag
14434 reload_cmds=$lt_reload_cmds
14435
14436 # How to pass a linker flag through the compiler.
14437 wl=$lt_lt_prog_compiler_wl_F77
14438
14439 # Object file suffix (normally "o").
14440 objext="$ac_objext"
14441
14442 # Old archive suffix (normally "a").
14443 libext="$libext"
14444
14445 # Shared library suffix (normally ".so").
14446 shrext='$shrext'
14447
14448 # Executable file suffix (normally "").
14449 exeext="$exeext"
14450
14451 # Additional compiler flags for building library objects.
14452 pic_flag=$lt_lt_prog_compiler_pic_F77
14453 pic_mode=$pic_mode
14454
14455 # What is the maximum length of a command?
14456 max_cmd_len=$lt_cv_sys_max_cmd_len
14457
14458 # Does compiler simultaneously support -c and -o options?
14459 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14460
14461 # Must we lock files when doing compilation ?
14462 need_locks=$lt_need_locks
14463
14464 # Do we need the lib prefix for modules?
14465 need_lib_prefix=$need_lib_prefix
14466
14467 # Do we need a version for libraries?
14468 need_version=$need_version
14469
14470 # Whether dlopen is supported.
14471 dlopen_support=$enable_dlopen
14472
14473 # Whether dlopen of programs is supported.
14474 dlopen_self=$enable_dlopen_self
14475
14476 # Whether dlopen of statically linked programs is supported.
14477 dlopen_self_static=$enable_dlopen_self_static
14478
14479 # Compiler flag to prevent dynamic linking.
14480 link_static_flag=$lt_lt_prog_compiler_static_F77
14481
14482 # Compiler flag to turn off builtin functions.
14483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14484
14485 # Compiler flag to allow reflexive dlopens.
14486 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14487
14488 # Compiler flag to generate shared objects directly from archives.
14489 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14490
14491 # Compiler flag to generate thread-safe objects.
14492 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14493
14494 # Library versioning type.
14495 version_type=$version_type
14496
14497 # Format of library name prefix.
14498 libname_spec=$lt_libname_spec
14499
14500 # List of archive names.  First name is the real one, the rest are links.
14501 # The last name is the one that the linker finds with -lNAME.
14502 library_names_spec=$lt_library_names_spec
14503
14504 # The coded name of the library, if different from the real name.
14505 soname_spec=$lt_soname_spec
14506
14507 # Commands used to build and install an old-style archive.
14508 RANLIB=$lt_RANLIB
14509 old_archive_cmds=$lt_old_archive_cmds_F77
14510 old_postinstall_cmds=$lt_old_postinstall_cmds
14511 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14512
14513 # Create an old-style archive from a shared archive.
14514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14515
14516 # Create a temporary old-style archive to link instead of a shared archive.
14517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14518
14519 # Commands used to build and install a shared archive.
14520 archive_cmds=$lt_archive_cmds_F77
14521 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14522 postinstall_cmds=$lt_postinstall_cmds
14523 postuninstall_cmds=$lt_postuninstall_cmds
14524
14525 # Commands used to build a loadable module (assumed same as above if empty)
14526 module_cmds=$lt_module_cmds_F77
14527 module_expsym_cmds=$lt_module_expsym_cmds_F77
14528
14529 # Commands to strip libraries.
14530 old_striplib=$lt_old_striplib
14531 striplib=$lt_striplib
14532
14533 # Dependencies to place before the objects being linked to create a
14534 # shared library.
14535 predep_objects=$lt_predep_objects_F77
14536
14537 # Dependencies to place after the objects being linked to create a
14538 # shared library.
14539 postdep_objects=$lt_postdep_objects_F77
14540
14541 # Dependencies to place before the objects being linked to create a
14542 # shared library.
14543 predeps=$lt_predeps_F77
14544
14545 # Dependencies to place after the objects being linked to create a
14546 # shared library.
14547 postdeps=$lt_postdeps_F77
14548
14549 # The library search path used internally by the compiler when linking
14550 # a shared library.
14551 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14552
14553 # Method to check whether dependent libraries are shared objects.
14554 deplibs_check_method=$lt_deplibs_check_method
14555
14556 # Command to use when deplibs_check_method == file_magic.
14557 file_magic_cmd=$lt_file_magic_cmd
14558
14559 # Flag that allows shared libraries with undefined symbols to be built.
14560 allow_undefined_flag=$lt_allow_undefined_flag_F77
14561
14562 # Flag that forces no undefined symbols.
14563 no_undefined_flag=$lt_no_undefined_flag_F77
14564
14565 # Commands used to finish a libtool library installation in a directory.
14566 finish_cmds=$lt_finish_cmds
14567
14568 # Same as above, but a single script fragment to be evaled but not shown.
14569 finish_eval=$lt_finish_eval
14570
14571 # Take the output of nm and produce a listing of raw symbols and C names.
14572 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14573
14574 # Transform the output of nm in a proper C declaration
14575 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14576
14577 # Transform the output of nm in a C name address pair
14578 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14579
14580 # This is the shared library runtime path variable.
14581 runpath_var=$runpath_var
14582
14583 # This is the shared library path variable.
14584 shlibpath_var=$shlibpath_var
14585
14586 # Is shlibpath searched before the hard-coded library search path?
14587 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14588
14589 # How to hardcode a shared library path into an executable.
14590 hardcode_action=$hardcode_action_F77
14591
14592 # Whether we should hardcode library paths into libraries.
14593 hardcode_into_libs=$hardcode_into_libs
14594
14595 # Flag to hardcode \$libdir into a binary during linking.
14596 # This must work even if \$libdir does not exist.
14597 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14598
14599 # If ld is used when linking, flag to hardcode \$libdir into
14600 # a binary during linking. This must work even if \$libdir does
14601 # not exist.
14602 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14603
14604 # Whether we need a single -rpath flag with a separated argument.
14605 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14606
14607 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14608 # resulting binary.
14609 hardcode_direct=$hardcode_direct_F77
14610
14611 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14612 # resulting binary.
14613 hardcode_minus_L=$hardcode_minus_L_F77
14614
14615 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14616 # the resulting binary.
14617 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14618
14619 # Set to yes if building a shared library automatically hardcodes DIR into the library
14620 # and all subsequent libraries and executables linked against it.
14621 hardcode_automatic=$hardcode_automatic_F77
14622
14623 # Variables whose values should be saved in libtool wrapper scripts and
14624 # restored at relink time.
14625 variables_saved_for_relink="$variables_saved_for_relink"
14626
14627 # Whether libtool must link a program against all its dependency libraries.
14628 link_all_deplibs=$link_all_deplibs_F77
14629
14630 # Compile-time system search path for libraries
14631 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14632
14633 # Run-time system search path for libraries
14634 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14635
14636 # Fix the shell variable \$srcfile for the compiler.
14637 fix_srcfile_path="$fix_srcfile_path_F77"
14638
14639 # Set to yes if exported symbols are required.
14640 always_export_symbols=$always_export_symbols_F77
14641
14642 # The commands to list exported symbols.
14643 export_symbols_cmds=$lt_export_symbols_cmds_F77
14644
14645 # The commands to extract the exported symbol list from a shared archive.
14646 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14647
14648 # Symbols that should not be listed in the preloaded symbols.
14649 exclude_expsyms=$lt_exclude_expsyms_F77
14650
14651 # Symbols that must always be exported.
14652 include_expsyms=$lt_include_expsyms_F77
14653
14654 # ### END LIBTOOL TAG CONFIG: $tagname
14655
14656 __EOF__
14657
14658
14659 else
14660   # If there is no Makefile yet, we rely on a make rule to execute
14661   # `config.status --recheck' to rerun these tests and create the
14662   # libtool script then.
14663   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14664   if test -f "$ltmain_in"; then
14665     test -f Makefile && make "$ltmain"
14666   fi
14667 fi
14668
14669
14670 ac_ext=c
14671 ac_cpp='$CPP $CPPFLAGS'
14672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14675
14676 CC="$lt_save_CC"
14677
14678         else
14679           tagname=""
14680         fi
14681         ;;
14682
14683       GCJ)
14684         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14685
14686
14687 # Source file extension for Java test sources.
14688 ac_ext=java
14689
14690 # Object file extension for compiled Java test sources.
14691 objext=o
14692 objext_GCJ=$objext
14693
14694 # Code to be used in simple compile tests
14695 lt_simple_compile_test_code="class foo {}\n"
14696
14697 # Code to be used in simple link tests
14698 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14699
14700 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14701
14702 # If no C compiler was specified, use CC.
14703 LTCC=${LTCC-"$CC"}
14704
14705 # Allow CC to be a program name with arguments.
14706 compiler=$CC
14707
14708
14709 # Allow CC to be a program name with arguments.
14710 lt_save_CC="$CC"
14711 CC=${GCJ-"gcj"}
14712 compiler=$CC
14713 compiler_GCJ=$CC
14714
14715 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14716 archive_cmds_need_lc_GCJ=no
14717
14718 ## CAVEAT EMPTOR:
14719 ## There is no encapsulation within the following macros, do not change
14720 ## the running order or otherwise move them around unless you know exactly
14721 ## what you are doing...
14722
14723 lt_prog_compiler_no_builtin_flag_GCJ=
14724
14725 if test "$GCC" = yes; then
14726   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14727
14728
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14730 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14731 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14732   $as_echo_n "(cached) " >&6
14733 else
14734   lt_cv_prog_compiler_rtti_exceptions=no
14735   ac_outfile=conftest.$ac_objext
14736    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14737    lt_compiler_flag="-fno-rtti -fno-exceptions"
14738    # Insert the option either (1) after the last *FLAGS variable, or
14739    # (2) before a word containing "conftest.", or (3) at the end.
14740    # Note that $ac_compile itself does not contain backslashes and begins
14741    # with a dollar sign (not a hyphen), so the echo should work correctly.
14742    # The option is referenced via a variable to avoid confusing sed.
14743    lt_compile=`echo "$ac_compile" | $SED \
14744    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14746    -e 's:$: $lt_compiler_flag:'`
14747    (eval echo "\"\$as_me:14747: $lt_compile\"" >&5)
14748    (eval "$lt_compile" 2>conftest.err)
14749    ac_status=$?
14750    cat conftest.err >&5
14751    echo "$as_me:14751: \$? = $ac_status" >&5
14752    if (exit $ac_status) && test -s "$ac_outfile"; then
14753      # The compiler can only warn and ignore the option if not recognized
14754      # So say no if there are warnings
14755      if test ! -s conftest.err; then
14756        lt_cv_prog_compiler_rtti_exceptions=yes
14757      fi
14758    fi
14759    $rm conftest*
14760
14761 fi
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14763 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14764
14765 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14766     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14767 else
14768     :
14769 fi
14770
14771 fi
14772
14773 lt_prog_compiler_wl_GCJ=
14774 lt_prog_compiler_pic_GCJ=
14775 lt_prog_compiler_static_GCJ=
14776
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14778 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14779
14780   if test "$GCC" = yes; then
14781     lt_prog_compiler_wl_GCJ='-Wl,'
14782     lt_prog_compiler_static_GCJ='-static'
14783
14784     case $host_os in
14785       aix*)
14786       # All AIX code is PIC.
14787       if test "$host_cpu" = ia64; then
14788         # AIX 5 now supports IA64 processor
14789         lt_prog_compiler_static_GCJ='-Bstatic'
14790       fi
14791       ;;
14792
14793     amigaos*)
14794       # FIXME: we need at least 68020 code to build shared libraries, but
14795       # adding the `-m68020' flag to GCC prevents building anything better,
14796       # like `-m68040'.
14797       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14798       ;;
14799
14800     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14801       # PIC is the default for these OSes.
14802       ;;
14803
14804     mingw* | pw32* | os2*)
14805       # This hack is so that the source file can tell whether it is being
14806       # built for inclusion in a dll (and should export symbols for example).
14807       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14808       ;;
14809
14810     darwin* | rhapsody*)
14811       # PIC is the default on this platform
14812       # Common symbols not allowed in MH_DYLIB files
14813       lt_prog_compiler_pic_GCJ='-fno-common'
14814       ;;
14815
14816     msdosdjgpp*)
14817       # Just because we use GCC doesn't mean we suddenly get shared libraries
14818       # on systems that don't support them.
14819       lt_prog_compiler_can_build_shared_GCJ=no
14820       enable_shared=no
14821       ;;
14822
14823     sysv4*MP*)
14824       if test -d /usr/nec; then
14825         lt_prog_compiler_pic_GCJ=-Kconform_pic
14826       fi
14827       ;;
14828
14829     hpux*)
14830       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14831       # not for PA HP-UX.
14832       case "$host_cpu" in
14833       hppa*64*|ia64*)
14834         # +Z the default
14835         ;;
14836       *)
14837         lt_prog_compiler_pic_GCJ='-fPIC'
14838         ;;
14839       esac
14840       ;;
14841
14842     *)
14843       lt_prog_compiler_pic_GCJ='-fPIC'
14844       ;;
14845     esac
14846   else
14847     # PORTME Check for flag to pass linker flags through the system compiler.
14848     case $host_os in
14849     aix*)
14850       lt_prog_compiler_wl_GCJ='-Wl,'
14851       if test "$host_cpu" = ia64; then
14852         # AIX 5 now supports IA64 processor
14853         lt_prog_compiler_static_GCJ='-Bstatic'
14854       else
14855         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14856       fi
14857       ;;
14858
14859     mingw* | pw32* | os2*)
14860       # This hack is so that the source file can tell whether it is being
14861       # built for inclusion in a dll (and should export symbols for example).
14862       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14863       ;;
14864
14865     hpux9* | hpux10* | hpux11*)
14866       lt_prog_compiler_wl_GCJ='-Wl,'
14867       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14868       # not for PA HP-UX.
14869       case "$host_cpu" in
14870       hppa*64*|ia64*)
14871         # +Z the default
14872         ;;
14873       *)
14874         lt_prog_compiler_pic_GCJ='+Z'
14875         ;;
14876       esac
14877       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14878       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14879       ;;
14880
14881     irix5* | irix6* | nonstopux*)
14882       lt_prog_compiler_wl_GCJ='-Wl,'
14883       # PIC (with -KPIC) is the default.
14884       lt_prog_compiler_static_GCJ='-non_shared'
14885       ;;
14886
14887     newsos6)
14888       lt_prog_compiler_pic_GCJ='-KPIC'
14889       lt_prog_compiler_static_GCJ='-Bstatic'
14890       ;;
14891
14892     linux*)
14893       case $CC in
14894       icc* | ecc*)
14895         lt_prog_compiler_wl_GCJ='-Wl,'
14896         lt_prog_compiler_pic_GCJ='-KPIC'
14897         lt_prog_compiler_static_GCJ='-static'
14898         ;;
14899       ccc*)
14900         lt_prog_compiler_wl_GCJ='-Wl,'
14901         # All Alpha code is PIC.
14902         lt_prog_compiler_static_GCJ='-non_shared'
14903         ;;
14904       esac
14905       ;;
14906
14907     osf3* | osf4* | osf5*)
14908       lt_prog_compiler_wl_GCJ='-Wl,'
14909       # All OSF/1 code is PIC.
14910       lt_prog_compiler_static_GCJ='-non_shared'
14911       ;;
14912
14913     sco3.2v5*)
14914       lt_prog_compiler_pic_GCJ='-Kpic'
14915       lt_prog_compiler_static_GCJ='-dn'
14916       ;;
14917
14918     solaris*)
14919       lt_prog_compiler_wl_GCJ='-Wl,'
14920       lt_prog_compiler_pic_GCJ='-KPIC'
14921       lt_prog_compiler_static_GCJ='-Bstatic'
14922       ;;
14923
14924     sunos4*)
14925       lt_prog_compiler_wl_GCJ='-Qoption ld '
14926       lt_prog_compiler_pic_GCJ='-PIC'
14927       lt_prog_compiler_static_GCJ='-Bstatic'
14928       ;;
14929
14930     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14931       lt_prog_compiler_wl_GCJ='-Wl,'
14932       lt_prog_compiler_pic_GCJ='-KPIC'
14933       lt_prog_compiler_static_GCJ='-Bstatic'
14934       ;;
14935
14936     sysv4*MP*)
14937       if test -d /usr/nec ;then
14938         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14939         lt_prog_compiler_static_GCJ='-Bstatic'
14940       fi
14941       ;;
14942
14943     uts4*)
14944       lt_prog_compiler_pic_GCJ='-pic'
14945       lt_prog_compiler_static_GCJ='-Bstatic'
14946       ;;
14947
14948     *)
14949       lt_prog_compiler_can_build_shared_GCJ=no
14950       ;;
14951     esac
14952   fi
14953
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
14955 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
14956
14957 #
14958 # Check to make sure the PIC flag actually works.
14959 #
14960 if test -n "$lt_prog_compiler_pic_GCJ"; then
14961
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14963 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
14964 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
14965   $as_echo_n "(cached) " >&6
14966 else
14967   lt_prog_compiler_pic_works_GCJ=no
14968   ac_outfile=conftest.$ac_objext
14969    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14970    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14971    # Insert the option either (1) after the last *FLAGS variable, or
14972    # (2) before a word containing "conftest.", or (3) at the end.
14973    # Note that $ac_compile itself does not contain backslashes and begins
14974    # with a dollar sign (not a hyphen), so the echo should work correctly.
14975    # The option is referenced via a variable to avoid confusing sed.
14976    lt_compile=`echo "$ac_compile" | $SED \
14977    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14978    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14979    -e 's:$: $lt_compiler_flag:'`
14980    (eval echo "\"\$as_me:14980: $lt_compile\"" >&5)
14981    (eval "$lt_compile" 2>conftest.err)
14982    ac_status=$?
14983    cat conftest.err >&5
14984    echo "$as_me:14984: \$? = $ac_status" >&5
14985    if (exit $ac_status) && test -s "$ac_outfile"; then
14986      # The compiler can only warn and ignore the option if not recognized
14987      # So say no if there are warnings
14988      if test ! -s conftest.err; then
14989        lt_prog_compiler_pic_works_GCJ=yes
14990      fi
14991    fi
14992    $rm conftest*
14993
14994 fi
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
14996 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
14997
14998 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14999     case $lt_prog_compiler_pic_GCJ in
15000      "" | " "*) ;;
15001      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15002      esac
15003 else
15004     lt_prog_compiler_pic_GCJ=
15005      lt_prog_compiler_can_build_shared_GCJ=no
15006 fi
15007
15008 fi
15009 case "$host_os" in
15010   # For platforms which do not support PIC, -DPIC is meaningless:
15011   *djgpp*)
15012     lt_prog_compiler_pic_GCJ=
15013     ;;
15014   *)
15015     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15016     ;;
15017 esac
15018
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15020 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15021 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
15022   $as_echo_n "(cached) " >&6
15023 else
15024   lt_cv_prog_compiler_c_o_GCJ=no
15025    $rm -r conftest 2>/dev/null
15026    mkdir conftest
15027    cd conftest
15028    mkdir out
15029    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15030
15031    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15032    # that will create temporary files in the current directory regardless of
15033    # the output directory.  Thus, making CWD read-only will cause this test
15034    # to fail, enabling locking or at least warning the user not to do parallel
15035    # builds.
15036    chmod -w .
15037
15038    lt_compiler_flag="-o out/conftest2.$ac_objext"
15039    # Insert the option either (1) after the last *FLAGS variable, or
15040    # (2) before a word containing "conftest.", or (3) at the end.
15041    # Note that $ac_compile itself does not contain backslashes and begins
15042    # with a dollar sign (not a hyphen), so the echo should work correctly.
15043    lt_compile=`echo "$ac_compile" | $SED \
15044    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15045    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15046    -e 's:$: $lt_compiler_flag:'`
15047    (eval echo "\"\$as_me:15047: $lt_compile\"" >&5)
15048    (eval "$lt_compile" 2>out/conftest.err)
15049    ac_status=$?
15050    cat out/conftest.err >&5
15051    echo "$as_me:15051: \$? = $ac_status" >&5
15052    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15053    then
15054      # The compiler can only warn and ignore the option if not recognized
15055      # So say no if there are warnings
15056      if test ! -s out/conftest.err; then
15057        lt_cv_prog_compiler_c_o_GCJ=yes
15058      fi
15059    fi
15060    chmod u+w .
15061    $rm conftest*
15062    # SGI C++ compiler will create directory out/ii_files/ for
15063    # template instantiation
15064    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15065    $rm out/* && rmdir out
15066    cd ..
15067    rmdir conftest
15068    $rm conftest*
15069
15070 fi
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15072 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15073
15074
15075 hard_links="nottested"
15076 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15077   # do not overwrite the value of need_locks provided by the user
15078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15079 $as_echo_n "checking if we can lock with hard links... " >&6; }
15080   hard_links=yes
15081   $rm conftest*
15082   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15083   touch conftest.a
15084   ln conftest.a conftest.b 2>&5 || hard_links=no
15085   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15087 $as_echo "$hard_links" >&6; }
15088   if test "$hard_links" = no; then
15089     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15090 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15091     need_locks=warn
15092   fi
15093 else
15094   need_locks=no
15095 fi
15096
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15098 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15099
15100   runpath_var=
15101   allow_undefined_flag_GCJ=
15102   enable_shared_with_static_runtimes_GCJ=no
15103   archive_cmds_GCJ=
15104   archive_expsym_cmds_GCJ=
15105   old_archive_From_new_cmds_GCJ=
15106   old_archive_from_expsyms_cmds_GCJ=
15107   export_dynamic_flag_spec_GCJ=
15108   whole_archive_flag_spec_GCJ=
15109   thread_safe_flag_spec_GCJ=
15110   hardcode_libdir_flag_spec_GCJ=
15111   hardcode_libdir_flag_spec_ld_GCJ=
15112   hardcode_libdir_separator_GCJ=
15113   hardcode_direct_GCJ=no
15114   hardcode_minus_L_GCJ=no
15115   hardcode_shlibpath_var_GCJ=unsupported
15116   link_all_deplibs_GCJ=unknown
15117   hardcode_automatic_GCJ=no
15118   module_cmds_GCJ=
15119   module_expsym_cmds_GCJ=
15120   always_export_symbols_GCJ=no
15121   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15122   # include_expsyms should be a list of space-separated symbols to be *always*
15123   # included in the symbol list
15124   include_expsyms_GCJ=
15125   # exclude_expsyms can be an extended regexp of symbols to exclude
15126   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15127   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15128   # as well as any symbol that contains `d'.
15129   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15130   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15131   # platforms (ab)use it in PIC code, but their linkers get confused if
15132   # the symbol is explicitly referenced.  Since portable code cannot
15133   # rely on this symbol name, it's probably fine to never include it in
15134   # preloaded symbol tables.
15135   extract_expsyms_cmds=
15136
15137   case $host_os in
15138   cygwin* | mingw* | pw32*)
15139     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15140     # When not using gcc, we currently assume that we are using
15141     # Microsoft Visual C++.
15142     if test "$GCC" != yes; then
15143       with_gnu_ld=no
15144     fi
15145     ;;
15146   openbsd*)
15147     with_gnu_ld=no
15148     ;;
15149   esac
15150
15151   ld_shlibs_GCJ=yes
15152   if test "$with_gnu_ld" = yes; then
15153     # If archive_cmds runs LD, not CC, wlarc should be empty
15154     wlarc='${wl}'
15155
15156     # See if GNU ld supports shared libraries.
15157     case $host_os in
15158     aix3* | aix4* | aix5*)
15159       # On AIX/PPC, the GNU linker is very broken
15160       if test "$host_cpu" != ia64; then
15161         ld_shlibs_GCJ=no
15162         cat <<EOF 1>&2
15163
15164 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15165 *** to be unable to reliably create shared libraries on AIX.
15166 *** Therefore, libtool is disabling shared libraries support.  If you
15167 *** really care for shared libraries, you may want to modify your PATH
15168 *** so that a non-GNU linker is found, and then restart.
15169
15170 EOF
15171       fi
15172       ;;
15173
15174     amigaos*)
15175       archive_cmds_GCJ='$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)'
15176       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15177       hardcode_minus_L_GCJ=yes
15178
15179       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15180       # that the semantics of dynamic libraries on AmigaOS, at least up
15181       # to version 4, is to share data among multiple programs linked
15182       # with the same dynamic library.  Since this doesn't match the
15183       # behavior of shared libraries on other platforms, we can't use
15184       # them.
15185       ld_shlibs_GCJ=no
15186       ;;
15187
15188     beos*)
15189       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15190         allow_undefined_flag_GCJ=unsupported
15191         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15192         # support --undefined.  This deserves some investigation.  FIXME
15193         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15194       else
15195         ld_shlibs_GCJ=no
15196       fi
15197       ;;
15198
15199     cygwin* | mingw* | pw32*)
15200       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15201       # as there is no search path for DLLs.
15202       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15203       allow_undefined_flag_GCJ=unsupported
15204       always_export_symbols_GCJ=no
15205       enable_shared_with_static_runtimes_GCJ=yes
15206       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15207
15208       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15209         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15210         # If the export-symbols file already is a .def file (1st line
15211         # is EXPORTS), use it as is; otherwise, prepend...
15212         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15213           cp $export_symbols $output_objdir/$soname.def;
15214         else
15215           echo EXPORTS > $output_objdir/$soname.def;
15216           cat $export_symbols >> $output_objdir/$soname.def;
15217         fi~
15218         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15219       else
15220         ld_shlibs=no
15221       fi
15222       ;;
15223
15224     netbsd*)
15225       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15226         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15227         wlarc=
15228       else
15229         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15231       fi
15232       ;;
15233
15234     solaris* | sysv5*)
15235       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15236         ld_shlibs_GCJ=no
15237         cat <<EOF 1>&2
15238
15239 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15240 *** create shared libraries on Solaris systems.  Therefore, libtool
15241 *** is disabling shared libraries support.  We urge you to upgrade GNU
15242 *** binutils to release 2.9.1 or newer.  Another option is to modify
15243 *** your PATH or compiler configuration so that the native linker is
15244 *** used, and then restart.
15245
15246 EOF
15247       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15248         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15249         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15250       else
15251         ld_shlibs_GCJ=no
15252       fi
15253       ;;
15254
15255     sunos4*)
15256       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15257       wlarc=
15258       hardcode_direct_GCJ=yes
15259       hardcode_shlibpath_var_GCJ=no
15260       ;;
15261
15262   linux*)
15263     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15264         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15265         archive_cmds_GCJ="$tmp_archive_cmds"
15266       supports_anon_versioning=no
15267       case `$LD -v 2>/dev/null` in
15268         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15269         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15270         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15271         *\ 2.11.*) ;; # other 2.11 versions
15272         *) supports_anon_versioning=yes ;;
15273       esac
15274       if test $supports_anon_versioning = yes; then
15275         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15277 $echo "local: *; };" >> $output_objdir/$libname.ver~
15278         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15279       else
15280         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15281       fi
15282     else
15283       ld_shlibs_GCJ=no
15284     fi
15285     ;;
15286
15287     *)
15288       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15289         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15290         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15291       else
15292         ld_shlibs_GCJ=no
15293       fi
15294       ;;
15295     esac
15296
15297     if test "$ld_shlibs_GCJ" = yes; then
15298       runpath_var=LD_RUN_PATH
15299       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15300       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15301       # ancient GNU ld didn't support --whole-archive et. al.
15302       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15303         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15304       else
15305         whole_archive_flag_spec_GCJ=
15306       fi
15307     fi
15308   else
15309     # PORTME fill in a description of your system's linker (not GNU ld)
15310     case $host_os in
15311     aix3*)
15312       allow_undefined_flag_GCJ=unsupported
15313       always_export_symbols_GCJ=yes
15314       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15315       # Note: this linker hardcodes the directories in LIBPATH if there
15316       # are no directories specified by -L.
15317       hardcode_minus_L_GCJ=yes
15318       if test "$GCC" = yes && test -z "$link_static_flag"; then
15319         # Neither direct hardcoding nor static linking is supported with a
15320         # broken collect2.
15321         hardcode_direct_GCJ=unsupported
15322       fi
15323       ;;
15324
15325     aix4* | aix5*)
15326       if test "$host_cpu" = ia64; then
15327         # On IA64, the linker does run time linking by default, so we don't
15328         # have to do anything special.
15329         aix_use_runtimelinking=no
15330         exp_sym_flag='-Bexport'
15331         no_entry_flag=""
15332       else
15333         # If we're using GNU nm, then we don't want the "-C" option.
15334         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15335         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15336           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15337         else
15338           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15339         fi
15340         aix_use_runtimelinking=no
15341
15342         # Test if we are trying to use run time linking or normal
15343         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15344         # need to do runtime linking.
15345         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15346           for ld_flag in $LDFLAGS; do
15347           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15348             aix_use_runtimelinking=yes
15349             break
15350           fi
15351           done
15352         esac
15353
15354         exp_sym_flag='-bexport'
15355         no_entry_flag='-bnoentry'
15356       fi
15357
15358       # When large executables or shared objects are built, AIX ld can
15359       # have problems creating the table of contents.  If linking a library
15360       # or program results in "error TOC overflow" add -mminimal-toc to
15361       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15362       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15363
15364       archive_cmds_GCJ=''
15365       hardcode_direct_GCJ=yes
15366       hardcode_libdir_separator_GCJ=':'
15367       link_all_deplibs_GCJ=yes
15368
15369       if test "$GCC" = yes; then
15370         case $host_os in aix4.012|aix4.012.*)
15371         # We only want to do this on AIX 4.2 and lower, the check
15372         # below for broken collect2 doesn't work under 4.3+
15373           collect2name=`${CC} -print-prog-name=collect2`
15374           if test -f "$collect2name" && \
15375            strings "$collect2name" | grep resolve_lib_name >/dev/null
15376           then
15377           # We have reworked collect2
15378           hardcode_direct_GCJ=yes
15379           else
15380           # We have old collect2
15381           hardcode_direct_GCJ=unsupported
15382           # It fails to find uninstalled libraries when the uninstalled
15383           # path is not listed in the libpath.  Setting hardcode_minus_L
15384           # to unsupported forces relinking
15385           hardcode_minus_L_GCJ=yes
15386           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15387           hardcode_libdir_separator_GCJ=
15388           fi
15389         esac
15390         shared_flag='-shared'
15391       else
15392         # not using gcc
15393         if test "$host_cpu" = ia64; then
15394         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15395         # chokes on -Wl,-G. The following line is correct:
15396           shared_flag='-G'
15397         else
15398         if test "$aix_use_runtimelinking" = yes; then
15399             shared_flag='${wl}-G'
15400           else
15401             shared_flag='${wl}-bM:SRE'
15402         fi
15403         fi
15404       fi
15405
15406       # It seems that -bexpall does not export symbols beginning with
15407       # underscore (_), so it is better to generate a list of symbols to export.
15408       always_export_symbols_GCJ=yes
15409       if test "$aix_use_runtimelinking" = yes; then
15410         # Warning - without using the other runtime loading flags (-brtl),
15411         # -berok will link without error, but may produce a broken library.
15412         allow_undefined_flag_GCJ='-berok'
15413        # Determine the default libpath from the value encoded in an empty executable.
15414        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h.  */
15416
15417 int
15418 main ()
15419 {
15420
15421   ;
15422   return 0;
15423 }
15424 _ACEOF
15425 if ac_fn_c_try_link "$LINENO"; then :
15426
15427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15428 }'`
15429 # Check for a 64-bit object if we didn't find anything.
15430 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15431 }'`; fi
15432 fi
15433 rm -f core conftest.err conftest.$ac_objext \
15434     conftest$ac_exeext conftest.$ac_ext
15435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15436
15437        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15438         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15439        else
15440         if test "$host_cpu" = ia64; then
15441           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15442           allow_undefined_flag_GCJ="-z nodefs"
15443           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15444         else
15445          # Determine the default libpath from the value encoded in an empty executable.
15446          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h.  */
15448
15449 int
15450 main ()
15451 {
15452
15453   ;
15454   return 0;
15455 }
15456 _ACEOF
15457 if ac_fn_c_try_link "$LINENO"; then :
15458
15459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15460 }'`
15461 # Check for a 64-bit object if we didn't find anything.
15462 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15463 }'`; fi
15464 fi
15465 rm -f core conftest.err conftest.$ac_objext \
15466     conftest$ac_exeext conftest.$ac_ext
15467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15468
15469          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15470           # Warning - without using the other run time loading flags,
15471           # -berok will link without error, but may produce a broken library.
15472           no_undefined_flag_GCJ=' ${wl}-bernotok'
15473           allow_undefined_flag_GCJ=' ${wl}-berok'
15474           # -bexpall does not export symbols beginning with underscore (_)
15475           always_export_symbols_GCJ=yes
15476           # Exported symbols can be pulled into shared objects from archives
15477           whole_archive_flag_spec_GCJ=' '
15478           archive_cmds_need_lc_GCJ=yes
15479           # This is similar to how AIX traditionally builds it's shared libraries.
15480           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15481         fi
15482       fi
15483       ;;
15484
15485     amigaos*)
15486       archive_cmds_GCJ='$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)'
15487       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15488       hardcode_minus_L_GCJ=yes
15489       # see comment about different semantics on the GNU ld section
15490       ld_shlibs_GCJ=no
15491       ;;
15492
15493     bsdi4*)
15494       export_dynamic_flag_spec_GCJ=-rdynamic
15495       ;;
15496
15497     cygwin* | mingw* | pw32*)
15498       # When not using gcc, we currently assume that we are using
15499       # Microsoft Visual C++.
15500       # hardcode_libdir_flag_spec is actually meaningless, as there is
15501       # no search path for DLLs.
15502       hardcode_libdir_flag_spec_GCJ=' '
15503       allow_undefined_flag_GCJ=unsupported
15504       # Tell ltmain to make .lib files, not .a files.
15505       libext=lib
15506       # Tell ltmain to make .dll files, not .so files.
15507       shrext=".dll"
15508       # FIXME: Setting linknames here is a bad hack.
15509       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15510       # The linker will automatically build a .lib file if we build a DLL.
15511       old_archive_From_new_cmds_GCJ='true'
15512       # FIXME: Should let the user specify the lib program.
15513       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15514       fix_srcfile_path='`cygpath -w "$srcfile"`'
15515       enable_shared_with_static_runtimes_GCJ=yes
15516       ;;
15517
15518     darwin* | rhapsody*)
15519     if test "$GXX" = yes ; then
15520       archive_cmds_need_lc_GCJ=no
15521       case "$host_os" in
15522       rhapsody* | darwin1.[012])
15523         allow_undefined_flag_GCJ='-undefined suppress'
15524         ;;
15525       *) # Darwin 1.3 on
15526       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15527         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15528       else
15529         case ${MACOSX_DEPLOYMENT_TARGET} in
15530           10.[012])
15531             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15532             ;;
15533           10.*)
15534             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15535             ;;
15536         esac
15537       fi
15538         ;;
15539       esac
15540         lt_int_apple_cc_single_mod=no
15541         output_verbose_link_cmd='echo'
15542         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15543           lt_int_apple_cc_single_mod=yes
15544         fi
15545         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15546           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15547         else
15548         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15549       fi
15550       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15551       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15552         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15553           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15554         else
15555           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15556         fi
15557           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15558       hardcode_direct_GCJ=no
15559       hardcode_automatic_GCJ=yes
15560       hardcode_shlibpath_var_GCJ=unsupported
15561       whole_archive_flag_spec_GCJ='-all_load $convenience'
15562       link_all_deplibs_GCJ=yes
15563     else
15564       ld_shlibs_GCJ=no
15565     fi
15566       ;;
15567
15568     dgux*)
15569       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15571       hardcode_shlibpath_var_GCJ=no
15572       ;;
15573
15574     freebsd1*)
15575       ld_shlibs_GCJ=no
15576       ;;
15577
15578     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15579     # support.  Future versions do this automatically, but an explicit c++rt0.o
15580     # does not break anything, and helps significantly (at the cost of a little
15581     # extra space).
15582     freebsd2.2*)
15583       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15584       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15585       hardcode_direct_GCJ=yes
15586       hardcode_shlibpath_var_GCJ=no
15587       ;;
15588
15589     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15590     freebsd2*)
15591       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15592       hardcode_direct_GCJ=yes
15593       hardcode_minus_L_GCJ=yes
15594       hardcode_shlibpath_var_GCJ=no
15595       ;;
15596
15597     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15598     freebsd* | kfreebsd*-gnu)
15599       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15600       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15601       hardcode_direct_GCJ=yes
15602       hardcode_shlibpath_var_GCJ=no
15603       ;;
15604
15605     hpux9*)
15606       if test "$GCC" = yes; then
15607         archive_cmds_GCJ='$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'
15608       else
15609         archive_cmds_GCJ='$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'
15610       fi
15611       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15612       hardcode_libdir_separator_GCJ=:
15613       hardcode_direct_GCJ=yes
15614
15615       # hardcode_minus_L: Not really in the search PATH,
15616       # but as the default location of the library.
15617       hardcode_minus_L_GCJ=yes
15618       export_dynamic_flag_spec_GCJ='${wl}-E'
15619       ;;
15620
15621     hpux10* | hpux11*)
15622       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15623         case "$host_cpu" in
15624         hppa*64*|ia64*)
15625           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15626           ;;
15627         *)
15628           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15629           ;;
15630         esac
15631       else
15632         case "$host_cpu" in
15633         hppa*64*|ia64*)
15634           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15635           ;;
15636         *)
15637           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15638           ;;
15639         esac
15640       fi
15641       if test "$with_gnu_ld" = no; then
15642         case "$host_cpu" in
15643         hppa*64*)
15644           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15645           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15646           hardcode_libdir_separator_GCJ=:
15647           hardcode_direct_GCJ=no
15648           hardcode_shlibpath_var_GCJ=no
15649           ;;
15650         ia64*)
15651           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15652           hardcode_direct_GCJ=no
15653           hardcode_shlibpath_var_GCJ=no
15654
15655           # hardcode_minus_L: Not really in the search PATH,
15656           # but as the default location of the library.
15657           hardcode_minus_L_GCJ=yes
15658           ;;
15659         *)
15660           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15661           hardcode_libdir_separator_GCJ=:
15662           hardcode_direct_GCJ=yes
15663           export_dynamic_flag_spec_GCJ='${wl}-E'
15664
15665           # hardcode_minus_L: Not really in the search PATH,
15666           # but as the default location of the library.
15667           hardcode_minus_L_GCJ=yes
15668           ;;
15669         esac
15670       fi
15671       ;;
15672
15673     irix5* | irix6* | nonstopux*)
15674       if test "$GCC" = yes; then
15675         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15676       else
15677         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15678         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15679       fi
15680       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15681       hardcode_libdir_separator_GCJ=:
15682       link_all_deplibs_GCJ=yes
15683       ;;
15684
15685     netbsd*)
15686       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15687         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15688       else
15689         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15690       fi
15691       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15692       hardcode_direct_GCJ=yes
15693       hardcode_shlibpath_var_GCJ=no
15694       ;;
15695
15696     newsos6)
15697       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698       hardcode_direct_GCJ=yes
15699       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15700       hardcode_libdir_separator_GCJ=:
15701       hardcode_shlibpath_var_GCJ=no
15702       ;;
15703
15704     openbsd*)
15705       hardcode_direct_GCJ=yes
15706       hardcode_shlibpath_var_GCJ=no
15707       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15708         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15709         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15710         export_dynamic_flag_spec_GCJ='${wl}-E'
15711       else
15712        case $host_os in
15713          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15714            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15715            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15716            ;;
15717          *)
15718            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15719            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15720            ;;
15721        esac
15722       fi
15723       ;;
15724
15725     os2*)
15726       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15727       hardcode_minus_L_GCJ=yes
15728       allow_undefined_flag_GCJ=unsupported
15729       archive_cmds_GCJ='$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'
15730       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15731       ;;
15732
15733     osf3*)
15734       if test "$GCC" = yes; then
15735         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15736         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15737       else
15738         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15739         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15740       fi
15741       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15742       hardcode_libdir_separator_GCJ=:
15743       ;;
15744
15745     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15746       if test "$GCC" = yes; then
15747         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15748         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15749         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15750       else
15751         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15752         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15753         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15754         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15755
15756         # Both c and cxx compiler support -rpath directly
15757         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15758       fi
15759       hardcode_libdir_separator_GCJ=:
15760       ;;
15761
15762     sco3.2v5*)
15763       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764       hardcode_shlibpath_var_GCJ=no
15765       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15766       runpath_var=LD_RUN_PATH
15767       hardcode_runpath_var=yes
15768       ;;
15769
15770     solaris*)
15771       no_undefined_flag_GCJ=' -z text'
15772       if test "$GCC" = yes; then
15773         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15774         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15775           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15776       else
15777         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15779         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15780       fi
15781       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15782       hardcode_shlibpath_var_GCJ=no
15783       case $host_os in
15784       solaris2.[0-5] | solaris2.[0-5].*) ;;
15785       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15786         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15787       esac
15788       link_all_deplibs_GCJ=yes
15789       ;;
15790
15791     sunos4*)
15792       if test "x$host_vendor" = xsequent; then
15793         # Use $CC to link under sequent, because it throws in some extra .o
15794         # files that make .init and .fini sections work.
15795         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15796       else
15797         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15798       fi
15799       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15800       hardcode_direct_GCJ=yes
15801       hardcode_minus_L_GCJ=yes
15802       hardcode_shlibpath_var_GCJ=no
15803       ;;
15804
15805     sysv4)
15806       case $host_vendor in
15807         sni)
15808           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809           hardcode_direct_GCJ=yes # is this really true???
15810         ;;
15811         siemens)
15812           ## LD is ld it makes a PLAMLIB
15813           ## CC just makes a GrossModule.
15814           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15815           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15816           hardcode_direct_GCJ=no
15817         ;;
15818         motorola)
15819           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15820           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15821         ;;
15822       esac
15823       runpath_var='LD_RUN_PATH'
15824       hardcode_shlibpath_var_GCJ=no
15825       ;;
15826
15827     sysv4.3*)
15828       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829       hardcode_shlibpath_var_GCJ=no
15830       export_dynamic_flag_spec_GCJ='-Bexport'
15831       ;;
15832
15833     sysv4*MP*)
15834       if test -d /usr/nec; then
15835         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15836         hardcode_shlibpath_var_GCJ=no
15837         runpath_var=LD_RUN_PATH
15838         hardcode_runpath_var=yes
15839         ld_shlibs_GCJ=yes
15840       fi
15841       ;;
15842
15843     sysv4.2uw2*)
15844       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15845       hardcode_direct_GCJ=yes
15846       hardcode_minus_L_GCJ=no
15847       hardcode_shlibpath_var_GCJ=no
15848       hardcode_runpath_var=yes
15849       runpath_var=LD_RUN_PATH
15850       ;;
15851
15852    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15853       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15854       if test "$GCC" = yes; then
15855         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15856       else
15857         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15858       fi
15859       runpath_var='LD_RUN_PATH'
15860       hardcode_shlibpath_var_GCJ=no
15861       ;;
15862
15863     sysv5*)
15864       no_undefined_flag_GCJ=' -z text'
15865       # $CC -shared without GNU ld will not create a library from C++
15866       # object files and a static libstdc++, better avoid it by now
15867       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15868       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15869                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15870       hardcode_libdir_flag_spec_GCJ=
15871       hardcode_shlibpath_var_GCJ=no
15872       runpath_var='LD_RUN_PATH'
15873       ;;
15874
15875     uts4*)
15876       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15877       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15878       hardcode_shlibpath_var_GCJ=no
15879       ;;
15880
15881     *)
15882       ld_shlibs_GCJ=no
15883       ;;
15884     esac
15885   fi
15886
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
15888 $as_echo "$ld_shlibs_GCJ" >&6; }
15889 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15890
15891 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15892 if test "$GCC" = yes; then
15893   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15894 fi
15895
15896 #
15897 # Do we need to explicitly link libc?
15898 #
15899 case "x$archive_cmds_need_lc_GCJ" in
15900 x|xyes)
15901   # Assume -lc should be added
15902   archive_cmds_need_lc_GCJ=yes
15903
15904   if test "$enable_shared" = yes && test "$GCC" = yes; then
15905     case $archive_cmds_GCJ in
15906     *'~'*)
15907       # FIXME: we may have to deal with multi-command sequences.
15908       ;;
15909     '$CC '*)
15910       # Test whether the compiler implicitly links with -lc since on some
15911       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15912       # to ld, don't add -lc before -lgcc.
15913       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15914 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15915       $rm conftest*
15916       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15917
15918       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15919   (eval $ac_compile) 2>&5
15920   ac_status=$?
15921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15922   test $ac_status = 0; } 2>conftest.err; then
15923         soname=conftest
15924         lib=conftest
15925         libobjs=conftest.$ac_objext
15926         deplibs=
15927         wl=$lt_prog_compiler_wl_GCJ
15928         compiler_flags=-v
15929         linker_flags=-v
15930         verstring=
15931         output_objdir=.
15932         libname=conftest
15933         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15934         allow_undefined_flag_GCJ=
15935         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15936   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15937   ac_status=$?
15938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15939   test $ac_status = 0; }
15940         then
15941           archive_cmds_need_lc_GCJ=no
15942         else
15943           archive_cmds_need_lc_GCJ=yes
15944         fi
15945         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15946       else
15947         cat conftest.err 1>&5
15948       fi
15949       $rm conftest*
15950       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
15951 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
15952       ;;
15953     esac
15954   fi
15955   ;;
15956 esac
15957
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15959 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15960 library_names_spec=
15961 libname_spec='lib$name'
15962 soname_spec=
15963 shrext=".so"
15964 postinstall_cmds=
15965 postuninstall_cmds=
15966 finish_cmds=
15967 finish_eval=
15968 shlibpath_var=
15969 shlibpath_overrides_runpath=unknown
15970 version_type=none
15971 dynamic_linker="$host_os ld.so"
15972 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15973 if test "$GCC" = yes; then
15974   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15975   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15976     # if the path contains ";" then we assume it to be the separator
15977     # otherwise default to the standard path separator (i.e. ":") - it is
15978     # assumed that no part of a normal pathname contains ";" but that should
15979     # okay in the real world where ";" in dirpaths is itself problematic.
15980     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15981   else
15982     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15983   fi
15984 else
15985   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15986 fi
15987 need_lib_prefix=unknown
15988 hardcode_into_libs=no
15989
15990 # when you set need_version to no, make sure it does not cause -set_version
15991 # flags to be left without arguments
15992 need_version=unknown
15993
15994 case $host_os in
15995 aix3*)
15996   version_type=linux
15997   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15998   shlibpath_var=LIBPATH
15999
16000   # AIX 3 has no versioning support, so we append a major version to the name.
16001   soname_spec='${libname}${release}${shared_ext}$major'
16002   ;;
16003
16004 aix4* | aix5*)
16005   version_type=linux
16006   need_lib_prefix=no
16007   need_version=no
16008   hardcode_into_libs=yes
16009   if test "$host_cpu" = ia64; then
16010     # AIX 5 supports IA64
16011     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16012     shlibpath_var=LD_LIBRARY_PATH
16013   else
16014     # With GCC up to 2.95.x, collect2 would create an import file
16015     # for dependence libraries.  The import file would start with
16016     # the line `#! .'.  This would cause the generated library to
16017     # depend on `.', always an invalid library.  This was fixed in
16018     # development snapshots of GCC prior to 3.0.
16019     case $host_os in
16020       aix4 | aix4.[01] | aix4.[01].*)
16021       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16022            echo ' yes '
16023            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16024         :
16025       else
16026         can_build_shared=no
16027       fi
16028       ;;
16029     esac
16030     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16031     # soname into executable. Probably we can add versioning support to
16032     # collect2, so additional links can be useful in future.
16033     if test "$aix_use_runtimelinking" = yes; then
16034       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16035       # instead of lib<name>.a to let people know that these are not
16036       # typical AIX shared libraries.
16037       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16038     else
16039       # We preserve .a as extension for shared libraries through AIX4.2
16040       # and later when we are not doing run time linking.
16041       library_names_spec='${libname}${release}.a $libname.a'
16042       soname_spec='${libname}${release}${shared_ext}$major'
16043     fi
16044     shlibpath_var=LIBPATH
16045   fi
16046   ;;
16047
16048 amigaos*)
16049   library_names_spec='$libname.ixlibrary $libname.a'
16050   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16051   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'
16052   ;;
16053
16054 beos*)
16055   library_names_spec='${libname}${shared_ext}'
16056   dynamic_linker="$host_os ld.so"
16057   shlibpath_var=LIBRARY_PATH
16058   ;;
16059
16060 bsdi4*)
16061   version_type=linux
16062   need_version=no
16063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064   soname_spec='${libname}${release}${shared_ext}$major'
16065   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16066   shlibpath_var=LD_LIBRARY_PATH
16067   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16068   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16069   # the default ld.so.conf also contains /usr/contrib/lib and
16070   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16071   # libtool to hard-code these into programs
16072   ;;
16073
16074 cygwin* | mingw* | pw32*)
16075   version_type=windows
16076   shrext=".dll"
16077   need_version=no
16078   need_lib_prefix=no
16079
16080   case $GCC,$host_os in
16081   yes,cygwin* | yes,mingw* | yes,pw32*)
16082     library_names_spec='$libname.dll.a'
16083     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16084     postinstall_cmds='base_file=`basename \${file}`~
16085       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16086       dldir=$destdir/`dirname \$dlpath`~
16087       test -d \$dldir || mkdir -p \$dldir~
16088       $install_prog $dir/$dlname \$dldir/$dlname'
16089     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16090       dlpath=$dir/\$dldll~
16091        $rm \$dlpath'
16092     shlibpath_overrides_runpath=yes
16093
16094     case $host_os in
16095     cygwin*)
16096       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16097       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16098       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16099       ;;
16100     mingw*)
16101       # MinGW DLLs use traditional 'lib' prefix
16102       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16103       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16104       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16105         # It is most probably a Windows format PATH printed by
16106         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16107         # path with ; separators, and with drive letters. We can handle the
16108         # drive letters (cygwin fileutils understands them), so leave them,
16109         # especially as we might pass files found there to a mingw objdump,
16110         # which wouldn't understand a cygwinified path. Ahh.
16111         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16112       else
16113         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16114       fi
16115       ;;
16116     pw32*)
16117       # pw32 DLLs use 'pw' prefix rather than 'lib'
16118       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16119       ;;
16120     esac
16121     ;;
16122
16123   *)
16124     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16125     ;;
16126   esac
16127   dynamic_linker='Win32 ld.exe'
16128   # FIXME: first we should search . and the directory the executable is in
16129   shlibpath_var=PATH
16130   ;;
16131
16132 darwin* | rhapsody*)
16133   dynamic_linker="$host_os dyld"
16134   version_type=darwin
16135   need_lib_prefix=no
16136   need_version=no
16137   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16138   soname_spec='${libname}${release}${major}$shared_ext'
16139   shlibpath_overrides_runpath=yes
16140   shlibpath_var=DYLD_LIBRARY_PATH
16141   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16142   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16143   if test "$GCC" = yes; then
16144     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16145   else
16146     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16147   fi
16148   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16149   ;;
16150
16151 dgux*)
16152   version_type=linux
16153   need_lib_prefix=no
16154   need_version=no
16155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16156   soname_spec='${libname}${release}${shared_ext}$major'
16157   shlibpath_var=LD_LIBRARY_PATH
16158   ;;
16159
16160 freebsd1*)
16161   dynamic_linker=no
16162   ;;
16163
16164 kfreebsd*-gnu)
16165   version_type=linux
16166   need_lib_prefix=no
16167   need_version=no
16168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16169   soname_spec='${libname}${release}${shared_ext}$major'
16170   shlibpath_var=LD_LIBRARY_PATH
16171   shlibpath_overrides_runpath=no
16172   hardcode_into_libs=yes
16173   dynamic_linker='GNU ld.so'
16174   ;;
16175
16176 freebsd*)
16177   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16178   version_type=freebsd-$objformat
16179   case $version_type in
16180     freebsd-elf*)
16181       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16182       need_version=no
16183       need_lib_prefix=no
16184       ;;
16185     freebsd-*)
16186       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16187       need_version=yes
16188       ;;
16189   esac
16190   shlibpath_var=LD_LIBRARY_PATH
16191   case $host_os in
16192   freebsd2*)
16193     shlibpath_overrides_runpath=yes
16194     ;;
16195   freebsd3.01* | freebsdelf3.01*)
16196     shlibpath_overrides_runpath=yes
16197     hardcode_into_libs=yes
16198     ;;
16199   *) # from 3.2 on
16200     shlibpath_overrides_runpath=no
16201     hardcode_into_libs=yes
16202     ;;
16203   esac
16204   ;;
16205
16206 gnu*)
16207   version_type=linux
16208   need_lib_prefix=no
16209   need_version=no
16210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16211   soname_spec='${libname}${release}${shared_ext}$major'
16212   shlibpath_var=LD_LIBRARY_PATH
16213   hardcode_into_libs=yes
16214   ;;
16215
16216 hpux9* | hpux10* | hpux11*)
16217   # Give a soname corresponding to the major version so that dld.sl refuses to
16218   # link against other versions.
16219   version_type=sunos
16220   need_lib_prefix=no
16221   need_version=no
16222   case "$host_cpu" in
16223   ia64*)
16224     shrext='.so'
16225     hardcode_into_libs=yes
16226     dynamic_linker="$host_os dld.so"
16227     shlibpath_var=LD_LIBRARY_PATH
16228     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16230     soname_spec='${libname}${release}${shared_ext}$major'
16231     if test "X$HPUX_IA64_MODE" = X32; then
16232       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16233     else
16234       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16235     fi
16236     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16237     ;;
16238    hppa*64*)
16239      shrext='.sl'
16240      hardcode_into_libs=yes
16241      dynamic_linker="$host_os dld.sl"
16242      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16243      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16244      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245      soname_spec='${libname}${release}${shared_ext}$major'
16246      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16247      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16248      ;;
16249    *)
16250     shrext='.sl'
16251     dynamic_linker="$host_os dld.sl"
16252     shlibpath_var=SHLIB_PATH
16253     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16255     soname_spec='${libname}${release}${shared_ext}$major'
16256     ;;
16257   esac
16258   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16259   postinstall_cmds='chmod 555 $lib'
16260   ;;
16261
16262 irix5* | irix6* | nonstopux*)
16263   case $host_os in
16264     nonstopux*) version_type=nonstopux ;;
16265     *)
16266         if test "$lt_cv_prog_gnu_ld" = yes; then
16267                 version_type=linux
16268         else
16269                 version_type=irix
16270         fi ;;
16271   esac
16272   need_lib_prefix=no
16273   need_version=no
16274   soname_spec='${libname}${release}${shared_ext}$major'
16275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16276   case $host_os in
16277   irix5* | nonstopux*)
16278     libsuff= shlibsuff=
16279     ;;
16280   *)
16281     case $LD in # libtool.m4 will add one of these switches to LD
16282     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16283       libsuff= shlibsuff= libmagic=32-bit;;
16284     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16285       libsuff=32 shlibsuff=N32 libmagic=N32;;
16286     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16287       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16288     *) libsuff= shlibsuff= libmagic=never-match;;
16289     esac
16290     ;;
16291   esac
16292   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16293   shlibpath_overrides_runpath=no
16294   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16295   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16296   hardcode_into_libs=yes
16297   ;;
16298
16299 # No shared lib support for Linux oldld, aout, or coff.
16300 linux*oldld* | linux*aout* | linux*coff*)
16301   dynamic_linker=no
16302   ;;
16303
16304 # This must be Linux ELF.
16305 linux*)
16306   version_type=linux
16307   need_lib_prefix=no
16308   need_version=no
16309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310   soname_spec='${libname}${release}${shared_ext}$major'
16311   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16312   shlibpath_var=LD_LIBRARY_PATH
16313   shlibpath_overrides_runpath=no
16314   # This implies no fast_install, which is unacceptable.
16315   # Some rework will be needed to allow for fast_install
16316   # before this can be enabled.
16317   hardcode_into_libs=yes
16318
16319   # We used to test for /lib/ld.so.1 and disable shared libraries on
16320   # powerpc, because MkLinux only supported shared libraries with the
16321   # GNU dynamic linker.  Since this was broken with cross compilers,
16322   # most powerpc-linux boxes support dynamic linking these days and
16323   # people can always --disable-shared, the test was removed, and we
16324   # assume the GNU/Linux dynamic linker is in use.
16325   dynamic_linker='GNU/Linux ld.so'
16326   ;;
16327
16328 netbsd*)
16329   version_type=sunos
16330   need_lib_prefix=no
16331   need_version=no
16332   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16334     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16335     dynamic_linker='NetBSD (a.out) ld.so'
16336   else
16337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16338     soname_spec='${libname}${release}${shared_ext}$major'
16339     dynamic_linker='NetBSD ld.elf_so'
16340   fi
16341   shlibpath_var=LD_LIBRARY_PATH
16342   shlibpath_overrides_runpath=yes
16343   hardcode_into_libs=yes
16344   ;;
16345
16346 newsos6)
16347   version_type=linux
16348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349   shlibpath_var=LD_LIBRARY_PATH
16350   shlibpath_overrides_runpath=yes
16351   ;;
16352
16353 nto-qnx*)
16354   version_type=linux
16355   need_lib_prefix=no
16356   need_version=no
16357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358   soname_spec='${libname}${release}${shared_ext}$major'
16359   shlibpath_var=LD_LIBRARY_PATH
16360   shlibpath_overrides_runpath=yes
16361   ;;
16362
16363 openbsd*)
16364   version_type=sunos
16365   need_lib_prefix=no
16366   need_version=no
16367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16368   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16369   shlibpath_var=LD_LIBRARY_PATH
16370   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16371     case $host_os in
16372       openbsd2.[89] | openbsd2.[89].*)
16373         shlibpath_overrides_runpath=no
16374         ;;
16375       *)
16376         shlibpath_overrides_runpath=yes
16377         ;;
16378       esac
16379   else
16380     shlibpath_overrides_runpath=yes
16381   fi
16382   ;;
16383
16384 os2*)
16385   libname_spec='$name'
16386   shrext=".dll"
16387   need_lib_prefix=no
16388   library_names_spec='$libname${shared_ext} $libname.a'
16389   dynamic_linker='OS/2 ld.exe'
16390   shlibpath_var=LIBPATH
16391   ;;
16392
16393 osf3* | osf4* | osf5*)
16394   version_type=osf
16395   need_lib_prefix=no
16396   need_version=no
16397   soname_spec='${libname}${release}${shared_ext}$major'
16398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399   shlibpath_var=LD_LIBRARY_PATH
16400   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16401   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16402   ;;
16403
16404 sco3.2v5*)
16405   version_type=osf
16406   soname_spec='${libname}${release}${shared_ext}$major'
16407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408   shlibpath_var=LD_LIBRARY_PATH
16409   ;;
16410
16411 solaris*)
16412   version_type=linux
16413   need_lib_prefix=no
16414   need_version=no
16415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416   soname_spec='${libname}${release}${shared_ext}$major'
16417   shlibpath_var=LD_LIBRARY_PATH
16418   shlibpath_overrides_runpath=yes
16419   hardcode_into_libs=yes
16420   # ldd complains unless libraries are executable
16421   postinstall_cmds='chmod +x $lib'
16422   ;;
16423
16424 sunos4*)
16425   version_type=sunos
16426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16427   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16428   shlibpath_var=LD_LIBRARY_PATH
16429   shlibpath_overrides_runpath=yes
16430   if test "$with_gnu_ld" = yes; then
16431     need_lib_prefix=no
16432   fi
16433   need_version=yes
16434   ;;
16435
16436 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16437   version_type=linux
16438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16439   soname_spec='${libname}${release}${shared_ext}$major'
16440   shlibpath_var=LD_LIBRARY_PATH
16441   case $host_vendor in
16442     sni)
16443       shlibpath_overrides_runpath=no
16444       need_lib_prefix=no
16445       export_dynamic_flag_spec='${wl}-Blargedynsym'
16446       runpath_var=LD_RUN_PATH
16447       ;;
16448     siemens)
16449       need_lib_prefix=no
16450       ;;
16451     motorola)
16452       need_lib_prefix=no
16453       need_version=no
16454       shlibpath_overrides_runpath=no
16455       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16456       ;;
16457   esac
16458   ;;
16459
16460 sysv4*MP*)
16461   if test -d /usr/nec ;then
16462     version_type=linux
16463     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16464     soname_spec='$libname${shared_ext}.$major'
16465     shlibpath_var=LD_LIBRARY_PATH
16466   fi
16467   ;;
16468
16469 uts4*)
16470   version_type=linux
16471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472   soname_spec='${libname}${release}${shared_ext}$major'
16473   shlibpath_var=LD_LIBRARY_PATH
16474   ;;
16475
16476 *)
16477   dynamic_linker=no
16478   ;;
16479 esac
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16481 $as_echo "$dynamic_linker" >&6; }
16482 test "$dynamic_linker" = no && can_build_shared=no
16483
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16485 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16486 hardcode_action_GCJ=
16487 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16488    test -n "$runpath_var GCJ" || \
16489    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16490
16491   # We can hardcode non-existant directories.
16492   if test "$hardcode_direct_GCJ" != no &&
16493      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16494      # have to relink, otherwise we might link with an installed library
16495      # when we should be linking with a yet-to-be-installed one
16496      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16497      test "$hardcode_minus_L_GCJ" != no; then
16498     # Linking always hardcodes the temporary library directory.
16499     hardcode_action_GCJ=relink
16500   else
16501     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16502     hardcode_action_GCJ=immediate
16503   fi
16504 else
16505   # We cannot hardcode anything, or else we can only hardcode existing
16506   # directories.
16507   hardcode_action_GCJ=unsupported
16508 fi
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
16510 $as_echo "$hardcode_action_GCJ" >&6; }
16511
16512 if test "$hardcode_action_GCJ" = relink; then
16513   # Fast installation is not supported
16514   enable_fast_install=no
16515 elif test "$shlibpath_overrides_runpath" = yes ||
16516      test "$enable_shared" = no; then
16517   # Fast installation is not necessary
16518   enable_fast_install=needless
16519 fi
16520
16521 striplib=
16522 old_striplib=
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16524 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16525 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16526   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16527   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16529 $as_echo "yes" >&6; }
16530 else
16531 # FIXME - insert some real tests, host_os isn't really good enough
16532   case $host_os in
16533    darwin*)
16534        if test -n "$STRIP" ; then
16535          striplib="$STRIP -x"
16536          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16537 $as_echo "yes" >&6; }
16538        else
16539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16540 $as_echo "no" >&6; }
16541 fi
16542        ;;
16543    *)
16544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545 $as_echo "no" >&6; }
16546     ;;
16547   esac
16548 fi
16549
16550 if test "x$enable_dlopen" != xyes; then
16551   enable_dlopen=unknown
16552   enable_dlopen_self=unknown
16553   enable_dlopen_self_static=unknown
16554 else
16555   lt_cv_dlopen=no
16556   lt_cv_dlopen_libs=
16557
16558   case $host_os in
16559   beos*)
16560     lt_cv_dlopen="load_add_on"
16561     lt_cv_dlopen_libs=
16562     lt_cv_dlopen_self=yes
16563     ;;
16564
16565   mingw* | pw32*)
16566     lt_cv_dlopen="LoadLibrary"
16567     lt_cv_dlopen_libs=
16568    ;;
16569
16570   cygwin*)
16571     lt_cv_dlopen="dlopen"
16572     lt_cv_dlopen_libs=
16573    ;;
16574
16575   darwin*)
16576   # if libdl is installed we need to link against it
16577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16578 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16579 if ${ac_cv_lib_dl_dlopen+:} false; then :
16580   $as_echo_n "(cached) " >&6
16581 else
16582   ac_check_lib_save_LIBS=$LIBS
16583 LIBS="-ldl  $LIBS"
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h.  */
16586
16587 /* Override any GCC internal prototype to avoid an error.
16588    Use char because int might match the return type of a GCC
16589    builtin and then its argument prototype would still apply.  */
16590 #ifdef __cplusplus
16591 extern "C"
16592 #endif
16593 char dlopen ();
16594 int
16595 main ()
16596 {
16597 return dlopen ();
16598   ;
16599   return 0;
16600 }
16601 _ACEOF
16602 if ac_fn_c_try_link "$LINENO"; then :
16603   ac_cv_lib_dl_dlopen=yes
16604 else
16605   ac_cv_lib_dl_dlopen=no
16606 fi
16607 rm -f core conftest.err conftest.$ac_objext \
16608     conftest$ac_exeext conftest.$ac_ext
16609 LIBS=$ac_check_lib_save_LIBS
16610 fi
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16612 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16613 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16614   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16615 else
16616
16617     lt_cv_dlopen="dyld"
16618     lt_cv_dlopen_libs=
16619     lt_cv_dlopen_self=yes
16620
16621 fi
16622
16623    ;;
16624
16625   *)
16626     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16627 if test "x$ac_cv_func_shl_load" = xyes; then :
16628   lt_cv_dlopen="shl_load"
16629 else
16630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16631 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16632 if ${ac_cv_lib_dld_shl_load+:} false; then :
16633   $as_echo_n "(cached) " >&6
16634 else
16635   ac_check_lib_save_LIBS=$LIBS
16636 LIBS="-ldld  $LIBS"
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h.  */
16639
16640 /* Override any GCC internal prototype to avoid an error.
16641    Use char because int might match the return type of a GCC
16642    builtin and then its argument prototype would still apply.  */
16643 #ifdef __cplusplus
16644 extern "C"
16645 #endif
16646 char shl_load ();
16647 int
16648 main ()
16649 {
16650 return shl_load ();
16651   ;
16652   return 0;
16653 }
16654 _ACEOF
16655 if ac_fn_c_try_link "$LINENO"; then :
16656   ac_cv_lib_dld_shl_load=yes
16657 else
16658   ac_cv_lib_dld_shl_load=no
16659 fi
16660 rm -f core conftest.err conftest.$ac_objext \
16661     conftest$ac_exeext conftest.$ac_ext
16662 LIBS=$ac_check_lib_save_LIBS
16663 fi
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16665 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16666 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16667   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16668 else
16669   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16670 if test "x$ac_cv_func_dlopen" = xyes; then :
16671   lt_cv_dlopen="dlopen"
16672 else
16673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16674 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16675 if ${ac_cv_lib_dl_dlopen+:} false; then :
16676   $as_echo_n "(cached) " >&6
16677 else
16678   ac_check_lib_save_LIBS=$LIBS
16679 LIBS="-ldl  $LIBS"
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h.  */
16682
16683 /* Override any GCC internal prototype to avoid an error.
16684    Use char because int might match the return type of a GCC
16685    builtin and then its argument prototype would still apply.  */
16686 #ifdef __cplusplus
16687 extern "C"
16688 #endif
16689 char dlopen ();
16690 int
16691 main ()
16692 {
16693 return dlopen ();
16694   ;
16695   return 0;
16696 }
16697 _ACEOF
16698 if ac_fn_c_try_link "$LINENO"; then :
16699   ac_cv_lib_dl_dlopen=yes
16700 else
16701   ac_cv_lib_dl_dlopen=no
16702 fi
16703 rm -f core conftest.err conftest.$ac_objext \
16704     conftest$ac_exeext conftest.$ac_ext
16705 LIBS=$ac_check_lib_save_LIBS
16706 fi
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16708 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16709 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16710   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16711 else
16712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16713 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16714 if ${ac_cv_lib_svld_dlopen+:} false; then :
16715   $as_echo_n "(cached) " >&6
16716 else
16717   ac_check_lib_save_LIBS=$LIBS
16718 LIBS="-lsvld  $LIBS"
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h.  */
16721
16722 /* Override any GCC internal prototype to avoid an error.
16723    Use char because int might match the return type of a GCC
16724    builtin and then its argument prototype would still apply.  */
16725 #ifdef __cplusplus
16726 extern "C"
16727 #endif
16728 char dlopen ();
16729 int
16730 main ()
16731 {
16732 return dlopen ();
16733   ;
16734   return 0;
16735 }
16736 _ACEOF
16737 if ac_fn_c_try_link "$LINENO"; then :
16738   ac_cv_lib_svld_dlopen=yes
16739 else
16740   ac_cv_lib_svld_dlopen=no
16741 fi
16742 rm -f core conftest.err conftest.$ac_objext \
16743     conftest$ac_exeext conftest.$ac_ext
16744 LIBS=$ac_check_lib_save_LIBS
16745 fi
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16747 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16748 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16749   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16750 else
16751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16752 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16753 if ${ac_cv_lib_dld_dld_link+:} false; then :
16754   $as_echo_n "(cached) " >&6
16755 else
16756   ac_check_lib_save_LIBS=$LIBS
16757 LIBS="-ldld  $LIBS"
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h.  */
16760
16761 /* Override any GCC internal prototype to avoid an error.
16762    Use char because int might match the return type of a GCC
16763    builtin and then its argument prototype would still apply.  */
16764 #ifdef __cplusplus
16765 extern "C"
16766 #endif
16767 char dld_link ();
16768 int
16769 main ()
16770 {
16771 return dld_link ();
16772   ;
16773   return 0;
16774 }
16775 _ACEOF
16776 if ac_fn_c_try_link "$LINENO"; then :
16777   ac_cv_lib_dld_dld_link=yes
16778 else
16779   ac_cv_lib_dld_dld_link=no
16780 fi
16781 rm -f core conftest.err conftest.$ac_objext \
16782     conftest$ac_exeext conftest.$ac_ext
16783 LIBS=$ac_check_lib_save_LIBS
16784 fi
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16786 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16787 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16788   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16789 fi
16790
16791
16792 fi
16793
16794
16795 fi
16796
16797
16798 fi
16799
16800
16801 fi
16802
16803
16804 fi
16805
16806     ;;
16807   esac
16808
16809   if test "x$lt_cv_dlopen" != xno; then
16810     enable_dlopen=yes
16811   else
16812     enable_dlopen=no
16813   fi
16814
16815   case $lt_cv_dlopen in
16816   dlopen)
16817     save_CPPFLAGS="$CPPFLAGS"
16818     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16819
16820     save_LDFLAGS="$LDFLAGS"
16821     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16822
16823     save_LIBS="$LIBS"
16824     LIBS="$lt_cv_dlopen_libs $LIBS"
16825
16826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16827 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16828 if ${lt_cv_dlopen_self+:} false; then :
16829   $as_echo_n "(cached) " >&6
16830 else
16831           if test "$cross_compiling" = yes; then :
16832   lt_cv_dlopen_self=cross
16833 else
16834   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16835   lt_status=$lt_dlunknown
16836   cat > conftest.$ac_ext <<EOF
16837 #line 16837 "configure"
16838 #include "confdefs.h"
16839
16840 #if HAVE_DLFCN_H
16841 #include <dlfcn.h>
16842 #endif
16843
16844 #include <stdio.h>
16845
16846 #ifdef RTLD_GLOBAL
16847 #  define LT_DLGLOBAL           RTLD_GLOBAL
16848 #else
16849 #  ifdef DL_GLOBAL
16850 #    define LT_DLGLOBAL         DL_GLOBAL
16851 #  else
16852 #    define LT_DLGLOBAL         0
16853 #  endif
16854 #endif
16855
16856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16857    find out it does not work in some platform. */
16858 #ifndef LT_DLLAZY_OR_NOW
16859 #  ifdef RTLD_LAZY
16860 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16861 #  else
16862 #    ifdef DL_LAZY
16863 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16864 #    else
16865 #      ifdef RTLD_NOW
16866 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16867 #      else
16868 #        ifdef DL_NOW
16869 #          define LT_DLLAZY_OR_NOW      DL_NOW
16870 #        else
16871 #          define LT_DLLAZY_OR_NOW      0
16872 #        endif
16873 #      endif
16874 #    endif
16875 #  endif
16876 #endif
16877
16878 #ifdef __cplusplus
16879 extern "C" void exit (int);
16880 #endif
16881
16882 void fnord() { int i=42;}
16883 int main ()
16884 {
16885   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16886   int status = $lt_dlunknown;
16887
16888   if (self)
16889     {
16890       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16891       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16892       /* dlclose (self); */
16893     }
16894
16895     exit (status);
16896 }
16897 EOF
16898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16899   (eval $ac_link) 2>&5
16900   ac_status=$?
16901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16902   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16903     (./conftest; exit; ) 2>/dev/null
16904     lt_status=$?
16905     case x$lt_status in
16906       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16907       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16908       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16909     esac
16910   else :
16911     # compilation failed
16912     lt_cv_dlopen_self=no
16913   fi
16914 fi
16915 rm -fr conftest*
16916
16917
16918 fi
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16920 $as_echo "$lt_cv_dlopen_self" >&6; }
16921
16922     if test "x$lt_cv_dlopen_self" = xyes; then
16923       LDFLAGS="$LDFLAGS $link_static_flag"
16924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16925 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16926 if ${lt_cv_dlopen_self_static+:} false; then :
16927   $as_echo_n "(cached) " >&6
16928 else
16929           if test "$cross_compiling" = yes; then :
16930   lt_cv_dlopen_self_static=cross
16931 else
16932   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16933   lt_status=$lt_dlunknown
16934   cat > conftest.$ac_ext <<EOF
16935 #line 16935 "configure"
16936 #include "confdefs.h"
16937
16938 #if HAVE_DLFCN_H
16939 #include <dlfcn.h>
16940 #endif
16941
16942 #include <stdio.h>
16943
16944 #ifdef RTLD_GLOBAL
16945 #  define LT_DLGLOBAL           RTLD_GLOBAL
16946 #else
16947 #  ifdef DL_GLOBAL
16948 #    define LT_DLGLOBAL         DL_GLOBAL
16949 #  else
16950 #    define LT_DLGLOBAL         0
16951 #  endif
16952 #endif
16953
16954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16955    find out it does not work in some platform. */
16956 #ifndef LT_DLLAZY_OR_NOW
16957 #  ifdef RTLD_LAZY
16958 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16959 #  else
16960 #    ifdef DL_LAZY
16961 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16962 #    else
16963 #      ifdef RTLD_NOW
16964 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16965 #      else
16966 #        ifdef DL_NOW
16967 #          define LT_DLLAZY_OR_NOW      DL_NOW
16968 #        else
16969 #          define LT_DLLAZY_OR_NOW      0
16970 #        endif
16971 #      endif
16972 #    endif
16973 #  endif
16974 #endif
16975
16976 #ifdef __cplusplus
16977 extern "C" void exit (int);
16978 #endif
16979
16980 void fnord() { int i=42;}
16981 int main ()
16982 {
16983   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16984   int status = $lt_dlunknown;
16985
16986   if (self)
16987     {
16988       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16989       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16990       /* dlclose (self); */
16991     }
16992
16993     exit (status);
16994 }
16995 EOF
16996   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16997   (eval $ac_link) 2>&5
16998   ac_status=$?
16999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17000   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17001     (./conftest; exit; ) 2>/dev/null
17002     lt_status=$?
17003     case x$lt_status in
17004       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17005       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17006       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17007     esac
17008   else :
17009     # compilation failed
17010     lt_cv_dlopen_self_static=no
17011   fi
17012 fi
17013 rm -fr conftest*
17014
17015
17016 fi
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17018 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17019     fi
17020
17021     CPPFLAGS="$save_CPPFLAGS"
17022     LDFLAGS="$save_LDFLAGS"
17023     LIBS="$save_LIBS"
17024     ;;
17025   esac
17026
17027   case $lt_cv_dlopen_self in
17028   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17029   *) enable_dlopen_self=unknown ;;
17030   esac
17031
17032   case $lt_cv_dlopen_self_static in
17033   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17034   *) enable_dlopen_self_static=unknown ;;
17035   esac
17036 fi
17037
17038
17039 # The else clause should only fire when bootstrapping the
17040 # libtool distribution, otherwise you forgot to ship ltmain.sh
17041 # with your package, and you will get complaints that there are
17042 # no rules to generate ltmain.sh.
17043 if test -f "$ltmain"; then
17044   # See if we are running on zsh, and set the options which allow our commands through
17045   # without removal of \ escapes.
17046   if test -n "${ZSH_VERSION+set}" ; then
17047     setopt NO_GLOB_SUBST
17048   fi
17049   # Now quote all the things that may contain metacharacters while being
17050   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17051   # variables and quote the copies for generation of the libtool script.
17052   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17053     SED SHELL STRIP \
17054     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17055     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17056     deplibs_check_method reload_flag reload_cmds need_locks \
17057     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17058     lt_cv_sys_global_symbol_to_c_name_address \
17059     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17060     old_postinstall_cmds old_postuninstall_cmds \
17061     compiler_GCJ \
17062     CC_GCJ \
17063     LD_GCJ \
17064     lt_prog_compiler_wl_GCJ \
17065     lt_prog_compiler_pic_GCJ \
17066     lt_prog_compiler_static_GCJ \
17067     lt_prog_compiler_no_builtin_flag_GCJ \
17068     export_dynamic_flag_spec_GCJ \
17069     thread_safe_flag_spec_GCJ \
17070     whole_archive_flag_spec_GCJ \
17071     enable_shared_with_static_runtimes_GCJ \
17072     old_archive_cmds_GCJ \
17073     old_archive_from_new_cmds_GCJ \
17074     predep_objects_GCJ \
17075     postdep_objects_GCJ \
17076     predeps_GCJ \
17077     postdeps_GCJ \
17078     compiler_lib_search_path_GCJ \
17079     archive_cmds_GCJ \
17080     archive_expsym_cmds_GCJ \
17081     postinstall_cmds_GCJ \
17082     postuninstall_cmds_GCJ \
17083     old_archive_from_expsyms_cmds_GCJ \
17084     allow_undefined_flag_GCJ \
17085     no_undefined_flag_GCJ \
17086     export_symbols_cmds_GCJ \
17087     hardcode_libdir_flag_spec_GCJ \
17088     hardcode_libdir_flag_spec_ld_GCJ \
17089     hardcode_libdir_separator_GCJ \
17090     hardcode_automatic_GCJ \
17091     module_cmds_GCJ \
17092     module_expsym_cmds_GCJ \
17093     lt_cv_prog_compiler_c_o_GCJ \
17094     exclude_expsyms_GCJ \
17095     include_expsyms_GCJ; do
17096
17097     case $var in
17098     old_archive_cmds_GCJ | \
17099     old_archive_from_new_cmds_GCJ | \
17100     archive_cmds_GCJ | \
17101     archive_expsym_cmds_GCJ | \
17102     module_cmds_GCJ | \
17103     module_expsym_cmds_GCJ | \
17104     old_archive_from_expsyms_cmds_GCJ | \
17105     export_symbols_cmds_GCJ | \
17106     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17107     postinstall_cmds | postuninstall_cmds | \
17108     old_postinstall_cmds | old_postuninstall_cmds | \
17109     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17110       # Double-quote double-evaled strings.
17111       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17112       ;;
17113     *)
17114       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17115       ;;
17116     esac
17117   done
17118
17119   case $lt_echo in
17120   *'\$0 --fallback-echo"')
17121     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17122     ;;
17123   esac
17124
17125 cfgfile="$ofile"
17126
17127   cat <<__EOF__ >> "$cfgfile"
17128 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17129
17130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17131
17132 # Shell to use when invoking shell scripts.
17133 SHELL=$lt_SHELL
17134
17135 # Whether or not to build shared libraries.
17136 build_libtool_libs=$enable_shared
17137
17138 # Whether or not to build static libraries.
17139 build_old_libs=$enable_static
17140
17141 # Whether or not to add -lc for building shared libraries.
17142 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17143
17144 # Whether or not to disallow shared libs when runtime libs are static
17145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17146
17147 # Whether or not to optimize for fast installation.
17148 fast_install=$enable_fast_install
17149
17150 # The host system.
17151 host_alias=$host_alias
17152 host=$host
17153
17154 # An echo program that does not interpret backslashes.
17155 echo=$lt_echo
17156
17157 # The archiver.
17158 AR=$lt_AR
17159 AR_FLAGS=$lt_AR_FLAGS
17160
17161 # A C compiler.
17162 LTCC=$lt_LTCC
17163
17164 # A language-specific compiler.
17165 CC=$lt_compiler_GCJ
17166
17167 # Is the compiler the GNU C compiler?
17168 with_gcc=$GCC_GCJ
17169
17170 # An ERE matcher.
17171 EGREP=$lt_EGREP
17172
17173 # The linker used to build libraries.
17174 LD=$lt_LD_GCJ
17175
17176 # Whether we need hard or soft links.
17177 LN_S=$lt_LN_S
17178
17179 # A BSD-compatible nm program.
17180 NM=$lt_NM
17181
17182 # A symbol stripping program
17183 STRIP=$lt_STRIP
17184
17185 # Used to examine libraries when file_magic_cmd begins "file"
17186 MAGIC_CMD=$MAGIC_CMD
17187
17188 # Used on cygwin: DLL creation program.
17189 DLLTOOL="$DLLTOOL"
17190
17191 # Used on cygwin: object dumper.
17192 OBJDUMP="$OBJDUMP"
17193
17194 # Used on cygwin: assembler.
17195 AS="$AS"
17196
17197 # The name of the directory that contains temporary libtool files.
17198 objdir=$objdir
17199
17200 # How to create reloadable object files.
17201 reload_flag=$lt_reload_flag
17202 reload_cmds=$lt_reload_cmds
17203
17204 # How to pass a linker flag through the compiler.
17205 wl=$lt_lt_prog_compiler_wl_GCJ
17206
17207 # Object file suffix (normally "o").
17208 objext="$ac_objext"
17209
17210 # Old archive suffix (normally "a").
17211 libext="$libext"
17212
17213 # Shared library suffix (normally ".so").
17214 shrext='$shrext'
17215
17216 # Executable file suffix (normally "").
17217 exeext="$exeext"
17218
17219 # Additional compiler flags for building library objects.
17220 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17221 pic_mode=$pic_mode
17222
17223 # What is the maximum length of a command?
17224 max_cmd_len=$lt_cv_sys_max_cmd_len
17225
17226 # Does compiler simultaneously support -c and -o options?
17227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17228
17229 # Must we lock files when doing compilation ?
17230 need_locks=$lt_need_locks
17231
17232 # Do we need the lib prefix for modules?
17233 need_lib_prefix=$need_lib_prefix
17234
17235 # Do we need a version for libraries?
17236 need_version=$need_version
17237
17238 # Whether dlopen is supported.
17239 dlopen_support=$enable_dlopen
17240
17241 # Whether dlopen of programs is supported.
17242 dlopen_self=$enable_dlopen_self
17243
17244 # Whether dlopen of statically linked programs is supported.
17245 dlopen_self_static=$enable_dlopen_self_static
17246
17247 # Compiler flag to prevent dynamic linking.
17248 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17249
17250 # Compiler flag to turn off builtin functions.
17251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17252
17253 # Compiler flag to allow reflexive dlopens.
17254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17255
17256 # Compiler flag to generate shared objects directly from archives.
17257 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17258
17259 # Compiler flag to generate thread-safe objects.
17260 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17261
17262 # Library versioning type.
17263 version_type=$version_type
17264
17265 # Format of library name prefix.
17266 libname_spec=$lt_libname_spec
17267
17268 # List of archive names.  First name is the real one, the rest are links.
17269 # The last name is the one that the linker finds with -lNAME.
17270 library_names_spec=$lt_library_names_spec
17271
17272 # The coded name of the library, if different from the real name.
17273 soname_spec=$lt_soname_spec
17274
17275 # Commands used to build and install an old-style archive.
17276 RANLIB=$lt_RANLIB
17277 old_archive_cmds=$lt_old_archive_cmds_GCJ
17278 old_postinstall_cmds=$lt_old_postinstall_cmds
17279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17280
17281 # Create an old-style archive from a shared archive.
17282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17283
17284 # Create a temporary old-style archive to link instead of a shared archive.
17285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17286
17287 # Commands used to build and install a shared archive.
17288 archive_cmds=$lt_archive_cmds_GCJ
17289 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17290 postinstall_cmds=$lt_postinstall_cmds
17291 postuninstall_cmds=$lt_postuninstall_cmds
17292
17293 # Commands used to build a loadable module (assumed same as above if empty)
17294 module_cmds=$lt_module_cmds_GCJ
17295 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17296
17297 # Commands to strip libraries.
17298 old_striplib=$lt_old_striplib
17299 striplib=$lt_striplib
17300
17301 # Dependencies to place before the objects being linked to create a
17302 # shared library.
17303 predep_objects=$lt_predep_objects_GCJ
17304
17305 # Dependencies to place after the objects being linked to create a
17306 # shared library.
17307 postdep_objects=$lt_postdep_objects_GCJ
17308
17309 # Dependencies to place before the objects being linked to create a
17310 # shared library.
17311 predeps=$lt_predeps_GCJ
17312
17313 # Dependencies to place after the objects being linked to create a
17314 # shared library.
17315 postdeps=$lt_postdeps_GCJ
17316
17317 # The library search path used internally by the compiler when linking
17318 # a shared library.
17319 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17320
17321 # Method to check whether dependent libraries are shared objects.
17322 deplibs_check_method=$lt_deplibs_check_method
17323
17324 # Command to use when deplibs_check_method == file_magic.
17325 file_magic_cmd=$lt_file_magic_cmd
17326
17327 # Flag that allows shared libraries with undefined symbols to be built.
17328 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17329
17330 # Flag that forces no undefined symbols.
17331 no_undefined_flag=$lt_no_undefined_flag_GCJ
17332
17333 # Commands used to finish a libtool library installation in a directory.
17334 finish_cmds=$lt_finish_cmds
17335
17336 # Same as above, but a single script fragment to be evaled but not shown.
17337 finish_eval=$lt_finish_eval
17338
17339 # Take the output of nm and produce a listing of raw symbols and C names.
17340 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17341
17342 # Transform the output of nm in a proper C declaration
17343 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17344
17345 # Transform the output of nm in a C name address pair
17346 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17347
17348 # This is the shared library runtime path variable.
17349 runpath_var=$runpath_var
17350
17351 # This is the shared library path variable.
17352 shlibpath_var=$shlibpath_var
17353
17354 # Is shlibpath searched before the hard-coded library search path?
17355 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17356
17357 # How to hardcode a shared library path into an executable.
17358 hardcode_action=$hardcode_action_GCJ
17359
17360 # Whether we should hardcode library paths into libraries.
17361 hardcode_into_libs=$hardcode_into_libs
17362
17363 # Flag to hardcode \$libdir into a binary during linking.
17364 # This must work even if \$libdir does not exist.
17365 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17366
17367 # If ld is used when linking, flag to hardcode \$libdir into
17368 # a binary during linking. This must work even if \$libdir does
17369 # not exist.
17370 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17371
17372 # Whether we need a single -rpath flag with a separated argument.
17373 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17374
17375 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17376 # resulting binary.
17377 hardcode_direct=$hardcode_direct_GCJ
17378
17379 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17380 # resulting binary.
17381 hardcode_minus_L=$hardcode_minus_L_GCJ
17382
17383 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17384 # the resulting binary.
17385 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17386
17387 # Set to yes if building a shared library automatically hardcodes DIR into the library
17388 # and all subsequent libraries and executables linked against it.
17389 hardcode_automatic=$hardcode_automatic_GCJ
17390
17391 # Variables whose values should be saved in libtool wrapper scripts and
17392 # restored at relink time.
17393 variables_saved_for_relink="$variables_saved_for_relink"
17394
17395 # Whether libtool must link a program against all its dependency libraries.
17396 link_all_deplibs=$link_all_deplibs_GCJ
17397
17398 # Compile-time system search path for libraries
17399 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17400
17401 # Run-time system search path for libraries
17402 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17403
17404 # Fix the shell variable \$srcfile for the compiler.
17405 fix_srcfile_path="$fix_srcfile_path_GCJ"
17406
17407 # Set to yes if exported symbols are required.
17408 always_export_symbols=$always_export_symbols_GCJ
17409
17410 # The commands to list exported symbols.
17411 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17412
17413 # The commands to extract the exported symbol list from a shared archive.
17414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17415
17416 # Symbols that should not be listed in the preloaded symbols.
17417 exclude_expsyms=$lt_exclude_expsyms_GCJ
17418
17419 # Symbols that must always be exported.
17420 include_expsyms=$lt_include_expsyms_GCJ
17421
17422 # ### END LIBTOOL TAG CONFIG: $tagname
17423
17424 __EOF__
17425
17426
17427 else
17428   # If there is no Makefile yet, we rely on a make rule to execute
17429   # `config.status --recheck' to rerun these tests and create the
17430   # libtool script then.
17431   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17432   if test -f "$ltmain_in"; then
17433     test -f Makefile && make "$ltmain"
17434   fi
17435 fi
17436
17437
17438 ac_ext=c
17439 ac_cpp='$CPP $CPPFLAGS'
17440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17443
17444 CC="$lt_save_CC"
17445
17446         else
17447           tagname=""
17448         fi
17449         ;;
17450
17451       RC)
17452
17453
17454 # Source file extension for RC test sources.
17455 ac_ext=rc
17456
17457 # Object file extension for compiled RC test sources.
17458 objext=o
17459 objext_RC=$objext
17460
17461 # Code to be used in simple compile tests
17462 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17463
17464 # Code to be used in simple link tests
17465 lt_simple_link_test_code="$lt_simple_compile_test_code"
17466
17467 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17468
17469 # If no C compiler was specified, use CC.
17470 LTCC=${LTCC-"$CC"}
17471
17472 # Allow CC to be a program name with arguments.
17473 compiler=$CC
17474
17475
17476 # Allow CC to be a program name with arguments.
17477 lt_save_CC="$CC"
17478 CC=${RC-"windres"}
17479 compiler=$CC
17480 compiler_RC=$CC
17481 lt_cv_prog_compiler_c_o_RC=yes
17482
17483 # The else clause should only fire when bootstrapping the
17484 # libtool distribution, otherwise you forgot to ship ltmain.sh
17485 # with your package, and you will get complaints that there are
17486 # no rules to generate ltmain.sh.
17487 if test -f "$ltmain"; then
17488   # See if we are running on zsh, and set the options which allow our commands through
17489   # without removal of \ escapes.
17490   if test -n "${ZSH_VERSION+set}" ; then
17491     setopt NO_GLOB_SUBST
17492   fi
17493   # Now quote all the things that may contain metacharacters while being
17494   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17495   # variables and quote the copies for generation of the libtool script.
17496   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17497     SED SHELL STRIP \
17498     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17499     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17500     deplibs_check_method reload_flag reload_cmds need_locks \
17501     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17502     lt_cv_sys_global_symbol_to_c_name_address \
17503     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17504     old_postinstall_cmds old_postuninstall_cmds \
17505     compiler_RC \
17506     CC_RC \
17507     LD_RC \
17508     lt_prog_compiler_wl_RC \
17509     lt_prog_compiler_pic_RC \
17510     lt_prog_compiler_static_RC \
17511     lt_prog_compiler_no_builtin_flag_RC \
17512     export_dynamic_flag_spec_RC \
17513     thread_safe_flag_spec_RC \
17514     whole_archive_flag_spec_RC \
17515     enable_shared_with_static_runtimes_RC \
17516     old_archive_cmds_RC \
17517     old_archive_from_new_cmds_RC \
17518     predep_objects_RC \
17519     postdep_objects_RC \
17520     predeps_RC \
17521     postdeps_RC \
17522     compiler_lib_search_path_RC \
17523     archive_cmds_RC \
17524     archive_expsym_cmds_RC \
17525     postinstall_cmds_RC \
17526     postuninstall_cmds_RC \
17527     old_archive_from_expsyms_cmds_RC \
17528     allow_undefined_flag_RC \
17529     no_undefined_flag_RC \
17530     export_symbols_cmds_RC \
17531     hardcode_libdir_flag_spec_RC \
17532     hardcode_libdir_flag_spec_ld_RC \
17533     hardcode_libdir_separator_RC \
17534     hardcode_automatic_RC \
17535     module_cmds_RC \
17536     module_expsym_cmds_RC \
17537     lt_cv_prog_compiler_c_o_RC \
17538     exclude_expsyms_RC \
17539     include_expsyms_RC; do
17540
17541     case $var in
17542     old_archive_cmds_RC | \
17543     old_archive_from_new_cmds_RC | \
17544     archive_cmds_RC | \
17545     archive_expsym_cmds_RC | \
17546     module_cmds_RC | \
17547     module_expsym_cmds_RC | \
17548     old_archive_from_expsyms_cmds_RC | \
17549     export_symbols_cmds_RC | \
17550     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17551     postinstall_cmds | postuninstall_cmds | \
17552     old_postinstall_cmds | old_postuninstall_cmds | \
17553     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17554       # Double-quote double-evaled strings.
17555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17556       ;;
17557     *)
17558       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17559       ;;
17560     esac
17561   done
17562
17563   case $lt_echo in
17564   *'\$0 --fallback-echo"')
17565     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17566     ;;
17567   esac
17568
17569 cfgfile="$ofile"
17570
17571   cat <<__EOF__ >> "$cfgfile"
17572 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17573
17574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17575
17576 # Shell to use when invoking shell scripts.
17577 SHELL=$lt_SHELL
17578
17579 # Whether or not to build shared libraries.
17580 build_libtool_libs=$enable_shared
17581
17582 # Whether or not to build static libraries.
17583 build_old_libs=$enable_static
17584
17585 # Whether or not to add -lc for building shared libraries.
17586 build_libtool_need_lc=$archive_cmds_need_lc_RC
17587
17588 # Whether or not to disallow shared libs when runtime libs are static
17589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17590
17591 # Whether or not to optimize for fast installation.
17592 fast_install=$enable_fast_install
17593
17594 # The host system.
17595 host_alias=$host_alias
17596 host=$host
17597
17598 # An echo program that does not interpret backslashes.
17599 echo=$lt_echo
17600
17601 # The archiver.
17602 AR=$lt_AR
17603 AR_FLAGS=$lt_AR_FLAGS
17604
17605 # A C compiler.
17606 LTCC=$lt_LTCC
17607
17608 # A language-specific compiler.
17609 CC=$lt_compiler_RC
17610
17611 # Is the compiler the GNU C compiler?
17612 with_gcc=$GCC_RC
17613
17614 # An ERE matcher.
17615 EGREP=$lt_EGREP
17616
17617 # The linker used to build libraries.
17618 LD=$lt_LD_RC
17619
17620 # Whether we need hard or soft links.
17621 LN_S=$lt_LN_S
17622
17623 # A BSD-compatible nm program.
17624 NM=$lt_NM
17625
17626 # A symbol stripping program
17627 STRIP=$lt_STRIP
17628
17629 # Used to examine libraries when file_magic_cmd begins "file"
17630 MAGIC_CMD=$MAGIC_CMD
17631
17632 # Used on cygwin: DLL creation program.
17633 DLLTOOL="$DLLTOOL"
17634
17635 # Used on cygwin: object dumper.
17636 OBJDUMP="$OBJDUMP"
17637
17638 # Used on cygwin: assembler.
17639 AS="$AS"
17640
17641 # The name of the directory that contains temporary libtool files.
17642 objdir=$objdir
17643
17644 # How to create reloadable object files.
17645 reload_flag=$lt_reload_flag
17646 reload_cmds=$lt_reload_cmds
17647
17648 # How to pass a linker flag through the compiler.
17649 wl=$lt_lt_prog_compiler_wl_RC
17650
17651 # Object file suffix (normally "o").
17652 objext="$ac_objext"
17653
17654 # Old archive suffix (normally "a").
17655 libext="$libext"
17656
17657 # Shared library suffix (normally ".so").
17658 shrext='$shrext'
17659
17660 # Executable file suffix (normally "").
17661 exeext="$exeext"
17662
17663 # Additional compiler flags for building library objects.
17664 pic_flag=$lt_lt_prog_compiler_pic_RC
17665 pic_mode=$pic_mode
17666
17667 # What is the maximum length of a command?
17668 max_cmd_len=$lt_cv_sys_max_cmd_len
17669
17670 # Does compiler simultaneously support -c and -o options?
17671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17672
17673 # Must we lock files when doing compilation ?
17674 need_locks=$lt_need_locks
17675
17676 # Do we need the lib prefix for modules?
17677 need_lib_prefix=$need_lib_prefix
17678
17679 # Do we need a version for libraries?
17680 need_version=$need_version
17681
17682 # Whether dlopen is supported.
17683 dlopen_support=$enable_dlopen
17684
17685 # Whether dlopen of programs is supported.
17686 dlopen_self=$enable_dlopen_self
17687
17688 # Whether dlopen of statically linked programs is supported.
17689 dlopen_self_static=$enable_dlopen_self_static
17690
17691 # Compiler flag to prevent dynamic linking.
17692 link_static_flag=$lt_lt_prog_compiler_static_RC
17693
17694 # Compiler flag to turn off builtin functions.
17695 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17696
17697 # Compiler flag to allow reflexive dlopens.
17698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17699
17700 # Compiler flag to generate shared objects directly from archives.
17701 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17702
17703 # Compiler flag to generate thread-safe objects.
17704 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17705
17706 # Library versioning type.
17707 version_type=$version_type
17708
17709 # Format of library name prefix.
17710 libname_spec=$lt_libname_spec
17711
17712 # List of archive names.  First name is the real one, the rest are links.
17713 # The last name is the one that the linker finds with -lNAME.
17714 library_names_spec=$lt_library_names_spec
17715
17716 # The coded name of the library, if different from the real name.
17717 soname_spec=$lt_soname_spec
17718
17719 # Commands used to build and install an old-style archive.
17720 RANLIB=$lt_RANLIB
17721 old_archive_cmds=$lt_old_archive_cmds_RC
17722 old_postinstall_cmds=$lt_old_postinstall_cmds
17723 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17724
17725 # Create an old-style archive from a shared archive.
17726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17727
17728 # Create a temporary old-style archive to link instead of a shared archive.
17729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17730
17731 # Commands used to build and install a shared archive.
17732 archive_cmds=$lt_archive_cmds_RC
17733 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17734 postinstall_cmds=$lt_postinstall_cmds
17735 postuninstall_cmds=$lt_postuninstall_cmds
17736
17737 # Commands used to build a loadable module (assumed same as above if empty)
17738 module_cmds=$lt_module_cmds_RC
17739 module_expsym_cmds=$lt_module_expsym_cmds_RC
17740
17741 # Commands to strip libraries.
17742 old_striplib=$lt_old_striplib
17743 striplib=$lt_striplib
17744
17745 # Dependencies to place before the objects being linked to create a
17746 # shared library.
17747 predep_objects=$lt_predep_objects_RC
17748
17749 # Dependencies to place after the objects being linked to create a
17750 # shared library.
17751 postdep_objects=$lt_postdep_objects_RC
17752
17753 # Dependencies to place before the objects being linked to create a
17754 # shared library.
17755 predeps=$lt_predeps_RC
17756
17757 # Dependencies to place after the objects being linked to create a
17758 # shared library.
17759 postdeps=$lt_postdeps_RC
17760
17761 # The library search path used internally by the compiler when linking
17762 # a shared library.
17763 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17764
17765 # Method to check whether dependent libraries are shared objects.
17766 deplibs_check_method=$lt_deplibs_check_method
17767
17768 # Command to use when deplibs_check_method == file_magic.
17769 file_magic_cmd=$lt_file_magic_cmd
17770
17771 # Flag that allows shared libraries with undefined symbols to be built.
17772 allow_undefined_flag=$lt_allow_undefined_flag_RC
17773
17774 # Flag that forces no undefined symbols.
17775 no_undefined_flag=$lt_no_undefined_flag_RC
17776
17777 # Commands used to finish a libtool library installation in a directory.
17778 finish_cmds=$lt_finish_cmds
17779
17780 # Same as above, but a single script fragment to be evaled but not shown.
17781 finish_eval=$lt_finish_eval
17782
17783 # Take the output of nm and produce a listing of raw symbols and C names.
17784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17785
17786 # Transform the output of nm in a proper C declaration
17787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17788
17789 # Transform the output of nm in a C name address pair
17790 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17791
17792 # This is the shared library runtime path variable.
17793 runpath_var=$runpath_var
17794
17795 # This is the shared library path variable.
17796 shlibpath_var=$shlibpath_var
17797
17798 # Is shlibpath searched before the hard-coded library search path?
17799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17800
17801 # How to hardcode a shared library path into an executable.
17802 hardcode_action=$hardcode_action_RC
17803
17804 # Whether we should hardcode library paths into libraries.
17805 hardcode_into_libs=$hardcode_into_libs
17806
17807 # Flag to hardcode \$libdir into a binary during linking.
17808 # This must work even if \$libdir does not exist.
17809 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17810
17811 # If ld is used when linking, flag to hardcode \$libdir into
17812 # a binary during linking. This must work even if \$libdir does
17813 # not exist.
17814 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17815
17816 # Whether we need a single -rpath flag with a separated argument.
17817 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17818
17819 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17820 # resulting binary.
17821 hardcode_direct=$hardcode_direct_RC
17822
17823 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17824 # resulting binary.
17825 hardcode_minus_L=$hardcode_minus_L_RC
17826
17827 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17828 # the resulting binary.
17829 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17830
17831 # Set to yes if building a shared library automatically hardcodes DIR into the library
17832 # and all subsequent libraries and executables linked against it.
17833 hardcode_automatic=$hardcode_automatic_RC
17834
17835 # Variables whose values should be saved in libtool wrapper scripts and
17836 # restored at relink time.
17837 variables_saved_for_relink="$variables_saved_for_relink"
17838
17839 # Whether libtool must link a program against all its dependency libraries.
17840 link_all_deplibs=$link_all_deplibs_RC
17841
17842 # Compile-time system search path for libraries
17843 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17844
17845 # Run-time system search path for libraries
17846 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17847
17848 # Fix the shell variable \$srcfile for the compiler.
17849 fix_srcfile_path="$fix_srcfile_path_RC"
17850
17851 # Set to yes if exported symbols are required.
17852 always_export_symbols=$always_export_symbols_RC
17853
17854 # The commands to list exported symbols.
17855 export_symbols_cmds=$lt_export_symbols_cmds_RC
17856
17857 # The commands to extract the exported symbol list from a shared archive.
17858 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17859
17860 # Symbols that should not be listed in the preloaded symbols.
17861 exclude_expsyms=$lt_exclude_expsyms_RC
17862
17863 # Symbols that must always be exported.
17864 include_expsyms=$lt_include_expsyms_RC
17865
17866 # ### END LIBTOOL TAG CONFIG: $tagname
17867
17868 __EOF__
17869
17870
17871 else
17872   # If there is no Makefile yet, we rely on a make rule to execute
17873   # `config.status --recheck' to rerun these tests and create the
17874   # libtool script then.
17875   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17876   if test -f "$ltmain_in"; then
17877     test -f Makefile && make "$ltmain"
17878   fi
17879 fi
17880
17881
17882 ac_ext=c
17883 ac_cpp='$CPP $CPPFLAGS'
17884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17887
17888 CC="$lt_save_CC"
17889
17890         ;;
17891
17892       *)
17893         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
17894         ;;
17895       esac
17896
17897       # Append the new tag name to the list of available tags.
17898       if test -n "$tagname" ; then
17899       available_tags="$available_tags $tagname"
17900     fi
17901     fi
17902   done
17903   IFS="$lt_save_ifs"
17904
17905   # Now substitute the updated list of available tags.
17906   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17907     mv "${ofile}T" "$ofile"
17908     chmod +x "$ofile"
17909   else
17910     rm -f "${ofile}T"
17911     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
17912   fi
17913 fi
17914
17915
17916
17917 # This can be used to rebuild libtool when needed
17918 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17919
17920 # Always use our own libtool.
17921 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17922
17923 # Prevent multiple expansion
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944 #  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
17945 #       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
17946
17947 # Settings for optional paths
17948
17949 # Check whether --with-site_includes was given.
17950 if test "${with_site_includes+set}" = set; then :
17951   withval=$with_site_includes; for dir in `echo "$with_site_includes"|sed 's/:/ /'`
17952 do
17953     SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir"
17954 done
17955 CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^  *//'`
17956
17957 else
17958   if test -f /sw/include/db5/db.h; then
17959         CFLAGS="-I/sw/include/db5 $CFLAGS"
17960 elif test -f /sw/include/db4/db.h; then
17961         CFLAGS="-I/sw/include/db4 $CFLAGS"
17962 elif test -f /sw/include/db3/db.h; then
17963         CFLAGS="-I/sw/include/db3 $CFLAGS"
17964 fi
17965
17966 fi
17967
17968
17969
17970 # Check whether --with-site_libraries was given.
17971 if test "${with_site_libraries+set}" = set; then :
17972   withval=$with_site_libraries; for dir in `echo "$with_site_libraries"|sed 's/:/ /'`
17973 do
17974     SITE_LIBS="$SITE_LIBS -L$dir"
17975 done
17976 LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^  *//'`
17977 LIBS="-ldb $LIBS"
17978
17979 else
17980   if test -f /sw/include/db5/db.h; then
17981         LIBS="-L/sw/lib -ldb-5 $LIBS"
17982 elif test -f /sw/include/db4/db.h; then
17983         LIBS="-L/sw/lib -ldb-4 $LIBS"
17984 elif test -f /sw/include/db3/db.h; then
17985         LIBS="-L/sw/lib -ldb-3 $LIBS"
17986 else
17987         LIBS="-ldb $LIBS"
17988 fi
17989
17990 fi
17991
17992
17993 # Checks for libraries.
17994
17995 # Checks for header files.
17996
17997 # Checks for typedefs, structures, and compiler characteristics.
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17999 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18000 if ${ac_cv_c_const+:} false; then :
18001   $as_echo_n "(cached) " >&6
18002 else
18003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h.  */
18005
18006 int
18007 main ()
18008 {
18009
18010 #ifndef __cplusplus
18011   /* Ultrix mips cc rejects this sort of thing.  */
18012   typedef int charset[2];
18013   const charset cs = { 0, 0 };
18014   /* SunOS 4.1.1 cc rejects this.  */
18015   char const *const *pcpcc;
18016   char **ppc;
18017   /* NEC SVR4.0.2 mips cc rejects this.  */
18018   struct point {int x, y;};
18019   static struct point const zero = {0,0};
18020   /* AIX XL C 1.02.0.0 rejects this.
18021      It does not let you subtract one const X* pointer from another in
18022      an arm of an if-expression whose if-part is not a constant
18023      expression */
18024   const char *g = "string";
18025   pcpcc = &g + (g ? g-g : 0);
18026   /* HPUX 7.0 cc rejects these. */
18027   ++pcpcc;
18028   ppc = (char**) pcpcc;
18029   pcpcc = (char const *const *) ppc;
18030   { /* SCO 3.2v4 cc rejects this sort of thing.  */
18031     char tx;
18032     char *t = &tx;
18033     char const *s = 0 ? (char *) 0 : (char const *) 0;
18034
18035     *t++ = 0;
18036     if (s) return 0;
18037   }
18038   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18039     int x[] = {25, 17};
18040     const int *foo = &x[0];
18041     ++foo;
18042   }
18043   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18044     typedef const int *iptr;
18045     iptr p = 0;
18046     ++p;
18047   }
18048   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
18049        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18050     struct s { int j; const int *ap[3]; } bx;
18051     struct s *b = &bx; b->j = 5;
18052   }
18053   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18054     const int foo = 10;
18055     if (!foo) return 0;
18056   }
18057   return !cs[0] && !zero.x;
18058 #endif
18059
18060   ;
18061   return 0;
18062 }
18063 _ACEOF
18064 if ac_fn_c_try_compile "$LINENO"; then :
18065   ac_cv_c_const=yes
18066 else
18067   ac_cv_c_const=no
18068 fi
18069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18070 fi
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18072 $as_echo "$ac_cv_c_const" >&6; }
18073 if test $ac_cv_c_const = no; then
18074
18075 $as_echo "#define const /**/" >>confdefs.h
18076
18077 fi
18078
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18080 $as_echo_n "checking for inline... " >&6; }
18081 if ${ac_cv_c_inline+:} false; then :
18082   $as_echo_n "(cached) " >&6
18083 else
18084   ac_cv_c_inline=no
18085 for ac_kw in inline __inline__ __inline; do
18086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h.  */
18088 #ifndef __cplusplus
18089 typedef int foo_t;
18090 static $ac_kw foo_t static_foo () {return 0; }
18091 $ac_kw foo_t foo () {return 0; }
18092 #endif
18093
18094 _ACEOF
18095 if ac_fn_c_try_compile "$LINENO"; then :
18096   ac_cv_c_inline=$ac_kw
18097 fi
18098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18099   test "$ac_cv_c_inline" != no && break
18100 done
18101
18102 fi
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18104 $as_echo "$ac_cv_c_inline" >&6; }
18105
18106 case $ac_cv_c_inline in
18107   inline | yes) ;;
18108   *)
18109     case $ac_cv_c_inline in
18110       no) ac_val=;;
18111       *) ac_val=$ac_cv_c_inline;;
18112     esac
18113     cat >>confdefs.h <<_ACEOF
18114 #ifndef __cplusplus
18115 #define inline $ac_val
18116 #endif
18117 _ACEOF
18118     ;;
18119 esac
18120
18121
18122 # The cast to long int works around a bug in the HP C Compiler
18123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18125 # This bug is HP SR number 8606223364.
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18127 $as_echo_n "checking size of int... " >&6; }
18128 if ${ac_cv_sizeof_int+:} false; then :
18129   $as_echo_n "(cached) " >&6
18130 else
18131   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
18132
18133 else
18134   if test "$ac_cv_type_int" = yes; then
18135      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18137 as_fn_error 77 "cannot compute sizeof (int)
18138 See \`config.log' for more details" "$LINENO" 5; }
18139    else
18140      ac_cv_sizeof_int=0
18141    fi
18142 fi
18143
18144 fi
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18146 $as_echo "$ac_cv_sizeof_int" >&6; }
18147
18148
18149
18150 cat >>confdefs.h <<_ACEOF
18151 #define SIZEOF_INT $ac_cv_sizeof_int
18152 _ACEOF
18153
18154
18155 # The cast to long int works around a bug in the HP C Compiler
18156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18158 # This bug is HP SR number 8606223364.
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18160 $as_echo_n "checking size of long... " >&6; }
18161 if ${ac_cv_sizeof_long+:} false; then :
18162   $as_echo_n "(cached) " >&6
18163 else
18164   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
18165
18166 else
18167   if test "$ac_cv_type_long" = yes; then
18168      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18170 as_fn_error 77 "cannot compute sizeof (long)
18171 See \`config.log' for more details" "$LINENO" 5; }
18172    else
18173      ac_cv_sizeof_long=0
18174    fi
18175 fi
18176
18177 fi
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18179 $as_echo "$ac_cv_sizeof_long" >&6; }
18180
18181
18182
18183 cat >>confdefs.h <<_ACEOF
18184 #define SIZEOF_LONG $ac_cv_sizeof_long
18185 _ACEOF
18186
18187
18188 # The cast to long int works around a bug in the HP C Compiler
18189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18191 # This bug is HP SR number 8606223364.
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
18193 $as_echo_n "checking size of long long... " >&6; }
18194 if ${ac_cv_sizeof_long_long+:} false; then :
18195   $as_echo_n "(cached) " >&6
18196 else
18197   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
18198
18199 else
18200   if test "$ac_cv_type_long_long" = yes; then
18201      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18203 as_fn_error 77 "cannot compute sizeof (long long)
18204 See \`config.log' for more details" "$LINENO" 5; }
18205    else
18206      ac_cv_sizeof_long_long=0
18207    fi
18208 fi
18209
18210 fi
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
18212 $as_echo "$ac_cv_sizeof_long_long" >&6; }
18213
18214
18215
18216 cat >>confdefs.h <<_ACEOF
18217 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18218 _ACEOF
18219
18220
18221 # The cast to long int works around a bug in the HP C Compiler
18222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18224 # This bug is HP SR number 8606223364.
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18226 $as_echo_n "checking size of void *... " >&6; }
18227 if ${ac_cv_sizeof_void_p+:} false; then :
18228   $as_echo_n "(cached) " >&6
18229 else
18230   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
18231
18232 else
18233   if test "$ac_cv_type_void_p" = yes; then
18234      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18236 as_fn_error 77 "cannot compute sizeof (void *)
18237 See \`config.log' for more details" "$LINENO" 5; }
18238    else
18239      ac_cv_sizeof_void_p=0
18240    fi
18241 fi
18242
18243 fi
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18245 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18246
18247
18248
18249 cat >>confdefs.h <<_ACEOF
18250 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18251 _ACEOF
18252
18253
18254
18255 # Checks for library functions.
18256 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18257 if test "x$ac_cv_type_size_t" = xyes; then :
18258
18259 else
18260
18261 cat >>confdefs.h <<_ACEOF
18262 #define size_t unsigned int
18263 _ACEOF
18264
18265 fi
18266
18267 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18268 # for constant arguments.  Useless!
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18270 $as_echo_n "checking for working alloca.h... " >&6; }
18271 if ${ac_cv_working_alloca_h+:} false; then :
18272   $as_echo_n "(cached) " >&6
18273 else
18274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275 /* end confdefs.h.  */
18276 #include <alloca.h>
18277 int
18278 main ()
18279 {
18280 char *p = (char *) alloca (2 * sizeof (int));
18281                           if (p) return 0;
18282   ;
18283   return 0;
18284 }
18285 _ACEOF
18286 if ac_fn_c_try_link "$LINENO"; then :
18287   ac_cv_working_alloca_h=yes
18288 else
18289   ac_cv_working_alloca_h=no
18290 fi
18291 rm -f core conftest.err conftest.$ac_objext \
18292     conftest$ac_exeext conftest.$ac_ext
18293 fi
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18295 $as_echo "$ac_cv_working_alloca_h" >&6; }
18296 if test $ac_cv_working_alloca_h = yes; then
18297
18298 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18299
18300 fi
18301
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18303 $as_echo_n "checking for alloca... " >&6; }
18304 if ${ac_cv_func_alloca_works+:} false; then :
18305   $as_echo_n "(cached) " >&6
18306 else
18307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h.  */
18309 #ifdef __GNUC__
18310 # define alloca __builtin_alloca
18311 #else
18312 # ifdef _MSC_VER
18313 #  include <malloc.h>
18314 #  define alloca _alloca
18315 # else
18316 #  ifdef HAVE_ALLOCA_H
18317 #   include <alloca.h>
18318 #  else
18319 #   ifdef _AIX
18320  #pragma alloca
18321 #   else
18322 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18323 void *alloca (size_t);
18324 #    endif
18325 #   endif
18326 #  endif
18327 # endif
18328 #endif
18329
18330 int
18331 main ()
18332 {
18333 char *p = (char *) alloca (1);
18334                                     if (p) return 0;
18335   ;
18336   return 0;
18337 }
18338 _ACEOF
18339 if ac_fn_c_try_link "$LINENO"; then :
18340   ac_cv_func_alloca_works=yes
18341 else
18342   ac_cv_func_alloca_works=no
18343 fi
18344 rm -f core conftest.err conftest.$ac_objext \
18345     conftest$ac_exeext conftest.$ac_ext
18346 fi
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18348 $as_echo "$ac_cv_func_alloca_works" >&6; }
18349
18350 if test $ac_cv_func_alloca_works = yes; then
18351
18352 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18353
18354 else
18355   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18356 # that cause trouble.  Some versions do not even contain alloca or
18357 # contain a buggy version.  If you still want to use their alloca,
18358 # use ar to extract alloca.o from them instead of compiling alloca.c.
18359
18360 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18361
18362 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18363
18364
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18366 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18367 if ${ac_cv_os_cray+:} false; then :
18368   $as_echo_n "(cached) " >&6
18369 else
18370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h.  */
18372 #if defined CRAY && ! defined CRAY2
18373 webecray
18374 #else
18375 wenotbecray
18376 #endif
18377
18378 _ACEOF
18379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18380   $EGREP "webecray" >/dev/null 2>&1; then :
18381   ac_cv_os_cray=yes
18382 else
18383   ac_cv_os_cray=no
18384 fi
18385 rm -f conftest*
18386
18387 fi
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18389 $as_echo "$ac_cv_os_cray" >&6; }
18390 if test $ac_cv_os_cray = yes; then
18391   for ac_func in _getb67 GETB67 getb67; do
18392     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18393 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18394 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18395
18396 cat >>confdefs.h <<_ACEOF
18397 #define CRAY_STACKSEG_END $ac_func
18398 _ACEOF
18399
18400     break
18401 fi
18402
18403   done
18404 fi
18405
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18407 $as_echo_n "checking stack direction for C alloca... " >&6; }
18408 if ${ac_cv_c_stack_direction+:} false; then :
18409   $as_echo_n "(cached) " >&6
18410 else
18411   if test "$cross_compiling" = yes; then :
18412   ac_cv_c_stack_direction=0
18413 else
18414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h.  */
18416 $ac_includes_default
18417 int
18418 find_stack_direction (int *addr, int depth)
18419 {
18420   int dir, dummy = 0;
18421   if (! addr)
18422     addr = &dummy;
18423   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18424   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18425   return dir + dummy;
18426 }
18427
18428 int
18429 main (int argc, char **argv)
18430 {
18431   return find_stack_direction (0, argc + !argv + 20) < 0;
18432 }
18433 _ACEOF
18434 if ac_fn_c_try_run "$LINENO"; then :
18435   ac_cv_c_stack_direction=1
18436 else
18437   ac_cv_c_stack_direction=-1
18438 fi
18439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18440   conftest.$ac_objext conftest.beam conftest.$ac_ext
18441 fi
18442
18443 fi
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18445 $as_echo "$ac_cv_c_stack_direction" >&6; }
18446 cat >>confdefs.h <<_ACEOF
18447 #define STACK_DIRECTION $ac_cv_c_stack_direction
18448 _ACEOF
18449
18450
18451 fi
18452
18453
18454   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
18455 if test "x$ac_cv_header_minix_config_h" = xyes; then :
18456   MINIX=yes
18457 else
18458   MINIX=
18459 fi
18460
18461
18462   if test "$MINIX" = yes; then
18463
18464 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
18465
18466
18467 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
18468
18469
18470 $as_echo "#define _MINIX 1" >>confdefs.h
18471
18472   fi
18473
18474
18475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
18476 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
18477 if ${ac_cv_safe_to_define___extensions__+:} false; then :
18478   $as_echo_n "(cached) " >&6
18479 else
18480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h.  */
18482
18483 #         define __EXTENSIONS__ 1
18484           $ac_includes_default
18485 int
18486 main ()
18487 {
18488
18489   ;
18490   return 0;
18491 }
18492 _ACEOF
18493 if ac_fn_c_try_compile "$LINENO"; then :
18494   ac_cv_safe_to_define___extensions__=yes
18495 else
18496   ac_cv_safe_to_define___extensions__=no
18497 fi
18498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18499 fi
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
18501 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
18502   test $ac_cv_safe_to_define___extensions__ = yes &&
18503     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
18504
18505   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
18506
18507   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
18508
18509   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
18510
18511   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
18512
18513
18514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
18515 $as_echo_n "checking for working strnlen... " >&6; }
18516 if ${ac_cv_func_strnlen_working+:} false; then :
18517   $as_echo_n "(cached) " >&6
18518 else
18519   if test "$cross_compiling" = yes; then :
18520   # Guess no on AIX systems, yes otherwise.
18521                 case "$host_os" in
18522                   aix*) ac_cv_func_strnlen_working=no;;
18523                   *)    ac_cv_func_strnlen_working=yes;;
18524                 esac
18525 else
18526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h.  */
18528 $ac_includes_default
18529 int
18530 main ()
18531 {
18532
18533 #define S "foobar"
18534 #define S_LEN (sizeof S - 1)
18535
18536   /* At least one implementation is buggy: that of AIX 4.3 would
18537      give strnlen (S, 1) == 3.  */
18538
18539   int i;
18540   for (i = 0; i < S_LEN + 1; ++i)
18541     {
18542       int expected = i <= S_LEN ? i : S_LEN;
18543       if (strnlen (S, i) != expected)
18544         return 1;
18545     }
18546   return 0;
18547
18548   ;
18549   return 0;
18550 }
18551 _ACEOF
18552 if ac_fn_c_try_run "$LINENO"; then :
18553   ac_cv_func_strnlen_working=yes
18554 else
18555   ac_cv_func_strnlen_working=no
18556 fi
18557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18558   conftest.$ac_objext conftest.beam conftest.$ac_ext
18559 fi
18560
18561 fi
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
18563 $as_echo "$ac_cv_func_strnlen_working" >&6; }
18564 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
18565   *" strnlen.$ac_objext "* ) ;;
18566   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18567  ;;
18568 esac
18569
18570
18571 if test "x$ac_cv_func_strnlen_working" = "xyes"; then
18572     $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
18573
18574 fi
18575
18576 ac_config_files="$ac_config_files Makefile"
18577
18578 cat >confcache <<\_ACEOF
18579 # This file is a shell script that caches the results of configure
18580 # tests run on this system so they can be shared between configure
18581 # scripts and configure runs, see configure's option --config-cache.
18582 # It is not useful on other systems.  If it contains results you don't
18583 # want to keep, you may remove or edit it.
18584 #
18585 # config.status only pays attention to the cache file if you give it
18586 # the --recheck option to rerun configure.
18587 #
18588 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18589 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18590 # following values.
18591
18592 _ACEOF
18593
18594 # The following way of writing the cache mishandles newlines in values,
18595 # but we know of no workaround that is simple, portable, and efficient.
18596 # So, we kill variables containing newlines.
18597 # Ultrix sh set writes to stderr and can't be redirected directly,
18598 # and sets the high bit in the cache file unless we assign to the vars.
18599 (
18600   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18601     eval ac_val=\$$ac_var
18602     case $ac_val in #(
18603     *${as_nl}*)
18604       case $ac_var in #(
18605       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18606 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18607       esac
18608       case $ac_var in #(
18609       _ | IFS | as_nl) ;; #(
18610       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18611       *) { eval $ac_var=; unset $ac_var;} ;;
18612       esac ;;
18613     esac
18614   done
18615
18616   (set) 2>&1 |
18617     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18618     *${as_nl}ac_space=\ *)
18619       # `set' does not quote correctly, so add quotes: double-quote
18620       # substitution turns \\\\ into \\, and sed turns \\ into \.
18621       sed -n \
18622         "s/'/'\\\\''/g;
18623           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18624       ;; #(
18625     *)
18626       # `set' quotes correctly as required by POSIX, so do not add quotes.
18627       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18628       ;;
18629     esac |
18630     sort
18631 ) |
18632   sed '
18633      /^ac_cv_env_/b end
18634      t clear
18635      :clear
18636      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18637      t end
18638      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18639      :end' >>confcache
18640 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18641   if test -w "$cache_file"; then
18642     if test "x$cache_file" != "x/dev/null"; then
18643       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18644 $as_echo "$as_me: updating cache $cache_file" >&6;}
18645       if test ! -f "$cache_file" || test -h "$cache_file"; then
18646         cat confcache >"$cache_file"
18647       else
18648         case $cache_file in #(
18649         */* | ?:*)
18650           mv -f confcache "$cache_file"$$ &&
18651           mv -f "$cache_file"$$ "$cache_file" ;; #(
18652         *)
18653           mv -f confcache "$cache_file" ;;
18654         esac
18655       fi
18656     fi
18657   else
18658     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18659 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18660   fi
18661 fi
18662 rm -f confcache
18663
18664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18665 # Let make expand exec_prefix.
18666 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18667
18668 DEFS=-DHAVE_CONFIG_H
18669
18670 ac_libobjs=
18671 ac_ltlibobjs=
18672 U=
18673 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18674   # 1. Remove the extension, and $U if already installed.
18675   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18676   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18677   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18678   #    will be set to the directory where LIBOBJS objects are built.
18679   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18680   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18681 done
18682 LIBOBJS=$ac_libobjs
18683
18684 LTLIBOBJS=$ac_ltlibobjs
18685
18686
18687
18688 : "${CONFIG_STATUS=./config.status}"
18689 ac_write_fail=0
18690 ac_clean_files_save=$ac_clean_files
18691 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18693 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18694 as_write_fail=0
18695 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18696 #! $SHELL
18697 # Generated by $as_me.
18698 # Run this file to recreate the current configuration.
18699 # Compiler output produced by configure, useful for debugging
18700 # configure, is in config.log if it exists.
18701
18702 debug=false
18703 ac_cs_recheck=false
18704 ac_cs_silent=false
18705
18706 SHELL=\${CONFIG_SHELL-$SHELL}
18707 export SHELL
18708 _ASEOF
18709 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18710 ## -------------------- ##
18711 ## M4sh Initialization. ##
18712 ## -------------------- ##
18713
18714 # Be more Bourne compatible
18715 DUALCASE=1; export DUALCASE # for MKS sh
18716 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18717   emulate sh
18718   NULLCMD=:
18719   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18720   # is contrary to our usage.  Disable this feature.
18721   alias -g '${1+"$@"}'='"$@"'
18722   setopt NO_GLOB_SUBST
18723 else
18724   case `(set -o) 2>/dev/null` in #(
18725   *posix*) :
18726     set -o posix ;; #(
18727   *) :
18728      ;;
18729 esac
18730 fi
18731
18732
18733 as_nl='
18734 '
18735 export as_nl
18736 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18737 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18740 # Prefer a ksh shell builtin over an external printf program on Solaris,
18741 # but without wasting forks for bash or zsh.
18742 if test -z "$BASH_VERSION$ZSH_VERSION" \
18743     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18744   as_echo='print -r --'
18745   as_echo_n='print -rn --'
18746 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18747   as_echo='printf %s\n'
18748   as_echo_n='printf %s'
18749 else
18750   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18751     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18752     as_echo_n='/usr/ucb/echo -n'
18753   else
18754     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18755     as_echo_n_body='eval
18756       arg=$1;
18757       case $arg in #(
18758       *"$as_nl"*)
18759         expr "X$arg" : "X\\(.*\\)$as_nl";
18760         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18761       esac;
18762       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18763     '
18764     export as_echo_n_body
18765     as_echo_n='sh -c $as_echo_n_body as_echo'
18766   fi
18767   export as_echo_body
18768   as_echo='sh -c $as_echo_body as_echo'
18769 fi
18770
18771 # The user is always right.
18772 if test "${PATH_SEPARATOR+set}" != set; then
18773   PATH_SEPARATOR=:
18774   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18775     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18776       PATH_SEPARATOR=';'
18777   }
18778 fi
18779
18780
18781 # IFS
18782 # We need space, tab and new line, in precisely that order.  Quoting is
18783 # there to prevent editors from complaining about space-tab.
18784 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18785 # splitting by setting IFS to empty value.)
18786 IFS=" ""        $as_nl"
18787
18788 # Find who we are.  Look in the path if we contain no directory separator.
18789 as_myself=
18790 case $0 in #((
18791   *[\\/]* ) as_myself=$0 ;;
18792   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18793 for as_dir in $PATH
18794 do
18795   IFS=$as_save_IFS
18796   test -z "$as_dir" && as_dir=.
18797     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18798   done
18799 IFS=$as_save_IFS
18800
18801      ;;
18802 esac
18803 # We did not find ourselves, most probably we were run as `sh COMMAND'
18804 # in which case we are not to be found in the path.
18805 if test "x$as_myself" = x; then
18806   as_myself=$0
18807 fi
18808 if test ! -f "$as_myself"; then
18809   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18810   exit 1
18811 fi
18812
18813 # Unset variables that we do not need and which cause bugs (e.g. in
18814 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18815 # suppresses any "Segmentation fault" message there.  '((' could
18816 # trigger a bug in pdksh 5.2.14.
18817 for as_var in BASH_ENV ENV MAIL MAILPATH
18818 do eval test x\${$as_var+set} = xset \
18819   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18820 done
18821 PS1='$ '
18822 PS2='> '
18823 PS4='+ '
18824
18825 # NLS nuisances.
18826 LC_ALL=C
18827 export LC_ALL
18828 LANGUAGE=C
18829 export LANGUAGE
18830
18831 # CDPATH.
18832 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18833
18834
18835 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18836 # ----------------------------------------
18837 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18838 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18839 # script with STATUS, using 1 if that was 0.
18840 as_fn_error ()
18841 {
18842   as_status=$1; test $as_status -eq 0 && as_status=1
18843   if test "$4"; then
18844     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18845     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18846   fi
18847   $as_echo "$as_me: error: $2" >&2
18848   as_fn_exit $as_status
18849 } # as_fn_error
18850
18851
18852 # as_fn_set_status STATUS
18853 # -----------------------
18854 # Set $? to STATUS, without forking.
18855 as_fn_set_status ()
18856 {
18857   return $1
18858 } # as_fn_set_status
18859
18860 # as_fn_exit STATUS
18861 # -----------------
18862 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18863 as_fn_exit ()
18864 {
18865   set +e
18866   as_fn_set_status $1
18867   exit $1
18868 } # as_fn_exit
18869
18870 # as_fn_unset VAR
18871 # ---------------
18872 # Portably unset VAR.
18873 as_fn_unset ()
18874 {
18875   { eval $1=; unset $1;}
18876 }
18877 as_unset=as_fn_unset
18878 # as_fn_append VAR VALUE
18879 # ----------------------
18880 # Append the text in VALUE to the end of the definition contained in VAR. Take
18881 # advantage of any shell optimizations that allow amortized linear growth over
18882 # repeated appends, instead of the typical quadratic growth present in naive
18883 # implementations.
18884 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18885   eval 'as_fn_append ()
18886   {
18887     eval $1+=\$2
18888   }'
18889 else
18890   as_fn_append ()
18891   {
18892     eval $1=\$$1\$2
18893   }
18894 fi # as_fn_append
18895
18896 # as_fn_arith ARG...
18897 # ------------------
18898 # Perform arithmetic evaluation on the ARGs, and store the result in the
18899 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18900 # must be portable across $(()) and expr.
18901 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18902   eval 'as_fn_arith ()
18903   {
18904     as_val=$(( $* ))
18905   }'
18906 else
18907   as_fn_arith ()
18908   {
18909     as_val=`expr "$@" || test $? -eq 1`
18910   }
18911 fi # as_fn_arith
18912
18913
18914 if expr a : '\(a\)' >/dev/null 2>&1 &&
18915    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18916   as_expr=expr
18917 else
18918   as_expr=false
18919 fi
18920
18921 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18922   as_basename=basename
18923 else
18924   as_basename=false
18925 fi
18926
18927 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18928   as_dirname=dirname
18929 else
18930   as_dirname=false
18931 fi
18932
18933 as_me=`$as_basename -- "$0" ||
18934 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18935          X"$0" : 'X\(//\)$' \| \
18936          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18937 $as_echo X/"$0" |
18938     sed '/^.*\/\([^/][^/]*\)\/*$/{
18939             s//\1/
18940             q
18941           }
18942           /^X\/\(\/\/\)$/{
18943             s//\1/
18944             q
18945           }
18946           /^X\/\(\/\).*/{
18947             s//\1/
18948             q
18949           }
18950           s/.*/./; q'`
18951
18952 # Avoid depending upon Character Ranges.
18953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18956 as_cr_digits='0123456789'
18957 as_cr_alnum=$as_cr_Letters$as_cr_digits
18958
18959 ECHO_C= ECHO_N= ECHO_T=
18960 case `echo -n x` in #(((((
18961 -n*)
18962   case `echo 'xy\c'` in
18963   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18964   xy)  ECHO_C='\c';;
18965   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18966        ECHO_T=' ';;
18967   esac;;
18968 *)
18969   ECHO_N='-n';;
18970 esac
18971
18972 rm -f conf$$ conf$$.exe conf$$.file
18973 if test -d conf$$.dir; then
18974   rm -f conf$$.dir/conf$$.file
18975 else
18976   rm -f conf$$.dir
18977   mkdir conf$$.dir 2>/dev/null
18978 fi
18979 if (echo >conf$$.file) 2>/dev/null; then
18980   if ln -s conf$$.file conf$$ 2>/dev/null; then
18981     as_ln_s='ln -s'
18982     # ... but there are two gotchas:
18983     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18984     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18985     # In both cases, we have to default to `cp -pR'.
18986     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18987       as_ln_s='cp -pR'
18988   elif ln conf$$.file conf$$ 2>/dev/null; then
18989     as_ln_s=ln
18990   else
18991     as_ln_s='cp -pR'
18992   fi
18993 else
18994   as_ln_s='cp -pR'
18995 fi
18996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18997 rmdir conf$$.dir 2>/dev/null
18998
18999
19000 # as_fn_mkdir_p
19001 # -------------
19002 # Create "$as_dir" as a directory, including parents if necessary.
19003 as_fn_mkdir_p ()
19004 {
19005
19006   case $as_dir in #(
19007   -*) as_dir=./$as_dir;;
19008   esac
19009   test -d "$as_dir" || eval $as_mkdir_p || {
19010     as_dirs=
19011     while :; do
19012       case $as_dir in #(
19013       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19014       *) as_qdir=$as_dir;;
19015       esac
19016       as_dirs="'$as_qdir' $as_dirs"
19017       as_dir=`$as_dirname -- "$as_dir" ||
19018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19019          X"$as_dir" : 'X\(//\)[^/]' \| \
19020          X"$as_dir" : 'X\(//\)$' \| \
19021          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19022 $as_echo X"$as_dir" |
19023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19024             s//\1/
19025             q
19026           }
19027           /^X\(\/\/\)[^/].*/{
19028             s//\1/
19029             q
19030           }
19031           /^X\(\/\/\)$/{
19032             s//\1/
19033             q
19034           }
19035           /^X\(\/\).*/{
19036             s//\1/
19037             q
19038           }
19039           s/.*/./; q'`
19040       test -d "$as_dir" && break
19041     done
19042     test -z "$as_dirs" || eval "mkdir $as_dirs"
19043   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19044
19045
19046 } # as_fn_mkdir_p
19047 if mkdir -p . 2>/dev/null; then
19048   as_mkdir_p='mkdir -p "$as_dir"'
19049 else
19050   test -d ./-p && rmdir ./-p
19051   as_mkdir_p=false
19052 fi
19053
19054
19055 # as_fn_executable_p FILE
19056 # -----------------------
19057 # Test if FILE is an executable regular file.
19058 as_fn_executable_p ()
19059 {
19060   test -f "$1" && test -x "$1"
19061 } # as_fn_executable_p
19062 as_test_x='test -x'
19063 as_executable_p=as_fn_executable_p
19064
19065 # Sed expression to map a string onto a valid CPP name.
19066 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19067
19068 # Sed expression to map a string onto a valid variable name.
19069 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19070
19071
19072 exec 6>&1
19073 ## ----------------------------------- ##
19074 ## Main body of $CONFIG_STATUS script. ##
19075 ## ----------------------------------- ##
19076 _ASEOF
19077 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19078
19079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19080 # Save the log message, to keep $0 and so on meaningful, and to
19081 # report actual input values of CONFIG_FILES etc. instead of their
19082 # values after options handling.
19083 ac_log="
19084 This file was extended by concord $as_me 0.9.0, which was
19085 generated by GNU Autoconf 2.69.  Invocation command line was
19086
19087   CONFIG_FILES    = $CONFIG_FILES
19088   CONFIG_HEADERS  = $CONFIG_HEADERS
19089   CONFIG_LINKS    = $CONFIG_LINKS
19090   CONFIG_COMMANDS = $CONFIG_COMMANDS
19091   $ $0 $@
19092
19093 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19094 "
19095
19096 _ACEOF
19097
19098 case $ac_config_files in *"
19099 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19100 esac
19101
19102 case $ac_config_headers in *"
19103 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19104 esac
19105
19106
19107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19108 # Files that config.status was made for.
19109 config_files="$ac_config_files"
19110 config_headers="$ac_config_headers"
19111
19112 _ACEOF
19113
19114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19115 ac_cs_usage="\
19116 \`$as_me' instantiates files and other configuration actions
19117 from templates according to the current configuration.  Unless the files
19118 and actions are specified as TAGs, all are instantiated by default.
19119
19120 Usage: $0 [OPTION]... [TAG]...
19121
19122   -h, --help       print this help, then exit
19123   -V, --version    print version number and configuration settings, then exit
19124       --config     print configuration, then exit
19125   -q, --quiet, --silent
19126                    do not print progress messages
19127   -d, --debug      don't remove temporary files
19128       --recheck    update $as_me by reconfiguring in the same conditions
19129       --file=FILE[:TEMPLATE]
19130                    instantiate the configuration file FILE
19131       --header=FILE[:TEMPLATE]
19132                    instantiate the configuration header FILE
19133
19134 Configuration files:
19135 $config_files
19136
19137 Configuration headers:
19138 $config_headers
19139
19140 Report bugs to <chise-en@lists.chise.org>."
19141
19142 _ACEOF
19143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19144 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19145 ac_cs_version="\\
19146 concord config.status 0.9.0
19147 configured by $0, generated by GNU Autoconf 2.69,
19148   with options \\"\$ac_cs_config\\"
19149
19150 Copyright (C) 2012 Free Software Foundation, Inc.
19151 This config.status script is free software; the Free Software Foundation
19152 gives unlimited permission to copy, distribute and modify it."
19153
19154 ac_pwd='$ac_pwd'
19155 srcdir='$srcdir'
19156 test -n "\$AWK" || AWK=awk
19157 _ACEOF
19158
19159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19160 # The default lists apply if the user does not specify any file.
19161 ac_need_defaults=:
19162 while test $# != 0
19163 do
19164   case $1 in
19165   --*=?*)
19166     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19167     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19168     ac_shift=:
19169     ;;
19170   --*=)
19171     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19172     ac_optarg=
19173     ac_shift=:
19174     ;;
19175   *)
19176     ac_option=$1
19177     ac_optarg=$2
19178     ac_shift=shift
19179     ;;
19180   esac
19181
19182   case $ac_option in
19183   # Handling of the options.
19184   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19185     ac_cs_recheck=: ;;
19186   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19187     $as_echo "$ac_cs_version"; exit ;;
19188   --config | --confi | --conf | --con | --co | --c )
19189     $as_echo "$ac_cs_config"; exit ;;
19190   --debug | --debu | --deb | --de | --d | -d )
19191     debug=: ;;
19192   --file | --fil | --fi | --f )
19193     $ac_shift
19194     case $ac_optarg in
19195     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19196     '') as_fn_error $? "missing file argument" ;;
19197     esac
19198     as_fn_append CONFIG_FILES " '$ac_optarg'"
19199     ac_need_defaults=false;;
19200   --header | --heade | --head | --hea )
19201     $ac_shift
19202     case $ac_optarg in
19203     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19204     esac
19205     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19206     ac_need_defaults=false;;
19207   --he | --h)
19208     # Conflict between --help and --header
19209     as_fn_error $? "ambiguous option: \`$1'
19210 Try \`$0 --help' for more information.";;
19211   --help | --hel | -h )
19212     $as_echo "$ac_cs_usage"; exit ;;
19213   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19214   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19215     ac_cs_silent=: ;;
19216
19217   # This is an error.
19218   -*) as_fn_error $? "unrecognized option: \`$1'
19219 Try \`$0 --help' for more information." ;;
19220
19221   *) as_fn_append ac_config_targets " $1"
19222      ac_need_defaults=false ;;
19223
19224   esac
19225   shift
19226 done
19227
19228 ac_configure_extra_args=
19229
19230 if $ac_cs_silent; then
19231   exec 6>/dev/null
19232   ac_configure_extra_args="$ac_configure_extra_args --silent"
19233 fi
19234
19235 _ACEOF
19236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19237 if \$ac_cs_recheck; then
19238   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19239   shift
19240   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19241   CONFIG_SHELL='$SHELL'
19242   export CONFIG_SHELL
19243   exec "\$@"
19244 fi
19245
19246 _ACEOF
19247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19248 exec 5>>config.log
19249 {
19250   echo
19251   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19252 ## Running $as_me. ##
19253 _ASBOX
19254   $as_echo "$ac_log"
19255 } >&5
19256
19257 _ACEOF
19258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19259 _ACEOF
19260
19261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19262
19263 # Handling of arguments.
19264 for ac_config_target in $ac_config_targets
19265 do
19266   case $ac_config_target in
19267     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19268     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19269
19270   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19271   esac
19272 done
19273
19274
19275 # If the user did not use the arguments to specify the items to instantiate,
19276 # then the envvar interface is used.  Set only those that are not.
19277 # We use the long form for the default assignment because of an extremely
19278 # bizarre bug on SunOS 4.1.3.
19279 if $ac_need_defaults; then
19280   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19281   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19282 fi
19283
19284 # Have a temporary directory for convenience.  Make it in the build tree
19285 # simply because there is no reason against having it here, and in addition,
19286 # creating and moving files from /tmp can sometimes cause problems.
19287 # Hook for its removal unless debugging.
19288 # Note that there is a small window in which the directory will not be cleaned:
19289 # after its creation but before its name has been assigned to `$tmp'.
19290 $debug ||
19291 {
19292   tmp= ac_tmp=
19293   trap 'exit_status=$?
19294   : "${ac_tmp:=$tmp}"
19295   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19296 ' 0
19297   trap 'as_fn_exit 1' 1 2 13 15
19298 }
19299 # Create a (secure) tmp directory for tmp files.
19300
19301 {
19302   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19303   test -d "$tmp"
19304 }  ||
19305 {
19306   tmp=./conf$$-$RANDOM
19307   (umask 077 && mkdir "$tmp")
19308 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19309 ac_tmp=$tmp
19310
19311 # Set up the scripts for CONFIG_FILES section.
19312 # No need to generate them if there are no CONFIG_FILES.
19313 # This happens for instance with `./config.status config.h'.
19314 if test -n "$CONFIG_FILES"; then
19315
19316
19317 ac_cr=`echo X | tr X '\015'`
19318 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19319 # But we know of no other shell where ac_cr would be empty at this
19320 # point, so we can use a bashism as a fallback.
19321 if test "x$ac_cr" = x; then
19322   eval ac_cr=\$\'\\r\'
19323 fi
19324 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19325 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19326   ac_cs_awk_cr='\\r'
19327 else
19328   ac_cs_awk_cr=$ac_cr
19329 fi
19330
19331 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19332 _ACEOF
19333
19334
19335 {
19336   echo "cat >conf$$subs.awk <<_ACEOF" &&
19337   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19338   echo "_ACEOF"
19339 } >conf$$subs.sh ||
19340   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19341 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19342 ac_delim='%!_!# '
19343 for ac_last_try in false false false false false :; do
19344   . ./conf$$subs.sh ||
19345     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19346
19347   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19348   if test $ac_delim_n = $ac_delim_num; then
19349     break
19350   elif $ac_last_try; then
19351     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19352   else
19353     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19354   fi
19355 done
19356 rm -f conf$$subs.sh
19357
19358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19359 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19360 _ACEOF
19361 sed -n '
19362 h
19363 s/^/S["/; s/!.*/"]=/
19364 p
19365 g
19366 s/^[^!]*!//
19367 :repl
19368 t repl
19369 s/'"$ac_delim"'$//
19370 t delim
19371 :nl
19372 h
19373 s/\(.\{148\}\)..*/\1/
19374 t more1
19375 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19376 p
19377 n
19378 b repl
19379 :more1
19380 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19381 p
19382 g
19383 s/.\{148\}//
19384 t nl
19385 :delim
19386 h
19387 s/\(.\{148\}\)..*/\1/
19388 t more2
19389 s/["\\]/\\&/g; s/^/"/; s/$/"/
19390 p
19391 b
19392 :more2
19393 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19394 p
19395 g
19396 s/.\{148\}//
19397 t delim
19398 ' <conf$$subs.awk | sed '
19399 /^[^""]/{
19400   N
19401   s/\n//
19402 }
19403 ' >>$CONFIG_STATUS || ac_write_fail=1
19404 rm -f conf$$subs.awk
19405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19406 _ACAWK
19407 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19408   for (key in S) S_is_set[key] = 1
19409   FS = "\a"
19410
19411 }
19412 {
19413   line = $ 0
19414   nfields = split(line, field, "@")
19415   substed = 0
19416   len = length(field[1])
19417   for (i = 2; i < nfields; i++) {
19418     key = field[i]
19419     keylen = length(key)
19420     if (S_is_set[key]) {
19421       value = S[key]
19422       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19423       len += length(value) + length(field[++i])
19424       substed = 1
19425     } else
19426       len += 1 + keylen
19427   }
19428
19429   print line
19430 }
19431
19432 _ACAWK
19433 _ACEOF
19434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19435 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19436   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19437 else
19438   cat
19439 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19440   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19441 _ACEOF
19442
19443 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19444 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19445 # trailing colons and then remove the whole line if VPATH becomes empty
19446 # (actually we leave an empty line to preserve line numbers).
19447 if test "x$srcdir" = x.; then
19448   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19449 h
19450 s///
19451 s/^/:/
19452 s/[      ]*$/:/
19453 s/:\$(srcdir):/:/g
19454 s/:\${srcdir}:/:/g
19455 s/:@srcdir@:/:/g
19456 s/^:*//
19457 s/:*$//
19458 x
19459 s/\(=[   ]*\).*/\1/
19460 G
19461 s/\n//
19462 s/^[^=]*=[       ]*$//
19463 }'
19464 fi
19465
19466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19467 fi # test -n "$CONFIG_FILES"
19468
19469 # Set up the scripts for CONFIG_HEADERS section.
19470 # No need to generate them if there are no CONFIG_HEADERS.
19471 # This happens for instance with `./config.status Makefile'.
19472 if test -n "$CONFIG_HEADERS"; then
19473 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19474 BEGIN {
19475 _ACEOF
19476
19477 # Transform confdefs.h into an awk script `defines.awk', embedded as
19478 # here-document in config.status, that substitutes the proper values into
19479 # config.h.in to produce config.h.
19480
19481 # Create a delimiter string that does not exist in confdefs.h, to ease
19482 # handling of long lines.
19483 ac_delim='%!_!# '
19484 for ac_last_try in false false :; do
19485   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19486   if test -z "$ac_tt"; then
19487     break
19488   elif $ac_last_try; then
19489     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19490   else
19491     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19492   fi
19493 done
19494
19495 # For the awk script, D is an array of macro values keyed by name,
19496 # likewise P contains macro parameters if any.  Preserve backslash
19497 # newline sequences.
19498
19499 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19500 sed -n '
19501 s/.\{148\}/&'"$ac_delim"'/g
19502 t rset
19503 :rset
19504 s/^[     ]*#[    ]*define[       ][      ]*/ /
19505 t def
19506 d
19507 :def
19508 s/\\$//
19509 t bsnl
19510 s/["\\]/\\&/g
19511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19512 D["\1"]=" \3"/p
19513 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19514 d
19515 :bsnl
19516 s/["\\]/\\&/g
19517 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19518 D["\1"]=" \3\\\\\\n"\\/p
19519 t cont
19520 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19521 t cont
19522 d
19523 :cont
19524 n
19525 s/.\{148\}/&'"$ac_delim"'/g
19526 t clear
19527 :clear
19528 s/\\$//
19529 t bsnlc
19530 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19531 d
19532 :bsnlc
19533 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19534 b cont
19535 ' <confdefs.h | sed '
19536 s/'"$ac_delim"'/"\\\
19537 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19538
19539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19540   for (key in D) D_is_set[key] = 1
19541   FS = "\a"
19542 }
19543 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19544   line = \$ 0
19545   split(line, arg, " ")
19546   if (arg[1] == "#") {
19547     defundef = arg[2]
19548     mac1 = arg[3]
19549   } else {
19550     defundef = substr(arg[1], 2)
19551     mac1 = arg[2]
19552   }
19553   split(mac1, mac2, "(") #)
19554   macro = mac2[1]
19555   prefix = substr(line, 1, index(line, defundef) - 1)
19556   if (D_is_set[macro]) {
19557     # Preserve the white space surrounding the "#".
19558     print prefix "define", macro P[macro] D[macro]
19559     next
19560   } else {
19561     # Replace #undef with comments.  This is necessary, for example,
19562     # in the case of _POSIX_SOURCE, which is predefined and required
19563     # on some systems where configure will not decide to define it.
19564     if (defundef == "undef") {
19565       print "/*", prefix defundef, macro, "*/"
19566       next
19567     }
19568   }
19569 }
19570 { print }
19571 _ACAWK
19572 _ACEOF
19573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19574   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19575 fi # test -n "$CONFIG_HEADERS"
19576
19577
19578 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
19579 shift
19580 for ac_tag
19581 do
19582   case $ac_tag in
19583   :[FHLC]) ac_mode=$ac_tag; continue;;
19584   esac
19585   case $ac_mode$ac_tag in
19586   :[FHL]*:*);;
19587   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19588   :[FH]-) ac_tag=-:-;;
19589   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19590   esac
19591   ac_save_IFS=$IFS
19592   IFS=:
19593   set x $ac_tag
19594   IFS=$ac_save_IFS
19595   shift
19596   ac_file=$1
19597   shift
19598
19599   case $ac_mode in
19600   :L) ac_source=$1;;
19601   :[FH])
19602     ac_file_inputs=
19603     for ac_f
19604     do
19605       case $ac_f in
19606       -) ac_f="$ac_tmp/stdin";;
19607       *) # Look for the file first in the build tree, then in the source tree
19608          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19609          # because $ac_f cannot contain `:'.
19610          test -f "$ac_f" ||
19611            case $ac_f in
19612            [\\/$]*) false;;
19613            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19614            esac ||
19615            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19616       esac
19617       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19618       as_fn_append ac_file_inputs " '$ac_f'"
19619     done
19620
19621     # Let's still pretend it is `configure' which instantiates (i.e., don't
19622     # use $as_me), people would be surprised to read:
19623     #    /* config.h.  Generated by config.status.  */
19624     configure_input='Generated from '`
19625           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19626         `' by configure.'
19627     if test x"$ac_file" != x-; then
19628       configure_input="$ac_file.  $configure_input"
19629       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19630 $as_echo "$as_me: creating $ac_file" >&6;}
19631     fi
19632     # Neutralize special characters interpreted by sed in replacement strings.
19633     case $configure_input in #(
19634     *\&* | *\|* | *\\* )
19635        ac_sed_conf_input=`$as_echo "$configure_input" |
19636        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19637     *) ac_sed_conf_input=$configure_input;;
19638     esac
19639
19640     case $ac_tag in
19641     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19642       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19643     esac
19644     ;;
19645   esac
19646
19647   ac_dir=`$as_dirname -- "$ac_file" ||
19648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19649          X"$ac_file" : 'X\(//\)[^/]' \| \
19650          X"$ac_file" : 'X\(//\)$' \| \
19651          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19652 $as_echo X"$ac_file" |
19653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19654             s//\1/
19655             q
19656           }
19657           /^X\(\/\/\)[^/].*/{
19658             s//\1/
19659             q
19660           }
19661           /^X\(\/\/\)$/{
19662             s//\1/
19663             q
19664           }
19665           /^X\(\/\).*/{
19666             s//\1/
19667             q
19668           }
19669           s/.*/./; q'`
19670   as_dir="$ac_dir"; as_fn_mkdir_p
19671   ac_builddir=.
19672
19673 case "$ac_dir" in
19674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19675 *)
19676   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19677   # A ".." for each directory in $ac_dir_suffix.
19678   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19679   case $ac_top_builddir_sub in
19680   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19681   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19682   esac ;;
19683 esac
19684 ac_abs_top_builddir=$ac_pwd
19685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19686 # for backward compatibility:
19687 ac_top_builddir=$ac_top_build_prefix
19688
19689 case $srcdir in
19690   .)  # We are building in place.
19691     ac_srcdir=.
19692     ac_top_srcdir=$ac_top_builddir_sub
19693     ac_abs_top_srcdir=$ac_pwd ;;
19694   [\\/]* | ?:[\\/]* )  # Absolute name.
19695     ac_srcdir=$srcdir$ac_dir_suffix;
19696     ac_top_srcdir=$srcdir
19697     ac_abs_top_srcdir=$srcdir ;;
19698   *) # Relative name.
19699     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19700     ac_top_srcdir=$ac_top_build_prefix$srcdir
19701     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19702 esac
19703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19704
19705
19706   case $ac_mode in
19707   :F)
19708   #
19709   # CONFIG_FILE
19710   #
19711
19712 _ACEOF
19713
19714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19715 # If the template does not know about datarootdir, expand it.
19716 # FIXME: This hack should be removed a few years after 2.60.
19717 ac_datarootdir_hack=; ac_datarootdir_seen=
19718 ac_sed_dataroot='
19719 /datarootdir/ {
19720   p
19721   q
19722 }
19723 /@datadir@/p
19724 /@docdir@/p
19725 /@infodir@/p
19726 /@localedir@/p
19727 /@mandir@/p'
19728 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19729 *datarootdir*) ac_datarootdir_seen=yes;;
19730 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19731   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19732 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19733 _ACEOF
19734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19735   ac_datarootdir_hack='
19736   s&@datadir@&$datadir&g
19737   s&@docdir@&$docdir&g
19738   s&@infodir@&$infodir&g
19739   s&@localedir@&$localedir&g
19740   s&@mandir@&$mandir&g
19741   s&\\\${datarootdir}&$datarootdir&g' ;;
19742 esac
19743 _ACEOF
19744
19745 # Neutralize VPATH when `$srcdir' = `.'.
19746 # Shell code in configure.ac might set extrasub.
19747 # FIXME: do we really want to maintain this feature?
19748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19749 ac_sed_extra="$ac_vpsub
19750 $extrasub
19751 _ACEOF
19752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19753 :t
19754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19755 s|@configure_input@|$ac_sed_conf_input|;t t
19756 s&@top_builddir@&$ac_top_builddir_sub&;t t
19757 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19758 s&@srcdir@&$ac_srcdir&;t t
19759 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19760 s&@top_srcdir@&$ac_top_srcdir&;t t
19761 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19762 s&@builddir@&$ac_builddir&;t t
19763 s&@abs_builddir@&$ac_abs_builddir&;t t
19764 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19765 $ac_datarootdir_hack
19766 "
19767 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19768   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19769
19770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19771   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19772   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19773       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19774   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19775 which seems to be undefined.  Please make sure it is defined" >&5
19776 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19777 which seems to be undefined.  Please make sure it is defined" >&2;}
19778
19779   rm -f "$ac_tmp/stdin"
19780   case $ac_file in
19781   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19782   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19783   esac \
19784   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19785  ;;
19786   :H)
19787   #
19788   # CONFIG_HEADER
19789   #
19790   if test x"$ac_file" != x-; then
19791     {
19792       $as_echo "/* $configure_input  */" \
19793       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19794     } >"$ac_tmp/config.h" \
19795       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19796     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19797       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19798 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19799     else
19800       rm -f "$ac_file"
19801       mv "$ac_tmp/config.h" "$ac_file" \
19802         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19803     fi
19804   else
19805     $as_echo "/* $configure_input  */" \
19806       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19807       || as_fn_error $? "could not create -" "$LINENO" 5
19808   fi
19809  ;;
19810
19811
19812   esac
19813
19814 done # for ac_tag
19815
19816
19817 as_fn_exit 0
19818 _ACEOF
19819 ac_clean_files=$ac_clean_files_save
19820
19821 test $ac_write_fail = 0 ||
19822   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19823
19824
19825 # configure is writing to config.log, and then calls config.status.
19826 # config.status does its own redirection, appending to config.log.
19827 # Unfortunately, on DOS this fails, as config.log is still kept open
19828 # by configure, so config.status won't be able to write to it; its
19829 # output is simply discarded.  So we exec the FD to /dev/null,
19830 # effectively closing config.log, so it can be properly (re)opened and
19831 # appended to by config.status.  When coming back to configure, we
19832 # need to make the FD available again.
19833 if test "$no_create" != yes; then
19834   ac_cs_success=:
19835   ac_config_status_args=
19836   test "$silent" = yes &&
19837     ac_config_status_args="$ac_config_status_args --quiet"
19838   exec 5>/dev/null
19839   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19840   exec 5>>config.log
19841   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19842   # would make configure fail if this is the last instruction.
19843   $ac_cs_success || as_fn_exit 1
19844 fi
19845 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19846   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19847 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19848 fi
19849