update.
[chise/libchise.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libchise 0.5.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='libchise'
736 PACKAGE_TARNAME='libchise'
737 PACKAGE_VERSION='0.5.0'
738 PACKAGE_STRING='libchise 0.5.0'
739 PACKAGE_BUGREPORT='chise-en@lists.chise.org'
740 PACKAGE_URL=''
741
742 ac_unique_file="chise.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 libchise 0.5.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/libchise]
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 libchise 0.5.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 libchise configure 0.5.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_check_type LINENO TYPE VAR INCLUDES
2235 # -------------------------------------------
2236 # Tests whether TYPE exists after having included INCLUDES, setting cache
2237 # variable VAR accordingly.
2238 ac_fn_c_check_type ()
2239 {
2240   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \${$3+:} false; then :
2244   $as_echo_n "(cached) " >&6
2245 else
2246   eval "$3=no"
2247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h.  */
2249 $4
2250 int
2251 main ()
2252 {
2253 if (sizeof ($2))
2254          return 0;
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h.  */
2262 $4
2263 int
2264 main ()
2265 {
2266 if (sizeof (($2)))
2267             return 0;
2268   ;
2269   return 0;
2270 }
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2273
2274 else
2275   eval "$3=yes"
2276 fi
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 fi
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 fi
2281 eval ac_res=\$$3
2282                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285
2286 } # ac_fn_c_check_type
2287 cat >config.log <<_ACEOF
2288 This file contains any messages produced by compilers while
2289 running configure, to aid debugging if configure makes a mistake.
2290
2291 It was created by libchise $as_me 0.5.0, which was
2292 generated by GNU Autoconf 2.69.  Invocation command line was
2293
2294   $ $0 $@
2295
2296 _ACEOF
2297 exec 5>>config.log
2298 {
2299 cat <<_ASUNAME
2300 ## --------- ##
2301 ## Platform. ##
2302 ## --------- ##
2303
2304 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2305 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2306 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2307 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2308 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2309
2310 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2311 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2312
2313 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2314 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2315 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2316 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2317 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2318 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2319 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2320
2321 _ASUNAME
2322
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326   IFS=$as_save_IFS
2327   test -z "$as_dir" && as_dir=.
2328     $as_echo "PATH: $as_dir"
2329   done
2330 IFS=$as_save_IFS
2331
2332 } >&5
2333
2334 cat >&5 <<_ACEOF
2335
2336
2337 ## ----------- ##
2338 ## Core tests. ##
2339 ## ----------- ##
2340
2341 _ACEOF
2342
2343
2344 # Keep a trace of the command line.
2345 # Strip out --no-create and --no-recursion so they do not pile up.
2346 # Strip out --silent because we don't want to record it for future runs.
2347 # Also quote any args containing shell meta-characters.
2348 # Make two passes to allow for proper duplicate-argument suppression.
2349 ac_configure_args=
2350 ac_configure_args0=
2351 ac_configure_args1=
2352 ac_must_keep_next=false
2353 for ac_pass in 1 2
2354 do
2355   for ac_arg
2356   do
2357     case $ac_arg in
2358     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2359     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2360     | -silent | --silent | --silen | --sile | --sil)
2361       continue ;;
2362     *\'*)
2363       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2364     esac
2365     case $ac_pass in
2366     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2367     2)
2368       as_fn_append ac_configure_args1 " '$ac_arg'"
2369       if test $ac_must_keep_next = true; then
2370         ac_must_keep_next=false # Got value, back to normal.
2371       else
2372         case $ac_arg in
2373           *=* | --config-cache | -C | -disable-* | --disable-* \
2374           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2375           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2376           | -with-* | --with-* | -without-* | --without-* | --x)
2377             case "$ac_configure_args0 " in
2378               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2379             esac
2380             ;;
2381           -* ) ac_must_keep_next=true ;;
2382         esac
2383       fi
2384       as_fn_append ac_configure_args " '$ac_arg'"
2385       ;;
2386     esac
2387   done
2388 done
2389 { ac_configure_args0=; unset ac_configure_args0;}
2390 { ac_configure_args1=; unset ac_configure_args1;}
2391
2392 # When interrupted or exit'd, cleanup temporary files, and complete
2393 # config.log.  We remove comments because anyway the quotes in there
2394 # would cause problems or look ugly.
2395 # WARNING: Use '\'' to represent an apostrophe within the trap.
2396 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2397 trap 'exit_status=$?
2398   # Save into config.log some information that might help in debugging.
2399   {
2400     echo
2401
2402     $as_echo "## ---------------- ##
2403 ## Cache variables. ##
2404 ## ---------------- ##"
2405     echo
2406     # The following way of writing the cache mishandles newlines in values,
2407 (
2408   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2409     eval ac_val=\$$ac_var
2410     case $ac_val in #(
2411     *${as_nl}*)
2412       case $ac_var in #(
2413       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2414 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2415       esac
2416       case $ac_var in #(
2417       _ | IFS | as_nl) ;; #(
2418       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2419       *) { eval $ac_var=; unset $ac_var;} ;;
2420       esac ;;
2421     esac
2422   done
2423   (set) 2>&1 |
2424     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2425     *${as_nl}ac_space=\ *)
2426       sed -n \
2427         "s/'\''/'\''\\\\'\'''\''/g;
2428           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2429       ;; #(
2430     *)
2431       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2432       ;;
2433     esac |
2434     sort
2435 )
2436     echo
2437
2438     $as_echo "## ----------------- ##
2439 ## Output variables. ##
2440 ## ----------------- ##"
2441     echo
2442     for ac_var in $ac_subst_vars
2443     do
2444       eval ac_val=\$$ac_var
2445       case $ac_val in
2446       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447       esac
2448       $as_echo "$ac_var='\''$ac_val'\''"
2449     done | sort
2450     echo
2451
2452     if test -n "$ac_subst_files"; then
2453       $as_echo "## ------------------- ##
2454 ## File substitutions. ##
2455 ## ------------------- ##"
2456       echo
2457       for ac_var in $ac_subst_files
2458       do
2459         eval ac_val=\$$ac_var
2460         case $ac_val in
2461         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2462         esac
2463         $as_echo "$ac_var='\''$ac_val'\''"
2464       done | sort
2465       echo
2466     fi
2467
2468     if test -s confdefs.h; then
2469       $as_echo "## ----------- ##
2470 ## confdefs.h. ##
2471 ## ----------- ##"
2472       echo
2473       cat confdefs.h
2474       echo
2475     fi
2476     test "$ac_signal" != 0 &&
2477       $as_echo "$as_me: caught signal $ac_signal"
2478     $as_echo "$as_me: exit $exit_status"
2479   } >&5
2480   rm -f core *.core core.conftest.* &&
2481     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2482     exit $exit_status
2483 ' 0
2484 for ac_signal in 1 2 13 15; do
2485   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2486 done
2487 ac_signal=0
2488
2489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2490 rm -f -r conftest* confdefs.h
2491
2492 $as_echo "/* confdefs.h */" > confdefs.h
2493
2494 # Predefined preprocessor variables.
2495
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_NAME "$PACKAGE_NAME"
2498 _ACEOF
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2502 _ACEOF
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2506 _ACEOF
2507
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_STRING "$PACKAGE_STRING"
2510 _ACEOF
2511
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2514 _ACEOF
2515
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_URL "$PACKAGE_URL"
2518 _ACEOF
2519
2520
2521 # Let the site file select an alternate cache file if it wants to.
2522 # Prefer an explicitly selected file to automatically selected ones.
2523 ac_site_file1=NONE
2524 ac_site_file2=NONE
2525 if test -n "$CONFIG_SITE"; then
2526   # We do not want a PATH search for config.site.
2527   case $CONFIG_SITE in #((
2528     -*)  ac_site_file1=./$CONFIG_SITE;;
2529     */*) ac_site_file1=$CONFIG_SITE;;
2530     *)   ac_site_file1=./$CONFIG_SITE;;
2531   esac
2532 elif test "x$prefix" != xNONE; then
2533   ac_site_file1=$prefix/share/config.site
2534   ac_site_file2=$prefix/etc/config.site
2535 else
2536   ac_site_file1=$ac_default_prefix/share/config.site
2537   ac_site_file2=$ac_default_prefix/etc/config.site
2538 fi
2539 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2540 do
2541   test "x$ac_site_file" = xNONE && continue
2542   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2543     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2544 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2545     sed 's/^/| /' "$ac_site_file" >&5
2546     . "$ac_site_file" \
2547       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549 as_fn_error $? "failed to load site script $ac_site_file
2550 See \`config.log' for more details" "$LINENO" 5; }
2551   fi
2552 done
2553
2554 if test -r "$cache_file"; then
2555   # Some versions of bash will fail to source /dev/null (special files
2556   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2557   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2558     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2559 $as_echo "$as_me: loading cache $cache_file" >&6;}
2560     case $cache_file in
2561       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2562       *)                      . "./$cache_file";;
2563     esac
2564   fi
2565 else
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2567 $as_echo "$as_me: creating cache $cache_file" >&6;}
2568   >$cache_file
2569 fi
2570
2571 # Check that the precious variables saved in the cache have kept the same
2572 # value.
2573 ac_cache_corrupted=false
2574 for ac_var in $ac_precious_vars; do
2575   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2576   eval ac_new_set=\$ac_env_${ac_var}_set
2577   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2578   eval ac_new_val=\$ac_env_${ac_var}_value
2579   case $ac_old_set,$ac_new_set in
2580     set,)
2581       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2582 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2583       ac_cache_corrupted=: ;;
2584     ,set)
2585       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2586 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2587       ac_cache_corrupted=: ;;
2588     ,);;
2589     *)
2590       if test "x$ac_old_val" != "x$ac_new_val"; then
2591         # differences in whitespace do not lead to failure.
2592         ac_old_val_w=`echo x $ac_old_val`
2593         ac_new_val_w=`echo x $ac_new_val`
2594         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2595           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2596 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2597           ac_cache_corrupted=:
2598         else
2599           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2600 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2601           eval $ac_var=\$ac_old_val
2602         fi
2603         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2604 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2605         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2606 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2607       fi;;
2608   esac
2609   # Pass precious variables to config.status.
2610   if test "$ac_new_set" = set; then
2611     case $ac_new_val in
2612     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2613     *) ac_arg=$ac_var=$ac_new_val ;;
2614     esac
2615     case " $ac_configure_args " in
2616       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2617       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2618     esac
2619   fi
2620 done
2621 if $ac_cache_corrupted; then
2622   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2625 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2626   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2627 fi
2628 ## -------------------- ##
2629 ## Main body of script. ##
2630 ## -------------------- ##
2631
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637
2638
2639
2640 ac_config_headers="$ac_config_headers config.h"
2641
2642
2643 ac_aux_dir=
2644 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2645   if test -f "$ac_dir/install-sh"; then
2646     ac_aux_dir=$ac_dir
2647     ac_install_sh="$ac_aux_dir/install-sh -c"
2648     break
2649   elif test -f "$ac_dir/install.sh"; then
2650     ac_aux_dir=$ac_dir
2651     ac_install_sh="$ac_aux_dir/install.sh -c"
2652     break
2653   elif test -f "$ac_dir/shtool"; then
2654     ac_aux_dir=$ac_dir
2655     ac_install_sh="$ac_aux_dir/shtool install -c"
2656     break
2657   fi
2658 done
2659 if test -z "$ac_aux_dir"; then
2660   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2661 fi
2662
2663 # These three variables are undocumented and unsupported,
2664 # and are intended to be withdrawn in a future Autoconf release.
2665 # They can cause serious problems if a builder's source tree is in a directory
2666 # whose full name contains unusual characters.
2667 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2668 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2669 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2670
2671
2672 # Make sure we can run config.sub.
2673 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2674   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2675
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2677 $as_echo_n "checking build system type... " >&6; }
2678 if ${ac_cv_build+:} false; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   ac_build_alias=$build_alias
2682 test "x$ac_build_alias" = x &&
2683   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2684 test "x$ac_build_alias" = x &&
2685   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2686 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2687   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2688
2689 fi
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2691 $as_echo "$ac_cv_build" >&6; }
2692 case $ac_cv_build in
2693 *-*-*) ;;
2694 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2695 esac
2696 build=$ac_cv_build
2697 ac_save_IFS=$IFS; IFS='-'
2698 set x $ac_cv_build
2699 shift
2700 build_cpu=$1
2701 build_vendor=$2
2702 shift; shift
2703 # Remember, the first character of IFS is used to create $*,
2704 # except with old shells:
2705 build_os=$*
2706 IFS=$ac_save_IFS
2707 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2708
2709
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2711 $as_echo_n "checking host system type... " >&6; }
2712 if ${ac_cv_host+:} false; then :
2713   $as_echo_n "(cached) " >&6
2714 else
2715   if test "x$host_alias" = x; then
2716   ac_cv_host=$ac_cv_build
2717 else
2718   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2719     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2720 fi
2721
2722 fi
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2724 $as_echo "$ac_cv_host" >&6; }
2725 case $ac_cv_host in
2726 *-*-*) ;;
2727 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2728 esac
2729 host=$ac_cv_host
2730 ac_save_IFS=$IFS; IFS='-'
2731 set x $ac_cv_host
2732 shift
2733 host_cpu=$1
2734 host_vendor=$2
2735 shift; shift
2736 # Remember, the first character of IFS is used to create $*,
2737 # except with old shells:
2738 host_os=$*
2739 IFS=$ac_save_IFS
2740 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2741
2742
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2744 $as_echo_n "checking target system type... " >&6; }
2745 if ${ac_cv_target+:} false; then :
2746   $as_echo_n "(cached) " >&6
2747 else
2748   if test "x$target_alias" = x; then
2749   ac_cv_target=$ac_cv_host
2750 else
2751   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2752     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2753 fi
2754
2755 fi
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2757 $as_echo "$ac_cv_target" >&6; }
2758 case $ac_cv_target in
2759 *-*-*) ;;
2760 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2761 esac
2762 target=$ac_cv_target
2763 ac_save_IFS=$IFS; IFS='-'
2764 set x $ac_cv_target
2765 shift
2766 target_cpu=$1
2767 target_vendor=$2
2768 shift; shift
2769 # Remember, the first character of IFS is used to create $*,
2770 # except with old shells:
2771 target_os=$*
2772 IFS=$ac_save_IFS
2773 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2774
2775
2776 # The aliases save the names the user supplied, while $host etc.
2777 # will get canonicalized.
2778 test -n "$target_alias" &&
2779   test "$program_prefix$program_suffix$program_transform_name" = \
2780     NONENONEs,x,x, &&
2781   program_prefix=${target_alias}-
2782
2783 # Checks for programs.
2784 ac_ext=c
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 if test -n "$ac_tool_prefix"; then
2790   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_CC+:} false; then :
2795   $as_echo_n "(cached) " >&6
2796 else
2797   if test -n "$CC"; then
2798   ac_cv_prog_CC="$CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803   IFS=$as_save_IFS
2804   test -z "$as_dir" && as_dir=.
2805     for ac_exec_ext in '' $ac_executable_extensions; do
2806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809     break 2
2810   fi
2811 done
2812   done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820 $as_echo "$CC" >&6; }
2821 else
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826
2827 fi
2828 if test -z "$ac_cv_prog_CC"; then
2829   ac_ct_CC=$CC
2830   # Extract the first word of "gcc", so it can be a program name with args.
2831 set dummy gcc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   if test -n "$ac_ct_CC"; then
2838   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845     for ac_exec_ext in '' $ac_executable_extensions; do
2846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847     ac_cv_prog_ac_ct_CC="gcc"
2848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852   done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2858 if test -n "$ac_ct_CC"; then
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2860 $as_echo "$ac_ct_CC" >&6; }
2861 else
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866   if test "x$ac_ct_CC" = x; then
2867     CC=""
2868   else
2869     case $cross_compiling:$ac_tool_warned in
2870 yes:)
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873 ac_tool_warned=yes ;;
2874 esac
2875     CC=$ac_ct_CC
2876   fi
2877 else
2878   CC="$ac_cv_prog_CC"
2879 fi
2880
2881 if test -z "$CC"; then
2882           if test -n "$ac_tool_prefix"; then
2883     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888   $as_echo_n "(cached) " >&6
2889 else
2890   if test -n "$CC"; then
2891   ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896   IFS=$as_save_IFS
2897   test -z "$as_dir" && as_dir=.
2898     for ac_exec_ext in '' $ac_executable_extensions; do
2899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900     ac_cv_prog_CC="${ac_tool_prefix}cc"
2901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902     break 2
2903   fi
2904 done
2905   done
2906 IFS=$as_save_IFS
2907
2908 fi
2909 fi
2910 CC=$ac_cv_prog_CC
2911 if test -n "$CC"; then
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913 $as_echo "$CC" >&6; }
2914 else
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2917 fi
2918
2919
2920   fi
2921 fi
2922 if test -z "$CC"; then
2923   # Extract the first word of "cc", so it can be a program name with args.
2924 set dummy cc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928   $as_echo_n "(cached) " >&6
2929 else
2930   if test -n "$CC"; then
2931   ac_cv_prog_CC="$CC" # Let the user override the test.
2932 else
2933   ac_prog_rejected=no
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939     for ac_exec_ext in '' $ac_executable_extensions; do
2940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2942        ac_prog_rejected=yes
2943        continue
2944      fi
2945     ac_cv_prog_CC="cc"
2946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947     break 2
2948   fi
2949 done
2950   done
2951 IFS=$as_save_IFS
2952
2953 if test $ac_prog_rejected = yes; then
2954   # We found a bogon in the path, so make sure we never use it.
2955   set dummy $ac_cv_prog_CC
2956   shift
2957   if test $# != 0; then
2958     # We chose a different compiler from the bogus one.
2959     # However, it has the same basename, so the bogon will be chosen
2960     # first if we set CC to just the basename; use the full file name.
2961     shift
2962     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2963   fi
2964 fi
2965 fi
2966 fi
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2971 else
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976
2977 fi
2978 if test -z "$CC"; then
2979   if test -n "$ac_tool_prefix"; then
2980   for ac_prog in cl.exe
2981   do
2982     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987   $as_echo_n "(cached) " >&6
2988 else
2989   if test -n "$CC"; then
2990   ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997     for ac_exec_ext in '' $ac_executable_extensions; do
2998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001     break 2
3002   fi
3003 done
3004   done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3013 else
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 fi
3017
3018
3019     test -n "$CC" && break
3020   done
3021 fi
3022 if test -z "$CC"; then
3023   ac_ct_CC=$CC
3024   for ac_prog in cl.exe
3025 do
3026   # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -n "$ac_ct_CC"; then
3034   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041     for ac_exec_ext in '' $ac_executable_extensions; do
3042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043     ac_cv_prog_ac_ct_CC="$ac_prog"
3044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048   done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054 if test -n "$ac_ct_CC"; then
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056 $as_echo "$ac_ct_CC" >&6; }
3057 else
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062
3063   test -n "$ac_ct_CC" && break
3064 done
3065
3066   if test "x$ac_ct_CC" = x; then
3067     CC=""
3068   else
3069     case $cross_compiling:$ac_tool_warned in
3070 yes:)
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073 ac_tool_warned=yes ;;
3074 esac
3075     CC=$ac_ct_CC
3076   fi
3077 fi
3078
3079 fi
3080
3081
3082 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 as_fn_error $? "no acceptable C compiler found in \$PATH
3085 See \`config.log' for more details" "$LINENO" 5; }
3086
3087 # Provide some information about the compiler.
3088 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3089 set X $ac_compile
3090 ac_compiler=$2
3091 for ac_option in --version -v -V -qversion; do
3092   { { ac_try="$ac_compiler $ac_option >&5"
3093 case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3100   ac_status=$?
3101   if test -s conftest.err; then
3102     sed '10a\
3103 ... rest of stderr output deleted ...
3104          10q' conftest.err >conftest.er1
3105     cat conftest.er1 >&5
3106   fi
3107   rm -f conftest.er1 conftest.err
3108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109   test $ac_status = 0; }
3110 done
3111
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h.  */
3114
3115 int
3116 main ()
3117 {
3118
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 ac_clean_files_save=$ac_clean_files
3124 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3125 # Try to create an executable without -o first, disregard a.out.
3126 # It will help us diagnose broken compilers, and finding out an intuition
3127 # of exeext.
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3129 $as_echo_n "checking whether the C compiler works... " >&6; }
3130 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3131
3132 # The possible output files:
3133 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3134
3135 ac_rmfiles=
3136 for ac_file in $ac_files
3137 do
3138   case $ac_file in
3139     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3140     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3141   esac
3142 done
3143 rm -f $ac_rmfiles
3144
3145 if { { ac_try="$ac_link_default"
3146 case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151 $as_echo "$ac_try_echo"; } >&5
3152   (eval "$ac_link_default") 2>&5
3153   ac_status=$?
3154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155   test $ac_status = 0; }; then :
3156   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3158 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3159 # so that the user can short-circuit this test for compilers unknown to
3160 # Autoconf.
3161 for ac_file in $ac_files ''
3162 do
3163   test -f "$ac_file" || continue
3164   case $ac_file in
3165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3166         ;;
3167     [ab].out )
3168         # We found the default executable, but exeext='' is most
3169         # certainly right.
3170         break;;
3171     *.* )
3172         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3173         then :; else
3174            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3175         fi
3176         # We set ac_cv_exeext here because the later test for it is not
3177         # safe: cross compilers may not add the suffix if given an `-o'
3178         # argument, so we may need to know it at that point already.
3179         # Even if this section looks crufty: it has the advantage of
3180         # actually working.
3181         break;;
3182     * )
3183         break;;
3184   esac
3185 done
3186 test "$ac_cv_exeext" = no && ac_cv_exeext=
3187
3188 else
3189   ac_file=''
3190 fi
3191 if test -z "$ac_file"; then :
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 $as_echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 as_fn_error 77 "C compiler cannot create executables
3200 See \`config.log' for more details" "$LINENO" 5; }
3201 else
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3204 fi
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3206 $as_echo_n "checking for C compiler default output file name... " >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3208 $as_echo "$ac_file" >&6; }
3209 ac_exeext=$ac_cv_exeext
3210
3211 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3212 ac_clean_files=$ac_clean_files_save
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3214 $as_echo_n "checking for suffix of executables... " >&6; }
3215 if { { ac_try="$ac_link"
3216 case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222   (eval "$ac_link") 2>&5
3223   ac_status=$?
3224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225   test $ac_status = 0; }; then :
3226   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3227 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3228 # work properly (i.e., refer to `conftest.exe'), while it won't with
3229 # `rm'.
3230 for ac_file in conftest.exe conftest conftest.*; do
3231   test -f "$ac_file" || continue
3232   case $ac_file in
3233     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3234     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235           break;;
3236     * ) break;;
3237   esac
3238 done
3239 else
3240   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3243 See \`config.log' for more details" "$LINENO" 5; }
3244 fi
3245 rm -f conftest conftest$ac_cv_exeext
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3247 $as_echo "$ac_cv_exeext" >&6; }
3248
3249 rm -f conftest.$ac_ext
3250 EXEEXT=$ac_cv_exeext
3251 ac_exeext=$EXEEXT
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h.  */
3254 #include <stdio.h>
3255 int
3256 main ()
3257 {
3258 FILE *f = fopen ("conftest.out", "w");
3259  return ferror (f) || fclose (f) != 0;
3260
3261   ;
3262   return 0;
3263 }
3264 _ACEOF
3265 ac_clean_files="$ac_clean_files conftest.out"
3266 # Check that the compiler produces executables we can run.  If not, either
3267 # the compiler is broken, or we cross compile.
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3269 $as_echo_n "checking whether we are cross compiling... " >&6; }
3270 if test "$cross_compiling" != yes; then
3271   { { ac_try="$ac_link"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278   (eval "$ac_link") 2>&5
3279   ac_status=$?
3280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281   test $ac_status = 0; }
3282   if { ac_try='./conftest$ac_cv_exeext'
3283   { { case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289   (eval "$ac_try") 2>&5
3290   ac_status=$?
3291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292   test $ac_status = 0; }; }; then
3293     cross_compiling=no
3294   else
3295     if test "$cross_compiling" = maybe; then
3296         cross_compiling=yes
3297     else
3298         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "cannot run C compiled programs.
3301 If you meant to cross compile, use \`--host'.
3302 See \`config.log' for more details" "$LINENO" 5; }
3303     fi
3304   fi
3305 fi
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3307 $as_echo "$cross_compiling" >&6; }
3308
3309 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3310 ac_clean_files=$ac_clean_files_save
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3312 $as_echo_n "checking for suffix of object files... " >&6; }
3313 if ${ac_cv_objext+:} false; then :
3314   $as_echo_n "(cached) " >&6
3315 else
3316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h.  */
3318
3319 int
3320 main ()
3321 {
3322
3323   ;
3324   return 0;
3325 }
3326 _ACEOF
3327 rm -f conftest.o conftest.obj
3328 if { { ac_try="$ac_compile"
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_compile") 2>&5
3336   ac_status=$?
3337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338   test $ac_status = 0; }; then :
3339   for ac_file in conftest.o conftest.obj conftest.*; do
3340   test -f "$ac_file" || continue;
3341   case $ac_file in
3342     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3343     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3344        break;;
3345   esac
3346 done
3347 else
3348   $as_echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3350
3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 as_fn_error $? "cannot compute suffix of object files: cannot compile
3354 See \`config.log' for more details" "$LINENO" 5; }
3355 fi
3356 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3359 $as_echo "$ac_cv_objext" >&6; }
3360 OBJEXT=$ac_cv_objext
3361 ac_objext=$OBJEXT
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3363 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3364 if ${ac_cv_c_compiler_gnu+:} false; then :
3365   $as_echo_n "(cached) " >&6
3366 else
3367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h.  */
3369
3370 int
3371 main ()
3372 {
3373 #ifndef __GNUC__
3374        choke me
3375 #endif
3376
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 if ac_fn_c_try_compile "$LINENO"; then :
3382   ac_compiler_gnu=yes
3383 else
3384   ac_compiler_gnu=no
3385 fi
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388
3389 fi
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3391 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3392 if test $ac_compiler_gnu = yes; then
3393   GCC=yes
3394 else
3395   GCC=
3396 fi
3397 ac_test_CFLAGS=${CFLAGS+set}
3398 ac_save_CFLAGS=$CFLAGS
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3400 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3401 if ${ac_cv_prog_cc_g+:} false; then :
3402   $as_echo_n "(cached) " >&6
3403 else
3404   ac_save_c_werror_flag=$ac_c_werror_flag
3405    ac_c_werror_flag=yes
3406    ac_cv_prog_cc_g=no
3407    CFLAGS="-g"
3408    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h.  */
3410
3411 int
3412 main ()
3413 {
3414
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 if ac_fn_c_try_compile "$LINENO"; then :
3420   ac_cv_prog_cc_g=yes
3421 else
3422   CFLAGS=""
3423       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h.  */
3425
3426 int
3427 main ()
3428 {
3429
3430   ;
3431   return 0;
3432 }
3433 _ACEOF
3434 if ac_fn_c_try_compile "$LINENO"; then :
3435
3436 else
3437   ac_c_werror_flag=$ac_save_c_werror_flag
3438          CFLAGS="-g"
3439          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h.  */
3441
3442 int
3443 main ()
3444 {
3445
3446   ;
3447   return 0;
3448 }
3449 _ACEOF
3450 if ac_fn_c_try_compile "$LINENO"; then :
3451   ac_cv_prog_cc_g=yes
3452 fi
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 fi
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458    ac_c_werror_flag=$ac_save_c_werror_flag
3459 fi
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3461 $as_echo "$ac_cv_prog_cc_g" >&6; }
3462 if test "$ac_test_CFLAGS" = set; then
3463   CFLAGS=$ac_save_CFLAGS
3464 elif test $ac_cv_prog_cc_g = yes; then
3465   if test "$GCC" = yes; then
3466     CFLAGS="-g -O2"
3467   else
3468     CFLAGS="-g"
3469   fi
3470 else
3471   if test "$GCC" = yes; then
3472     CFLAGS="-O2"
3473   else
3474     CFLAGS=
3475   fi
3476 fi
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3478 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3479 if ${ac_cv_prog_cc_c89+:} false; then :
3480   $as_echo_n "(cached) " >&6
3481 else
3482   ac_cv_prog_cc_c89=no
3483 ac_save_CC=$CC
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h.  */
3486 #include <stdarg.h>
3487 #include <stdio.h>
3488 struct stat;
3489 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3490 struct buf { int x; };
3491 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3492 static char *e (p, i)
3493      char **p;
3494      int i;
3495 {
3496   return p[i];
3497 }
3498 static char *f (char * (*g) (char **, int), char **p, ...)
3499 {
3500   char *s;
3501   va_list v;
3502   va_start (v,p);
3503   s = g (p, va_arg (v,int));
3504   va_end (v);
3505   return s;
3506 }
3507
3508 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3509    function prototypes and stuff, but not '\xHH' hex character constants.
3510    These don't provoke an error unfortunately, instead are silently treated
3511    as 'x'.  The following induces an error, until -std is added to get
3512    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3513    array size at least.  It's necessary to write '\x00'==0 to get something
3514    that's true only with -std.  */
3515 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3516
3517 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3518    inside strings and character constants.  */
3519 #define FOO(x) 'x'
3520 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3521
3522 int test (int i, double x);
3523 struct s1 {int (*f) (int a);};
3524 struct s2 {int (*f) (double a);};
3525 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3526 int argc;
3527 char **argv;
3528 int
3529 main ()
3530 {
3531 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3537         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3538 do
3539   CC="$ac_save_CC $ac_arg"
3540   if ac_fn_c_try_compile "$LINENO"; then :
3541   ac_cv_prog_cc_c89=$ac_arg
3542 fi
3543 rm -f core conftest.err conftest.$ac_objext
3544   test "x$ac_cv_prog_cc_c89" != "xno" && break
3545 done
3546 rm -f conftest.$ac_ext
3547 CC=$ac_save_CC
3548
3549 fi
3550 # AC_CACHE_VAL
3551 case "x$ac_cv_prog_cc_c89" in
3552   x)
3553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3554 $as_echo "none needed" >&6; } ;;
3555   xno)
3556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3557 $as_echo "unsupported" >&6; } ;;
3558   *)
3559     CC="$CC $ac_cv_prog_cc_c89"
3560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3561 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3562 esac
3563 if test "x$ac_cv_prog_cc_c89" != xno; then :
3564
3565 fi
3566
3567 ac_ext=c
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572
3573 # Check whether --enable-shared was given.
3574 if test "${enable_shared+set}" = set; then :
3575   enableval=$enable_shared; p=${PACKAGE-default}
3576     case $enableval in
3577     yes) enable_shared=yes ;;
3578     no) enable_shared=no ;;
3579     *)
3580       enable_shared=no
3581       # Look at the argument we got.  We use all the common list separators.
3582       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3583       for pkg in $enableval; do
3584         IFS="$lt_save_ifs"
3585         if test "X$pkg" = "X$p"; then
3586           enable_shared=yes
3587         fi
3588       done
3589       IFS="$lt_save_ifs"
3590       ;;
3591     esac
3592 else
3593   enable_shared=yes
3594 fi
3595
3596
3597 # Check whether --enable-static was given.
3598 if test "${enable_static+set}" = set; then :
3599   enableval=$enable_static; p=${PACKAGE-default}
3600     case $enableval in
3601     yes) enable_static=yes ;;
3602     no) enable_static=no ;;
3603     *)
3604      enable_static=no
3605       # Look at the argument we got.  We use all the common list separators.
3606       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3607       for pkg in $enableval; do
3608         IFS="$lt_save_ifs"
3609         if test "X$pkg" = "X$p"; then
3610           enable_static=yes
3611         fi
3612       done
3613       IFS="$lt_save_ifs"
3614       ;;
3615     esac
3616 else
3617   enable_static=yes
3618 fi
3619
3620
3621 # Check whether --enable-fast-install was given.
3622 if test "${enable_fast_install+set}" = set; then :
3623   enableval=$enable_fast_install; p=${PACKAGE-default}
3624     case $enableval in
3625     yes) enable_fast_install=yes ;;
3626     no) enable_fast_install=no ;;
3627     *)
3628       enable_fast_install=no
3629       # Look at the argument we got.  We use all the common list separators.
3630       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3631       for pkg in $enableval; do
3632         IFS="$lt_save_ifs"
3633         if test "X$pkg" = "X$p"; then
3634           enable_fast_install=yes
3635         fi
3636       done
3637       IFS="$lt_save_ifs"
3638       ;;
3639     esac
3640 else
3641   enable_fast_install=yes
3642 fi
3643
3644
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3646 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3647 if ${lt_cv_path_SED+:} false; then :
3648   $as_echo_n "(cached) " >&6
3649 else
3650   # Loop through the user's path and test for sed and gsed.
3651 # Then use that list of sed's as ones to test for truncation.
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655   IFS=$as_save_IFS
3656   test -z "$as_dir" && as_dir=.
3657   for lt_ac_prog in sed gsed; do
3658     for ac_exec_ext in '' $ac_executable_extensions; do
3659       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3660         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3661       fi
3662     done
3663   done
3664 done
3665 lt_ac_max=0
3666 lt_ac_count=0
3667 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3668 # along with /bin/sed that truncates output.
3669 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3670   test ! -f $lt_ac_sed && break
3671   cat /dev/null > conftest.in
3672   lt_ac_count=0
3673   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3674   # Check for GNU sed and select it if it is found.
3675   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3676     lt_cv_path_SED=$lt_ac_sed
3677     break
3678   fi
3679   while true; do
3680     cat conftest.in conftest.in >conftest.tmp
3681     mv conftest.tmp conftest.in
3682     cp conftest.in conftest.nl
3683     echo >>conftest.nl
3684     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3685     cmp -s conftest.out conftest.nl || break
3686     # 10000 chars as input seems more than enough
3687     test $lt_ac_count -gt 10 && break
3688     lt_ac_count=`expr $lt_ac_count + 1`
3689     if test $lt_ac_count -gt $lt_ac_max; then
3690       lt_ac_max=$lt_ac_count
3691       lt_cv_path_SED=$lt_ac_sed
3692     fi
3693   done
3694 done
3695 SED=$lt_cv_path_SED
3696
3697 fi
3698
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3700 $as_echo "$SED" >&6; }
3701
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3703 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3704 if ${ac_cv_path_GREP+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   if test -z "$GREP"; then
3708   ac_path_GREP_found=false
3709   # Loop through the user's path and test for each of PROGNAME-LIST
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715     for ac_prog in grep ggrep; do
3716     for ac_exec_ext in '' $ac_executable_extensions; do
3717       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3718       as_fn_executable_p "$ac_path_GREP" || continue
3719 # Check for GNU ac_path_GREP and select it if it is found.
3720   # Check for GNU $ac_path_GREP
3721 case `"$ac_path_GREP" --version 2>&1` in
3722 *GNU*)
3723   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3724 *)
3725   ac_count=0
3726   $as_echo_n 0123456789 >"conftest.in"
3727   while :
3728   do
3729     cat "conftest.in" "conftest.in" >"conftest.tmp"
3730     mv "conftest.tmp" "conftest.in"
3731     cp "conftest.in" "conftest.nl"
3732     $as_echo 'GREP' >> "conftest.nl"
3733     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735     as_fn_arith $ac_count + 1 && ac_count=$as_val
3736     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3737       # Best one so far, save it but keep looking for a better one
3738       ac_cv_path_GREP="$ac_path_GREP"
3739       ac_path_GREP_max=$ac_count
3740     fi
3741     # 10*(2^10) chars as input seems more than enough
3742     test $ac_count -gt 10 && break
3743   done
3744   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 esac
3746
3747       $ac_path_GREP_found && break 3
3748     done
3749   done
3750   done
3751 IFS=$as_save_IFS
3752   if test -z "$ac_cv_path_GREP"; then
3753     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3754   fi
3755 else
3756   ac_cv_path_GREP=$GREP
3757 fi
3758
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3761 $as_echo "$ac_cv_path_GREP" >&6; }
3762  GREP="$ac_cv_path_GREP"
3763
3764
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3766 $as_echo_n "checking for egrep... " >&6; }
3767 if ${ac_cv_path_EGREP+:} false; then :
3768   $as_echo_n "(cached) " >&6
3769 else
3770   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3771    then ac_cv_path_EGREP="$GREP -E"
3772    else
3773      if test -z "$EGREP"; then
3774   ac_path_EGREP_found=false
3775   # Loop through the user's path and test for each of PROGNAME-LIST
3776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778 do
3779   IFS=$as_save_IFS
3780   test -z "$as_dir" && as_dir=.
3781     for ac_prog in egrep; do
3782     for ac_exec_ext in '' $ac_executable_extensions; do
3783       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3784       as_fn_executable_p "$ac_path_EGREP" || continue
3785 # Check for GNU ac_path_EGREP and select it if it is found.
3786   # Check for GNU $ac_path_EGREP
3787 case `"$ac_path_EGREP" --version 2>&1` in
3788 *GNU*)
3789   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3790 *)
3791   ac_count=0
3792   $as_echo_n 0123456789 >"conftest.in"
3793   while :
3794   do
3795     cat "conftest.in" "conftest.in" >"conftest.tmp"
3796     mv "conftest.tmp" "conftest.in"
3797     cp "conftest.in" "conftest.nl"
3798     $as_echo 'EGREP' >> "conftest.nl"
3799     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801     as_fn_arith $ac_count + 1 && ac_count=$as_val
3802     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3803       # Best one so far, save it but keep looking for a better one
3804       ac_cv_path_EGREP="$ac_path_EGREP"
3805       ac_path_EGREP_max=$ac_count
3806     fi
3807     # 10*(2^10) chars as input seems more than enough
3808     test $ac_count -gt 10 && break
3809   done
3810   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811 esac
3812
3813       $ac_path_EGREP_found && break 3
3814     done
3815   done
3816   done
3817 IFS=$as_save_IFS
3818   if test -z "$ac_cv_path_EGREP"; then
3819     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3820   fi
3821 else
3822   ac_cv_path_EGREP=$EGREP
3823 fi
3824
3825    fi
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3828 $as_echo "$ac_cv_path_EGREP" >&6; }
3829  EGREP="$ac_cv_path_EGREP"
3830
3831
3832
3833 # Check whether --with-gnu-ld was given.
3834 if test "${with_gnu_ld+set}" = set; then :
3835   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3836 else
3837   with_gnu_ld=no
3838 fi
3839
3840 ac_prog=ld
3841 if test "$GCC" = yes; then
3842   # Check if gcc -print-prog-name=ld gives a path.
3843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3844 $as_echo_n "checking for ld used by $CC... " >&6; }
3845   case $host in
3846   *-*-mingw*)
3847     # gcc leaves a trailing carriage return which upsets mingw
3848     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3849   *)
3850     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3851   esac
3852   case $ac_prog in
3853     # Accept absolute paths.
3854     [\\/]* | ?:[\\/]*)
3855       re_direlt='/[^/][^/]*/\.\./'
3856       # Canonicalize the pathname of ld
3857       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3858       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3859         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3860       done
3861       test -z "$LD" && LD="$ac_prog"
3862       ;;
3863   "")
3864     # If it fails, then pretend we aren't using GCC.
3865     ac_prog=ld
3866     ;;
3867   *)
3868     # If it is relative, then search for the first ld in PATH.
3869     with_gnu_ld=unknown
3870     ;;
3871   esac
3872 elif test "$with_gnu_ld" = yes; then
3873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3874 $as_echo_n "checking for GNU ld... " >&6; }
3875 else
3876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3877 $as_echo_n "checking for non-GNU ld... " >&6; }
3878 fi
3879 if ${lt_cv_path_LD+:} false; then :
3880   $as_echo_n "(cached) " >&6
3881 else
3882   if test -z "$LD"; then
3883   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3884   for ac_dir in $PATH; do
3885     IFS="$lt_save_ifs"
3886     test -z "$ac_dir" && ac_dir=.
3887     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3888       lt_cv_path_LD="$ac_dir/$ac_prog"
3889       # Check to see if the program is GNU ld.  I'd rather use --version,
3890       # but apparently some GNU ld's only accept -v.
3891       # Break only if it was the GNU/non-GNU ld that we prefer.
3892       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3893       *GNU* | *'with BFD'*)
3894         test "$with_gnu_ld" != no && break
3895         ;;
3896       *)
3897         test "$with_gnu_ld" != yes && break
3898         ;;
3899       esac
3900     fi
3901   done
3902   IFS="$lt_save_ifs"
3903 else
3904   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3905 fi
3906 fi
3907
3908 LD="$lt_cv_path_LD"
3909 if test -n "$LD"; then
3910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3911 $as_echo "$LD" >&6; }
3912 else
3913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3918 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3919 if ${lt_cv_prog_gnu_ld+:} false; then :
3920   $as_echo_n "(cached) " >&6
3921 else
3922   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3923 case `$LD -v 2>&1 </dev/null` in
3924 *GNU* | *'with BFD'*)
3925   lt_cv_prog_gnu_ld=yes
3926   ;;
3927 *)
3928   lt_cv_prog_gnu_ld=no
3929   ;;
3930 esac
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3933 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3934 with_gnu_ld=$lt_cv_prog_gnu_ld
3935
3936
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
3938 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3939 if ${lt_cv_ld_reload_flag+:} false; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942   lt_cv_ld_reload_flag='-r'
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
3945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3946 reload_flag=$lt_cv_ld_reload_flag
3947 case $reload_flag in
3948 "" | " "*) ;;
3949 *) reload_flag=" $reload_flag" ;;
3950 esac
3951 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3952
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
3954 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3955 if ${lt_cv_path_NM+:} false; then :
3956   $as_echo_n "(cached) " >&6
3957 else
3958   if test -n "$NM"; then
3959   # Let the user override the test.
3960   lt_cv_path_NM="$NM"
3961 else
3962   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3963   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3964     IFS="$lt_save_ifs"
3965     test -z "$ac_dir" && ac_dir=.
3966     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3967     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3968       # Check to see if the nm accepts a BSD-compat flag.
3969       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3970       #   nm: unknown option "B" ignored
3971       # Tru64's nm complains that /dev/null is an invalid object file
3972       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3973       */dev/null* | *'Invalid file or object type'*)
3974         lt_cv_path_NM="$tmp_nm -B"
3975         break
3976         ;;
3977       *)
3978         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3979         */dev/null*)
3980           lt_cv_path_NM="$tmp_nm -p"
3981           break
3982           ;;
3983         *)
3984           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3985           continue # so that we can try to find one that supports BSD flags
3986           ;;
3987         esac
3988       esac
3989     fi
3990   done
3991   IFS="$lt_save_ifs"
3992   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3993 fi
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3996 $as_echo "$lt_cv_path_NM" >&6; }
3997 NM="$lt_cv_path_NM"
3998
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4000 $as_echo_n "checking whether ln -s works... " >&6; }
4001 LN_S=$as_ln_s
4002 if test "$LN_S" = "ln -s"; then
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4004 $as_echo "yes" >&6; }
4005 else
4006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4007 $as_echo "no, using $LN_S" >&6; }
4008 fi
4009
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4011 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4012 if ${lt_cv_deplibs_check_method+:} false; then :
4013   $as_echo_n "(cached) " >&6
4014 else
4015   lt_cv_file_magic_cmd='$MAGIC_CMD'
4016 lt_cv_file_magic_test_file=
4017 lt_cv_deplibs_check_method='unknown'
4018 # Need to set the preceding variable on all platforms that support
4019 # interlibrary dependencies.
4020 # 'none' -- dependencies not supported.
4021 # `unknown' -- same as none, but documents that we really don't know.
4022 # 'pass_all' -- all dependencies passed with no checks.
4023 # 'test_compile' -- check by making test program.
4024 # 'file_magic [[regex]]' -- check by looking for files in library path
4025 # which responds to the $file_magic_cmd with a given extended regex.
4026 # If you have `file' or equivalent on your system and you're not sure
4027 # whether `pass_all' will *always* work, you probably want this one.
4028
4029 case $host_os in
4030 aix4* | aix5*)
4031   lt_cv_deplibs_check_method=pass_all
4032   ;;
4033
4034 beos*)
4035   lt_cv_deplibs_check_method=pass_all
4036   ;;
4037
4038 bsdi4*)
4039   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4040   lt_cv_file_magic_cmd='/usr/bin/file -L'
4041   lt_cv_file_magic_test_file=/shlib/libc.so
4042   ;;
4043
4044 cygwin* | mingw* | pw32*)
4045   # win32_libid is a shell function defined in ltmain.sh
4046   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4047   lt_cv_file_magic_cmd='win32_libid'
4048   ;;
4049
4050 darwin* | rhapsody*)
4051   # this will be overwritten by pass_all, but leave it in just in case
4052   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4053   lt_cv_file_magic_cmd='/usr/bin/file -L'
4054   case "$host_os" in
4055   rhapsody* | darwin1.[012])
4056     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4057     ;;
4058   *) # Darwin 1.3 on
4059     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4060     ;;
4061   esac
4062   lt_cv_deplibs_check_method=pass_all
4063   ;;
4064
4065 freebsd* | kfreebsd*-gnu)
4066   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4067     case $host_cpu in
4068     i*86 )
4069       # Not sure whether the presence of OpenBSD here was a mistake.
4070       # Let's accept both of them until this is cleared up.
4071       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4072       lt_cv_file_magic_cmd=/usr/bin/file
4073       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4074       ;;
4075     esac
4076   else
4077     lt_cv_deplibs_check_method=pass_all
4078   fi
4079   ;;
4080
4081 gnu*)
4082   lt_cv_deplibs_check_method=pass_all
4083   ;;
4084
4085 hpux10.20* | hpux11*)
4086   lt_cv_file_magic_cmd=/usr/bin/file
4087   case "$host_cpu" in
4088   ia64*)
4089     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4090     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4091     ;;
4092   hppa*64*)
4093     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]'
4094     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4095     ;;
4096   *)
4097     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4098     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4099     ;;
4100   esac
4101   ;;
4102
4103 irix5* | irix6* | nonstopux*)
4104   case $host_os in
4105   irix5* | nonstopux*)
4106     # this will be overridden with pass_all, but let us keep it just in case
4107     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4108     ;;
4109   *)
4110     case $LD in
4111     *-32|*"-32 ") libmagic=32-bit;;
4112     *-n32|*"-n32 ") libmagic=N32;;
4113     *-64|*"-64 ") libmagic=64-bit;;
4114     *) libmagic=never-match;;
4115     esac
4116     # this will be overridden with pass_all, but let us keep it just in case
4117     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4118     ;;
4119   esac
4120   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4121   lt_cv_deplibs_check_method=pass_all
4122   ;;
4123
4124 # This must be Linux ELF.
4125 linux*)
4126   # linux always uses pass_all now, this code is the old way (tm)
4127   case $host_cpu in
4128   alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4129     lt_cv_deplibs_check_method=pass_all ;;
4130   *)
4131     # glibc up to 2.1.1 does not perform some relocations on ARM
4132     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4133   esac
4134   lt_cv_deplibs_check_method=pass_all
4135   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4136   ;;
4137
4138 netbsd*)
4139   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4140     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4141   else
4142     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4143   fi
4144   ;;
4145
4146 newos6*)
4147   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4148   lt_cv_file_magic_cmd=/usr/bin/file
4149   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4150   ;;
4151
4152 nto-qnx*)
4153   lt_cv_deplibs_check_method=unknown
4154   ;;
4155
4156 openbsd*)
4157   lt_cv_file_magic_cmd=/usr/bin/file
4158   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4159   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4160     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4161   else
4162     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4163   fi
4164   ;;
4165
4166 osf3* | osf4* | osf5*)
4167   # this will be overridden with pass_all, but let us keep it just in case
4168   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4169   lt_cv_file_magic_test_file=/shlib/libc.so
4170   lt_cv_deplibs_check_method=pass_all
4171   ;;
4172
4173 sco3.2v5*)
4174   lt_cv_deplibs_check_method=pass_all
4175   ;;
4176
4177 solaris*)
4178   lt_cv_deplibs_check_method=pass_all
4179   lt_cv_file_magic_test_file=/lib/libc.so
4180   ;;
4181
4182 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4183   case $host_vendor in
4184   motorola)
4185     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]'
4186     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4187     ;;
4188   ncr)
4189     lt_cv_deplibs_check_method=pass_all
4190     ;;
4191   sequent)
4192     lt_cv_file_magic_cmd='/bin/file'
4193     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4194     ;;
4195   sni)
4196     lt_cv_file_magic_cmd='/bin/file'
4197     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4198     lt_cv_file_magic_test_file=/lib/libc.so
4199     ;;
4200   siemens)
4201     lt_cv_deplibs_check_method=pass_all
4202     ;;
4203   esac
4204   ;;
4205
4206 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4207   lt_cv_deplibs_check_method=pass_all
4208   ;;
4209 esac
4210
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4213 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4214 file_magic_cmd=$lt_cv_file_magic_cmd
4215 deplibs_check_method=$lt_cv_deplibs_check_method
4216 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4217
4218
4219
4220
4221 # If no C compiler was specified, use CC.
4222 LTCC=${LTCC-"$CC"}
4223
4224 # Allow CC to be a program name with arguments.
4225 compiler=$CC
4226
4227
4228 # Check whether --enable-libtool-lock was given.
4229 if test "${enable_libtool_lock+set}" = set; then :
4230   enableval=$enable_libtool_lock;
4231 fi
4232
4233 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4234
4235 # Some flags need to be propagated to the compiler or linker for good
4236 # libtool support.
4237 case $host in
4238 ia64-*-hpux*)
4239   # Find out which ABI we are using.
4240   echo 'int i;' > conftest.$ac_ext
4241   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4242   (eval $ac_compile) 2>&5
4243   ac_status=$?
4244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245   test $ac_status = 0; }; then
4246     case `/usr/bin/file conftest.$ac_objext` in
4247     *ELF-32*)
4248       HPUX_IA64_MODE="32"
4249       ;;
4250     *ELF-64*)
4251       HPUX_IA64_MODE="64"
4252       ;;
4253     esac
4254   fi
4255   rm -rf conftest*
4256   ;;
4257 *-*-irix6*)
4258   # Find out which ABI we are using.
4259   echo '#line 4259 "configure"' > conftest.$ac_ext
4260   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4261   (eval $ac_compile) 2>&5
4262   ac_status=$?
4263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264   test $ac_status = 0; }; then
4265    if test "$lt_cv_prog_gnu_ld" = yes; then
4266     case `/usr/bin/file conftest.$ac_objext` in
4267     *32-bit*)
4268       LD="${LD-ld} -melf32bsmip"
4269       ;;
4270     *N32*)
4271       LD="${LD-ld} -melf32bmipn32"
4272       ;;
4273     *64-bit*)
4274       LD="${LD-ld} -melf64bmip"
4275       ;;
4276     esac
4277    else
4278     case `/usr/bin/file conftest.$ac_objext` in
4279     *32-bit*)
4280       LD="${LD-ld} -32"
4281       ;;
4282     *N32*)
4283       LD="${LD-ld} -n32"
4284       ;;
4285     *64-bit*)
4286       LD="${LD-ld} -64"
4287       ;;
4288     esac
4289    fi
4290   fi
4291   rm -rf conftest*
4292   ;;
4293
4294 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4295   # Find out which ABI we are using.
4296   echo 'int i;' > conftest.$ac_ext
4297   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4298   (eval $ac_compile) 2>&5
4299   ac_status=$?
4300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301   test $ac_status = 0; }; then
4302     case "`/usr/bin/file conftest.o`" in
4303     *32-bit*)
4304       case $host in
4305         x86_64-*linux*)
4306           LD="${LD-ld} -m elf_i386"
4307           ;;
4308         ppc64-*linux*|powerpc64-*linux*)
4309           LD="${LD-ld} -m elf32ppclinux"
4310           ;;
4311         s390x-*linux*)
4312           LD="${LD-ld} -m elf_s390"
4313           ;;
4314         sparc64-*linux*)
4315           LD="${LD-ld} -m elf32_sparc"
4316           ;;
4317       esac
4318       ;;
4319     *64-bit*)
4320       case $host in
4321         x86_64-*linux*)
4322           LD="${LD-ld} -m elf_x86_64"
4323           ;;
4324         ppc*-*linux*|powerpc*-*linux*)
4325           LD="${LD-ld} -m elf64ppc"
4326           ;;
4327         s390*-*linux*)
4328           LD="${LD-ld} -m elf64_s390"
4329           ;;
4330         sparc*-*linux*)
4331           LD="${LD-ld} -m elf64_sparc"
4332           ;;
4333       esac
4334       ;;
4335     esac
4336   fi
4337   rm -rf conftest*
4338   ;;
4339
4340 *-*-sco3.2v5*)
4341   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4342   SAVE_CFLAGS="$CFLAGS"
4343   CFLAGS="$CFLAGS -belf"
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4345 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4346 if ${lt_cv_cc_needs_belf+:} false; then :
4347   $as_echo_n "(cached) " >&6
4348 else
4349   ac_ext=c
4350 ac_cpp='$CPP $CPPFLAGS'
4351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4354
4355      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h.  */
4357
4358 int
4359 main ()
4360 {
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_link "$LINENO"; then :
4367   lt_cv_cc_needs_belf=yes
4368 else
4369   lt_cv_cc_needs_belf=no
4370 fi
4371 rm -f core conftest.err conftest.$ac_objext \
4372     conftest$ac_exeext conftest.$ac_ext
4373      ac_ext=c
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378
4379 fi
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4381 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4382   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4383     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4384     CFLAGS="$SAVE_CFLAGS"
4385   fi
4386   ;;
4387
4388 esac
4389
4390 need_locks="$enable_libtool_lock"
4391
4392
4393 ac_ext=c
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4399 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4400 # On Suns, sometimes $CPP names a directory.
4401 if test -n "$CPP" && test -d "$CPP"; then
4402   CPP=
4403 fi
4404 if test -z "$CPP"; then
4405   if ${ac_cv_prog_CPP+:} false; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408       # Double quotes because CPP needs to be expanded
4409     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4410     do
4411       ac_preproc_ok=false
4412 for ac_c_preproc_warn_flag in '' yes
4413 do
4414   # Use a header file that comes with gcc, so configuring glibc
4415   # with a fresh cross-compiler works.
4416   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417   # <limits.h> exists even on freestanding compilers.
4418   # On the NeXT, cc -E runs the code through the compiler's parser,
4419   # not just through cpp. "Syntax error" is here to catch this case.
4420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h.  */
4422 #ifdef __STDC__
4423 # include <limits.h>
4424 #else
4425 # include <assert.h>
4426 #endif
4427                      Syntax error
4428 _ACEOF
4429 if ac_fn_c_try_cpp "$LINENO"; then :
4430
4431 else
4432   # Broken: fails on valid input.
4433 continue
4434 fi
4435 rm -f conftest.err conftest.i conftest.$ac_ext
4436
4437   # OK, works on sane cases.  Now check whether nonexistent headers
4438   # can be detected and how.
4439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h.  */
4441 #include <ac_nonexistent.h>
4442 _ACEOF
4443 if ac_fn_c_try_cpp "$LINENO"; then :
4444   # Broken: success on invalid input.
4445 continue
4446 else
4447   # Passes both tests.
4448 ac_preproc_ok=:
4449 break
4450 fi
4451 rm -f conftest.err conftest.i conftest.$ac_ext
4452
4453 done
4454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4455 rm -f conftest.i conftest.err conftest.$ac_ext
4456 if $ac_preproc_ok; then :
4457   break
4458 fi
4459
4460     done
4461     ac_cv_prog_CPP=$CPP
4462
4463 fi
4464   CPP=$ac_cv_prog_CPP
4465 else
4466   ac_cv_prog_CPP=$CPP
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4469 $as_echo "$CPP" >&6; }
4470 ac_preproc_ok=false
4471 for ac_c_preproc_warn_flag in '' yes
4472 do
4473   # Use a header file that comes with gcc, so configuring glibc
4474   # with a fresh cross-compiler works.
4475   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476   # <limits.h> exists even on freestanding compilers.
4477   # On the NeXT, cc -E runs the code through the compiler's parser,
4478   # not just through cpp. "Syntax error" is here to catch this case.
4479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h.  */
4481 #ifdef __STDC__
4482 # include <limits.h>
4483 #else
4484 # include <assert.h>
4485 #endif
4486                      Syntax error
4487 _ACEOF
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4489
4490 else
4491   # Broken: fails on valid input.
4492 continue
4493 fi
4494 rm -f conftest.err conftest.i conftest.$ac_ext
4495
4496   # OK, works on sane cases.  Now check whether nonexistent headers
4497   # can be detected and how.
4498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h.  */
4500 #include <ac_nonexistent.h>
4501 _ACEOF
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4503   # Broken: success on invalid input.
4504 continue
4505 else
4506   # Passes both tests.
4507 ac_preproc_ok=:
4508 break
4509 fi
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4511
4512 done
4513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514 rm -f conftest.i conftest.err conftest.$ac_ext
4515 if $ac_preproc_ok; then :
4516
4517 else
4518   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4520 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4521 See \`config.log' for more details" "$LINENO" 5; }
4522 fi
4523
4524 ac_ext=c
4525 ac_cpp='$CPP $CPPFLAGS'
4526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4532 $as_echo_n "checking for ANSI C header files... " >&6; }
4533 if ${ac_cv_header_stdc+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h.  */
4538 #include <stdlib.h>
4539 #include <stdarg.h>
4540 #include <string.h>
4541 #include <float.h>
4542
4543 int
4544 main ()
4545 {
4546
4547   ;
4548   return 0;
4549 }
4550 _ACEOF
4551 if ac_fn_c_try_compile "$LINENO"; then :
4552   ac_cv_header_stdc=yes
4553 else
4554   ac_cv_header_stdc=no
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557
4558 if test $ac_cv_header_stdc = yes; then
4559   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h.  */
4562 #include <string.h>
4563
4564 _ACEOF
4565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4566   $EGREP "memchr" >/dev/null 2>&1; then :
4567
4568 else
4569   ac_cv_header_stdc=no
4570 fi
4571 rm -f conftest*
4572
4573 fi
4574
4575 if test $ac_cv_header_stdc = yes; then
4576   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h.  */
4579 #include <stdlib.h>
4580
4581 _ACEOF
4582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4583   $EGREP "free" >/dev/null 2>&1; then :
4584
4585 else
4586   ac_cv_header_stdc=no
4587 fi
4588 rm -f conftest*
4589
4590 fi
4591
4592 if test $ac_cv_header_stdc = yes; then
4593   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4594   if test "$cross_compiling" = yes; then :
4595   :
4596 else
4597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h.  */
4599 #include <ctype.h>
4600 #include <stdlib.h>
4601 #if ((' ' & 0x0FF) == 0x020)
4602 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4603 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4604 #else
4605 # define ISLOWER(c) \
4606                    (('a' <= (c) && (c) <= 'i') \
4607                      || ('j' <= (c) && (c) <= 'r') \
4608                      || ('s' <= (c) && (c) <= 'z'))
4609 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4610 #endif
4611
4612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4613 int
4614 main ()
4615 {
4616   int i;
4617   for (i = 0; i < 256; i++)
4618     if (XOR (islower (i), ISLOWER (i))
4619         || toupper (i) != TOUPPER (i))
4620       return 2;
4621   return 0;
4622 }
4623 _ACEOF
4624 if ac_fn_c_try_run "$LINENO"; then :
4625
4626 else
4627   ac_cv_header_stdc=no
4628 fi
4629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4630   conftest.$ac_objext conftest.beam conftest.$ac_ext
4631 fi
4632
4633 fi
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4636 $as_echo "$ac_cv_header_stdc" >&6; }
4637 if test $ac_cv_header_stdc = yes; then
4638
4639 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4640
4641 fi
4642
4643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4644 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4645                   inttypes.h stdint.h unistd.h
4646 do :
4647   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4649 "
4650 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4651   cat >>confdefs.h <<_ACEOF
4652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4653 _ACEOF
4654
4655 fi
4656
4657 done
4658
4659
4660 for ac_header in dlfcn.h
4661 do :
4662   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4663 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4664   cat >>confdefs.h <<_ACEOF
4665 #define HAVE_DLFCN_H 1
4666 _ACEOF
4667
4668 fi
4669
4670 done
4671
4672 ac_ext=cpp
4673 ac_cpp='$CXXCPP $CPPFLAGS'
4674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4677 if test -z "$CXX"; then
4678   if test -n "$CCC"; then
4679     CXX=$CCC
4680   else
4681     if test -n "$ac_tool_prefix"; then
4682   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4683   do
4684     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_CXX+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -n "$CXX"; then
4692   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706   done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 CXX=$ac_cv_prog_CXX
4712 if test -n "$CXX"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4714 $as_echo "$CXX" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721     test -n "$CXX" && break
4722   done
4723 fi
4724 if test -z "$CXX"; then
4725   ac_ct_CXX=$CXX
4726   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4727 do
4728   # Extract the first word of "$ac_prog", so it can be a program name with args.
4729 set dummy $ac_prog; ac_word=$2
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731 $as_echo_n "checking for $ac_word... " >&6; }
4732 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4733   $as_echo_n "(cached) " >&6
4734 else
4735   if test -n "$ac_ct_CXX"; then
4736   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743     for ac_exec_ext in '' $ac_executable_extensions; do
4744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745     ac_cv_prog_ac_ct_CXX="$ac_prog"
4746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750   done
4751 IFS=$as_save_IFS
4752
4753 fi
4754 fi
4755 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4756 if test -n "$ac_ct_CXX"; then
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4758 $as_echo "$ac_ct_CXX" >&6; }
4759 else
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4762 fi
4763
4764
4765   test -n "$ac_ct_CXX" && break
4766 done
4767
4768   if test "x$ac_ct_CXX" = x; then
4769     CXX="g++"
4770   else
4771     case $cross_compiling:$ac_tool_warned in
4772 yes:)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4775 ac_tool_warned=yes ;;
4776 esac
4777     CXX=$ac_ct_CXX
4778   fi
4779 fi
4780
4781   fi
4782 fi
4783 # Provide some information about the compiler.
4784 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4785 set X $ac_compile
4786 ac_compiler=$2
4787 for ac_option in --version -v -V -qversion; do
4788   { { ac_try="$ac_compiler $ac_option >&5"
4789 case "(($ac_try" in
4790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791   *) ac_try_echo=$ac_try;;
4792 esac
4793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4794 $as_echo "$ac_try_echo"; } >&5
4795   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4796   ac_status=$?
4797   if test -s conftest.err; then
4798     sed '10a\
4799 ... rest of stderr output deleted ...
4800          10q' conftest.err >conftest.er1
4801     cat conftest.er1 >&5
4802   fi
4803   rm -f conftest.er1 conftest.err
4804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805   test $ac_status = 0; }
4806 done
4807
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4809 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4810 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4811   $as_echo_n "(cached) " >&6
4812 else
4813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h.  */
4815
4816 int
4817 main ()
4818 {
4819 #ifndef __GNUC__
4820        choke me
4821 #endif
4822
4823   ;
4824   return 0;
4825 }
4826 _ACEOF
4827 if ac_fn_cxx_try_compile "$LINENO"; then :
4828   ac_compiler_gnu=yes
4829 else
4830   ac_compiler_gnu=no
4831 fi
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4834
4835 fi
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4837 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4838 if test $ac_compiler_gnu = yes; then
4839   GXX=yes
4840 else
4841   GXX=
4842 fi
4843 ac_test_CXXFLAGS=${CXXFLAGS+set}
4844 ac_save_CXXFLAGS=$CXXFLAGS
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4846 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4847 if ${ac_cv_prog_cxx_g+:} false; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4851    ac_cxx_werror_flag=yes
4852    ac_cv_prog_cxx_g=no
4853    CXXFLAGS="-g"
4854    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h.  */
4856
4857 int
4858 main ()
4859 {
4860
4861   ;
4862   return 0;
4863 }
4864 _ACEOF
4865 if ac_fn_cxx_try_compile "$LINENO"; then :
4866   ac_cv_prog_cxx_g=yes
4867 else
4868   CXXFLAGS=""
4869       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h.  */
4871
4872 int
4873 main ()
4874 {
4875
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 if ac_fn_cxx_try_compile "$LINENO"; then :
4881
4882 else
4883   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4884          CXXFLAGS="-g"
4885          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h.  */
4887
4888 int
4889 main ()
4890 {
4891
4892   ;
4893   return 0;
4894 }
4895 _ACEOF
4896 if ac_fn_cxx_try_compile "$LINENO"; then :
4897   ac_cv_prog_cxx_g=yes
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 fi
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4905 fi
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4907 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4908 if test "$ac_test_CXXFLAGS" = set; then
4909   CXXFLAGS=$ac_save_CXXFLAGS
4910 elif test $ac_cv_prog_cxx_g = yes; then
4911   if test "$GXX" = yes; then
4912     CXXFLAGS="-g -O2"
4913   else
4914     CXXFLAGS="-g"
4915   fi
4916 else
4917   if test "$GXX" = yes; then
4918     CXXFLAGS="-O2"
4919   else
4920     CXXFLAGS=
4921   fi
4922 fi
4923 ac_ext=cpp
4924 ac_cpp='$CXXCPP $CPPFLAGS'
4925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4928
4929 ac_ext=cpp
4930 ac_cpp='$CXXCPP $CPPFLAGS'
4931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4935 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4936 if test -z "$CXXCPP"; then
4937   if ${ac_cv_prog_CXXCPP+:} false; then :
4938   $as_echo_n "(cached) " >&6
4939 else
4940       # Double quotes because CXXCPP needs to be expanded
4941     for CXXCPP in "$CXX -E" "/lib/cpp"
4942     do
4943       ac_preproc_ok=false
4944 for ac_cxx_preproc_warn_flag in '' yes
4945 do
4946   # Use a header file that comes with gcc, so configuring glibc
4947   # with a fresh cross-compiler works.
4948   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949   # <limits.h> exists even on freestanding compilers.
4950   # On the NeXT, cc -E runs the code through the compiler's parser,
4951   # not just through cpp. "Syntax error" is here to catch this case.
4952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h.  */
4954 #ifdef __STDC__
4955 # include <limits.h>
4956 #else
4957 # include <assert.h>
4958 #endif
4959                      Syntax error
4960 _ACEOF
4961 if ac_fn_cxx_try_cpp "$LINENO"; then :
4962
4963 else
4964   # Broken: fails on valid input.
4965 continue
4966 fi
4967 rm -f conftest.err conftest.i conftest.$ac_ext
4968
4969   # OK, works on sane cases.  Now check whether nonexistent headers
4970   # can be detected and how.
4971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h.  */
4973 #include <ac_nonexistent.h>
4974 _ACEOF
4975 if ac_fn_cxx_try_cpp "$LINENO"; then :
4976   # Broken: success on invalid input.
4977 continue
4978 else
4979   # Passes both tests.
4980 ac_preproc_ok=:
4981 break
4982 fi
4983 rm -f conftest.err conftest.i conftest.$ac_ext
4984
4985 done
4986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4987 rm -f conftest.i conftest.err conftest.$ac_ext
4988 if $ac_preproc_ok; then :
4989   break
4990 fi
4991
4992     done
4993     ac_cv_prog_CXXCPP=$CXXCPP
4994
4995 fi
4996   CXXCPP=$ac_cv_prog_CXXCPP
4997 else
4998   ac_cv_prog_CXXCPP=$CXXCPP
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5001 $as_echo "$CXXCPP" >&6; }
5002 ac_preproc_ok=false
5003 for ac_cxx_preproc_warn_flag in '' yes
5004 do
5005   # Use a header file that comes with gcc, so configuring glibc
5006   # with a fresh cross-compiler works.
5007   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5008   # <limits.h> exists even on freestanding compilers.
5009   # On the NeXT, cc -E runs the code through the compiler's parser,
5010   # not just through cpp. "Syntax error" is here to catch this case.
5011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h.  */
5013 #ifdef __STDC__
5014 # include <limits.h>
5015 #else
5016 # include <assert.h>
5017 #endif
5018                      Syntax error
5019 _ACEOF
5020 if ac_fn_cxx_try_cpp "$LINENO"; then :
5021
5022 else
5023   # Broken: fails on valid input.
5024 continue
5025 fi
5026 rm -f conftest.err conftest.i conftest.$ac_ext
5027
5028   # OK, works on sane cases.  Now check whether nonexistent headers
5029   # can be detected and how.
5030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h.  */
5032 #include <ac_nonexistent.h>
5033 _ACEOF
5034 if ac_fn_cxx_try_cpp "$LINENO"; then :
5035   # Broken: success on invalid input.
5036 continue
5037 else
5038   # Passes both tests.
5039 ac_preproc_ok=:
5040 break
5041 fi
5042 rm -f conftest.err conftest.i conftest.$ac_ext
5043
5044 done
5045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5046 rm -f conftest.i conftest.err conftest.$ac_ext
5047 if $ac_preproc_ok; then :
5048
5049 else
5050   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5052 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5053 See \`config.log' for more details" "$LINENO" 5; }
5054 fi
5055
5056 ac_ext=cpp
5057 ac_cpp='$CXXCPP $CPPFLAGS'
5058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5061
5062
5063 ac_ext=f
5064 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5065 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5067 if test -n "$ac_tool_prefix"; then
5068   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
5069   do
5070     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_prog_F77+:} false; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   if test -n "$F77"; then
5078   ac_cv_prog_F77="$F77" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083   IFS=$as_save_IFS
5084   test -z "$as_dir" && as_dir=.
5085     for ac_exec_ext in '' $ac_executable_extensions; do
5086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089     break 2
5090   fi
5091 done
5092   done
5093 IFS=$as_save_IFS
5094
5095 fi
5096 fi
5097 F77=$ac_cv_prog_F77
5098 if test -n "$F77"; then
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5100 $as_echo "$F77" >&6; }
5101 else
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105
5106
5107     test -n "$F77" && break
5108   done
5109 fi
5110 if test -z "$F77"; then
5111   ac_ct_F77=$F77
5112   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
5113 do
5114   # Extract the first word of "$ac_prog", so it can be a program name with args.
5115 set dummy $ac_prog; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_prog_ac_ct_F77+:} false; then :
5119   $as_echo_n "(cached) " >&6
5120 else
5121   if test -n "$ac_ct_F77"; then
5122   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127   IFS=$as_save_IFS
5128   test -z "$as_dir" && as_dir=.
5129     for ac_exec_ext in '' $ac_executable_extensions; do
5130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131     ac_cv_prog_ac_ct_F77="$ac_prog"
5132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133     break 2
5134   fi
5135 done
5136   done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5142 if test -n "$ac_ct_F77"; then
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5144 $as_echo "$ac_ct_F77" >&6; }
5145 else
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150
5151   test -n "$ac_ct_F77" && break
5152 done
5153
5154   if test "x$ac_ct_F77" = x; then
5155     F77=""
5156   else
5157     case $cross_compiling:$ac_tool_warned in
5158 yes:)
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5161 ac_tool_warned=yes ;;
5162 esac
5163     F77=$ac_ct_F77
5164   fi
5165 fi
5166
5167
5168 # Provide some information about the compiler.
5169 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5170 set X $ac_compile
5171 ac_compiler=$2
5172 for ac_option in --version -v -V -qversion; do
5173   { { ac_try="$ac_compiler $ac_option >&5"
5174 case "(($ac_try" in
5175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176   *) ac_try_echo=$ac_try;;
5177 esac
5178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5179 $as_echo "$ac_try_echo"; } >&5
5180   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5181   ac_status=$?
5182   if test -s conftest.err; then
5183     sed '10a\
5184 ... rest of stderr output deleted ...
5185          10q' conftest.err >conftest.er1
5186     cat conftest.er1 >&5
5187   fi
5188   rm -f conftest.er1 conftest.err
5189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5190   test $ac_status = 0; }
5191 done
5192 rm -f a.out
5193
5194 # If we don't use `.F' as extension, the preprocessor is not run on the
5195 # input file.  (Note that this only needs to work for GNU compilers.)
5196 ac_save_ext=$ac_ext
5197 ac_ext=F
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5199 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5200 if ${ac_cv_f77_compiler_gnu+:} false; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   cat > conftest.$ac_ext <<_ACEOF
5204       program main
5205 #ifndef __GNUC__
5206        choke me
5207 #endif
5208
5209       end
5210 _ACEOF
5211 if ac_fn_f77_try_compile "$LINENO"; then :
5212   ac_compiler_gnu=yes
5213 else
5214   ac_compiler_gnu=no
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5218
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5221 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5222 ac_ext=$ac_save_ext
5223 ac_test_FFLAGS=${FFLAGS+set}
5224 ac_save_FFLAGS=$FFLAGS
5225 FFLAGS=
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5227 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5228 if ${ac_cv_prog_f77_g+:} false; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231   FFLAGS=-g
5232 cat > conftest.$ac_ext <<_ACEOF
5233       program main
5234
5235       end
5236 _ACEOF
5237 if ac_fn_f77_try_compile "$LINENO"; then :
5238   ac_cv_prog_f77_g=yes
5239 else
5240   ac_cv_prog_f77_g=no
5241 fi
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5246 $as_echo "$ac_cv_prog_f77_g" >&6; }
5247 if test "$ac_test_FFLAGS" = set; then
5248   FFLAGS=$ac_save_FFLAGS
5249 elif test $ac_cv_prog_f77_g = yes; then
5250   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5251     FFLAGS="-g -O2"
5252   else
5253     FFLAGS="-g"
5254   fi
5255 else
5256   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5257     FFLAGS="-O2"
5258   else
5259     FFLAGS=
5260   fi
5261 fi
5262
5263 if test $ac_compiler_gnu = yes; then
5264   G77=yes
5265 else
5266   G77=
5267 fi
5268 ac_ext=c
5269 ac_cpp='$CPP $CPPFLAGS'
5270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5273
5274
5275
5276 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5277
5278 # find the maximum length of command line arguments
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5280 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5281 if ${lt_cv_sys_max_cmd_len+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284     i=0
5285   testring="ABCD"
5286
5287   case $build_os in
5288   msdosdjgpp*)
5289     # On DJGPP, this test can blow up pretty badly due to problems in libc
5290     # (any single argument exceeding 2000 bytes causes a buffer overrun
5291     # during glob expansion).  Even if it were fixed, the result of this
5292     # check would be larger than it should be.
5293     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5294     ;;
5295
5296   gnu*)
5297     # Under GNU Hurd, this test is not required because there is
5298     # no limit to the length of command line arguments.
5299     # Libtool will interpret -1 as no limit whatsoever
5300     lt_cv_sys_max_cmd_len=-1;
5301     ;;
5302
5303   cygwin* | mingw*)
5304     # On Win9x/ME, this test blows up -- it succeeds, but takes
5305     # about 5 minutes as the teststring grows exponentially.
5306     # Worse, since 9x/ME are not pre-emptively multitasking,
5307     # you end up with a "frozen" computer, even though with patience
5308     # the test eventually succeeds (with a max line length of 256k).
5309     # Instead, let's just punt: use the minimum linelength reported by
5310     # all of the supported platforms: 8192 (on NT/2K/XP).
5311     lt_cv_sys_max_cmd_len=8192;
5312     ;;
5313
5314   amigaos*)
5315     # On AmigaOS with pdksh, this test takes hours, literally.
5316     # So we just punt and use a minimum line length of 8192.
5317     lt_cv_sys_max_cmd_len=8192;
5318     ;;
5319
5320  *)
5321     # If test is not a shell built-in, we'll probably end up computing a
5322     # maximum length that is only half of the actual maximum length, but
5323     # we can't tell.
5324     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5325                = "XX$testring") >/dev/null 2>&1 &&
5326             new_result=`expr "X$testring" : ".*" 2>&1` &&
5327             lt_cv_sys_max_cmd_len=$new_result &&
5328             test $i != 17 # 1/2 MB should be enough
5329     do
5330       i=`expr $i + 1`
5331       testring=$testring$testring
5332     done
5333     testring=
5334     # Add a significant safety factor because C++ compilers can tack on massive
5335     # amounts of additional arguments before passing them to the linker.
5336     # It appears as though 1/2 is a usable value.
5337     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5338     ;;
5339   esac
5340
5341 fi
5342
5343 if test -n $lt_cv_sys_max_cmd_len ; then
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5345 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5346 else
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5348 $as_echo "none" >&6; }
5349 fi
5350
5351
5352
5353
5354 # Check for command to grab the raw symbol name followed by C symbol from nm.
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5356 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5357 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360
5361 # These are sane defaults that work on at least a few old systems.
5362 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5363
5364 # Character class describing NM global symbol codes.
5365 symcode='[BCDEGRST]'
5366
5367 # Regexp to match symbols that can be accessed directly from C.
5368 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5369
5370 # Transform the above into a raw symbol and a C symbol.
5371 symxfrm='\1 \2\3 \3'
5372
5373 # Transform an extracted symbol line into a proper C declaration
5374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5375
5376 # Transform an extracted symbol line into symbol name and symbol address
5377 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'"
5378
5379 # Define system-specific variables.
5380 case $host_os in
5381 aix*)
5382   symcode='[BCDT]'
5383   ;;
5384 cygwin* | mingw* | pw32*)
5385   symcode='[ABCDGISTW]'
5386   ;;
5387 hpux*) # Its linker distinguishes data from code symbols
5388   if test "$host_cpu" = ia64; then
5389     symcode='[ABCDEGRST]'
5390   fi
5391   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5392   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'"
5393   ;;
5394 irix* | nonstopux*)
5395   symcode='[BCDEGRST]'
5396   ;;
5397 osf*)
5398   symcode='[BCDEGQRST]'
5399   ;;
5400 solaris* | sysv5*)
5401   symcode='[BDRT]'
5402   ;;
5403 sysv4)
5404   symcode='[DFNSTU]'
5405   ;;
5406 esac
5407
5408 # Handle CRLF in mingw tool chain
5409 opt_cr=
5410 case $build_os in
5411 mingw*)
5412   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5413   ;;
5414 esac
5415
5416 # If we're using GNU nm, then use its standard symbol codes.
5417 case `$NM -V 2>&1` in
5418 *GNU* | *'with BFD'*)
5419   symcode='[ABCDGIRSTW]' ;;
5420 esac
5421
5422 # Try without a prefix undercore, then with it.
5423 for ac_symprfx in "" "_"; do
5424
5425   # Write the raw and C identifiers.
5426   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5427
5428   # Check to see that the pipe works correctly.
5429   pipe_works=no
5430
5431   rm -f conftest*
5432   cat > conftest.$ac_ext <<EOF
5433 #ifdef __cplusplus
5434 extern "C" {
5435 #endif
5436 char nm_test_var;
5437 void nm_test_func(){}
5438 #ifdef __cplusplus
5439 }
5440 #endif
5441 int main(){nm_test_var='a';nm_test_func();return(0);}
5442 EOF
5443
5444   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5445   (eval $ac_compile) 2>&5
5446   ac_status=$?
5447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5448   test $ac_status = 0; }; then
5449     # Now try to grab the symbols.
5450     nlist=conftest.nm
5451     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5452   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5453   ac_status=$?
5454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5455   test $ac_status = 0; } && test -s "$nlist"; then
5456       # Try sorting and uniquifying the output.
5457       if sort "$nlist" | uniq > "$nlist"T; then
5458         mv -f "$nlist"T "$nlist"
5459       else
5460         rm -f "$nlist"T
5461       fi
5462
5463       # Make sure that we snagged all the symbols we need.
5464       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5465         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5466           cat <<EOF > conftest.$ac_ext
5467 #ifdef __cplusplus
5468 extern "C" {
5469 #endif
5470
5471 EOF
5472           # Now generate the symbol file.
5473           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5474
5475           cat <<EOF >> conftest.$ac_ext
5476 #if defined (__STDC__) && __STDC__
5477 # define lt_ptr_t void *
5478 #else
5479 # define lt_ptr_t char *
5480 # define const
5481 #endif
5482
5483 /* The mapping between symbol names and symbols. */
5484 const struct {
5485   const char *name;
5486   lt_ptr_t address;
5487 }
5488 lt_preloaded_symbols[] =
5489 {
5490 EOF
5491           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5492           cat <<\EOF >> conftest.$ac_ext
5493   {0, (lt_ptr_t) 0}
5494 };
5495
5496 #ifdef __cplusplus
5497 }
5498 #endif
5499 EOF
5500           # Now try linking the two files.
5501           mv conftest.$ac_objext conftstm.$ac_objext
5502           lt_save_LIBS="$LIBS"
5503           lt_save_CFLAGS="$CFLAGS"
5504           LIBS="conftstm.$ac_objext"
5505           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5506           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5507   (eval $ac_link) 2>&5
5508   ac_status=$?
5509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5510   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5511             pipe_works=yes
5512           fi
5513           LIBS="$lt_save_LIBS"
5514           CFLAGS="$lt_save_CFLAGS"
5515         else
5516           echo "cannot find nm_test_func in $nlist" >&5
5517         fi
5518       else
5519         echo "cannot find nm_test_var in $nlist" >&5
5520       fi
5521     else
5522       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5523     fi
5524   else
5525     echo "$progname: failed program was:" >&5
5526     cat conftest.$ac_ext >&5
5527   fi
5528   rm -f conftest* conftst*
5529
5530   # Do not use the global_symbol_pipe unless it works.
5531   if test "$pipe_works" = yes; then
5532     break
5533   else
5534     lt_cv_sys_global_symbol_pipe=
5535   fi
5536 done
5537
5538 fi
5539
5540 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5541   lt_cv_sys_global_symbol_to_cdecl=
5542 fi
5543 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5545 $as_echo "failed" >&6; }
5546 else
5547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5548 $as_echo "ok" >&6; }
5549 fi
5550
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5552 $as_echo_n "checking for objdir... " >&6; }
5553 if ${lt_cv_objdir+:} false; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   rm -f .libs 2>/dev/null
5557 mkdir .libs 2>/dev/null
5558 if test -d .libs; then
5559   lt_cv_objdir=.libs
5560 else
5561   # MS-DOS does not allow filenames that begin with a dot.
5562   lt_cv_objdir=_libs
5563 fi
5564 rmdir .libs 2>/dev/null
5565 fi
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5567 $as_echo "$lt_cv_objdir" >&6; }
5568 objdir=$lt_cv_objdir
5569
5570
5571
5572
5573
5574 case $host_os in
5575 aix3*)
5576   # AIX sometimes has problems with the GCC collect2 program.  For some
5577   # reason, if we set the COLLECT_NAMES environment variable, the problems
5578   # vanish in a puff of smoke.
5579   if test "X${COLLECT_NAMES+set}" != Xset; then
5580     COLLECT_NAMES=
5581     export COLLECT_NAMES
5582   fi
5583   ;;
5584 esac
5585
5586 # Sed substitution that helps us do robust quoting.  It backslashifies
5587 # metacharacters that are still active within double-quoted strings.
5588 Xsed='sed -e s/^X//'
5589 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5590
5591 # Same as above, but do not quote variable references.
5592 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5593
5594 # Sed substitution to delay expansion of an escaped shell variable in a
5595 # double_quote_subst'ed string.
5596 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5597
5598 # Sed substitution to avoid accidental globbing in evaled expressions
5599 no_glob_subst='s/\*/\\\*/g'
5600
5601 # Constants:
5602 rm="rm -f"
5603
5604 # Global variables:
5605 default_ofile=libtool
5606 can_build_shared=yes
5607
5608 # All known linkers require a `.a' archive for static linking (except M$VC,
5609 # which needs '.lib').
5610 libext=a
5611 ltmain="$ac_aux_dir/ltmain.sh"
5612 ofile="$default_ofile"
5613 with_gnu_ld="$lt_cv_prog_gnu_ld"
5614
5615 if test -n "$ac_tool_prefix"; then
5616   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}ar; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_AR+:} false; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   if test -n "$AR"; then
5624   ac_cv_prog_AR="$AR" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631     for ac_exec_ext in '' $ac_executable_extensions; do
5632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633     ac_cv_prog_AR="${ac_tool_prefix}ar"
5634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638   done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 AR=$ac_cv_prog_AR
5644 if test -n "$AR"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5646 $as_echo "$AR" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652
5653 fi
5654 if test -z "$ac_cv_prog_AR"; then
5655   ac_ct_AR=$AR
5656   # Extract the first word of "ar", so it can be a program name with args.
5657 set dummy ar; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   if test -n "$ac_ct_AR"; then
5664   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671     for ac_exec_ext in '' $ac_executable_extensions; do
5672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673     ac_cv_prog_ac_ct_AR="ar"
5674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678   done
5679 IFS=$as_save_IFS
5680
5681 fi
5682 fi
5683 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5684 if test -n "$ac_ct_AR"; then
5685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5686 $as_echo "$ac_ct_AR" >&6; }
5687 else
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 fi
5691
5692   if test "x$ac_ct_AR" = x; then
5693     AR="false"
5694   else
5695     case $cross_compiling:$ac_tool_warned in
5696 yes:)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned=yes ;;
5700 esac
5701     AR=$ac_ct_AR
5702   fi
5703 else
5704   AR="$ac_cv_prog_AR"
5705 fi
5706
5707 if test -n "$ac_tool_prefix"; then
5708   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if ${ac_cv_prog_RANLIB+:} false; then :
5713   $as_echo_n "(cached) " >&6
5714 else
5715   if test -n "$RANLIB"; then
5716   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721   IFS=$as_save_IFS
5722   test -z "$as_dir" && as_dir=.
5723     for ac_exec_ext in '' $ac_executable_extensions; do
5724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727     break 2
5728   fi
5729 done
5730   done
5731 IFS=$as_save_IFS
5732
5733 fi
5734 fi
5735 RANLIB=$ac_cv_prog_RANLIB
5736 if test -n "$RANLIB"; then
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5738 $as_echo "$RANLIB" >&6; }
5739 else
5740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5742 fi
5743
5744
5745 fi
5746 if test -z "$ac_cv_prog_RANLIB"; then
5747   ac_ct_RANLIB=$RANLIB
5748   # Extract the first word of "ranlib", so it can be a program name with args.
5749 set dummy ranlib; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5753   $as_echo_n "(cached) " >&6
5754 else
5755   if test -n "$ac_ct_RANLIB"; then
5756   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761   IFS=$as_save_IFS
5762   test -z "$as_dir" && as_dir=.
5763     for ac_exec_ext in '' $ac_executable_extensions; do
5764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765     ac_cv_prog_ac_ct_RANLIB="ranlib"
5766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767     break 2
5768   fi
5769 done
5770   done
5771 IFS=$as_save_IFS
5772
5773 fi
5774 fi
5775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5776 if test -n "$ac_ct_RANLIB"; then
5777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5778 $as_echo "$ac_ct_RANLIB" >&6; }
5779 else
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 fi
5783
5784   if test "x$ac_ct_RANLIB" = x; then
5785     RANLIB=":"
5786   else
5787     case $cross_compiling:$ac_tool_warned in
5788 yes:)
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791 ac_tool_warned=yes ;;
5792 esac
5793     RANLIB=$ac_ct_RANLIB
5794   fi
5795 else
5796   RANLIB="$ac_cv_prog_RANLIB"
5797 fi
5798
5799 if test -n "$ac_tool_prefix"; then
5800   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5801 set dummy ${ac_tool_prefix}strip; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_STRIP+:} false; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   if test -n "$STRIP"; then
5808   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813   IFS=$as_save_IFS
5814   test -z "$as_dir" && as_dir=.
5815     for ac_exec_ext in '' $ac_executable_extensions; do
5816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819     break 2
5820   fi
5821 done
5822   done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 STRIP=$ac_cv_prog_STRIP
5828 if test -n "$STRIP"; then
5829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5830 $as_echo "$STRIP" >&6; }
5831 else
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836
5837 fi
5838 if test -z "$ac_cv_prog_STRIP"; then
5839   ac_ct_STRIP=$STRIP
5840   # Extract the first word of "strip", so it can be a program name with args.
5841 set dummy strip; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5845   $as_echo_n "(cached) " >&6
5846 else
5847   if test -n "$ac_ct_STRIP"; then
5848   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855     for ac_exec_ext in '' $ac_executable_extensions; do
5856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857     ac_cv_prog_ac_ct_STRIP="strip"
5858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859     break 2
5860   fi
5861 done
5862   done
5863 IFS=$as_save_IFS
5864
5865 fi
5866 fi
5867 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5868 if test -n "$ac_ct_STRIP"; then
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5870 $as_echo "$ac_ct_STRIP" >&6; }
5871 else
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875
5876   if test "x$ac_ct_STRIP" = x; then
5877     STRIP=":"
5878   else
5879     case $cross_compiling:$ac_tool_warned in
5880 yes:)
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned=yes ;;
5884 esac
5885     STRIP=$ac_ct_STRIP
5886   fi
5887 else
5888   STRIP="$ac_cv_prog_STRIP"
5889 fi
5890
5891
5892 old_CC="$CC"
5893 old_CFLAGS="$CFLAGS"
5894
5895 # Set sane defaults for various variables
5896 test -z "$AR" && AR=ar
5897 test -z "$AR_FLAGS" && AR_FLAGS=cru
5898 test -z "$AS" && AS=as
5899 test -z "$CC" && CC=cc
5900 test -z "$LTCC" && LTCC=$CC
5901 test -z "$DLLTOOL" && DLLTOOL=dlltool
5902 test -z "$LD" && LD=ld
5903 test -z "$LN_S" && LN_S="ln -s"
5904 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5905 test -z "$NM" && NM=nm
5906 test -z "$SED" && SED=sed
5907 test -z "$OBJDUMP" && OBJDUMP=objdump
5908 test -z "$RANLIB" && RANLIB=:
5909 test -z "$STRIP" && STRIP=:
5910 test -z "$ac_objext" && ac_objext=o
5911
5912 # Determine commands to create old-style static archives.
5913 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5914 old_postinstall_cmds='chmod 644 $oldlib'
5915 old_postuninstall_cmds=
5916
5917 if test -n "$RANLIB"; then
5918   case $host_os in
5919   openbsd*)
5920     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5921     ;;
5922   *)
5923     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5924     ;;
5925   esac
5926   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5927 fi
5928
5929 # Only perform the check for file, if the check method requires it
5930 case $deplibs_check_method in
5931 file_magic*)
5932   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
5934 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
5935 if ${lt_cv_path_MAGIC_CMD+:} false; then :
5936   $as_echo_n "(cached) " >&6
5937 else
5938   case $MAGIC_CMD in
5939 [\\/*] |  ?:[\\/]*)
5940   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5941   ;;
5942 *)
5943   lt_save_MAGIC_CMD="$MAGIC_CMD"
5944   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5945   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5946   for ac_dir in $ac_dummy; do
5947     IFS="$lt_save_ifs"
5948     test -z "$ac_dir" && ac_dir=.
5949     if test -f $ac_dir/${ac_tool_prefix}file; then
5950       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5951       if test -n "$file_magic_test_file"; then
5952         case $deplibs_check_method in
5953         "file_magic "*)
5954           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5955           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5956           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5957             $EGREP "$file_magic_regex" > /dev/null; then
5958             :
5959           else
5960             cat <<EOF 1>&2
5961
5962 *** Warning: the command libtool uses to detect shared libraries,
5963 *** $file_magic_cmd, produces output that libtool cannot recognize.
5964 *** The result is that libtool may fail to recognize shared libraries
5965 *** as such.  This will affect the creation of libtool libraries that
5966 *** depend on shared libraries, but programs linked with such libtool
5967 *** libraries will work regardless of this problem.  Nevertheless, you
5968 *** may want to report the problem to your system manager and/or to
5969 *** bug-libtool@gnu.org
5970
5971 EOF
5972           fi ;;
5973         esac
5974       fi
5975       break
5976     fi
5977   done
5978   IFS="$lt_save_ifs"
5979   MAGIC_CMD="$lt_save_MAGIC_CMD"
5980   ;;
5981 esac
5982 fi
5983
5984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5985 if test -n "$MAGIC_CMD"; then
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
5987 $as_echo "$MAGIC_CMD" >&6; }
5988 else
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992
5993 if test -z "$lt_cv_path_MAGIC_CMD"; then
5994   if test -n "$ac_tool_prefix"; then
5995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
5996 $as_echo_n "checking for file... " >&6; }
5997 if ${lt_cv_path_MAGIC_CMD+:} false; then :
5998   $as_echo_n "(cached) " >&6
5999 else
6000   case $MAGIC_CMD in
6001 [\\/*] |  ?:[\\/]*)
6002   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6003   ;;
6004 *)
6005   lt_save_MAGIC_CMD="$MAGIC_CMD"
6006   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6008   for ac_dir in $ac_dummy; do
6009     IFS="$lt_save_ifs"
6010     test -z "$ac_dir" && ac_dir=.
6011     if test -f $ac_dir/file; then
6012       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6013       if test -n "$file_magic_test_file"; then
6014         case $deplibs_check_method in
6015         "file_magic "*)
6016           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6017           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6018           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6019             $EGREP "$file_magic_regex" > /dev/null; then
6020             :
6021           else
6022             cat <<EOF 1>&2
6023
6024 *** Warning: the command libtool uses to detect shared libraries,
6025 *** $file_magic_cmd, produces output that libtool cannot recognize.
6026 *** The result is that libtool may fail to recognize shared libraries
6027 *** as such.  This will affect the creation of libtool libraries that
6028 *** depend on shared libraries, but programs linked with such libtool
6029 *** libraries will work regardless of this problem.  Nevertheless, you
6030 *** may want to report the problem to your system manager and/or to
6031 *** bug-libtool@gnu.org
6032
6033 EOF
6034           fi ;;
6035         esac
6036       fi
6037       break
6038     fi
6039   done
6040   IFS="$lt_save_ifs"
6041   MAGIC_CMD="$lt_save_MAGIC_CMD"
6042   ;;
6043 esac
6044 fi
6045
6046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6047 if test -n "$MAGIC_CMD"; then
6048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6049 $as_echo "$MAGIC_CMD" >&6; }
6050 else
6051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052 $as_echo "no" >&6; }
6053 fi
6054
6055   else
6056     MAGIC_CMD=:
6057   fi
6058 fi
6059
6060   fi
6061   ;;
6062 esac
6063
6064 enable_dlopen=no
6065 enable_win32_dll=no
6066
6067 # Check whether --enable-libtool-lock was given.
6068 if test "${enable_libtool_lock+set}" = set; then :
6069   enableval=$enable_libtool_lock;
6070 fi
6071
6072 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6073
6074
6075 # Check whether --with-pic was given.
6076 if test "${with_pic+set}" = set; then :
6077   withval=$with_pic; pic_mode="$withval"
6078 else
6079   pic_mode=default
6080 fi
6081
6082 test -z "$pic_mode" && pic_mode=default
6083
6084 # Use C for the default configuration in the libtool script
6085 tagname=
6086 lt_save_CC="$CC"
6087 ac_ext=c
6088 ac_cpp='$CPP $CPPFLAGS'
6089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6092
6093
6094 # Source file extension for C test sources.
6095 ac_ext=c
6096
6097 # Object file extension for compiled C test sources.
6098 objext=o
6099 objext=$objext
6100
6101 # Code to be used in simple compile tests
6102 lt_simple_compile_test_code="int some_variable = 0;\n"
6103
6104 # Code to be used in simple link tests
6105 lt_simple_link_test_code='int main(){return(0);}\n'
6106
6107
6108 # If no C compiler was specified, use CC.
6109 LTCC=${LTCC-"$CC"}
6110
6111 # Allow CC to be a program name with arguments.
6112 compiler=$CC
6113
6114
6115 #
6116 # Check for any special shared library compilation flags.
6117 #
6118 lt_prog_cc_shlib=
6119 if test "$GCC" = no; then
6120   case $host_os in
6121   sco3.2v5*)
6122     lt_prog_cc_shlib='-belf'
6123     ;;
6124   esac
6125 fi
6126 if test -n "$lt_prog_cc_shlib"; then
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6128 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6129   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6130   else
6131     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6132 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6133     lt_cv_prog_cc_can_build_shared=no
6134   fi
6135 fi
6136
6137
6138 #
6139 # Check to make sure the static flag actually works.
6140 #
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6142 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6143 if ${lt_prog_compiler_static_works+:} false; then :
6144   $as_echo_n "(cached) " >&6
6145 else
6146   lt_prog_compiler_static_works=no
6147    save_LDFLAGS="$LDFLAGS"
6148    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6149    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6150    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6151      # The compiler can only warn and ignore the option if not recognized
6152      # So say no if there are warnings
6153      if test -s conftest.err; then
6154        # Append any errors to the config.log.
6155        cat conftest.err 1>&5
6156      else
6157        lt_prog_compiler_static_works=yes
6158      fi
6159    fi
6160    $rm conftest*
6161    LDFLAGS="$save_LDFLAGS"
6162
6163 fi
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6165 $as_echo "$lt_prog_compiler_static_works" >&6; }
6166
6167 if test x"$lt_prog_compiler_static_works" = xyes; then
6168     :
6169 else
6170     lt_prog_compiler_static=
6171 fi
6172
6173
6174
6175 ## CAVEAT EMPTOR:
6176 ## There is no encapsulation within the following macros, do not change
6177 ## the running order or otherwise move them around unless you know exactly
6178 ## what you are doing...
6179
6180 lt_prog_compiler_no_builtin_flag=
6181
6182 if test "$GCC" = yes; then
6183   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6184
6185
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6187 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6188 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6189   $as_echo_n "(cached) " >&6
6190 else
6191   lt_cv_prog_compiler_rtti_exceptions=no
6192   ac_outfile=conftest.$ac_objext
6193    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6194    lt_compiler_flag="-fno-rtti -fno-exceptions"
6195    # Insert the option either (1) after the last *FLAGS variable, or
6196    # (2) before a word containing "conftest.", or (3) at the end.
6197    # Note that $ac_compile itself does not contain backslashes and begins
6198    # with a dollar sign (not a hyphen), so the echo should work correctly.
6199    # The option is referenced via a variable to avoid confusing sed.
6200    lt_compile=`echo "$ac_compile" | $SED \
6201    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6202    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6203    -e 's:$: $lt_compiler_flag:'`
6204    (eval echo "\"\$as_me:6204: $lt_compile\"" >&5)
6205    (eval "$lt_compile" 2>conftest.err)
6206    ac_status=$?
6207    cat conftest.err >&5
6208    echo "$as_me:6208: \$? = $ac_status" >&5
6209    if (exit $ac_status) && test -s "$ac_outfile"; then
6210      # The compiler can only warn and ignore the option if not recognized
6211      # So say no if there are warnings
6212      if test ! -s conftest.err; then
6213        lt_cv_prog_compiler_rtti_exceptions=yes
6214      fi
6215    fi
6216    $rm conftest*
6217
6218 fi
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6220 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6221
6222 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6223     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6224 else
6225     :
6226 fi
6227
6228 fi
6229
6230 lt_prog_compiler_wl=
6231 lt_prog_compiler_pic=
6232 lt_prog_compiler_static=
6233
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6235 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6236
6237   if test "$GCC" = yes; then
6238     lt_prog_compiler_wl='-Wl,'
6239     lt_prog_compiler_static='-static'
6240
6241     case $host_os in
6242       aix*)
6243       # All AIX code is PIC.
6244       if test "$host_cpu" = ia64; then
6245         # AIX 5 now supports IA64 processor
6246         lt_prog_compiler_static='-Bstatic'
6247       fi
6248       ;;
6249
6250     amigaos*)
6251       # FIXME: we need at least 68020 code to build shared libraries, but
6252       # adding the `-m68020' flag to GCC prevents building anything better,
6253       # like `-m68040'.
6254       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6255       ;;
6256
6257     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6258       # PIC is the default for these OSes.
6259       ;;
6260
6261     mingw* | pw32* | os2*)
6262       # This hack is so that the source file can tell whether it is being
6263       # built for inclusion in a dll (and should export symbols for example).
6264       lt_prog_compiler_pic='-DDLL_EXPORT'
6265       ;;
6266
6267     darwin* | rhapsody*)
6268       # PIC is the default on this platform
6269       # Common symbols not allowed in MH_DYLIB files
6270       lt_prog_compiler_pic='-fno-common'
6271       ;;
6272
6273     msdosdjgpp*)
6274       # Just because we use GCC doesn't mean we suddenly get shared libraries
6275       # on systems that don't support them.
6276       lt_prog_compiler_can_build_shared=no
6277       enable_shared=no
6278       ;;
6279
6280     sysv4*MP*)
6281       if test -d /usr/nec; then
6282         lt_prog_compiler_pic=-Kconform_pic
6283       fi
6284       ;;
6285
6286     hpux*)
6287       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6288       # not for PA HP-UX.
6289       case "$host_cpu" in
6290       hppa*64*|ia64*)
6291         # +Z the default
6292         ;;
6293       *)
6294         lt_prog_compiler_pic='-fPIC'
6295         ;;
6296       esac
6297       ;;
6298
6299     *)
6300       lt_prog_compiler_pic='-fPIC'
6301       ;;
6302     esac
6303   else
6304     # PORTME Check for flag to pass linker flags through the system compiler.
6305     case $host_os in
6306     aix*)
6307       lt_prog_compiler_wl='-Wl,'
6308       if test "$host_cpu" = ia64; then
6309         # AIX 5 now supports IA64 processor
6310         lt_prog_compiler_static='-Bstatic'
6311       else
6312         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6313       fi
6314       ;;
6315
6316     mingw* | pw32* | os2*)
6317       # This hack is so that the source file can tell whether it is being
6318       # built for inclusion in a dll (and should export symbols for example).
6319       lt_prog_compiler_pic='-DDLL_EXPORT'
6320       ;;
6321
6322     hpux9* | hpux10* | hpux11*)
6323       lt_prog_compiler_wl='-Wl,'
6324       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6325       # not for PA HP-UX.
6326       case "$host_cpu" in
6327       hppa*64*|ia64*)
6328         # +Z the default
6329         ;;
6330       *)
6331         lt_prog_compiler_pic='+Z'
6332         ;;
6333       esac
6334       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6335       lt_prog_compiler_static='${wl}-a ${wl}archive'
6336       ;;
6337
6338     irix5* | irix6* | nonstopux*)
6339       lt_prog_compiler_wl='-Wl,'
6340       # PIC (with -KPIC) is the default.
6341       lt_prog_compiler_static='-non_shared'
6342       ;;
6343
6344     newsos6)
6345       lt_prog_compiler_pic='-KPIC'
6346       lt_prog_compiler_static='-Bstatic'
6347       ;;
6348
6349     linux*)
6350       case $CC in
6351       icc* | ecc*)
6352         lt_prog_compiler_wl='-Wl,'
6353         lt_prog_compiler_pic='-KPIC'
6354         lt_prog_compiler_static='-static'
6355         ;;
6356       ccc*)
6357         lt_prog_compiler_wl='-Wl,'
6358         # All Alpha code is PIC.
6359         lt_prog_compiler_static='-non_shared'
6360         ;;
6361       esac
6362       ;;
6363
6364     osf3* | osf4* | osf5*)
6365       lt_prog_compiler_wl='-Wl,'
6366       # All OSF/1 code is PIC.
6367       lt_prog_compiler_static='-non_shared'
6368       ;;
6369
6370     sco3.2v5*)
6371       lt_prog_compiler_pic='-Kpic'
6372       lt_prog_compiler_static='-dn'
6373       ;;
6374
6375     solaris*)
6376       lt_prog_compiler_wl='-Wl,'
6377       lt_prog_compiler_pic='-KPIC'
6378       lt_prog_compiler_static='-Bstatic'
6379       ;;
6380
6381     sunos4*)
6382       lt_prog_compiler_wl='-Qoption ld '
6383       lt_prog_compiler_pic='-PIC'
6384       lt_prog_compiler_static='-Bstatic'
6385       ;;
6386
6387     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6388       lt_prog_compiler_wl='-Wl,'
6389       lt_prog_compiler_pic='-KPIC'
6390       lt_prog_compiler_static='-Bstatic'
6391       ;;
6392
6393     sysv4*MP*)
6394       if test -d /usr/nec ;then
6395         lt_prog_compiler_pic='-Kconform_pic'
6396         lt_prog_compiler_static='-Bstatic'
6397       fi
6398       ;;
6399
6400     uts4*)
6401       lt_prog_compiler_pic='-pic'
6402       lt_prog_compiler_static='-Bstatic'
6403       ;;
6404
6405     *)
6406       lt_prog_compiler_can_build_shared=no
6407       ;;
6408     esac
6409   fi
6410
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6412 $as_echo "$lt_prog_compiler_pic" >&6; }
6413
6414 #
6415 # Check to make sure the PIC flag actually works.
6416 #
6417 if test -n "$lt_prog_compiler_pic"; then
6418
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6420 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6421 if ${lt_prog_compiler_pic_works+:} false; then :
6422   $as_echo_n "(cached) " >&6
6423 else
6424   lt_prog_compiler_pic_works=no
6425   ac_outfile=conftest.$ac_objext
6426    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6427    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6428    # Insert the option either (1) after the last *FLAGS variable, or
6429    # (2) before a word containing "conftest.", or (3) at the end.
6430    # Note that $ac_compile itself does not contain backslashes and begins
6431    # with a dollar sign (not a hyphen), so the echo should work correctly.
6432    # The option is referenced via a variable to avoid confusing sed.
6433    lt_compile=`echo "$ac_compile" | $SED \
6434    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6435    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6436    -e 's:$: $lt_compiler_flag:'`
6437    (eval echo "\"\$as_me:6437: $lt_compile\"" >&5)
6438    (eval "$lt_compile" 2>conftest.err)
6439    ac_status=$?
6440    cat conftest.err >&5
6441    echo "$as_me:6441: \$? = $ac_status" >&5
6442    if (exit $ac_status) && test -s "$ac_outfile"; then
6443      # The compiler can only warn and ignore the option if not recognized
6444      # So say no if there are warnings
6445      if test ! -s conftest.err; then
6446        lt_prog_compiler_pic_works=yes
6447      fi
6448    fi
6449    $rm conftest*
6450
6451 fi
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
6453 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6454
6455 if test x"$lt_prog_compiler_pic_works" = xyes; then
6456     case $lt_prog_compiler_pic in
6457      "" | " "*) ;;
6458      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6459      esac
6460 else
6461     lt_prog_compiler_pic=
6462      lt_prog_compiler_can_build_shared=no
6463 fi
6464
6465 fi
6466 case "$host_os" in
6467   # For platforms which do not support PIC, -DPIC is meaningless:
6468   *djgpp*)
6469     lt_prog_compiler_pic=
6470     ;;
6471   *)
6472     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6473     ;;
6474 esac
6475
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6477 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6478 if ${lt_cv_prog_compiler_c_o+:} false; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   lt_cv_prog_compiler_c_o=no
6482    $rm -r conftest 2>/dev/null
6483    mkdir conftest
6484    cd conftest
6485    mkdir out
6486    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6487
6488    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6489    # that will create temporary files in the current directory regardless of
6490    # the output directory.  Thus, making CWD read-only will cause this test
6491    # to fail, enabling locking or at least warning the user not to do parallel
6492    # builds.
6493    chmod -w .
6494
6495    lt_compiler_flag="-o out/conftest2.$ac_objext"
6496    # Insert the option either (1) after the last *FLAGS variable, or
6497    # (2) before a word containing "conftest.", or (3) at the end.
6498    # Note that $ac_compile itself does not contain backslashes and begins
6499    # with a dollar sign (not a hyphen), so the echo should work correctly.
6500    lt_compile=`echo "$ac_compile" | $SED \
6501    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6503    -e 's:$: $lt_compiler_flag:'`
6504    (eval echo "\"\$as_me:6504: $lt_compile\"" >&5)
6505    (eval "$lt_compile" 2>out/conftest.err)
6506    ac_status=$?
6507    cat out/conftest.err >&5
6508    echo "$as_me:6508: \$? = $ac_status" >&5
6509    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6510    then
6511      # The compiler can only warn and ignore the option if not recognized
6512      # So say no if there are warnings
6513      if test ! -s out/conftest.err; then
6514        lt_cv_prog_compiler_c_o=yes
6515      fi
6516    fi
6517    chmod u+w .
6518    $rm conftest*
6519    # SGI C++ compiler will create directory out/ii_files/ for
6520    # template instantiation
6521    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6522    $rm out/* && rmdir out
6523    cd ..
6524    rmdir conftest
6525    $rm conftest*
6526
6527 fi
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
6529 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
6530
6531
6532 hard_links="nottested"
6533 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6534   # do not overwrite the value of need_locks provided by the user
6535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
6536 $as_echo_n "checking if we can lock with hard links... " >&6; }
6537   hard_links=yes
6538   $rm conftest*
6539   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6540   touch conftest.a
6541   ln conftest.a conftest.b 2>&5 || hard_links=no
6542   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
6544 $as_echo "$hard_links" >&6; }
6545   if test "$hard_links" = no; then
6546     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6547 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6548     need_locks=warn
6549   fi
6550 else
6551   need_locks=no
6552 fi
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6555 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
6556
6557   runpath_var=
6558   allow_undefined_flag=
6559   enable_shared_with_static_runtimes=no
6560   archive_cmds=
6561   archive_expsym_cmds=
6562   old_archive_From_new_cmds=
6563   old_archive_from_expsyms_cmds=
6564   export_dynamic_flag_spec=
6565   whole_archive_flag_spec=
6566   thread_safe_flag_spec=
6567   hardcode_libdir_flag_spec=
6568   hardcode_libdir_flag_spec_ld=
6569   hardcode_libdir_separator=
6570   hardcode_direct=no
6571   hardcode_minus_L=no
6572   hardcode_shlibpath_var=unsupported
6573   link_all_deplibs=unknown
6574   hardcode_automatic=no
6575   module_cmds=
6576   module_expsym_cmds=
6577   always_export_symbols=no
6578   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6579   # include_expsyms should be a list of space-separated symbols to be *always*
6580   # included in the symbol list
6581   include_expsyms=
6582   # exclude_expsyms can be an extended regexp of symbols to exclude
6583   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6584   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6585   # as well as any symbol that contains `d'.
6586   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6587   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6588   # platforms (ab)use it in PIC code, but their linkers get confused if
6589   # the symbol is explicitly referenced.  Since portable code cannot
6590   # rely on this symbol name, it's probably fine to never include it in
6591   # preloaded symbol tables.
6592   extract_expsyms_cmds=
6593
6594   case $host_os in
6595   cygwin* | mingw* | pw32*)
6596     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6597     # When not using gcc, we currently assume that we are using
6598     # Microsoft Visual C++.
6599     if test "$GCC" != yes; then
6600       with_gnu_ld=no
6601     fi
6602     ;;
6603   openbsd*)
6604     with_gnu_ld=no
6605     ;;
6606   esac
6607
6608   ld_shlibs=yes
6609   if test "$with_gnu_ld" = yes; then
6610     # If archive_cmds runs LD, not CC, wlarc should be empty
6611     wlarc='${wl}'
6612
6613     # See if GNU ld supports shared libraries.
6614     case $host_os in
6615     aix3* | aix4* | aix5*)
6616       # On AIX/PPC, the GNU linker is very broken
6617       if test "$host_cpu" != ia64; then
6618         ld_shlibs=no
6619         cat <<EOF 1>&2
6620
6621 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6622 *** to be unable to reliably create shared libraries on AIX.
6623 *** Therefore, libtool is disabling shared libraries support.  If you
6624 *** really care for shared libraries, you may want to modify your PATH
6625 *** so that a non-GNU linker is found, and then restart.
6626
6627 EOF
6628       fi
6629       ;;
6630
6631     amigaos*)
6632       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)'
6633       hardcode_libdir_flag_spec='-L$libdir'
6634       hardcode_minus_L=yes
6635
6636       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6637       # that the semantics of dynamic libraries on AmigaOS, at least up
6638       # to version 4, is to share data among multiple programs linked
6639       # with the same dynamic library.  Since this doesn't match the
6640       # behavior of shared libraries on other platforms, we can't use
6641       # them.
6642       ld_shlibs=no
6643       ;;
6644
6645     beos*)
6646       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6647         allow_undefined_flag=unsupported
6648         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6649         # support --undefined.  This deserves some investigation.  FIXME
6650         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6651       else
6652         ld_shlibs=no
6653       fi
6654       ;;
6655
6656     cygwin* | mingw* | pw32*)
6657       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6658       # as there is no search path for DLLs.
6659       hardcode_libdir_flag_spec='-L$libdir'
6660       allow_undefined_flag=unsupported
6661       always_export_symbols=no
6662       enable_shared_with_static_runtimes=yes
6663       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6664
6665       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6666         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6667         # If the export-symbols file already is a .def file (1st line
6668         # is EXPORTS), use it as is; otherwise, prepend...
6669         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6670           cp $export_symbols $output_objdir/$soname.def;
6671         else
6672           echo EXPORTS > $output_objdir/$soname.def;
6673           cat $export_symbols >> $output_objdir/$soname.def;
6674         fi~
6675         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6676       else
6677         ld_shlibs=no
6678       fi
6679       ;;
6680
6681     netbsd*)
6682       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6683         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6684         wlarc=
6685       else
6686         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6687         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6688       fi
6689       ;;
6690
6691     solaris* | sysv5*)
6692       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6693         ld_shlibs=no
6694         cat <<EOF 1>&2
6695
6696 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6697 *** create shared libraries on Solaris systems.  Therefore, libtool
6698 *** is disabling shared libraries support.  We urge you to upgrade GNU
6699 *** binutils to release 2.9.1 or newer.  Another option is to modify
6700 *** your PATH or compiler configuration so that the native linker is
6701 *** used, and then restart.
6702
6703 EOF
6704       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6705         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6706         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6707       else
6708         ld_shlibs=no
6709       fi
6710       ;;
6711
6712     sunos4*)
6713       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6714       wlarc=
6715       hardcode_direct=yes
6716       hardcode_shlibpath_var=no
6717       ;;
6718
6719   linux*)
6720     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6721         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6722         archive_cmds="$tmp_archive_cmds"
6723       supports_anon_versioning=no
6724       case `$LD -v 2>/dev/null` in
6725         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6726         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6727         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6728         *\ 2.11.*) ;; # other 2.11 versions
6729         *) supports_anon_versioning=yes ;;
6730       esac
6731       if test $supports_anon_versioning = yes; then
6732         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6734 $echo "local: *; };" >> $output_objdir/$libname.ver~
6735         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6736       else
6737         archive_expsym_cmds="$tmp_archive_cmds"
6738       fi
6739     else
6740       ld_shlibs=no
6741     fi
6742     ;;
6743
6744     *)
6745       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6746         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6747         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6748       else
6749         ld_shlibs=no
6750       fi
6751       ;;
6752     esac
6753
6754     if test "$ld_shlibs" = yes; then
6755       runpath_var=LD_RUN_PATH
6756       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6757       export_dynamic_flag_spec='${wl}--export-dynamic'
6758       # ancient GNU ld didn't support --whole-archive et. al.
6759       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6760         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6761       else
6762         whole_archive_flag_spec=
6763       fi
6764     fi
6765   else
6766     # PORTME fill in a description of your system's linker (not GNU ld)
6767     case $host_os in
6768     aix3*)
6769       allow_undefined_flag=unsupported
6770       always_export_symbols=yes
6771       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'
6772       # Note: this linker hardcodes the directories in LIBPATH if there
6773       # are no directories specified by -L.
6774       hardcode_minus_L=yes
6775       if test "$GCC" = yes && test -z "$link_static_flag"; then
6776         # Neither direct hardcoding nor static linking is supported with a
6777         # broken collect2.
6778         hardcode_direct=unsupported
6779       fi
6780       ;;
6781
6782     aix4* | aix5*)
6783       if test "$host_cpu" = ia64; then
6784         # On IA64, the linker does run time linking by default, so we don't
6785         # have to do anything special.
6786         aix_use_runtimelinking=no
6787         exp_sym_flag='-Bexport'
6788         no_entry_flag=""
6789       else
6790         # If we're using GNU nm, then we don't want the "-C" option.
6791         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6792         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6793           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'
6794         else
6795           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'
6796         fi
6797         aix_use_runtimelinking=no
6798
6799         # Test if we are trying to use run time linking or normal
6800         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6801         # need to do runtime linking.
6802         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6803           for ld_flag in $LDFLAGS; do
6804           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6805             aix_use_runtimelinking=yes
6806             break
6807           fi
6808           done
6809         esac
6810
6811         exp_sym_flag='-bexport'
6812         no_entry_flag='-bnoentry'
6813       fi
6814
6815       # When large executables or shared objects are built, AIX ld can
6816       # have problems creating the table of contents.  If linking a library
6817       # or program results in "error TOC overflow" add -mminimal-toc to
6818       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6819       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6820
6821       archive_cmds=''
6822       hardcode_direct=yes
6823       hardcode_libdir_separator=':'
6824       link_all_deplibs=yes
6825
6826       if test "$GCC" = yes; then
6827         case $host_os in aix4.012|aix4.012.*)
6828         # We only want to do this on AIX 4.2 and lower, the check
6829         # below for broken collect2 doesn't work under 4.3+
6830           collect2name=`${CC} -print-prog-name=collect2`
6831           if test -f "$collect2name" && \
6832            strings "$collect2name" | grep resolve_lib_name >/dev/null
6833           then
6834           # We have reworked collect2
6835           hardcode_direct=yes
6836           else
6837           # We have old collect2
6838           hardcode_direct=unsupported
6839           # It fails to find uninstalled libraries when the uninstalled
6840           # path is not listed in the libpath.  Setting hardcode_minus_L
6841           # to unsupported forces relinking
6842           hardcode_minus_L=yes
6843           hardcode_libdir_flag_spec='-L$libdir'
6844           hardcode_libdir_separator=
6845           fi
6846         esac
6847         shared_flag='-shared'
6848       else
6849         # not using gcc
6850         if test "$host_cpu" = ia64; then
6851         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6852         # chokes on -Wl,-G. The following line is correct:
6853           shared_flag='-G'
6854         else
6855         if test "$aix_use_runtimelinking" = yes; then
6856             shared_flag='${wl}-G'
6857           else
6858             shared_flag='${wl}-bM:SRE'
6859         fi
6860         fi
6861       fi
6862
6863       # It seems that -bexpall does not export symbols beginning with
6864       # underscore (_), so it is better to generate a list of symbols to export.
6865       always_export_symbols=yes
6866       if test "$aix_use_runtimelinking" = yes; then
6867         # Warning - without using the other runtime loading flags (-brtl),
6868         # -berok will link without error, but may produce a broken library.
6869         allow_undefined_flag='-berok'
6870        # Determine the default libpath from the value encoded in an empty executable.
6871        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h.  */
6873
6874 int
6875 main ()
6876 {
6877
6878   ;
6879   return 0;
6880 }
6881 _ACEOF
6882 if ac_fn_c_try_link "$LINENO"; then :
6883
6884 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6885 }'`
6886 # Check for a 64-bit object if we didn't find anything.
6887 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; }
6888 }'`; fi
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext \
6891     conftest$ac_exeext conftest.$ac_ext
6892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6893
6894        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6895         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"
6896        else
6897         if test "$host_cpu" = ia64; then
6898           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6899           allow_undefined_flag="-z nodefs"
6900           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"
6901         else
6902          # Determine the default libpath from the value encoded in an empty executable.
6903          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h.  */
6905
6906 int
6907 main ()
6908 {
6909
6910   ;
6911   return 0;
6912 }
6913 _ACEOF
6914 if ac_fn_c_try_link "$LINENO"; then :
6915
6916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6917 }'`
6918 # Check for a 64-bit object if we didn't find anything.
6919 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; }
6920 }'`; fi
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext \
6923     conftest$ac_exeext conftest.$ac_ext
6924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6925
6926          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6927           # Warning - without using the other run time loading flags,
6928           # -berok will link without error, but may produce a broken library.
6929           no_undefined_flag=' ${wl}-bernotok'
6930           allow_undefined_flag=' ${wl}-berok'
6931           # -bexpall does not export symbols beginning with underscore (_)
6932           always_export_symbols=yes
6933           # Exported symbols can be pulled into shared objects from archives
6934           whole_archive_flag_spec=' '
6935           archive_cmds_need_lc=yes
6936           # This is similar to how AIX traditionally builds it's shared libraries.
6937           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'
6938         fi
6939       fi
6940       ;;
6941
6942     amigaos*)
6943       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)'
6944       hardcode_libdir_flag_spec='-L$libdir'
6945       hardcode_minus_L=yes
6946       # see comment about different semantics on the GNU ld section
6947       ld_shlibs=no
6948       ;;
6949
6950     bsdi4*)
6951       export_dynamic_flag_spec=-rdynamic
6952       ;;
6953
6954     cygwin* | mingw* | pw32*)
6955       # When not using gcc, we currently assume that we are using
6956       # Microsoft Visual C++.
6957       # hardcode_libdir_flag_spec is actually meaningless, as there is
6958       # no search path for DLLs.
6959       hardcode_libdir_flag_spec=' '
6960       allow_undefined_flag=unsupported
6961       # Tell ltmain to make .lib files, not .a files.
6962       libext=lib
6963       # Tell ltmain to make .dll files, not .so files.
6964       shrext=".dll"
6965       # FIXME: Setting linknames here is a bad hack.
6966       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6967       # The linker will automatically build a .lib file if we build a DLL.
6968       old_archive_From_new_cmds='true'
6969       # FIXME: Should let the user specify the lib program.
6970       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6971       fix_srcfile_path='`cygpath -w "$srcfile"`'
6972       enable_shared_with_static_runtimes=yes
6973       ;;
6974
6975     darwin* | rhapsody*)
6976     if test "$GXX" = yes ; then
6977       archive_cmds_need_lc=no
6978       case "$host_os" in
6979       rhapsody* | darwin1.[012])
6980         allow_undefined_flag='-undefined suppress'
6981         ;;
6982       *) # Darwin 1.3 on
6983       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6984         allow_undefined_flag='-flat_namespace -undefined suppress'
6985       else
6986         case ${MACOSX_DEPLOYMENT_TARGET} in
6987           10.[012])
6988             allow_undefined_flag='-flat_namespace -undefined suppress'
6989             ;;
6990           10.*)
6991             allow_undefined_flag='-undefined dynamic_lookup'
6992             ;;
6993         esac
6994       fi
6995         ;;
6996       esac
6997         lt_int_apple_cc_single_mod=no
6998         output_verbose_link_cmd='echo'
6999         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7000           lt_int_apple_cc_single_mod=yes
7001         fi
7002         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7003           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7004         else
7005         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'
7006       fi
7007       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7008       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7009         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7010           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}'
7011         else
7012           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}'
7013         fi
7014           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}'
7015       hardcode_direct=no
7016       hardcode_automatic=yes
7017       hardcode_shlibpath_var=unsupported
7018       whole_archive_flag_spec='-all_load $convenience'
7019       link_all_deplibs=yes
7020     else
7021       ld_shlibs=no
7022     fi
7023       ;;
7024
7025     dgux*)
7026       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7027       hardcode_libdir_flag_spec='-L$libdir'
7028       hardcode_shlibpath_var=no
7029       ;;
7030
7031     freebsd1*)
7032       ld_shlibs=no
7033       ;;
7034
7035     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7036     # support.  Future versions do this automatically, but an explicit c++rt0.o
7037     # does not break anything, and helps significantly (at the cost of a little
7038     # extra space).
7039     freebsd2.2*)
7040       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7041       hardcode_libdir_flag_spec='-R$libdir'
7042       hardcode_direct=yes
7043       hardcode_shlibpath_var=no
7044       ;;
7045
7046     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7047     freebsd2*)
7048       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7049       hardcode_direct=yes
7050       hardcode_minus_L=yes
7051       hardcode_shlibpath_var=no
7052       ;;
7053
7054     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7055     freebsd* | kfreebsd*-gnu)
7056       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7057       hardcode_libdir_flag_spec='-R$libdir'
7058       hardcode_direct=yes
7059       hardcode_shlibpath_var=no
7060       ;;
7061
7062     hpux9*)
7063       if test "$GCC" = yes; then
7064         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'
7065       else
7066         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'
7067       fi
7068       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7069       hardcode_libdir_separator=:
7070       hardcode_direct=yes
7071
7072       # hardcode_minus_L: Not really in the search PATH,
7073       # but as the default location of the library.
7074       hardcode_minus_L=yes
7075       export_dynamic_flag_spec='${wl}-E'
7076       ;;
7077
7078     hpux10* | hpux11*)
7079       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7080         case "$host_cpu" in
7081         hppa*64*|ia64*)
7082           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7083           ;;
7084         *)
7085           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7086           ;;
7087         esac
7088       else
7089         case "$host_cpu" in
7090         hppa*64*|ia64*)
7091           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7092           ;;
7093         *)
7094           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7095           ;;
7096         esac
7097       fi
7098       if test "$with_gnu_ld" = no; then
7099         case "$host_cpu" in
7100         hppa*64*)
7101           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7102           hardcode_libdir_flag_spec_ld='+b $libdir'
7103           hardcode_libdir_separator=:
7104           hardcode_direct=no
7105           hardcode_shlibpath_var=no
7106           ;;
7107         ia64*)
7108           hardcode_libdir_flag_spec='-L$libdir'
7109           hardcode_direct=no
7110           hardcode_shlibpath_var=no
7111
7112           # hardcode_minus_L: Not really in the search PATH,
7113           # but as the default location of the library.
7114           hardcode_minus_L=yes
7115           ;;
7116         *)
7117           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7118           hardcode_libdir_separator=:
7119           hardcode_direct=yes
7120           export_dynamic_flag_spec='${wl}-E'
7121
7122           # hardcode_minus_L: Not really in the search PATH,
7123           # but as the default location of the library.
7124           hardcode_minus_L=yes
7125           ;;
7126         esac
7127       fi
7128       ;;
7129
7130     irix5* | irix6* | nonstopux*)
7131       if test "$GCC" = yes; then
7132         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'
7133       else
7134         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'
7135         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7136       fi
7137       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7138       hardcode_libdir_separator=:
7139       link_all_deplibs=yes
7140       ;;
7141
7142     netbsd*)
7143       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7144         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7145       else
7146         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7147       fi
7148       hardcode_libdir_flag_spec='-R$libdir'
7149       hardcode_direct=yes
7150       hardcode_shlibpath_var=no
7151       ;;
7152
7153     newsos6)
7154       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7155       hardcode_direct=yes
7156       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7157       hardcode_libdir_separator=:
7158       hardcode_shlibpath_var=no
7159       ;;
7160
7161     openbsd*)
7162       hardcode_direct=yes
7163       hardcode_shlibpath_var=no
7164       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7165         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7166         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7167         export_dynamic_flag_spec='${wl}-E'
7168       else
7169        case $host_os in
7170          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7171            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7172            hardcode_libdir_flag_spec='-R$libdir'
7173            ;;
7174          *)
7175            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7176            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7177            ;;
7178        esac
7179       fi
7180       ;;
7181
7182     os2*)
7183       hardcode_libdir_flag_spec='-L$libdir'
7184       hardcode_minus_L=yes
7185       allow_undefined_flag=unsupported
7186       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'
7187       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7188       ;;
7189
7190     osf3*)
7191       if test "$GCC" = yes; then
7192         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7193         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'
7194       else
7195         allow_undefined_flag=' -expect_unresolved \*'
7196         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'
7197       fi
7198       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7199       hardcode_libdir_separator=:
7200       ;;
7201
7202     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7203       if test "$GCC" = yes; then
7204         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7205         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'
7206         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7207       else
7208         allow_undefined_flag=' -expect_unresolved \*'
7209         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'
7210         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7211         $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'
7212
7213         # Both c and cxx compiler support -rpath directly
7214         hardcode_libdir_flag_spec='-rpath $libdir'
7215       fi
7216       hardcode_libdir_separator=:
7217       ;;
7218
7219     sco3.2v5*)
7220       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7221       hardcode_shlibpath_var=no
7222       export_dynamic_flag_spec='${wl}-Bexport'
7223       runpath_var=LD_RUN_PATH
7224       hardcode_runpath_var=yes
7225       ;;
7226
7227     solaris*)
7228       no_undefined_flag=' -z text'
7229       if test "$GCC" = yes; then
7230         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7231         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7232           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7233       else
7234         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7235         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7236         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7237       fi
7238       hardcode_libdir_flag_spec='-R$libdir'
7239       hardcode_shlibpath_var=no
7240       case $host_os in
7241       solaris2.[0-5] | solaris2.[0-5].*) ;;
7242       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7243         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7244       esac
7245       link_all_deplibs=yes
7246       ;;
7247
7248     sunos4*)
7249       if test "x$host_vendor" = xsequent; then
7250         # Use $CC to link under sequent, because it throws in some extra .o
7251         # files that make .init and .fini sections work.
7252         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7253       else
7254         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7255       fi
7256       hardcode_libdir_flag_spec='-L$libdir'
7257       hardcode_direct=yes
7258       hardcode_minus_L=yes
7259       hardcode_shlibpath_var=no
7260       ;;
7261
7262     sysv4)
7263       case $host_vendor in
7264         sni)
7265           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7266           hardcode_direct=yes # is this really true???
7267         ;;
7268         siemens)
7269           ## LD is ld it makes a PLAMLIB
7270           ## CC just makes a GrossModule.
7271           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7272           reload_cmds='$CC -r -o $output$reload_objs'
7273           hardcode_direct=no
7274         ;;
7275         motorola)
7276           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7277           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7278         ;;
7279       esac
7280       runpath_var='LD_RUN_PATH'
7281       hardcode_shlibpath_var=no
7282       ;;
7283
7284     sysv4.3*)
7285       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286       hardcode_shlibpath_var=no
7287       export_dynamic_flag_spec='-Bexport'
7288       ;;
7289
7290     sysv4*MP*)
7291       if test -d /usr/nec; then
7292         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7293         hardcode_shlibpath_var=no
7294         runpath_var=LD_RUN_PATH
7295         hardcode_runpath_var=yes
7296         ld_shlibs=yes
7297       fi
7298       ;;
7299
7300     sysv4.2uw2*)
7301       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7302       hardcode_direct=yes
7303       hardcode_minus_L=no
7304       hardcode_shlibpath_var=no
7305       hardcode_runpath_var=yes
7306       runpath_var=LD_RUN_PATH
7307       ;;
7308
7309    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7310       no_undefined_flag='${wl}-z ${wl}text'
7311       if test "$GCC" = yes; then
7312         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7313       else
7314         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7315       fi
7316       runpath_var='LD_RUN_PATH'
7317       hardcode_shlibpath_var=no
7318       ;;
7319
7320     sysv5*)
7321       no_undefined_flag=' -z text'
7322       # $CC -shared without GNU ld will not create a library from C++
7323       # object files and a static libstdc++, better avoid it by now
7324       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7326                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7327       hardcode_libdir_flag_spec=
7328       hardcode_shlibpath_var=no
7329       runpath_var='LD_RUN_PATH'
7330       ;;
7331
7332     uts4*)
7333       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7334       hardcode_libdir_flag_spec='-L$libdir'
7335       hardcode_shlibpath_var=no
7336       ;;
7337
7338     *)
7339       ld_shlibs=no
7340       ;;
7341     esac
7342   fi
7343
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7345 $as_echo "$ld_shlibs" >&6; }
7346 test "$ld_shlibs" = no && can_build_shared=no
7347
7348 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7349 if test "$GCC" = yes; then
7350   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7351 fi
7352
7353 #
7354 # Do we need to explicitly link libc?
7355 #
7356 case "x$archive_cmds_need_lc" in
7357 x|xyes)
7358   # Assume -lc should be added
7359   archive_cmds_need_lc=yes
7360
7361   if test "$enable_shared" = yes && test "$GCC" = yes; then
7362     case $archive_cmds in
7363     *'~'*)
7364       # FIXME: we may have to deal with multi-command sequences.
7365       ;;
7366     '$CC '*)
7367       # Test whether the compiler implicitly links with -lc since on some
7368       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7369       # to ld, don't add -lc before -lgcc.
7370       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7371 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7372       $rm conftest*
7373       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7374
7375       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7376   (eval $ac_compile) 2>&5
7377   ac_status=$?
7378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7379   test $ac_status = 0; } 2>conftest.err; then
7380         soname=conftest
7381         lib=conftest
7382         libobjs=conftest.$ac_objext
7383         deplibs=
7384         wl=$lt_prog_compiler_wl
7385         compiler_flags=-v
7386         linker_flags=-v
7387         verstring=
7388         output_objdir=.
7389         libname=conftest
7390         lt_save_allow_undefined_flag=$allow_undefined_flag
7391         allow_undefined_flag=
7392         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7393   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7394   ac_status=$?
7395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396   test $ac_status = 0; }
7397         then
7398           archive_cmds_need_lc=no
7399         else
7400           archive_cmds_need_lc=yes
7401         fi
7402         allow_undefined_flag=$lt_save_allow_undefined_flag
7403       else
7404         cat conftest.err 1>&5
7405       fi
7406       $rm conftest*
7407       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
7408 $as_echo "$archive_cmds_need_lc" >&6; }
7409       ;;
7410     esac
7411   fi
7412   ;;
7413 esac
7414
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
7416 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7417 library_names_spec=
7418 libname_spec='lib$name'
7419 soname_spec=
7420 shrext=".so"
7421 postinstall_cmds=
7422 postuninstall_cmds=
7423 finish_cmds=
7424 finish_eval=
7425 shlibpath_var=
7426 shlibpath_overrides_runpath=unknown
7427 version_type=none
7428 dynamic_linker="$host_os ld.so"
7429 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7430 if test "$GCC" = yes; then
7431   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7432   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7433     # if the path contains ";" then we assume it to be the separator
7434     # otherwise default to the standard path separator (i.e. ":") - it is
7435     # assumed that no part of a normal pathname contains ";" but that should
7436     # okay in the real world where ";" in dirpaths is itself problematic.
7437     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7438   else
7439     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7440   fi
7441 else
7442   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7443 fi
7444 need_lib_prefix=unknown
7445 hardcode_into_libs=no
7446
7447 # when you set need_version to no, make sure it does not cause -set_version
7448 # flags to be left without arguments
7449 need_version=unknown
7450
7451 case $host_os in
7452 aix3*)
7453   version_type=linux
7454   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7455   shlibpath_var=LIBPATH
7456
7457   # AIX 3 has no versioning support, so we append a major version to the name.
7458   soname_spec='${libname}${release}${shared_ext}$major'
7459   ;;
7460
7461 aix4* | aix5*)
7462   version_type=linux
7463   need_lib_prefix=no
7464   need_version=no
7465   hardcode_into_libs=yes
7466   if test "$host_cpu" = ia64; then
7467     # AIX 5 supports IA64
7468     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7469     shlibpath_var=LD_LIBRARY_PATH
7470   else
7471     # With GCC up to 2.95.x, collect2 would create an import file
7472     # for dependence libraries.  The import file would start with
7473     # the line `#! .'.  This would cause the generated library to
7474     # depend on `.', always an invalid library.  This was fixed in
7475     # development snapshots of GCC prior to 3.0.
7476     case $host_os in
7477       aix4 | aix4.[01] | aix4.[01].*)
7478       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7479            echo ' yes '
7480            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7481         :
7482       else
7483         can_build_shared=no
7484       fi
7485       ;;
7486     esac
7487     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7488     # soname into executable. Probably we can add versioning support to
7489     # collect2, so additional links can be useful in future.
7490     if test "$aix_use_runtimelinking" = yes; then
7491       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7492       # instead of lib<name>.a to let people know that these are not
7493       # typical AIX shared libraries.
7494       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7495     else
7496       # We preserve .a as extension for shared libraries through AIX4.2
7497       # and later when we are not doing run time linking.
7498       library_names_spec='${libname}${release}.a $libname.a'
7499       soname_spec='${libname}${release}${shared_ext}$major'
7500     fi
7501     shlibpath_var=LIBPATH
7502   fi
7503   ;;
7504
7505 amigaos*)
7506   library_names_spec='$libname.ixlibrary $libname.a'
7507   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7508   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'
7509   ;;
7510
7511 beos*)
7512   library_names_spec='${libname}${shared_ext}'
7513   dynamic_linker="$host_os ld.so"
7514   shlibpath_var=LIBRARY_PATH
7515   ;;
7516
7517 bsdi4*)
7518   version_type=linux
7519   need_version=no
7520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7521   soname_spec='${libname}${release}${shared_ext}$major'
7522   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7523   shlibpath_var=LD_LIBRARY_PATH
7524   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7525   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7526   # the default ld.so.conf also contains /usr/contrib/lib and
7527   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7528   # libtool to hard-code these into programs
7529   ;;
7530
7531 cygwin* | mingw* | pw32*)
7532   version_type=windows
7533   shrext=".dll"
7534   need_version=no
7535   need_lib_prefix=no
7536
7537   case $GCC,$host_os in
7538   yes,cygwin* | yes,mingw* | yes,pw32*)
7539     library_names_spec='$libname.dll.a'
7540     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7541     postinstall_cmds='base_file=`basename \${file}`~
7542       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7543       dldir=$destdir/`dirname \$dlpath`~
7544       test -d \$dldir || mkdir -p \$dldir~
7545       $install_prog $dir/$dlname \$dldir/$dlname'
7546     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7547       dlpath=$dir/\$dldll~
7548        $rm \$dlpath'
7549     shlibpath_overrides_runpath=yes
7550
7551     case $host_os in
7552     cygwin*)
7553       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7554       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7555       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7556       ;;
7557     mingw*)
7558       # MinGW DLLs use traditional 'lib' prefix
7559       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7560       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7561       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7562         # It is most probably a Windows format PATH printed by
7563         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7564         # path with ; separators, and with drive letters. We can handle the
7565         # drive letters (cygwin fileutils understands them), so leave them,
7566         # especially as we might pass files found there to a mingw objdump,
7567         # which wouldn't understand a cygwinified path. Ahh.
7568         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7569       else
7570         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7571       fi
7572       ;;
7573     pw32*)
7574       # pw32 DLLs use 'pw' prefix rather than 'lib'
7575       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7576       ;;
7577     esac
7578     ;;
7579
7580   *)
7581     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7582     ;;
7583   esac
7584   dynamic_linker='Win32 ld.exe'
7585   # FIXME: first we should search . and the directory the executable is in
7586   shlibpath_var=PATH
7587   ;;
7588
7589 darwin* | rhapsody*)
7590   dynamic_linker="$host_os dyld"
7591   version_type=darwin
7592   need_lib_prefix=no
7593   need_version=no
7594   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7595   soname_spec='${libname}${release}${major}$shared_ext'
7596   shlibpath_overrides_runpath=yes
7597   shlibpath_var=DYLD_LIBRARY_PATH
7598   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7599   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7600   if test "$GCC" = yes; then
7601     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"`
7602   else
7603     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7604   fi
7605   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7606   ;;
7607
7608 dgux*)
7609   version_type=linux
7610   need_lib_prefix=no
7611   need_version=no
7612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7613   soname_spec='${libname}${release}${shared_ext}$major'
7614   shlibpath_var=LD_LIBRARY_PATH
7615   ;;
7616
7617 freebsd1*)
7618   dynamic_linker=no
7619   ;;
7620
7621 kfreebsd*-gnu)
7622   version_type=linux
7623   need_lib_prefix=no
7624   need_version=no
7625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7626   soname_spec='${libname}${release}${shared_ext}$major'
7627   shlibpath_var=LD_LIBRARY_PATH
7628   shlibpath_overrides_runpath=no
7629   hardcode_into_libs=yes
7630   dynamic_linker='GNU ld.so'
7631   ;;
7632
7633 freebsd*)
7634   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7635   version_type=freebsd-$objformat
7636   case $version_type in
7637     freebsd-elf*)
7638       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7639       need_version=no
7640       need_lib_prefix=no
7641       ;;
7642     freebsd-*)
7643       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7644       need_version=yes
7645       ;;
7646   esac
7647   shlibpath_var=LD_LIBRARY_PATH
7648   case $host_os in
7649   freebsd2*)
7650     shlibpath_overrides_runpath=yes
7651     ;;
7652   freebsd3.01* | freebsdelf3.01*)
7653     shlibpath_overrides_runpath=yes
7654     hardcode_into_libs=yes
7655     ;;
7656   *) # from 3.2 on
7657     shlibpath_overrides_runpath=no
7658     hardcode_into_libs=yes
7659     ;;
7660   esac
7661   ;;
7662
7663 gnu*)
7664   version_type=linux
7665   need_lib_prefix=no
7666   need_version=no
7667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7668   soname_spec='${libname}${release}${shared_ext}$major'
7669   shlibpath_var=LD_LIBRARY_PATH
7670   hardcode_into_libs=yes
7671   ;;
7672
7673 hpux9* | hpux10* | hpux11*)
7674   # Give a soname corresponding to the major version so that dld.sl refuses to
7675   # link against other versions.
7676   version_type=sunos
7677   need_lib_prefix=no
7678   need_version=no
7679   case "$host_cpu" in
7680   ia64*)
7681     shrext='.so'
7682     hardcode_into_libs=yes
7683     dynamic_linker="$host_os dld.so"
7684     shlibpath_var=LD_LIBRARY_PATH
7685     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7687     soname_spec='${libname}${release}${shared_ext}$major'
7688     if test "X$HPUX_IA64_MODE" = X32; then
7689       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7690     else
7691       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7692     fi
7693     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7694     ;;
7695    hppa*64*)
7696      shrext='.sl'
7697      hardcode_into_libs=yes
7698      dynamic_linker="$host_os dld.sl"
7699      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7700      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7701      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7702      soname_spec='${libname}${release}${shared_ext}$major'
7703      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7704      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7705      ;;
7706    *)
7707     shrext='.sl'
7708     dynamic_linker="$host_os dld.sl"
7709     shlibpath_var=SHLIB_PATH
7710     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7712     soname_spec='${libname}${release}${shared_ext}$major'
7713     ;;
7714   esac
7715   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7716   postinstall_cmds='chmod 555 $lib'
7717   ;;
7718
7719 irix5* | irix6* | nonstopux*)
7720   case $host_os in
7721     nonstopux*) version_type=nonstopux ;;
7722     *)
7723         if test "$lt_cv_prog_gnu_ld" = yes; then
7724                 version_type=linux
7725         else
7726                 version_type=irix
7727         fi ;;
7728   esac
7729   need_lib_prefix=no
7730   need_version=no
7731   soname_spec='${libname}${release}${shared_ext}$major'
7732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7733   case $host_os in
7734   irix5* | nonstopux*)
7735     libsuff= shlibsuff=
7736     ;;
7737   *)
7738     case $LD in # libtool.m4 will add one of these switches to LD
7739     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7740       libsuff= shlibsuff= libmagic=32-bit;;
7741     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7742       libsuff=32 shlibsuff=N32 libmagic=N32;;
7743     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7744       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7745     *) libsuff= shlibsuff= libmagic=never-match;;
7746     esac
7747     ;;
7748   esac
7749   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7750   shlibpath_overrides_runpath=no
7751   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7752   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7753   hardcode_into_libs=yes
7754   ;;
7755
7756 # No shared lib support for Linux oldld, aout, or coff.
7757 linux*oldld* | linux*aout* | linux*coff*)
7758   dynamic_linker=no
7759   ;;
7760
7761 # This must be Linux ELF.
7762 linux*)
7763   version_type=linux
7764   need_lib_prefix=no
7765   need_version=no
7766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7767   soname_spec='${libname}${release}${shared_ext}$major'
7768   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7769   shlibpath_var=LD_LIBRARY_PATH
7770   shlibpath_overrides_runpath=no
7771   # This implies no fast_install, which is unacceptable.
7772   # Some rework will be needed to allow for fast_install
7773   # before this can be enabled.
7774   hardcode_into_libs=yes
7775
7776   # We used to test for /lib/ld.so.1 and disable shared libraries on
7777   # powerpc, because MkLinux only supported shared libraries with the
7778   # GNU dynamic linker.  Since this was broken with cross compilers,
7779   # most powerpc-linux boxes support dynamic linking these days and
7780   # people can always --disable-shared, the test was removed, and we
7781   # assume the GNU/Linux dynamic linker is in use.
7782   dynamic_linker='GNU/Linux ld.so'
7783   ;;
7784
7785 netbsd*)
7786   version_type=sunos
7787   need_lib_prefix=no
7788   need_version=no
7789   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7791     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7792     dynamic_linker='NetBSD (a.out) ld.so'
7793   else
7794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7795     soname_spec='${libname}${release}${shared_ext}$major'
7796     dynamic_linker='NetBSD ld.elf_so'
7797   fi
7798   shlibpath_var=LD_LIBRARY_PATH
7799   shlibpath_overrides_runpath=yes
7800   hardcode_into_libs=yes
7801   ;;
7802
7803 newsos6)
7804   version_type=linux
7805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7806   shlibpath_var=LD_LIBRARY_PATH
7807   shlibpath_overrides_runpath=yes
7808   ;;
7809
7810 nto-qnx*)
7811   version_type=linux
7812   need_lib_prefix=no
7813   need_version=no
7814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815   soname_spec='${libname}${release}${shared_ext}$major'
7816   shlibpath_var=LD_LIBRARY_PATH
7817   shlibpath_overrides_runpath=yes
7818   ;;
7819
7820 openbsd*)
7821   version_type=sunos
7822   need_lib_prefix=no
7823   need_version=no
7824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7825   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7826   shlibpath_var=LD_LIBRARY_PATH
7827   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7828     case $host_os in
7829       openbsd2.[89] | openbsd2.[89].*)
7830         shlibpath_overrides_runpath=no
7831         ;;
7832       *)
7833         shlibpath_overrides_runpath=yes
7834         ;;
7835       esac
7836   else
7837     shlibpath_overrides_runpath=yes
7838   fi
7839   ;;
7840
7841 os2*)
7842   libname_spec='$name'
7843   shrext=".dll"
7844   need_lib_prefix=no
7845   library_names_spec='$libname${shared_ext} $libname.a'
7846   dynamic_linker='OS/2 ld.exe'
7847   shlibpath_var=LIBPATH
7848   ;;
7849
7850 osf3* | osf4* | osf5*)
7851   version_type=osf
7852   need_lib_prefix=no
7853   need_version=no
7854   soname_spec='${libname}${release}${shared_ext}$major'
7855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7856   shlibpath_var=LD_LIBRARY_PATH
7857   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7858   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7859   ;;
7860
7861 sco3.2v5*)
7862   version_type=osf
7863   soname_spec='${libname}${release}${shared_ext}$major'
7864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7865   shlibpath_var=LD_LIBRARY_PATH
7866   ;;
7867
7868 solaris*)
7869   version_type=linux
7870   need_lib_prefix=no
7871   need_version=no
7872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7873   soname_spec='${libname}${release}${shared_ext}$major'
7874   shlibpath_var=LD_LIBRARY_PATH
7875   shlibpath_overrides_runpath=yes
7876   hardcode_into_libs=yes
7877   # ldd complains unless libraries are executable
7878   postinstall_cmds='chmod +x $lib'
7879   ;;
7880
7881 sunos4*)
7882   version_type=sunos
7883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7884   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7885   shlibpath_var=LD_LIBRARY_PATH
7886   shlibpath_overrides_runpath=yes
7887   if test "$with_gnu_ld" = yes; then
7888     need_lib_prefix=no
7889   fi
7890   need_version=yes
7891   ;;
7892
7893 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7894   version_type=linux
7895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896   soname_spec='${libname}${release}${shared_ext}$major'
7897   shlibpath_var=LD_LIBRARY_PATH
7898   case $host_vendor in
7899     sni)
7900       shlibpath_overrides_runpath=no
7901       need_lib_prefix=no
7902       export_dynamic_flag_spec='${wl}-Blargedynsym'
7903       runpath_var=LD_RUN_PATH
7904       ;;
7905     siemens)
7906       need_lib_prefix=no
7907       ;;
7908     motorola)
7909       need_lib_prefix=no
7910       need_version=no
7911       shlibpath_overrides_runpath=no
7912       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7913       ;;
7914   esac
7915   ;;
7916
7917 sysv4*MP*)
7918   if test -d /usr/nec ;then
7919     version_type=linux
7920     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7921     soname_spec='$libname${shared_ext}.$major'
7922     shlibpath_var=LD_LIBRARY_PATH
7923   fi
7924   ;;
7925
7926 uts4*)
7927   version_type=linux
7928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929   soname_spec='${libname}${release}${shared_ext}$major'
7930   shlibpath_var=LD_LIBRARY_PATH
7931   ;;
7932
7933 *)
7934   dynamic_linker=no
7935   ;;
7936 esac
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
7938 $as_echo "$dynamic_linker" >&6; }
7939 test "$dynamic_linker" = no && can_build_shared=no
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
7942 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
7943 hardcode_action=
7944 if test -n "$hardcode_libdir_flag_spec" || \
7945    test -n "$runpath_var " || \
7946    test "X$hardcode_automatic"="Xyes" ; then
7947
7948   # We can hardcode non-existant directories.
7949   if test "$hardcode_direct" != no &&
7950      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7951      # have to relink, otherwise we might link with an installed library
7952      # when we should be linking with a yet-to-be-installed one
7953      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7954      test "$hardcode_minus_L" != no; then
7955     # Linking always hardcodes the temporary library directory.
7956     hardcode_action=relink
7957   else
7958     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7959     hardcode_action=immediate
7960   fi
7961 else
7962   # We cannot hardcode anything, or else we can only hardcode existing
7963   # directories.
7964   hardcode_action=unsupported
7965 fi
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
7967 $as_echo "$hardcode_action" >&6; }
7968
7969 if test "$hardcode_action" = relink; then
7970   # Fast installation is not supported
7971   enable_fast_install=no
7972 elif test "$shlibpath_overrides_runpath" = yes ||
7973      test "$enable_shared" = no; then
7974   # Fast installation is not necessary
7975   enable_fast_install=needless
7976 fi
7977
7978 striplib=
7979 old_striplib=
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
7981 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
7982 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7983   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7984   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7986 $as_echo "yes" >&6; }
7987 else
7988 # FIXME - insert some real tests, host_os isn't really good enough
7989   case $host_os in
7990    darwin*)
7991        if test -n "$STRIP" ; then
7992          striplib="$STRIP -x"
7993          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7994 $as_echo "yes" >&6; }
7995        else
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 fi
7999        ;;
8000    *)
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003     ;;
8004   esac
8005 fi
8006
8007 if test "x$enable_dlopen" != xyes; then
8008   enable_dlopen=unknown
8009   enable_dlopen_self=unknown
8010   enable_dlopen_self_static=unknown
8011 else
8012   lt_cv_dlopen=no
8013   lt_cv_dlopen_libs=
8014
8015   case $host_os in
8016   beos*)
8017     lt_cv_dlopen="load_add_on"
8018     lt_cv_dlopen_libs=
8019     lt_cv_dlopen_self=yes
8020     ;;
8021
8022   mingw* | pw32*)
8023     lt_cv_dlopen="LoadLibrary"
8024     lt_cv_dlopen_libs=
8025    ;;
8026
8027   cygwin*)
8028     lt_cv_dlopen="dlopen"
8029     lt_cv_dlopen_libs=
8030    ;;
8031
8032   darwin*)
8033   # if libdl is installed we need to link against it
8034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8035 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8036 if ${ac_cv_lib_dl_dlopen+:} false; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   ac_check_lib_save_LIBS=$LIBS
8040 LIBS="-ldl  $LIBS"
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h.  */
8043
8044 /* Override any GCC internal prototype to avoid an error.
8045    Use char because int might match the return type of a GCC
8046    builtin and then its argument prototype would still apply.  */
8047 #ifdef __cplusplus
8048 extern "C"
8049 #endif
8050 char dlopen ();
8051 int
8052 main ()
8053 {
8054 return dlopen ();
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_link "$LINENO"; then :
8060   ac_cv_lib_dl_dlopen=yes
8061 else
8062   ac_cv_lib_dl_dlopen=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext \
8065     conftest$ac_exeext conftest.$ac_ext
8066 LIBS=$ac_check_lib_save_LIBS
8067 fi
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8069 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8070 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8071   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8072 else
8073
8074     lt_cv_dlopen="dyld"
8075     lt_cv_dlopen_libs=
8076     lt_cv_dlopen_self=yes
8077
8078 fi
8079
8080    ;;
8081
8082   *)
8083     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8084 if test "x$ac_cv_func_shl_load" = xyes; then :
8085   lt_cv_dlopen="shl_load"
8086 else
8087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8088 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8089 if ${ac_cv_lib_dld_shl_load+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   ac_check_lib_save_LIBS=$LIBS
8093 LIBS="-ldld  $LIBS"
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h.  */
8096
8097 /* Override any GCC internal prototype to avoid an error.
8098    Use char because int might match the return type of a GCC
8099    builtin and then its argument prototype would still apply.  */
8100 #ifdef __cplusplus
8101 extern "C"
8102 #endif
8103 char shl_load ();
8104 int
8105 main ()
8106 {
8107 return shl_load ();
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 if ac_fn_c_try_link "$LINENO"; then :
8113   ac_cv_lib_dld_shl_load=yes
8114 else
8115   ac_cv_lib_dld_shl_load=no
8116 fi
8117 rm -f core conftest.err conftest.$ac_objext \
8118     conftest$ac_exeext conftest.$ac_ext
8119 LIBS=$ac_check_lib_save_LIBS
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8122 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8123 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8124   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8125 else
8126   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8127 if test "x$ac_cv_func_dlopen" = xyes; then :
8128   lt_cv_dlopen="dlopen"
8129 else
8130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8131 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8132 if ${ac_cv_lib_dl_dlopen+:} false; then :
8133   $as_echo_n "(cached) " >&6
8134 else
8135   ac_check_lib_save_LIBS=$LIBS
8136 LIBS="-ldl  $LIBS"
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h.  */
8139
8140 /* Override any GCC internal prototype to avoid an error.
8141    Use char because int might match the return type of a GCC
8142    builtin and then its argument prototype would still apply.  */
8143 #ifdef __cplusplus
8144 extern "C"
8145 #endif
8146 char dlopen ();
8147 int
8148 main ()
8149 {
8150 return dlopen ();
8151   ;
8152   return 0;
8153 }
8154 _ACEOF
8155 if ac_fn_c_try_link "$LINENO"; then :
8156   ac_cv_lib_dl_dlopen=yes
8157 else
8158   ac_cv_lib_dl_dlopen=no
8159 fi
8160 rm -f core conftest.err conftest.$ac_objext \
8161     conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8163 fi
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8165 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8166 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8167   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8168 else
8169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8170 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8171 if ${ac_cv_lib_svld_dlopen+:} false; then :
8172   $as_echo_n "(cached) " >&6
8173 else
8174   ac_check_lib_save_LIBS=$LIBS
8175 LIBS="-lsvld  $LIBS"
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h.  */
8178
8179 /* Override any GCC internal prototype to avoid an error.
8180    Use char because int might match the return type of a GCC
8181    builtin and then its argument prototype would still apply.  */
8182 #ifdef __cplusplus
8183 extern "C"
8184 #endif
8185 char dlopen ();
8186 int
8187 main ()
8188 {
8189 return dlopen ();
8190   ;
8191   return 0;
8192 }
8193 _ACEOF
8194 if ac_fn_c_try_link "$LINENO"; then :
8195   ac_cv_lib_svld_dlopen=yes
8196 else
8197   ac_cv_lib_svld_dlopen=no
8198 fi
8199 rm -f core conftest.err conftest.$ac_objext \
8200     conftest$ac_exeext conftest.$ac_ext
8201 LIBS=$ac_check_lib_save_LIBS
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8204 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8205 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8206   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8207 else
8208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8209 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8210 if ${ac_cv_lib_dld_dld_link+:} false; then :
8211   $as_echo_n "(cached) " >&6
8212 else
8213   ac_check_lib_save_LIBS=$LIBS
8214 LIBS="-ldld  $LIBS"
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h.  */
8217
8218 /* Override any GCC internal prototype to avoid an error.
8219    Use char because int might match the return type of a GCC
8220    builtin and then its argument prototype would still apply.  */
8221 #ifdef __cplusplus
8222 extern "C"
8223 #endif
8224 char dld_link ();
8225 int
8226 main ()
8227 {
8228 return dld_link ();
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_link "$LINENO"; then :
8234   ac_cv_lib_dld_dld_link=yes
8235 else
8236   ac_cv_lib_dld_dld_link=no
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext \
8239     conftest$ac_exeext conftest.$ac_ext
8240 LIBS=$ac_check_lib_save_LIBS
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8243 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8244 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8245   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8246 fi
8247
8248
8249 fi
8250
8251
8252 fi
8253
8254
8255 fi
8256
8257
8258 fi
8259
8260
8261 fi
8262
8263     ;;
8264   esac
8265
8266   if test "x$lt_cv_dlopen" != xno; then
8267     enable_dlopen=yes
8268   else
8269     enable_dlopen=no
8270   fi
8271
8272   case $lt_cv_dlopen in
8273   dlopen)
8274     save_CPPFLAGS="$CPPFLAGS"
8275     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8276
8277     save_LDFLAGS="$LDFLAGS"
8278     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8279
8280     save_LIBS="$LIBS"
8281     LIBS="$lt_cv_dlopen_libs $LIBS"
8282
8283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8284 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8285 if ${lt_cv_dlopen_self+:} false; then :
8286   $as_echo_n "(cached) " >&6
8287 else
8288           if test "$cross_compiling" = yes; then :
8289   lt_cv_dlopen_self=cross
8290 else
8291   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8292   lt_status=$lt_dlunknown
8293   cat > conftest.$ac_ext <<EOF
8294 #line 8294 "configure"
8295 #include "confdefs.h"
8296
8297 #if HAVE_DLFCN_H
8298 #include <dlfcn.h>
8299 #endif
8300
8301 #include <stdio.h>
8302
8303 #ifdef RTLD_GLOBAL
8304 #  define LT_DLGLOBAL           RTLD_GLOBAL
8305 #else
8306 #  ifdef DL_GLOBAL
8307 #    define LT_DLGLOBAL         DL_GLOBAL
8308 #  else
8309 #    define LT_DLGLOBAL         0
8310 #  endif
8311 #endif
8312
8313 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8314    find out it does not work in some platform. */
8315 #ifndef LT_DLLAZY_OR_NOW
8316 #  ifdef RTLD_LAZY
8317 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8318 #  else
8319 #    ifdef DL_LAZY
8320 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8321 #    else
8322 #      ifdef RTLD_NOW
8323 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8324 #      else
8325 #        ifdef DL_NOW
8326 #          define LT_DLLAZY_OR_NOW      DL_NOW
8327 #        else
8328 #          define LT_DLLAZY_OR_NOW      0
8329 #        endif
8330 #      endif
8331 #    endif
8332 #  endif
8333 #endif
8334
8335 #ifdef __cplusplus
8336 extern "C" void exit (int);
8337 #endif
8338
8339 void fnord() { int i=42;}
8340 int main ()
8341 {
8342   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8343   int status = $lt_dlunknown;
8344
8345   if (self)
8346     {
8347       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8348       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8349       /* dlclose (self); */
8350     }
8351
8352     exit (status);
8353 }
8354 EOF
8355   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8356   (eval $ac_link) 2>&5
8357   ac_status=$?
8358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8359   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8360     (./conftest; exit; ) 2>/dev/null
8361     lt_status=$?
8362     case x$lt_status in
8363       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8364       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8365       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8366     esac
8367   else :
8368     # compilation failed
8369     lt_cv_dlopen_self=no
8370   fi
8371 fi
8372 rm -fr conftest*
8373
8374
8375 fi
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8377 $as_echo "$lt_cv_dlopen_self" >&6; }
8378
8379     if test "x$lt_cv_dlopen_self" = xyes; then
8380       LDFLAGS="$LDFLAGS $link_static_flag"
8381       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8382 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8383 if ${lt_cv_dlopen_self_static+:} false; then :
8384   $as_echo_n "(cached) " >&6
8385 else
8386           if test "$cross_compiling" = yes; then :
8387   lt_cv_dlopen_self_static=cross
8388 else
8389   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8390   lt_status=$lt_dlunknown
8391   cat > conftest.$ac_ext <<EOF
8392 #line 8392 "configure"
8393 #include "confdefs.h"
8394
8395 #if HAVE_DLFCN_H
8396 #include <dlfcn.h>
8397 #endif
8398
8399 #include <stdio.h>
8400
8401 #ifdef RTLD_GLOBAL
8402 #  define LT_DLGLOBAL           RTLD_GLOBAL
8403 #else
8404 #  ifdef DL_GLOBAL
8405 #    define LT_DLGLOBAL         DL_GLOBAL
8406 #  else
8407 #    define LT_DLGLOBAL         0
8408 #  endif
8409 #endif
8410
8411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8412    find out it does not work in some platform. */
8413 #ifndef LT_DLLAZY_OR_NOW
8414 #  ifdef RTLD_LAZY
8415 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8416 #  else
8417 #    ifdef DL_LAZY
8418 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8419 #    else
8420 #      ifdef RTLD_NOW
8421 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8422 #      else
8423 #        ifdef DL_NOW
8424 #          define LT_DLLAZY_OR_NOW      DL_NOW
8425 #        else
8426 #          define LT_DLLAZY_OR_NOW      0
8427 #        endif
8428 #      endif
8429 #    endif
8430 #  endif
8431 #endif
8432
8433 #ifdef __cplusplus
8434 extern "C" void exit (int);
8435 #endif
8436
8437 void fnord() { int i=42;}
8438 int main ()
8439 {
8440   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8441   int status = $lt_dlunknown;
8442
8443   if (self)
8444     {
8445       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8446       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8447       /* dlclose (self); */
8448     }
8449
8450     exit (status);
8451 }
8452 EOF
8453   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8454   (eval $ac_link) 2>&5
8455   ac_status=$?
8456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8457   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8458     (./conftest; exit; ) 2>/dev/null
8459     lt_status=$?
8460     case x$lt_status in
8461       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8462       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8463       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8464     esac
8465   else :
8466     # compilation failed
8467     lt_cv_dlopen_self_static=no
8468   fi
8469 fi
8470 rm -fr conftest*
8471
8472
8473 fi
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8475 $as_echo "$lt_cv_dlopen_self_static" >&6; }
8476     fi
8477
8478     CPPFLAGS="$save_CPPFLAGS"
8479     LDFLAGS="$save_LDFLAGS"
8480     LIBS="$save_LIBS"
8481     ;;
8482   esac
8483
8484   case $lt_cv_dlopen_self in
8485   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8486   *) enable_dlopen_self=unknown ;;
8487   esac
8488
8489   case $lt_cv_dlopen_self_static in
8490   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8491   *) enable_dlopen_self_static=unknown ;;
8492   esac
8493 fi
8494
8495
8496 # Report which librarie types wil actually be built
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8498 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8500 $as_echo "$can_build_shared" >&6; }
8501
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8503 $as_echo_n "checking whether to build shared libraries... " >&6; }
8504 test "$can_build_shared" = "no" && enable_shared=no
8505
8506 # On AIX, shared libraries and static libraries use the same namespace, and
8507 # are all built from PIC.
8508 case "$host_os" in
8509 aix3*)
8510   test "$enable_shared" = yes && enable_static=no
8511   if test -n "$RANLIB"; then
8512     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8513     postinstall_cmds='$RANLIB $lib'
8514   fi
8515   ;;
8516
8517 aix4*)
8518   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8519     test "$enable_shared" = yes && enable_static=no
8520   fi
8521   ;;
8522   darwin* | rhapsody*)
8523   if test "$GCC" = yes; then
8524     archive_cmds_need_lc=no
8525     case "$host_os" in
8526     rhapsody* | darwin1.[012])
8527       allow_undefined_flag='-undefined suppress'
8528       ;;
8529     *) # Darwin 1.3 on
8530       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8531         allow_undefined_flag='-flat_namespace -undefined suppress'
8532       else
8533         case ${MACOSX_DEPLOYMENT_TARGET} in
8534           10.[012])
8535             allow_undefined_flag='-flat_namespace -undefined suppress'
8536             ;;
8537           10.*)
8538             allow_undefined_flag='-undefined dynamic_lookup'
8539             ;;
8540         esac
8541       fi
8542       ;;
8543     esac
8544     output_verbose_link_cmd='echo'
8545     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8546     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8547     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8548     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}'
8549     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}'
8550     hardcode_direct=no
8551     hardcode_automatic=yes
8552     hardcode_shlibpath_var=unsupported
8553     whole_archive_flag_spec='-all_load $convenience'
8554     link_all_deplibs=yes
8555   else
8556     ld_shlibs=no
8557   fi
8558     ;;
8559 esac
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8561 $as_echo "$enable_shared" >&6; }
8562
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8564 $as_echo_n "checking whether to build static libraries... " >&6; }
8565 # Make sure either enable_shared or enable_static is yes.
8566 test "$enable_shared" = yes || enable_static=yes
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8568 $as_echo "$enable_static" >&6; }
8569
8570 # The else clause should only fire when bootstrapping the
8571 # libtool distribution, otherwise you forgot to ship ltmain.sh
8572 # with your package, and you will get complaints that there are
8573 # no rules to generate ltmain.sh.
8574 if test -f "$ltmain"; then
8575   # See if we are running on zsh, and set the options which allow our commands through
8576   # without removal of \ escapes.
8577   if test -n "${ZSH_VERSION+set}" ; then
8578     setopt NO_GLOB_SUBST
8579   fi
8580   # Now quote all the things that may contain metacharacters while being
8581   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8582   # variables and quote the copies for generation of the libtool script.
8583   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8584     SED SHELL STRIP \
8585     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8586     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8587     deplibs_check_method reload_flag reload_cmds need_locks \
8588     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8589     lt_cv_sys_global_symbol_to_c_name_address \
8590     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8591     old_postinstall_cmds old_postuninstall_cmds \
8592     compiler \
8593     CC \
8594     LD \
8595     lt_prog_compiler_wl \
8596     lt_prog_compiler_pic \
8597     lt_prog_compiler_static \
8598     lt_prog_compiler_no_builtin_flag \
8599     export_dynamic_flag_spec \
8600     thread_safe_flag_spec \
8601     whole_archive_flag_spec \
8602     enable_shared_with_static_runtimes \
8603     old_archive_cmds \
8604     old_archive_from_new_cmds \
8605     predep_objects \
8606     postdep_objects \
8607     predeps \
8608     postdeps \
8609     compiler_lib_search_path \
8610     archive_cmds \
8611     archive_expsym_cmds \
8612     postinstall_cmds \
8613     postuninstall_cmds \
8614     old_archive_from_expsyms_cmds \
8615     allow_undefined_flag \
8616     no_undefined_flag \
8617     export_symbols_cmds \
8618     hardcode_libdir_flag_spec \
8619     hardcode_libdir_flag_spec_ld \
8620     hardcode_libdir_separator \
8621     hardcode_automatic \
8622     module_cmds \
8623     module_expsym_cmds \
8624     lt_cv_prog_compiler_c_o \
8625     exclude_expsyms \
8626     include_expsyms; do
8627
8628     case $var in
8629     old_archive_cmds | \
8630     old_archive_from_new_cmds | \
8631     archive_cmds | \
8632     archive_expsym_cmds | \
8633     module_cmds | \
8634     module_expsym_cmds | \
8635     old_archive_from_expsyms_cmds | \
8636     export_symbols_cmds | \
8637     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8638     postinstall_cmds | postuninstall_cmds | \
8639     old_postinstall_cmds | old_postuninstall_cmds | \
8640     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8641       # Double-quote double-evaled strings.
8642       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8643       ;;
8644     *)
8645       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8646       ;;
8647     esac
8648   done
8649
8650   case $lt_echo in
8651   *'\$0 --fallback-echo"')
8652     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8653     ;;
8654   esac
8655
8656 cfgfile="${ofile}T"
8657   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8658   $rm -f "$cfgfile"
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
8660 $as_echo "$as_me: creating $ofile" >&6;}
8661
8662   cat <<__EOF__ >> "$cfgfile"
8663 #! $SHELL
8664
8665 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8666 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8667 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8668 #
8669 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8670 # Free Software Foundation, Inc.
8671 #
8672 # This file is part of GNU Libtool:
8673 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8674 #
8675 # This program is free software; you can redistribute it and/or modify
8676 # it under the terms of the GNU General Public License as published by
8677 # the Free Software Foundation; either version 2 of the License, or
8678 # (at your option) any later version.
8679 #
8680 # This program is distributed in the hope that it will be useful, but
8681 # WITHOUT ANY WARRANTY; without even the implied warranty of
8682 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8683 # General Public License for more details.
8684 #
8685 # You should have received a copy of the GNU General Public License
8686 # along with this program; if not, write to the Free Software
8687 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8688 #
8689 # As a special exception to the GNU General Public License, if you
8690 # distribute this file as part of a program that contains a
8691 # configuration script generated by Autoconf, you may include it under
8692 # the same distribution terms that you use for the rest of that program.
8693
8694 # A sed program that does not truncate output.
8695 SED=$lt_SED
8696
8697 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8698 Xsed="$SED -e s/^X//"
8699
8700 # The HP-UX ksh and POSIX shell print the target directory to stdout
8701 # if CDPATH is set.
8702 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8703
8704 # The names of the tagged configurations supported by this script.
8705 available_tags=
8706
8707 # ### BEGIN LIBTOOL CONFIG
8708
8709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8710
8711 # Shell to use when invoking shell scripts.
8712 SHELL=$lt_SHELL
8713
8714 # Whether or not to build shared libraries.
8715 build_libtool_libs=$enable_shared
8716
8717 # Whether or not to build static libraries.
8718 build_old_libs=$enable_static
8719
8720 # Whether or not to add -lc for building shared libraries.
8721 build_libtool_need_lc=$archive_cmds_need_lc
8722
8723 # Whether or not to disallow shared libs when runtime libs are static
8724 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8725
8726 # Whether or not to optimize for fast installation.
8727 fast_install=$enable_fast_install
8728
8729 # The host system.
8730 host_alias=$host_alias
8731 host=$host
8732
8733 # An echo program that does not interpret backslashes.
8734 echo=$lt_echo
8735
8736 # The archiver.
8737 AR=$lt_AR
8738 AR_FLAGS=$lt_AR_FLAGS
8739
8740 # A C compiler.
8741 LTCC=$lt_LTCC
8742
8743 # A language-specific compiler.
8744 CC=$lt_compiler
8745
8746 # Is the compiler the GNU C compiler?
8747 with_gcc=$GCC
8748
8749 # An ERE matcher.
8750 EGREP=$lt_EGREP
8751
8752 # The linker used to build libraries.
8753 LD=$lt_LD
8754
8755 # Whether we need hard or soft links.
8756 LN_S=$lt_LN_S
8757
8758 # A BSD-compatible nm program.
8759 NM=$lt_NM
8760
8761 # A symbol stripping program
8762 STRIP=$lt_STRIP
8763
8764 # Used to examine libraries when file_magic_cmd begins "file"
8765 MAGIC_CMD=$MAGIC_CMD
8766
8767 # Used on cygwin: DLL creation program.
8768 DLLTOOL="$DLLTOOL"
8769
8770 # Used on cygwin: object dumper.
8771 OBJDUMP="$OBJDUMP"
8772
8773 # Used on cygwin: assembler.
8774 AS="$AS"
8775
8776 # The name of the directory that contains temporary libtool files.
8777 objdir=$objdir
8778
8779 # How to create reloadable object files.
8780 reload_flag=$lt_reload_flag
8781 reload_cmds=$lt_reload_cmds
8782
8783 # How to pass a linker flag through the compiler.
8784 wl=$lt_lt_prog_compiler_wl
8785
8786 # Object file suffix (normally "o").
8787 objext="$ac_objext"
8788
8789 # Old archive suffix (normally "a").
8790 libext="$libext"
8791
8792 # Shared library suffix (normally ".so").
8793 shrext='$shrext'
8794
8795 # Executable file suffix (normally "").
8796 exeext="$exeext"
8797
8798 # Additional compiler flags for building library objects.
8799 pic_flag=$lt_lt_prog_compiler_pic
8800 pic_mode=$pic_mode
8801
8802 # What is the maximum length of a command?
8803 max_cmd_len=$lt_cv_sys_max_cmd_len
8804
8805 # Does compiler simultaneously support -c and -o options?
8806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8807
8808 # Must we lock files when doing compilation ?
8809 need_locks=$lt_need_locks
8810
8811 # Do we need the lib prefix for modules?
8812 need_lib_prefix=$need_lib_prefix
8813
8814 # Do we need a version for libraries?
8815 need_version=$need_version
8816
8817 # Whether dlopen is supported.
8818 dlopen_support=$enable_dlopen
8819
8820 # Whether dlopen of programs is supported.
8821 dlopen_self=$enable_dlopen_self
8822
8823 # Whether dlopen of statically linked programs is supported.
8824 dlopen_self_static=$enable_dlopen_self_static
8825
8826 # Compiler flag to prevent dynamic linking.
8827 link_static_flag=$lt_lt_prog_compiler_static
8828
8829 # Compiler flag to turn off builtin functions.
8830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8831
8832 # Compiler flag to allow reflexive dlopens.
8833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8834
8835 # Compiler flag to generate shared objects directly from archives.
8836 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8837
8838 # Compiler flag to generate thread-safe objects.
8839 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8840
8841 # Library versioning type.
8842 version_type=$version_type
8843
8844 # Format of library name prefix.
8845 libname_spec=$lt_libname_spec
8846
8847 # List of archive names.  First name is the real one, the rest are links.
8848 # The last name is the one that the linker finds with -lNAME.
8849 library_names_spec=$lt_library_names_spec
8850
8851 # The coded name of the library, if different from the real name.
8852 soname_spec=$lt_soname_spec
8853
8854 # Commands used to build and install an old-style archive.
8855 RANLIB=$lt_RANLIB
8856 old_archive_cmds=$lt_old_archive_cmds
8857 old_postinstall_cmds=$lt_old_postinstall_cmds
8858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8859
8860 # Create an old-style archive from a shared archive.
8861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8862
8863 # Create a temporary old-style archive to link instead of a shared archive.
8864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8865
8866 # Commands used to build and install a shared archive.
8867 archive_cmds=$lt_archive_cmds
8868 archive_expsym_cmds=$lt_archive_expsym_cmds
8869 postinstall_cmds=$lt_postinstall_cmds
8870 postuninstall_cmds=$lt_postuninstall_cmds
8871
8872 # Commands used to build a loadable module (assumed same as above if empty)
8873 module_cmds=$lt_module_cmds
8874 module_expsym_cmds=$lt_module_expsym_cmds
8875
8876 # Commands to strip libraries.
8877 old_striplib=$lt_old_striplib
8878 striplib=$lt_striplib
8879
8880 # Dependencies to place before the objects being linked to create a
8881 # shared library.
8882 predep_objects=$lt_predep_objects
8883
8884 # Dependencies to place after the objects being linked to create a
8885 # shared library.
8886 postdep_objects=$lt_postdep_objects
8887
8888 # Dependencies to place before the objects being linked to create a
8889 # shared library.
8890 predeps=$lt_predeps
8891
8892 # Dependencies to place after the objects being linked to create a
8893 # shared library.
8894 postdeps=$lt_postdeps
8895
8896 # The library search path used internally by the compiler when linking
8897 # a shared library.
8898 compiler_lib_search_path=$lt_compiler_lib_search_path
8899
8900 # Method to check whether dependent libraries are shared objects.
8901 deplibs_check_method=$lt_deplibs_check_method
8902
8903 # Command to use when deplibs_check_method == file_magic.
8904 file_magic_cmd=$lt_file_magic_cmd
8905
8906 # Flag that allows shared libraries with undefined symbols to be built.
8907 allow_undefined_flag=$lt_allow_undefined_flag
8908
8909 # Flag that forces no undefined symbols.
8910 no_undefined_flag=$lt_no_undefined_flag
8911
8912 # Commands used to finish a libtool library installation in a directory.
8913 finish_cmds=$lt_finish_cmds
8914
8915 # Same as above, but a single script fragment to be evaled but not shown.
8916 finish_eval=$lt_finish_eval
8917
8918 # Take the output of nm and produce a listing of raw symbols and C names.
8919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8920
8921 # Transform the output of nm in a proper C declaration
8922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8923
8924 # Transform the output of nm in a C name address pair
8925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8926
8927 # This is the shared library runtime path variable.
8928 runpath_var=$runpath_var
8929
8930 # This is the shared library path variable.
8931 shlibpath_var=$shlibpath_var
8932
8933 # Is shlibpath searched before the hard-coded library search path?
8934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8935
8936 # How to hardcode a shared library path into an executable.
8937 hardcode_action=$hardcode_action
8938
8939 # Whether we should hardcode library paths into libraries.
8940 hardcode_into_libs=$hardcode_into_libs
8941
8942 # Flag to hardcode \$libdir into a binary during linking.
8943 # This must work even if \$libdir does not exist.
8944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8945
8946 # If ld is used when linking, flag to hardcode \$libdir into
8947 # a binary during linking. This must work even if \$libdir does
8948 # not exist.
8949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8950
8951 # Whether we need a single -rpath flag with a separated argument.
8952 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8953
8954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8955 # resulting binary.
8956 hardcode_direct=$hardcode_direct
8957
8958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8959 # resulting binary.
8960 hardcode_minus_L=$hardcode_minus_L
8961
8962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8963 # the resulting binary.
8964 hardcode_shlibpath_var=$hardcode_shlibpath_var
8965
8966 # Set to yes if building a shared library automatically hardcodes DIR into the library
8967 # and all subsequent libraries and executables linked against it.
8968 hardcode_automatic=$hardcode_automatic
8969
8970 # Variables whose values should be saved in libtool wrapper scripts and
8971 # restored at relink time.
8972 variables_saved_for_relink="$variables_saved_for_relink"
8973
8974 # Whether libtool must link a program against all its dependency libraries.
8975 link_all_deplibs=$link_all_deplibs
8976
8977 # Compile-time system search path for libraries
8978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8979
8980 # Run-time system search path for libraries
8981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8982
8983 # Fix the shell variable \$srcfile for the compiler.
8984 fix_srcfile_path="$fix_srcfile_path"
8985
8986 # Set to yes if exported symbols are required.
8987 always_export_symbols=$always_export_symbols
8988
8989 # The commands to list exported symbols.
8990 export_symbols_cmds=$lt_export_symbols_cmds
8991
8992 # The commands to extract the exported symbol list from a shared archive.
8993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8994
8995 # Symbols that should not be listed in the preloaded symbols.
8996 exclude_expsyms=$lt_exclude_expsyms
8997
8998 # Symbols that must always be exported.
8999 include_expsyms=$lt_include_expsyms
9000
9001 # ### END LIBTOOL CONFIG
9002
9003 __EOF__
9004
9005
9006   case $host_os in
9007   aix3*)
9008     cat <<\EOF >> "$cfgfile"
9009
9010 # AIX sometimes has problems with the GCC collect2 program.  For some
9011 # reason, if we set the COLLECT_NAMES environment variable, the problems
9012 # vanish in a puff of smoke.
9013 if test "X${COLLECT_NAMES+set}" != Xset; then
9014   COLLECT_NAMES=
9015   export COLLECT_NAMES
9016 fi
9017 EOF
9018     ;;
9019   esac
9020
9021   # We use sed instead of cat because bash on DJGPP gets confused if
9022   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9023   # text mode, it properly converts lines to CR/LF.  This bash problem
9024   # is reportedly fixed, but why not run on old versions too?
9025   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9026
9027   mv -f "$cfgfile" "$ofile" || \
9028     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9029   chmod +x "$ofile"
9030
9031 else
9032   # If there is no Makefile yet, we rely on a make rule to execute
9033   # `config.status --recheck' to rerun these tests and create the
9034   # libtool script then.
9035   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9036   if test -f "$ltmain_in"; then
9037     test -f Makefile && make "$ltmain"
9038   fi
9039 fi
9040
9041
9042 ac_ext=c
9043 ac_cpp='$CPP $CPPFLAGS'
9044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9047
9048 CC="$lt_save_CC"
9049
9050
9051 # Check whether --with-tags was given.
9052 if test "${with_tags+set}" = set; then :
9053   withval=$with_tags; tagnames="$withval"
9054 fi
9055
9056
9057 if test -f "$ltmain" && test -n "$tagnames"; then
9058   if test ! -f "${ofile}"; then
9059     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9060 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9061   fi
9062
9063   if test -z "$LTCC"; then
9064     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9065     if test -z "$LTCC"; then
9066       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9067 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9068     else
9069       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9070 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9071     fi
9072   fi
9073
9074   # Extract list of available tagged configurations in $ofile.
9075   # Note that this assumes the entire list is on one line.
9076   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9077
9078   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9079   for tagname in $tagnames; do
9080     IFS="$lt_save_ifs"
9081     # Check whether tagname contains only valid characters
9082     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9083     "") ;;
9084     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
9085         ;;
9086     esac
9087
9088     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9089     then
9090       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
9091     fi
9092
9093     # Update the list of available tags.
9094     if test -n "$tagname"; then
9095       echo appending configuration tag \"$tagname\" to $ofile
9096
9097       case $tagname in
9098       CXX)
9099         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9100           ac_ext=cpp
9101 ac_cpp='$CXXCPP $CPPFLAGS'
9102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9105
9106
9107
9108
9109 archive_cmds_need_lc_CXX=no
9110 allow_undefined_flag_CXX=
9111 always_export_symbols_CXX=no
9112 archive_expsym_cmds_CXX=
9113 export_dynamic_flag_spec_CXX=
9114 hardcode_direct_CXX=no
9115 hardcode_libdir_flag_spec_CXX=
9116 hardcode_libdir_flag_spec_ld_CXX=
9117 hardcode_libdir_separator_CXX=
9118 hardcode_minus_L_CXX=no
9119 hardcode_automatic_CXX=no
9120 module_cmds_CXX=
9121 module_expsym_cmds_CXX=
9122 link_all_deplibs_CXX=unknown
9123 old_archive_cmds_CXX=$old_archive_cmds
9124 no_undefined_flag_CXX=
9125 whole_archive_flag_spec_CXX=
9126 enable_shared_with_static_runtimes_CXX=no
9127
9128 # Dependencies to place before and after the object being linked:
9129 predep_objects_CXX=
9130 postdep_objects_CXX=
9131 predeps_CXX=
9132 postdeps_CXX=
9133 compiler_lib_search_path_CXX=
9134
9135 # Source file extension for C++ test sources.
9136 ac_ext=cc
9137
9138 # Object file extension for compiled C++ test sources.
9139 objext=o
9140 objext_CXX=$objext
9141
9142 # Code to be used in simple compile tests
9143 lt_simple_compile_test_code="int some_variable = 0;\n"
9144
9145 # Code to be used in simple link tests
9146 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9147
9148 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9149
9150 # If no C compiler was specified, use CC.
9151 LTCC=${LTCC-"$CC"}
9152
9153 # Allow CC to be a program name with arguments.
9154 compiler=$CC
9155
9156
9157 # Allow CC to be a program name with arguments.
9158 lt_save_CC=$CC
9159 lt_save_LD=$LD
9160 lt_save_GCC=$GCC
9161 GCC=$GXX
9162 lt_save_with_gnu_ld=$with_gnu_ld
9163 lt_save_path_LD=$lt_cv_path_LD
9164 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9165   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9166 else
9167   unset lt_cv_prog_gnu_ld
9168 fi
9169 if test -n "${lt_cv_path_LDCXX+set}"; then
9170   lt_cv_path_LD=$lt_cv_path_LDCXX
9171 else
9172   unset lt_cv_path_LD
9173 fi
9174 test -z "${LDCXX+set}" || LD=$LDCXX
9175 CC=${CXX-"c++"}
9176 compiler=$CC
9177 compiler_CXX=$CC
9178 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9179
9180 # We don't want -fno-exception wen compiling C++ code, so set the
9181 # no_builtin_flag separately
9182 if test "$GXX" = yes; then
9183   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9184 else
9185   lt_prog_compiler_no_builtin_flag_CXX=
9186 fi
9187
9188 if test "$GXX" = yes; then
9189   # Set up default GNU C++ configuration
9190
9191
9192 # Check whether --with-gnu-ld was given.
9193 if test "${with_gnu_ld+set}" = set; then :
9194   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9195 else
9196   with_gnu_ld=no
9197 fi
9198
9199 ac_prog=ld
9200 if test "$GCC" = yes; then
9201   # Check if gcc -print-prog-name=ld gives a path.
9202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9203 $as_echo_n "checking for ld used by $CC... " >&6; }
9204   case $host in
9205   *-*-mingw*)
9206     # gcc leaves a trailing carriage return which upsets mingw
9207     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9208   *)
9209     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9210   esac
9211   case $ac_prog in
9212     # Accept absolute paths.
9213     [\\/]* | ?:[\\/]*)
9214       re_direlt='/[^/][^/]*/\.\./'
9215       # Canonicalize the pathname of ld
9216       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9217       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9218         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9219       done
9220       test -z "$LD" && LD="$ac_prog"
9221       ;;
9222   "")
9223     # If it fails, then pretend we aren't using GCC.
9224     ac_prog=ld
9225     ;;
9226   *)
9227     # If it is relative, then search for the first ld in PATH.
9228     with_gnu_ld=unknown
9229     ;;
9230   esac
9231 elif test "$with_gnu_ld" = yes; then
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9233 $as_echo_n "checking for GNU ld... " >&6; }
9234 else
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9236 $as_echo_n "checking for non-GNU ld... " >&6; }
9237 fi
9238 if ${lt_cv_path_LD+:} false; then :
9239   $as_echo_n "(cached) " >&6
9240 else
9241   if test -z "$LD"; then
9242   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9243   for ac_dir in $PATH; do
9244     IFS="$lt_save_ifs"
9245     test -z "$ac_dir" && ac_dir=.
9246     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9247       lt_cv_path_LD="$ac_dir/$ac_prog"
9248       # Check to see if the program is GNU ld.  I'd rather use --version,
9249       # but apparently some GNU ld's only accept -v.
9250       # Break only if it was the GNU/non-GNU ld that we prefer.
9251       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9252       *GNU* | *'with BFD'*)
9253         test "$with_gnu_ld" != no && break
9254         ;;
9255       *)
9256         test "$with_gnu_ld" != yes && break
9257         ;;
9258       esac
9259     fi
9260   done
9261   IFS="$lt_save_ifs"
9262 else
9263   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9264 fi
9265 fi
9266
9267 LD="$lt_cv_path_LD"
9268 if test -n "$LD"; then
9269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9270 $as_echo "$LD" >&6; }
9271 else
9272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9274 fi
9275 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9277 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9278 if ${lt_cv_prog_gnu_ld+:} false; then :
9279   $as_echo_n "(cached) " >&6
9280 else
9281   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9282 case `$LD -v 2>&1 </dev/null` in
9283 *GNU* | *'with BFD'*)
9284   lt_cv_prog_gnu_ld=yes
9285   ;;
9286 *)
9287   lt_cv_prog_gnu_ld=no
9288   ;;
9289 esac
9290 fi
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9292 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9293 with_gnu_ld=$lt_cv_prog_gnu_ld
9294
9295
9296
9297   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9298   # archiving commands below assume that GNU ld is being used.
9299   if test "$with_gnu_ld" = yes; then
9300     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301     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'
9302
9303     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9304     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9305
9306     # If archive_cmds runs LD, not CC, wlarc should be empty
9307     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9308     #     investigate it a little bit more. (MM)
9309     wlarc='${wl}'
9310
9311     # ancient GNU ld didn't support --whole-archive et. al.
9312     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9313         grep 'no-whole-archive' > /dev/null; then
9314       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9315     else
9316       whole_archive_flag_spec_CXX=
9317     fi
9318   else
9319     with_gnu_ld=no
9320     wlarc=
9321
9322     # A generic and very simple default shared library creation
9323     # command for GNU C++ for the case where it uses the native
9324     # linker, instead of GNU ld.  If possible, this setting should
9325     # overridden to take advantage of the native linker features on
9326     # the platform it is being used on.
9327     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9328   fi
9329
9330   # Commands to make compiler produce verbose output that lists
9331   # what "hidden" libraries, object files and flags are used when
9332   # linking a shared library.
9333   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9334
9335 else
9336   GXX=no
9337   with_gnu_ld=no
9338   wlarc=
9339 fi
9340
9341 # PORTME: fill in a description of your system's C++ link characteristics
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9343 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9344 ld_shlibs_CXX=yes
9345 case $host_os in
9346   aix3*)
9347     # FIXME: insert proper C++ library support
9348     ld_shlibs_CXX=no
9349     ;;
9350   aix4* | aix5*)
9351     if test "$host_cpu" = ia64; then
9352       # On IA64, the linker does run time linking by default, so we don't
9353       # have to do anything special.
9354       aix_use_runtimelinking=no
9355       exp_sym_flag='-Bexport'
9356       no_entry_flag=""
9357     else
9358       aix_use_runtimelinking=no
9359
9360       # Test if we are trying to use run time linking or normal
9361       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9362       # need to do runtime linking.
9363       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9364         for ld_flag in $LDFLAGS; do
9365           case $ld_flag in
9366           *-brtl*)
9367             aix_use_runtimelinking=yes
9368             break
9369             ;;
9370           esac
9371         done
9372       esac
9373
9374       exp_sym_flag='-bexport'
9375       no_entry_flag='-bnoentry'
9376     fi
9377
9378     # When large executables or shared objects are built, AIX ld can
9379     # have problems creating the table of contents.  If linking a library
9380     # or program results in "error TOC overflow" add -mminimal-toc to
9381     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9382     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9383
9384     archive_cmds_CXX=''
9385     hardcode_direct_CXX=yes
9386     hardcode_libdir_separator_CXX=':'
9387     link_all_deplibs_CXX=yes
9388
9389     if test "$GXX" = yes; then
9390       case $host_os in aix4.012|aix4.012.*)
9391       # We only want to do this on AIX 4.2 and lower, the check
9392       # below for broken collect2 doesn't work under 4.3+
9393         collect2name=`${CC} -print-prog-name=collect2`
9394         if test -f "$collect2name" && \
9395            strings "$collect2name" | grep resolve_lib_name >/dev/null
9396         then
9397           # We have reworked collect2
9398           hardcode_direct_CXX=yes
9399         else
9400           # We have old collect2
9401           hardcode_direct_CXX=unsupported
9402           # It fails to find uninstalled libraries when the uninstalled
9403           # path is not listed in the libpath.  Setting hardcode_minus_L
9404           # to unsupported forces relinking
9405           hardcode_minus_L_CXX=yes
9406           hardcode_libdir_flag_spec_CXX='-L$libdir'
9407           hardcode_libdir_separator_CXX=
9408         fi
9409       esac
9410       shared_flag='-shared'
9411     else
9412       # not using gcc
9413       if test "$host_cpu" = ia64; then
9414         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9415         # chokes on -Wl,-G. The following line is correct:
9416         shared_flag='-G'
9417       else
9418         if test "$aix_use_runtimelinking" = yes; then
9419           shared_flag='${wl}-G'
9420         else
9421           shared_flag='${wl}-bM:SRE'
9422         fi
9423       fi
9424     fi
9425
9426     # It seems that -bexpall does not export symbols beginning with
9427     # underscore (_), so it is better to generate a list of symbols to export.
9428     always_export_symbols_CXX=yes
9429     if test "$aix_use_runtimelinking" = yes; then
9430       # Warning - without using the other runtime loading flags (-brtl),
9431       # -berok will link without error, but may produce a broken library.
9432       allow_undefined_flag_CXX='-berok'
9433       # Determine the default libpath from the value encoded in an empty executable.
9434       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h.  */
9436
9437 int
9438 main ()
9439 {
9440
9441   ;
9442   return 0;
9443 }
9444 _ACEOF
9445 if ac_fn_cxx_try_link "$LINENO"; then :
9446
9447 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9448 }'`
9449 # Check for a 64-bit object if we didn't find anything.
9450 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; }
9451 }'`; fi
9452 fi
9453 rm -f core conftest.err conftest.$ac_objext \
9454     conftest$ac_exeext conftest.$ac_ext
9455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9456
9457       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9458
9459       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"
9460      else
9461       if test "$host_cpu" = ia64; then
9462         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9463         allow_undefined_flag_CXX="-z nodefs"
9464         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"
9465       else
9466         # Determine the default libpath from the value encoded in an empty executable.
9467         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h.  */
9469
9470 int
9471 main ()
9472 {
9473
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 if ac_fn_cxx_try_link "$LINENO"; then :
9479
9480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9481 }'`
9482 # Check for a 64-bit object if we didn't find anything.
9483 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; }
9484 }'`; fi
9485 fi
9486 rm -f core conftest.err conftest.$ac_objext \
9487     conftest$ac_exeext conftest.$ac_ext
9488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9489
9490         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9491         # Warning - without using the other run time loading flags,
9492         # -berok will link without error, but may produce a broken library.
9493         no_undefined_flag_CXX=' ${wl}-bernotok'
9494         allow_undefined_flag_CXX=' ${wl}-berok'
9495         # -bexpall does not export symbols beginning with underscore (_)
9496         always_export_symbols_CXX=yes
9497         # Exported symbols can be pulled into shared objects from archives
9498         whole_archive_flag_spec_CXX=' '
9499         archive_cmds_need_lc_CXX=yes
9500         # This is similar to how AIX traditionally builds it's shared libraries.
9501         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'
9502       fi
9503     fi
9504     ;;
9505   chorus*)
9506     case $cc_basename in
9507       *)
9508         # FIXME: insert proper C++ library support
9509         ld_shlibs_CXX=no
9510         ;;
9511     esac
9512     ;;
9513
9514   cygwin* | mingw* | pw32*)
9515     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9516     # as there is no search path for DLLs.
9517     hardcode_libdir_flag_spec_CXX='-L$libdir'
9518     allow_undefined_flag_CXX=unsupported
9519     always_export_symbols_CXX=no
9520     enable_shared_with_static_runtimes_CXX=yes
9521
9522     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9523       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'
9524       # If the export-symbols file already is a .def file (1st line
9525       # is EXPORTS), use it as is; otherwise, prepend...
9526       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9527         cp $export_symbols $output_objdir/$soname.def;
9528       else
9529         echo EXPORTS > $output_objdir/$soname.def;
9530         cat $export_symbols >> $output_objdir/$soname.def;
9531       fi~
9532       $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'
9533     else
9534       ld_shlibs_CXX=no
9535     fi
9536   ;;
9537
9538   darwin* | rhapsody*)
9539   if test "$GXX" = yes; then
9540     archive_cmds_need_lc_CXX=no
9541     case "$host_os" in
9542     rhapsody* | darwin1.[012])
9543       allow_undefined_flag_CXX='-undefined suppress'
9544       ;;
9545     *) # Darwin 1.3 on
9546       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9547         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9548       else
9549         case ${MACOSX_DEPLOYMENT_TARGET} in
9550           10.[012])
9551             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9552             ;;
9553           10.*)
9554             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9555             ;;
9556         esac
9557       fi
9558       ;;
9559     esac
9560     lt_int_apple_cc_single_mod=no
9561     output_verbose_link_cmd='echo'
9562     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9563       lt_int_apple_cc_single_mod=yes
9564     fi
9565     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9566       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9567     else
9568       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'
9569     fi
9570     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9571
9572     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9573     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9574       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}'
9575     else
9576       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}'
9577     fi
9578     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}'
9579     hardcode_direct_CXX=no
9580     hardcode_automatic_CXX=yes
9581     hardcode_shlibpath_var_CXX=unsupported
9582     whole_archive_flag_spec_CXX='-all_load $convenience'
9583     link_all_deplibs_CXX=yes
9584   else
9585     ld_shlibs_CXX=no
9586   fi
9587     ;;
9588
9589   dgux*)
9590     case $cc_basename in
9591       ec++)
9592         # FIXME: insert proper C++ library support
9593         ld_shlibs_CXX=no
9594         ;;
9595       ghcx)
9596         # Green Hills C++ Compiler
9597         # FIXME: insert proper C++ library support
9598         ld_shlibs_CXX=no
9599         ;;
9600       *)
9601         # FIXME: insert proper C++ library support
9602         ld_shlibs_CXX=no
9603         ;;
9604     esac
9605     ;;
9606   freebsd12*)
9607     # C++ shared libraries reported to be fairly broken before switch to ELF
9608     ld_shlibs_CXX=no
9609     ;;
9610   freebsd-elf*)
9611     archive_cmds_need_lc_CXX=no
9612     ;;
9613   freebsd* | kfreebsd*-gnu)
9614     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9615     # conventions
9616     ld_shlibs_CXX=yes
9617     ;;
9618   gnu*)
9619     ;;
9620   hpux9*)
9621     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9622     hardcode_libdir_separator_CXX=:
9623     export_dynamic_flag_spec_CXX='${wl}-E'
9624     hardcode_direct_CXX=yes
9625     hardcode_minus_L_CXX=yes # Not in the search PATH,
9626                                 # but as the default
9627                                 # location of the library.
9628
9629     case $cc_basename in
9630     CC)
9631       # FIXME: insert proper C++ library support
9632       ld_shlibs_CXX=no
9633       ;;
9634     aCC)
9635       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'
9636       # Commands to make compiler produce verbose output that lists
9637       # what "hidden" libraries, object files and flags are used when
9638       # linking a shared library.
9639       #
9640       # There doesn't appear to be a way to prevent this compiler from
9641       # explicitly linking system object files so we need to strip them
9642       # from the output so that they don't get included in the library
9643       # dependencies.
9644       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'
9645       ;;
9646     *)
9647       if test "$GXX" = yes; then
9648         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'
9649       else
9650         # FIXME: insert proper C++ library support
9651         ld_shlibs_CXX=no
9652       fi
9653       ;;
9654     esac
9655     ;;
9656   hpux10*|hpux11*)
9657     if test $with_gnu_ld = no; then
9658       case "$host_cpu" in
9659       hppa*64*)
9660         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9661         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9662         hardcode_libdir_separator_CXX=:
9663         ;;
9664       ia64*)
9665         hardcode_libdir_flag_spec_CXX='-L$libdir'
9666         ;;
9667       *)
9668         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9669         hardcode_libdir_separator_CXX=:
9670         export_dynamic_flag_spec_CXX='${wl}-E'
9671         ;;
9672       esac
9673     fi
9674     case "$host_cpu" in
9675     hppa*64*)
9676       hardcode_direct_CXX=no
9677       hardcode_shlibpath_var_CXX=no
9678       ;;
9679     ia64*)
9680       hardcode_direct_CXX=no
9681       hardcode_shlibpath_var_CXX=no
9682       hardcode_minus_L_CXX=yes # Not in the search PATH,
9683                                               # but as the default
9684                                               # location of the library.
9685       ;;
9686     *)
9687       hardcode_direct_CXX=yes
9688       hardcode_minus_L_CXX=yes # Not in the search PATH,
9689                                               # but as the default
9690                                               # location of the library.
9691       ;;
9692     esac
9693
9694     case $cc_basename in
9695       CC)
9696         # FIXME: insert proper C++ library support
9697         ld_shlibs_CXX=no
9698         ;;
9699       aCC)
9700         case "$host_cpu" in
9701         hppa*64*|ia64*)
9702           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9703           ;;
9704         *)
9705           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9706           ;;
9707         esac
9708         # Commands to make compiler produce verbose output that lists
9709         # what "hidden" libraries, object files and flags are used when
9710         # linking a shared library.
9711         #
9712         # There doesn't appear to be a way to prevent this compiler from
9713         # explicitly linking system object files so we need to strip them
9714         # from the output so that they don't get included in the library
9715         # dependencies.
9716         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'
9717         ;;
9718       *)
9719         if test "$GXX" = yes; then
9720           if test $with_gnu_ld = no; then
9721             case "$host_cpu" in
9722             ia64*|hppa*64*)
9723               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9724               ;;
9725             *)
9726               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'
9727               ;;
9728             esac
9729           fi
9730         else
9731           # FIXME: insert proper C++ library support
9732           ld_shlibs_CXX=no
9733         fi
9734         ;;
9735     esac
9736     ;;
9737   irix5* | irix6*)
9738     case $cc_basename in
9739       CC)
9740         # SGI C++
9741         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'
9742
9743         # Archives containing C++ object files must be created using
9744         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9745         # necessary to make sure instantiated templates are included
9746         # in the archive.
9747         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9748         ;;
9749       *)
9750         if test "$GXX" = yes; then
9751           if test "$with_gnu_ld" = no; then
9752             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'
9753           else
9754             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'
9755           fi
9756         fi
9757         link_all_deplibs_CXX=yes
9758         ;;
9759     esac
9760     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9761     hardcode_libdir_separator_CXX=:
9762     ;;
9763   linux*)
9764     case $cc_basename in
9765       KCC)
9766         # Kuck and Associates, Inc. (KAI) C++ Compiler
9767
9768         # KCC will only create a shared library if the output file
9769         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9770         # to its proper name (with version) after linking.
9771         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'
9772         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'
9773         # Commands to make compiler produce verbose output that lists
9774         # what "hidden" libraries, object files and flags are used when
9775         # linking a shared library.
9776         #
9777         # There doesn't appear to be a way to prevent this compiler from
9778         # explicitly linking system object files so we need to strip them
9779         # from the output so that they don't get included in the library
9780         # dependencies.
9781         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'
9782
9783         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9784         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9785
9786         # Archives containing C++ object files must be created using
9787         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9788         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9789         ;;
9790       icpc)
9791         # Intel C++
9792         with_gnu_ld=yes
9793         archive_cmds_need_lc_CXX=no
9794         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9795         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'
9796         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9797         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9798         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9799         ;;
9800       cxx)
9801         # Compaq C++
9802         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9803         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'
9804
9805         runpath_var=LD_RUN_PATH
9806         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9807         hardcode_libdir_separator_CXX=:
9808
9809         # Commands to make compiler produce verbose output that lists
9810         # what "hidden" libraries, object files and flags are used when
9811         # linking a shared library.
9812         #
9813         # There doesn't appear to be a way to prevent this compiler from
9814         # explicitly linking system object files so we need to strip them
9815         # from the output so that they don't get included in the library
9816         # dependencies.
9817         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'
9818         ;;
9819     esac
9820     ;;
9821   lynxos*)
9822     # FIXME: insert proper C++ library support
9823     ld_shlibs_CXX=no
9824     ;;
9825   m88k*)
9826     # FIXME: insert proper C++ library support
9827     ld_shlibs_CXX=no
9828     ;;
9829   mvs*)
9830     case $cc_basename in
9831       cxx)
9832         # FIXME: insert proper C++ library support
9833         ld_shlibs_CXX=no
9834         ;;
9835       *)
9836         # FIXME: insert proper C++ library support
9837         ld_shlibs_CXX=no
9838         ;;
9839     esac
9840     ;;
9841   netbsd*)
9842     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9843       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9844       wlarc=
9845       hardcode_libdir_flag_spec_CXX='-R$libdir'
9846       hardcode_direct_CXX=yes
9847       hardcode_shlibpath_var_CXX=no
9848     fi
9849     # Workaround some broken pre-1.5 toolchains
9850     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9851     ;;
9852   osf3*)
9853     case $cc_basename in
9854       KCC)
9855         # Kuck and Associates, Inc. (KAI) C++ Compiler
9856
9857         # KCC will only create a shared library if the output file
9858         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9859         # to its proper name (with version) after linking.
9860         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'
9861
9862         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9863         hardcode_libdir_separator_CXX=:
9864
9865         # Archives containing C++ object files must be created using
9866         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9867         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9868
9869         ;;
9870       RCC)
9871         # Rational C++ 2.4.1
9872         # FIXME: insert proper C++ library support
9873         ld_shlibs_CXX=no
9874         ;;
9875       cxx)
9876         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9877         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'
9878
9879         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9880         hardcode_libdir_separator_CXX=:
9881
9882         # Commands to make compiler produce verbose output that lists
9883         # what "hidden" libraries, object files and flags are used when
9884         # linking a shared library.
9885         #
9886         # There doesn't appear to be a way to prevent this compiler from
9887         # explicitly linking system object files so we need to strip them
9888         # from the output so that they don't get included in the library
9889         # dependencies.
9890         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'
9891         ;;
9892       *)
9893         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9894           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9895           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'
9896
9897           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9898           hardcode_libdir_separator_CXX=:
9899
9900           # Commands to make compiler produce verbose output that lists
9901           # what "hidden" libraries, object files and flags are used when
9902           # linking a shared library.
9903           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9904
9905         else
9906           # FIXME: insert proper C++ library support
9907           ld_shlibs_CXX=no
9908         fi
9909         ;;
9910     esac
9911     ;;
9912   osf4* | osf5*)
9913     case $cc_basename in
9914       KCC)
9915         # Kuck and Associates, Inc. (KAI) C++ Compiler
9916
9917         # KCC will only create a shared library if the output file
9918         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9919         # to its proper name (with version) after linking.
9920         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'
9921
9922         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9923         hardcode_libdir_separator_CXX=:
9924
9925         # Archives containing C++ object files must be created using
9926         # the KAI C++ compiler.
9927         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9928         ;;
9929       RCC)
9930         # Rational C++ 2.4.1
9931         # FIXME: insert proper C++ library support
9932         ld_shlibs_CXX=no
9933         ;;
9934       cxx)
9935         allow_undefined_flag_CXX=' -expect_unresolved \*'
9936         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'
9937         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9938           echo "-hidden">> $lib.exp~
9939           $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~
9940           $rm $lib.exp'
9941
9942         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9943         hardcode_libdir_separator_CXX=:
9944
9945         # Commands to make compiler produce verbose output that lists
9946         # what "hidden" libraries, object files and flags are used when
9947         # linking a shared library.
9948         #
9949         # There doesn't appear to be a way to prevent this compiler from
9950         # explicitly linking system object files so we need to strip them
9951         # from the output so that they don't get included in the library
9952         # dependencies.
9953         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'
9954         ;;
9955       *)
9956         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9957           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9958          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'
9959
9960           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9961           hardcode_libdir_separator_CXX=:
9962
9963           # Commands to make compiler produce verbose output that lists
9964           # what "hidden" libraries, object files and flags are used when
9965           # linking a shared library.
9966           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9967
9968         else
9969           # FIXME: insert proper C++ library support
9970           ld_shlibs_CXX=no
9971         fi
9972         ;;
9973     esac
9974     ;;
9975   psos*)
9976     # FIXME: insert proper C++ library support
9977     ld_shlibs_CXX=no
9978     ;;
9979   sco*)
9980     archive_cmds_need_lc_CXX=no
9981     case $cc_basename in
9982       CC)
9983         # FIXME: insert proper C++ library support
9984         ld_shlibs_CXX=no
9985         ;;
9986       *)
9987         # FIXME: insert proper C++ library support
9988         ld_shlibs_CXX=no
9989         ;;
9990     esac
9991     ;;
9992   sunos4*)
9993     case $cc_basename in
9994       CC)
9995         # Sun C++ 4.x
9996         # FIXME: insert proper C++ library support
9997         ld_shlibs_CXX=no
9998         ;;
9999       lcc)
10000         # Lucid
10001         # FIXME: insert proper C++ library support
10002         ld_shlibs_CXX=no
10003         ;;
10004       *)
10005         # FIXME: insert proper C++ library support
10006         ld_shlibs_CXX=no
10007         ;;
10008     esac
10009     ;;
10010   solaris*)
10011     case $cc_basename in
10012       CC)
10013         # Sun C++ 4.2, 5.x and Centerline C++
10014         no_undefined_flag_CXX=' -zdefs'
10015         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10016         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10017         $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'
10018
10019         hardcode_libdir_flag_spec_CXX='-R$libdir'
10020         hardcode_shlibpath_var_CXX=no
10021         case $host_os in
10022           solaris2.0-5 | solaris2.0-5.*) ;;
10023           *)
10024             # The C++ compiler is used as linker so we must use $wl
10025             # flag to pass the commands to the underlying system
10026             # linker.
10027             # Supported since Solaris 2.6 (maybe 2.5.1?)
10028             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10029             ;;
10030         esac
10031         link_all_deplibs_CXX=yes
10032
10033         # Commands to make compiler produce verbose output that lists
10034         # what "hidden" libraries, object files and flags are used when
10035         # linking a shared library.
10036         #
10037         # There doesn't appear to be a way to prevent this compiler from
10038         # explicitly linking system object files so we need to strip them
10039         # from the output so that they don't get included in the library
10040         # dependencies.
10041         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'
10042
10043         # Archives containing C++ object files must be created using
10044         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10045         # necessary to make sure instantiated templates are included
10046         # in the archive.
10047         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10048         ;;
10049       gcx)
10050         # Green Hills C++ Compiler
10051         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10052
10053         # The C++ compiler must be used to create the archive.
10054         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10055         ;;
10056       *)
10057         # GNU C++ compiler with Solaris linker
10058         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10059           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10060           if $CC --version | grep -v '^2\.7' > /dev/null; then
10061             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10062             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10063                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
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             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10069           else
10070             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10071             # platform.
10072             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10073             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10074                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10075
10076             # Commands to make compiler produce verbose output that lists
10077             # what "hidden" libraries, object files and flags are used when
10078             # linking a shared library.
10079             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10080           fi
10081
10082           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10083         fi
10084         ;;
10085     esac
10086     ;;
10087   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10088     archive_cmds_need_lc_CXX=no
10089     ;;
10090   tandem*)
10091     case $cc_basename in
10092       NCC)
10093         # NonStop-UX NCC 3.20
10094         # FIXME: insert proper C++ library support
10095         ld_shlibs_CXX=no
10096         ;;
10097       *)
10098         # FIXME: insert proper C++ library support
10099         ld_shlibs_CXX=no
10100         ;;
10101     esac
10102     ;;
10103   vxworks*)
10104     # FIXME: insert proper C++ library support
10105     ld_shlibs_CXX=no
10106     ;;
10107   *)
10108     # FIXME: insert proper C++ library support
10109     ld_shlibs_CXX=no
10110     ;;
10111 esac
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10113 $as_echo "$ld_shlibs_CXX" >&6; }
10114 test "$ld_shlibs_CXX" = no && can_build_shared=no
10115
10116 GCC_CXX="$GXX"
10117 LD_CXX="$LD"
10118
10119 ## CAVEAT EMPTOR:
10120 ## There is no encapsulation within the following macros, do not change
10121 ## the running order or otherwise move them around unless you know exactly
10122 ## what you are doing...
10123
10124 cat > conftest.$ac_ext <<EOF
10125 class Foo
10126 {
10127 public:
10128   Foo (void) { a = 0; }
10129 private:
10130   int a;
10131 };
10132 EOF
10133
10134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10135   (eval $ac_compile) 2>&5
10136   ac_status=$?
10137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10138   test $ac_status = 0; }; then
10139   # Parse the compiler output and extract the necessary
10140   # objects, libraries and library flags.
10141
10142   # Sentinel used to keep track of whether or not we are before
10143   # the conftest object file.
10144   pre_test_object_deps_done=no
10145
10146   # The `*' in the case matches for architectures that use `case' in
10147   # $output_verbose_cmd can trigger glob expansion during the loop
10148   # eval without this substitution.
10149   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10150
10151   for p in `eval $output_verbose_link_cmd`; do
10152     case $p in
10153
10154     -L* | -R* | -l*)
10155        # Some compilers place space between "-{L,R}" and the path.
10156        # Remove the space.
10157        if test $p = "-L" \
10158           || test $p = "-R"; then
10159          prev=$p
10160          continue
10161        else
10162          prev=
10163        fi
10164
10165        if test "$pre_test_object_deps_done" = no; then
10166          case $p in
10167          -L* | -R*)
10168            # Internal compiler library paths should come after those
10169            # provided the user.  The postdeps already come after the
10170            # user supplied libs so there is no need to process them.
10171            if test -z "$compiler_lib_search_path_CXX"; then
10172              compiler_lib_search_path_CXX="${prev}${p}"
10173            else
10174              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10175            fi
10176            ;;
10177          # The "-l" case would never come before the object being
10178          # linked, so don't bother handling this case.
10179          esac
10180        else
10181          if test -z "$postdeps_CXX"; then
10182            postdeps_CXX="${prev}${p}"
10183          else
10184            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10185          fi
10186        fi
10187        ;;
10188
10189     *.$objext)
10190        # This assumes that the test object file only shows up
10191        # once in the compiler output.
10192        if test "$p" = "conftest.$objext"; then
10193          pre_test_object_deps_done=yes
10194          continue
10195        fi
10196
10197        if test "$pre_test_object_deps_done" = no; then
10198          if test -z "$predep_objects_CXX"; then
10199            predep_objects_CXX="$p"
10200          else
10201            predep_objects_CXX="$predep_objects_CXX $p"
10202          fi
10203        else
10204          if test -z "$postdep_objects_CXX"; then
10205            postdep_objects_CXX="$p"
10206          else
10207            postdep_objects_CXX="$postdep_objects_CXX $p"
10208          fi
10209        fi
10210        ;;
10211
10212     *) ;; # Ignore the rest.
10213
10214     esac
10215   done
10216
10217   # Clean up.
10218   rm -f a.out a.exe
10219 else
10220   echo "libtool.m4: error: problem compiling CXX test program"
10221 fi
10222
10223 $rm -f confest.$objext
10224
10225 case " $postdeps_CXX " in
10226 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10227 esac
10228
10229 lt_prog_compiler_wl_CXX=
10230 lt_prog_compiler_pic_CXX=
10231 lt_prog_compiler_static_CXX=
10232
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10234 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10235
10236   # C++ specific cases for pic, static, wl, etc.
10237   if test "$GXX" = yes; then
10238     lt_prog_compiler_wl_CXX='-Wl,'
10239     lt_prog_compiler_static_CXX='-static'
10240
10241     case $host_os in
10242     aix*)
10243       # All AIX code is PIC.
10244       if test "$host_cpu" = ia64; then
10245         # AIX 5 now supports IA64 processor
10246         lt_prog_compiler_static_CXX='-Bstatic'
10247       fi
10248       ;;
10249     amigaos*)
10250       # FIXME: we need at least 68020 code to build shared libraries, but
10251       # adding the `-m68020' flag to GCC prevents building anything better,
10252       # like `-m68040'.
10253       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10254       ;;
10255     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10256       # PIC is the default for these OSes.
10257       ;;
10258     mingw* | os2* | pw32*)
10259       # This hack is so that the source file can tell whether it is being
10260       # built for inclusion in a dll (and should export symbols for example).
10261       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10262       ;;
10263     darwin* | rhapsody*)
10264       # PIC is the default on this platform
10265       # Common symbols not allowed in MH_DYLIB files
10266       lt_prog_compiler_pic_CXX='-fno-common'
10267       ;;
10268     *djgpp*)
10269       # DJGPP does not support shared libraries at all
10270       lt_prog_compiler_pic_CXX=
10271       ;;
10272     sysv4*MP*)
10273       if test -d /usr/nec; then
10274         lt_prog_compiler_pic_CXX=-Kconform_pic
10275       fi
10276       ;;
10277     hpux*)
10278       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10279       # not for PA HP-UX.
10280       case "$host_cpu" in
10281       hppa*64*|ia64*)
10282         ;;
10283       *)
10284         lt_prog_compiler_pic_CXX='-fPIC'
10285         ;;
10286       esac
10287       ;;
10288     *)
10289       lt_prog_compiler_pic_CXX='-fPIC'
10290       ;;
10291     esac
10292   else
10293     case $host_os in
10294       aix4* | aix5*)
10295         # All AIX code is PIC.
10296         if test "$host_cpu" = ia64; then
10297           # AIX 5 now supports IA64 processor
10298           lt_prog_compiler_static_CXX='-Bstatic'
10299         else
10300           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10301         fi
10302         ;;
10303       chorus*)
10304         case $cc_basename in
10305         cxch68)
10306           # Green Hills C++ Compiler
10307           # _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"
10308           ;;
10309         esac
10310         ;;
10311       dgux*)
10312         case $cc_basename in
10313           ec++)
10314             lt_prog_compiler_pic_CXX='-KPIC'
10315             ;;
10316           ghcx)
10317             # Green Hills C++ Compiler
10318             lt_prog_compiler_pic_CXX='-pic'
10319             ;;
10320           *)
10321             ;;
10322         esac
10323         ;;
10324       freebsd* | kfreebsd*-gnu)
10325         # FreeBSD uses GNU C++
10326         ;;
10327       hpux9* | hpux10* | hpux11*)
10328         case $cc_basename in
10329           CC)
10330             lt_prog_compiler_wl_CXX='-Wl,'
10331             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10332             if test "$host_cpu" != ia64; then
10333               lt_prog_compiler_pic_CXX='+Z'
10334             fi
10335             ;;
10336           aCC)
10337             lt_prog_compiler_wl_CXX='-Wl,'
10338             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10339             case "$host_cpu" in
10340             hppa*64*|ia64*)
10341               # +Z the default
10342               ;;
10343             *)
10344               lt_prog_compiler_pic_CXX='+Z'
10345               ;;
10346             esac
10347             ;;
10348           *)
10349             ;;
10350         esac
10351         ;;
10352       irix5* | irix6* | nonstopux*)
10353         case $cc_basename in
10354           CC)
10355             lt_prog_compiler_wl_CXX='-Wl,'
10356             lt_prog_compiler_static_CXX='-non_shared'
10357             # CC pic flag -KPIC is the default.
10358             ;;
10359           *)
10360             ;;
10361         esac
10362         ;;
10363       linux*)
10364         case $cc_basename in
10365           KCC)
10366             # KAI C++ Compiler
10367             lt_prog_compiler_wl_CXX='--backend -Wl,'
10368             lt_prog_compiler_pic_CXX='-fPIC'
10369             ;;
10370           icpc)
10371             # Intel C++
10372             lt_prog_compiler_wl_CXX='-Wl,'
10373             lt_prog_compiler_pic_CXX='-KPIC'
10374             lt_prog_compiler_static_CXX='-static'
10375             ;;
10376           cxx)
10377             # Compaq C++
10378             # Make sure the PIC flag is empty.  It appears that all Alpha
10379             # Linux and Compaq Tru64 Unix objects are PIC.
10380             lt_prog_compiler_pic_CXX=
10381             lt_prog_compiler_static_CXX='-non_shared'
10382             ;;
10383           *)
10384             ;;
10385         esac
10386         ;;
10387       lynxos*)
10388         ;;
10389       m88k*)
10390         ;;
10391       mvs*)
10392         case $cc_basename in
10393           cxx)
10394             lt_prog_compiler_pic_CXX='-W c,exportall'
10395             ;;
10396           *)
10397             ;;
10398         esac
10399         ;;
10400       netbsd*)
10401         ;;
10402       osf3* | osf4* | osf5*)
10403         case $cc_basename in
10404           KCC)
10405             lt_prog_compiler_wl_CXX='--backend -Wl,'
10406             ;;
10407           RCC)
10408             # Rational C++ 2.4.1
10409             lt_prog_compiler_pic_CXX='-pic'
10410             ;;
10411           cxx)
10412             # Digital/Compaq C++
10413             lt_prog_compiler_wl_CXX='-Wl,'
10414             # Make sure the PIC flag is empty.  It appears that all Alpha
10415             # Linux and Compaq Tru64 Unix objects are PIC.
10416             lt_prog_compiler_pic_CXX=
10417             lt_prog_compiler_static_CXX='-non_shared'
10418             ;;
10419           *)
10420             ;;
10421         esac
10422         ;;
10423       psos*)
10424         ;;
10425       sco*)
10426         case $cc_basename in
10427           CC)
10428             lt_prog_compiler_pic_CXX='-fPIC'
10429             ;;
10430           *)
10431             ;;
10432         esac
10433         ;;
10434       solaris*)
10435         case $cc_basename in
10436           CC)
10437             # Sun C++ 4.2, 5.x and Centerline C++
10438             lt_prog_compiler_pic_CXX='-KPIC'
10439             lt_prog_compiler_static_CXX='-Bstatic'
10440             lt_prog_compiler_wl_CXX='-Qoption ld '
10441             ;;
10442           gcx)
10443             # Green Hills C++ Compiler
10444             lt_prog_compiler_pic_CXX='-PIC'
10445             ;;
10446           *)
10447             ;;
10448         esac
10449         ;;
10450       sunos4*)
10451         case $cc_basename in
10452           CC)
10453             # Sun C++ 4.x
10454             lt_prog_compiler_pic_CXX='-pic'
10455             lt_prog_compiler_static_CXX='-Bstatic'
10456             ;;
10457           lcc)
10458             # Lucid
10459             lt_prog_compiler_pic_CXX='-pic'
10460             ;;
10461           *)
10462             ;;
10463         esac
10464         ;;
10465       tandem*)
10466         case $cc_basename in
10467           NCC)
10468             # NonStop-UX NCC 3.20
10469             lt_prog_compiler_pic_CXX='-KPIC'
10470             ;;
10471           *)
10472             ;;
10473         esac
10474         ;;
10475       unixware*)
10476         ;;
10477       vxworks*)
10478         ;;
10479       *)
10480         lt_prog_compiler_can_build_shared_CXX=no
10481         ;;
10482     esac
10483   fi
10484
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
10486 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
10487
10488 #
10489 # Check to make sure the PIC flag actually works.
10490 #
10491 if test -n "$lt_prog_compiler_pic_CXX"; then
10492
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10494 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
10495 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
10496   $as_echo_n "(cached) " >&6
10497 else
10498   lt_prog_compiler_pic_works_CXX=no
10499   ac_outfile=conftest.$ac_objext
10500    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10501    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10502    # Insert the option either (1) after the last *FLAGS variable, or
10503    # (2) before a word containing "conftest.", or (3) at the end.
10504    # Note that $ac_compile itself does not contain backslashes and begins
10505    # with a dollar sign (not a hyphen), so the echo should work correctly.
10506    # The option is referenced via a variable to avoid confusing sed.
10507    lt_compile=`echo "$ac_compile" | $SED \
10508    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10510    -e 's:$: $lt_compiler_flag:'`
10511    (eval echo "\"\$as_me:10511: $lt_compile\"" >&5)
10512    (eval "$lt_compile" 2>conftest.err)
10513    ac_status=$?
10514    cat conftest.err >&5
10515    echo "$as_me:10515: \$? = $ac_status" >&5
10516    if (exit $ac_status) && test -s "$ac_outfile"; then
10517      # The compiler can only warn and ignore the option if not recognized
10518      # So say no if there are warnings
10519      if test ! -s conftest.err; then
10520        lt_prog_compiler_pic_works_CXX=yes
10521      fi
10522    fi
10523    $rm conftest*
10524
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
10527 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
10528
10529 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10530     case $lt_prog_compiler_pic_CXX in
10531      "" | " "*) ;;
10532      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10533      esac
10534 else
10535     lt_prog_compiler_pic_CXX=
10536      lt_prog_compiler_can_build_shared_CXX=no
10537 fi
10538
10539 fi
10540 case "$host_os" in
10541   # For platforms which do not support PIC, -DPIC is meaningless:
10542   *djgpp*)
10543     lt_prog_compiler_pic_CXX=
10544     ;;
10545   *)
10546     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10547     ;;
10548 esac
10549
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10551 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10552 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
10553   $as_echo_n "(cached) " >&6
10554 else
10555   lt_cv_prog_compiler_c_o_CXX=no
10556    $rm -r conftest 2>/dev/null
10557    mkdir conftest
10558    cd conftest
10559    mkdir out
10560    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10561
10562    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10563    # that will create temporary files in the current directory regardless of
10564    # the output directory.  Thus, making CWD read-only will cause this test
10565    # to fail, enabling locking or at least warning the user not to do parallel
10566    # builds.
10567    chmod -w .
10568
10569    lt_compiler_flag="-o out/conftest2.$ac_objext"
10570    # Insert the option either (1) after the last *FLAGS variable, or
10571    # (2) before a word containing "conftest.", or (3) at the end.
10572    # Note that $ac_compile itself does not contain backslashes and begins
10573    # with a dollar sign (not a hyphen), so the echo should work correctly.
10574    lt_compile=`echo "$ac_compile" | $SED \
10575    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10576    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10577    -e 's:$: $lt_compiler_flag:'`
10578    (eval echo "\"\$as_me:10578: $lt_compile\"" >&5)
10579    (eval "$lt_compile" 2>out/conftest.err)
10580    ac_status=$?
10581    cat out/conftest.err >&5
10582    echo "$as_me:10582: \$? = $ac_status" >&5
10583    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10584    then
10585      # The compiler can only warn and ignore the option if not recognized
10586      # So say no if there are warnings
10587      if test ! -s out/conftest.err; then
10588        lt_cv_prog_compiler_c_o_CXX=yes
10589      fi
10590    fi
10591    chmod u+w .
10592    $rm conftest*
10593    # SGI C++ compiler will create directory out/ii_files/ for
10594    # template instantiation
10595    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10596    $rm out/* && rmdir out
10597    cd ..
10598    rmdir conftest
10599    $rm conftest*
10600
10601 fi
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10603 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
10604
10605
10606 hard_links="nottested"
10607 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10608   # do not overwrite the value of need_locks provided by the user
10609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10610 $as_echo_n "checking if we can lock with hard links... " >&6; }
10611   hard_links=yes
10612   $rm conftest*
10613   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10614   touch conftest.a
10615   ln conftest.a conftest.b 2>&5 || hard_links=no
10616   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10618 $as_echo "$hard_links" >&6; }
10619   if test "$hard_links" = no; then
10620     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10621 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10622     need_locks=warn
10623   fi
10624 else
10625   need_locks=no
10626 fi
10627
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10629 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10630
10631   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10632   case $host_os in
10633   aix4* | aix5*)
10634     # If we're using GNU nm, then we don't want the "-C" option.
10635     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10636     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10637       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'
10638     else
10639       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'
10640     fi
10641     ;;
10642   pw32*)
10643     export_symbols_cmds_CXX="$ltdll_cmds"
10644   ;;
10645   cygwin* | mingw*)
10646     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10647   ;;
10648   *)
10649     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10650   ;;
10651   esac
10652
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10654 $as_echo "$ld_shlibs_CXX" >&6; }
10655 test "$ld_shlibs_CXX" = no && can_build_shared=no
10656
10657 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10658 if test "$GCC" = yes; then
10659   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10660 fi
10661
10662 #
10663 # Do we need to explicitly link libc?
10664 #
10665 case "x$archive_cmds_need_lc_CXX" in
10666 x|xyes)
10667   # Assume -lc should be added
10668   archive_cmds_need_lc_CXX=yes
10669
10670   if test "$enable_shared" = yes && test "$GCC" = yes; then
10671     case $archive_cmds_CXX in
10672     *'~'*)
10673       # FIXME: we may have to deal with multi-command sequences.
10674       ;;
10675     '$CC '*)
10676       # Test whether the compiler implicitly links with -lc since on some
10677       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10678       # to ld, don't add -lc before -lgcc.
10679       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10680 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10681       $rm conftest*
10682       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10683
10684       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10685   (eval $ac_compile) 2>&5
10686   ac_status=$?
10687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10688   test $ac_status = 0; } 2>conftest.err; then
10689         soname=conftest
10690         lib=conftest
10691         libobjs=conftest.$ac_objext
10692         deplibs=
10693         wl=$lt_prog_compiler_wl_CXX
10694         compiler_flags=-v
10695         linker_flags=-v
10696         verstring=
10697         output_objdir=.
10698         libname=conftest
10699         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10700         allow_undefined_flag_CXX=
10701         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10702   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10703   ac_status=$?
10704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10705   test $ac_status = 0; }
10706         then
10707           archive_cmds_need_lc_CXX=no
10708         else
10709           archive_cmds_need_lc_CXX=yes
10710         fi
10711         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10712       else
10713         cat conftest.err 1>&5
10714       fi
10715       $rm conftest*
10716       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
10717 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
10718       ;;
10719     esac
10720   fi
10721   ;;
10722 esac
10723
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10725 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10726 library_names_spec=
10727 libname_spec='lib$name'
10728 soname_spec=
10729 shrext=".so"
10730 postinstall_cmds=
10731 postuninstall_cmds=
10732 finish_cmds=
10733 finish_eval=
10734 shlibpath_var=
10735 shlibpath_overrides_runpath=unknown
10736 version_type=none
10737 dynamic_linker="$host_os ld.so"
10738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10739 if test "$GCC" = yes; then
10740   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10741   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10742     # if the path contains ";" then we assume it to be the separator
10743     # otherwise default to the standard path separator (i.e. ":") - it is
10744     # assumed that no part of a normal pathname contains ";" but that should
10745     # okay in the real world where ";" in dirpaths is itself problematic.
10746     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10747   else
10748     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10749   fi
10750 else
10751   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10752 fi
10753 need_lib_prefix=unknown
10754 hardcode_into_libs=no
10755
10756 # when you set need_version to no, make sure it does not cause -set_version
10757 # flags to be left without arguments
10758 need_version=unknown
10759
10760 case $host_os in
10761 aix3*)
10762   version_type=linux
10763   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10764   shlibpath_var=LIBPATH
10765
10766   # AIX 3 has no versioning support, so we append a major version to the name.
10767   soname_spec='${libname}${release}${shared_ext}$major'
10768   ;;
10769
10770 aix4* | aix5*)
10771   version_type=linux
10772   need_lib_prefix=no
10773   need_version=no
10774   hardcode_into_libs=yes
10775   if test "$host_cpu" = ia64; then
10776     # AIX 5 supports IA64
10777     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10778     shlibpath_var=LD_LIBRARY_PATH
10779   else
10780     # With GCC up to 2.95.x, collect2 would create an import file
10781     # for dependence libraries.  The import file would start with
10782     # the line `#! .'.  This would cause the generated library to
10783     # depend on `.', always an invalid library.  This was fixed in
10784     # development snapshots of GCC prior to 3.0.
10785     case $host_os in
10786       aix4 | aix4.[01] | aix4.[01].*)
10787       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10788            echo ' yes '
10789            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10790         :
10791       else
10792         can_build_shared=no
10793       fi
10794       ;;
10795     esac
10796     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10797     # soname into executable. Probably we can add versioning support to
10798     # collect2, so additional links can be useful in future.
10799     if test "$aix_use_runtimelinking" = yes; then
10800       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10801       # instead of lib<name>.a to let people know that these are not
10802       # typical AIX shared libraries.
10803       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804     else
10805       # We preserve .a as extension for shared libraries through AIX4.2
10806       # and later when we are not doing run time linking.
10807       library_names_spec='${libname}${release}.a $libname.a'
10808       soname_spec='${libname}${release}${shared_ext}$major'
10809     fi
10810     shlibpath_var=LIBPATH
10811   fi
10812   ;;
10813
10814 amigaos*)
10815   library_names_spec='$libname.ixlibrary $libname.a'
10816   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10817   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'
10818   ;;
10819
10820 beos*)
10821   library_names_spec='${libname}${shared_ext}'
10822   dynamic_linker="$host_os ld.so"
10823   shlibpath_var=LIBRARY_PATH
10824   ;;
10825
10826 bsdi4*)
10827   version_type=linux
10828   need_version=no
10829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830   soname_spec='${libname}${release}${shared_ext}$major'
10831   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10832   shlibpath_var=LD_LIBRARY_PATH
10833   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10834   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10835   # the default ld.so.conf also contains /usr/contrib/lib and
10836   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10837   # libtool to hard-code these into programs
10838   ;;
10839
10840 cygwin* | mingw* | pw32*)
10841   version_type=windows
10842   shrext=".dll"
10843   need_version=no
10844   need_lib_prefix=no
10845
10846   case $GCC,$host_os in
10847   yes,cygwin* | yes,mingw* | yes,pw32*)
10848     library_names_spec='$libname.dll.a'
10849     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10850     postinstall_cmds='base_file=`basename \${file}`~
10851       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10852       dldir=$destdir/`dirname \$dlpath`~
10853       test -d \$dldir || mkdir -p \$dldir~
10854       $install_prog $dir/$dlname \$dldir/$dlname'
10855     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10856       dlpath=$dir/\$dldll~
10857        $rm \$dlpath'
10858     shlibpath_overrides_runpath=yes
10859
10860     case $host_os in
10861     cygwin*)
10862       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10863       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10864       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10865       ;;
10866     mingw*)
10867       # MinGW DLLs use traditional 'lib' prefix
10868       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10869       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10870       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10871         # It is most probably a Windows format PATH printed by
10872         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10873         # path with ; separators, and with drive letters. We can handle the
10874         # drive letters (cygwin fileutils understands them), so leave them,
10875         # especially as we might pass files found there to a mingw objdump,
10876         # which wouldn't understand a cygwinified path. Ahh.
10877         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10878       else
10879         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10880       fi
10881       ;;
10882     pw32*)
10883       # pw32 DLLs use 'pw' prefix rather than 'lib'
10884       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10885       ;;
10886     esac
10887     ;;
10888
10889   *)
10890     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10891     ;;
10892   esac
10893   dynamic_linker='Win32 ld.exe'
10894   # FIXME: first we should search . and the directory the executable is in
10895   shlibpath_var=PATH
10896   ;;
10897
10898 darwin* | rhapsody*)
10899   dynamic_linker="$host_os dyld"
10900   version_type=darwin
10901   need_lib_prefix=no
10902   need_version=no
10903   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10904   soname_spec='${libname}${release}${major}$shared_ext'
10905   shlibpath_overrides_runpath=yes
10906   shlibpath_var=DYLD_LIBRARY_PATH
10907   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10908   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10909   if test "$GCC" = yes; then
10910     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"`
10911   else
10912     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10913   fi
10914   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10915   ;;
10916
10917 dgux*)
10918   version_type=linux
10919   need_lib_prefix=no
10920   need_version=no
10921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10922   soname_spec='${libname}${release}${shared_ext}$major'
10923   shlibpath_var=LD_LIBRARY_PATH
10924   ;;
10925
10926 freebsd1*)
10927   dynamic_linker=no
10928   ;;
10929
10930 kfreebsd*-gnu)
10931   version_type=linux
10932   need_lib_prefix=no
10933   need_version=no
10934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10935   soname_spec='${libname}${release}${shared_ext}$major'
10936   shlibpath_var=LD_LIBRARY_PATH
10937   shlibpath_overrides_runpath=no
10938   hardcode_into_libs=yes
10939   dynamic_linker='GNU ld.so'
10940   ;;
10941
10942 freebsd*)
10943   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10944   version_type=freebsd-$objformat
10945   case $version_type in
10946     freebsd-elf*)
10947       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10948       need_version=no
10949       need_lib_prefix=no
10950       ;;
10951     freebsd-*)
10952       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10953       need_version=yes
10954       ;;
10955   esac
10956   shlibpath_var=LD_LIBRARY_PATH
10957   case $host_os in
10958   freebsd2*)
10959     shlibpath_overrides_runpath=yes
10960     ;;
10961   freebsd3.01* | freebsdelf3.01*)
10962     shlibpath_overrides_runpath=yes
10963     hardcode_into_libs=yes
10964     ;;
10965   *) # from 3.2 on
10966     shlibpath_overrides_runpath=no
10967     hardcode_into_libs=yes
10968     ;;
10969   esac
10970   ;;
10971
10972 gnu*)
10973   version_type=linux
10974   need_lib_prefix=no
10975   need_version=no
10976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10977   soname_spec='${libname}${release}${shared_ext}$major'
10978   shlibpath_var=LD_LIBRARY_PATH
10979   hardcode_into_libs=yes
10980   ;;
10981
10982 hpux9* | hpux10* | hpux11*)
10983   # Give a soname corresponding to the major version so that dld.sl refuses to
10984   # link against other versions.
10985   version_type=sunos
10986   need_lib_prefix=no
10987   need_version=no
10988   case "$host_cpu" in
10989   ia64*)
10990     shrext='.so'
10991     hardcode_into_libs=yes
10992     dynamic_linker="$host_os dld.so"
10993     shlibpath_var=LD_LIBRARY_PATH
10994     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996     soname_spec='${libname}${release}${shared_ext}$major'
10997     if test "X$HPUX_IA64_MODE" = X32; then
10998       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10999     else
11000       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11001     fi
11002     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11003     ;;
11004    hppa*64*)
11005      shrext='.sl'
11006      hardcode_into_libs=yes
11007      dynamic_linker="$host_os dld.sl"
11008      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11009      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11010      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011      soname_spec='${libname}${release}${shared_ext}$major'
11012      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11013      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11014      ;;
11015    *)
11016     shrext='.sl'
11017     dynamic_linker="$host_os dld.sl"
11018     shlibpath_var=SHLIB_PATH
11019     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021     soname_spec='${libname}${release}${shared_ext}$major'
11022     ;;
11023   esac
11024   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11025   postinstall_cmds='chmod 555 $lib'
11026   ;;
11027
11028 irix5* | irix6* | nonstopux*)
11029   case $host_os in
11030     nonstopux*) version_type=nonstopux ;;
11031     *)
11032         if test "$lt_cv_prog_gnu_ld" = yes; then
11033                 version_type=linux
11034         else
11035                 version_type=irix
11036         fi ;;
11037   esac
11038   need_lib_prefix=no
11039   need_version=no
11040   soname_spec='${libname}${release}${shared_ext}$major'
11041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11042   case $host_os in
11043   irix5* | nonstopux*)
11044     libsuff= shlibsuff=
11045     ;;
11046   *)
11047     case $LD in # libtool.m4 will add one of these switches to LD
11048     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11049       libsuff= shlibsuff= libmagic=32-bit;;
11050     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11051       libsuff=32 shlibsuff=N32 libmagic=N32;;
11052     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11053       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11054     *) libsuff= shlibsuff= libmagic=never-match;;
11055     esac
11056     ;;
11057   esac
11058   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11059   shlibpath_overrides_runpath=no
11060   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11061   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11062   hardcode_into_libs=yes
11063   ;;
11064
11065 # No shared lib support for Linux oldld, aout, or coff.
11066 linux*oldld* | linux*aout* | linux*coff*)
11067   dynamic_linker=no
11068   ;;
11069
11070 # This must be Linux ELF.
11071 linux*)
11072   version_type=linux
11073   need_lib_prefix=no
11074   need_version=no
11075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076   soname_spec='${libname}${release}${shared_ext}$major'
11077   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11078   shlibpath_var=LD_LIBRARY_PATH
11079   shlibpath_overrides_runpath=no
11080   # This implies no fast_install, which is unacceptable.
11081   # Some rework will be needed to allow for fast_install
11082   # before this can be enabled.
11083   hardcode_into_libs=yes
11084
11085   # We used to test for /lib/ld.so.1 and disable shared libraries on
11086   # powerpc, because MkLinux only supported shared libraries with the
11087   # GNU dynamic linker.  Since this was broken with cross compilers,
11088   # most powerpc-linux boxes support dynamic linking these days and
11089   # people can always --disable-shared, the test was removed, and we
11090   # assume the GNU/Linux dynamic linker is in use.
11091   dynamic_linker='GNU/Linux ld.so'
11092   ;;
11093
11094 netbsd*)
11095   version_type=sunos
11096   need_lib_prefix=no
11097   need_version=no
11098   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11101     dynamic_linker='NetBSD (a.out) ld.so'
11102   else
11103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11104     soname_spec='${libname}${release}${shared_ext}$major'
11105     dynamic_linker='NetBSD ld.elf_so'
11106   fi
11107   shlibpath_var=LD_LIBRARY_PATH
11108   shlibpath_overrides_runpath=yes
11109   hardcode_into_libs=yes
11110   ;;
11111
11112 newsos6)
11113   version_type=linux
11114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115   shlibpath_var=LD_LIBRARY_PATH
11116   shlibpath_overrides_runpath=yes
11117   ;;
11118
11119 nto-qnx*)
11120   version_type=linux
11121   need_lib_prefix=no
11122   need_version=no
11123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124   soname_spec='${libname}${release}${shared_ext}$major'
11125   shlibpath_var=LD_LIBRARY_PATH
11126   shlibpath_overrides_runpath=yes
11127   ;;
11128
11129 openbsd*)
11130   version_type=sunos
11131   need_lib_prefix=no
11132   need_version=no
11133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11134   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11135   shlibpath_var=LD_LIBRARY_PATH
11136   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11137     case $host_os in
11138       openbsd2.[89] | openbsd2.[89].*)
11139         shlibpath_overrides_runpath=no
11140         ;;
11141       *)
11142         shlibpath_overrides_runpath=yes
11143         ;;
11144       esac
11145   else
11146     shlibpath_overrides_runpath=yes
11147   fi
11148   ;;
11149
11150 os2*)
11151   libname_spec='$name'
11152   shrext=".dll"
11153   need_lib_prefix=no
11154   library_names_spec='$libname${shared_ext} $libname.a'
11155   dynamic_linker='OS/2 ld.exe'
11156   shlibpath_var=LIBPATH
11157   ;;
11158
11159 osf3* | osf4* | osf5*)
11160   version_type=osf
11161   need_lib_prefix=no
11162   need_version=no
11163   soname_spec='${libname}${release}${shared_ext}$major'
11164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11167   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11168   ;;
11169
11170 sco3.2v5*)
11171   version_type=osf
11172   soname_spec='${libname}${release}${shared_ext}$major'
11173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174   shlibpath_var=LD_LIBRARY_PATH
11175   ;;
11176
11177 solaris*)
11178   version_type=linux
11179   need_lib_prefix=no
11180   need_version=no
11181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182   soname_spec='${libname}${release}${shared_ext}$major'
11183   shlibpath_var=LD_LIBRARY_PATH
11184   shlibpath_overrides_runpath=yes
11185   hardcode_into_libs=yes
11186   # ldd complains unless libraries are executable
11187   postinstall_cmds='chmod +x $lib'
11188   ;;
11189
11190 sunos4*)
11191   version_type=sunos
11192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11193   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11194   shlibpath_var=LD_LIBRARY_PATH
11195   shlibpath_overrides_runpath=yes
11196   if test "$with_gnu_ld" = yes; then
11197     need_lib_prefix=no
11198   fi
11199   need_version=yes
11200   ;;
11201
11202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11203   version_type=linux
11204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205   soname_spec='${libname}${release}${shared_ext}$major'
11206   shlibpath_var=LD_LIBRARY_PATH
11207   case $host_vendor in
11208     sni)
11209       shlibpath_overrides_runpath=no
11210       need_lib_prefix=no
11211       export_dynamic_flag_spec='${wl}-Blargedynsym'
11212       runpath_var=LD_RUN_PATH
11213       ;;
11214     siemens)
11215       need_lib_prefix=no
11216       ;;
11217     motorola)
11218       need_lib_prefix=no
11219       need_version=no
11220       shlibpath_overrides_runpath=no
11221       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11222       ;;
11223   esac
11224   ;;
11225
11226 sysv4*MP*)
11227   if test -d /usr/nec ;then
11228     version_type=linux
11229     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11230     soname_spec='$libname${shared_ext}.$major'
11231     shlibpath_var=LD_LIBRARY_PATH
11232   fi
11233   ;;
11234
11235 uts4*)
11236   version_type=linux
11237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238   soname_spec='${libname}${release}${shared_ext}$major'
11239   shlibpath_var=LD_LIBRARY_PATH
11240   ;;
11241
11242 *)
11243   dynamic_linker=no
11244   ;;
11245 esac
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11247 $as_echo "$dynamic_linker" >&6; }
11248 test "$dynamic_linker" = no && can_build_shared=no
11249
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11251 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11252 hardcode_action_CXX=
11253 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11254    test -n "$runpath_var CXX" || \
11255    test "X$hardcode_automatic_CXX"="Xyes" ; then
11256
11257   # We can hardcode non-existant directories.
11258   if test "$hardcode_direct_CXX" != no &&
11259      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11260      # have to relink, otherwise we might link with an installed library
11261      # when we should be linking with a yet-to-be-installed one
11262      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11263      test "$hardcode_minus_L_CXX" != no; then
11264     # Linking always hardcodes the temporary library directory.
11265     hardcode_action_CXX=relink
11266   else
11267     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11268     hardcode_action_CXX=immediate
11269   fi
11270 else
11271   # We cannot hardcode anything, or else we can only hardcode existing
11272   # directories.
11273   hardcode_action_CXX=unsupported
11274 fi
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
11276 $as_echo "$hardcode_action_CXX" >&6; }
11277
11278 if test "$hardcode_action_CXX" = relink; then
11279   # Fast installation is not supported
11280   enable_fast_install=no
11281 elif test "$shlibpath_overrides_runpath" = yes ||
11282      test "$enable_shared" = no; then
11283   # Fast installation is not necessary
11284   enable_fast_install=needless
11285 fi
11286
11287 striplib=
11288 old_striplib=
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11290 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11291 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11292   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11293   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11295 $as_echo "yes" >&6; }
11296 else
11297 # FIXME - insert some real tests, host_os isn't really good enough
11298   case $host_os in
11299    darwin*)
11300        if test -n "$STRIP" ; then
11301          striplib="$STRIP -x"
11302          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11303 $as_echo "yes" >&6; }
11304        else
11305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306 $as_echo "no" >&6; }
11307 fi
11308        ;;
11309    *)
11310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11312     ;;
11313   esac
11314 fi
11315
11316 if test "x$enable_dlopen" != xyes; then
11317   enable_dlopen=unknown
11318   enable_dlopen_self=unknown
11319   enable_dlopen_self_static=unknown
11320 else
11321   lt_cv_dlopen=no
11322   lt_cv_dlopen_libs=
11323
11324   case $host_os in
11325   beos*)
11326     lt_cv_dlopen="load_add_on"
11327     lt_cv_dlopen_libs=
11328     lt_cv_dlopen_self=yes
11329     ;;
11330
11331   mingw* | pw32*)
11332     lt_cv_dlopen="LoadLibrary"
11333     lt_cv_dlopen_libs=
11334    ;;
11335
11336   cygwin*)
11337     lt_cv_dlopen="dlopen"
11338     lt_cv_dlopen_libs=
11339    ;;
11340
11341   darwin*)
11342   # if libdl is installed we need to link against it
11343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11344 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11345 if ${ac_cv_lib_dl_dlopen+:} false; then :
11346   $as_echo_n "(cached) " >&6
11347 else
11348   ac_check_lib_save_LIBS=$LIBS
11349 LIBS="-ldl  $LIBS"
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h.  */
11352
11353 /* Override any GCC internal prototype to avoid an error.
11354    Use char because int might match the return type of a GCC
11355    builtin and then its argument prototype would still apply.  */
11356 #ifdef __cplusplus
11357 extern "C"
11358 #endif
11359 char dlopen ();
11360 int
11361 main ()
11362 {
11363 return dlopen ();
11364   ;
11365   return 0;
11366 }
11367 _ACEOF
11368 if ac_fn_cxx_try_link "$LINENO"; then :
11369   ac_cv_lib_dl_dlopen=yes
11370 else
11371   ac_cv_lib_dl_dlopen=no
11372 fi
11373 rm -f core conftest.err conftest.$ac_objext \
11374     conftest$ac_exeext conftest.$ac_ext
11375 LIBS=$ac_check_lib_save_LIBS
11376 fi
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11378 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11379 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11380   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11381 else
11382
11383     lt_cv_dlopen="dyld"
11384     lt_cv_dlopen_libs=
11385     lt_cv_dlopen_self=yes
11386
11387 fi
11388
11389    ;;
11390
11391   *)
11392     ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11393 if test "x$ac_cv_func_shl_load" = xyes; then :
11394   lt_cv_dlopen="shl_load"
11395 else
11396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11397 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11398 if ${ac_cv_lib_dld_shl_load+:} false; then :
11399   $as_echo_n "(cached) " >&6
11400 else
11401   ac_check_lib_save_LIBS=$LIBS
11402 LIBS="-ldld  $LIBS"
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h.  */
11405
11406 /* Override any GCC internal prototype to avoid an error.
11407    Use char because int might match the return type of a GCC
11408    builtin and then its argument prototype would still apply.  */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char shl_load ();
11413 int
11414 main ()
11415 {
11416 return shl_load ();
11417   ;
11418   return 0;
11419 }
11420 _ACEOF
11421 if ac_fn_cxx_try_link "$LINENO"; then :
11422   ac_cv_lib_dld_shl_load=yes
11423 else
11424   ac_cv_lib_dld_shl_load=no
11425 fi
11426 rm -f core conftest.err conftest.$ac_objext \
11427     conftest$ac_exeext conftest.$ac_ext
11428 LIBS=$ac_check_lib_save_LIBS
11429 fi
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11431 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11432 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11433   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11434 else
11435   ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11436 if test "x$ac_cv_func_dlopen" = xyes; then :
11437   lt_cv_dlopen="dlopen"
11438 else
11439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11440 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11441 if ${ac_cv_lib_dl_dlopen+:} false; then :
11442   $as_echo_n "(cached) " >&6
11443 else
11444   ac_check_lib_save_LIBS=$LIBS
11445 LIBS="-ldl  $LIBS"
11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h.  */
11448
11449 /* Override any GCC internal prototype to avoid an error.
11450    Use char because int might match the return type of a GCC
11451    builtin and then its argument prototype would still apply.  */
11452 #ifdef __cplusplus
11453 extern "C"
11454 #endif
11455 char dlopen ();
11456 int
11457 main ()
11458 {
11459 return dlopen ();
11460   ;
11461   return 0;
11462 }
11463 _ACEOF
11464 if ac_fn_cxx_try_link "$LINENO"; then :
11465   ac_cv_lib_dl_dlopen=yes
11466 else
11467   ac_cv_lib_dl_dlopen=no
11468 fi
11469 rm -f core conftest.err conftest.$ac_objext \
11470     conftest$ac_exeext conftest.$ac_ext
11471 LIBS=$ac_check_lib_save_LIBS
11472 fi
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11474 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11475 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11476   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11477 else
11478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11479 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11480 if ${ac_cv_lib_svld_dlopen+:} false; then :
11481   $as_echo_n "(cached) " >&6
11482 else
11483   ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-lsvld  $LIBS"
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h.  */
11487
11488 /* Override any GCC internal prototype to avoid an error.
11489    Use char because int might match the return type of a GCC
11490    builtin and then its argument prototype would still apply.  */
11491 #ifdef __cplusplus
11492 extern "C"
11493 #endif
11494 char dlopen ();
11495 int
11496 main ()
11497 {
11498 return dlopen ();
11499   ;
11500   return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_cxx_try_link "$LINENO"; then :
11504   ac_cv_lib_svld_dlopen=yes
11505 else
11506   ac_cv_lib_svld_dlopen=no
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext \
11509     conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11511 fi
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11513 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11514 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11515   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11516 else
11517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11518 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11519 if ${ac_cv_lib_dld_dld_link+:} false; then :
11520   $as_echo_n "(cached) " >&6
11521 else
11522   ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-ldld  $LIBS"
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h.  */
11526
11527 /* Override any GCC internal prototype to avoid an error.
11528    Use char because int might match the return type of a GCC
11529    builtin and then its argument prototype would still apply.  */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char dld_link ();
11534 int
11535 main ()
11536 {
11537 return dld_link ();
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 if ac_fn_cxx_try_link "$LINENO"; then :
11543   ac_cv_lib_dld_dld_link=yes
11544 else
11545   ac_cv_lib_dld_dld_link=no
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext \
11548     conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11550 fi
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11552 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11553 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11554   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11555 fi
11556
11557
11558 fi
11559
11560
11561 fi
11562
11563
11564 fi
11565
11566
11567 fi
11568
11569
11570 fi
11571
11572     ;;
11573   esac
11574
11575   if test "x$lt_cv_dlopen" != xno; then
11576     enable_dlopen=yes
11577   else
11578     enable_dlopen=no
11579   fi
11580
11581   case $lt_cv_dlopen in
11582   dlopen)
11583     save_CPPFLAGS="$CPPFLAGS"
11584     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11585
11586     save_LDFLAGS="$LDFLAGS"
11587     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11588
11589     save_LIBS="$LIBS"
11590     LIBS="$lt_cv_dlopen_libs $LIBS"
11591
11592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11593 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11594 if ${lt_cv_dlopen_self+:} false; then :
11595   $as_echo_n "(cached) " >&6
11596 else
11597           if test "$cross_compiling" = yes; then :
11598   lt_cv_dlopen_self=cross
11599 else
11600   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11601   lt_status=$lt_dlunknown
11602   cat > conftest.$ac_ext <<EOF
11603 #line 11603 "configure"
11604 #include "confdefs.h"
11605
11606 #if HAVE_DLFCN_H
11607 #include <dlfcn.h>
11608 #endif
11609
11610 #include <stdio.h>
11611
11612 #ifdef RTLD_GLOBAL
11613 #  define LT_DLGLOBAL           RTLD_GLOBAL
11614 #else
11615 #  ifdef DL_GLOBAL
11616 #    define LT_DLGLOBAL         DL_GLOBAL
11617 #  else
11618 #    define LT_DLGLOBAL         0
11619 #  endif
11620 #endif
11621
11622 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11623    find out it does not work in some platform. */
11624 #ifndef LT_DLLAZY_OR_NOW
11625 #  ifdef RTLD_LAZY
11626 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11627 #  else
11628 #    ifdef DL_LAZY
11629 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11630 #    else
11631 #      ifdef RTLD_NOW
11632 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11633 #      else
11634 #        ifdef DL_NOW
11635 #          define LT_DLLAZY_OR_NOW      DL_NOW
11636 #        else
11637 #          define LT_DLLAZY_OR_NOW      0
11638 #        endif
11639 #      endif
11640 #    endif
11641 #  endif
11642 #endif
11643
11644 #ifdef __cplusplus
11645 extern "C" void exit (int);
11646 #endif
11647
11648 void fnord() { int i=42;}
11649 int main ()
11650 {
11651   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11652   int status = $lt_dlunknown;
11653
11654   if (self)
11655     {
11656       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11657       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11658       /* dlclose (self); */
11659     }
11660
11661     exit (status);
11662 }
11663 EOF
11664   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11665   (eval $ac_link) 2>&5
11666   ac_status=$?
11667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11668   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11669     (./conftest; exit; ) 2>/dev/null
11670     lt_status=$?
11671     case x$lt_status in
11672       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11673       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11674       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11675     esac
11676   else :
11677     # compilation failed
11678     lt_cv_dlopen_self=no
11679   fi
11680 fi
11681 rm -fr conftest*
11682
11683
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11686 $as_echo "$lt_cv_dlopen_self" >&6; }
11687
11688     if test "x$lt_cv_dlopen_self" = xyes; then
11689       LDFLAGS="$LDFLAGS $link_static_flag"
11690       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11691 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11692 if ${lt_cv_dlopen_self_static+:} false; then :
11693   $as_echo_n "(cached) " >&6
11694 else
11695           if test "$cross_compiling" = yes; then :
11696   lt_cv_dlopen_self_static=cross
11697 else
11698   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11699   lt_status=$lt_dlunknown
11700   cat > conftest.$ac_ext <<EOF
11701 #line 11701 "configure"
11702 #include "confdefs.h"
11703
11704 #if HAVE_DLFCN_H
11705 #include <dlfcn.h>
11706 #endif
11707
11708 #include <stdio.h>
11709
11710 #ifdef RTLD_GLOBAL
11711 #  define LT_DLGLOBAL           RTLD_GLOBAL
11712 #else
11713 #  ifdef DL_GLOBAL
11714 #    define LT_DLGLOBAL         DL_GLOBAL
11715 #  else
11716 #    define LT_DLGLOBAL         0
11717 #  endif
11718 #endif
11719
11720 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11721    find out it does not work in some platform. */
11722 #ifndef LT_DLLAZY_OR_NOW
11723 #  ifdef RTLD_LAZY
11724 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11725 #  else
11726 #    ifdef DL_LAZY
11727 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11728 #    else
11729 #      ifdef RTLD_NOW
11730 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11731 #      else
11732 #        ifdef DL_NOW
11733 #          define LT_DLLAZY_OR_NOW      DL_NOW
11734 #        else
11735 #          define LT_DLLAZY_OR_NOW      0
11736 #        endif
11737 #      endif
11738 #    endif
11739 #  endif
11740 #endif
11741
11742 #ifdef __cplusplus
11743 extern "C" void exit (int);
11744 #endif
11745
11746 void fnord() { int i=42;}
11747 int main ()
11748 {
11749   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11750   int status = $lt_dlunknown;
11751
11752   if (self)
11753     {
11754       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11755       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11756       /* dlclose (self); */
11757     }
11758
11759     exit (status);
11760 }
11761 EOF
11762   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11763   (eval $ac_link) 2>&5
11764   ac_status=$?
11765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11766   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11767     (./conftest; exit; ) 2>/dev/null
11768     lt_status=$?
11769     case x$lt_status in
11770       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11771       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11772       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11773     esac
11774   else :
11775     # compilation failed
11776     lt_cv_dlopen_self_static=no
11777   fi
11778 fi
11779 rm -fr conftest*
11780
11781
11782 fi
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11784 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11785     fi
11786
11787     CPPFLAGS="$save_CPPFLAGS"
11788     LDFLAGS="$save_LDFLAGS"
11789     LIBS="$save_LIBS"
11790     ;;
11791   esac
11792
11793   case $lt_cv_dlopen_self in
11794   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11795   *) enable_dlopen_self=unknown ;;
11796   esac
11797
11798   case $lt_cv_dlopen_self_static in
11799   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11800   *) enable_dlopen_self_static=unknown ;;
11801   esac
11802 fi
11803
11804
11805 # The else clause should only fire when bootstrapping the
11806 # libtool distribution, otherwise you forgot to ship ltmain.sh
11807 # with your package, and you will get complaints that there are
11808 # no rules to generate ltmain.sh.
11809 if test -f "$ltmain"; then
11810   # See if we are running on zsh, and set the options which allow our commands through
11811   # without removal of \ escapes.
11812   if test -n "${ZSH_VERSION+set}" ; then
11813     setopt NO_GLOB_SUBST
11814   fi
11815   # Now quote all the things that may contain metacharacters while being
11816   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11817   # variables and quote the copies for generation of the libtool script.
11818   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11819     SED SHELL STRIP \
11820     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11821     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11822     deplibs_check_method reload_flag reload_cmds need_locks \
11823     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11824     lt_cv_sys_global_symbol_to_c_name_address \
11825     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11826     old_postinstall_cmds old_postuninstall_cmds \
11827     compiler_CXX \
11828     CC_CXX \
11829     LD_CXX \
11830     lt_prog_compiler_wl_CXX \
11831     lt_prog_compiler_pic_CXX \
11832     lt_prog_compiler_static_CXX \
11833     lt_prog_compiler_no_builtin_flag_CXX \
11834     export_dynamic_flag_spec_CXX \
11835     thread_safe_flag_spec_CXX \
11836     whole_archive_flag_spec_CXX \
11837     enable_shared_with_static_runtimes_CXX \
11838     old_archive_cmds_CXX \
11839     old_archive_from_new_cmds_CXX \
11840     predep_objects_CXX \
11841     postdep_objects_CXX \
11842     predeps_CXX \
11843     postdeps_CXX \
11844     compiler_lib_search_path_CXX \
11845     archive_cmds_CXX \
11846     archive_expsym_cmds_CXX \
11847     postinstall_cmds_CXX \
11848     postuninstall_cmds_CXX \
11849     old_archive_from_expsyms_cmds_CXX \
11850     allow_undefined_flag_CXX \
11851     no_undefined_flag_CXX \
11852     export_symbols_cmds_CXX \
11853     hardcode_libdir_flag_spec_CXX \
11854     hardcode_libdir_flag_spec_ld_CXX \
11855     hardcode_libdir_separator_CXX \
11856     hardcode_automatic_CXX \
11857     module_cmds_CXX \
11858     module_expsym_cmds_CXX \
11859     lt_cv_prog_compiler_c_o_CXX \
11860     exclude_expsyms_CXX \
11861     include_expsyms_CXX; do
11862
11863     case $var in
11864     old_archive_cmds_CXX | \
11865     old_archive_from_new_cmds_CXX | \
11866     archive_cmds_CXX | \
11867     archive_expsym_cmds_CXX | \
11868     module_cmds_CXX | \
11869     module_expsym_cmds_CXX | \
11870     old_archive_from_expsyms_cmds_CXX | \
11871     export_symbols_cmds_CXX | \
11872     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11873     postinstall_cmds | postuninstall_cmds | \
11874     old_postinstall_cmds | old_postuninstall_cmds | \
11875     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11876       # Double-quote double-evaled strings.
11877       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11878       ;;
11879     *)
11880       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11881       ;;
11882     esac
11883   done
11884
11885   case $lt_echo in
11886   *'\$0 --fallback-echo"')
11887     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11888     ;;
11889   esac
11890
11891 cfgfile="$ofile"
11892
11893   cat <<__EOF__ >> "$cfgfile"
11894 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11895
11896 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11897
11898 # Shell to use when invoking shell scripts.
11899 SHELL=$lt_SHELL
11900
11901 # Whether or not to build shared libraries.
11902 build_libtool_libs=$enable_shared
11903
11904 # Whether or not to build static libraries.
11905 build_old_libs=$enable_static
11906
11907 # Whether or not to add -lc for building shared libraries.
11908 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11909
11910 # Whether or not to disallow shared libs when runtime libs are static
11911 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11912
11913 # Whether or not to optimize for fast installation.
11914 fast_install=$enable_fast_install
11915
11916 # The host system.
11917 host_alias=$host_alias
11918 host=$host
11919
11920 # An echo program that does not interpret backslashes.
11921 echo=$lt_echo
11922
11923 # The archiver.
11924 AR=$lt_AR
11925 AR_FLAGS=$lt_AR_FLAGS
11926
11927 # A C compiler.
11928 LTCC=$lt_LTCC
11929
11930 # A language-specific compiler.
11931 CC=$lt_compiler_CXX
11932
11933 # Is the compiler the GNU C compiler?
11934 with_gcc=$GCC_CXX
11935
11936 # An ERE matcher.
11937 EGREP=$lt_EGREP
11938
11939 # The linker used to build libraries.
11940 LD=$lt_LD_CXX
11941
11942 # Whether we need hard or soft links.
11943 LN_S=$lt_LN_S
11944
11945 # A BSD-compatible nm program.
11946 NM=$lt_NM
11947
11948 # A symbol stripping program
11949 STRIP=$lt_STRIP
11950
11951 # Used to examine libraries when file_magic_cmd begins "file"
11952 MAGIC_CMD=$MAGIC_CMD
11953
11954 # Used on cygwin: DLL creation program.
11955 DLLTOOL="$DLLTOOL"
11956
11957 # Used on cygwin: object dumper.
11958 OBJDUMP="$OBJDUMP"
11959
11960 # Used on cygwin: assembler.
11961 AS="$AS"
11962
11963 # The name of the directory that contains temporary libtool files.
11964 objdir=$objdir
11965
11966 # How to create reloadable object files.
11967 reload_flag=$lt_reload_flag
11968 reload_cmds=$lt_reload_cmds
11969
11970 # How to pass a linker flag through the compiler.
11971 wl=$lt_lt_prog_compiler_wl_CXX
11972
11973 # Object file suffix (normally "o").
11974 objext="$ac_objext"
11975
11976 # Old archive suffix (normally "a").
11977 libext="$libext"
11978
11979 # Shared library suffix (normally ".so").
11980 shrext='$shrext'
11981
11982 # Executable file suffix (normally "").
11983 exeext="$exeext"
11984
11985 # Additional compiler flags for building library objects.
11986 pic_flag=$lt_lt_prog_compiler_pic_CXX
11987 pic_mode=$pic_mode
11988
11989 # What is the maximum length of a command?
11990 max_cmd_len=$lt_cv_sys_max_cmd_len
11991
11992 # Does compiler simultaneously support -c and -o options?
11993 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11994
11995 # Must we lock files when doing compilation ?
11996 need_locks=$lt_need_locks
11997
11998 # Do we need the lib prefix for modules?
11999 need_lib_prefix=$need_lib_prefix
12000
12001 # Do we need a version for libraries?
12002 need_version=$need_version
12003
12004 # Whether dlopen is supported.
12005 dlopen_support=$enable_dlopen
12006
12007 # Whether dlopen of programs is supported.
12008 dlopen_self=$enable_dlopen_self
12009
12010 # Whether dlopen of statically linked programs is supported.
12011 dlopen_self_static=$enable_dlopen_self_static
12012
12013 # Compiler flag to prevent dynamic linking.
12014 link_static_flag=$lt_lt_prog_compiler_static_CXX
12015
12016 # Compiler flag to turn off builtin functions.
12017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12018
12019 # Compiler flag to allow reflexive dlopens.
12020 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12021
12022 # Compiler flag to generate shared objects directly from archives.
12023 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12024
12025 # Compiler flag to generate thread-safe objects.
12026 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12027
12028 # Library versioning type.
12029 version_type=$version_type
12030
12031 # Format of library name prefix.
12032 libname_spec=$lt_libname_spec
12033
12034 # List of archive names.  First name is the real one, the rest are links.
12035 # The last name is the one that the linker finds with -lNAME.
12036 library_names_spec=$lt_library_names_spec
12037
12038 # The coded name of the library, if different from the real name.
12039 soname_spec=$lt_soname_spec
12040
12041 # Commands used to build and install an old-style archive.
12042 RANLIB=$lt_RANLIB
12043 old_archive_cmds=$lt_old_archive_cmds_CXX
12044 old_postinstall_cmds=$lt_old_postinstall_cmds
12045 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12046
12047 # Create an old-style archive from a shared archive.
12048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12049
12050 # Create a temporary old-style archive to link instead of a shared archive.
12051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12052
12053 # Commands used to build and install a shared archive.
12054 archive_cmds=$lt_archive_cmds_CXX
12055 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12056 postinstall_cmds=$lt_postinstall_cmds
12057 postuninstall_cmds=$lt_postuninstall_cmds
12058
12059 # Commands used to build a loadable module (assumed same as above if empty)
12060 module_cmds=$lt_module_cmds_CXX
12061 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12062
12063 # Commands to strip libraries.
12064 old_striplib=$lt_old_striplib
12065 striplib=$lt_striplib
12066
12067 # Dependencies to place before the objects being linked to create a
12068 # shared library.
12069 predep_objects=$lt_predep_objects_CXX
12070
12071 # Dependencies to place after the objects being linked to create a
12072 # shared library.
12073 postdep_objects=$lt_postdep_objects_CXX
12074
12075 # Dependencies to place before the objects being linked to create a
12076 # shared library.
12077 predeps=$lt_predeps_CXX
12078
12079 # Dependencies to place after the objects being linked to create a
12080 # shared library.
12081 postdeps=$lt_postdeps_CXX
12082
12083 # The library search path used internally by the compiler when linking
12084 # a shared library.
12085 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12086
12087 # Method to check whether dependent libraries are shared objects.
12088 deplibs_check_method=$lt_deplibs_check_method
12089
12090 # Command to use when deplibs_check_method == file_magic.
12091 file_magic_cmd=$lt_file_magic_cmd
12092
12093 # Flag that allows shared libraries with undefined symbols to be built.
12094 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12095
12096 # Flag that forces no undefined symbols.
12097 no_undefined_flag=$lt_no_undefined_flag_CXX
12098
12099 # Commands used to finish a libtool library installation in a directory.
12100 finish_cmds=$lt_finish_cmds
12101
12102 # Same as above, but a single script fragment to be evaled but not shown.
12103 finish_eval=$lt_finish_eval
12104
12105 # Take the output of nm and produce a listing of raw symbols and C names.
12106 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12107
12108 # Transform the output of nm in a proper C declaration
12109 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12110
12111 # Transform the output of nm in a C name address pair
12112 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12113
12114 # This is the shared library runtime path variable.
12115 runpath_var=$runpath_var
12116
12117 # This is the shared library path variable.
12118 shlibpath_var=$shlibpath_var
12119
12120 # Is shlibpath searched before the hard-coded library search path?
12121 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12122
12123 # How to hardcode a shared library path into an executable.
12124 hardcode_action=$hardcode_action_CXX
12125
12126 # Whether we should hardcode library paths into libraries.
12127 hardcode_into_libs=$hardcode_into_libs
12128
12129 # Flag to hardcode \$libdir into a binary during linking.
12130 # This must work even if \$libdir does not exist.
12131 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12132
12133 # If ld is used when linking, flag to hardcode \$libdir into
12134 # a binary during linking. This must work even if \$libdir does
12135 # not exist.
12136 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12137
12138 # Whether we need a single -rpath flag with a separated argument.
12139 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12140
12141 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12142 # resulting binary.
12143 hardcode_direct=$hardcode_direct_CXX
12144
12145 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12146 # resulting binary.
12147 hardcode_minus_L=$hardcode_minus_L_CXX
12148
12149 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12150 # the resulting binary.
12151 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12152
12153 # Set to yes if building a shared library automatically hardcodes DIR into the library
12154 # and all subsequent libraries and executables linked against it.
12155 hardcode_automatic=$hardcode_automatic_CXX
12156
12157 # Variables whose values should be saved in libtool wrapper scripts and
12158 # restored at relink time.
12159 variables_saved_for_relink="$variables_saved_for_relink"
12160
12161 # Whether libtool must link a program against all its dependency libraries.
12162 link_all_deplibs=$link_all_deplibs_CXX
12163
12164 # Compile-time system search path for libraries
12165 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12166
12167 # Run-time system search path for libraries
12168 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12169
12170 # Fix the shell variable \$srcfile for the compiler.
12171 fix_srcfile_path="$fix_srcfile_path_CXX"
12172
12173 # Set to yes if exported symbols are required.
12174 always_export_symbols=$always_export_symbols_CXX
12175
12176 # The commands to list exported symbols.
12177 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12178
12179 # The commands to extract the exported symbol list from a shared archive.
12180 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12181
12182 # Symbols that should not be listed in the preloaded symbols.
12183 exclude_expsyms=$lt_exclude_expsyms_CXX
12184
12185 # Symbols that must always be exported.
12186 include_expsyms=$lt_include_expsyms_CXX
12187
12188 # ### END LIBTOOL TAG CONFIG: $tagname
12189
12190 __EOF__
12191
12192
12193 else
12194   # If there is no Makefile yet, we rely on a make rule to execute
12195   # `config.status --recheck' to rerun these tests and create the
12196   # libtool script then.
12197   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12198   if test -f "$ltmain_in"; then
12199     test -f Makefile && make "$ltmain"
12200   fi
12201 fi
12202
12203
12204 ac_ext=c
12205 ac_cpp='$CPP $CPPFLAGS'
12206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12209
12210 CC=$lt_save_CC
12211 LDCXX=$LD
12212 LD=$lt_save_LD
12213 GCC=$lt_save_GCC
12214 with_gnu_ldcxx=$with_gnu_ld
12215 with_gnu_ld=$lt_save_with_gnu_ld
12216 lt_cv_path_LDCXX=$lt_cv_path_LD
12217 lt_cv_path_LD=$lt_save_path_LD
12218 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12219 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12220
12221         else
12222           tagname=""
12223         fi
12224         ;;
12225
12226       F77)
12227         if test -n "$F77" && test "X$F77" != "Xno"; then
12228
12229 ac_ext=f
12230 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12231 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12233
12234
12235 archive_cmds_need_lc_F77=no
12236 allow_undefined_flag_F77=
12237 always_export_symbols_F77=no
12238 archive_expsym_cmds_F77=
12239 export_dynamic_flag_spec_F77=
12240 hardcode_direct_F77=no
12241 hardcode_libdir_flag_spec_F77=
12242 hardcode_libdir_flag_spec_ld_F77=
12243 hardcode_libdir_separator_F77=
12244 hardcode_minus_L_F77=no
12245 hardcode_automatic_F77=no
12246 module_cmds_F77=
12247 module_expsym_cmds_F77=
12248 link_all_deplibs_F77=unknown
12249 old_archive_cmds_F77=$old_archive_cmds
12250 no_undefined_flag_F77=
12251 whole_archive_flag_spec_F77=
12252 enable_shared_with_static_runtimes_F77=no
12253
12254 # Source file extension for f77 test sources.
12255 ac_ext=f
12256
12257 # Object file extension for compiled f77 test sources.
12258 objext=o
12259 objext_F77=$objext
12260
12261 # Code to be used in simple compile tests
12262 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12263
12264 # Code to be used in simple link tests
12265 lt_simple_link_test_code="      program t\n      end\n"
12266
12267 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12268
12269 # If no C compiler was specified, use CC.
12270 LTCC=${LTCC-"$CC"}
12271
12272 # Allow CC to be a program name with arguments.
12273 compiler=$CC
12274
12275
12276 # Allow CC to be a program name with arguments.
12277 lt_save_CC="$CC"
12278 CC=${F77-"f77"}
12279 compiler=$CC
12280 compiler_F77=$CC
12281 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12282
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12284 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12286 $as_echo "$can_build_shared" >&6; }
12287
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12289 $as_echo_n "checking whether to build shared libraries... " >&6; }
12290 test "$can_build_shared" = "no" && enable_shared=no
12291
12292 # On AIX, shared libraries and static libraries use the same namespace, and
12293 # are all built from PIC.
12294 case "$host_os" in
12295 aix3*)
12296   test "$enable_shared" = yes && enable_static=no
12297   if test -n "$RANLIB"; then
12298     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12299     postinstall_cmds='$RANLIB $lib'
12300   fi
12301   ;;
12302 aix4*)
12303   test "$enable_shared" = yes && enable_static=no
12304   ;;
12305 esac
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12307 $as_echo "$enable_shared" >&6; }
12308
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12310 $as_echo_n "checking whether to build static libraries... " >&6; }
12311 # Make sure either enable_shared or enable_static is yes.
12312 test "$enable_shared" = yes || enable_static=yes
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12314 $as_echo "$enable_static" >&6; }
12315
12316 test "$ld_shlibs_F77" = no && can_build_shared=no
12317
12318 GCC_F77="$G77"
12319 LD_F77="$LD"
12320
12321 lt_prog_compiler_wl_F77=
12322 lt_prog_compiler_pic_F77=
12323 lt_prog_compiler_static_F77=
12324
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12326 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12327
12328   if test "$GCC" = yes; then
12329     lt_prog_compiler_wl_F77='-Wl,'
12330     lt_prog_compiler_static_F77='-static'
12331
12332     case $host_os in
12333       aix*)
12334       # All AIX code is PIC.
12335       if test "$host_cpu" = ia64; then
12336         # AIX 5 now supports IA64 processor
12337         lt_prog_compiler_static_F77='-Bstatic'
12338       fi
12339       ;;
12340
12341     amigaos*)
12342       # FIXME: we need at least 68020 code to build shared libraries, but
12343       # adding the `-m68020' flag to GCC prevents building anything better,
12344       # like `-m68040'.
12345       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12346       ;;
12347
12348     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12349       # PIC is the default for these OSes.
12350       ;;
12351
12352     mingw* | pw32* | os2*)
12353       # This hack is so that the source file can tell whether it is being
12354       # built for inclusion in a dll (and should export symbols for example).
12355       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12356       ;;
12357
12358     darwin* | rhapsody*)
12359       # PIC is the default on this platform
12360       # Common symbols not allowed in MH_DYLIB files
12361       lt_prog_compiler_pic_F77='-fno-common'
12362       ;;
12363
12364     msdosdjgpp*)
12365       # Just because we use GCC doesn't mean we suddenly get shared libraries
12366       # on systems that don't support them.
12367       lt_prog_compiler_can_build_shared_F77=no
12368       enable_shared=no
12369       ;;
12370
12371     sysv4*MP*)
12372       if test -d /usr/nec; then
12373         lt_prog_compiler_pic_F77=-Kconform_pic
12374       fi
12375       ;;
12376
12377     hpux*)
12378       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12379       # not for PA HP-UX.
12380       case "$host_cpu" in
12381       hppa*64*|ia64*)
12382         # +Z the default
12383         ;;
12384       *)
12385         lt_prog_compiler_pic_F77='-fPIC'
12386         ;;
12387       esac
12388       ;;
12389
12390     *)
12391       lt_prog_compiler_pic_F77='-fPIC'
12392       ;;
12393     esac
12394   else
12395     # PORTME Check for flag to pass linker flags through the system compiler.
12396     case $host_os in
12397     aix*)
12398       lt_prog_compiler_wl_F77='-Wl,'
12399       if test "$host_cpu" = ia64; then
12400         # AIX 5 now supports IA64 processor
12401         lt_prog_compiler_static_F77='-Bstatic'
12402       else
12403         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12404       fi
12405       ;;
12406
12407     mingw* | pw32* | os2*)
12408       # This hack is so that the source file can tell whether it is being
12409       # built for inclusion in a dll (and should export symbols for example).
12410       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12411       ;;
12412
12413     hpux9* | hpux10* | hpux11*)
12414       lt_prog_compiler_wl_F77='-Wl,'
12415       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12416       # not for PA HP-UX.
12417       case "$host_cpu" in
12418       hppa*64*|ia64*)
12419         # +Z the default
12420         ;;
12421       *)
12422         lt_prog_compiler_pic_F77='+Z'
12423         ;;
12424       esac
12425       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12426       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12427       ;;
12428
12429     irix5* | irix6* | nonstopux*)
12430       lt_prog_compiler_wl_F77='-Wl,'
12431       # PIC (with -KPIC) is the default.
12432       lt_prog_compiler_static_F77='-non_shared'
12433       ;;
12434
12435     newsos6)
12436       lt_prog_compiler_pic_F77='-KPIC'
12437       lt_prog_compiler_static_F77='-Bstatic'
12438       ;;
12439
12440     linux*)
12441       case $CC in
12442       icc* | ecc*)
12443         lt_prog_compiler_wl_F77='-Wl,'
12444         lt_prog_compiler_pic_F77='-KPIC'
12445         lt_prog_compiler_static_F77='-static'
12446         ;;
12447       ccc*)
12448         lt_prog_compiler_wl_F77='-Wl,'
12449         # All Alpha code is PIC.
12450         lt_prog_compiler_static_F77='-non_shared'
12451         ;;
12452       esac
12453       ;;
12454
12455     osf3* | osf4* | osf5*)
12456       lt_prog_compiler_wl_F77='-Wl,'
12457       # All OSF/1 code is PIC.
12458       lt_prog_compiler_static_F77='-non_shared'
12459       ;;
12460
12461     sco3.2v5*)
12462       lt_prog_compiler_pic_F77='-Kpic'
12463       lt_prog_compiler_static_F77='-dn'
12464       ;;
12465
12466     solaris*)
12467       lt_prog_compiler_wl_F77='-Wl,'
12468       lt_prog_compiler_pic_F77='-KPIC'
12469       lt_prog_compiler_static_F77='-Bstatic'
12470       ;;
12471
12472     sunos4*)
12473       lt_prog_compiler_wl_F77='-Qoption ld '
12474       lt_prog_compiler_pic_F77='-PIC'
12475       lt_prog_compiler_static_F77='-Bstatic'
12476       ;;
12477
12478     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12479       lt_prog_compiler_wl_F77='-Wl,'
12480       lt_prog_compiler_pic_F77='-KPIC'
12481       lt_prog_compiler_static_F77='-Bstatic'
12482       ;;
12483
12484     sysv4*MP*)
12485       if test -d /usr/nec ;then
12486         lt_prog_compiler_pic_F77='-Kconform_pic'
12487         lt_prog_compiler_static_F77='-Bstatic'
12488       fi
12489       ;;
12490
12491     uts4*)
12492       lt_prog_compiler_pic_F77='-pic'
12493       lt_prog_compiler_static_F77='-Bstatic'
12494       ;;
12495
12496     *)
12497       lt_prog_compiler_can_build_shared_F77=no
12498       ;;
12499     esac
12500   fi
12501
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
12503 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
12504
12505 #
12506 # Check to make sure the PIC flag actually works.
12507 #
12508 if test -n "$lt_prog_compiler_pic_F77"; then
12509
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12511 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
12512 if ${lt_prog_compiler_pic_works_F77+:} false; then :
12513   $as_echo_n "(cached) " >&6
12514 else
12515   lt_prog_compiler_pic_works_F77=no
12516   ac_outfile=conftest.$ac_objext
12517    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12518    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12519    # Insert the option either (1) after the last *FLAGS variable, or
12520    # (2) before a word containing "conftest.", or (3) at the end.
12521    # Note that $ac_compile itself does not contain backslashes and begins
12522    # with a dollar sign (not a hyphen), so the echo should work correctly.
12523    # The option is referenced via a variable to avoid confusing sed.
12524    lt_compile=`echo "$ac_compile" | $SED \
12525    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12526    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12527    -e 's:$: $lt_compiler_flag:'`
12528    (eval echo "\"\$as_me:12528: $lt_compile\"" >&5)
12529    (eval "$lt_compile" 2>conftest.err)
12530    ac_status=$?
12531    cat conftest.err >&5
12532    echo "$as_me:12532: \$? = $ac_status" >&5
12533    if (exit $ac_status) && test -s "$ac_outfile"; then
12534      # The compiler can only warn and ignore the option if not recognized
12535      # So say no if there are warnings
12536      if test ! -s conftest.err; then
12537        lt_prog_compiler_pic_works_F77=yes
12538      fi
12539    fi
12540    $rm conftest*
12541
12542 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
12544 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
12545
12546 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12547     case $lt_prog_compiler_pic_F77 in
12548      "" | " "*) ;;
12549      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12550      esac
12551 else
12552     lt_prog_compiler_pic_F77=
12553      lt_prog_compiler_can_build_shared_F77=no
12554 fi
12555
12556 fi
12557 case "$host_os" in
12558   # For platforms which do not support PIC, -DPIC is meaningless:
12559   *djgpp*)
12560     lt_prog_compiler_pic_F77=
12561     ;;
12562   *)
12563     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12564     ;;
12565 esac
12566
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12568 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12569 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
12570   $as_echo_n "(cached) " >&6
12571 else
12572   lt_cv_prog_compiler_c_o_F77=no
12573    $rm -r conftest 2>/dev/null
12574    mkdir conftest
12575    cd conftest
12576    mkdir out
12577    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12578
12579    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12580    # that will create temporary files in the current directory regardless of
12581    # the output directory.  Thus, making CWD read-only will cause this test
12582    # to fail, enabling locking or at least warning the user not to do parallel
12583    # builds.
12584    chmod -w .
12585
12586    lt_compiler_flag="-o out/conftest2.$ac_objext"
12587    # Insert the option either (1) after the last *FLAGS variable, or
12588    # (2) before a word containing "conftest.", or (3) at the end.
12589    # Note that $ac_compile itself does not contain backslashes and begins
12590    # with a dollar sign (not a hyphen), so the echo should work correctly.
12591    lt_compile=`echo "$ac_compile" | $SED \
12592    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12594    -e 's:$: $lt_compiler_flag:'`
12595    (eval echo "\"\$as_me:12595: $lt_compile\"" >&5)
12596    (eval "$lt_compile" 2>out/conftest.err)
12597    ac_status=$?
12598    cat out/conftest.err >&5
12599    echo "$as_me:12599: \$? = $ac_status" >&5
12600    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12601    then
12602      # The compiler can only warn and ignore the option if not recognized
12603      # So say no if there are warnings
12604      if test ! -s out/conftest.err; then
12605        lt_cv_prog_compiler_c_o_F77=yes
12606      fi
12607    fi
12608    chmod u+w .
12609    $rm conftest*
12610    # SGI C++ compiler will create directory out/ii_files/ for
12611    # template instantiation
12612    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12613    $rm out/* && rmdir out
12614    cd ..
12615    rmdir conftest
12616    $rm conftest*
12617
12618 fi
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12620 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12621
12622
12623 hard_links="nottested"
12624 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12625   # do not overwrite the value of need_locks provided by the user
12626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12627 $as_echo_n "checking if we can lock with hard links... " >&6; }
12628   hard_links=yes
12629   $rm conftest*
12630   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12631   touch conftest.a
12632   ln conftest.a conftest.b 2>&5 || hard_links=no
12633   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12635 $as_echo "$hard_links" >&6; }
12636   if test "$hard_links" = no; then
12637     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12638 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12639     need_locks=warn
12640   fi
12641 else
12642   need_locks=no
12643 fi
12644
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12647
12648   runpath_var=
12649   allow_undefined_flag_F77=
12650   enable_shared_with_static_runtimes_F77=no
12651   archive_cmds_F77=
12652   archive_expsym_cmds_F77=
12653   old_archive_From_new_cmds_F77=
12654   old_archive_from_expsyms_cmds_F77=
12655   export_dynamic_flag_spec_F77=
12656   whole_archive_flag_spec_F77=
12657   thread_safe_flag_spec_F77=
12658   hardcode_libdir_flag_spec_F77=
12659   hardcode_libdir_flag_spec_ld_F77=
12660   hardcode_libdir_separator_F77=
12661   hardcode_direct_F77=no
12662   hardcode_minus_L_F77=no
12663   hardcode_shlibpath_var_F77=unsupported
12664   link_all_deplibs_F77=unknown
12665   hardcode_automatic_F77=no
12666   module_cmds_F77=
12667   module_expsym_cmds_F77=
12668   always_export_symbols_F77=no
12669   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12670   # include_expsyms should be a list of space-separated symbols to be *always*
12671   # included in the symbol list
12672   include_expsyms_F77=
12673   # exclude_expsyms can be an extended regexp of symbols to exclude
12674   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12675   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12676   # as well as any symbol that contains `d'.
12677   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12678   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12679   # platforms (ab)use it in PIC code, but their linkers get confused if
12680   # the symbol is explicitly referenced.  Since portable code cannot
12681   # rely on this symbol name, it's probably fine to never include it in
12682   # preloaded symbol tables.
12683   extract_expsyms_cmds=
12684
12685   case $host_os in
12686   cygwin* | mingw* | pw32*)
12687     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12688     # When not using gcc, we currently assume that we are using
12689     # Microsoft Visual C++.
12690     if test "$GCC" != yes; then
12691       with_gnu_ld=no
12692     fi
12693     ;;
12694   openbsd*)
12695     with_gnu_ld=no
12696     ;;
12697   esac
12698
12699   ld_shlibs_F77=yes
12700   if test "$with_gnu_ld" = yes; then
12701     # If archive_cmds runs LD, not CC, wlarc should be empty
12702     wlarc='${wl}'
12703
12704     # See if GNU ld supports shared libraries.
12705     case $host_os in
12706     aix3* | aix4* | aix5*)
12707       # On AIX/PPC, the GNU linker is very broken
12708       if test "$host_cpu" != ia64; then
12709         ld_shlibs_F77=no
12710         cat <<EOF 1>&2
12711
12712 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12713 *** to be unable to reliably create shared libraries on AIX.
12714 *** Therefore, libtool is disabling shared libraries support.  If you
12715 *** really care for shared libraries, you may want to modify your PATH
12716 *** so that a non-GNU linker is found, and then restart.
12717
12718 EOF
12719       fi
12720       ;;
12721
12722     amigaos*)
12723       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)'
12724       hardcode_libdir_flag_spec_F77='-L$libdir'
12725       hardcode_minus_L_F77=yes
12726
12727       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12728       # that the semantics of dynamic libraries on AmigaOS, at least up
12729       # to version 4, is to share data among multiple programs linked
12730       # with the same dynamic library.  Since this doesn't match the
12731       # behavior of shared libraries on other platforms, we can't use
12732       # them.
12733       ld_shlibs_F77=no
12734       ;;
12735
12736     beos*)
12737       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12738         allow_undefined_flag_F77=unsupported
12739         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12740         # support --undefined.  This deserves some investigation.  FIXME
12741         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12742       else
12743         ld_shlibs_F77=no
12744       fi
12745       ;;
12746
12747     cygwin* | mingw* | pw32*)
12748       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12749       # as there is no search path for DLLs.
12750       hardcode_libdir_flag_spec_F77='-L$libdir'
12751       allow_undefined_flag_F77=unsupported
12752       always_export_symbols_F77=no
12753       enable_shared_with_static_runtimes_F77=yes
12754       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12755
12756       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12757         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12758         # If the export-symbols file already is a .def file (1st line
12759         # is EXPORTS), use it as is; otherwise, prepend...
12760         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12761           cp $export_symbols $output_objdir/$soname.def;
12762         else
12763           echo EXPORTS > $output_objdir/$soname.def;
12764           cat $export_symbols >> $output_objdir/$soname.def;
12765         fi~
12766         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12767       else
12768         ld_shlibs=no
12769       fi
12770       ;;
12771
12772     netbsd*)
12773       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12774         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12775         wlarc=
12776       else
12777         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12779       fi
12780       ;;
12781
12782     solaris* | sysv5*)
12783       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12784         ld_shlibs_F77=no
12785         cat <<EOF 1>&2
12786
12787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12788 *** create shared libraries on Solaris systems.  Therefore, libtool
12789 *** is disabling shared libraries support.  We urge you to upgrade GNU
12790 *** binutils to release 2.9.1 or newer.  Another option is to modify
12791 *** your PATH or compiler configuration so that the native linker is
12792 *** used, and then restart.
12793
12794 EOF
12795       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12796         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12797         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12798       else
12799         ld_shlibs_F77=no
12800       fi
12801       ;;
12802
12803     sunos4*)
12804       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12805       wlarc=
12806       hardcode_direct_F77=yes
12807       hardcode_shlibpath_var_F77=no
12808       ;;
12809
12810   linux*)
12811     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12812         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12813         archive_cmds_F77="$tmp_archive_cmds"
12814       supports_anon_versioning=no
12815       case `$LD -v 2>/dev/null` in
12816         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12817         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12818         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12819         *\ 2.11.*) ;; # other 2.11 versions
12820         *) supports_anon_versioning=yes ;;
12821       esac
12822       if test $supports_anon_versioning = yes; then
12823         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12825 $echo "local: *; };" >> $output_objdir/$libname.ver~
12826         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12827       else
12828         archive_expsym_cmds_F77="$tmp_archive_cmds"
12829       fi
12830     else
12831       ld_shlibs_F77=no
12832     fi
12833     ;;
12834
12835     *)
12836       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12837         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12838         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12839       else
12840         ld_shlibs_F77=no
12841       fi
12842       ;;
12843     esac
12844
12845     if test "$ld_shlibs_F77" = yes; then
12846       runpath_var=LD_RUN_PATH
12847       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12848       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12849       # ancient GNU ld didn't support --whole-archive et. al.
12850       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12851         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12852       else
12853         whole_archive_flag_spec_F77=
12854       fi
12855     fi
12856   else
12857     # PORTME fill in a description of your system's linker (not GNU ld)
12858     case $host_os in
12859     aix3*)
12860       allow_undefined_flag_F77=unsupported
12861       always_export_symbols_F77=yes
12862       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'
12863       # Note: this linker hardcodes the directories in LIBPATH if there
12864       # are no directories specified by -L.
12865       hardcode_minus_L_F77=yes
12866       if test "$GCC" = yes && test -z "$link_static_flag"; then
12867         # Neither direct hardcoding nor static linking is supported with a
12868         # broken collect2.
12869         hardcode_direct_F77=unsupported
12870       fi
12871       ;;
12872
12873     aix4* | aix5*)
12874       if test "$host_cpu" = ia64; then
12875         # On IA64, the linker does run time linking by default, so we don't
12876         # have to do anything special.
12877         aix_use_runtimelinking=no
12878         exp_sym_flag='-Bexport'
12879         no_entry_flag=""
12880       else
12881         # If we're using GNU nm, then we don't want the "-C" option.
12882         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12883         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12884           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'
12885         else
12886           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'
12887         fi
12888         aix_use_runtimelinking=no
12889
12890         # Test if we are trying to use run time linking or normal
12891         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12892         # need to do runtime linking.
12893         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12894           for ld_flag in $LDFLAGS; do
12895           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12896             aix_use_runtimelinking=yes
12897             break
12898           fi
12899           done
12900         esac
12901
12902         exp_sym_flag='-bexport'
12903         no_entry_flag='-bnoentry'
12904       fi
12905
12906       # When large executables or shared objects are built, AIX ld can
12907       # have problems creating the table of contents.  If linking a library
12908       # or program results in "error TOC overflow" add -mminimal-toc to
12909       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12910       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12911
12912       archive_cmds_F77=''
12913       hardcode_direct_F77=yes
12914       hardcode_libdir_separator_F77=':'
12915       link_all_deplibs_F77=yes
12916
12917       if test "$GCC" = yes; then
12918         case $host_os in aix4.012|aix4.012.*)
12919         # We only want to do this on AIX 4.2 and lower, the check
12920         # below for broken collect2 doesn't work under 4.3+
12921           collect2name=`${CC} -print-prog-name=collect2`
12922           if test -f "$collect2name" && \
12923            strings "$collect2name" | grep resolve_lib_name >/dev/null
12924           then
12925           # We have reworked collect2
12926           hardcode_direct_F77=yes
12927           else
12928           # We have old collect2
12929           hardcode_direct_F77=unsupported
12930           # It fails to find uninstalled libraries when the uninstalled
12931           # path is not listed in the libpath.  Setting hardcode_minus_L
12932           # to unsupported forces relinking
12933           hardcode_minus_L_F77=yes
12934           hardcode_libdir_flag_spec_F77='-L$libdir'
12935           hardcode_libdir_separator_F77=
12936           fi
12937         esac
12938         shared_flag='-shared'
12939       else
12940         # not using gcc
12941         if test "$host_cpu" = ia64; then
12942         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12943         # chokes on -Wl,-G. The following line is correct:
12944           shared_flag='-G'
12945         else
12946         if test "$aix_use_runtimelinking" = yes; then
12947             shared_flag='${wl}-G'
12948           else
12949             shared_flag='${wl}-bM:SRE'
12950         fi
12951         fi
12952       fi
12953
12954       # It seems that -bexpall does not export symbols beginning with
12955       # underscore (_), so it is better to generate a list of symbols to export.
12956       always_export_symbols_F77=yes
12957       if test "$aix_use_runtimelinking" = yes; then
12958         # Warning - without using the other runtime loading flags (-brtl),
12959         # -berok will link without error, but may produce a broken library.
12960         allow_undefined_flag_F77='-berok'
12961        # Determine the default libpath from the value encoded in an empty executable.
12962        cat > conftest.$ac_ext <<_ACEOF
12963       program main
12964
12965       end
12966 _ACEOF
12967 if ac_fn_f77_try_link "$LINENO"; then :
12968
12969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12970 }'`
12971 # Check for a 64-bit object if we didn't find anything.
12972 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; }
12973 }'`; fi
12974 fi
12975 rm -f core conftest.err conftest.$ac_objext \
12976     conftest$ac_exeext conftest.$ac_ext
12977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12978
12979        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12980         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"
12981        else
12982         if test "$host_cpu" = ia64; then
12983           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12984           allow_undefined_flag_F77="-z nodefs"
12985           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"
12986         else
12987          # Determine the default libpath from the value encoded in an empty executable.
12988          cat > conftest.$ac_ext <<_ACEOF
12989       program main
12990
12991       end
12992 _ACEOF
12993 if ac_fn_f77_try_link "$LINENO"; then :
12994
12995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12996 }'`
12997 # Check for a 64-bit object if we didn't find anything.
12998 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; }
12999 }'`; fi
13000 fi
13001 rm -f core conftest.err conftest.$ac_objext \
13002     conftest$ac_exeext conftest.$ac_ext
13003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13004
13005          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13006           # Warning - without using the other run time loading flags,
13007           # -berok will link without error, but may produce a broken library.
13008           no_undefined_flag_F77=' ${wl}-bernotok'
13009           allow_undefined_flag_F77=' ${wl}-berok'
13010           # -bexpall does not export symbols beginning with underscore (_)
13011           always_export_symbols_F77=yes
13012           # Exported symbols can be pulled into shared objects from archives
13013           whole_archive_flag_spec_F77=' '
13014           archive_cmds_need_lc_F77=yes
13015           # This is similar to how AIX traditionally builds it's shared libraries.
13016           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'
13017         fi
13018       fi
13019       ;;
13020
13021     amigaos*)
13022       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)'
13023       hardcode_libdir_flag_spec_F77='-L$libdir'
13024       hardcode_minus_L_F77=yes
13025       # see comment about different semantics on the GNU ld section
13026       ld_shlibs_F77=no
13027       ;;
13028
13029     bsdi4*)
13030       export_dynamic_flag_spec_F77=-rdynamic
13031       ;;
13032
13033     cygwin* | mingw* | pw32*)
13034       # When not using gcc, we currently assume that we are using
13035       # Microsoft Visual C++.
13036       # hardcode_libdir_flag_spec is actually meaningless, as there is
13037       # no search path for DLLs.
13038       hardcode_libdir_flag_spec_F77=' '
13039       allow_undefined_flag_F77=unsupported
13040       # Tell ltmain to make .lib files, not .a files.
13041       libext=lib
13042       # Tell ltmain to make .dll files, not .so files.
13043       shrext=".dll"
13044       # FIXME: Setting linknames here is a bad hack.
13045       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13046       # The linker will automatically build a .lib file if we build a DLL.
13047       old_archive_From_new_cmds_F77='true'
13048       # FIXME: Should let the user specify the lib program.
13049       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13050       fix_srcfile_path='`cygpath -w "$srcfile"`'
13051       enable_shared_with_static_runtimes_F77=yes
13052       ;;
13053
13054     darwin* | rhapsody*)
13055     if test "$GXX" = yes ; then
13056       archive_cmds_need_lc_F77=no
13057       case "$host_os" in
13058       rhapsody* | darwin1.[012])
13059         allow_undefined_flag_F77='-undefined suppress'
13060         ;;
13061       *) # Darwin 1.3 on
13062       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13063         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13064       else
13065         case ${MACOSX_DEPLOYMENT_TARGET} in
13066           10.[012])
13067             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13068             ;;
13069           10.*)
13070             allow_undefined_flag_F77='-undefined dynamic_lookup'
13071             ;;
13072         esac
13073       fi
13074         ;;
13075       esac
13076         lt_int_apple_cc_single_mod=no
13077         output_verbose_link_cmd='echo'
13078         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13079           lt_int_apple_cc_single_mod=yes
13080         fi
13081         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13082           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13083         else
13084         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'
13085       fi
13086       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13087       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13088         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13089           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}'
13090         else
13091           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}'
13092         fi
13093           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}'
13094       hardcode_direct_F77=no
13095       hardcode_automatic_F77=yes
13096       hardcode_shlibpath_var_F77=unsupported
13097       whole_archive_flag_spec_F77='-all_load $convenience'
13098       link_all_deplibs_F77=yes
13099     else
13100       ld_shlibs_F77=no
13101     fi
13102       ;;
13103
13104     dgux*)
13105       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13106       hardcode_libdir_flag_spec_F77='-L$libdir'
13107       hardcode_shlibpath_var_F77=no
13108       ;;
13109
13110     freebsd1*)
13111       ld_shlibs_F77=no
13112       ;;
13113
13114     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13115     # support.  Future versions do this automatically, but an explicit c++rt0.o
13116     # does not break anything, and helps significantly (at the cost of a little
13117     # extra space).
13118     freebsd2.2*)
13119       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13120       hardcode_libdir_flag_spec_F77='-R$libdir'
13121       hardcode_direct_F77=yes
13122       hardcode_shlibpath_var_F77=no
13123       ;;
13124
13125     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13126     freebsd2*)
13127       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13128       hardcode_direct_F77=yes
13129       hardcode_minus_L_F77=yes
13130       hardcode_shlibpath_var_F77=no
13131       ;;
13132
13133     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13134     freebsd* | kfreebsd*-gnu)
13135       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13136       hardcode_libdir_flag_spec_F77='-R$libdir'
13137       hardcode_direct_F77=yes
13138       hardcode_shlibpath_var_F77=no
13139       ;;
13140
13141     hpux9*)
13142       if test "$GCC" = yes; then
13143         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'
13144       else
13145         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'
13146       fi
13147       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13148       hardcode_libdir_separator_F77=:
13149       hardcode_direct_F77=yes
13150
13151       # hardcode_minus_L: Not really in the search PATH,
13152       # but as the default location of the library.
13153       hardcode_minus_L_F77=yes
13154       export_dynamic_flag_spec_F77='${wl}-E'
13155       ;;
13156
13157     hpux10* | hpux11*)
13158       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13159         case "$host_cpu" in
13160         hppa*64*|ia64*)
13161           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13162           ;;
13163         *)
13164           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13165           ;;
13166         esac
13167       else
13168         case "$host_cpu" in
13169         hppa*64*|ia64*)
13170           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13171           ;;
13172         *)
13173           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13174           ;;
13175         esac
13176       fi
13177       if test "$with_gnu_ld" = no; then
13178         case "$host_cpu" in
13179         hppa*64*)
13180           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13181           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13182           hardcode_libdir_separator_F77=:
13183           hardcode_direct_F77=no
13184           hardcode_shlibpath_var_F77=no
13185           ;;
13186         ia64*)
13187           hardcode_libdir_flag_spec_F77='-L$libdir'
13188           hardcode_direct_F77=no
13189           hardcode_shlibpath_var_F77=no
13190
13191           # hardcode_minus_L: Not really in the search PATH,
13192           # but as the default location of the library.
13193           hardcode_minus_L_F77=yes
13194           ;;
13195         *)
13196           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13197           hardcode_libdir_separator_F77=:
13198           hardcode_direct_F77=yes
13199           export_dynamic_flag_spec_F77='${wl}-E'
13200
13201           # hardcode_minus_L: Not really in the search PATH,
13202           # but as the default location of the library.
13203           hardcode_minus_L_F77=yes
13204           ;;
13205         esac
13206       fi
13207       ;;
13208
13209     irix5* | irix6* | nonstopux*)
13210       if test "$GCC" = yes; then
13211         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'
13212       else
13213         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'
13214         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13215       fi
13216       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13217       hardcode_libdir_separator_F77=:
13218       link_all_deplibs_F77=yes
13219       ;;
13220
13221     netbsd*)
13222       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13223         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13224       else
13225         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13226       fi
13227       hardcode_libdir_flag_spec_F77='-R$libdir'
13228       hardcode_direct_F77=yes
13229       hardcode_shlibpath_var_F77=no
13230       ;;
13231
13232     newsos6)
13233       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13234       hardcode_direct_F77=yes
13235       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13236       hardcode_libdir_separator_F77=:
13237       hardcode_shlibpath_var_F77=no
13238       ;;
13239
13240     openbsd*)
13241       hardcode_direct_F77=yes
13242       hardcode_shlibpath_var_F77=no
13243       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13244         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13245         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13246         export_dynamic_flag_spec_F77='${wl}-E'
13247       else
13248        case $host_os in
13249          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13250            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13251            hardcode_libdir_flag_spec_F77='-R$libdir'
13252            ;;
13253          *)
13254            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13255            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13256            ;;
13257        esac
13258       fi
13259       ;;
13260
13261     os2*)
13262       hardcode_libdir_flag_spec_F77='-L$libdir'
13263       hardcode_minus_L_F77=yes
13264       allow_undefined_flag_F77=unsupported
13265       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'
13266       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13267       ;;
13268
13269     osf3*)
13270       if test "$GCC" = yes; then
13271         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13272         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'
13273       else
13274         allow_undefined_flag_F77=' -expect_unresolved \*'
13275         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'
13276       fi
13277       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13278       hardcode_libdir_separator_F77=:
13279       ;;
13280
13281     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13282       if test "$GCC" = yes; then
13283         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13284         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'
13285         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13286       else
13287         allow_undefined_flag_F77=' -expect_unresolved \*'
13288         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'
13289         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~
13290         $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'
13291
13292         # Both c and cxx compiler support -rpath directly
13293         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13294       fi
13295       hardcode_libdir_separator_F77=:
13296       ;;
13297
13298     sco3.2v5*)
13299       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13300       hardcode_shlibpath_var_F77=no
13301       export_dynamic_flag_spec_F77='${wl}-Bexport'
13302       runpath_var=LD_RUN_PATH
13303       hardcode_runpath_var=yes
13304       ;;
13305
13306     solaris*)
13307       no_undefined_flag_F77=' -z text'
13308       if test "$GCC" = yes; then
13309         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13310         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13311           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13312       else
13313         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13314         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13315         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13316       fi
13317       hardcode_libdir_flag_spec_F77='-R$libdir'
13318       hardcode_shlibpath_var_F77=no
13319       case $host_os in
13320       solaris2.[0-5] | solaris2.[0-5].*) ;;
13321       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13322         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13323       esac
13324       link_all_deplibs_F77=yes
13325       ;;
13326
13327     sunos4*)
13328       if test "x$host_vendor" = xsequent; then
13329         # Use $CC to link under sequent, because it throws in some extra .o
13330         # files that make .init and .fini sections work.
13331         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13332       else
13333         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13334       fi
13335       hardcode_libdir_flag_spec_F77='-L$libdir'
13336       hardcode_direct_F77=yes
13337       hardcode_minus_L_F77=yes
13338       hardcode_shlibpath_var_F77=no
13339       ;;
13340
13341     sysv4)
13342       case $host_vendor in
13343         sni)
13344           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13345           hardcode_direct_F77=yes # is this really true???
13346         ;;
13347         siemens)
13348           ## LD is ld it makes a PLAMLIB
13349           ## CC just makes a GrossModule.
13350           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13351           reload_cmds_F77='$CC -r -o $output$reload_objs'
13352           hardcode_direct_F77=no
13353         ;;
13354         motorola)
13355           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13356           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13357         ;;
13358       esac
13359       runpath_var='LD_RUN_PATH'
13360       hardcode_shlibpath_var_F77=no
13361       ;;
13362
13363     sysv4.3*)
13364       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13365       hardcode_shlibpath_var_F77=no
13366       export_dynamic_flag_spec_F77='-Bexport'
13367       ;;
13368
13369     sysv4*MP*)
13370       if test -d /usr/nec; then
13371         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13372         hardcode_shlibpath_var_F77=no
13373         runpath_var=LD_RUN_PATH
13374         hardcode_runpath_var=yes
13375         ld_shlibs_F77=yes
13376       fi
13377       ;;
13378
13379     sysv4.2uw2*)
13380       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13381       hardcode_direct_F77=yes
13382       hardcode_minus_L_F77=no
13383       hardcode_shlibpath_var_F77=no
13384       hardcode_runpath_var=yes
13385       runpath_var=LD_RUN_PATH
13386       ;;
13387
13388    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13389       no_undefined_flag_F77='${wl}-z ${wl}text'
13390       if test "$GCC" = yes; then
13391         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13392       else
13393         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13394       fi
13395       runpath_var='LD_RUN_PATH'
13396       hardcode_shlibpath_var_F77=no
13397       ;;
13398
13399     sysv5*)
13400       no_undefined_flag_F77=' -z text'
13401       # $CC -shared without GNU ld will not create a library from C++
13402       # object files and a static libstdc++, better avoid it by now
13403       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13404       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13405                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13406       hardcode_libdir_flag_spec_F77=
13407       hardcode_shlibpath_var_F77=no
13408       runpath_var='LD_RUN_PATH'
13409       ;;
13410
13411     uts4*)
13412       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13413       hardcode_libdir_flag_spec_F77='-L$libdir'
13414       hardcode_shlibpath_var_F77=no
13415       ;;
13416
13417     *)
13418       ld_shlibs_F77=no
13419       ;;
13420     esac
13421   fi
13422
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
13424 $as_echo "$ld_shlibs_F77" >&6; }
13425 test "$ld_shlibs_F77" = no && can_build_shared=no
13426
13427 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13428 if test "$GCC" = yes; then
13429   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13430 fi
13431
13432 #
13433 # Do we need to explicitly link libc?
13434 #
13435 case "x$archive_cmds_need_lc_F77" in
13436 x|xyes)
13437   # Assume -lc should be added
13438   archive_cmds_need_lc_F77=yes
13439
13440   if test "$enable_shared" = yes && test "$GCC" = yes; then
13441     case $archive_cmds_F77 in
13442     *'~'*)
13443       # FIXME: we may have to deal with multi-command sequences.
13444       ;;
13445     '$CC '*)
13446       # Test whether the compiler implicitly links with -lc since on some
13447       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13448       # to ld, don't add -lc before -lgcc.
13449       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13450 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13451       $rm conftest*
13452       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13453
13454       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13455   (eval $ac_compile) 2>&5
13456   ac_status=$?
13457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13458   test $ac_status = 0; } 2>conftest.err; then
13459         soname=conftest
13460         lib=conftest
13461         libobjs=conftest.$ac_objext
13462         deplibs=
13463         wl=$lt_prog_compiler_wl_F77
13464         compiler_flags=-v
13465         linker_flags=-v
13466         verstring=
13467         output_objdir=.
13468         libname=conftest
13469         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13470         allow_undefined_flag_F77=
13471         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13472   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13473   ac_status=$?
13474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475   test $ac_status = 0; }
13476         then
13477           archive_cmds_need_lc_F77=no
13478         else
13479           archive_cmds_need_lc_F77=yes
13480         fi
13481         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13482       else
13483         cat conftest.err 1>&5
13484       fi
13485       $rm conftest*
13486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
13487 $as_echo "$archive_cmds_need_lc_F77" >&6; }
13488       ;;
13489     esac
13490   fi
13491   ;;
13492 esac
13493
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13495 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13496 library_names_spec=
13497 libname_spec='lib$name'
13498 soname_spec=
13499 shrext=".so"
13500 postinstall_cmds=
13501 postuninstall_cmds=
13502 finish_cmds=
13503 finish_eval=
13504 shlibpath_var=
13505 shlibpath_overrides_runpath=unknown
13506 version_type=none
13507 dynamic_linker="$host_os ld.so"
13508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13509 if test "$GCC" = yes; then
13510   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13511   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13512     # if the path contains ";" then we assume it to be the separator
13513     # otherwise default to the standard path separator (i.e. ":") - it is
13514     # assumed that no part of a normal pathname contains ";" but that should
13515     # okay in the real world where ";" in dirpaths is itself problematic.
13516     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13517   else
13518     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13519   fi
13520 else
13521   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13522 fi
13523 need_lib_prefix=unknown
13524 hardcode_into_libs=no
13525
13526 # when you set need_version to no, make sure it does not cause -set_version
13527 # flags to be left without arguments
13528 need_version=unknown
13529
13530 case $host_os in
13531 aix3*)
13532   version_type=linux
13533   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13534   shlibpath_var=LIBPATH
13535
13536   # AIX 3 has no versioning support, so we append a major version to the name.
13537   soname_spec='${libname}${release}${shared_ext}$major'
13538   ;;
13539
13540 aix4* | aix5*)
13541   version_type=linux
13542   need_lib_prefix=no
13543   need_version=no
13544   hardcode_into_libs=yes
13545   if test "$host_cpu" = ia64; then
13546     # AIX 5 supports IA64
13547     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13548     shlibpath_var=LD_LIBRARY_PATH
13549   else
13550     # With GCC up to 2.95.x, collect2 would create an import file
13551     # for dependence libraries.  The import file would start with
13552     # the line `#! .'.  This would cause the generated library to
13553     # depend on `.', always an invalid library.  This was fixed in
13554     # development snapshots of GCC prior to 3.0.
13555     case $host_os in
13556       aix4 | aix4.[01] | aix4.[01].*)
13557       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13558            echo ' yes '
13559            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13560         :
13561       else
13562         can_build_shared=no
13563       fi
13564       ;;
13565     esac
13566     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13567     # soname into executable. Probably we can add versioning support to
13568     # collect2, so additional links can be useful in future.
13569     if test "$aix_use_runtimelinking" = yes; then
13570       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13571       # instead of lib<name>.a to let people know that these are not
13572       # typical AIX shared libraries.
13573       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574     else
13575       # We preserve .a as extension for shared libraries through AIX4.2
13576       # and later when we are not doing run time linking.
13577       library_names_spec='${libname}${release}.a $libname.a'
13578       soname_spec='${libname}${release}${shared_ext}$major'
13579     fi
13580     shlibpath_var=LIBPATH
13581   fi
13582   ;;
13583
13584 amigaos*)
13585   library_names_spec='$libname.ixlibrary $libname.a'
13586   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13587   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'
13588   ;;
13589
13590 beos*)
13591   library_names_spec='${libname}${shared_ext}'
13592   dynamic_linker="$host_os ld.so"
13593   shlibpath_var=LIBRARY_PATH
13594   ;;
13595
13596 bsdi4*)
13597   version_type=linux
13598   need_version=no
13599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600   soname_spec='${libname}${release}${shared_ext}$major'
13601   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13602   shlibpath_var=LD_LIBRARY_PATH
13603   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13604   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13605   # the default ld.so.conf also contains /usr/contrib/lib and
13606   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13607   # libtool to hard-code these into programs
13608   ;;
13609
13610 cygwin* | mingw* | pw32*)
13611   version_type=windows
13612   shrext=".dll"
13613   need_version=no
13614   need_lib_prefix=no
13615
13616   case $GCC,$host_os in
13617   yes,cygwin* | yes,mingw* | yes,pw32*)
13618     library_names_spec='$libname.dll.a'
13619     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13620     postinstall_cmds='base_file=`basename \${file}`~
13621       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13622       dldir=$destdir/`dirname \$dlpath`~
13623       test -d \$dldir || mkdir -p \$dldir~
13624       $install_prog $dir/$dlname \$dldir/$dlname'
13625     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13626       dlpath=$dir/\$dldll~
13627        $rm \$dlpath'
13628     shlibpath_overrides_runpath=yes
13629
13630     case $host_os in
13631     cygwin*)
13632       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13633       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13634       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13635       ;;
13636     mingw*)
13637       # MinGW DLLs use traditional 'lib' prefix
13638       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13639       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13640       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13641         # It is most probably a Windows format PATH printed by
13642         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13643         # path with ; separators, and with drive letters. We can handle the
13644         # drive letters (cygwin fileutils understands them), so leave them,
13645         # especially as we might pass files found there to a mingw objdump,
13646         # which wouldn't understand a cygwinified path. Ahh.
13647         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13648       else
13649         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13650       fi
13651       ;;
13652     pw32*)
13653       # pw32 DLLs use 'pw' prefix rather than 'lib'
13654       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13655       ;;
13656     esac
13657     ;;
13658
13659   *)
13660     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13661     ;;
13662   esac
13663   dynamic_linker='Win32 ld.exe'
13664   # FIXME: first we should search . and the directory the executable is in
13665   shlibpath_var=PATH
13666   ;;
13667
13668 darwin* | rhapsody*)
13669   dynamic_linker="$host_os dyld"
13670   version_type=darwin
13671   need_lib_prefix=no
13672   need_version=no
13673   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13674   soname_spec='${libname}${release}${major}$shared_ext'
13675   shlibpath_overrides_runpath=yes
13676   shlibpath_var=DYLD_LIBRARY_PATH
13677   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13678   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13679   if test "$GCC" = yes; then
13680     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"`
13681   else
13682     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13683   fi
13684   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13685   ;;
13686
13687 dgux*)
13688   version_type=linux
13689   need_lib_prefix=no
13690   need_version=no
13691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13692   soname_spec='${libname}${release}${shared_ext}$major'
13693   shlibpath_var=LD_LIBRARY_PATH
13694   ;;
13695
13696 freebsd1*)
13697   dynamic_linker=no
13698   ;;
13699
13700 kfreebsd*-gnu)
13701   version_type=linux
13702   need_lib_prefix=no
13703   need_version=no
13704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13705   soname_spec='${libname}${release}${shared_ext}$major'
13706   shlibpath_var=LD_LIBRARY_PATH
13707   shlibpath_overrides_runpath=no
13708   hardcode_into_libs=yes
13709   dynamic_linker='GNU ld.so'
13710   ;;
13711
13712 freebsd*)
13713   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13714   version_type=freebsd-$objformat
13715   case $version_type in
13716     freebsd-elf*)
13717       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13718       need_version=no
13719       need_lib_prefix=no
13720       ;;
13721     freebsd-*)
13722       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13723       need_version=yes
13724       ;;
13725   esac
13726   shlibpath_var=LD_LIBRARY_PATH
13727   case $host_os in
13728   freebsd2*)
13729     shlibpath_overrides_runpath=yes
13730     ;;
13731   freebsd3.01* | freebsdelf3.01*)
13732     shlibpath_overrides_runpath=yes
13733     hardcode_into_libs=yes
13734     ;;
13735   *) # from 3.2 on
13736     shlibpath_overrides_runpath=no
13737     hardcode_into_libs=yes
13738     ;;
13739   esac
13740   ;;
13741
13742 gnu*)
13743   version_type=linux
13744   need_lib_prefix=no
13745   need_version=no
13746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13747   soname_spec='${libname}${release}${shared_ext}$major'
13748   shlibpath_var=LD_LIBRARY_PATH
13749   hardcode_into_libs=yes
13750   ;;
13751
13752 hpux9* | hpux10* | hpux11*)
13753   # Give a soname corresponding to the major version so that dld.sl refuses to
13754   # link against other versions.
13755   version_type=sunos
13756   need_lib_prefix=no
13757   need_version=no
13758   case "$host_cpu" in
13759   ia64*)
13760     shrext='.so'
13761     hardcode_into_libs=yes
13762     dynamic_linker="$host_os dld.so"
13763     shlibpath_var=LD_LIBRARY_PATH
13764     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13766     soname_spec='${libname}${release}${shared_ext}$major'
13767     if test "X$HPUX_IA64_MODE" = X32; then
13768       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13769     else
13770       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13771     fi
13772     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13773     ;;
13774    hppa*64*)
13775      shrext='.sl'
13776      hardcode_into_libs=yes
13777      dynamic_linker="$host_os dld.sl"
13778      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13779      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13780      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13781      soname_spec='${libname}${release}${shared_ext}$major'
13782      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13783      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13784      ;;
13785    *)
13786     shrext='.sl'
13787     dynamic_linker="$host_os dld.sl"
13788     shlibpath_var=SHLIB_PATH
13789     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13791     soname_spec='${libname}${release}${shared_ext}$major'
13792     ;;
13793   esac
13794   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13795   postinstall_cmds='chmod 555 $lib'
13796   ;;
13797
13798 irix5* | irix6* | nonstopux*)
13799   case $host_os in
13800     nonstopux*) version_type=nonstopux ;;
13801     *)
13802         if test "$lt_cv_prog_gnu_ld" = yes; then
13803                 version_type=linux
13804         else
13805                 version_type=irix
13806         fi ;;
13807   esac
13808   need_lib_prefix=no
13809   need_version=no
13810   soname_spec='${libname}${release}${shared_ext}$major'
13811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13812   case $host_os in
13813   irix5* | nonstopux*)
13814     libsuff= shlibsuff=
13815     ;;
13816   *)
13817     case $LD in # libtool.m4 will add one of these switches to LD
13818     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13819       libsuff= shlibsuff= libmagic=32-bit;;
13820     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13821       libsuff=32 shlibsuff=N32 libmagic=N32;;
13822     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13823       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13824     *) libsuff= shlibsuff= libmagic=never-match;;
13825     esac
13826     ;;
13827   esac
13828   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13829   shlibpath_overrides_runpath=no
13830   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13831   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13832   hardcode_into_libs=yes
13833   ;;
13834
13835 # No shared lib support for Linux oldld, aout, or coff.
13836 linux*oldld* | linux*aout* | linux*coff*)
13837   dynamic_linker=no
13838   ;;
13839
13840 # This must be Linux ELF.
13841 linux*)
13842   version_type=linux
13843   need_lib_prefix=no
13844   need_version=no
13845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13846   soname_spec='${libname}${release}${shared_ext}$major'
13847   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13848   shlibpath_var=LD_LIBRARY_PATH
13849   shlibpath_overrides_runpath=no
13850   # This implies no fast_install, which is unacceptable.
13851   # Some rework will be needed to allow for fast_install
13852   # before this can be enabled.
13853   hardcode_into_libs=yes
13854
13855   # We used to test for /lib/ld.so.1 and disable shared libraries on
13856   # powerpc, because MkLinux only supported shared libraries with the
13857   # GNU dynamic linker.  Since this was broken with cross compilers,
13858   # most powerpc-linux boxes support dynamic linking these days and
13859   # people can always --disable-shared, the test was removed, and we
13860   # assume the GNU/Linux dynamic linker is in use.
13861   dynamic_linker='GNU/Linux ld.so'
13862   ;;
13863
13864 netbsd*)
13865   version_type=sunos
13866   need_lib_prefix=no
13867   need_version=no
13868   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13870     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13871     dynamic_linker='NetBSD (a.out) ld.so'
13872   else
13873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13874     soname_spec='${libname}${release}${shared_ext}$major'
13875     dynamic_linker='NetBSD ld.elf_so'
13876   fi
13877   shlibpath_var=LD_LIBRARY_PATH
13878   shlibpath_overrides_runpath=yes
13879   hardcode_into_libs=yes
13880   ;;
13881
13882 newsos6)
13883   version_type=linux
13884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885   shlibpath_var=LD_LIBRARY_PATH
13886   shlibpath_overrides_runpath=yes
13887   ;;
13888
13889 nto-qnx*)
13890   version_type=linux
13891   need_lib_prefix=no
13892   need_version=no
13893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894   soname_spec='${libname}${release}${shared_ext}$major'
13895   shlibpath_var=LD_LIBRARY_PATH
13896   shlibpath_overrides_runpath=yes
13897   ;;
13898
13899 openbsd*)
13900   version_type=sunos
13901   need_lib_prefix=no
13902   need_version=no
13903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13904   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13905   shlibpath_var=LD_LIBRARY_PATH
13906   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13907     case $host_os in
13908       openbsd2.[89] | openbsd2.[89].*)
13909         shlibpath_overrides_runpath=no
13910         ;;
13911       *)
13912         shlibpath_overrides_runpath=yes
13913         ;;
13914       esac
13915   else
13916     shlibpath_overrides_runpath=yes
13917   fi
13918   ;;
13919
13920 os2*)
13921   libname_spec='$name'
13922   shrext=".dll"
13923   need_lib_prefix=no
13924   library_names_spec='$libname${shared_ext} $libname.a'
13925   dynamic_linker='OS/2 ld.exe'
13926   shlibpath_var=LIBPATH
13927   ;;
13928
13929 osf3* | osf4* | osf5*)
13930   version_type=osf
13931   need_lib_prefix=no
13932   need_version=no
13933   soname_spec='${libname}${release}${shared_ext}$major'
13934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935   shlibpath_var=LD_LIBRARY_PATH
13936   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13937   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13938   ;;
13939
13940 sco3.2v5*)
13941   version_type=osf
13942   soname_spec='${libname}${release}${shared_ext}$major'
13943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944   shlibpath_var=LD_LIBRARY_PATH
13945   ;;
13946
13947 solaris*)
13948   version_type=linux
13949   need_lib_prefix=no
13950   need_version=no
13951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13952   soname_spec='${libname}${release}${shared_ext}$major'
13953   shlibpath_var=LD_LIBRARY_PATH
13954   shlibpath_overrides_runpath=yes
13955   hardcode_into_libs=yes
13956   # ldd complains unless libraries are executable
13957   postinstall_cmds='chmod +x $lib'
13958   ;;
13959
13960 sunos4*)
13961   version_type=sunos
13962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13963   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13964   shlibpath_var=LD_LIBRARY_PATH
13965   shlibpath_overrides_runpath=yes
13966   if test "$with_gnu_ld" = yes; then
13967     need_lib_prefix=no
13968   fi
13969   need_version=yes
13970   ;;
13971
13972 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13973   version_type=linux
13974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13975   soname_spec='${libname}${release}${shared_ext}$major'
13976   shlibpath_var=LD_LIBRARY_PATH
13977   case $host_vendor in
13978     sni)
13979       shlibpath_overrides_runpath=no
13980       need_lib_prefix=no
13981       export_dynamic_flag_spec='${wl}-Blargedynsym'
13982       runpath_var=LD_RUN_PATH
13983       ;;
13984     siemens)
13985       need_lib_prefix=no
13986       ;;
13987     motorola)
13988       need_lib_prefix=no
13989       need_version=no
13990       shlibpath_overrides_runpath=no
13991       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13992       ;;
13993   esac
13994   ;;
13995
13996 sysv4*MP*)
13997   if test -d /usr/nec ;then
13998     version_type=linux
13999     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14000     soname_spec='$libname${shared_ext}.$major'
14001     shlibpath_var=LD_LIBRARY_PATH
14002   fi
14003   ;;
14004
14005 uts4*)
14006   version_type=linux
14007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14008   soname_spec='${libname}${release}${shared_ext}$major'
14009   shlibpath_var=LD_LIBRARY_PATH
14010   ;;
14011
14012 *)
14013   dynamic_linker=no
14014   ;;
14015 esac
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14017 $as_echo "$dynamic_linker" >&6; }
14018 test "$dynamic_linker" = no && can_build_shared=no
14019
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14021 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14022 hardcode_action_F77=
14023 if test -n "$hardcode_libdir_flag_spec_F77" || \
14024    test -n "$runpath_var F77" || \
14025    test "X$hardcode_automatic_F77"="Xyes" ; then
14026
14027   # We can hardcode non-existant directories.
14028   if test "$hardcode_direct_F77" != no &&
14029      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14030      # have to relink, otherwise we might link with an installed library
14031      # when we should be linking with a yet-to-be-installed one
14032      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14033      test "$hardcode_minus_L_F77" != no; then
14034     # Linking always hardcodes the temporary library directory.
14035     hardcode_action_F77=relink
14036   else
14037     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14038     hardcode_action_F77=immediate
14039   fi
14040 else
14041   # We cannot hardcode anything, or else we can only hardcode existing
14042   # directories.
14043   hardcode_action_F77=unsupported
14044 fi
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14046 $as_echo "$hardcode_action_F77" >&6; }
14047
14048 if test "$hardcode_action_F77" = relink; then
14049   # Fast installation is not supported
14050   enable_fast_install=no
14051 elif test "$shlibpath_overrides_runpath" = yes ||
14052      test "$enable_shared" = no; then
14053   # Fast installation is not necessary
14054   enable_fast_install=needless
14055 fi
14056
14057 striplib=
14058 old_striplib=
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14060 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14061 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14062   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14063   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14065 $as_echo "yes" >&6; }
14066 else
14067 # FIXME - insert some real tests, host_os isn't really good enough
14068   case $host_os in
14069    darwin*)
14070        if test -n "$STRIP" ; then
14071          striplib="$STRIP -x"
14072          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14073 $as_echo "yes" >&6; }
14074        else
14075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14077 fi
14078        ;;
14079    *)
14080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 $as_echo "no" >&6; }
14082     ;;
14083   esac
14084 fi
14085
14086
14087
14088 # The else clause should only fire when bootstrapping the
14089 # libtool distribution, otherwise you forgot to ship ltmain.sh
14090 # with your package, and you will get complaints that there are
14091 # no rules to generate ltmain.sh.
14092 if test -f "$ltmain"; then
14093   # See if we are running on zsh, and set the options which allow our commands through
14094   # without removal of \ escapes.
14095   if test -n "${ZSH_VERSION+set}" ; then
14096     setopt NO_GLOB_SUBST
14097   fi
14098   # Now quote all the things that may contain metacharacters while being
14099   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14100   # variables and quote the copies for generation of the libtool script.
14101   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14102     SED SHELL STRIP \
14103     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14104     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14105     deplibs_check_method reload_flag reload_cmds need_locks \
14106     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14107     lt_cv_sys_global_symbol_to_c_name_address \
14108     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14109     old_postinstall_cmds old_postuninstall_cmds \
14110     compiler_F77 \
14111     CC_F77 \
14112     LD_F77 \
14113     lt_prog_compiler_wl_F77 \
14114     lt_prog_compiler_pic_F77 \
14115     lt_prog_compiler_static_F77 \
14116     lt_prog_compiler_no_builtin_flag_F77 \
14117     export_dynamic_flag_spec_F77 \
14118     thread_safe_flag_spec_F77 \
14119     whole_archive_flag_spec_F77 \
14120     enable_shared_with_static_runtimes_F77 \
14121     old_archive_cmds_F77 \
14122     old_archive_from_new_cmds_F77 \
14123     predep_objects_F77 \
14124     postdep_objects_F77 \
14125     predeps_F77 \
14126     postdeps_F77 \
14127     compiler_lib_search_path_F77 \
14128     archive_cmds_F77 \
14129     archive_expsym_cmds_F77 \
14130     postinstall_cmds_F77 \
14131     postuninstall_cmds_F77 \
14132     old_archive_from_expsyms_cmds_F77 \
14133     allow_undefined_flag_F77 \
14134     no_undefined_flag_F77 \
14135     export_symbols_cmds_F77 \
14136     hardcode_libdir_flag_spec_F77 \
14137     hardcode_libdir_flag_spec_ld_F77 \
14138     hardcode_libdir_separator_F77 \
14139     hardcode_automatic_F77 \
14140     module_cmds_F77 \
14141     module_expsym_cmds_F77 \
14142     lt_cv_prog_compiler_c_o_F77 \
14143     exclude_expsyms_F77 \
14144     include_expsyms_F77; do
14145
14146     case $var in
14147     old_archive_cmds_F77 | \
14148     old_archive_from_new_cmds_F77 | \
14149     archive_cmds_F77 | \
14150     archive_expsym_cmds_F77 | \
14151     module_cmds_F77 | \
14152     module_expsym_cmds_F77 | \
14153     old_archive_from_expsyms_cmds_F77 | \
14154     export_symbols_cmds_F77 | \
14155     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14156     postinstall_cmds | postuninstall_cmds | \
14157     old_postinstall_cmds | old_postuninstall_cmds | \
14158     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14159       # Double-quote double-evaled strings.
14160       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14161       ;;
14162     *)
14163       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14164       ;;
14165     esac
14166   done
14167
14168   case $lt_echo in
14169   *'\$0 --fallback-echo"')
14170     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14171     ;;
14172   esac
14173
14174 cfgfile="$ofile"
14175
14176   cat <<__EOF__ >> "$cfgfile"
14177 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14178
14179 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14180
14181 # Shell to use when invoking shell scripts.
14182 SHELL=$lt_SHELL
14183
14184 # Whether or not to build shared libraries.
14185 build_libtool_libs=$enable_shared
14186
14187 # Whether or not to build static libraries.
14188 build_old_libs=$enable_static
14189
14190 # Whether or not to add -lc for building shared libraries.
14191 build_libtool_need_lc=$archive_cmds_need_lc_F77
14192
14193 # Whether or not to disallow shared libs when runtime libs are static
14194 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14195
14196 # Whether or not to optimize for fast installation.
14197 fast_install=$enable_fast_install
14198
14199 # The host system.
14200 host_alias=$host_alias
14201 host=$host
14202
14203 # An echo program that does not interpret backslashes.
14204 echo=$lt_echo
14205
14206 # The archiver.
14207 AR=$lt_AR
14208 AR_FLAGS=$lt_AR_FLAGS
14209
14210 # A C compiler.
14211 LTCC=$lt_LTCC
14212
14213 # A language-specific compiler.
14214 CC=$lt_compiler_F77
14215
14216 # Is the compiler the GNU C compiler?
14217 with_gcc=$GCC_F77
14218
14219 # An ERE matcher.
14220 EGREP=$lt_EGREP
14221
14222 # The linker used to build libraries.
14223 LD=$lt_LD_F77
14224
14225 # Whether we need hard or soft links.
14226 LN_S=$lt_LN_S
14227
14228 # A BSD-compatible nm program.
14229 NM=$lt_NM
14230
14231 # A symbol stripping program
14232 STRIP=$lt_STRIP
14233
14234 # Used to examine libraries when file_magic_cmd begins "file"
14235 MAGIC_CMD=$MAGIC_CMD
14236
14237 # Used on cygwin: DLL creation program.
14238 DLLTOOL="$DLLTOOL"
14239
14240 # Used on cygwin: object dumper.
14241 OBJDUMP="$OBJDUMP"
14242
14243 # Used on cygwin: assembler.
14244 AS="$AS"
14245
14246 # The name of the directory that contains temporary libtool files.
14247 objdir=$objdir
14248
14249 # How to create reloadable object files.
14250 reload_flag=$lt_reload_flag
14251 reload_cmds=$lt_reload_cmds
14252
14253 # How to pass a linker flag through the compiler.
14254 wl=$lt_lt_prog_compiler_wl_F77
14255
14256 # Object file suffix (normally "o").
14257 objext="$ac_objext"
14258
14259 # Old archive suffix (normally "a").
14260 libext="$libext"
14261
14262 # Shared library suffix (normally ".so").
14263 shrext='$shrext'
14264
14265 # Executable file suffix (normally "").
14266 exeext="$exeext"
14267
14268 # Additional compiler flags for building library objects.
14269 pic_flag=$lt_lt_prog_compiler_pic_F77
14270 pic_mode=$pic_mode
14271
14272 # What is the maximum length of a command?
14273 max_cmd_len=$lt_cv_sys_max_cmd_len
14274
14275 # Does compiler simultaneously support -c and -o options?
14276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14277
14278 # Must we lock files when doing compilation ?
14279 need_locks=$lt_need_locks
14280
14281 # Do we need the lib prefix for modules?
14282 need_lib_prefix=$need_lib_prefix
14283
14284 # Do we need a version for libraries?
14285 need_version=$need_version
14286
14287 # Whether dlopen is supported.
14288 dlopen_support=$enable_dlopen
14289
14290 # Whether dlopen of programs is supported.
14291 dlopen_self=$enable_dlopen_self
14292
14293 # Whether dlopen of statically linked programs is supported.
14294 dlopen_self_static=$enable_dlopen_self_static
14295
14296 # Compiler flag to prevent dynamic linking.
14297 link_static_flag=$lt_lt_prog_compiler_static_F77
14298
14299 # Compiler flag to turn off builtin functions.
14300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14301
14302 # Compiler flag to allow reflexive dlopens.
14303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14304
14305 # Compiler flag to generate shared objects directly from archives.
14306 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14307
14308 # Compiler flag to generate thread-safe objects.
14309 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14310
14311 # Library versioning type.
14312 version_type=$version_type
14313
14314 # Format of library name prefix.
14315 libname_spec=$lt_libname_spec
14316
14317 # List of archive names.  First name is the real one, the rest are links.
14318 # The last name is the one that the linker finds with -lNAME.
14319 library_names_spec=$lt_library_names_spec
14320
14321 # The coded name of the library, if different from the real name.
14322 soname_spec=$lt_soname_spec
14323
14324 # Commands used to build and install an old-style archive.
14325 RANLIB=$lt_RANLIB
14326 old_archive_cmds=$lt_old_archive_cmds_F77
14327 old_postinstall_cmds=$lt_old_postinstall_cmds
14328 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14329
14330 # Create an old-style archive from a shared archive.
14331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14332
14333 # Create a temporary old-style archive to link instead of a shared archive.
14334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14335
14336 # Commands used to build and install a shared archive.
14337 archive_cmds=$lt_archive_cmds_F77
14338 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14339 postinstall_cmds=$lt_postinstall_cmds
14340 postuninstall_cmds=$lt_postuninstall_cmds
14341
14342 # Commands used to build a loadable module (assumed same as above if empty)
14343 module_cmds=$lt_module_cmds_F77
14344 module_expsym_cmds=$lt_module_expsym_cmds_F77
14345
14346 # Commands to strip libraries.
14347 old_striplib=$lt_old_striplib
14348 striplib=$lt_striplib
14349
14350 # Dependencies to place before the objects being linked to create a
14351 # shared library.
14352 predep_objects=$lt_predep_objects_F77
14353
14354 # Dependencies to place after the objects being linked to create a
14355 # shared library.
14356 postdep_objects=$lt_postdep_objects_F77
14357
14358 # Dependencies to place before the objects being linked to create a
14359 # shared library.
14360 predeps=$lt_predeps_F77
14361
14362 # Dependencies to place after the objects being linked to create a
14363 # shared library.
14364 postdeps=$lt_postdeps_F77
14365
14366 # The library search path used internally by the compiler when linking
14367 # a shared library.
14368 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14369
14370 # Method to check whether dependent libraries are shared objects.
14371 deplibs_check_method=$lt_deplibs_check_method
14372
14373 # Command to use when deplibs_check_method == file_magic.
14374 file_magic_cmd=$lt_file_magic_cmd
14375
14376 # Flag that allows shared libraries with undefined symbols to be built.
14377 allow_undefined_flag=$lt_allow_undefined_flag_F77
14378
14379 # Flag that forces no undefined symbols.
14380 no_undefined_flag=$lt_no_undefined_flag_F77
14381
14382 # Commands used to finish a libtool library installation in a directory.
14383 finish_cmds=$lt_finish_cmds
14384
14385 # Same as above, but a single script fragment to be evaled but not shown.
14386 finish_eval=$lt_finish_eval
14387
14388 # Take the output of nm and produce a listing of raw symbols and C names.
14389 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14390
14391 # Transform the output of nm in a proper C declaration
14392 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14393
14394 # Transform the output of nm in a C name address pair
14395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14396
14397 # This is the shared library runtime path variable.
14398 runpath_var=$runpath_var
14399
14400 # This is the shared library path variable.
14401 shlibpath_var=$shlibpath_var
14402
14403 # Is shlibpath searched before the hard-coded library search path?
14404 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14405
14406 # How to hardcode a shared library path into an executable.
14407 hardcode_action=$hardcode_action_F77
14408
14409 # Whether we should hardcode library paths into libraries.
14410 hardcode_into_libs=$hardcode_into_libs
14411
14412 # Flag to hardcode \$libdir into a binary during linking.
14413 # This must work even if \$libdir does not exist.
14414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14415
14416 # If ld is used when linking, flag to hardcode \$libdir into
14417 # a binary during linking. This must work even if \$libdir does
14418 # not exist.
14419 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14420
14421 # Whether we need a single -rpath flag with a separated argument.
14422 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14423
14424 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14425 # resulting binary.
14426 hardcode_direct=$hardcode_direct_F77
14427
14428 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14429 # resulting binary.
14430 hardcode_minus_L=$hardcode_minus_L_F77
14431
14432 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14433 # the resulting binary.
14434 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14435
14436 # Set to yes if building a shared library automatically hardcodes DIR into the library
14437 # and all subsequent libraries and executables linked against it.
14438 hardcode_automatic=$hardcode_automatic_F77
14439
14440 # Variables whose values should be saved in libtool wrapper scripts and
14441 # restored at relink time.
14442 variables_saved_for_relink="$variables_saved_for_relink"
14443
14444 # Whether libtool must link a program against all its dependency libraries.
14445 link_all_deplibs=$link_all_deplibs_F77
14446
14447 # Compile-time system search path for libraries
14448 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14449
14450 # Run-time system search path for libraries
14451 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14452
14453 # Fix the shell variable \$srcfile for the compiler.
14454 fix_srcfile_path="$fix_srcfile_path_F77"
14455
14456 # Set to yes if exported symbols are required.
14457 always_export_symbols=$always_export_symbols_F77
14458
14459 # The commands to list exported symbols.
14460 export_symbols_cmds=$lt_export_symbols_cmds_F77
14461
14462 # The commands to extract the exported symbol list from a shared archive.
14463 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14464
14465 # Symbols that should not be listed in the preloaded symbols.
14466 exclude_expsyms=$lt_exclude_expsyms_F77
14467
14468 # Symbols that must always be exported.
14469 include_expsyms=$lt_include_expsyms_F77
14470
14471 # ### END LIBTOOL TAG CONFIG: $tagname
14472
14473 __EOF__
14474
14475
14476 else
14477   # If there is no Makefile yet, we rely on a make rule to execute
14478   # `config.status --recheck' to rerun these tests and create the
14479   # libtool script then.
14480   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14481   if test -f "$ltmain_in"; then
14482     test -f Makefile && make "$ltmain"
14483   fi
14484 fi
14485
14486
14487 ac_ext=c
14488 ac_cpp='$CPP $CPPFLAGS'
14489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14492
14493 CC="$lt_save_CC"
14494
14495         else
14496           tagname=""
14497         fi
14498         ;;
14499
14500       GCJ)
14501         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14502
14503
14504 # Source file extension for Java test sources.
14505 ac_ext=java
14506
14507 # Object file extension for compiled Java test sources.
14508 objext=o
14509 objext_GCJ=$objext
14510
14511 # Code to be used in simple compile tests
14512 lt_simple_compile_test_code="class foo {}\n"
14513
14514 # Code to be used in simple link tests
14515 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14516
14517 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14518
14519 # If no C compiler was specified, use CC.
14520 LTCC=${LTCC-"$CC"}
14521
14522 # Allow CC to be a program name with arguments.
14523 compiler=$CC
14524
14525
14526 # Allow CC to be a program name with arguments.
14527 lt_save_CC="$CC"
14528 CC=${GCJ-"gcj"}
14529 compiler=$CC
14530 compiler_GCJ=$CC
14531
14532 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14533 archive_cmds_need_lc_GCJ=no
14534
14535 ## CAVEAT EMPTOR:
14536 ## There is no encapsulation within the following macros, do not change
14537 ## the running order or otherwise move them around unless you know exactly
14538 ## what you are doing...
14539
14540 lt_prog_compiler_no_builtin_flag_GCJ=
14541
14542 if test "$GCC" = yes; then
14543   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14544
14545
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14547 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14548 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14549   $as_echo_n "(cached) " >&6
14550 else
14551   lt_cv_prog_compiler_rtti_exceptions=no
14552   ac_outfile=conftest.$ac_objext
14553    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14554    lt_compiler_flag="-fno-rtti -fno-exceptions"
14555    # Insert the option either (1) after the last *FLAGS variable, or
14556    # (2) before a word containing "conftest.", or (3) at the end.
14557    # Note that $ac_compile itself does not contain backslashes and begins
14558    # with a dollar sign (not a hyphen), so the echo should work correctly.
14559    # The option is referenced via a variable to avoid confusing sed.
14560    lt_compile=`echo "$ac_compile" | $SED \
14561    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14562    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14563    -e 's:$: $lt_compiler_flag:'`
14564    (eval echo "\"\$as_me:14564: $lt_compile\"" >&5)
14565    (eval "$lt_compile" 2>conftest.err)
14566    ac_status=$?
14567    cat conftest.err >&5
14568    echo "$as_me:14568: \$? = $ac_status" >&5
14569    if (exit $ac_status) && test -s "$ac_outfile"; then
14570      # The compiler can only warn and ignore the option if not recognized
14571      # So say no if there are warnings
14572      if test ! -s conftest.err; then
14573        lt_cv_prog_compiler_rtti_exceptions=yes
14574      fi
14575    fi
14576    $rm conftest*
14577
14578 fi
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14580 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14581
14582 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14583     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14584 else
14585     :
14586 fi
14587
14588 fi
14589
14590 lt_prog_compiler_wl_GCJ=
14591 lt_prog_compiler_pic_GCJ=
14592 lt_prog_compiler_static_GCJ=
14593
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14595 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14596
14597   if test "$GCC" = yes; then
14598     lt_prog_compiler_wl_GCJ='-Wl,'
14599     lt_prog_compiler_static_GCJ='-static'
14600
14601     case $host_os in
14602       aix*)
14603       # All AIX code is PIC.
14604       if test "$host_cpu" = ia64; then
14605         # AIX 5 now supports IA64 processor
14606         lt_prog_compiler_static_GCJ='-Bstatic'
14607       fi
14608       ;;
14609
14610     amigaos*)
14611       # FIXME: we need at least 68020 code to build shared libraries, but
14612       # adding the `-m68020' flag to GCC prevents building anything better,
14613       # like `-m68040'.
14614       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14615       ;;
14616
14617     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14618       # PIC is the default for these OSes.
14619       ;;
14620
14621     mingw* | pw32* | os2*)
14622       # This hack is so that the source file can tell whether it is being
14623       # built for inclusion in a dll (and should export symbols for example).
14624       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14625       ;;
14626
14627     darwin* | rhapsody*)
14628       # PIC is the default on this platform
14629       # Common symbols not allowed in MH_DYLIB files
14630       lt_prog_compiler_pic_GCJ='-fno-common'
14631       ;;
14632
14633     msdosdjgpp*)
14634       # Just because we use GCC doesn't mean we suddenly get shared libraries
14635       # on systems that don't support them.
14636       lt_prog_compiler_can_build_shared_GCJ=no
14637       enable_shared=no
14638       ;;
14639
14640     sysv4*MP*)
14641       if test -d /usr/nec; then
14642         lt_prog_compiler_pic_GCJ=-Kconform_pic
14643       fi
14644       ;;
14645
14646     hpux*)
14647       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14648       # not for PA HP-UX.
14649       case "$host_cpu" in
14650       hppa*64*|ia64*)
14651         # +Z the default
14652         ;;
14653       *)
14654         lt_prog_compiler_pic_GCJ='-fPIC'
14655         ;;
14656       esac
14657       ;;
14658
14659     *)
14660       lt_prog_compiler_pic_GCJ='-fPIC'
14661       ;;
14662     esac
14663   else
14664     # PORTME Check for flag to pass linker flags through the system compiler.
14665     case $host_os in
14666     aix*)
14667       lt_prog_compiler_wl_GCJ='-Wl,'
14668       if test "$host_cpu" = ia64; then
14669         # AIX 5 now supports IA64 processor
14670         lt_prog_compiler_static_GCJ='-Bstatic'
14671       else
14672         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14673       fi
14674       ;;
14675
14676     mingw* | pw32* | os2*)
14677       # This hack is so that the source file can tell whether it is being
14678       # built for inclusion in a dll (and should export symbols for example).
14679       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14680       ;;
14681
14682     hpux9* | hpux10* | hpux11*)
14683       lt_prog_compiler_wl_GCJ='-Wl,'
14684       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14685       # not for PA HP-UX.
14686       case "$host_cpu" in
14687       hppa*64*|ia64*)
14688         # +Z the default
14689         ;;
14690       *)
14691         lt_prog_compiler_pic_GCJ='+Z'
14692         ;;
14693       esac
14694       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14695       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14696       ;;
14697
14698     irix5* | irix6* | nonstopux*)
14699       lt_prog_compiler_wl_GCJ='-Wl,'
14700       # PIC (with -KPIC) is the default.
14701       lt_prog_compiler_static_GCJ='-non_shared'
14702       ;;
14703
14704     newsos6)
14705       lt_prog_compiler_pic_GCJ='-KPIC'
14706       lt_prog_compiler_static_GCJ='-Bstatic'
14707       ;;
14708
14709     linux*)
14710       case $CC in
14711       icc* | ecc*)
14712         lt_prog_compiler_wl_GCJ='-Wl,'
14713         lt_prog_compiler_pic_GCJ='-KPIC'
14714         lt_prog_compiler_static_GCJ='-static'
14715         ;;
14716       ccc*)
14717         lt_prog_compiler_wl_GCJ='-Wl,'
14718         # All Alpha code is PIC.
14719         lt_prog_compiler_static_GCJ='-non_shared'
14720         ;;
14721       esac
14722       ;;
14723
14724     osf3* | osf4* | osf5*)
14725       lt_prog_compiler_wl_GCJ='-Wl,'
14726       # All OSF/1 code is PIC.
14727       lt_prog_compiler_static_GCJ='-non_shared'
14728       ;;
14729
14730     sco3.2v5*)
14731       lt_prog_compiler_pic_GCJ='-Kpic'
14732       lt_prog_compiler_static_GCJ='-dn'
14733       ;;
14734
14735     solaris*)
14736       lt_prog_compiler_wl_GCJ='-Wl,'
14737       lt_prog_compiler_pic_GCJ='-KPIC'
14738       lt_prog_compiler_static_GCJ='-Bstatic'
14739       ;;
14740
14741     sunos4*)
14742       lt_prog_compiler_wl_GCJ='-Qoption ld '
14743       lt_prog_compiler_pic_GCJ='-PIC'
14744       lt_prog_compiler_static_GCJ='-Bstatic'
14745       ;;
14746
14747     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14748       lt_prog_compiler_wl_GCJ='-Wl,'
14749       lt_prog_compiler_pic_GCJ='-KPIC'
14750       lt_prog_compiler_static_GCJ='-Bstatic'
14751       ;;
14752
14753     sysv4*MP*)
14754       if test -d /usr/nec ;then
14755         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14756         lt_prog_compiler_static_GCJ='-Bstatic'
14757       fi
14758       ;;
14759
14760     uts4*)
14761       lt_prog_compiler_pic_GCJ='-pic'
14762       lt_prog_compiler_static_GCJ='-Bstatic'
14763       ;;
14764
14765     *)
14766       lt_prog_compiler_can_build_shared_GCJ=no
14767       ;;
14768     esac
14769   fi
14770
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
14772 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
14773
14774 #
14775 # Check to make sure the PIC flag actually works.
14776 #
14777 if test -n "$lt_prog_compiler_pic_GCJ"; then
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14780 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
14781 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
14782   $as_echo_n "(cached) " >&6
14783 else
14784   lt_prog_compiler_pic_works_GCJ=no
14785   ac_outfile=conftest.$ac_objext
14786    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14787    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14788    # Insert the option either (1) after the last *FLAGS variable, or
14789    # (2) before a word containing "conftest.", or (3) at the end.
14790    # Note that $ac_compile itself does not contain backslashes and begins
14791    # with a dollar sign (not a hyphen), so the echo should work correctly.
14792    # The option is referenced via a variable to avoid confusing sed.
14793    lt_compile=`echo "$ac_compile" | $SED \
14794    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14795    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14796    -e 's:$: $lt_compiler_flag:'`
14797    (eval echo "\"\$as_me:14797: $lt_compile\"" >&5)
14798    (eval "$lt_compile" 2>conftest.err)
14799    ac_status=$?
14800    cat conftest.err >&5
14801    echo "$as_me:14801: \$? = $ac_status" >&5
14802    if (exit $ac_status) && test -s "$ac_outfile"; then
14803      # The compiler can only warn and ignore the option if not recognized
14804      # So say no if there are warnings
14805      if test ! -s conftest.err; then
14806        lt_prog_compiler_pic_works_GCJ=yes
14807      fi
14808    fi
14809    $rm conftest*
14810
14811 fi
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
14813 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
14814
14815 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14816     case $lt_prog_compiler_pic_GCJ in
14817      "" | " "*) ;;
14818      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14819      esac
14820 else
14821     lt_prog_compiler_pic_GCJ=
14822      lt_prog_compiler_can_build_shared_GCJ=no
14823 fi
14824
14825 fi
14826 case "$host_os" in
14827   # For platforms which do not support PIC, -DPIC is meaningless:
14828   *djgpp*)
14829     lt_prog_compiler_pic_GCJ=
14830     ;;
14831   *)
14832     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14833     ;;
14834 esac
14835
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14838 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
14839   $as_echo_n "(cached) " >&6
14840 else
14841   lt_cv_prog_compiler_c_o_GCJ=no
14842    $rm -r conftest 2>/dev/null
14843    mkdir conftest
14844    cd conftest
14845    mkdir out
14846    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14847
14848    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14849    # that will create temporary files in the current directory regardless of
14850    # the output directory.  Thus, making CWD read-only will cause this test
14851    # to fail, enabling locking or at least warning the user not to do parallel
14852    # builds.
14853    chmod -w .
14854
14855    lt_compiler_flag="-o out/conftest2.$ac_objext"
14856    # Insert the option either (1) after the last *FLAGS variable, or
14857    # (2) before a word containing "conftest.", or (3) at the end.
14858    # Note that $ac_compile itself does not contain backslashes and begins
14859    # with a dollar sign (not a hyphen), so the echo should work correctly.
14860    lt_compile=`echo "$ac_compile" | $SED \
14861    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14863    -e 's:$: $lt_compiler_flag:'`
14864    (eval echo "\"\$as_me:14864: $lt_compile\"" >&5)
14865    (eval "$lt_compile" 2>out/conftest.err)
14866    ac_status=$?
14867    cat out/conftest.err >&5
14868    echo "$as_me:14868: \$? = $ac_status" >&5
14869    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14870    then
14871      # The compiler can only warn and ignore the option if not recognized
14872      # So say no if there are warnings
14873      if test ! -s out/conftest.err; then
14874        lt_cv_prog_compiler_c_o_GCJ=yes
14875      fi
14876    fi
14877    chmod u+w .
14878    $rm conftest*
14879    # SGI C++ compiler will create directory out/ii_files/ for
14880    # template instantiation
14881    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14882    $rm out/* && rmdir out
14883    cd ..
14884    rmdir conftest
14885    $rm conftest*
14886
14887 fi
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14889 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
14890
14891
14892 hard_links="nottested"
14893 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14894   # do not overwrite the value of need_locks provided by the user
14895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14896 $as_echo_n "checking if we can lock with hard links... " >&6; }
14897   hard_links=yes
14898   $rm conftest*
14899   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14900   touch conftest.a
14901   ln conftest.a conftest.b 2>&5 || hard_links=no
14902   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14904 $as_echo "$hard_links" >&6; }
14905   if test "$hard_links" = no; then
14906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14907 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14908     need_locks=warn
14909   fi
14910 else
14911   need_locks=no
14912 fi
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14915 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14916
14917   runpath_var=
14918   allow_undefined_flag_GCJ=
14919   enable_shared_with_static_runtimes_GCJ=no
14920   archive_cmds_GCJ=
14921   archive_expsym_cmds_GCJ=
14922   old_archive_From_new_cmds_GCJ=
14923   old_archive_from_expsyms_cmds_GCJ=
14924   export_dynamic_flag_spec_GCJ=
14925   whole_archive_flag_spec_GCJ=
14926   thread_safe_flag_spec_GCJ=
14927   hardcode_libdir_flag_spec_GCJ=
14928   hardcode_libdir_flag_spec_ld_GCJ=
14929   hardcode_libdir_separator_GCJ=
14930   hardcode_direct_GCJ=no
14931   hardcode_minus_L_GCJ=no
14932   hardcode_shlibpath_var_GCJ=unsupported
14933   link_all_deplibs_GCJ=unknown
14934   hardcode_automatic_GCJ=no
14935   module_cmds_GCJ=
14936   module_expsym_cmds_GCJ=
14937   always_export_symbols_GCJ=no
14938   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14939   # include_expsyms should be a list of space-separated symbols to be *always*
14940   # included in the symbol list
14941   include_expsyms_GCJ=
14942   # exclude_expsyms can be an extended regexp of symbols to exclude
14943   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14944   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14945   # as well as any symbol that contains `d'.
14946   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14947   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14948   # platforms (ab)use it in PIC code, but their linkers get confused if
14949   # the symbol is explicitly referenced.  Since portable code cannot
14950   # rely on this symbol name, it's probably fine to never include it in
14951   # preloaded symbol tables.
14952   extract_expsyms_cmds=
14953
14954   case $host_os in
14955   cygwin* | mingw* | pw32*)
14956     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14957     # When not using gcc, we currently assume that we are using
14958     # Microsoft Visual C++.
14959     if test "$GCC" != yes; then
14960       with_gnu_ld=no
14961     fi
14962     ;;
14963   openbsd*)
14964     with_gnu_ld=no
14965     ;;
14966   esac
14967
14968   ld_shlibs_GCJ=yes
14969   if test "$with_gnu_ld" = yes; then
14970     # If archive_cmds runs LD, not CC, wlarc should be empty
14971     wlarc='${wl}'
14972
14973     # See if GNU ld supports shared libraries.
14974     case $host_os in
14975     aix3* | aix4* | aix5*)
14976       # On AIX/PPC, the GNU linker is very broken
14977       if test "$host_cpu" != ia64; then
14978         ld_shlibs_GCJ=no
14979         cat <<EOF 1>&2
14980
14981 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14982 *** to be unable to reliably create shared libraries on AIX.
14983 *** Therefore, libtool is disabling shared libraries support.  If you
14984 *** really care for shared libraries, you may want to modify your PATH
14985 *** so that a non-GNU linker is found, and then restart.
14986
14987 EOF
14988       fi
14989       ;;
14990
14991     amigaos*)
14992       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)'
14993       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14994       hardcode_minus_L_GCJ=yes
14995
14996       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14997       # that the semantics of dynamic libraries on AmigaOS, at least up
14998       # to version 4, is to share data among multiple programs linked
14999       # with the same dynamic library.  Since this doesn't match the
15000       # behavior of shared libraries on other platforms, we can't use
15001       # them.
15002       ld_shlibs_GCJ=no
15003       ;;
15004
15005     beos*)
15006       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15007         allow_undefined_flag_GCJ=unsupported
15008         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15009         # support --undefined.  This deserves some investigation.  FIXME
15010         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15011       else
15012         ld_shlibs_GCJ=no
15013       fi
15014       ;;
15015
15016     cygwin* | mingw* | pw32*)
15017       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15018       # as there is no search path for DLLs.
15019       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15020       allow_undefined_flag_GCJ=unsupported
15021       always_export_symbols_GCJ=no
15022       enable_shared_with_static_runtimes_GCJ=yes
15023       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15024
15025       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15026         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15027         # If the export-symbols file already is a .def file (1st line
15028         # is EXPORTS), use it as is; otherwise, prepend...
15029         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15030           cp $export_symbols $output_objdir/$soname.def;
15031         else
15032           echo EXPORTS > $output_objdir/$soname.def;
15033           cat $export_symbols >> $output_objdir/$soname.def;
15034         fi~
15035         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15036       else
15037         ld_shlibs=no
15038       fi
15039       ;;
15040
15041     netbsd*)
15042       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15043         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15044         wlarc=
15045       else
15046         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15047         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15048       fi
15049       ;;
15050
15051     solaris* | sysv5*)
15052       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15053         ld_shlibs_GCJ=no
15054         cat <<EOF 1>&2
15055
15056 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15057 *** create shared libraries on Solaris systems.  Therefore, libtool
15058 *** is disabling shared libraries support.  We urge you to upgrade GNU
15059 *** binutils to release 2.9.1 or newer.  Another option is to modify
15060 *** your PATH or compiler configuration so that the native linker is
15061 *** used, and then restart.
15062
15063 EOF
15064       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15065         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15067       else
15068         ld_shlibs_GCJ=no
15069       fi
15070       ;;
15071
15072     sunos4*)
15073       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15074       wlarc=
15075       hardcode_direct_GCJ=yes
15076       hardcode_shlibpath_var_GCJ=no
15077       ;;
15078
15079   linux*)
15080     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15081         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15082         archive_cmds_GCJ="$tmp_archive_cmds"
15083       supports_anon_versioning=no
15084       case `$LD -v 2>/dev/null` in
15085         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15086         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15087         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15088         *\ 2.11.*) ;; # other 2.11 versions
15089         *) supports_anon_versioning=yes ;;
15090       esac
15091       if test $supports_anon_versioning = yes; then
15092         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15093 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15094 $echo "local: *; };" >> $output_objdir/$libname.ver~
15095         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15096       else
15097         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15098       fi
15099     else
15100       ld_shlibs_GCJ=no
15101     fi
15102     ;;
15103
15104     *)
15105       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15106         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15107         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15108       else
15109         ld_shlibs_GCJ=no
15110       fi
15111       ;;
15112     esac
15113
15114     if test "$ld_shlibs_GCJ" = yes; then
15115       runpath_var=LD_RUN_PATH
15116       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15117       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15118       # ancient GNU ld didn't support --whole-archive et. al.
15119       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15120         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15121       else
15122         whole_archive_flag_spec_GCJ=
15123       fi
15124     fi
15125   else
15126     # PORTME fill in a description of your system's linker (not GNU ld)
15127     case $host_os in
15128     aix3*)
15129       allow_undefined_flag_GCJ=unsupported
15130       always_export_symbols_GCJ=yes
15131       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'
15132       # Note: this linker hardcodes the directories in LIBPATH if there
15133       # are no directories specified by -L.
15134       hardcode_minus_L_GCJ=yes
15135       if test "$GCC" = yes && test -z "$link_static_flag"; then
15136         # Neither direct hardcoding nor static linking is supported with a
15137         # broken collect2.
15138         hardcode_direct_GCJ=unsupported
15139       fi
15140       ;;
15141
15142     aix4* | aix5*)
15143       if test "$host_cpu" = ia64; then
15144         # On IA64, the linker does run time linking by default, so we don't
15145         # have to do anything special.
15146         aix_use_runtimelinking=no
15147         exp_sym_flag='-Bexport'
15148         no_entry_flag=""
15149       else
15150         # If we're using GNU nm, then we don't want the "-C" option.
15151         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15152         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15153           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'
15154         else
15155           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'
15156         fi
15157         aix_use_runtimelinking=no
15158
15159         # Test if we are trying to use run time linking or normal
15160         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15161         # need to do runtime linking.
15162         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15163           for ld_flag in $LDFLAGS; do
15164           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15165             aix_use_runtimelinking=yes
15166             break
15167           fi
15168           done
15169         esac
15170
15171         exp_sym_flag='-bexport'
15172         no_entry_flag='-bnoentry'
15173       fi
15174
15175       # When large executables or shared objects are built, AIX ld can
15176       # have problems creating the table of contents.  If linking a library
15177       # or program results in "error TOC overflow" add -mminimal-toc to
15178       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15179       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15180
15181       archive_cmds_GCJ=''
15182       hardcode_direct_GCJ=yes
15183       hardcode_libdir_separator_GCJ=':'
15184       link_all_deplibs_GCJ=yes
15185
15186       if test "$GCC" = yes; then
15187         case $host_os in aix4.012|aix4.012.*)
15188         # We only want to do this on AIX 4.2 and lower, the check
15189         # below for broken collect2 doesn't work under 4.3+
15190           collect2name=`${CC} -print-prog-name=collect2`
15191           if test -f "$collect2name" && \
15192            strings "$collect2name" | grep resolve_lib_name >/dev/null
15193           then
15194           # We have reworked collect2
15195           hardcode_direct_GCJ=yes
15196           else
15197           # We have old collect2
15198           hardcode_direct_GCJ=unsupported
15199           # It fails to find uninstalled libraries when the uninstalled
15200           # path is not listed in the libpath.  Setting hardcode_minus_L
15201           # to unsupported forces relinking
15202           hardcode_minus_L_GCJ=yes
15203           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15204           hardcode_libdir_separator_GCJ=
15205           fi
15206         esac
15207         shared_flag='-shared'
15208       else
15209         # not using gcc
15210         if test "$host_cpu" = ia64; then
15211         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15212         # chokes on -Wl,-G. The following line is correct:
15213           shared_flag='-G'
15214         else
15215         if test "$aix_use_runtimelinking" = yes; then
15216             shared_flag='${wl}-G'
15217           else
15218             shared_flag='${wl}-bM:SRE'
15219         fi
15220         fi
15221       fi
15222
15223       # It seems that -bexpall does not export symbols beginning with
15224       # underscore (_), so it is better to generate a list of symbols to export.
15225       always_export_symbols_GCJ=yes
15226       if test "$aix_use_runtimelinking" = yes; then
15227         # Warning - without using the other runtime loading flags (-brtl),
15228         # -berok will link without error, but may produce a broken library.
15229         allow_undefined_flag_GCJ='-berok'
15230        # Determine the default libpath from the value encoded in an empty executable.
15231        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h.  */
15233
15234 int
15235 main ()
15236 {
15237
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 if ac_fn_c_try_link "$LINENO"; then :
15243
15244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15245 }'`
15246 # Check for a 64-bit object if we didn't find anything.
15247 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; }
15248 }'`; fi
15249 fi
15250 rm -f core conftest.err conftest.$ac_objext \
15251     conftest$ac_exeext conftest.$ac_ext
15252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15253
15254        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15255         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"
15256        else
15257         if test "$host_cpu" = ia64; then
15258           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15259           allow_undefined_flag_GCJ="-z nodefs"
15260           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"
15261         else
15262          # Determine the default libpath from the value encoded in an empty executable.
15263          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h.  */
15265
15266 int
15267 main ()
15268 {
15269
15270   ;
15271   return 0;
15272 }
15273 _ACEOF
15274 if ac_fn_c_try_link "$LINENO"; then :
15275
15276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15277 }'`
15278 # Check for a 64-bit object if we didn't find anything.
15279 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; }
15280 }'`; fi
15281 fi
15282 rm -f core conftest.err conftest.$ac_objext \
15283     conftest$ac_exeext conftest.$ac_ext
15284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15285
15286          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15287           # Warning - without using the other run time loading flags,
15288           # -berok will link without error, but may produce a broken library.
15289           no_undefined_flag_GCJ=' ${wl}-bernotok'
15290           allow_undefined_flag_GCJ=' ${wl}-berok'
15291           # -bexpall does not export symbols beginning with underscore (_)
15292           always_export_symbols_GCJ=yes
15293           # Exported symbols can be pulled into shared objects from archives
15294           whole_archive_flag_spec_GCJ=' '
15295           archive_cmds_need_lc_GCJ=yes
15296           # This is similar to how AIX traditionally builds it's shared libraries.
15297           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'
15298         fi
15299       fi
15300       ;;
15301
15302     amigaos*)
15303       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)'
15304       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15305       hardcode_minus_L_GCJ=yes
15306       # see comment about different semantics on the GNU ld section
15307       ld_shlibs_GCJ=no
15308       ;;
15309
15310     bsdi4*)
15311       export_dynamic_flag_spec_GCJ=-rdynamic
15312       ;;
15313
15314     cygwin* | mingw* | pw32*)
15315       # When not using gcc, we currently assume that we are using
15316       # Microsoft Visual C++.
15317       # hardcode_libdir_flag_spec is actually meaningless, as there is
15318       # no search path for DLLs.
15319       hardcode_libdir_flag_spec_GCJ=' '
15320       allow_undefined_flag_GCJ=unsupported
15321       # Tell ltmain to make .lib files, not .a files.
15322       libext=lib
15323       # Tell ltmain to make .dll files, not .so files.
15324       shrext=".dll"
15325       # FIXME: Setting linknames here is a bad hack.
15326       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15327       # The linker will automatically build a .lib file if we build a DLL.
15328       old_archive_From_new_cmds_GCJ='true'
15329       # FIXME: Should let the user specify the lib program.
15330       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15331       fix_srcfile_path='`cygpath -w "$srcfile"`'
15332       enable_shared_with_static_runtimes_GCJ=yes
15333       ;;
15334
15335     darwin* | rhapsody*)
15336     if test "$GXX" = yes ; then
15337       archive_cmds_need_lc_GCJ=no
15338       case "$host_os" in
15339       rhapsody* | darwin1.[012])
15340         allow_undefined_flag_GCJ='-undefined suppress'
15341         ;;
15342       *) # Darwin 1.3 on
15343       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15344         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15345       else
15346         case ${MACOSX_DEPLOYMENT_TARGET} in
15347           10.[012])
15348             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15349             ;;
15350           10.*)
15351             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15352             ;;
15353         esac
15354       fi
15355         ;;
15356       esac
15357         lt_int_apple_cc_single_mod=no
15358         output_verbose_link_cmd='echo'
15359         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15360           lt_int_apple_cc_single_mod=yes
15361         fi
15362         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15363           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15364         else
15365         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'
15366       fi
15367       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15368       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15369         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15370           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}'
15371         else
15372           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}'
15373         fi
15374           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}'
15375       hardcode_direct_GCJ=no
15376       hardcode_automatic_GCJ=yes
15377       hardcode_shlibpath_var_GCJ=unsupported
15378       whole_archive_flag_spec_GCJ='-all_load $convenience'
15379       link_all_deplibs_GCJ=yes
15380     else
15381       ld_shlibs_GCJ=no
15382     fi
15383       ;;
15384
15385     dgux*)
15386       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15387       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15388       hardcode_shlibpath_var_GCJ=no
15389       ;;
15390
15391     freebsd1*)
15392       ld_shlibs_GCJ=no
15393       ;;
15394
15395     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15396     # support.  Future versions do this automatically, but an explicit c++rt0.o
15397     # does not break anything, and helps significantly (at the cost of a little
15398     # extra space).
15399     freebsd2.2*)
15400       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15401       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15402       hardcode_direct_GCJ=yes
15403       hardcode_shlibpath_var_GCJ=no
15404       ;;
15405
15406     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15407     freebsd2*)
15408       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15409       hardcode_direct_GCJ=yes
15410       hardcode_minus_L_GCJ=yes
15411       hardcode_shlibpath_var_GCJ=no
15412       ;;
15413
15414     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15415     freebsd* | kfreebsd*-gnu)
15416       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15417       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15418       hardcode_direct_GCJ=yes
15419       hardcode_shlibpath_var_GCJ=no
15420       ;;
15421
15422     hpux9*)
15423       if test "$GCC" = yes; then
15424         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'
15425       else
15426         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'
15427       fi
15428       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15429       hardcode_libdir_separator_GCJ=:
15430       hardcode_direct_GCJ=yes
15431
15432       # hardcode_minus_L: Not really in the search PATH,
15433       # but as the default location of the library.
15434       hardcode_minus_L_GCJ=yes
15435       export_dynamic_flag_spec_GCJ='${wl}-E'
15436       ;;
15437
15438     hpux10* | hpux11*)
15439       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15440         case "$host_cpu" in
15441         hppa*64*|ia64*)
15442           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15443           ;;
15444         *)
15445           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15446           ;;
15447         esac
15448       else
15449         case "$host_cpu" in
15450         hppa*64*|ia64*)
15451           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15452           ;;
15453         *)
15454           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15455           ;;
15456         esac
15457       fi
15458       if test "$with_gnu_ld" = no; then
15459         case "$host_cpu" in
15460         hppa*64*)
15461           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15462           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15463           hardcode_libdir_separator_GCJ=:
15464           hardcode_direct_GCJ=no
15465           hardcode_shlibpath_var_GCJ=no
15466           ;;
15467         ia64*)
15468           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15469           hardcode_direct_GCJ=no
15470           hardcode_shlibpath_var_GCJ=no
15471
15472           # hardcode_minus_L: Not really in the search PATH,
15473           # but as the default location of the library.
15474           hardcode_minus_L_GCJ=yes
15475           ;;
15476         *)
15477           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15478           hardcode_libdir_separator_GCJ=:
15479           hardcode_direct_GCJ=yes
15480           export_dynamic_flag_spec_GCJ='${wl}-E'
15481
15482           # hardcode_minus_L: Not really in the search PATH,
15483           # but as the default location of the library.
15484           hardcode_minus_L_GCJ=yes
15485           ;;
15486         esac
15487       fi
15488       ;;
15489
15490     irix5* | irix6* | nonstopux*)
15491       if test "$GCC" = yes; then
15492         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'
15493       else
15494         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'
15495         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15496       fi
15497       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15498       hardcode_libdir_separator_GCJ=:
15499       link_all_deplibs_GCJ=yes
15500       ;;
15501
15502     netbsd*)
15503       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15504         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15505       else
15506         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15507       fi
15508       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15509       hardcode_direct_GCJ=yes
15510       hardcode_shlibpath_var_GCJ=no
15511       ;;
15512
15513     newsos6)
15514       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15515       hardcode_direct_GCJ=yes
15516       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15517       hardcode_libdir_separator_GCJ=:
15518       hardcode_shlibpath_var_GCJ=no
15519       ;;
15520
15521     openbsd*)
15522       hardcode_direct_GCJ=yes
15523       hardcode_shlibpath_var_GCJ=no
15524       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15525         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15526         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15527         export_dynamic_flag_spec_GCJ='${wl}-E'
15528       else
15529        case $host_os in
15530          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15531            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15532            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15533            ;;
15534          *)
15535            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15536            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15537            ;;
15538        esac
15539       fi
15540       ;;
15541
15542     os2*)
15543       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15544       hardcode_minus_L_GCJ=yes
15545       allow_undefined_flag_GCJ=unsupported
15546       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'
15547       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15548       ;;
15549
15550     osf3*)
15551       if test "$GCC" = yes; then
15552         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15553         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'
15554       else
15555         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15556         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'
15557       fi
15558       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15559       hardcode_libdir_separator_GCJ=:
15560       ;;
15561
15562     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15563       if test "$GCC" = yes; then
15564         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15565         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'
15566         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15567       else
15568         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15569         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'
15570         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~
15571         $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'
15572
15573         # Both c and cxx compiler support -rpath directly
15574         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15575       fi
15576       hardcode_libdir_separator_GCJ=:
15577       ;;
15578
15579     sco3.2v5*)
15580       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581       hardcode_shlibpath_var_GCJ=no
15582       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15583       runpath_var=LD_RUN_PATH
15584       hardcode_runpath_var=yes
15585       ;;
15586
15587     solaris*)
15588       no_undefined_flag_GCJ=' -z text'
15589       if test "$GCC" = yes; then
15590         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15591         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15592           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15593       else
15594         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15596         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15597       fi
15598       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15599       hardcode_shlibpath_var_GCJ=no
15600       case $host_os in
15601       solaris2.[0-5] | solaris2.[0-5].*) ;;
15602       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15603         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15604       esac
15605       link_all_deplibs_GCJ=yes
15606       ;;
15607
15608     sunos4*)
15609       if test "x$host_vendor" = xsequent; then
15610         # Use $CC to link under sequent, because it throws in some extra .o
15611         # files that make .init and .fini sections work.
15612         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15613       else
15614         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15615       fi
15616       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15617       hardcode_direct_GCJ=yes
15618       hardcode_minus_L_GCJ=yes
15619       hardcode_shlibpath_var_GCJ=no
15620       ;;
15621
15622     sysv4)
15623       case $host_vendor in
15624         sni)
15625           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626           hardcode_direct_GCJ=yes # is this really true???
15627         ;;
15628         siemens)
15629           ## LD is ld it makes a PLAMLIB
15630           ## CC just makes a GrossModule.
15631           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15632           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15633           hardcode_direct_GCJ=no
15634         ;;
15635         motorola)
15636           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15637           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15638         ;;
15639       esac
15640       runpath_var='LD_RUN_PATH'
15641       hardcode_shlibpath_var_GCJ=no
15642       ;;
15643
15644     sysv4.3*)
15645       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15646       hardcode_shlibpath_var_GCJ=no
15647       export_dynamic_flag_spec_GCJ='-Bexport'
15648       ;;
15649
15650     sysv4*MP*)
15651       if test -d /usr/nec; then
15652         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15653         hardcode_shlibpath_var_GCJ=no
15654         runpath_var=LD_RUN_PATH
15655         hardcode_runpath_var=yes
15656         ld_shlibs_GCJ=yes
15657       fi
15658       ;;
15659
15660     sysv4.2uw2*)
15661       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15662       hardcode_direct_GCJ=yes
15663       hardcode_minus_L_GCJ=no
15664       hardcode_shlibpath_var_GCJ=no
15665       hardcode_runpath_var=yes
15666       runpath_var=LD_RUN_PATH
15667       ;;
15668
15669    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15670       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15671       if test "$GCC" = yes; then
15672         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15673       else
15674         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15675       fi
15676       runpath_var='LD_RUN_PATH'
15677       hardcode_shlibpath_var_GCJ=no
15678       ;;
15679
15680     sysv5*)
15681       no_undefined_flag_GCJ=' -z text'
15682       # $CC -shared without GNU ld will not create a library from C++
15683       # object files and a static libstdc++, better avoid it by now
15684       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15686                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15687       hardcode_libdir_flag_spec_GCJ=
15688       hardcode_shlibpath_var_GCJ=no
15689       runpath_var='LD_RUN_PATH'
15690       ;;
15691
15692     uts4*)
15693       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15694       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15695       hardcode_shlibpath_var_GCJ=no
15696       ;;
15697
15698     *)
15699       ld_shlibs_GCJ=no
15700       ;;
15701     esac
15702   fi
15703
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
15705 $as_echo "$ld_shlibs_GCJ" >&6; }
15706 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15707
15708 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15709 if test "$GCC" = yes; then
15710   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15711 fi
15712
15713 #
15714 # Do we need to explicitly link libc?
15715 #
15716 case "x$archive_cmds_need_lc_GCJ" in
15717 x|xyes)
15718   # Assume -lc should be added
15719   archive_cmds_need_lc_GCJ=yes
15720
15721   if test "$enable_shared" = yes && test "$GCC" = yes; then
15722     case $archive_cmds_GCJ in
15723     *'~'*)
15724       # FIXME: we may have to deal with multi-command sequences.
15725       ;;
15726     '$CC '*)
15727       # Test whether the compiler implicitly links with -lc since on some
15728       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15729       # to ld, don't add -lc before -lgcc.
15730       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15731 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15732       $rm conftest*
15733       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15734
15735       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15736   (eval $ac_compile) 2>&5
15737   ac_status=$?
15738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15739   test $ac_status = 0; } 2>conftest.err; then
15740         soname=conftest
15741         lib=conftest
15742         libobjs=conftest.$ac_objext
15743         deplibs=
15744         wl=$lt_prog_compiler_wl_GCJ
15745         compiler_flags=-v
15746         linker_flags=-v
15747         verstring=
15748         output_objdir=.
15749         libname=conftest
15750         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15751         allow_undefined_flag_GCJ=
15752         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15753   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15754   ac_status=$?
15755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15756   test $ac_status = 0; }
15757         then
15758           archive_cmds_need_lc_GCJ=no
15759         else
15760           archive_cmds_need_lc_GCJ=yes
15761         fi
15762         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15763       else
15764         cat conftest.err 1>&5
15765       fi
15766       $rm conftest*
15767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
15768 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
15769       ;;
15770     esac
15771   fi
15772   ;;
15773 esac
15774
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15776 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15777 library_names_spec=
15778 libname_spec='lib$name'
15779 soname_spec=
15780 shrext=".so"
15781 postinstall_cmds=
15782 postuninstall_cmds=
15783 finish_cmds=
15784 finish_eval=
15785 shlibpath_var=
15786 shlibpath_overrides_runpath=unknown
15787 version_type=none
15788 dynamic_linker="$host_os ld.so"
15789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15790 if test "$GCC" = yes; then
15791   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15792   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15793     # if the path contains ";" then we assume it to be the separator
15794     # otherwise default to the standard path separator (i.e. ":") - it is
15795     # assumed that no part of a normal pathname contains ";" but that should
15796     # okay in the real world where ";" in dirpaths is itself problematic.
15797     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15798   else
15799     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15800   fi
15801 else
15802   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15803 fi
15804 need_lib_prefix=unknown
15805 hardcode_into_libs=no
15806
15807 # when you set need_version to no, make sure it does not cause -set_version
15808 # flags to be left without arguments
15809 need_version=unknown
15810
15811 case $host_os in
15812 aix3*)
15813   version_type=linux
15814   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15815   shlibpath_var=LIBPATH
15816
15817   # AIX 3 has no versioning support, so we append a major version to the name.
15818   soname_spec='${libname}${release}${shared_ext}$major'
15819   ;;
15820
15821 aix4* | aix5*)
15822   version_type=linux
15823   need_lib_prefix=no
15824   need_version=no
15825   hardcode_into_libs=yes
15826   if test "$host_cpu" = ia64; then
15827     # AIX 5 supports IA64
15828     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15829     shlibpath_var=LD_LIBRARY_PATH
15830   else
15831     # With GCC up to 2.95.x, collect2 would create an import file
15832     # for dependence libraries.  The import file would start with
15833     # the line `#! .'.  This would cause the generated library to
15834     # depend on `.', always an invalid library.  This was fixed in
15835     # development snapshots of GCC prior to 3.0.
15836     case $host_os in
15837       aix4 | aix4.[01] | aix4.[01].*)
15838       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15839            echo ' yes '
15840            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15841         :
15842       else
15843         can_build_shared=no
15844       fi
15845       ;;
15846     esac
15847     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15848     # soname into executable. Probably we can add versioning support to
15849     # collect2, so additional links can be useful in future.
15850     if test "$aix_use_runtimelinking" = yes; then
15851       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15852       # instead of lib<name>.a to let people know that these are not
15853       # typical AIX shared libraries.
15854       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855     else
15856       # We preserve .a as extension for shared libraries through AIX4.2
15857       # and later when we are not doing run time linking.
15858       library_names_spec='${libname}${release}.a $libname.a'
15859       soname_spec='${libname}${release}${shared_ext}$major'
15860     fi
15861     shlibpath_var=LIBPATH
15862   fi
15863   ;;
15864
15865 amigaos*)
15866   library_names_spec='$libname.ixlibrary $libname.a'
15867   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15868   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'
15869   ;;
15870
15871 beos*)
15872   library_names_spec='${libname}${shared_ext}'
15873   dynamic_linker="$host_os ld.so"
15874   shlibpath_var=LIBRARY_PATH
15875   ;;
15876
15877 bsdi4*)
15878   version_type=linux
15879   need_version=no
15880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15881   soname_spec='${libname}${release}${shared_ext}$major'
15882   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15883   shlibpath_var=LD_LIBRARY_PATH
15884   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15885   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15886   # the default ld.so.conf also contains /usr/contrib/lib and
15887   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15888   # libtool to hard-code these into programs
15889   ;;
15890
15891 cygwin* | mingw* | pw32*)
15892   version_type=windows
15893   shrext=".dll"
15894   need_version=no
15895   need_lib_prefix=no
15896
15897   case $GCC,$host_os in
15898   yes,cygwin* | yes,mingw* | yes,pw32*)
15899     library_names_spec='$libname.dll.a'
15900     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15901     postinstall_cmds='base_file=`basename \${file}`~
15902       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15903       dldir=$destdir/`dirname \$dlpath`~
15904       test -d \$dldir || mkdir -p \$dldir~
15905       $install_prog $dir/$dlname \$dldir/$dlname'
15906     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15907       dlpath=$dir/\$dldll~
15908        $rm \$dlpath'
15909     shlibpath_overrides_runpath=yes
15910
15911     case $host_os in
15912     cygwin*)
15913       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15914       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15915       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15916       ;;
15917     mingw*)
15918       # MinGW DLLs use traditional 'lib' prefix
15919       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15920       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15921       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15922         # It is most probably a Windows format PATH printed by
15923         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15924         # path with ; separators, and with drive letters. We can handle the
15925         # drive letters (cygwin fileutils understands them), so leave them,
15926         # especially as we might pass files found there to a mingw objdump,
15927         # which wouldn't understand a cygwinified path. Ahh.
15928         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15929       else
15930         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15931       fi
15932       ;;
15933     pw32*)
15934       # pw32 DLLs use 'pw' prefix rather than 'lib'
15935       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15936       ;;
15937     esac
15938     ;;
15939
15940   *)
15941     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15942     ;;
15943   esac
15944   dynamic_linker='Win32 ld.exe'
15945   # FIXME: first we should search . and the directory the executable is in
15946   shlibpath_var=PATH
15947   ;;
15948
15949 darwin* | rhapsody*)
15950   dynamic_linker="$host_os dyld"
15951   version_type=darwin
15952   need_lib_prefix=no
15953   need_version=no
15954   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15955   soname_spec='${libname}${release}${major}$shared_ext'
15956   shlibpath_overrides_runpath=yes
15957   shlibpath_var=DYLD_LIBRARY_PATH
15958   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15959   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15960   if test "$GCC" = yes; then
15961     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"`
15962   else
15963     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15964   fi
15965   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15966   ;;
15967
15968 dgux*)
15969   version_type=linux
15970   need_lib_prefix=no
15971   need_version=no
15972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15973   soname_spec='${libname}${release}${shared_ext}$major'
15974   shlibpath_var=LD_LIBRARY_PATH
15975   ;;
15976
15977 freebsd1*)
15978   dynamic_linker=no
15979   ;;
15980
15981 kfreebsd*-gnu)
15982   version_type=linux
15983   need_lib_prefix=no
15984   need_version=no
15985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15986   soname_spec='${libname}${release}${shared_ext}$major'
15987   shlibpath_var=LD_LIBRARY_PATH
15988   shlibpath_overrides_runpath=no
15989   hardcode_into_libs=yes
15990   dynamic_linker='GNU ld.so'
15991   ;;
15992
15993 freebsd*)
15994   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15995   version_type=freebsd-$objformat
15996   case $version_type in
15997     freebsd-elf*)
15998       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15999       need_version=no
16000       need_lib_prefix=no
16001       ;;
16002     freebsd-*)
16003       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16004       need_version=yes
16005       ;;
16006   esac
16007   shlibpath_var=LD_LIBRARY_PATH
16008   case $host_os in
16009   freebsd2*)
16010     shlibpath_overrides_runpath=yes
16011     ;;
16012   freebsd3.01* | freebsdelf3.01*)
16013     shlibpath_overrides_runpath=yes
16014     hardcode_into_libs=yes
16015     ;;
16016   *) # from 3.2 on
16017     shlibpath_overrides_runpath=no
16018     hardcode_into_libs=yes
16019     ;;
16020   esac
16021   ;;
16022
16023 gnu*)
16024   version_type=linux
16025   need_lib_prefix=no
16026   need_version=no
16027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16028   soname_spec='${libname}${release}${shared_ext}$major'
16029   shlibpath_var=LD_LIBRARY_PATH
16030   hardcode_into_libs=yes
16031   ;;
16032
16033 hpux9* | hpux10* | hpux11*)
16034   # Give a soname corresponding to the major version so that dld.sl refuses to
16035   # link against other versions.
16036   version_type=sunos
16037   need_lib_prefix=no
16038   need_version=no
16039   case "$host_cpu" in
16040   ia64*)
16041     shrext='.so'
16042     hardcode_into_libs=yes
16043     dynamic_linker="$host_os dld.so"
16044     shlibpath_var=LD_LIBRARY_PATH
16045     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047     soname_spec='${libname}${release}${shared_ext}$major'
16048     if test "X$HPUX_IA64_MODE" = X32; then
16049       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16050     else
16051       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16052     fi
16053     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16054     ;;
16055    hppa*64*)
16056      shrext='.sl'
16057      hardcode_into_libs=yes
16058      dynamic_linker="$host_os dld.sl"
16059      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16060      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16061      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062      soname_spec='${libname}${release}${shared_ext}$major'
16063      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16064      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16065      ;;
16066    *)
16067     shrext='.sl'
16068     dynamic_linker="$host_os dld.sl"
16069     shlibpath_var=SHLIB_PATH
16070     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072     soname_spec='${libname}${release}${shared_ext}$major'
16073     ;;
16074   esac
16075   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16076   postinstall_cmds='chmod 555 $lib'
16077   ;;
16078
16079 irix5* | irix6* | nonstopux*)
16080   case $host_os in
16081     nonstopux*) version_type=nonstopux ;;
16082     *)
16083         if test "$lt_cv_prog_gnu_ld" = yes; then
16084                 version_type=linux
16085         else
16086                 version_type=irix
16087         fi ;;
16088   esac
16089   need_lib_prefix=no
16090   need_version=no
16091   soname_spec='${libname}${release}${shared_ext}$major'
16092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16093   case $host_os in
16094   irix5* | nonstopux*)
16095     libsuff= shlibsuff=
16096     ;;
16097   *)
16098     case $LD in # libtool.m4 will add one of these switches to LD
16099     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16100       libsuff= shlibsuff= libmagic=32-bit;;
16101     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16102       libsuff=32 shlibsuff=N32 libmagic=N32;;
16103     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16104       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16105     *) libsuff= shlibsuff= libmagic=never-match;;
16106     esac
16107     ;;
16108   esac
16109   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16110   shlibpath_overrides_runpath=no
16111   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16112   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16113   hardcode_into_libs=yes
16114   ;;
16115
16116 # No shared lib support for Linux oldld, aout, or coff.
16117 linux*oldld* | linux*aout* | linux*coff*)
16118   dynamic_linker=no
16119   ;;
16120
16121 # This must be Linux ELF.
16122 linux*)
16123   version_type=linux
16124   need_lib_prefix=no
16125   need_version=no
16126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127   soname_spec='${libname}${release}${shared_ext}$major'
16128   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16129   shlibpath_var=LD_LIBRARY_PATH
16130   shlibpath_overrides_runpath=no
16131   # This implies no fast_install, which is unacceptable.
16132   # Some rework will be needed to allow for fast_install
16133   # before this can be enabled.
16134   hardcode_into_libs=yes
16135
16136   # We used to test for /lib/ld.so.1 and disable shared libraries on
16137   # powerpc, because MkLinux only supported shared libraries with the
16138   # GNU dynamic linker.  Since this was broken with cross compilers,
16139   # most powerpc-linux boxes support dynamic linking these days and
16140   # people can always --disable-shared, the test was removed, and we
16141   # assume the GNU/Linux dynamic linker is in use.
16142   dynamic_linker='GNU/Linux ld.so'
16143   ;;
16144
16145 netbsd*)
16146   version_type=sunos
16147   need_lib_prefix=no
16148   need_version=no
16149   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16151     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16152     dynamic_linker='NetBSD (a.out) ld.so'
16153   else
16154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16155     soname_spec='${libname}${release}${shared_ext}$major'
16156     dynamic_linker='NetBSD ld.elf_so'
16157   fi
16158   shlibpath_var=LD_LIBRARY_PATH
16159   shlibpath_overrides_runpath=yes
16160   hardcode_into_libs=yes
16161   ;;
16162
16163 newsos6)
16164   version_type=linux
16165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166   shlibpath_var=LD_LIBRARY_PATH
16167   shlibpath_overrides_runpath=yes
16168   ;;
16169
16170 nto-qnx*)
16171   version_type=linux
16172   need_lib_prefix=no
16173   need_version=no
16174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16175   soname_spec='${libname}${release}${shared_ext}$major'
16176   shlibpath_var=LD_LIBRARY_PATH
16177   shlibpath_overrides_runpath=yes
16178   ;;
16179
16180 openbsd*)
16181   version_type=sunos
16182   need_lib_prefix=no
16183   need_version=no
16184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16185   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16186   shlibpath_var=LD_LIBRARY_PATH
16187   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16188     case $host_os in
16189       openbsd2.[89] | openbsd2.[89].*)
16190         shlibpath_overrides_runpath=no
16191         ;;
16192       *)
16193         shlibpath_overrides_runpath=yes
16194         ;;
16195       esac
16196   else
16197     shlibpath_overrides_runpath=yes
16198   fi
16199   ;;
16200
16201 os2*)
16202   libname_spec='$name'
16203   shrext=".dll"
16204   need_lib_prefix=no
16205   library_names_spec='$libname${shared_ext} $libname.a'
16206   dynamic_linker='OS/2 ld.exe'
16207   shlibpath_var=LIBPATH
16208   ;;
16209
16210 osf3* | osf4* | osf5*)
16211   version_type=osf
16212   need_lib_prefix=no
16213   need_version=no
16214   soname_spec='${libname}${release}${shared_ext}$major'
16215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16216   shlibpath_var=LD_LIBRARY_PATH
16217   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16218   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16219   ;;
16220
16221 sco3.2v5*)
16222   version_type=osf
16223   soname_spec='${libname}${release}${shared_ext}$major'
16224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225   shlibpath_var=LD_LIBRARY_PATH
16226   ;;
16227
16228 solaris*)
16229   version_type=linux
16230   need_lib_prefix=no
16231   need_version=no
16232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233   soname_spec='${libname}${release}${shared_ext}$major'
16234   shlibpath_var=LD_LIBRARY_PATH
16235   shlibpath_overrides_runpath=yes
16236   hardcode_into_libs=yes
16237   # ldd complains unless libraries are executable
16238   postinstall_cmds='chmod +x $lib'
16239   ;;
16240
16241 sunos4*)
16242   version_type=sunos
16243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16244   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16245   shlibpath_var=LD_LIBRARY_PATH
16246   shlibpath_overrides_runpath=yes
16247   if test "$with_gnu_ld" = yes; then
16248     need_lib_prefix=no
16249   fi
16250   need_version=yes
16251   ;;
16252
16253 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16254   version_type=linux
16255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256   soname_spec='${libname}${release}${shared_ext}$major'
16257   shlibpath_var=LD_LIBRARY_PATH
16258   case $host_vendor in
16259     sni)
16260       shlibpath_overrides_runpath=no
16261       need_lib_prefix=no
16262       export_dynamic_flag_spec='${wl}-Blargedynsym'
16263       runpath_var=LD_RUN_PATH
16264       ;;
16265     siemens)
16266       need_lib_prefix=no
16267       ;;
16268     motorola)
16269       need_lib_prefix=no
16270       need_version=no
16271       shlibpath_overrides_runpath=no
16272       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16273       ;;
16274   esac
16275   ;;
16276
16277 sysv4*MP*)
16278   if test -d /usr/nec ;then
16279     version_type=linux
16280     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16281     soname_spec='$libname${shared_ext}.$major'
16282     shlibpath_var=LD_LIBRARY_PATH
16283   fi
16284   ;;
16285
16286 uts4*)
16287   version_type=linux
16288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289   soname_spec='${libname}${release}${shared_ext}$major'
16290   shlibpath_var=LD_LIBRARY_PATH
16291   ;;
16292
16293 *)
16294   dynamic_linker=no
16295   ;;
16296 esac
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16298 $as_echo "$dynamic_linker" >&6; }
16299 test "$dynamic_linker" = no && can_build_shared=no
16300
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16302 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16303 hardcode_action_GCJ=
16304 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16305    test -n "$runpath_var GCJ" || \
16306    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16307
16308   # We can hardcode non-existant directories.
16309   if test "$hardcode_direct_GCJ" != no &&
16310      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16311      # have to relink, otherwise we might link with an installed library
16312      # when we should be linking with a yet-to-be-installed one
16313      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16314      test "$hardcode_minus_L_GCJ" != no; then
16315     # Linking always hardcodes the temporary library directory.
16316     hardcode_action_GCJ=relink
16317   else
16318     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16319     hardcode_action_GCJ=immediate
16320   fi
16321 else
16322   # We cannot hardcode anything, or else we can only hardcode existing
16323   # directories.
16324   hardcode_action_GCJ=unsupported
16325 fi
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
16327 $as_echo "$hardcode_action_GCJ" >&6; }
16328
16329 if test "$hardcode_action_GCJ" = relink; then
16330   # Fast installation is not supported
16331   enable_fast_install=no
16332 elif test "$shlibpath_overrides_runpath" = yes ||
16333      test "$enable_shared" = no; then
16334   # Fast installation is not necessary
16335   enable_fast_install=needless
16336 fi
16337
16338 striplib=
16339 old_striplib=
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16341 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16342 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16343   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16344   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16346 $as_echo "yes" >&6; }
16347 else
16348 # FIXME - insert some real tests, host_os isn't really good enough
16349   case $host_os in
16350    darwin*)
16351        if test -n "$STRIP" ; then
16352          striplib="$STRIP -x"
16353          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16354 $as_echo "yes" >&6; }
16355        else
16356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357 $as_echo "no" >&6; }
16358 fi
16359        ;;
16360    *)
16361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16362 $as_echo "no" >&6; }
16363     ;;
16364   esac
16365 fi
16366
16367 if test "x$enable_dlopen" != xyes; then
16368   enable_dlopen=unknown
16369   enable_dlopen_self=unknown
16370   enable_dlopen_self_static=unknown
16371 else
16372   lt_cv_dlopen=no
16373   lt_cv_dlopen_libs=
16374
16375   case $host_os in
16376   beos*)
16377     lt_cv_dlopen="load_add_on"
16378     lt_cv_dlopen_libs=
16379     lt_cv_dlopen_self=yes
16380     ;;
16381
16382   mingw* | pw32*)
16383     lt_cv_dlopen="LoadLibrary"
16384     lt_cv_dlopen_libs=
16385    ;;
16386
16387   cygwin*)
16388     lt_cv_dlopen="dlopen"
16389     lt_cv_dlopen_libs=
16390    ;;
16391
16392   darwin*)
16393   # if libdl is installed we need to link against it
16394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16395 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16396 if ${ac_cv_lib_dl_dlopen+:} false; then :
16397   $as_echo_n "(cached) " >&6
16398 else
16399   ac_check_lib_save_LIBS=$LIBS
16400 LIBS="-ldl  $LIBS"
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h.  */
16403
16404 /* Override any GCC internal prototype to avoid an error.
16405    Use char because int might match the return type of a GCC
16406    builtin and then its argument prototype would still apply.  */
16407 #ifdef __cplusplus
16408 extern "C"
16409 #endif
16410 char dlopen ();
16411 int
16412 main ()
16413 {
16414 return dlopen ();
16415   ;
16416   return 0;
16417 }
16418 _ACEOF
16419 if ac_fn_c_try_link "$LINENO"; then :
16420   ac_cv_lib_dl_dlopen=yes
16421 else
16422   ac_cv_lib_dl_dlopen=no
16423 fi
16424 rm -f core conftest.err conftest.$ac_objext \
16425     conftest$ac_exeext conftest.$ac_ext
16426 LIBS=$ac_check_lib_save_LIBS
16427 fi
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16429 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16430 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16431   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16432 else
16433
16434     lt_cv_dlopen="dyld"
16435     lt_cv_dlopen_libs=
16436     lt_cv_dlopen_self=yes
16437
16438 fi
16439
16440    ;;
16441
16442   *)
16443     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16444 if test "x$ac_cv_func_shl_load" = xyes; then :
16445   lt_cv_dlopen="shl_load"
16446 else
16447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16448 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16449 if ${ac_cv_lib_dld_shl_load+:} false; then :
16450   $as_echo_n "(cached) " >&6
16451 else
16452   ac_check_lib_save_LIBS=$LIBS
16453 LIBS="-ldld  $LIBS"
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h.  */
16456
16457 /* Override any GCC internal prototype to avoid an error.
16458    Use char because int might match the return type of a GCC
16459    builtin and then its argument prototype would still apply.  */
16460 #ifdef __cplusplus
16461 extern "C"
16462 #endif
16463 char shl_load ();
16464 int
16465 main ()
16466 {
16467 return shl_load ();
16468   ;
16469   return 0;
16470 }
16471 _ACEOF
16472 if ac_fn_c_try_link "$LINENO"; then :
16473   ac_cv_lib_dld_shl_load=yes
16474 else
16475   ac_cv_lib_dld_shl_load=no
16476 fi
16477 rm -f core conftest.err conftest.$ac_objext \
16478     conftest$ac_exeext conftest.$ac_ext
16479 LIBS=$ac_check_lib_save_LIBS
16480 fi
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16482 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16483 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16484   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16485 else
16486   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16487 if test "x$ac_cv_func_dlopen" = xyes; then :
16488   lt_cv_dlopen="dlopen"
16489 else
16490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16491 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16492 if ${ac_cv_lib_dl_dlopen+:} false; then :
16493   $as_echo_n "(cached) " >&6
16494 else
16495   ac_check_lib_save_LIBS=$LIBS
16496 LIBS="-ldl  $LIBS"
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h.  */
16499
16500 /* Override any GCC internal prototype to avoid an error.
16501    Use char because int might match the return type of a GCC
16502    builtin and then its argument prototype would still apply.  */
16503 #ifdef __cplusplus
16504 extern "C"
16505 #endif
16506 char dlopen ();
16507 int
16508 main ()
16509 {
16510 return dlopen ();
16511   ;
16512   return 0;
16513 }
16514 _ACEOF
16515 if ac_fn_c_try_link "$LINENO"; then :
16516   ac_cv_lib_dl_dlopen=yes
16517 else
16518   ac_cv_lib_dl_dlopen=no
16519 fi
16520 rm -f core conftest.err conftest.$ac_objext \
16521     conftest$ac_exeext conftest.$ac_ext
16522 LIBS=$ac_check_lib_save_LIBS
16523 fi
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16525 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16526 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16527   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16528 else
16529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16530 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16531 if ${ac_cv_lib_svld_dlopen+:} false; then :
16532   $as_echo_n "(cached) " >&6
16533 else
16534   ac_check_lib_save_LIBS=$LIBS
16535 LIBS="-lsvld  $LIBS"
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h.  */
16538
16539 /* Override any GCC internal prototype to avoid an error.
16540    Use char because int might match the return type of a GCC
16541    builtin and then its argument prototype would still apply.  */
16542 #ifdef __cplusplus
16543 extern "C"
16544 #endif
16545 char dlopen ();
16546 int
16547 main ()
16548 {
16549 return dlopen ();
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 if ac_fn_c_try_link "$LINENO"; then :
16555   ac_cv_lib_svld_dlopen=yes
16556 else
16557   ac_cv_lib_svld_dlopen=no
16558 fi
16559 rm -f core conftest.err conftest.$ac_objext \
16560     conftest$ac_exeext conftest.$ac_ext
16561 LIBS=$ac_check_lib_save_LIBS
16562 fi
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16564 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16565 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16566   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16567 else
16568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16569 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16570 if ${ac_cv_lib_dld_dld_link+:} false; then :
16571   $as_echo_n "(cached) " >&6
16572 else
16573   ac_check_lib_save_LIBS=$LIBS
16574 LIBS="-ldld  $LIBS"
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h.  */
16577
16578 /* Override any GCC internal prototype to avoid an error.
16579    Use char because int might match the return type of a GCC
16580    builtin and then its argument prototype would still apply.  */
16581 #ifdef __cplusplus
16582 extern "C"
16583 #endif
16584 char dld_link ();
16585 int
16586 main ()
16587 {
16588 return dld_link ();
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 if ac_fn_c_try_link "$LINENO"; then :
16594   ac_cv_lib_dld_dld_link=yes
16595 else
16596   ac_cv_lib_dld_dld_link=no
16597 fi
16598 rm -f core conftest.err conftest.$ac_objext \
16599     conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16601 fi
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16603 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16604 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16605   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16606 fi
16607
16608
16609 fi
16610
16611
16612 fi
16613
16614
16615 fi
16616
16617
16618 fi
16619
16620
16621 fi
16622
16623     ;;
16624   esac
16625
16626   if test "x$lt_cv_dlopen" != xno; then
16627     enable_dlopen=yes
16628   else
16629     enable_dlopen=no
16630   fi
16631
16632   case $lt_cv_dlopen in
16633   dlopen)
16634     save_CPPFLAGS="$CPPFLAGS"
16635     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16636
16637     save_LDFLAGS="$LDFLAGS"
16638     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16639
16640     save_LIBS="$LIBS"
16641     LIBS="$lt_cv_dlopen_libs $LIBS"
16642
16643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16644 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16645 if ${lt_cv_dlopen_self+:} false; then :
16646   $as_echo_n "(cached) " >&6
16647 else
16648           if test "$cross_compiling" = yes; then :
16649   lt_cv_dlopen_self=cross
16650 else
16651   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16652   lt_status=$lt_dlunknown
16653   cat > conftest.$ac_ext <<EOF
16654 #line 16654 "configure"
16655 #include "confdefs.h"
16656
16657 #if HAVE_DLFCN_H
16658 #include <dlfcn.h>
16659 #endif
16660
16661 #include <stdio.h>
16662
16663 #ifdef RTLD_GLOBAL
16664 #  define LT_DLGLOBAL           RTLD_GLOBAL
16665 #else
16666 #  ifdef DL_GLOBAL
16667 #    define LT_DLGLOBAL         DL_GLOBAL
16668 #  else
16669 #    define LT_DLGLOBAL         0
16670 #  endif
16671 #endif
16672
16673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16674    find out it does not work in some platform. */
16675 #ifndef LT_DLLAZY_OR_NOW
16676 #  ifdef RTLD_LAZY
16677 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16678 #  else
16679 #    ifdef DL_LAZY
16680 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16681 #    else
16682 #      ifdef RTLD_NOW
16683 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16684 #      else
16685 #        ifdef DL_NOW
16686 #          define LT_DLLAZY_OR_NOW      DL_NOW
16687 #        else
16688 #          define LT_DLLAZY_OR_NOW      0
16689 #        endif
16690 #      endif
16691 #    endif
16692 #  endif
16693 #endif
16694
16695 #ifdef __cplusplus
16696 extern "C" void exit (int);
16697 #endif
16698
16699 void fnord() { int i=42;}
16700 int main ()
16701 {
16702   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16703   int status = $lt_dlunknown;
16704
16705   if (self)
16706     {
16707       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16708       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16709       /* dlclose (self); */
16710     }
16711
16712     exit (status);
16713 }
16714 EOF
16715   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16716   (eval $ac_link) 2>&5
16717   ac_status=$?
16718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16719   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16720     (./conftest; exit; ) 2>/dev/null
16721     lt_status=$?
16722     case x$lt_status in
16723       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16724       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16725       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16726     esac
16727   else :
16728     # compilation failed
16729     lt_cv_dlopen_self=no
16730   fi
16731 fi
16732 rm -fr conftest*
16733
16734
16735 fi
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16737 $as_echo "$lt_cv_dlopen_self" >&6; }
16738
16739     if test "x$lt_cv_dlopen_self" = xyes; then
16740       LDFLAGS="$LDFLAGS $link_static_flag"
16741       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16742 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16743 if ${lt_cv_dlopen_self_static+:} false; then :
16744   $as_echo_n "(cached) " >&6
16745 else
16746           if test "$cross_compiling" = yes; then :
16747   lt_cv_dlopen_self_static=cross
16748 else
16749   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16750   lt_status=$lt_dlunknown
16751   cat > conftest.$ac_ext <<EOF
16752 #line 16752 "configure"
16753 #include "confdefs.h"
16754
16755 #if HAVE_DLFCN_H
16756 #include <dlfcn.h>
16757 #endif
16758
16759 #include <stdio.h>
16760
16761 #ifdef RTLD_GLOBAL
16762 #  define LT_DLGLOBAL           RTLD_GLOBAL
16763 #else
16764 #  ifdef DL_GLOBAL
16765 #    define LT_DLGLOBAL         DL_GLOBAL
16766 #  else
16767 #    define LT_DLGLOBAL         0
16768 #  endif
16769 #endif
16770
16771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16772    find out it does not work in some platform. */
16773 #ifndef LT_DLLAZY_OR_NOW
16774 #  ifdef RTLD_LAZY
16775 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16776 #  else
16777 #    ifdef DL_LAZY
16778 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16779 #    else
16780 #      ifdef RTLD_NOW
16781 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16782 #      else
16783 #        ifdef DL_NOW
16784 #          define LT_DLLAZY_OR_NOW      DL_NOW
16785 #        else
16786 #          define LT_DLLAZY_OR_NOW      0
16787 #        endif
16788 #      endif
16789 #    endif
16790 #  endif
16791 #endif
16792
16793 #ifdef __cplusplus
16794 extern "C" void exit (int);
16795 #endif
16796
16797 void fnord() { int i=42;}
16798 int main ()
16799 {
16800   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16801   int status = $lt_dlunknown;
16802
16803   if (self)
16804     {
16805       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16806       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16807       /* dlclose (self); */
16808     }
16809
16810     exit (status);
16811 }
16812 EOF
16813   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16814   (eval $ac_link) 2>&5
16815   ac_status=$?
16816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16817   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16818     (./conftest; exit; ) 2>/dev/null
16819     lt_status=$?
16820     case x$lt_status in
16821       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16822       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16823       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16824     esac
16825   else :
16826     # compilation failed
16827     lt_cv_dlopen_self_static=no
16828   fi
16829 fi
16830 rm -fr conftest*
16831
16832
16833 fi
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16835 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16836     fi
16837
16838     CPPFLAGS="$save_CPPFLAGS"
16839     LDFLAGS="$save_LDFLAGS"
16840     LIBS="$save_LIBS"
16841     ;;
16842   esac
16843
16844   case $lt_cv_dlopen_self in
16845   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16846   *) enable_dlopen_self=unknown ;;
16847   esac
16848
16849   case $lt_cv_dlopen_self_static in
16850   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16851   *) enable_dlopen_self_static=unknown ;;
16852   esac
16853 fi
16854
16855
16856 # The else clause should only fire when bootstrapping the
16857 # libtool distribution, otherwise you forgot to ship ltmain.sh
16858 # with your package, and you will get complaints that there are
16859 # no rules to generate ltmain.sh.
16860 if test -f "$ltmain"; then
16861   # See if we are running on zsh, and set the options which allow our commands through
16862   # without removal of \ escapes.
16863   if test -n "${ZSH_VERSION+set}" ; then
16864     setopt NO_GLOB_SUBST
16865   fi
16866   # Now quote all the things that may contain metacharacters while being
16867   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16868   # variables and quote the copies for generation of the libtool script.
16869   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16870     SED SHELL STRIP \
16871     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16872     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16873     deplibs_check_method reload_flag reload_cmds need_locks \
16874     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16875     lt_cv_sys_global_symbol_to_c_name_address \
16876     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16877     old_postinstall_cmds old_postuninstall_cmds \
16878     compiler_GCJ \
16879     CC_GCJ \
16880     LD_GCJ \
16881     lt_prog_compiler_wl_GCJ \
16882     lt_prog_compiler_pic_GCJ \
16883     lt_prog_compiler_static_GCJ \
16884     lt_prog_compiler_no_builtin_flag_GCJ \
16885     export_dynamic_flag_spec_GCJ \
16886     thread_safe_flag_spec_GCJ \
16887     whole_archive_flag_spec_GCJ \
16888     enable_shared_with_static_runtimes_GCJ \
16889     old_archive_cmds_GCJ \
16890     old_archive_from_new_cmds_GCJ \
16891     predep_objects_GCJ \
16892     postdep_objects_GCJ \
16893     predeps_GCJ \
16894     postdeps_GCJ \
16895     compiler_lib_search_path_GCJ \
16896     archive_cmds_GCJ \
16897     archive_expsym_cmds_GCJ \
16898     postinstall_cmds_GCJ \
16899     postuninstall_cmds_GCJ \
16900     old_archive_from_expsyms_cmds_GCJ \
16901     allow_undefined_flag_GCJ \
16902     no_undefined_flag_GCJ \
16903     export_symbols_cmds_GCJ \
16904     hardcode_libdir_flag_spec_GCJ \
16905     hardcode_libdir_flag_spec_ld_GCJ \
16906     hardcode_libdir_separator_GCJ \
16907     hardcode_automatic_GCJ \
16908     module_cmds_GCJ \
16909     module_expsym_cmds_GCJ \
16910     lt_cv_prog_compiler_c_o_GCJ \
16911     exclude_expsyms_GCJ \
16912     include_expsyms_GCJ; do
16913
16914     case $var in
16915     old_archive_cmds_GCJ | \
16916     old_archive_from_new_cmds_GCJ | \
16917     archive_cmds_GCJ | \
16918     archive_expsym_cmds_GCJ | \
16919     module_cmds_GCJ | \
16920     module_expsym_cmds_GCJ | \
16921     old_archive_from_expsyms_cmds_GCJ | \
16922     export_symbols_cmds_GCJ | \
16923     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16924     postinstall_cmds | postuninstall_cmds | \
16925     old_postinstall_cmds | old_postuninstall_cmds | \
16926     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16927       # Double-quote double-evaled strings.
16928       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16929       ;;
16930     *)
16931       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16932       ;;
16933     esac
16934   done
16935
16936   case $lt_echo in
16937   *'\$0 --fallback-echo"')
16938     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16939     ;;
16940   esac
16941
16942 cfgfile="$ofile"
16943
16944   cat <<__EOF__ >> "$cfgfile"
16945 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16946
16947 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16948
16949 # Shell to use when invoking shell scripts.
16950 SHELL=$lt_SHELL
16951
16952 # Whether or not to build shared libraries.
16953 build_libtool_libs=$enable_shared
16954
16955 # Whether or not to build static libraries.
16956 build_old_libs=$enable_static
16957
16958 # Whether or not to add -lc for building shared libraries.
16959 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16960
16961 # Whether or not to disallow shared libs when runtime libs are static
16962 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
16963
16964 # Whether or not to optimize for fast installation.
16965 fast_install=$enable_fast_install
16966
16967 # The host system.
16968 host_alias=$host_alias
16969 host=$host
16970
16971 # An echo program that does not interpret backslashes.
16972 echo=$lt_echo
16973
16974 # The archiver.
16975 AR=$lt_AR
16976 AR_FLAGS=$lt_AR_FLAGS
16977
16978 # A C compiler.
16979 LTCC=$lt_LTCC
16980
16981 # A language-specific compiler.
16982 CC=$lt_compiler_GCJ
16983
16984 # Is the compiler the GNU C compiler?
16985 with_gcc=$GCC_GCJ
16986
16987 # An ERE matcher.
16988 EGREP=$lt_EGREP
16989
16990 # The linker used to build libraries.
16991 LD=$lt_LD_GCJ
16992
16993 # Whether we need hard or soft links.
16994 LN_S=$lt_LN_S
16995
16996 # A BSD-compatible nm program.
16997 NM=$lt_NM
16998
16999 # A symbol stripping program
17000 STRIP=$lt_STRIP
17001
17002 # Used to examine libraries when file_magic_cmd begins "file"
17003 MAGIC_CMD=$MAGIC_CMD
17004
17005 # Used on cygwin: DLL creation program.
17006 DLLTOOL="$DLLTOOL"
17007
17008 # Used on cygwin: object dumper.
17009 OBJDUMP="$OBJDUMP"
17010
17011 # Used on cygwin: assembler.
17012 AS="$AS"
17013
17014 # The name of the directory that contains temporary libtool files.
17015 objdir=$objdir
17016
17017 # How to create reloadable object files.
17018 reload_flag=$lt_reload_flag
17019 reload_cmds=$lt_reload_cmds
17020
17021 # How to pass a linker flag through the compiler.
17022 wl=$lt_lt_prog_compiler_wl_GCJ
17023
17024 # Object file suffix (normally "o").
17025 objext="$ac_objext"
17026
17027 # Old archive suffix (normally "a").
17028 libext="$libext"
17029
17030 # Shared library suffix (normally ".so").
17031 shrext='$shrext'
17032
17033 # Executable file suffix (normally "").
17034 exeext="$exeext"
17035
17036 # Additional compiler flags for building library objects.
17037 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17038 pic_mode=$pic_mode
17039
17040 # What is the maximum length of a command?
17041 max_cmd_len=$lt_cv_sys_max_cmd_len
17042
17043 # Does compiler simultaneously support -c and -o options?
17044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17045
17046 # Must we lock files when doing compilation ?
17047 need_locks=$lt_need_locks
17048
17049 # Do we need the lib prefix for modules?
17050 need_lib_prefix=$need_lib_prefix
17051
17052 # Do we need a version for libraries?
17053 need_version=$need_version
17054
17055 # Whether dlopen is supported.
17056 dlopen_support=$enable_dlopen
17057
17058 # Whether dlopen of programs is supported.
17059 dlopen_self=$enable_dlopen_self
17060
17061 # Whether dlopen of statically linked programs is supported.
17062 dlopen_self_static=$enable_dlopen_self_static
17063
17064 # Compiler flag to prevent dynamic linking.
17065 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17066
17067 # Compiler flag to turn off builtin functions.
17068 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17069
17070 # Compiler flag to allow reflexive dlopens.
17071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17072
17073 # Compiler flag to generate shared objects directly from archives.
17074 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17075
17076 # Compiler flag to generate thread-safe objects.
17077 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17078
17079 # Library versioning type.
17080 version_type=$version_type
17081
17082 # Format of library name prefix.
17083 libname_spec=$lt_libname_spec
17084
17085 # List of archive names.  First name is the real one, the rest are links.
17086 # The last name is the one that the linker finds with -lNAME.
17087 library_names_spec=$lt_library_names_spec
17088
17089 # The coded name of the library, if different from the real name.
17090 soname_spec=$lt_soname_spec
17091
17092 # Commands used to build and install an old-style archive.
17093 RANLIB=$lt_RANLIB
17094 old_archive_cmds=$lt_old_archive_cmds_GCJ
17095 old_postinstall_cmds=$lt_old_postinstall_cmds
17096 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17097
17098 # Create an old-style archive from a shared archive.
17099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17100
17101 # Create a temporary old-style archive to link instead of a shared archive.
17102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17103
17104 # Commands used to build and install a shared archive.
17105 archive_cmds=$lt_archive_cmds_GCJ
17106 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17107 postinstall_cmds=$lt_postinstall_cmds
17108 postuninstall_cmds=$lt_postuninstall_cmds
17109
17110 # Commands used to build a loadable module (assumed same as above if empty)
17111 module_cmds=$lt_module_cmds_GCJ
17112 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17113
17114 # Commands to strip libraries.
17115 old_striplib=$lt_old_striplib
17116 striplib=$lt_striplib
17117
17118 # Dependencies to place before the objects being linked to create a
17119 # shared library.
17120 predep_objects=$lt_predep_objects_GCJ
17121
17122 # Dependencies to place after the objects being linked to create a
17123 # shared library.
17124 postdep_objects=$lt_postdep_objects_GCJ
17125
17126 # Dependencies to place before the objects being linked to create a
17127 # shared library.
17128 predeps=$lt_predeps_GCJ
17129
17130 # Dependencies to place after the objects being linked to create a
17131 # shared library.
17132 postdeps=$lt_postdeps_GCJ
17133
17134 # The library search path used internally by the compiler when linking
17135 # a shared library.
17136 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17137
17138 # Method to check whether dependent libraries are shared objects.
17139 deplibs_check_method=$lt_deplibs_check_method
17140
17141 # Command to use when deplibs_check_method == file_magic.
17142 file_magic_cmd=$lt_file_magic_cmd
17143
17144 # Flag that allows shared libraries with undefined symbols to be built.
17145 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17146
17147 # Flag that forces no undefined symbols.
17148 no_undefined_flag=$lt_no_undefined_flag_GCJ
17149
17150 # Commands used to finish a libtool library installation in a directory.
17151 finish_cmds=$lt_finish_cmds
17152
17153 # Same as above, but a single script fragment to be evaled but not shown.
17154 finish_eval=$lt_finish_eval
17155
17156 # Take the output of nm and produce a listing of raw symbols and C names.
17157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17158
17159 # Transform the output of nm in a proper C declaration
17160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17161
17162 # Transform the output of nm in a C name address pair
17163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17164
17165 # This is the shared library runtime path variable.
17166 runpath_var=$runpath_var
17167
17168 # This is the shared library path variable.
17169 shlibpath_var=$shlibpath_var
17170
17171 # Is shlibpath searched before the hard-coded library search path?
17172 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17173
17174 # How to hardcode a shared library path into an executable.
17175 hardcode_action=$hardcode_action_GCJ
17176
17177 # Whether we should hardcode library paths into libraries.
17178 hardcode_into_libs=$hardcode_into_libs
17179
17180 # Flag to hardcode \$libdir into a binary during linking.
17181 # This must work even if \$libdir does not exist.
17182 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17183
17184 # If ld is used when linking, flag to hardcode \$libdir into
17185 # a binary during linking. This must work even if \$libdir does
17186 # not exist.
17187 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17188
17189 # Whether we need a single -rpath flag with a separated argument.
17190 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17191
17192 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17193 # resulting binary.
17194 hardcode_direct=$hardcode_direct_GCJ
17195
17196 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17197 # resulting binary.
17198 hardcode_minus_L=$hardcode_minus_L_GCJ
17199
17200 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17201 # the resulting binary.
17202 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17203
17204 # Set to yes if building a shared library automatically hardcodes DIR into the library
17205 # and all subsequent libraries and executables linked against it.
17206 hardcode_automatic=$hardcode_automatic_GCJ
17207
17208 # Variables whose values should be saved in libtool wrapper scripts and
17209 # restored at relink time.
17210 variables_saved_for_relink="$variables_saved_for_relink"
17211
17212 # Whether libtool must link a program against all its dependency libraries.
17213 link_all_deplibs=$link_all_deplibs_GCJ
17214
17215 # Compile-time system search path for libraries
17216 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17217
17218 # Run-time system search path for libraries
17219 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17220
17221 # Fix the shell variable \$srcfile for the compiler.
17222 fix_srcfile_path="$fix_srcfile_path_GCJ"
17223
17224 # Set to yes if exported symbols are required.
17225 always_export_symbols=$always_export_symbols_GCJ
17226
17227 # The commands to list exported symbols.
17228 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17229
17230 # The commands to extract the exported symbol list from a shared archive.
17231 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17232
17233 # Symbols that should not be listed in the preloaded symbols.
17234 exclude_expsyms=$lt_exclude_expsyms_GCJ
17235
17236 # Symbols that must always be exported.
17237 include_expsyms=$lt_include_expsyms_GCJ
17238
17239 # ### END LIBTOOL TAG CONFIG: $tagname
17240
17241 __EOF__
17242
17243
17244 else
17245   # If there is no Makefile yet, we rely on a make rule to execute
17246   # `config.status --recheck' to rerun these tests and create the
17247   # libtool script then.
17248   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17249   if test -f "$ltmain_in"; then
17250     test -f Makefile && make "$ltmain"
17251   fi
17252 fi
17253
17254
17255 ac_ext=c
17256 ac_cpp='$CPP $CPPFLAGS'
17257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17260
17261 CC="$lt_save_CC"
17262
17263         else
17264           tagname=""
17265         fi
17266         ;;
17267
17268       RC)
17269
17270
17271 # Source file extension for RC test sources.
17272 ac_ext=rc
17273
17274 # Object file extension for compiled RC test sources.
17275 objext=o
17276 objext_RC=$objext
17277
17278 # Code to be used in simple compile tests
17279 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17280
17281 # Code to be used in simple link tests
17282 lt_simple_link_test_code="$lt_simple_compile_test_code"
17283
17284 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17285
17286 # If no C compiler was specified, use CC.
17287 LTCC=${LTCC-"$CC"}
17288
17289 # Allow CC to be a program name with arguments.
17290 compiler=$CC
17291
17292
17293 # Allow CC to be a program name with arguments.
17294 lt_save_CC="$CC"
17295 CC=${RC-"windres"}
17296 compiler=$CC
17297 compiler_RC=$CC
17298 lt_cv_prog_compiler_c_o_RC=yes
17299
17300 # The else clause should only fire when bootstrapping the
17301 # libtool distribution, otherwise you forgot to ship ltmain.sh
17302 # with your package, and you will get complaints that there are
17303 # no rules to generate ltmain.sh.
17304 if test -f "$ltmain"; then
17305   # See if we are running on zsh, and set the options which allow our commands through
17306   # without removal of \ escapes.
17307   if test -n "${ZSH_VERSION+set}" ; then
17308     setopt NO_GLOB_SUBST
17309   fi
17310   # Now quote all the things that may contain metacharacters while being
17311   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17312   # variables and quote the copies for generation of the libtool script.
17313   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17314     SED SHELL STRIP \
17315     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17316     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17317     deplibs_check_method reload_flag reload_cmds need_locks \
17318     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17319     lt_cv_sys_global_symbol_to_c_name_address \
17320     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17321     old_postinstall_cmds old_postuninstall_cmds \
17322     compiler_RC \
17323     CC_RC \
17324     LD_RC \
17325     lt_prog_compiler_wl_RC \
17326     lt_prog_compiler_pic_RC \
17327     lt_prog_compiler_static_RC \
17328     lt_prog_compiler_no_builtin_flag_RC \
17329     export_dynamic_flag_spec_RC \
17330     thread_safe_flag_spec_RC \
17331     whole_archive_flag_spec_RC \
17332     enable_shared_with_static_runtimes_RC \
17333     old_archive_cmds_RC \
17334     old_archive_from_new_cmds_RC \
17335     predep_objects_RC \
17336     postdep_objects_RC \
17337     predeps_RC \
17338     postdeps_RC \
17339     compiler_lib_search_path_RC \
17340     archive_cmds_RC \
17341     archive_expsym_cmds_RC \
17342     postinstall_cmds_RC \
17343     postuninstall_cmds_RC \
17344     old_archive_from_expsyms_cmds_RC \
17345     allow_undefined_flag_RC \
17346     no_undefined_flag_RC \
17347     export_symbols_cmds_RC \
17348     hardcode_libdir_flag_spec_RC \
17349     hardcode_libdir_flag_spec_ld_RC \
17350     hardcode_libdir_separator_RC \
17351     hardcode_automatic_RC \
17352     module_cmds_RC \
17353     module_expsym_cmds_RC \
17354     lt_cv_prog_compiler_c_o_RC \
17355     exclude_expsyms_RC \
17356     include_expsyms_RC; do
17357
17358     case $var in
17359     old_archive_cmds_RC | \
17360     old_archive_from_new_cmds_RC | \
17361     archive_cmds_RC | \
17362     archive_expsym_cmds_RC | \
17363     module_cmds_RC | \
17364     module_expsym_cmds_RC | \
17365     old_archive_from_expsyms_cmds_RC | \
17366     export_symbols_cmds_RC | \
17367     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17368     postinstall_cmds | postuninstall_cmds | \
17369     old_postinstall_cmds | old_postuninstall_cmds | \
17370     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17371       # Double-quote double-evaled strings.
17372       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17373       ;;
17374     *)
17375       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17376       ;;
17377     esac
17378   done
17379
17380   case $lt_echo in
17381   *'\$0 --fallback-echo"')
17382     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17383     ;;
17384   esac
17385
17386 cfgfile="$ofile"
17387
17388   cat <<__EOF__ >> "$cfgfile"
17389 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17390
17391 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17392
17393 # Shell to use when invoking shell scripts.
17394 SHELL=$lt_SHELL
17395
17396 # Whether or not to build shared libraries.
17397 build_libtool_libs=$enable_shared
17398
17399 # Whether or not to build static libraries.
17400 build_old_libs=$enable_static
17401
17402 # Whether or not to add -lc for building shared libraries.
17403 build_libtool_need_lc=$archive_cmds_need_lc_RC
17404
17405 # Whether or not to disallow shared libs when runtime libs are static
17406 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17407
17408 # Whether or not to optimize for fast installation.
17409 fast_install=$enable_fast_install
17410
17411 # The host system.
17412 host_alias=$host_alias
17413 host=$host
17414
17415 # An echo program that does not interpret backslashes.
17416 echo=$lt_echo
17417
17418 # The archiver.
17419 AR=$lt_AR
17420 AR_FLAGS=$lt_AR_FLAGS
17421
17422 # A C compiler.
17423 LTCC=$lt_LTCC
17424
17425 # A language-specific compiler.
17426 CC=$lt_compiler_RC
17427
17428 # Is the compiler the GNU C compiler?
17429 with_gcc=$GCC_RC
17430
17431 # An ERE matcher.
17432 EGREP=$lt_EGREP
17433
17434 # The linker used to build libraries.
17435 LD=$lt_LD_RC
17436
17437 # Whether we need hard or soft links.
17438 LN_S=$lt_LN_S
17439
17440 # A BSD-compatible nm program.
17441 NM=$lt_NM
17442
17443 # A symbol stripping program
17444 STRIP=$lt_STRIP
17445
17446 # Used to examine libraries when file_magic_cmd begins "file"
17447 MAGIC_CMD=$MAGIC_CMD
17448
17449 # Used on cygwin: DLL creation program.
17450 DLLTOOL="$DLLTOOL"
17451
17452 # Used on cygwin: object dumper.
17453 OBJDUMP="$OBJDUMP"
17454
17455 # Used on cygwin: assembler.
17456 AS="$AS"
17457
17458 # The name of the directory that contains temporary libtool files.
17459 objdir=$objdir
17460
17461 # How to create reloadable object files.
17462 reload_flag=$lt_reload_flag
17463 reload_cmds=$lt_reload_cmds
17464
17465 # How to pass a linker flag through the compiler.
17466 wl=$lt_lt_prog_compiler_wl_RC
17467
17468 # Object file suffix (normally "o").
17469 objext="$ac_objext"
17470
17471 # Old archive suffix (normally "a").
17472 libext="$libext"
17473
17474 # Shared library suffix (normally ".so").
17475 shrext='$shrext'
17476
17477 # Executable file suffix (normally "").
17478 exeext="$exeext"
17479
17480 # Additional compiler flags for building library objects.
17481 pic_flag=$lt_lt_prog_compiler_pic_RC
17482 pic_mode=$pic_mode
17483
17484 # What is the maximum length of a command?
17485 max_cmd_len=$lt_cv_sys_max_cmd_len
17486
17487 # Does compiler simultaneously support -c and -o options?
17488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17489
17490 # Must we lock files when doing compilation ?
17491 need_locks=$lt_need_locks
17492
17493 # Do we need the lib prefix for modules?
17494 need_lib_prefix=$need_lib_prefix
17495
17496 # Do we need a version for libraries?
17497 need_version=$need_version
17498
17499 # Whether dlopen is supported.
17500 dlopen_support=$enable_dlopen
17501
17502 # Whether dlopen of programs is supported.
17503 dlopen_self=$enable_dlopen_self
17504
17505 # Whether dlopen of statically linked programs is supported.
17506 dlopen_self_static=$enable_dlopen_self_static
17507
17508 # Compiler flag to prevent dynamic linking.
17509 link_static_flag=$lt_lt_prog_compiler_static_RC
17510
17511 # Compiler flag to turn off builtin functions.
17512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17513
17514 # Compiler flag to allow reflexive dlopens.
17515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17516
17517 # Compiler flag to generate shared objects directly from archives.
17518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17519
17520 # Compiler flag to generate thread-safe objects.
17521 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17522
17523 # Library versioning type.
17524 version_type=$version_type
17525
17526 # Format of library name prefix.
17527 libname_spec=$lt_libname_spec
17528
17529 # List of archive names.  First name is the real one, the rest are links.
17530 # The last name is the one that the linker finds with -lNAME.
17531 library_names_spec=$lt_library_names_spec
17532
17533 # The coded name of the library, if different from the real name.
17534 soname_spec=$lt_soname_spec
17535
17536 # Commands used to build and install an old-style archive.
17537 RANLIB=$lt_RANLIB
17538 old_archive_cmds=$lt_old_archive_cmds_RC
17539 old_postinstall_cmds=$lt_old_postinstall_cmds
17540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17541
17542 # Create an old-style archive from a shared archive.
17543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17544
17545 # Create a temporary old-style archive to link instead of a shared archive.
17546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17547
17548 # Commands used to build and install a shared archive.
17549 archive_cmds=$lt_archive_cmds_RC
17550 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17551 postinstall_cmds=$lt_postinstall_cmds
17552 postuninstall_cmds=$lt_postuninstall_cmds
17553
17554 # Commands used to build a loadable module (assumed same as above if empty)
17555 module_cmds=$lt_module_cmds_RC
17556 module_expsym_cmds=$lt_module_expsym_cmds_RC
17557
17558 # Commands to strip libraries.
17559 old_striplib=$lt_old_striplib
17560 striplib=$lt_striplib
17561
17562 # Dependencies to place before the objects being linked to create a
17563 # shared library.
17564 predep_objects=$lt_predep_objects_RC
17565
17566 # Dependencies to place after the objects being linked to create a
17567 # shared library.
17568 postdep_objects=$lt_postdep_objects_RC
17569
17570 # Dependencies to place before the objects being linked to create a
17571 # shared library.
17572 predeps=$lt_predeps_RC
17573
17574 # Dependencies to place after the objects being linked to create a
17575 # shared library.
17576 postdeps=$lt_postdeps_RC
17577
17578 # The library search path used internally by the compiler when linking
17579 # a shared library.
17580 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17581
17582 # Method to check whether dependent libraries are shared objects.
17583 deplibs_check_method=$lt_deplibs_check_method
17584
17585 # Command to use when deplibs_check_method == file_magic.
17586 file_magic_cmd=$lt_file_magic_cmd
17587
17588 # Flag that allows shared libraries with undefined symbols to be built.
17589 allow_undefined_flag=$lt_allow_undefined_flag_RC
17590
17591 # Flag that forces no undefined symbols.
17592 no_undefined_flag=$lt_no_undefined_flag_RC
17593
17594 # Commands used to finish a libtool library installation in a directory.
17595 finish_cmds=$lt_finish_cmds
17596
17597 # Same as above, but a single script fragment to be evaled but not shown.
17598 finish_eval=$lt_finish_eval
17599
17600 # Take the output of nm and produce a listing of raw symbols and C names.
17601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17602
17603 # Transform the output of nm in a proper C declaration
17604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17605
17606 # Transform the output of nm in a C name address pair
17607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17608
17609 # This is the shared library runtime path variable.
17610 runpath_var=$runpath_var
17611
17612 # This is the shared library path variable.
17613 shlibpath_var=$shlibpath_var
17614
17615 # Is shlibpath searched before the hard-coded library search path?
17616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17617
17618 # How to hardcode a shared library path into an executable.
17619 hardcode_action=$hardcode_action_RC
17620
17621 # Whether we should hardcode library paths into libraries.
17622 hardcode_into_libs=$hardcode_into_libs
17623
17624 # Flag to hardcode \$libdir into a binary during linking.
17625 # This must work even if \$libdir does not exist.
17626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17627
17628 # If ld is used when linking, flag to hardcode \$libdir into
17629 # a binary during linking. This must work even if \$libdir does
17630 # not exist.
17631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17632
17633 # Whether we need a single -rpath flag with a separated argument.
17634 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17635
17636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17637 # resulting binary.
17638 hardcode_direct=$hardcode_direct_RC
17639
17640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17641 # resulting binary.
17642 hardcode_minus_L=$hardcode_minus_L_RC
17643
17644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17645 # the resulting binary.
17646 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17647
17648 # Set to yes if building a shared library automatically hardcodes DIR into the library
17649 # and all subsequent libraries and executables linked against it.
17650 hardcode_automatic=$hardcode_automatic_RC
17651
17652 # Variables whose values should be saved in libtool wrapper scripts and
17653 # restored at relink time.
17654 variables_saved_for_relink="$variables_saved_for_relink"
17655
17656 # Whether libtool must link a program against all its dependency libraries.
17657 link_all_deplibs=$link_all_deplibs_RC
17658
17659 # Compile-time system search path for libraries
17660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17661
17662 # Run-time system search path for libraries
17663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17664
17665 # Fix the shell variable \$srcfile for the compiler.
17666 fix_srcfile_path="$fix_srcfile_path_RC"
17667
17668 # Set to yes if exported symbols are required.
17669 always_export_symbols=$always_export_symbols_RC
17670
17671 # The commands to list exported symbols.
17672 export_symbols_cmds=$lt_export_symbols_cmds_RC
17673
17674 # The commands to extract the exported symbol list from a shared archive.
17675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17676
17677 # Symbols that should not be listed in the preloaded symbols.
17678 exclude_expsyms=$lt_exclude_expsyms_RC
17679
17680 # Symbols that must always be exported.
17681 include_expsyms=$lt_include_expsyms_RC
17682
17683 # ### END LIBTOOL TAG CONFIG: $tagname
17684
17685 __EOF__
17686
17687
17688 else
17689   # If there is no Makefile yet, we rely on a make rule to execute
17690   # `config.status --recheck' to rerun these tests and create the
17691   # libtool script then.
17692   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17693   if test -f "$ltmain_in"; then
17694     test -f Makefile && make "$ltmain"
17695   fi
17696 fi
17697
17698
17699 ac_ext=c
17700 ac_cpp='$CPP $CPPFLAGS'
17701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17704
17705 CC="$lt_save_CC"
17706
17707         ;;
17708
17709       *)
17710         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
17711         ;;
17712       esac
17713
17714       # Append the new tag name to the list of available tags.
17715       if test -n "$tagname" ; then
17716       available_tags="$available_tags $tagname"
17717     fi
17718     fi
17719   done
17720   IFS="$lt_save_ifs"
17721
17722   # Now substitute the updated list of available tags.
17723   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17724     mv "${ofile}T" "$ofile"
17725     chmod +x "$ofile"
17726   else
17727     rm -f "${ofile}T"
17728     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
17729   fi
17730 fi
17731
17732
17733
17734 # This can be used to rebuild libtool when needed
17735 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17736
17737 # Always use our own libtool.
17738 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17739
17740 # Prevent multiple expansion
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761 #  AC_CHECK_PROGS(LIBTOOL, glibtool libtool, libtool, \
17762 #       /usr/local/bin:/opt/bin:/sw/bin:/usr/bin:/bin)
17763
17764 # Settings for optional paths
17765
17766 # Check whether --with-site_includes was given.
17767 if test "${with_site_includes+set}" = set; then :
17768   withval=$with_site_includes; for dir in `echo "$with_site_includes"|sed 's/:/ /'`
17769 do
17770     SITE_INCLUDES_CFLAGS="$SITE_INCLUDES_CFLAGS -I$dir"
17771 done
17772 CFLAGS=`echo "$SITE_INCLUDES_CFLAGS $CFLAGS"|sed 's/^  *//'`
17773
17774 else
17775   if test -f /sw/include/db3/db.h; then
17776         CFLAGS="-I/sw/include/db3 $CFLAGS"
17777 elif test -f /sw/include/db4/db.h; then
17778         CFLAGS="-I/sw/include/db4 $CFLAGS"
17779 fi
17780
17781 fi
17782
17783
17784
17785 # Check whether --with-site_libraries was given.
17786 if test "${with_site_libraries+set}" = set; then :
17787   withval=$with_site_libraries; for dir in `echo "$with_site_libraries"|sed 's/:/ /'`
17788 do
17789     SITE_LIBS="$SITE_LIBS -L$dir"
17790 done
17791 LIBS=`echo "$SITE_LIBS $LIBS"|sed 's/^  *//'`
17792
17793 fi
17794
17795
17796 # Checks for libraries.
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for concord_open_env in -lconcord" >&5
17798 $as_echo_n "checking for concord_open_env in -lconcord... " >&6; }
17799 if ${ac_cv_lib_concord_concord_open_env+:} false; then :
17800   $as_echo_n "(cached) " >&6
17801 else
17802   ac_check_lib_save_LIBS=$LIBS
17803 LIBS="-lconcord  $LIBS"
17804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805 /* end confdefs.h.  */
17806
17807 /* Override any GCC internal prototype to avoid an error.
17808    Use char because int might match the return type of a GCC
17809    builtin and then its argument prototype would still apply.  */
17810 #ifdef __cplusplus
17811 extern "C"
17812 #endif
17813 char concord_open_env ();
17814 int
17815 main ()
17816 {
17817 return concord_open_env ();
17818   ;
17819   return 0;
17820 }
17821 _ACEOF
17822 if ac_fn_c_try_link "$LINENO"; then :
17823   ac_cv_lib_concord_concord_open_env=yes
17824 else
17825   ac_cv_lib_concord_concord_open_env=no
17826 fi
17827 rm -f core conftest.err conftest.$ac_objext \
17828     conftest$ac_exeext conftest.$ac_ext
17829 LIBS=$ac_check_lib_save_LIBS
17830 fi
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_concord_concord_open_env" >&5
17832 $as_echo "$ac_cv_lib_concord_concord_open_env" >&6; }
17833 if test "x$ac_cv_lib_concord_concord_open_env" = xyes; then :
17834   cat >>confdefs.h <<_ACEOF
17835 #define HAVE_LIBCONCORD 1
17836 _ACEOF
17837
17838   LIBS="-lconcord $LIBS"
17839
17840 else
17841   as_fn_error $? "Please install Concord Ver.0.9 or later." "$LINENO" 5
17842 fi
17843
17844
17845 # Checks for header files.
17846
17847 # Checks for typedefs, structures, and compiler characteristics.
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17849 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17850 if ${ac_cv_c_const+:} false; then :
17851   $as_echo_n "(cached) " >&6
17852 else
17853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h.  */
17855
17856 int
17857 main ()
17858 {
17859
17860 #ifndef __cplusplus
17861   /* Ultrix mips cc rejects this sort of thing.  */
17862   typedef int charset[2];
17863   const charset cs = { 0, 0 };
17864   /* SunOS 4.1.1 cc rejects this.  */
17865   char const *const *pcpcc;
17866   char **ppc;
17867   /* NEC SVR4.0.2 mips cc rejects this.  */
17868   struct point {int x, y;};
17869   static struct point const zero = {0,0};
17870   /* AIX XL C 1.02.0.0 rejects this.
17871      It does not let you subtract one const X* pointer from another in
17872      an arm of an if-expression whose if-part is not a constant
17873      expression */
17874   const char *g = "string";
17875   pcpcc = &g + (g ? g-g : 0);
17876   /* HPUX 7.0 cc rejects these. */
17877   ++pcpcc;
17878   ppc = (char**) pcpcc;
17879   pcpcc = (char const *const *) ppc;
17880   { /* SCO 3.2v4 cc rejects this sort of thing.  */
17881     char tx;
17882     char *t = &tx;
17883     char const *s = 0 ? (char *) 0 : (char const *) 0;
17884
17885     *t++ = 0;
17886     if (s) return 0;
17887   }
17888   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17889     int x[] = {25, 17};
17890     const int *foo = &x[0];
17891     ++foo;
17892   }
17893   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17894     typedef const int *iptr;
17895     iptr p = 0;
17896     ++p;
17897   }
17898   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17899        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17900     struct s { int j; const int *ap[3]; } bx;
17901     struct s *b = &bx; b->j = 5;
17902   }
17903   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17904     const int foo = 10;
17905     if (!foo) return 0;
17906   }
17907   return !cs[0] && !zero.x;
17908 #endif
17909
17910   ;
17911   return 0;
17912 }
17913 _ACEOF
17914 if ac_fn_c_try_compile "$LINENO"; then :
17915   ac_cv_c_const=yes
17916 else
17917   ac_cv_c_const=no
17918 fi
17919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17920 fi
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17922 $as_echo "$ac_cv_c_const" >&6; }
17923 if test $ac_cv_c_const = no; then
17924
17925 $as_echo "#define const /**/" >>confdefs.h
17926
17927 fi
17928
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17930 $as_echo_n "checking for inline... " >&6; }
17931 if ${ac_cv_c_inline+:} false; then :
17932   $as_echo_n "(cached) " >&6
17933 else
17934   ac_cv_c_inline=no
17935 for ac_kw in inline __inline__ __inline; do
17936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h.  */
17938 #ifndef __cplusplus
17939 typedef int foo_t;
17940 static $ac_kw foo_t static_foo () {return 0; }
17941 $ac_kw foo_t foo () {return 0; }
17942 #endif
17943
17944 _ACEOF
17945 if ac_fn_c_try_compile "$LINENO"; then :
17946   ac_cv_c_inline=$ac_kw
17947 fi
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949   test "$ac_cv_c_inline" != no && break
17950 done
17951
17952 fi
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17954 $as_echo "$ac_cv_c_inline" >&6; }
17955
17956 case $ac_cv_c_inline in
17957   inline | yes) ;;
17958   *)
17959     case $ac_cv_c_inline in
17960       no) ac_val=;;
17961       *) ac_val=$ac_cv_c_inline;;
17962     esac
17963     cat >>confdefs.h <<_ACEOF
17964 #ifndef __cplusplus
17965 #define inline $ac_val
17966 #endif
17967 _ACEOF
17968     ;;
17969 esac
17970
17971
17972 # Checks for library functions.
17973 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17974 if test "x$ac_cv_type_size_t" = xyes; then :
17975
17976 else
17977
17978 cat >>confdefs.h <<_ACEOF
17979 #define size_t unsigned int
17980 _ACEOF
17981
17982 fi
17983
17984 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17985 # for constant arguments.  Useless!
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17987 $as_echo_n "checking for working alloca.h... " >&6; }
17988 if ${ac_cv_working_alloca_h+:} false; then :
17989   $as_echo_n "(cached) " >&6
17990 else
17991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17992 /* end confdefs.h.  */
17993 #include <alloca.h>
17994 int
17995 main ()
17996 {
17997 char *p = (char *) alloca (2 * sizeof (int));
17998                           if (p) return 0;
17999   ;
18000   return 0;
18001 }
18002 _ACEOF
18003 if ac_fn_c_try_link "$LINENO"; then :
18004   ac_cv_working_alloca_h=yes
18005 else
18006   ac_cv_working_alloca_h=no
18007 fi
18008 rm -f core conftest.err conftest.$ac_objext \
18009     conftest$ac_exeext conftest.$ac_ext
18010 fi
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18012 $as_echo "$ac_cv_working_alloca_h" >&6; }
18013 if test $ac_cv_working_alloca_h = yes; then
18014
18015 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18016
18017 fi
18018
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18020 $as_echo_n "checking for alloca... " >&6; }
18021 if ${ac_cv_func_alloca_works+:} false; then :
18022   $as_echo_n "(cached) " >&6
18023 else
18024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h.  */
18026 #ifdef __GNUC__
18027 # define alloca __builtin_alloca
18028 #else
18029 # ifdef _MSC_VER
18030 #  include <malloc.h>
18031 #  define alloca _alloca
18032 # else
18033 #  ifdef HAVE_ALLOCA_H
18034 #   include <alloca.h>
18035 #  else
18036 #   ifdef _AIX
18037  #pragma alloca
18038 #   else
18039 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18040 void *alloca (size_t);
18041 #    endif
18042 #   endif
18043 #  endif
18044 # endif
18045 #endif
18046
18047 int
18048 main ()
18049 {
18050 char *p = (char *) alloca (1);
18051                                     if (p) return 0;
18052   ;
18053   return 0;
18054 }
18055 _ACEOF
18056 if ac_fn_c_try_link "$LINENO"; then :
18057   ac_cv_func_alloca_works=yes
18058 else
18059   ac_cv_func_alloca_works=no
18060 fi
18061 rm -f core conftest.err conftest.$ac_objext \
18062     conftest$ac_exeext conftest.$ac_ext
18063 fi
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18065 $as_echo "$ac_cv_func_alloca_works" >&6; }
18066
18067 if test $ac_cv_func_alloca_works = yes; then
18068
18069 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18070
18071 else
18072   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18073 # that cause trouble.  Some versions do not even contain alloca or
18074 # contain a buggy version.  If you still want to use their alloca,
18075 # use ar to extract alloca.o from them instead of compiling alloca.c.
18076
18077 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18078
18079 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18080
18081
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18083 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18084 if ${ac_cv_os_cray+:} false; then :
18085   $as_echo_n "(cached) " >&6
18086 else
18087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088 /* end confdefs.h.  */
18089 #if defined CRAY && ! defined CRAY2
18090 webecray
18091 #else
18092 wenotbecray
18093 #endif
18094
18095 _ACEOF
18096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18097   $EGREP "webecray" >/dev/null 2>&1; then :
18098   ac_cv_os_cray=yes
18099 else
18100   ac_cv_os_cray=no
18101 fi
18102 rm -f conftest*
18103
18104 fi
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18106 $as_echo "$ac_cv_os_cray" >&6; }
18107 if test $ac_cv_os_cray = yes; then
18108   for ac_func in _getb67 GETB67 getb67; do
18109     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18110 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18111 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18112
18113 cat >>confdefs.h <<_ACEOF
18114 #define CRAY_STACKSEG_END $ac_func
18115 _ACEOF
18116
18117     break
18118 fi
18119
18120   done
18121 fi
18122
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18124 $as_echo_n "checking stack direction for C alloca... " >&6; }
18125 if ${ac_cv_c_stack_direction+:} false; then :
18126   $as_echo_n "(cached) " >&6
18127 else
18128   if test "$cross_compiling" = yes; then :
18129   ac_cv_c_stack_direction=0
18130 else
18131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h.  */
18133 $ac_includes_default
18134 int
18135 find_stack_direction (int *addr, int depth)
18136 {
18137   int dir, dummy = 0;
18138   if (! addr)
18139     addr = &dummy;
18140   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18141   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18142   return dir + dummy;
18143 }
18144
18145 int
18146 main (int argc, char **argv)
18147 {
18148   return find_stack_direction (0, argc + !argv + 20) < 0;
18149 }
18150 _ACEOF
18151 if ac_fn_c_try_run "$LINENO"; then :
18152   ac_cv_c_stack_direction=1
18153 else
18154   ac_cv_c_stack_direction=-1
18155 fi
18156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18157   conftest.$ac_objext conftest.beam conftest.$ac_ext
18158 fi
18159
18160 fi
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18162 $as_echo "$ac_cv_c_stack_direction" >&6; }
18163 cat >>confdefs.h <<_ACEOF
18164 #define STACK_DIRECTION $ac_cv_c_stack_direction
18165 _ACEOF
18166
18167
18168 fi
18169
18170
18171   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
18172 if test "x$ac_cv_header_minix_config_h" = xyes; then :
18173   MINIX=yes
18174 else
18175   MINIX=
18176 fi
18177
18178
18179   if test "$MINIX" = yes; then
18180
18181 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
18182
18183
18184 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
18185
18186
18187 $as_echo "#define _MINIX 1" >>confdefs.h
18188
18189   fi
18190
18191
18192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
18193 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
18194 if ${ac_cv_safe_to_define___extensions__+:} false; then :
18195   $as_echo_n "(cached) " >&6
18196 else
18197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h.  */
18199
18200 #         define __EXTENSIONS__ 1
18201           $ac_includes_default
18202 int
18203 main ()
18204 {
18205
18206   ;
18207   return 0;
18208 }
18209 _ACEOF
18210 if ac_fn_c_try_compile "$LINENO"; then :
18211   ac_cv_safe_to_define___extensions__=yes
18212 else
18213   ac_cv_safe_to_define___extensions__=no
18214 fi
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18216 fi
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
18218 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
18219   test $ac_cv_safe_to_define___extensions__ = yes &&
18220     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
18221
18222   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
18223
18224   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
18225
18226   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
18227
18228   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
18229
18230
18231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
18232 $as_echo_n "checking for working strnlen... " >&6; }
18233 if ${ac_cv_func_strnlen_working+:} false; then :
18234   $as_echo_n "(cached) " >&6
18235 else
18236   if test "$cross_compiling" = yes; then :
18237   # Guess no on AIX systems, yes otherwise.
18238                 case "$host_os" in
18239                   aix*) ac_cv_func_strnlen_working=no;;
18240                   *)    ac_cv_func_strnlen_working=yes;;
18241                 esac
18242 else
18243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244 /* end confdefs.h.  */
18245 $ac_includes_default
18246 int
18247 main ()
18248 {
18249
18250 #define S "foobar"
18251 #define S_LEN (sizeof S - 1)
18252
18253   /* At least one implementation is buggy: that of AIX 4.3 would
18254      give strnlen (S, 1) == 3.  */
18255
18256   int i;
18257   for (i = 0; i < S_LEN + 1; ++i)
18258     {
18259       int expected = i <= S_LEN ? i : S_LEN;
18260       if (strnlen (S, i) != expected)
18261         return 1;
18262     }
18263   return 0;
18264
18265   ;
18266   return 0;
18267 }
18268 _ACEOF
18269 if ac_fn_c_try_run "$LINENO"; then :
18270   ac_cv_func_strnlen_working=yes
18271 else
18272   ac_cv_func_strnlen_working=no
18273 fi
18274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18275   conftest.$ac_objext conftest.beam conftest.$ac_ext
18276 fi
18277
18278 fi
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
18280 $as_echo "$ac_cv_func_strnlen_working" >&6; }
18281 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
18282   *" strnlen.$ac_objext "* ) ;;
18283   *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18284  ;;
18285 esac
18286
18287
18288
18289 for ac_func in strnlen
18290 do :
18291   ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
18292 if test "x$ac_cv_func_strnlen" = xyes; then :
18293   cat >>confdefs.h <<_ACEOF
18294 #define HAVE_STRNLEN 1
18295 _ACEOF
18296
18297 fi
18298 done
18299
18300
18301 ac_config_files="$ac_config_files Makefile"
18302
18303 cat >confcache <<\_ACEOF
18304 # This file is a shell script that caches the results of configure
18305 # tests run on this system so they can be shared between configure
18306 # scripts and configure runs, see configure's option --config-cache.
18307 # It is not useful on other systems.  If it contains results you don't
18308 # want to keep, you may remove or edit it.
18309 #
18310 # config.status only pays attention to the cache file if you give it
18311 # the --recheck option to rerun configure.
18312 #
18313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18315 # following values.
18316
18317 _ACEOF
18318
18319 # The following way of writing the cache mishandles newlines in values,
18320 # but we know of no workaround that is simple, portable, and efficient.
18321 # So, we kill variables containing newlines.
18322 # Ultrix sh set writes to stderr and can't be redirected directly,
18323 # and sets the high bit in the cache file unless we assign to the vars.
18324 (
18325   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18326     eval ac_val=\$$ac_var
18327     case $ac_val in #(
18328     *${as_nl}*)
18329       case $ac_var in #(
18330       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18331 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18332       esac
18333       case $ac_var in #(
18334       _ | IFS | as_nl) ;; #(
18335       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18336       *) { eval $ac_var=; unset $ac_var;} ;;
18337       esac ;;
18338     esac
18339   done
18340
18341   (set) 2>&1 |
18342     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18343     *${as_nl}ac_space=\ *)
18344       # `set' does not quote correctly, so add quotes: double-quote
18345       # substitution turns \\\\ into \\, and sed turns \\ into \.
18346       sed -n \
18347         "s/'/'\\\\''/g;
18348           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18349       ;; #(
18350     *)
18351       # `set' quotes correctly as required by POSIX, so do not add quotes.
18352       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18353       ;;
18354     esac |
18355     sort
18356 ) |
18357   sed '
18358      /^ac_cv_env_/b end
18359      t clear
18360      :clear
18361      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18362      t end
18363      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18364      :end' >>confcache
18365 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18366   if test -w "$cache_file"; then
18367     if test "x$cache_file" != "x/dev/null"; then
18368       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18369 $as_echo "$as_me: updating cache $cache_file" >&6;}
18370       if test ! -f "$cache_file" || test -h "$cache_file"; then
18371         cat confcache >"$cache_file"
18372       else
18373         case $cache_file in #(
18374         */* | ?:*)
18375           mv -f confcache "$cache_file"$$ &&
18376           mv -f "$cache_file"$$ "$cache_file" ;; #(
18377         *)
18378           mv -f confcache "$cache_file" ;;
18379         esac
18380       fi
18381     fi
18382   else
18383     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18384 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18385   fi
18386 fi
18387 rm -f confcache
18388
18389 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18390 # Let make expand exec_prefix.
18391 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18392
18393 DEFS=-DHAVE_CONFIG_H
18394
18395 ac_libobjs=
18396 ac_ltlibobjs=
18397 U=
18398 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18399   # 1. Remove the extension, and $U if already installed.
18400   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18401   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18402   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18403   #    will be set to the directory where LIBOBJS objects are built.
18404   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18405   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18406 done
18407 LIBOBJS=$ac_libobjs
18408
18409 LTLIBOBJS=$ac_ltlibobjs
18410
18411
18412
18413 : "${CONFIG_STATUS=./config.status}"
18414 ac_write_fail=0
18415 ac_clean_files_save=$ac_clean_files
18416 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18418 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18419 as_write_fail=0
18420 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18421 #! $SHELL
18422 # Generated by $as_me.
18423 # Run this file to recreate the current configuration.
18424 # Compiler output produced by configure, useful for debugging
18425 # configure, is in config.log if it exists.
18426
18427 debug=false
18428 ac_cs_recheck=false
18429 ac_cs_silent=false
18430
18431 SHELL=\${CONFIG_SHELL-$SHELL}
18432 export SHELL
18433 _ASEOF
18434 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18435 ## -------------------- ##
18436 ## M4sh Initialization. ##
18437 ## -------------------- ##
18438
18439 # Be more Bourne compatible
18440 DUALCASE=1; export DUALCASE # for MKS sh
18441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18442   emulate sh
18443   NULLCMD=:
18444   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18445   # is contrary to our usage.  Disable this feature.
18446   alias -g '${1+"$@"}'='"$@"'
18447   setopt NO_GLOB_SUBST
18448 else
18449   case `(set -o) 2>/dev/null` in #(
18450   *posix*) :
18451     set -o posix ;; #(
18452   *) :
18453      ;;
18454 esac
18455 fi
18456
18457
18458 as_nl='
18459 '
18460 export as_nl
18461 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18462 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18464 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18465 # Prefer a ksh shell builtin over an external printf program on Solaris,
18466 # but without wasting forks for bash or zsh.
18467 if test -z "$BASH_VERSION$ZSH_VERSION" \
18468     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18469   as_echo='print -r --'
18470   as_echo_n='print -rn --'
18471 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18472   as_echo='printf %s\n'
18473   as_echo_n='printf %s'
18474 else
18475   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18476     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18477     as_echo_n='/usr/ucb/echo -n'
18478   else
18479     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18480     as_echo_n_body='eval
18481       arg=$1;
18482       case $arg in #(
18483       *"$as_nl"*)
18484         expr "X$arg" : "X\\(.*\\)$as_nl";
18485         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18486       esac;
18487       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18488     '
18489     export as_echo_n_body
18490     as_echo_n='sh -c $as_echo_n_body as_echo'
18491   fi
18492   export as_echo_body
18493   as_echo='sh -c $as_echo_body as_echo'
18494 fi
18495
18496 # The user is always right.
18497 if test "${PATH_SEPARATOR+set}" != set; then
18498   PATH_SEPARATOR=:
18499   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18500     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18501       PATH_SEPARATOR=';'
18502   }
18503 fi
18504
18505
18506 # IFS
18507 # We need space, tab and new line, in precisely that order.  Quoting is
18508 # there to prevent editors from complaining about space-tab.
18509 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18510 # splitting by setting IFS to empty value.)
18511 IFS=" ""        $as_nl"
18512
18513 # Find who we are.  Look in the path if we contain no directory separator.
18514 as_myself=
18515 case $0 in #((
18516   *[\\/]* ) as_myself=$0 ;;
18517   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518 for as_dir in $PATH
18519 do
18520   IFS=$as_save_IFS
18521   test -z "$as_dir" && as_dir=.
18522     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18523   done
18524 IFS=$as_save_IFS
18525
18526      ;;
18527 esac
18528 # We did not find ourselves, most probably we were run as `sh COMMAND'
18529 # in which case we are not to be found in the path.
18530 if test "x$as_myself" = x; then
18531   as_myself=$0
18532 fi
18533 if test ! -f "$as_myself"; then
18534   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18535   exit 1
18536 fi
18537
18538 # Unset variables that we do not need and which cause bugs (e.g. in
18539 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18540 # suppresses any "Segmentation fault" message there.  '((' could
18541 # trigger a bug in pdksh 5.2.14.
18542 for as_var in BASH_ENV ENV MAIL MAILPATH
18543 do eval test x\${$as_var+set} = xset \
18544   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18545 done
18546 PS1='$ '
18547 PS2='> '
18548 PS4='+ '
18549
18550 # NLS nuisances.
18551 LC_ALL=C
18552 export LC_ALL
18553 LANGUAGE=C
18554 export LANGUAGE
18555
18556 # CDPATH.
18557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18558
18559
18560 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18561 # ----------------------------------------
18562 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18563 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18564 # script with STATUS, using 1 if that was 0.
18565 as_fn_error ()
18566 {
18567   as_status=$1; test $as_status -eq 0 && as_status=1
18568   if test "$4"; then
18569     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18570     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18571   fi
18572   $as_echo "$as_me: error: $2" >&2
18573   as_fn_exit $as_status
18574 } # as_fn_error
18575
18576
18577 # as_fn_set_status STATUS
18578 # -----------------------
18579 # Set $? to STATUS, without forking.
18580 as_fn_set_status ()
18581 {
18582   return $1
18583 } # as_fn_set_status
18584
18585 # as_fn_exit STATUS
18586 # -----------------
18587 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18588 as_fn_exit ()
18589 {
18590   set +e
18591   as_fn_set_status $1
18592   exit $1
18593 } # as_fn_exit
18594
18595 # as_fn_unset VAR
18596 # ---------------
18597 # Portably unset VAR.
18598 as_fn_unset ()
18599 {
18600   { eval $1=; unset $1;}
18601 }
18602 as_unset=as_fn_unset
18603 # as_fn_append VAR VALUE
18604 # ----------------------
18605 # Append the text in VALUE to the end of the definition contained in VAR. Take
18606 # advantage of any shell optimizations that allow amortized linear growth over
18607 # repeated appends, instead of the typical quadratic growth present in naive
18608 # implementations.
18609 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18610   eval 'as_fn_append ()
18611   {
18612     eval $1+=\$2
18613   }'
18614 else
18615   as_fn_append ()
18616   {
18617     eval $1=\$$1\$2
18618   }
18619 fi # as_fn_append
18620
18621 # as_fn_arith ARG...
18622 # ------------------
18623 # Perform arithmetic evaluation on the ARGs, and store the result in the
18624 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18625 # must be portable across $(()) and expr.
18626 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18627   eval 'as_fn_arith ()
18628   {
18629     as_val=$(( $* ))
18630   }'
18631 else
18632   as_fn_arith ()
18633   {
18634     as_val=`expr "$@" || test $? -eq 1`
18635   }
18636 fi # as_fn_arith
18637
18638
18639 if expr a : '\(a\)' >/dev/null 2>&1 &&
18640    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18641   as_expr=expr
18642 else
18643   as_expr=false
18644 fi
18645
18646 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18647   as_basename=basename
18648 else
18649   as_basename=false
18650 fi
18651
18652 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18653   as_dirname=dirname
18654 else
18655   as_dirname=false
18656 fi
18657
18658 as_me=`$as_basename -- "$0" ||
18659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18660          X"$0" : 'X\(//\)$' \| \
18661          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18662 $as_echo X/"$0" |
18663     sed '/^.*\/\([^/][^/]*\)\/*$/{
18664             s//\1/
18665             q
18666           }
18667           /^X\/\(\/\/\)$/{
18668             s//\1/
18669             q
18670           }
18671           /^X\/\(\/\).*/{
18672             s//\1/
18673             q
18674           }
18675           s/.*/./; q'`
18676
18677 # Avoid depending upon Character Ranges.
18678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18681 as_cr_digits='0123456789'
18682 as_cr_alnum=$as_cr_Letters$as_cr_digits
18683
18684 ECHO_C= ECHO_N= ECHO_T=
18685 case `echo -n x` in #(((((
18686 -n*)
18687   case `echo 'xy\c'` in
18688   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18689   xy)  ECHO_C='\c';;
18690   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18691        ECHO_T=' ';;
18692   esac;;
18693 *)
18694   ECHO_N='-n';;
18695 esac
18696
18697 rm -f conf$$ conf$$.exe conf$$.file
18698 if test -d conf$$.dir; then
18699   rm -f conf$$.dir/conf$$.file
18700 else
18701   rm -f conf$$.dir
18702   mkdir conf$$.dir 2>/dev/null
18703 fi
18704 if (echo >conf$$.file) 2>/dev/null; then
18705   if ln -s conf$$.file conf$$ 2>/dev/null; then
18706     as_ln_s='ln -s'
18707     # ... but there are two gotchas:
18708     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18709     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18710     # In both cases, we have to default to `cp -pR'.
18711     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18712       as_ln_s='cp -pR'
18713   elif ln conf$$.file conf$$ 2>/dev/null; then
18714     as_ln_s=ln
18715   else
18716     as_ln_s='cp -pR'
18717   fi
18718 else
18719   as_ln_s='cp -pR'
18720 fi
18721 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18722 rmdir conf$$.dir 2>/dev/null
18723
18724
18725 # as_fn_mkdir_p
18726 # -------------
18727 # Create "$as_dir" as a directory, including parents if necessary.
18728 as_fn_mkdir_p ()
18729 {
18730
18731   case $as_dir in #(
18732   -*) as_dir=./$as_dir;;
18733   esac
18734   test -d "$as_dir" || eval $as_mkdir_p || {
18735     as_dirs=
18736     while :; do
18737       case $as_dir in #(
18738       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18739       *) as_qdir=$as_dir;;
18740       esac
18741       as_dirs="'$as_qdir' $as_dirs"
18742       as_dir=`$as_dirname -- "$as_dir" ||
18743 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18744          X"$as_dir" : 'X\(//\)[^/]' \| \
18745          X"$as_dir" : 'X\(//\)$' \| \
18746          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18747 $as_echo X"$as_dir" |
18748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18749             s//\1/
18750             q
18751           }
18752           /^X\(\/\/\)[^/].*/{
18753             s//\1/
18754             q
18755           }
18756           /^X\(\/\/\)$/{
18757             s//\1/
18758             q
18759           }
18760           /^X\(\/\).*/{
18761             s//\1/
18762             q
18763           }
18764           s/.*/./; q'`
18765       test -d "$as_dir" && break
18766     done
18767     test -z "$as_dirs" || eval "mkdir $as_dirs"
18768   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18769
18770
18771 } # as_fn_mkdir_p
18772 if mkdir -p . 2>/dev/null; then
18773   as_mkdir_p='mkdir -p "$as_dir"'
18774 else
18775   test -d ./-p && rmdir ./-p
18776   as_mkdir_p=false
18777 fi
18778
18779
18780 # as_fn_executable_p FILE
18781 # -----------------------
18782 # Test if FILE is an executable regular file.
18783 as_fn_executable_p ()
18784 {
18785   test -f "$1" && test -x "$1"
18786 } # as_fn_executable_p
18787 as_test_x='test -x'
18788 as_executable_p=as_fn_executable_p
18789
18790 # Sed expression to map a string onto a valid CPP name.
18791 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18792
18793 # Sed expression to map a string onto a valid variable name.
18794 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18795
18796
18797 exec 6>&1
18798 ## ----------------------------------- ##
18799 ## Main body of $CONFIG_STATUS script. ##
18800 ## ----------------------------------- ##
18801 _ASEOF
18802 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18803
18804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18805 # Save the log message, to keep $0 and so on meaningful, and to
18806 # report actual input values of CONFIG_FILES etc. instead of their
18807 # values after options handling.
18808 ac_log="
18809 This file was extended by libchise $as_me 0.5.0, which was
18810 generated by GNU Autoconf 2.69.  Invocation command line was
18811
18812   CONFIG_FILES    = $CONFIG_FILES
18813   CONFIG_HEADERS  = $CONFIG_HEADERS
18814   CONFIG_LINKS    = $CONFIG_LINKS
18815   CONFIG_COMMANDS = $CONFIG_COMMANDS
18816   $ $0 $@
18817
18818 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18819 "
18820
18821 _ACEOF
18822
18823 case $ac_config_files in *"
18824 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18825 esac
18826
18827 case $ac_config_headers in *"
18828 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18829 esac
18830
18831
18832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18833 # Files that config.status was made for.
18834 config_files="$ac_config_files"
18835 config_headers="$ac_config_headers"
18836
18837 _ACEOF
18838
18839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18840 ac_cs_usage="\
18841 \`$as_me' instantiates files and other configuration actions
18842 from templates according to the current configuration.  Unless the files
18843 and actions are specified as TAGs, all are instantiated by default.
18844
18845 Usage: $0 [OPTION]... [TAG]...
18846
18847   -h, --help       print this help, then exit
18848   -V, --version    print version number and configuration settings, then exit
18849       --config     print configuration, then exit
18850   -q, --quiet, --silent
18851                    do not print progress messages
18852   -d, --debug      don't remove temporary files
18853       --recheck    update $as_me by reconfiguring in the same conditions
18854       --file=FILE[:TEMPLATE]
18855                    instantiate the configuration file FILE
18856       --header=FILE[:TEMPLATE]
18857                    instantiate the configuration header FILE
18858
18859 Configuration files:
18860 $config_files
18861
18862 Configuration headers:
18863 $config_headers
18864
18865 Report bugs to <chise-en@lists.chise.org>."
18866
18867 _ACEOF
18868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18869 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18870 ac_cs_version="\\
18871 libchise config.status 0.5.0
18872 configured by $0, generated by GNU Autoconf 2.69,
18873   with options \\"\$ac_cs_config\\"
18874
18875 Copyright (C) 2012 Free Software Foundation, Inc.
18876 This config.status script is free software; the Free Software Foundation
18877 gives unlimited permission to copy, distribute and modify it."
18878
18879 ac_pwd='$ac_pwd'
18880 srcdir='$srcdir'
18881 test -n "\$AWK" || AWK=awk
18882 _ACEOF
18883
18884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18885 # The default lists apply if the user does not specify any file.
18886 ac_need_defaults=:
18887 while test $# != 0
18888 do
18889   case $1 in
18890   --*=?*)
18891     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18892     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18893     ac_shift=:
18894     ;;
18895   --*=)
18896     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18897     ac_optarg=
18898     ac_shift=:
18899     ;;
18900   *)
18901     ac_option=$1
18902     ac_optarg=$2
18903     ac_shift=shift
18904     ;;
18905   esac
18906
18907   case $ac_option in
18908   # Handling of the options.
18909   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18910     ac_cs_recheck=: ;;
18911   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18912     $as_echo "$ac_cs_version"; exit ;;
18913   --config | --confi | --conf | --con | --co | --c )
18914     $as_echo "$ac_cs_config"; exit ;;
18915   --debug | --debu | --deb | --de | --d | -d )
18916     debug=: ;;
18917   --file | --fil | --fi | --f )
18918     $ac_shift
18919     case $ac_optarg in
18920     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18921     '') as_fn_error $? "missing file argument" ;;
18922     esac
18923     as_fn_append CONFIG_FILES " '$ac_optarg'"
18924     ac_need_defaults=false;;
18925   --header | --heade | --head | --hea )
18926     $ac_shift
18927     case $ac_optarg in
18928     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18929     esac
18930     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18931     ac_need_defaults=false;;
18932   --he | --h)
18933     # Conflict between --help and --header
18934     as_fn_error $? "ambiguous option: \`$1'
18935 Try \`$0 --help' for more information.";;
18936   --help | --hel | -h )
18937     $as_echo "$ac_cs_usage"; exit ;;
18938   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18939   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18940     ac_cs_silent=: ;;
18941
18942   # This is an error.
18943   -*) as_fn_error $? "unrecognized option: \`$1'
18944 Try \`$0 --help' for more information." ;;
18945
18946   *) as_fn_append ac_config_targets " $1"
18947      ac_need_defaults=false ;;
18948
18949   esac
18950   shift
18951 done
18952
18953 ac_configure_extra_args=
18954
18955 if $ac_cs_silent; then
18956   exec 6>/dev/null
18957   ac_configure_extra_args="$ac_configure_extra_args --silent"
18958 fi
18959
18960 _ACEOF
18961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18962 if \$ac_cs_recheck; then
18963   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18964   shift
18965   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18966   CONFIG_SHELL='$SHELL'
18967   export CONFIG_SHELL
18968   exec "\$@"
18969 fi
18970
18971 _ACEOF
18972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18973 exec 5>>config.log
18974 {
18975   echo
18976   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18977 ## Running $as_me. ##
18978 _ASBOX
18979   $as_echo "$ac_log"
18980 } >&5
18981
18982 _ACEOF
18983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18984 _ACEOF
18985
18986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18987
18988 # Handling of arguments.
18989 for ac_config_target in $ac_config_targets
18990 do
18991   case $ac_config_target in
18992     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18993     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18994
18995   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18996   esac
18997 done
18998
18999
19000 # If the user did not use the arguments to specify the items to instantiate,
19001 # then the envvar interface is used.  Set only those that are not.
19002 # We use the long form for the default assignment because of an extremely
19003 # bizarre bug on SunOS 4.1.3.
19004 if $ac_need_defaults; then
19005   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19006   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19007 fi
19008
19009 # Have a temporary directory for convenience.  Make it in the build tree
19010 # simply because there is no reason against having it here, and in addition,
19011 # creating and moving files from /tmp can sometimes cause problems.
19012 # Hook for its removal unless debugging.
19013 # Note that there is a small window in which the directory will not be cleaned:
19014 # after its creation but before its name has been assigned to `$tmp'.
19015 $debug ||
19016 {
19017   tmp= ac_tmp=
19018   trap 'exit_status=$?
19019   : "${ac_tmp:=$tmp}"
19020   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19021 ' 0
19022   trap 'as_fn_exit 1' 1 2 13 15
19023 }
19024 # Create a (secure) tmp directory for tmp files.
19025
19026 {
19027   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19028   test -d "$tmp"
19029 }  ||
19030 {
19031   tmp=./conf$$-$RANDOM
19032   (umask 077 && mkdir "$tmp")
19033 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19034 ac_tmp=$tmp
19035
19036 # Set up the scripts for CONFIG_FILES section.
19037 # No need to generate them if there are no CONFIG_FILES.
19038 # This happens for instance with `./config.status config.h'.
19039 if test -n "$CONFIG_FILES"; then
19040
19041
19042 ac_cr=`echo X | tr X '\015'`
19043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19044 # But we know of no other shell where ac_cr would be empty at this
19045 # point, so we can use a bashism as a fallback.
19046 if test "x$ac_cr" = x; then
19047   eval ac_cr=\$\'\\r\'
19048 fi
19049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19051   ac_cs_awk_cr='\\r'
19052 else
19053   ac_cs_awk_cr=$ac_cr
19054 fi
19055
19056 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19057 _ACEOF
19058
19059
19060 {
19061   echo "cat >conf$$subs.awk <<_ACEOF" &&
19062   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19063   echo "_ACEOF"
19064 } >conf$$subs.sh ||
19065   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19067 ac_delim='%!_!# '
19068 for ac_last_try in false false false false false :; do
19069   . ./conf$$subs.sh ||
19070     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19071
19072   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19073   if test $ac_delim_n = $ac_delim_num; then
19074     break
19075   elif $ac_last_try; then
19076     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19077   else
19078     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19079   fi
19080 done
19081 rm -f conf$$subs.sh
19082
19083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19084 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19085 _ACEOF
19086 sed -n '
19087 h
19088 s/^/S["/; s/!.*/"]=/
19089 p
19090 g
19091 s/^[^!]*!//
19092 :repl
19093 t repl
19094 s/'"$ac_delim"'$//
19095 t delim
19096 :nl
19097 h
19098 s/\(.\{148\}\)..*/\1/
19099 t more1
19100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19101 p
19102 n
19103 b repl
19104 :more1
19105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19106 p
19107 g
19108 s/.\{148\}//
19109 t nl
19110 :delim
19111 h
19112 s/\(.\{148\}\)..*/\1/
19113 t more2
19114 s/["\\]/\\&/g; s/^/"/; s/$/"/
19115 p
19116 b
19117 :more2
19118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19119 p
19120 g
19121 s/.\{148\}//
19122 t delim
19123 ' <conf$$subs.awk | sed '
19124 /^[^""]/{
19125   N
19126   s/\n//
19127 }
19128 ' >>$CONFIG_STATUS || ac_write_fail=1
19129 rm -f conf$$subs.awk
19130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19131 _ACAWK
19132 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19133   for (key in S) S_is_set[key] = 1
19134   FS = "\a"
19135
19136 }
19137 {
19138   line = $ 0
19139   nfields = split(line, field, "@")
19140   substed = 0
19141   len = length(field[1])
19142   for (i = 2; i < nfields; i++) {
19143     key = field[i]
19144     keylen = length(key)
19145     if (S_is_set[key]) {
19146       value = S[key]
19147       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19148       len += length(value) + length(field[++i])
19149       substed = 1
19150     } else
19151       len += 1 + keylen
19152   }
19153
19154   print line
19155 }
19156
19157 _ACAWK
19158 _ACEOF
19159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19160 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19161   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19162 else
19163   cat
19164 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19165   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19166 _ACEOF
19167
19168 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19169 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19170 # trailing colons and then remove the whole line if VPATH becomes empty
19171 # (actually we leave an empty line to preserve line numbers).
19172 if test "x$srcdir" = x.; then
19173   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19174 h
19175 s///
19176 s/^/:/
19177 s/[      ]*$/:/
19178 s/:\$(srcdir):/:/g
19179 s/:\${srcdir}:/:/g
19180 s/:@srcdir@:/:/g
19181 s/^:*//
19182 s/:*$//
19183 x
19184 s/\(=[   ]*\).*/\1/
19185 G
19186 s/\n//
19187 s/^[^=]*=[       ]*$//
19188 }'
19189 fi
19190
19191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19192 fi # test -n "$CONFIG_FILES"
19193
19194 # Set up the scripts for CONFIG_HEADERS section.
19195 # No need to generate them if there are no CONFIG_HEADERS.
19196 # This happens for instance with `./config.status Makefile'.
19197 if test -n "$CONFIG_HEADERS"; then
19198 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19199 BEGIN {
19200 _ACEOF
19201
19202 # Transform confdefs.h into an awk script `defines.awk', embedded as
19203 # here-document in config.status, that substitutes the proper values into
19204 # config.h.in to produce config.h.
19205
19206 # Create a delimiter string that does not exist in confdefs.h, to ease
19207 # handling of long lines.
19208 ac_delim='%!_!# '
19209 for ac_last_try in false false :; do
19210   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19211   if test -z "$ac_tt"; then
19212     break
19213   elif $ac_last_try; then
19214     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19215   else
19216     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19217   fi
19218 done
19219
19220 # For the awk script, D is an array of macro values keyed by name,
19221 # likewise P contains macro parameters if any.  Preserve backslash
19222 # newline sequences.
19223
19224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19225 sed -n '
19226 s/.\{148\}/&'"$ac_delim"'/g
19227 t rset
19228 :rset
19229 s/^[     ]*#[    ]*define[       ][      ]*/ /
19230 t def
19231 d
19232 :def
19233 s/\\$//
19234 t bsnl
19235 s/["\\]/\\&/g
19236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19237 D["\1"]=" \3"/p
19238 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19239 d
19240 :bsnl
19241 s/["\\]/\\&/g
19242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19243 D["\1"]=" \3\\\\\\n"\\/p
19244 t cont
19245 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19246 t cont
19247 d
19248 :cont
19249 n
19250 s/.\{148\}/&'"$ac_delim"'/g
19251 t clear
19252 :clear
19253 s/\\$//
19254 t bsnlc
19255 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19256 d
19257 :bsnlc
19258 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19259 b cont
19260 ' <confdefs.h | sed '
19261 s/'"$ac_delim"'/"\\\
19262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19263
19264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19265   for (key in D) D_is_set[key] = 1
19266   FS = "\a"
19267 }
19268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19269   line = \$ 0
19270   split(line, arg, " ")
19271   if (arg[1] == "#") {
19272     defundef = arg[2]
19273     mac1 = arg[3]
19274   } else {
19275     defundef = substr(arg[1], 2)
19276     mac1 = arg[2]
19277   }
19278   split(mac1, mac2, "(") #)
19279   macro = mac2[1]
19280   prefix = substr(line, 1, index(line, defundef) - 1)
19281   if (D_is_set[macro]) {
19282     # Preserve the white space surrounding the "#".
19283     print prefix "define", macro P[macro] D[macro]
19284     next
19285   } else {
19286     # Replace #undef with comments.  This is necessary, for example,
19287     # in the case of _POSIX_SOURCE, which is predefined and required
19288     # on some systems where configure will not decide to define it.
19289     if (defundef == "undef") {
19290       print "/*", prefix defundef, macro, "*/"
19291       next
19292     }
19293   }
19294 }
19295 { print }
19296 _ACAWK
19297 _ACEOF
19298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19299   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19300 fi # test -n "$CONFIG_HEADERS"
19301
19302
19303 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
19304 shift
19305 for ac_tag
19306 do
19307   case $ac_tag in
19308   :[FHLC]) ac_mode=$ac_tag; continue;;
19309   esac
19310   case $ac_mode$ac_tag in
19311   :[FHL]*:*);;
19312   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19313   :[FH]-) ac_tag=-:-;;
19314   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19315   esac
19316   ac_save_IFS=$IFS
19317   IFS=:
19318   set x $ac_tag
19319   IFS=$ac_save_IFS
19320   shift
19321   ac_file=$1
19322   shift
19323
19324   case $ac_mode in
19325   :L) ac_source=$1;;
19326   :[FH])
19327     ac_file_inputs=
19328     for ac_f
19329     do
19330       case $ac_f in
19331       -) ac_f="$ac_tmp/stdin";;
19332       *) # Look for the file first in the build tree, then in the source tree
19333          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19334          # because $ac_f cannot contain `:'.
19335          test -f "$ac_f" ||
19336            case $ac_f in
19337            [\\/$]*) false;;
19338            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19339            esac ||
19340            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19341       esac
19342       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19343       as_fn_append ac_file_inputs " '$ac_f'"
19344     done
19345
19346     # Let's still pretend it is `configure' which instantiates (i.e., don't
19347     # use $as_me), people would be surprised to read:
19348     #    /* config.h.  Generated by config.status.  */
19349     configure_input='Generated from '`
19350           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19351         `' by configure.'
19352     if test x"$ac_file" != x-; then
19353       configure_input="$ac_file.  $configure_input"
19354       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19355 $as_echo "$as_me: creating $ac_file" >&6;}
19356     fi
19357     # Neutralize special characters interpreted by sed in replacement strings.
19358     case $configure_input in #(
19359     *\&* | *\|* | *\\* )
19360        ac_sed_conf_input=`$as_echo "$configure_input" |
19361        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19362     *) ac_sed_conf_input=$configure_input;;
19363     esac
19364
19365     case $ac_tag in
19366     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19367       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19368     esac
19369     ;;
19370   esac
19371
19372   ac_dir=`$as_dirname -- "$ac_file" ||
19373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19374          X"$ac_file" : 'X\(//\)[^/]' \| \
19375          X"$ac_file" : 'X\(//\)$' \| \
19376          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19377 $as_echo X"$ac_file" |
19378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19379             s//\1/
19380             q
19381           }
19382           /^X\(\/\/\)[^/].*/{
19383             s//\1/
19384             q
19385           }
19386           /^X\(\/\/\)$/{
19387             s//\1/
19388             q
19389           }
19390           /^X\(\/\).*/{
19391             s//\1/
19392             q
19393           }
19394           s/.*/./; q'`
19395   as_dir="$ac_dir"; as_fn_mkdir_p
19396   ac_builddir=.
19397
19398 case "$ac_dir" in
19399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19400 *)
19401   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19402   # A ".." for each directory in $ac_dir_suffix.
19403   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19404   case $ac_top_builddir_sub in
19405   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19406   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19407   esac ;;
19408 esac
19409 ac_abs_top_builddir=$ac_pwd
19410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19411 # for backward compatibility:
19412 ac_top_builddir=$ac_top_build_prefix
19413
19414 case $srcdir in
19415   .)  # We are building in place.
19416     ac_srcdir=.
19417     ac_top_srcdir=$ac_top_builddir_sub
19418     ac_abs_top_srcdir=$ac_pwd ;;
19419   [\\/]* | ?:[\\/]* )  # Absolute name.
19420     ac_srcdir=$srcdir$ac_dir_suffix;
19421     ac_top_srcdir=$srcdir
19422     ac_abs_top_srcdir=$srcdir ;;
19423   *) # Relative name.
19424     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19425     ac_top_srcdir=$ac_top_build_prefix$srcdir
19426     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19427 esac
19428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19429
19430
19431   case $ac_mode in
19432   :F)
19433   #
19434   # CONFIG_FILE
19435   #
19436
19437 _ACEOF
19438
19439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19440 # If the template does not know about datarootdir, expand it.
19441 # FIXME: This hack should be removed a few years after 2.60.
19442 ac_datarootdir_hack=; ac_datarootdir_seen=
19443 ac_sed_dataroot='
19444 /datarootdir/ {
19445   p
19446   q
19447 }
19448 /@datadir@/p
19449 /@docdir@/p
19450 /@infodir@/p
19451 /@localedir@/p
19452 /@mandir@/p'
19453 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19454 *datarootdir*) ac_datarootdir_seen=yes;;
19455 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19456   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19457 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19458 _ACEOF
19459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19460   ac_datarootdir_hack='
19461   s&@datadir@&$datadir&g
19462   s&@docdir@&$docdir&g
19463   s&@infodir@&$infodir&g
19464   s&@localedir@&$localedir&g
19465   s&@mandir@&$mandir&g
19466   s&\\\${datarootdir}&$datarootdir&g' ;;
19467 esac
19468 _ACEOF
19469
19470 # Neutralize VPATH when `$srcdir' = `.'.
19471 # Shell code in configure.ac might set extrasub.
19472 # FIXME: do we really want to maintain this feature?
19473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19474 ac_sed_extra="$ac_vpsub
19475 $extrasub
19476 _ACEOF
19477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19478 :t
19479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19480 s|@configure_input@|$ac_sed_conf_input|;t t
19481 s&@top_builddir@&$ac_top_builddir_sub&;t t
19482 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19483 s&@srcdir@&$ac_srcdir&;t t
19484 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19485 s&@top_srcdir@&$ac_top_srcdir&;t t
19486 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19487 s&@builddir@&$ac_builddir&;t t
19488 s&@abs_builddir@&$ac_abs_builddir&;t t
19489 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19490 $ac_datarootdir_hack
19491 "
19492 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19493   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19494
19495 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19496   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19497   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19498       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19499   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19500 which seems to be undefined.  Please make sure it is defined" >&5
19501 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19502 which seems to be undefined.  Please make sure it is defined" >&2;}
19503
19504   rm -f "$ac_tmp/stdin"
19505   case $ac_file in
19506   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19507   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19508   esac \
19509   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19510  ;;
19511   :H)
19512   #
19513   # CONFIG_HEADER
19514   #
19515   if test x"$ac_file" != x-; then
19516     {
19517       $as_echo "/* $configure_input  */" \
19518       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19519     } >"$ac_tmp/config.h" \
19520       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19521     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19522       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19523 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19524     else
19525       rm -f "$ac_file"
19526       mv "$ac_tmp/config.h" "$ac_file" \
19527         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19528     fi
19529   else
19530     $as_echo "/* $configure_input  */" \
19531       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19532       || as_fn_error $? "could not create -" "$LINENO" 5
19533   fi
19534  ;;
19535
19536
19537   esac
19538
19539 done # for ac_tag
19540
19541
19542 as_fn_exit 0
19543 _ACEOF
19544 ac_clean_files=$ac_clean_files_save
19545
19546 test $ac_write_fail = 0 ||
19547   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19548
19549
19550 # configure is writing to config.log, and then calls config.status.
19551 # config.status does its own redirection, appending to config.log.
19552 # Unfortunately, on DOS this fails, as config.log is still kept open
19553 # by configure, so config.status won't be able to write to it; its
19554 # output is simply discarded.  So we exec the FD to /dev/null,
19555 # effectively closing config.log, so it can be properly (re)opened and
19556 # appended to by config.status.  When coming back to configure, we
19557 # need to make the FD available again.
19558 if test "$no_create" != yes; then
19559   ac_cs_success=:
19560   ac_config_status_args=
19561   test "$silent" = yes &&
19562     ac_config_status_args="$ac_config_status_args --quiet"
19563   exec 5>/dev/null
19564   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19565   exec 5>>config.log
19566   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19567   # would make configure fail if this is the last instruction.
19568   $ac_cs_success || as_fn_exit 1
19569 fi
19570 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19571   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19572 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19573 fi
19574