]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/sqlite/lib/contrib/configure
update
[l4.git] / l4 / pkg / sqlite / lib / contrib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sqlite 3.7.15.
4 #
5 # Report bugs to <http://www.sqlite.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: http://www.sqlite.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
543
544 case X$ECHO in
545 X*--fallback-echo)
546   # Remove one level of quotation (which was required for Make).
547   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
548   ;;
549 esac
550
551 echo=${ECHO-echo}
552 if test "X$1" = X--no-reexec; then
553   # Discard the --no-reexec flag, and continue.
554   shift
555 elif test "X$1" = X--fallback-echo; then
556   # Avoid inline document here, it may be left over
557   :
558 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
559   # Yippee, $echo works!
560   :
561 else
562   # Restart under the correct shell.
563   exec $SHELL "$0" --no-reexec ${1+"$@"}
564 fi
565
566 if test "X$1" = X--fallback-echo; then
567   # used as fallback echo
568   shift
569   cat <<EOF
570 $*
571 EOF
572   exit 0
573 fi
574
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
576 # if CDPATH is set.
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579 if test -z "$ECHO"; then
580 if test "X${echo_test_string+set}" != Xset; then
581 # find a string as large as possible, as long as the shell can cope with it
582   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
585        echo_test_string=`eval $cmd` &&
586        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
587     then
588       break
589     fi
590   done
591 fi
592
593 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
594    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
595    test "X$echo_testing_string" = "X$echo_test_string"; then
596   :
597 else
598   # The Solaris, AIX, and Digital Unix default echo programs unquote
599   # backslashes.  This makes it impossible to quote backslashes using
600   #   echo "$something" | sed 's/\\/\\\\/g'
601   #
602   # So, first we look for a working echo in the user's PATH.
603
604   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
605   for dir in $PATH /usr/ucb; do
606     IFS="$lt_save_ifs"
607     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
608        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
609        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
610        test "X$echo_testing_string" = "X$echo_test_string"; then
611       echo="$dir/echo"
612       break
613     fi
614   done
615   IFS="$lt_save_ifs"
616
617   if test "X$echo" = Xecho; then
618     # We didn't find a better echo, so look for alternatives.
619     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
620        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
621        test "X$echo_testing_string" = "X$echo_test_string"; then
622       # This shell has a builtin print -r that does the trick.
623       echo='print -r'
624     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
625          test "X$CONFIG_SHELL" != X/bin/ksh; then
626       # If we have ksh, try running configure again with it.
627       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
628       export ORIGINAL_CONFIG_SHELL
629       CONFIG_SHELL=/bin/ksh
630       export CONFIG_SHELL
631       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632     else
633       # Try using printf.
634       echo='printf %s\n'
635       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
636          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
637          test "X$echo_testing_string" = "X$echo_test_string"; then
638         # Cool, printf works
639         :
640       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641            test "X$echo_testing_string" = 'X\t' &&
642            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643            test "X$echo_testing_string" = "X$echo_test_string"; then
644         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645         export CONFIG_SHELL
646         SHELL="$CONFIG_SHELL"
647         export SHELL
648         echo="$CONFIG_SHELL $0 --fallback-echo"
649       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
650            test "X$echo_testing_string" = 'X\t' &&
651            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
652            test "X$echo_testing_string" = "X$echo_test_string"; then
653         echo="$CONFIG_SHELL $0 --fallback-echo"
654       else
655         # maybe with a smaller string...
656         prev=:
657
658         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
659           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
660           then
661             break
662           fi
663           prev="$cmd"
664         done
665
666         if test "$prev" != 'sed 50q "$0"'; then
667           echo_test_string=`eval $prev`
668           export echo_test_string
669           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670         else
671           # Oops.  We lost completely, so just stick with echo.
672           echo=echo
673         fi
674       fi
675     fi
676   fi
677 fi
678 fi
679
680 # Copy echo and quote the copy suitably for passing to libtool from
681 # the Makefile, instead of quoting the original, which is used later.
682 ECHO=$echo
683 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
684    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
685 fi
686
687
688
689
690 tagnames=${tagnames+${tagnames},}CXX
691
692 tagnames=${tagnames+${tagnames},}F77
693
694 test -n "$DJDIR" || exec 7<&0 </dev/null
695 exec 6>&1
696
697 # Name of the host.
698 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702 #
703 # Initializations.
704 #
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713
714 # Identity of this package.
715 PACKAGE_NAME='sqlite'
716 PACKAGE_TARNAME='sqlite'
717 PACKAGE_VERSION='3.7.15'
718 PACKAGE_STRING='sqlite 3.7.15'
719 PACKAGE_BUGREPORT='http://www.sqlite.org'
720 PACKAGE_URL=''
721
722 ac_unique_file="sqlite3.c"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #ifdef HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #ifdef HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #ifdef STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # ifdef HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #ifdef HAVE_STRING_H
741 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #ifdef HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #ifdef HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #ifdef HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #ifdef HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='LTLIBOBJS
760 LIBOBJS
761 DYNAMIC_EXTENSION_FLAGS
762 THREADSAFE_FLAGS
763 READLINE_LIBS
764 BUILD_CFLAGS
765 MKDIR_P
766 LIBTOOL
767 ac_ct_F77
768 FFLAGS
769 F77
770 CXXCPP
771 am__fastdepCXX_FALSE
772 am__fastdepCXX_TRUE
773 CXXDEPMODE
774 ac_ct_CXX
775 CXXFLAGS
776 CXX
777 CPP
778 AR
779 ECHO
780 LN_S
781 EGREP
782 GREP
783 host_os
784 host_vendor
785 host_cpu
786 host
787 build_os
788 build_vendor
789 build_cpu
790 build
791 RANLIB
792 am__fastdepCC_FALSE
793 am__fastdepCC_TRUE
794 CCDEPMODE
795 AMDEPBACKSLASH
796 AMDEP_FALSE
797 AMDEP_TRUE
798 am__quote
799 am__include
800 DEPDIR
801 OBJEXT
802 EXEEXT
803 ac_ct_CC
804 CPPFLAGS
805 LDFLAGS
806 CFLAGS
807 CC
808 am__untar
809 am__tar
810 AMTAR
811 am__leading_dot
812 SET_MAKE
813 AWK
814 mkdir_p
815 INSTALL_STRIP_PROGRAM
816 STRIP
817 install_sh
818 MAKEINFO
819 AUTOHEADER
820 AUTOMAKE
821 AUTOCONF
822 ACLOCAL
823 VERSION
824 PACKAGE
825 CYGPATH_W
826 INSTALL_DATA
827 INSTALL_SCRIPT
828 INSTALL_PROGRAM
829 target_alias
830 host_alias
831 build_alias
832 LIBS
833 ECHO_T
834 ECHO_N
835 ECHO_C
836 DEFS
837 mandir
838 localedir
839 libdir
840 psdir
841 pdfdir
842 dvidir
843 htmldir
844 infodir
845 docdir
846 oldincludedir
847 includedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL'
867 ac_subst_files=''
868 ac_user_opts='
869 enable_option_checking
870 enable_largefile
871 enable_dependency_tracking
872 enable_shared
873 enable_static
874 enable_fast_install
875 with_gnu_ld
876 enable_libtool_lock
877 with_pic
878 with_tags
879 enable_readline
880 enable_threadsafe
881 enable_dynamic_extensions
882 '
883       ac_precious_vars='build_alias
884 host_alias
885 target_alias
886 CC
887 CFLAGS
888 LDFLAGS
889 LIBS
890 CPPFLAGS
891 CPP
892 CXX
893 CXXFLAGS
894 CCC
895 CXXCPP
896 F77
897 FFLAGS'
898
899
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 ac_unrecognized_opts=
904 ac_unrecognized_sep=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
921
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
947
948 ac_prev=
949 ac_dashdash=
950 for ac_option
951 do
952   # If the previous option needs an argument, assign it.
953   if test -n "$ac_prev"; then
954     eval $ac_prev=\$ac_option
955     ac_prev=
956     continue
957   fi
958
959   case $ac_option in
960   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961   *=)   ac_optarg= ;;
962   *)    ac_optarg=yes ;;
963   esac
964
965   # Accept the important Cygnus configure options, so we can diagnose typos.
966
967   case $ac_dashdash$ac_option in
968   --)
969     ac_dashdash=yes ;;
970
971   -bindir | --bindir | --bindi | --bind | --bin | --bi)
972     ac_prev=bindir ;;
973   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974     bindir=$ac_optarg ;;
975
976   -build | --build | --buil | --bui | --bu)
977     ac_prev=build_alias ;;
978   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979     build_alias=$ac_optarg ;;
980
981   -cache-file | --cache-file | --cache-fil | --cache-fi \
982   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983     ac_prev=cache_file ;;
984   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986     cache_file=$ac_optarg ;;
987
988   --config-cache | -C)
989     cache_file=config.cache ;;
990
991   -datadir | --datadir | --datadi | --datad)
992     ac_prev=datadir ;;
993   -datadir=* | --datadir=* | --datadi=* | --datad=*)
994     datadir=$ac_optarg ;;
995
996   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997   | --dataroo | --dataro | --datar)
998     ac_prev=datarootdir ;;
999   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001     datarootdir=$ac_optarg ;;
1002
1003   -disable-* | --disable-*)
1004     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007       as_fn_error $? "invalid feature name: $ac_useropt"
1008     ac_useropt_orig=$ac_useropt
1009     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010     case $ac_user_opts in
1011       *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015          ac_unrecognized_sep=', ';;
1016     esac
1017     eval enable_$ac_useropt=no ;;
1018
1019   -docdir | --docdir | --docdi | --doc | --do)
1020     ac_prev=docdir ;;
1021   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022     docdir=$ac_optarg ;;
1023
1024   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025     ac_prev=dvidir ;;
1026   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027     dvidir=$ac_optarg ;;
1028
1029   -enable-* | --enable-*)
1030     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033       as_fn_error $? "invalid feature name: $ac_useropt"
1034     ac_useropt_orig=$ac_useropt
1035     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036     case $ac_user_opts in
1037       *"
1038 "enable_$ac_useropt"
1039 "*) ;;
1040       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041          ac_unrecognized_sep=', ';;
1042     esac
1043     eval enable_$ac_useropt=\$ac_optarg ;;
1044
1045   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047   | --exec | --exe | --ex)
1048     ac_prev=exec_prefix ;;
1049   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051   | --exec=* | --exe=* | --ex=*)
1052     exec_prefix=$ac_optarg ;;
1053
1054   -gas | --gas | --ga | --g)
1055     # Obsolete; use --with-gas.
1056     with_gas=yes ;;
1057
1058   -help | --help | --hel | --he | -h)
1059     ac_init_help=long ;;
1060   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061     ac_init_help=recursive ;;
1062   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063     ac_init_help=short ;;
1064
1065   -host | --host | --hos | --ho)
1066     ac_prev=host_alias ;;
1067   -host=* | --host=* | --hos=* | --ho=*)
1068     host_alias=$ac_optarg ;;
1069
1070   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071     ac_prev=htmldir ;;
1072   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073   | --ht=*)
1074     htmldir=$ac_optarg ;;
1075
1076   -includedir | --includedir | --includedi | --included | --include \
1077   | --includ | --inclu | --incl | --inc)
1078     ac_prev=includedir ;;
1079   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080   | --includ=* | --inclu=* | --incl=* | --inc=*)
1081     includedir=$ac_optarg ;;
1082
1083   -infodir | --infodir | --infodi | --infod | --info | --inf)
1084     ac_prev=infodir ;;
1085   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086     infodir=$ac_optarg ;;
1087
1088   -libdir | --libdir | --libdi | --libd)
1089     ac_prev=libdir ;;
1090   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091     libdir=$ac_optarg ;;
1092
1093   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094   | --libexe | --libex | --libe)
1095     ac_prev=libexecdir ;;
1096   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097   | --libexe=* | --libex=* | --libe=*)
1098     libexecdir=$ac_optarg ;;
1099
1100   -localedir | --localedir | --localedi | --localed | --locale)
1101     ac_prev=localedir ;;
1102   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103     localedir=$ac_optarg ;;
1104
1105   -localstatedir | --localstatedir | --localstatedi | --localstated \
1106   | --localstate | --localstat | --localsta | --localst | --locals)
1107     ac_prev=localstatedir ;;
1108   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110     localstatedir=$ac_optarg ;;
1111
1112   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113     ac_prev=mandir ;;
1114   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115     mandir=$ac_optarg ;;
1116
1117   -nfp | --nfp | --nf)
1118     # Obsolete; use --without-fp.
1119     with_fp=no ;;
1120
1121   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122   | --no-cr | --no-c | -n)
1123     no_create=yes ;;
1124
1125   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127     no_recursion=yes ;;
1128
1129   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131   | --oldin | --oldi | --old | --ol | --o)
1132     ac_prev=oldincludedir ;;
1133   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136     oldincludedir=$ac_optarg ;;
1137
1138   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139     ac_prev=prefix ;;
1140   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141     prefix=$ac_optarg ;;
1142
1143   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144   | --program-pre | --program-pr | --program-p)
1145     ac_prev=program_prefix ;;
1146   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148     program_prefix=$ac_optarg ;;
1149
1150   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151   | --program-suf | --program-su | --program-s)
1152     ac_prev=program_suffix ;;
1153   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155     program_suffix=$ac_optarg ;;
1156
1157   -program-transform-name | --program-transform-name \
1158   | --program-transform-nam | --program-transform-na \
1159   | --program-transform-n | --program-transform- \
1160   | --program-transform | --program-transfor \
1161   | --program-transfo | --program-transf \
1162   | --program-trans | --program-tran \
1163   | --progr-tra | --program-tr | --program-t)
1164     ac_prev=program_transform_name ;;
1165   -program-transform-name=* | --program-transform-name=* \
1166   | --program-transform-nam=* | --program-transform-na=* \
1167   | --program-transform-n=* | --program-transform-=* \
1168   | --program-transform=* | --program-transfor=* \
1169   | --program-transfo=* | --program-transf=* \
1170   | --program-trans=* | --program-tran=* \
1171   | --progr-tra=* | --program-tr=* | --program-t=*)
1172     program_transform_name=$ac_optarg ;;
1173
1174   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175     ac_prev=pdfdir ;;
1176   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177     pdfdir=$ac_optarg ;;
1178
1179   -psdir | --psdir | --psdi | --psd | --ps)
1180     ac_prev=psdir ;;
1181   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182     psdir=$ac_optarg ;;
1183
1184   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185   | -silent | --silent | --silen | --sile | --sil)
1186     silent=yes ;;
1187
1188   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189     ac_prev=sbindir ;;
1190   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191   | --sbi=* | --sb=*)
1192     sbindir=$ac_optarg ;;
1193
1194   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196   | --sharedst | --shareds | --shared | --share | --shar \
1197   | --sha | --sh)
1198     ac_prev=sharedstatedir ;;
1199   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202   | --sha=* | --sh=*)
1203     sharedstatedir=$ac_optarg ;;
1204
1205   -site | --site | --sit)
1206     ac_prev=site ;;
1207   -site=* | --site=* | --sit=*)
1208     site=$ac_optarg ;;
1209
1210   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211     ac_prev=srcdir ;;
1212   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213     srcdir=$ac_optarg ;;
1214
1215   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216   | --syscon | --sysco | --sysc | --sys | --sy)
1217     ac_prev=sysconfdir ;;
1218   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220     sysconfdir=$ac_optarg ;;
1221
1222   -target | --target | --targe | --targ | --tar | --ta | --t)
1223     ac_prev=target_alias ;;
1224   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225     target_alias=$ac_optarg ;;
1226
1227   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228     verbose=yes ;;
1229
1230   -version | --version | --versio | --versi | --vers | -V)
1231     ac_init_version=: ;;
1232
1233   -with-* | --with-*)
1234     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235     # Reject names that are not valid shell variable names.
1236     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237       as_fn_error $? "invalid package name: $ac_useropt"
1238     ac_useropt_orig=$ac_useropt
1239     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240     case $ac_user_opts in
1241       *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245          ac_unrecognized_sep=', ';;
1246     esac
1247     eval with_$ac_useropt=\$ac_optarg ;;
1248
1249   -without-* | --without-*)
1250     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253       as_fn_error $? "invalid package name: $ac_useropt"
1254     ac_useropt_orig=$ac_useropt
1255     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256     case $ac_user_opts in
1257       *"
1258 "with_$ac_useropt"
1259 "*) ;;
1260       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261          ac_unrecognized_sep=', ';;
1262     esac
1263     eval with_$ac_useropt=no ;;
1264
1265   --x)
1266     # Obsolete; use --with-x.
1267     with_x=yes ;;
1268
1269   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270   | --x-incl | --x-inc | --x-in | --x-i)
1271     ac_prev=x_includes ;;
1272   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274     x_includes=$ac_optarg ;;
1275
1276   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278     ac_prev=x_libraries ;;
1279   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281     x_libraries=$ac_optarg ;;
1282
1283   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information"
1285     ;;
1286
1287   *=*)
1288     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289     # Reject names that are not valid shell variable names.
1290     case $ac_envvar in #(
1291       '' | [0-9]* | *[!_$as_cr_alnum]* )
1292       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1293     esac
1294     eval $ac_envvar=\$ac_optarg
1295     export $ac_envvar ;;
1296
1297   *)
1298     # FIXME: should be removed in autoconf 3.0.
1299     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1303     ;;
1304
1305   esac
1306 done
1307
1308 if test -n "$ac_prev"; then
1309   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310   as_fn_error $? "missing argument to $ac_option"
1311 fi
1312
1313 if test -n "$ac_unrecognized_opts"; then
1314   case $enable_option_checking in
1315     no) ;;
1316     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1317     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318   esac
1319 fi
1320
1321 # Check all directory arguments for consistency.
1322 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323                 datadir sysconfdir sharedstatedir localstatedir includedir \
1324                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325                 libdir localedir mandir
1326 do
1327   eval ac_val=\$$ac_var
1328   # Remove trailing slashes.
1329   case $ac_val in
1330     */ )
1331       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332       eval $ac_var=\$ac_val;;
1333   esac
1334   # Be sure to have absolute directory names.
1335   case $ac_val in
1336     [\\/$]* | ?:[\\/]* )  continue;;
1337     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338   esac
1339   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1340 done
1341
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1345 build=$build_alias
1346 host=$host_alias
1347 target=$target_alias
1348
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351   if test "x$build_alias" = x; then
1352     cross_compiling=maybe
1353     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1354     If a cross compiler is detected then cross compile mode will be used" >&2
1355   elif test "x$build_alias" != "x$host_alias"; then
1356     cross_compiling=yes
1357   fi
1358 fi
1359
1360 ac_tool_prefix=
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362
1363 test "$silent" = yes && exec 6>/dev/null
1364
1365
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369   as_fn_error $? "working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371   as_fn_error $? "pwd does not report name of working directory"
1372
1373
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376   ac_srcdir_defaulted=yes
1377   # Try the directory containing this script, then the parent directory.
1378   ac_confdir=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380          X"$as_myself" : 'X\(//\)[^/]' \| \
1381          X"$as_myself" : 'X\(//\)$' \| \
1382          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385             s//\1/
1386             q
1387           }
1388           /^X\(\/\/\)[^/].*/{
1389             s//\1/
1390             q
1391           }
1392           /^X\(\/\/\)$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\).*/{
1397             s//\1/
1398             q
1399           }
1400           s/.*/./; q'`
1401   srcdir=$ac_confdir
1402   if test ! -r "$srcdir/$ac_unique_file"; then
1403     srcdir=..
1404   fi
1405 else
1406   ac_srcdir_defaulted=no
1407 fi
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 fi
1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413 ac_abs_confdir=`(
1414         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1415         pwd)`
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418   srcdir=.
1419 fi
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1423 case $srcdir in
1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 esac
1426 for ac_var in $ac_precious_vars; do
1427   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428   eval ac_env_${ac_var}_value=\$${ac_var}
1429   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 done
1432
1433 #
1434 # Report the --help message.
1435 #
1436 if test "$ac_init_help" = "long"; then
1437   # Omit some internal or obsolete options to make the list less imposing.
1438   # This message is too long to be a string in the A/UX 3.1 sh.
1439   cat <<_ACEOF
1440 \`configure' configures sqlite 3.7.15 to adapt to many kinds of systems.
1441
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1443
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE.  See below for descriptions of some of the useful variables.
1446
1447 Defaults for the options are specified in brackets.
1448
1449 Configuration:
1450   -h, --help              display this help and exit
1451       --help=short        display options specific to this package
1452       --help=recursive    display the short help of all the included packages
1453   -V, --version           display version information and exit
1454   -q, --quiet, --silent   do not print \`checking ...' messages
1455       --cache-file=FILE   cache test results in FILE [disabled]
1456   -C, --config-cache      alias for \`--cache-file=config.cache'
1457   -n, --no-create         do not create output files
1458       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1459
1460 Installation directories:
1461   --prefix=PREFIX         install architecture-independent files in PREFIX
1462                           [$ac_default_prefix]
1463   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1464                           [PREFIX]
1465
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1470
1471 For better control, use the options below.
1472
1473 Fine tuning of the installation directories:
1474   --bindir=DIR            user executables [EPREFIX/bin]
1475   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1476   --libexecdir=DIR        program executables [EPREFIX/libexec]
1477   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1478   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1479   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1480   --libdir=DIR            object code libraries [EPREFIX/lib]
1481   --includedir=DIR        C header files [PREFIX/include]
1482   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1483   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1484   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1485   --infodir=DIR           info documentation [DATAROOTDIR/info]
1486   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1487   --mandir=DIR            man documentation [DATAROOTDIR/man]
1488   --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1489   --htmldir=DIR           html documentation [DOCDIR]
1490   --dvidir=DIR            dvi documentation [DOCDIR]
1491   --pdfdir=DIR            pdf documentation [DOCDIR]
1492   --psdir=DIR             ps documentation [DOCDIR]
1493 _ACEOF
1494
1495   cat <<\_ACEOF
1496
1497 Program names:
1498   --program-prefix=PREFIX            prepend PREFIX to installed program names
1499   --program-suffix=SUFFIX            append SUFFIX to installed program names
1500   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1501
1502 System types:
1503   --build=BUILD     configure for building on BUILD [guessed]
1504   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1505 _ACEOF
1506 fi
1507
1508 if test -n "$ac_init_help"; then
1509   case $ac_init_help in
1510      short | recursive ) echo "Configuration of sqlite 3.7.15:";;
1511    esac
1512   cat <<\_ACEOF
1513
1514 Optional Features:
1515   --disable-option-checking  ignore unrecognized --enable/--with options
1516   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1517   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1518   --disable-largefile     omit support for large files
1519   --disable-dependency-tracking  speeds up one-time build
1520   --enable-dependency-tracking   do not reject slow dependency extractors
1521   --enable-shared[=PKGS]  build shared libraries [default=yes]
1522   --enable-static[=PKGS]  build static libraries [default=yes]
1523   --enable-fast-install[=PKGS]
1524                           optimize for fast installation [default=yes]
1525   --disable-libtool-lock  avoid locking (might break parallel builds)
1526   --enable-readline       use readline in shell tool (yes, no) [default=yes]
1527   --enable-threadsafe     build a thread-safe library [default=yes]
1528   --enable-dynamic-extensions
1529                           support loadable extensions [default=yes]
1530
1531 Optional Packages:
1532   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1533   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1534   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1535   --with-pic              try to use only PIC/non-PIC objects [default=use
1536                           both]
1537   --with-tags[=TAGS]      include additional configurations [automatic]
1538
1539 Some influential environment variables:
1540   CC          C compiler command
1541   CFLAGS      C compiler flags
1542   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1543               nonstandard directory <lib dir>
1544   LIBS        libraries to pass to the linker, e.g. -l<library>
1545   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546               you have headers in a nonstandard directory <include dir>
1547   CPP         C preprocessor
1548   CXX         C++ compiler command
1549   CXXFLAGS    C++ compiler flags
1550   CXXCPP      C++ preprocessor
1551   F77         Fortran 77 compiler command
1552   FFLAGS      Fortran 77 compiler flags
1553
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1556
1557 Report bugs to <http://www.sqlite.org>.
1558 _ACEOF
1559 ac_status=$?
1560 fi
1561
1562 if test "$ac_init_help" = "recursive"; then
1563   # If there are subdirs, report their specific --help.
1564   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1565     test -d "$ac_dir" ||
1566       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1567       continue
1568     ac_builddir=.
1569
1570 case "$ac_dir" in
1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *)
1573   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1574   # A ".." for each directory in $ac_dir_suffix.
1575   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1576   case $ac_top_builddir_sub in
1577   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579   esac ;;
1580 esac
1581 ac_abs_top_builddir=$ac_pwd
1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583 # for backward compatibility:
1584 ac_top_builddir=$ac_top_build_prefix
1585
1586 case $srcdir in
1587   .)  # We are building in place.
1588     ac_srcdir=.
1589     ac_top_srcdir=$ac_top_builddir_sub
1590     ac_abs_top_srcdir=$ac_pwd ;;
1591   [\\/]* | ?:[\\/]* )  # Absolute name.
1592     ac_srcdir=$srcdir$ac_dir_suffix;
1593     ac_top_srcdir=$srcdir
1594     ac_abs_top_srcdir=$srcdir ;;
1595   *) # Relative name.
1596     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597     ac_top_srcdir=$ac_top_build_prefix$srcdir
1598     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1599 esac
1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601
1602     cd "$ac_dir" || { ac_status=$?; continue; }
1603     # Check for guested configure.
1604     if test -f "$ac_srcdir/configure.gnu"; then
1605       echo &&
1606       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607     elif test -f "$ac_srcdir/configure"; then
1608       echo &&
1609       $SHELL "$ac_srcdir/configure" --help=recursive
1610     else
1611       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612     fi || ac_status=$?
1613     cd "$ac_pwd" || { ac_status=$?; break; }
1614   done
1615 fi
1616
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1619   cat <<\_ACEOF
1620 sqlite configure 3.7.15
1621 generated by GNU Autoconf 2.68
1622
1623 Copyright (C) 2010 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1626 _ACEOF
1627   exit
1628 fi
1629
1630 ## ------------------------ ##
1631 ## Autoconf initialization. ##
1632 ## ------------------------ ##
1633
1634 # ac_fn_c_try_compile LINENO
1635 # --------------------------
1636 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_compile ()
1638 {
1639   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640   rm -f conftest.$ac_objext
1641   if { { ac_try="$ac_compile"
1642 case "(($ac_try" in
1643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644   *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648   (eval "$ac_compile") 2>conftest.err
1649   ac_status=$?
1650   if test -s conftest.err; then
1651     grep -v '^ *+' conftest.err >conftest.er1
1652     cat conftest.er1 >&5
1653     mv -f conftest.er1 conftest.err
1654   fi
1655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656   test $ac_status = 0; } && {
1657          test -z "$ac_c_werror_flag" ||
1658          test ! -s conftest.err
1659        } && test -s conftest.$ac_objext; then :
1660   ac_retval=0
1661 else
1662   $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665         ac_retval=1
1666 fi
1667   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668   as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_compile
1671
1672 # ac_fn_c_try_link LINENO
1673 # -----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_link ()
1676 {
1677   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678   rm -f conftest.$ac_objext conftest$ac_exeext
1679   if { { ac_try="$ac_link"
1680 case "(($ac_try" in
1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682   *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686   (eval "$ac_link") 2>conftest.err
1687   ac_status=$?
1688   if test -s conftest.err; then
1689     grep -v '^ *+' conftest.err >conftest.er1
1690     cat conftest.er1 >&5
1691     mv -f conftest.er1 conftest.err
1692   fi
1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694   test $ac_status = 0; } && {
1695          test -z "$ac_c_werror_flag" ||
1696          test ! -s conftest.err
1697        } && test -s conftest$ac_exeext && {
1698          test "$cross_compiling" = yes ||
1699          $as_test_x conftest$ac_exeext
1700        }; then :
1701   ac_retval=0
1702 else
1703   $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706         ac_retval=1
1707 fi
1708   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1709   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1710   # interfere with the next link command; also delete a directory that is
1711   # left behind by Apple's compiler.  We do this before executing the actions.
1712   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714   as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_link
1717
1718 # ac_fn_c_try_cpp LINENO
1719 # ----------------------
1720 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_cpp ()
1722 {
1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724   if { { ac_try="$ac_cpp conftest.$ac_ext"
1725 case "(($ac_try" in
1726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727   *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732   ac_status=$?
1733   if test -s conftest.err; then
1734     grep -v '^ *+' conftest.err >conftest.er1
1735     cat conftest.er1 >&5
1736     mv -f conftest.er1 conftest.err
1737   fi
1738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739   test $ac_status = 0; } > conftest.i && {
1740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1741          test ! -s conftest.err
1742        }; then :
1743   ac_retval=0
1744 else
1745   $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748     ac_retval=1
1749 fi
1750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751   as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_cpp
1754
1755 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1758 # the include files in INCLUDES and setting the cache variable VAR
1759 # accordingly.
1760 ac_fn_c_check_header_mongrel ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   if eval \${$3+:} false; then :
1764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767   $as_echo_n "(cached) " >&6
1768 fi
1769 eval ac_res=\$$3
1770                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 else
1773   # Is the header compilable?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1775 $as_echo_n "checking $2 usability... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h.  */
1778 $4
1779 #include <$2>
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782   ac_header_compiler=yes
1783 else
1784   ac_header_compiler=no
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1788 $as_echo "$ac_header_compiler" >&6; }
1789
1790 # Is the header present?
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1792 $as_echo_n "checking $2 presence... " >&6; }
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h.  */
1795 #include <$2>
1796 _ACEOF
1797 if ac_fn_c_try_cpp "$LINENO"; then :
1798   ac_header_preproc=yes
1799 else
1800   ac_header_preproc=no
1801 fi
1802 rm -f conftest.err conftest.i conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1804 $as_echo "$ac_header_preproc" >&6; }
1805
1806 # So?  What about this header?
1807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1808   yes:no: )
1809     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1810 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1811     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813     ;;
1814   no:yes:* )
1815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1816 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1818 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1820 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1822 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 ( $as_echo "## ------------------------------------ ##
1826 ## Report this to http://www.sqlite.org ##
1827 ## ------------------------------------ ##"
1828      ) | sed "s/^/$as_me: WARNING:     /" >&2
1829     ;;
1830 esac
1831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834   $as_echo_n "(cached) " >&6
1835 else
1836   eval "$3=\$ac_header_compiler"
1837 fi
1838 eval ac_res=\$$3
1839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 fi
1842   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_header_mongrel
1845
1846 # ac_fn_c_try_run LINENO
1847 # ----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1849 # that executables *can* be run.
1850 ac_fn_c_try_run ()
1851 {
1852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853   if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856   *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860   (eval "$ac_link") 2>&5
1861   ac_status=$?
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864   { { case "(($ac_try" in
1865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866   *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870   (eval "$ac_try") 2>&5
1871   ac_status=$?
1872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873   test $ac_status = 0; }; }; then :
1874   ac_retval=0
1875 else
1876   $as_echo "$as_me: program exited with status $ac_status" >&5
1877        $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880        ac_retval=$ac_status
1881 fi
1882   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884   as_fn_set_status $ac_retval
1885
1886 } # ac_fn_c_try_run
1887
1888 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists and can be compiled using the include files in
1891 # INCLUDES, setting the cache variable VAR accordingly.
1892 ac_fn_c_check_header_compile ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898   $as_echo_n "(cached) " >&6
1899 else
1900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h.  */
1902 $4
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906   eval "$3=yes"
1907 else
1908   eval "$3=no"
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917 } # ac_fn_c_check_header_compile
1918
1919 # ac_fn_c_check_func LINENO FUNC VAR
1920 # ----------------------------------
1921 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1922 ac_fn_c_check_func ()
1923 {
1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928   $as_echo_n "(cached) " >&6
1929 else
1930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h.  */
1932 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1934 #define $2 innocuous_$2
1935
1936 /* System header to define __stub macros and hopefully few prototypes,
1937     which can conflict with char $2 (); below.
1938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1939     <limits.h> exists even on freestanding compilers.  */
1940
1941 #ifdef __STDC__
1942 # include <limits.h>
1943 #else
1944 # include <assert.h>
1945 #endif
1946
1947 #undef $2
1948
1949 /* Override any GCC internal prototype to avoid an error.
1950    Use char because int might match the return type of a GCC
1951    builtin and then its argument prototype would still apply.  */
1952 #ifdef __cplusplus
1953 extern "C"
1954 #endif
1955 char $2 ();
1956 /* The GNU C library defines this for functions which it implements
1957     to always fail with ENOSYS.  Some functions are actually named
1958     something starting with __ and the normal name is an alias.  */
1959 #if defined __stub_$2 || defined __stub___$2
1960 choke me
1961 #endif
1962
1963 int
1964 main ()
1965 {
1966 return $2 ();
1967   ;
1968   return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_link "$LINENO"; then :
1972   eval "$3=yes"
1973 else
1974   eval "$3=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext \
1977     conftest$ac_exeext conftest.$ac_ext
1978 fi
1979 eval ac_res=\$$3
1980                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984 } # ac_fn_c_check_func
1985
1986 # ac_fn_cxx_try_compile LINENO
1987 # ----------------------------
1988 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_compile ()
1990 {
1991   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992   rm -f conftest.$ac_objext
1993   if { { ac_try="$ac_compile"
1994 case "(($ac_try" in
1995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996   *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000   (eval "$ac_compile") 2>conftest.err
2001   ac_status=$?
2002   if test -s conftest.err; then
2003     grep -v '^ *+' conftest.err >conftest.er1
2004     cat conftest.er1 >&5
2005     mv -f conftest.er1 conftest.err
2006   fi
2007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008   test $ac_status = 0; } && {
2009          test -z "$ac_cxx_werror_flag" ||
2010          test ! -s conftest.err
2011        } && test -s conftest.$ac_objext; then :
2012   ac_retval=0
2013 else
2014   $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017         ac_retval=1
2018 fi
2019   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020   as_fn_set_status $ac_retval
2021
2022 } # ac_fn_cxx_try_compile
2023
2024 # ac_fn_cxx_try_cpp LINENO
2025 # ------------------------
2026 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2027 ac_fn_cxx_try_cpp ()
2028 {
2029   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030   if { { ac_try="$ac_cpp conftest.$ac_ext"
2031 case "(($ac_try" in
2032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033   *) ac_try_echo=$ac_try;;
2034 esac
2035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036 $as_echo "$ac_try_echo"; } >&5
2037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2038   ac_status=$?
2039   if test -s conftest.err; then
2040     grep -v '^ *+' conftest.err >conftest.er1
2041     cat conftest.er1 >&5
2042     mv -f conftest.er1 conftest.err
2043   fi
2044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045   test $ac_status = 0; } > conftest.i && {
2046          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2047          test ! -s conftest.err
2048        }; then :
2049   ac_retval=0
2050 else
2051   $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054     ac_retval=1
2055 fi
2056   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057   as_fn_set_status $ac_retval
2058
2059 } # ac_fn_cxx_try_cpp
2060
2061 # ac_fn_cxx_try_link LINENO
2062 # -------------------------
2063 # Try to link conftest.$ac_ext, and return whether this succeeded.
2064 ac_fn_cxx_try_link ()
2065 {
2066   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067   rm -f conftest.$ac_objext conftest$ac_exeext
2068   if { { ac_try="$ac_link"
2069 case "(($ac_try" in
2070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071   *) ac_try_echo=$ac_try;;
2072 esac
2073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074 $as_echo "$ac_try_echo"; } >&5
2075   (eval "$ac_link") 2>conftest.err
2076   ac_status=$?
2077   if test -s conftest.err; then
2078     grep -v '^ *+' conftest.err >conftest.er1
2079     cat conftest.er1 >&5
2080     mv -f conftest.er1 conftest.err
2081   fi
2082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083   test $ac_status = 0; } && {
2084          test -z "$ac_cxx_werror_flag" ||
2085          test ! -s conftest.err
2086        } && test -s conftest$ac_exeext && {
2087          test "$cross_compiling" = yes ||
2088          $as_test_x conftest$ac_exeext
2089        }; then :
2090   ac_retval=0
2091 else
2092   $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2094
2095         ac_retval=1
2096 fi
2097   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2098   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2099   # interfere with the next link command; also delete a directory that is
2100   # left behind by Apple's compiler.  We do this before executing the actions.
2101   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2102   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103   as_fn_set_status $ac_retval
2104
2105 } # ac_fn_cxx_try_link
2106
2107 # ac_fn_f77_try_compile LINENO
2108 # ----------------------------
2109 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2110 ac_fn_f77_try_compile ()
2111 {
2112   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113   rm -f conftest.$ac_objext
2114   if { { ac_try="$ac_compile"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121   (eval "$ac_compile") 2>conftest.err
2122   ac_status=$?
2123   if test -s conftest.err; then
2124     grep -v '^ *+' conftest.err >conftest.er1
2125     cat conftest.er1 >&5
2126     mv -f conftest.er1 conftest.err
2127   fi
2128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129   test $ac_status = 0; } && {
2130          test -z "$ac_f77_werror_flag" ||
2131          test ! -s conftest.err
2132        } && test -s conftest.$ac_objext; then :
2133   ac_retval=0
2134 else
2135   $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2137
2138         ac_retval=1
2139 fi
2140   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141   as_fn_set_status $ac_retval
2142
2143 } # ac_fn_f77_try_compile
2144
2145 # ac_fn_f77_try_link LINENO
2146 # -------------------------
2147 # Try to link conftest.$ac_ext, and return whether this succeeded.
2148 ac_fn_f77_try_link ()
2149 {
2150   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151   rm -f conftest.$ac_objext conftest$ac_exeext
2152   if { { ac_try="$ac_link"
2153 case "(($ac_try" in
2154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155   *) ac_try_echo=$ac_try;;
2156 esac
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159   (eval "$ac_link") 2>conftest.err
2160   ac_status=$?
2161   if test -s conftest.err; then
2162     grep -v '^ *+' conftest.err >conftest.er1
2163     cat conftest.er1 >&5
2164     mv -f conftest.er1 conftest.err
2165   fi
2166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167   test $ac_status = 0; } && {
2168          test -z "$ac_f77_werror_flag" ||
2169          test ! -s conftest.err
2170        } && test -s conftest$ac_exeext && {
2171          test "$cross_compiling" = yes ||
2172          $as_test_x conftest$ac_exeext
2173        }; then :
2174   ac_retval=0
2175 else
2176   $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179         ac_retval=1
2180 fi
2181   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2182   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2183   # interfere with the next link command; also delete a directory that is
2184   # left behind by Apple's compiler.  We do this before executing the actions.
2185   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2186   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187   as_fn_set_status $ac_retval
2188
2189 } # ac_fn_f77_try_link
2190
2191 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2192 # ---------------------------------------------
2193 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2194 # accordingly.
2195 ac_fn_c_check_decl ()
2196 {
2197   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198   as_decl_name=`echo $2|sed 's/ *(.*//'`
2199   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2201 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2202 if eval \${$3+:} false; then :
2203   $as_echo_n "(cached) " >&6
2204 else
2205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h.  */
2207 $4
2208 int
2209 main ()
2210 {
2211 #ifndef $as_decl_name
2212 #ifdef __cplusplus
2213   (void) $as_decl_use;
2214 #else
2215   (void) $as_decl_name;
2216 #endif
2217 #endif
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_c_try_compile "$LINENO"; then :
2224   eval "$3=yes"
2225 else
2226   eval "$3=no"
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 fi
2230 eval ac_res=\$$3
2231                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232 $as_echo "$ac_res" >&6; }
2233   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234
2235 } # ac_fn_c_check_decl
2236 cat >config.log <<_ACEOF
2237 This file contains any messages produced by compilers while
2238 running configure, to aid debugging if configure makes a mistake.
2239
2240 It was created by sqlite $as_me 3.7.15, which was
2241 generated by GNU Autoconf 2.68.  Invocation command line was
2242
2243   $ $0 $@
2244
2245 _ACEOF
2246 exec 5>>config.log
2247 {
2248 cat <<_ASUNAME
2249 ## --------- ##
2250 ## Platform. ##
2251 ## --------- ##
2252
2253 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2254 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2255 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2256 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2257 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2258
2259 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2260 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2261
2262 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2263 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2264 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2265 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2266 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2267 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2268 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2269
2270 _ASUNAME
2271
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275   IFS=$as_save_IFS
2276   test -z "$as_dir" && as_dir=.
2277     $as_echo "PATH: $as_dir"
2278   done
2279 IFS=$as_save_IFS
2280
2281 } >&5
2282
2283 cat >&5 <<_ACEOF
2284
2285
2286 ## ----------- ##
2287 ## Core tests. ##
2288 ## ----------- ##
2289
2290 _ACEOF
2291
2292
2293 # Keep a trace of the command line.
2294 # Strip out --no-create and --no-recursion so they do not pile up.
2295 # Strip out --silent because we don't want to record it for future runs.
2296 # Also quote any args containing shell meta-characters.
2297 # Make two passes to allow for proper duplicate-argument suppression.
2298 ac_configure_args=
2299 ac_configure_args0=
2300 ac_configure_args1=
2301 ac_must_keep_next=false
2302 for ac_pass in 1 2
2303 do
2304   for ac_arg
2305   do
2306     case $ac_arg in
2307     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2308     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2309     | -silent | --silent | --silen | --sile | --sil)
2310       continue ;;
2311     *\'*)
2312       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2313     esac
2314     case $ac_pass in
2315     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2316     2)
2317       as_fn_append ac_configure_args1 " '$ac_arg'"
2318       if test $ac_must_keep_next = true; then
2319         ac_must_keep_next=false # Got value, back to normal.
2320       else
2321         case $ac_arg in
2322           *=* | --config-cache | -C | -disable-* | --disable-* \
2323           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2324           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2325           | -with-* | --with-* | -without-* | --without-* | --x)
2326             case "$ac_configure_args0 " in
2327               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2328             esac
2329             ;;
2330           -* ) ac_must_keep_next=true ;;
2331         esac
2332       fi
2333       as_fn_append ac_configure_args " '$ac_arg'"
2334       ;;
2335     esac
2336   done
2337 done
2338 { ac_configure_args0=; unset ac_configure_args0;}
2339 { ac_configure_args1=; unset ac_configure_args1;}
2340
2341 # When interrupted or exit'd, cleanup temporary files, and complete
2342 # config.log.  We remove comments because anyway the quotes in there
2343 # would cause problems or look ugly.
2344 # WARNING: Use '\'' to represent an apostrophe within the trap.
2345 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2346 trap 'exit_status=$?
2347   # Save into config.log some information that might help in debugging.
2348   {
2349     echo
2350
2351     $as_echo "## ---------------- ##
2352 ## Cache variables. ##
2353 ## ---------------- ##"
2354     echo
2355     # The following way of writing the cache mishandles newlines in values,
2356 (
2357   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2358     eval ac_val=\$$ac_var
2359     case $ac_val in #(
2360     *${as_nl}*)
2361       case $ac_var in #(
2362       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2364       esac
2365       case $ac_var in #(
2366       _ | IFS | as_nl) ;; #(
2367       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2368       *) { eval $ac_var=; unset $ac_var;} ;;
2369       esac ;;
2370     esac
2371   done
2372   (set) 2>&1 |
2373     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2374     *${as_nl}ac_space=\ *)
2375       sed -n \
2376         "s/'\''/'\''\\\\'\'''\''/g;
2377           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2378       ;; #(
2379     *)
2380       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2381       ;;
2382     esac |
2383     sort
2384 )
2385     echo
2386
2387     $as_echo "## ----------------- ##
2388 ## Output variables. ##
2389 ## ----------------- ##"
2390     echo
2391     for ac_var in $ac_subst_vars
2392     do
2393       eval ac_val=\$$ac_var
2394       case $ac_val in
2395       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396       esac
2397       $as_echo "$ac_var='\''$ac_val'\''"
2398     done | sort
2399     echo
2400
2401     if test -n "$ac_subst_files"; then
2402       $as_echo "## ------------------- ##
2403 ## File substitutions. ##
2404 ## ------------------- ##"
2405       echo
2406       for ac_var in $ac_subst_files
2407       do
2408         eval ac_val=\$$ac_var
2409         case $ac_val in
2410         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2411         esac
2412         $as_echo "$ac_var='\''$ac_val'\''"
2413       done | sort
2414       echo
2415     fi
2416
2417     if test -s confdefs.h; then
2418       $as_echo "## ----------- ##
2419 ## confdefs.h. ##
2420 ## ----------- ##"
2421       echo
2422       cat confdefs.h
2423       echo
2424     fi
2425     test "$ac_signal" != 0 &&
2426       $as_echo "$as_me: caught signal $ac_signal"
2427     $as_echo "$as_me: exit $exit_status"
2428   } >&5
2429   rm -f core *.core core.conftest.* &&
2430     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2431     exit $exit_status
2432 ' 0
2433 for ac_signal in 1 2 13 15; do
2434   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2435 done
2436 ac_signal=0
2437
2438 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2439 rm -f -r conftest* confdefs.h
2440
2441 $as_echo "/* confdefs.h */" > confdefs.h
2442
2443 # Predefined preprocessor variables.
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_NAME "$PACKAGE_NAME"
2447 _ACEOF
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2451 _ACEOF
2452
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2455 _ACEOF
2456
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_STRING "$PACKAGE_STRING"
2459 _ACEOF
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2463 _ACEOF
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_URL "$PACKAGE_URL"
2467 _ACEOF
2468
2469
2470 # Let the site file select an alternate cache file if it wants to.
2471 # Prefer an explicitly selected file to automatically selected ones.
2472 ac_site_file1=NONE
2473 ac_site_file2=NONE
2474 if test -n "$CONFIG_SITE"; then
2475   # We do not want a PATH search for config.site.
2476   case $CONFIG_SITE in #((
2477     -*)  ac_site_file1=./$CONFIG_SITE;;
2478     */*) ac_site_file1=$CONFIG_SITE;;
2479     *)   ac_site_file1=./$CONFIG_SITE;;
2480   esac
2481 elif test "x$prefix" != xNONE; then
2482   ac_site_file1=$prefix/share/config.site
2483   ac_site_file2=$prefix/etc/config.site
2484 else
2485   ac_site_file1=$ac_default_prefix/share/config.site
2486   ac_site_file2=$ac_default_prefix/etc/config.site
2487 fi
2488 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2489 do
2490   test "x$ac_site_file" = xNONE && continue
2491   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2492     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2493 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2494     sed 's/^/| /' "$ac_site_file" >&5
2495     . "$ac_site_file" \
2496       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 as_fn_error $? "failed to load site script $ac_site_file
2499 See \`config.log' for more details" "$LINENO" 5; }
2500   fi
2501 done
2502
2503 if test -r "$cache_file"; then
2504   # Some versions of bash will fail to source /dev/null (special files
2505   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2506   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2507     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2508 $as_echo "$as_me: loading cache $cache_file" >&6;}
2509     case $cache_file in
2510       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2511       *)                      . "./$cache_file";;
2512     esac
2513   fi
2514 else
2515   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2516 $as_echo "$as_me: creating cache $cache_file" >&6;}
2517   >$cache_file
2518 fi
2519
2520 # Check that the precious variables saved in the cache have kept the same
2521 # value.
2522 ac_cache_corrupted=false
2523 for ac_var in $ac_precious_vars; do
2524   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2525   eval ac_new_set=\$ac_env_${ac_var}_set
2526   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2527   eval ac_new_val=\$ac_env_${ac_var}_value
2528   case $ac_old_set,$ac_new_set in
2529     set,)
2530       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2531 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2532       ac_cache_corrupted=: ;;
2533     ,set)
2534       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2536       ac_cache_corrupted=: ;;
2537     ,);;
2538     *)
2539       if test "x$ac_old_val" != "x$ac_new_val"; then
2540         # differences in whitespace do not lead to failure.
2541         ac_old_val_w=`echo x $ac_old_val`
2542         ac_new_val_w=`echo x $ac_new_val`
2543         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2544           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2545 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2546           ac_cache_corrupted=:
2547         else
2548           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2549 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2550           eval $ac_var=\$ac_old_val
2551         fi
2552         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2553 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2554         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2555 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2556       fi;;
2557   esac
2558   # Pass precious variables to config.status.
2559   if test "$ac_new_set" = set; then
2560     case $ac_new_val in
2561     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2562     *) ac_arg=$ac_var=$ac_new_val ;;
2563     esac
2564     case " $ac_configure_args " in
2565       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2566       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2567     esac
2568   fi
2569 done
2570 if $ac_cache_corrupted; then
2571   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2574 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2575   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2576 fi
2577 ## -------------------- ##
2578 ## Main body of script. ##
2579 ## -------------------- ##
2580
2581 ac_ext=c
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586
2587
2588
2589
2590 # Use automake.
2591 am__api_version="1.9"
2592 ac_aux_dir=
2593 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2594   if test -f "$ac_dir/install-sh"; then
2595     ac_aux_dir=$ac_dir
2596     ac_install_sh="$ac_aux_dir/install-sh -c"
2597     break
2598   elif test -f "$ac_dir/install.sh"; then
2599     ac_aux_dir=$ac_dir
2600     ac_install_sh="$ac_aux_dir/install.sh -c"
2601     break
2602   elif test -f "$ac_dir/shtool"; then
2603     ac_aux_dir=$ac_dir
2604     ac_install_sh="$ac_aux_dir/shtool install -c"
2605     break
2606   fi
2607 done
2608 if test -z "$ac_aux_dir"; then
2609   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2610 fi
2611
2612 # These three variables are undocumented and unsupported,
2613 # and are intended to be withdrawn in a future Autoconf release.
2614 # They can cause serious problems if a builder's source tree is in a directory
2615 # whose full name contains unusual characters.
2616 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2617 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2618 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2619
2620
2621 # Find a good install program.  We prefer a C program (faster),
2622 # so one script is as good as another.  But avoid the broken or
2623 # incompatible versions:
2624 # SysV /etc/install, /usr/sbin/install
2625 # SunOS /usr/etc/install
2626 # IRIX /sbin/install
2627 # AIX /bin/install
2628 # AmigaOS /C/install, which installs bootblocks on floppy discs
2629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2632 # OS/2's system install, which has a completely different semantic
2633 # ./install, which can be erroneously created by make from ./install.sh.
2634 # Reject install programs that cannot install multiple files.
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2636 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2637 if test -z "$INSTALL"; then
2638 if ${ac_cv_path_install+:} false; then :
2639   $as_echo_n "(cached) " >&6
2640 else
2641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646     # Account for people who put trailing slashes in PATH elements.
2647 case $as_dir/ in #((
2648   ./ | .// | /[cC]/* | \
2649   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2650   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2651   /usr/ucb/* ) ;;
2652   *)
2653     # OSF1 and SCO ODT 3.0 have their own names for install.
2654     # Don't use installbsd from OSF since it installs stuff as root
2655     # by default.
2656     for ac_prog in ginstall scoinst install; do
2657       for ac_exec_ext in '' $ac_executable_extensions; do
2658         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2659           if test $ac_prog = install &&
2660             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2661             # AIX install.  It has an incompatible calling convention.
2662             :
2663           elif test $ac_prog = install &&
2664             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2665             # program-specific install script used by HP pwplus--don't use.
2666             :
2667           else
2668             rm -rf conftest.one conftest.two conftest.dir
2669             echo one > conftest.one
2670             echo two > conftest.two
2671             mkdir conftest.dir
2672             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2673               test -s conftest.one && test -s conftest.two &&
2674               test -s conftest.dir/conftest.one &&
2675               test -s conftest.dir/conftest.two
2676             then
2677               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2678               break 3
2679             fi
2680           fi
2681         fi
2682       done
2683     done
2684     ;;
2685 esac
2686
2687   done
2688 IFS=$as_save_IFS
2689
2690 rm -rf conftest.one conftest.two conftest.dir
2691
2692 fi
2693   if test "${ac_cv_path_install+set}" = set; then
2694     INSTALL=$ac_cv_path_install
2695   else
2696     # As a last resort, use the slow shell script.  Don't cache a
2697     # value for INSTALL within a source directory, because that will
2698     # break other packages using the cache if that directory is
2699     # removed, or if the value is a relative name.
2700     INSTALL=$ac_install_sh
2701   fi
2702 fi
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2704 $as_echo "$INSTALL" >&6; }
2705
2706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2707 # It thinks the first close brace ends the variable substitution.
2708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2709
2710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2711
2712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2713
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2715 $as_echo_n "checking whether build environment is sane... " >&6; }
2716 # Just in case
2717 sleep 1
2718 echo timestamp > conftest.file
2719 # Do `set' in a subshell so we don't clobber the current shell's
2720 # arguments.  Must try -L first in case configure is actually a
2721 # symlink; some systems play weird games with the mod time of symlinks
2722 # (eg FreeBSD returns the mod time of the symlink's containing
2723 # directory).
2724 if (
2725    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2726    if test "$*" = "X"; then
2727       # -L didn't work.
2728       set X `ls -t $srcdir/configure conftest.file`
2729    fi
2730    rm -f conftest.file
2731    if test "$*" != "X $srcdir/configure conftest.file" \
2732       && test "$*" != "X conftest.file $srcdir/configure"; then
2733
2734       # If neither matched, then we have a broken ls.  This can happen
2735       # if, for instance, CONFIG_SHELL is bash and it inherits a
2736       # broken ls alias from the environment.  This has actually
2737       # happened.  Such a system could not be considered "sane".
2738       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2739 alias in your environment" "$LINENO" 5
2740    fi
2741
2742    test "$2" = conftest.file
2743    )
2744 then
2745    # Ok.
2746    :
2747 else
2748    as_fn_error $? "newly created file is older than distributed files!
2749 Check your system clock" "$LINENO" 5
2750 fi
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752 $as_echo "yes" >&6; }
2753 test "$program_prefix" != NONE &&
2754   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2755 # Use a double $ so make ignores it.
2756 test "$program_suffix" != NONE &&
2757   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2758 # Double any \ or $.
2759 # By default was `s,x,x', remove it if useless.
2760 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2761 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2762
2763 # expand $ac_aux_dir to an absolute path
2764 am_aux_dir=`cd $ac_aux_dir && pwd`
2765
2766 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2767 # Use eval to expand $SHELL
2768 if eval "$MISSING --run true"; then
2769   am_missing_run="$MISSING --run "
2770 else
2771   am_missing_run=
2772   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2773 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2774 fi
2775
2776 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2777   # We used to keeping the `.' as first argument, in order to
2778   # allow $(mkdir_p) to be used without argument.  As in
2779   #   $(mkdir_p) $(somedir)
2780   # where $(somedir) is conditionally defined.  However this is wrong
2781   # for two reasons:
2782   #  1. if the package is installed by a user who cannot write `.'
2783   #     make install will fail,
2784   #  2. the above comment should most certainly read
2785   #     $(mkdir_p) $(DESTDIR)$(somedir)
2786   #     so it does not work when $(somedir) is undefined and
2787   #     $(DESTDIR) is not.
2788   #  To support the latter case, we have to write
2789   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2790   #  so the `.' trick is pointless.
2791   mkdir_p='mkdir -p --'
2792 else
2793   # On NextStep and OpenStep, the `mkdir' command does not
2794   # recognize any option.  It will interpret all options as
2795   # directories to create, and then abort because `.' already
2796   # exists.
2797   for d in ./-p ./--version;
2798   do
2799     test -d $d && rmdir $d
2800   done
2801   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2802   if test -f "$ac_aux_dir/mkinstalldirs"; then
2803     mkdir_p='$(mkinstalldirs)'
2804   else
2805     mkdir_p='$(install_sh) -d'
2806   fi
2807 fi
2808
2809 for ac_prog in gawk mawk nawk awk
2810 do
2811   # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_AWK+:} false; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test -n "$AWK"; then
2819   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_AWK="$ac_prog"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 AWK=$ac_cv_prog_AWK
2839 if test -n "$AWK"; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2841 $as_echo "$AWK" >&6; }
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848   test -n "$AWK" && break
2849 done
2850
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2853 set x ${MAKE-make}
2854 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2855 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   cat >conftest.make <<\_ACEOF
2859 SHELL = /bin/sh
2860 all:
2861         @echo '@@@%%%=$(MAKE)=@@@%%%'
2862 _ACEOF
2863 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2865   *@@@%%%=?*=@@@%%%*)
2866     eval ac_cv_prog_make_${ac_make}_set=yes;;
2867   *)
2868     eval ac_cv_prog_make_${ac_make}_set=no;;
2869 esac
2870 rm -f conftest.make
2871 fi
2872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2875   SET_MAKE=
2876 else
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879   SET_MAKE="MAKE=${MAKE-make}"
2880 fi
2881
2882 rm -rf .tst 2>/dev/null
2883 mkdir .tst 2>/dev/null
2884 if test -d .tst; then
2885   am__leading_dot=.
2886 else
2887   am__leading_dot=_
2888 fi
2889 rmdir .tst 2>/dev/null
2890
2891 # test to see if srcdir already configured
2892 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2893    test -f $srcdir/config.status; then
2894   as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2895 fi
2896
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899   if (cygpath --version) >/dev/null 2>/dev/null; then
2900     CYGPATH_W='cygpath -w'
2901   else
2902     CYGPATH_W=echo
2903   fi
2904 fi
2905
2906
2907 # Define the identity of the package.
2908  PACKAGE='sqlite'
2909  VERSION='3.7.15'
2910
2911
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE "$PACKAGE"
2914 _ACEOF
2915
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define VERSION "$VERSION"
2919 _ACEOF
2920
2921 # Some tools Automake needs.
2922
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2924
2925
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2927
2928
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2930
2931
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2933
2934
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936
2937 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2938
2939 # Installed binaries are usually stripped using `strip' when the user
2940 # run `make install-strip'.  However `strip' might not be the right
2941 # tool to use in cross-compilation environments, therefore Automake
2942 # will honor the `STRIP' environment variable to overrule this program.
2943 if test "$cross_compiling" != no; then
2944   if test -n "$ac_tool_prefix"; then
2945   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}strip; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_STRIP+:} false; then :
2950   $as_echo_n "(cached) " >&6
2951 else
2952   if test -n "$STRIP"; then
2953   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958   IFS=$as_save_IFS
2959   test -z "$as_dir" && as_dir=.
2960     for ac_exec_ext in '' $ac_executable_extensions; do
2961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964     break 2
2965   fi
2966 done
2967   done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 STRIP=$ac_cv_prog_STRIP
2973 if test -n "$STRIP"; then
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2975 $as_echo "$STRIP" >&6; }
2976 else
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982 fi
2983 if test -z "$ac_cv_prog_STRIP"; then
2984   ac_ct_STRIP=$STRIP
2985   # Extract the first word of "strip", so it can be a program name with args.
2986 set dummy strip; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   if test -n "$ac_ct_STRIP"; then
2993   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000     for ac_exec_ext in '' $ac_executable_extensions; do
3001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002     ac_cv_prog_ac_ct_STRIP="strip"
3003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004     break 2
3005   fi
3006 done
3007   done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3013 if test -n "$ac_ct_STRIP"; then
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3015 $as_echo "$ac_ct_STRIP" >&6; }
3016 else
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021   if test "x$ac_ct_STRIP" = x; then
3022     STRIP=":"
3023   else
3024     case $cross_compiling:$ac_tool_warned in
3025 yes:)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030     STRIP=$ac_ct_STRIP
3031   fi
3032 else
3033   STRIP="$ac_cv_prog_STRIP"
3034 fi
3035
3036 fi
3037 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3038
3039 # We need awk for the "check" target.  The system "awk" is bad on
3040 # some platforms.
3041 # Always define AMTAR for backward compatibility.
3042
3043 AMTAR=${AMTAR-"${am_missing_run}tar"}
3044
3045 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3046
3047
3048
3049
3050
3051
3052 DEPDIR="${am__leading_dot}deps"
3053
3054 ac_config_commands="$ac_config_commands depfiles"
3055
3056
3057 am_make=${MAKE-make}
3058 cat > confinc << 'END'
3059 am__doit:
3060         @echo done
3061 .PHONY: am__doit
3062 END
3063 # If we don't find an include directive, just comment out the code.
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3065 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3066 am__include="#"
3067 am__quote=
3068 _am_result=none
3069 # First try GNU make style include.
3070 echo "include confinc" > confmf
3071 # We grep out `Entering directory' and `Leaving directory'
3072 # messages which can occur if `w' ends up in MAKEFLAGS.
3073 # In particular we don't look at `^make:' because GNU make might
3074 # be invoked under some other name (usually "gmake"), in which
3075 # case it prints its new name instead of `make'.
3076 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3077    am__include=include
3078    am__quote=
3079    _am_result=GNU
3080 fi
3081 # Now try BSD make style include.
3082 if test "$am__include" = "#"; then
3083    echo '.include "confinc"' > confmf
3084    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3085       am__include=.include
3086       am__quote="\""
3087       _am_result=BSD
3088    fi
3089 fi
3090
3091
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3093 $as_echo "$_am_result" >&6; }
3094 rm -f confinc confmf
3095
3096 # Check whether --enable-dependency-tracking was given.
3097 if test "${enable_dependency_tracking+set}" = set; then :
3098   enableval=$enable_dependency_tracking;
3099 fi
3100
3101 if test "x$enable_dependency_tracking" != xno; then
3102   am_depcomp="$ac_aux_dir/depcomp"
3103   AMDEPBACKSLASH='\'
3104 fi
3105
3106
3107 if test "x$enable_dependency_tracking" != xno; then
3108   AMDEP_TRUE=
3109   AMDEP_FALSE='#'
3110 else
3111   AMDEP_TRUE='#'
3112   AMDEP_FALSE=
3113 fi
3114
3115
3116
3117 ac_ext=c
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 if test -n "$ac_tool_prefix"; then
3123   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   if test -n "$CC"; then
3131   ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136   IFS=$as_save_IFS
3137   test -z "$as_dir" && as_dir=.
3138     for ac_exec_ext in '' $ac_executable_extensions; do
3139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142     break 2
3143   fi
3144 done
3145   done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3154 else
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160 fi
3161 if test -z "$ac_cv_prog_CC"; then
3162   ac_ct_CC=$CC
3163   # Extract the first word of "gcc", so it can be a program name with args.
3164 set dummy gcc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170   if test -n "$ac_ct_CC"; then
3171   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176   IFS=$as_save_IFS
3177   test -z "$as_dir" && as_dir=.
3178     for ac_exec_ext in '' $ac_executable_extensions; do
3179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180     ac_cv_prog_ac_ct_CC="gcc"
3181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182     break 2
3183   fi
3184 done
3185   done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3194 else
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199   if test "x$ac_ct_CC" = x; then
3200     CC=""
3201   else
3202     case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206 ac_tool_warned=yes ;;
3207 esac
3208     CC=$ac_ct_CC
3209   fi
3210 else
3211   CC="$ac_cv_prog_CC"
3212 fi
3213
3214 if test -z "$CC"; then
3215           if test -n "$ac_tool_prefix"; then
3216     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}cc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_CC+:} false; then :
3221   $as_echo_n "(cached) " >&6
3222 else
3223   if test -n "$CC"; then
3224   ac_cv_prog_CC="$CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231     for ac_exec_ext in '' $ac_executable_extensions; do
3232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233     ac_cv_prog_CC="${ac_tool_prefix}cc"
3234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238   done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 CC=$ac_cv_prog_CC
3244 if test -n "$CC"; then
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3247 else
3248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252
3253   fi
3254 fi
3255 if test -z "$CC"; then
3256   # Extract the first word of "cc", so it can be a program name with args.
3257 set dummy cc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CC+:} false; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   if test -n "$CC"; then
3264   ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266   ac_prog_rejected=no
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270   IFS=$as_save_IFS
3271   test -z "$as_dir" && as_dir=.
3272     for ac_exec_ext in '' $ac_executable_extensions; do
3273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3275        ac_prog_rejected=yes
3276        continue
3277      fi
3278     ac_cv_prog_CC="cc"
3279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280     break 2
3281   fi
3282 done
3283   done
3284 IFS=$as_save_IFS
3285
3286 if test $ac_prog_rejected = yes; then
3287   # We found a bogon in the path, so make sure we never use it.
3288   set dummy $ac_cv_prog_CC
3289   shift
3290   if test $# != 0; then
3291     # We chose a different compiler from the bogus one.
3292     # However, it has the same basename, so the bogon will be chosen
3293     # first if we set CC to just the basename; use the full file name.
3294     shift
3295     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3296   fi
3297 fi
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 fi
3311 if test -z "$CC"; then
3312   if test -n "$ac_tool_prefix"; then
3313   for ac_prog in cl.exe
3314   do
3315     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_CC+:} false; then :
3320   $as_echo_n "(cached) " >&6
3321 else
3322   if test -n "$CC"; then
3323   ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330     for ac_exec_ext in '' $ac_executable_extensions; do
3331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334     break 2
3335   fi
3336 done
3337   done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 $as_echo "$CC" >&6; }
3346 else
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 fi
3350
3351
3352     test -n "$CC" && break
3353   done
3354 fi
3355 if test -z "$CC"; then
3356   ac_ct_CC=$CC
3357   for ac_prog in cl.exe
3358 do
3359   # Extract the first word of "$ac_prog", so it can be a program name with args.
3360 set dummy $ac_prog; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3364   $as_echo_n "(cached) " >&6
3365 else
3366   if test -n "$ac_ct_CC"; then
3367   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374     for ac_exec_ext in '' $ac_executable_extensions; do
3375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376     ac_cv_prog_ac_ct_CC="$ac_prog"
3377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378     break 2
3379   fi
3380 done
3381   done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3387 if test -n "$ac_ct_CC"; then
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3389 $as_echo "$ac_ct_CC" >&6; }
3390 else
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3393 fi
3394
3395
3396   test -n "$ac_ct_CC" && break
3397 done
3398
3399   if test "x$ac_ct_CC" = x; then
3400     CC=""
3401   else
3402     case $cross_compiling:$ac_tool_warned in
3403 yes:)
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3406 ac_tool_warned=yes ;;
3407 esac
3408     CC=$ac_ct_CC
3409   fi
3410 fi
3411
3412 fi
3413
3414
3415 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details" "$LINENO" 5; }
3419
3420 # Provide some information about the compiler.
3421 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3422 set X $ac_compile
3423 ac_compiler=$2
3424 for ac_option in --version -v -V -qversion; do
3425   { { ac_try="$ac_compiler $ac_option >&5"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3433   ac_status=$?
3434   if test -s conftest.err; then
3435     sed '10a\
3436 ... rest of stderr output deleted ...
3437          10q' conftest.err >conftest.er1
3438     cat conftest.er1 >&5
3439   fi
3440   rm -f conftest.er1 conftest.err
3441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442   test $ac_status = 0; }
3443 done
3444
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h.  */
3447
3448 int
3449 main ()
3450 {
3451
3452   ;
3453   return 0;
3454 }
3455 _ACEOF
3456 ac_clean_files_save=$ac_clean_files
3457 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3458 # Try to create an executable without -o first, disregard a.out.
3459 # It will help us diagnose broken compilers, and finding out an intuition
3460 # of exeext.
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3462 $as_echo_n "checking whether the C compiler works... " >&6; }
3463 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3464
3465 # The possible output files:
3466 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3467
3468 ac_rmfiles=
3469 for ac_file in $ac_files
3470 do
3471   case $ac_file in
3472     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3473     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3474   esac
3475 done
3476 rm -f $ac_rmfiles
3477
3478 if { { ac_try="$ac_link_default"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485   (eval "$ac_link_default") 2>&5
3486   ac_status=$?
3487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488   test $ac_status = 0; }; then :
3489   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3490 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3491 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3492 # so that the user can short-circuit this test for compilers unknown to
3493 # Autoconf.
3494 for ac_file in $ac_files ''
3495 do
3496   test -f "$ac_file" || continue
3497   case $ac_file in
3498     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3499         ;;
3500     [ab].out )
3501         # We found the default executable, but exeext='' is most
3502         # certainly right.
3503         break;;
3504     *.* )
3505         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3506         then :; else
3507            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3508         fi
3509         # We set ac_cv_exeext here because the later test for it is not
3510         # safe: cross compilers may not add the suffix if given an `-o'
3511         # argument, so we may need to know it at that point already.
3512         # Even if this section looks crufty: it has the advantage of
3513         # actually working.
3514         break;;
3515     * )
3516         break;;
3517   esac
3518 done
3519 test "$ac_cv_exeext" = no && ac_cv_exeext=
3520
3521 else
3522   ac_file=''
3523 fi
3524 if test -z "$ac_file"; then :
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 $as_echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error 77 "C compiler cannot create executables
3533 See \`config.log' for more details" "$LINENO" 5; }
3534 else
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3536 $as_echo "yes" >&6; }
3537 fi
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3539 $as_echo_n "checking for C compiler default output file name... " >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3541 $as_echo "$ac_file" >&6; }
3542 ac_exeext=$ac_cv_exeext
3543
3544 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3545 ac_clean_files=$ac_clean_files_save
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3547 $as_echo_n "checking for suffix of executables... " >&6; }
3548 if { { ac_try="$ac_link"
3549 case "(($ac_try" in
3550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551   *) ac_try_echo=$ac_try;;
3552 esac
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555   (eval "$ac_link") 2>&5
3556   ac_status=$?
3557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558   test $ac_status = 0; }; then :
3559   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3560 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3561 # work properly (i.e., refer to `conftest.exe'), while it won't with
3562 # `rm'.
3563 for ac_file in conftest.exe conftest conftest.*; do
3564   test -f "$ac_file" || continue
3565   case $ac_file in
3566     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3567     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3568           break;;
3569     * ) break;;
3570   esac
3571 done
3572 else
3573   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3576 See \`config.log' for more details" "$LINENO" 5; }
3577 fi
3578 rm -f conftest conftest$ac_cv_exeext
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3580 $as_echo "$ac_cv_exeext" >&6; }
3581
3582 rm -f conftest.$ac_ext
3583 EXEEXT=$ac_cv_exeext
3584 ac_exeext=$EXEEXT
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h.  */
3587 #include <stdio.h>
3588 int
3589 main ()
3590 {
3591 FILE *f = fopen ("conftest.out", "w");
3592  return ferror (f) || fclose (f) != 0;
3593
3594   ;
3595   return 0;
3596 }
3597 _ACEOF
3598 ac_clean_files="$ac_clean_files conftest.out"
3599 # Check that the compiler produces executables we can run.  If not, either
3600 # the compiler is broken, or we cross compile.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3602 $as_echo_n "checking whether we are cross compiling... " >&6; }
3603 if test "$cross_compiling" != yes; then
3604   { { ac_try="$ac_link"
3605 case "(($ac_try" in
3606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607   *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611   (eval "$ac_link") 2>&5
3612   ac_status=$?
3613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614   test $ac_status = 0; }
3615   if { ac_try='./conftest$ac_cv_exeext'
3616   { { case "(($ac_try" in
3617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618   *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622   (eval "$ac_try") 2>&5
3623   ac_status=$?
3624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625   test $ac_status = 0; }; }; then
3626     cross_compiling=no
3627   else
3628     if test "$cross_compiling" = maybe; then
3629         cross_compiling=yes
3630     else
3631         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot run C compiled programs.
3634 If you meant to cross compile, use \`--host'.
3635 See \`config.log' for more details" "$LINENO" 5; }
3636     fi
3637   fi
3638 fi
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3640 $as_echo "$cross_compiling" >&6; }
3641
3642 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3643 ac_clean_files=$ac_clean_files_save
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3645 $as_echo_n "checking for suffix of object files... " >&6; }
3646 if ${ac_cv_objext+:} false; then :
3647   $as_echo_n "(cached) " >&6
3648 else
3649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.o conftest.obj
3661 if { { ac_try="$ac_compile"
3662 case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668   (eval "$ac_compile") 2>&5
3669   ac_status=$?
3670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671   test $ac_status = 0; }; then :
3672   for ac_file in conftest.o conftest.obj conftest.*; do
3673   test -f "$ac_file" || continue;
3674   case $ac_file in
3675     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3676     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677        break;;
3678   esac
3679 done
3680 else
3681   $as_echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot compute suffix of object files: cannot compile
3687 See \`config.log' for more details" "$LINENO" 5; }
3688 fi
3689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3692 $as_echo "$ac_cv_objext" >&6; }
3693 OBJEXT=$ac_cv_objext
3694 ac_objext=$OBJEXT
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697 if ${ac_cv_c_compiler_gnu+:} false; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h.  */
3702
3703 int
3704 main ()
3705 {
3706 #ifndef __GNUC__
3707        choke me
3708 #endif
3709
3710   ;
3711   return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715   ac_compiler_gnu=yes
3716 else
3717   ac_compiler_gnu=no
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3721
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3725 if test $ac_compiler_gnu = yes; then
3726   GCC=yes
3727 else
3728   GCC=
3729 fi
3730 ac_test_CFLAGS=${CFLAGS+set}
3731 ac_save_CFLAGS=$CFLAGS
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3734 if ${ac_cv_prog_cc_g+:} false; then :
3735   $as_echo_n "(cached) " >&6
3736 else
3737   ac_save_c_werror_flag=$ac_c_werror_flag
3738    ac_c_werror_flag=yes
3739    ac_cv_prog_cc_g=no
3740    CFLAGS="-g"
3741    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h.  */
3743
3744 int
3745 main ()
3746 {
3747
3748   ;
3749   return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753   ac_cv_prog_cc_g=yes
3754 else
3755   CFLAGS=""
3756       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h.  */
3758
3759 int
3760 main ()
3761 {
3762
3763   ;
3764   return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768
3769 else
3770   ac_c_werror_flag=$ac_save_c_werror_flag
3771          CFLAGS="-g"
3772          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h.  */
3774
3775 int
3776 main ()
3777 {
3778
3779   ;
3780   return 0;
3781 }
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"; then :
3784   ac_cv_prog_cc_g=yes
3785 fi
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 fi
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791    ac_c_werror_flag=$ac_save_c_werror_flag
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3794 $as_echo "$ac_cv_prog_cc_g" >&6; }
3795 if test "$ac_test_CFLAGS" = set; then
3796   CFLAGS=$ac_save_CFLAGS
3797 elif test $ac_cv_prog_cc_g = yes; then
3798   if test "$GCC" = yes; then
3799     CFLAGS="-g -O2"
3800   else
3801     CFLAGS="-g"
3802   fi
3803 else
3804   if test "$GCC" = yes; then
3805     CFLAGS="-O2"
3806   else
3807     CFLAGS=
3808   fi
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3811 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3812 if ${ac_cv_prog_cc_c89+:} false; then :
3813   $as_echo_n "(cached) " >&6
3814 else
3815   ac_cv_prog_cc_c89=no
3816 ac_save_CC=$CC
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819 #include <stdarg.h>
3820 #include <stdio.h>
3821 #include <sys/types.h>
3822 #include <sys/stat.h>
3823 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3824 struct buf { int x; };
3825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3826 static char *e (p, i)
3827      char **p;
3828      int i;
3829 {
3830   return p[i];
3831 }
3832 static char *f (char * (*g) (char **, int), char **p, ...)
3833 {
3834   char *s;
3835   va_list v;
3836   va_start (v,p);
3837   s = g (p, va_arg (v,int));
3838   va_end (v);
3839   return s;
3840 }
3841
3842 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3843    function prototypes and stuff, but not '\xHH' hex character constants.
3844    These don't provoke an error unfortunately, instead are silently treated
3845    as 'x'.  The following induces an error, until -std is added to get
3846    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3847    array size at least.  It's necessary to write '\x00'==0 to get something
3848    that's true only with -std.  */
3849 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3850
3851 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3852    inside strings and character constants.  */
3853 #define FOO(x) 'x'
3854 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3855
3856 int test (int i, double x);
3857 struct s1 {int (*f) (int a);};
3858 struct s2 {int (*f) (double a);};
3859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3860 int argc;
3861 char **argv;
3862 int
3863 main ()
3864 {
3865 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3871         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3872 do
3873   CC="$ac_save_CC $ac_arg"
3874   if ac_fn_c_try_compile "$LINENO"; then :
3875   ac_cv_prog_cc_c89=$ac_arg
3876 fi
3877 rm -f core conftest.err conftest.$ac_objext
3878   test "x$ac_cv_prog_cc_c89" != "xno" && break
3879 done
3880 rm -f conftest.$ac_ext
3881 CC=$ac_save_CC
3882
3883 fi
3884 # AC_CACHE_VAL
3885 case "x$ac_cv_prog_cc_c89" in
3886   x)
3887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3888 $as_echo "none needed" >&6; } ;;
3889   xno)
3890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3891 $as_echo "unsupported" >&6; } ;;
3892   *)
3893     CC="$CC $ac_cv_prog_cc_c89"
3894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3895 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3896 esac
3897 if test "x$ac_cv_prog_cc_c89" != xno; then :
3898
3899 fi
3900
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907 depcc="$CC"   am_compiler_list=
3908
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3910 $as_echo_n "checking dependency style of $depcc... " >&6; }
3911 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3912   $as_echo_n "(cached) " >&6
3913 else
3914   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3915   # We make a subdir and do the tests there.  Otherwise we can end up
3916   # making bogus files that we don't know about and never remove.  For
3917   # instance it was reported that on HP-UX the gcc test will end up
3918   # making a dummy file named `D' -- because `-MD' means `put the output
3919   # in D'.
3920   mkdir conftest.dir
3921   # Copy depcomp to subdir because otherwise we won't find it if we're
3922   # using a relative directory.
3923   cp "$am_depcomp" conftest.dir
3924   cd conftest.dir
3925   # We will build objects and dependencies in a subdirectory because
3926   # it helps to detect inapplicable dependency modes.  For instance
3927   # both Tru64's cc and ICC support -MD to output dependencies as a
3928   # side effect of compilation, but ICC will put the dependencies in
3929   # the current directory while Tru64 will put them in the object
3930   # directory.
3931   mkdir sub
3932
3933   am_cv_CC_dependencies_compiler_type=none
3934   if test "$am_compiler_list" = ""; then
3935      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3936   fi
3937   for depmode in $am_compiler_list; do
3938     # Setup a source with many dependencies, because some compilers
3939     # like to wrap large dependency lists on column 80 (with \), and
3940     # we should not choose a depcomp mode which is confused by this.
3941     #
3942     # We need to recreate these files for each test, as the compiler may
3943     # overwrite some of them when testing with obscure command lines.
3944     # This happens at least with the AIX C compiler.
3945     : > sub/conftest.c
3946     for i in 1 2 3 4 5 6; do
3947       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3948       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3949       # Solaris 8's {/usr,}/bin/sh.
3950       touch sub/conftst$i.h
3951     done
3952     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3953
3954     case $depmode in
3955     nosideeffect)
3956       # after this tag, mechanisms are not by side-effect, so they'll
3957       # only be used when explicitly requested
3958       if test "x$enable_dependency_tracking" = xyes; then
3959         continue
3960       else
3961         break
3962       fi
3963       ;;
3964     none) break ;;
3965     esac
3966     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3967     # mode.  It turns out that the SunPro C++ compiler does not properly
3968     # handle `-M -o', and we need to detect this.
3969     if depmode=$depmode \
3970        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3971        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3972        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3973          >/dev/null 2>conftest.err &&
3974        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3975        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3976        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3977       # icc doesn't choke on unknown options, it will just issue warnings
3978       # or remarks (even with -Werror).  So we grep stderr for any message
3979       # that says an option was ignored or not supported.
3980       # When given -MP, icc 7.0 and 7.1 complain thusly:
3981       #   icc: Command line warning: ignoring option '-M'; no argument required
3982       # The diagnosis changed in icc 8.0:
3983       #   icc: Command line remark: option '-MP' not supported
3984       if (grep 'ignoring option' conftest.err ||
3985           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3986         am_cv_CC_dependencies_compiler_type=$depmode
3987         break
3988       fi
3989     fi
3990   done
3991
3992   cd ..
3993   rm -rf conftest.dir
3994 else
3995   am_cv_CC_dependencies_compiler_type=none
3996 fi
3997
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4000 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4001 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4002
4003
4004
4005 if
4006   test "x$enable_dependency_tracking" != xno \
4007   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4008   am__fastdepCC_TRUE=
4009   am__fastdepCC_FALSE='#'
4010 else
4011   am__fastdepCC_TRUE='#'
4012   am__fastdepCC_FALSE=
4013 fi
4014
4015
4016
4017 # Check whether --enable-largefile was given.
4018 if test "${enable_largefile+set}" = set; then :
4019   enableval=$enable_largefile;
4020 fi
4021
4022 if test "$enable_largefile" != no; then
4023
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4025 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4026 if ${ac_cv_sys_largefile_CC+:} false; then :
4027   $as_echo_n "(cached) " >&6
4028 else
4029   ac_cv_sys_largefile_CC=no
4030      if test "$GCC" != yes; then
4031        ac_save_CC=$CC
4032        while :; do
4033          # IRIX 6.2 and later do not support large files by default,
4034          # so use the C compiler's -n32 option if that helps.
4035          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h.  */
4037 #include <sys/types.h>
4038  /* Check that off_t can represent 2**63 - 1 correctly.
4039     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4040     since some C++ compilers masquerading as C compilers
4041     incorrectly reject 9223372036854775807.  */
4042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4043   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4044                        && LARGE_OFF_T % 2147483647 == 1)
4045                       ? 1 : -1];
4046 int
4047 main ()
4048 {
4049
4050   ;
4051   return 0;
4052 }
4053 _ACEOF
4054          if ac_fn_c_try_compile "$LINENO"; then :
4055   break
4056 fi
4057 rm -f core conftest.err conftest.$ac_objext
4058          CC="$CC -n32"
4059          if ac_fn_c_try_compile "$LINENO"; then :
4060   ac_cv_sys_largefile_CC=' -n32'; break
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext
4063          break
4064        done
4065        CC=$ac_save_CC
4066        rm -f conftest.$ac_ext
4067     fi
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4070 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4071   if test "$ac_cv_sys_largefile_CC" != no; then
4072     CC=$CC$ac_cv_sys_largefile_CC
4073   fi
4074
4075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4076 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4077 if ${ac_cv_sys_file_offset_bits+:} false; then :
4078   $as_echo_n "(cached) " >&6
4079 else
4080   while :; do
4081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h.  */
4083 #include <sys/types.h>
4084  /* Check that off_t can represent 2**63 - 1 correctly.
4085     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4086     since some C++ compilers masquerading as C compilers
4087     incorrectly reject 9223372036854775807.  */
4088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4089   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4090                        && LARGE_OFF_T % 2147483647 == 1)
4091                       ? 1 : -1];
4092 int
4093 main ()
4094 {
4095
4096   ;
4097   return 0;
4098 }
4099 _ACEOF
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101   ac_cv_sys_file_offset_bits=no; break
4102 fi
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h.  */
4106 #define _FILE_OFFSET_BITS 64
4107 #include <sys/types.h>
4108  /* Check that off_t can represent 2**63 - 1 correctly.
4109     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4110     since some C++ compilers masquerading as C compilers
4111     incorrectly reject 9223372036854775807.  */
4112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4113   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4114                        && LARGE_OFF_T % 2147483647 == 1)
4115                       ? 1 : -1];
4116 int
4117 main ()
4118 {
4119
4120   ;
4121   return 0;
4122 }
4123 _ACEOF
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125   ac_cv_sys_file_offset_bits=64; break
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128   ac_cv_sys_file_offset_bits=unknown
4129   break
4130 done
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4133 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4134 case $ac_cv_sys_file_offset_bits in #(
4135   no | unknown) ;;
4136   *)
4137 cat >>confdefs.h <<_ACEOF
4138 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4139 _ACEOF
4140 ;;
4141 esac
4142 rm -rf conftest*
4143   if test $ac_cv_sys_file_offset_bits = unknown; then
4144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4145 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4146 if ${ac_cv_sys_large_files+:} false; then :
4147   $as_echo_n "(cached) " >&6
4148 else
4149   while :; do
4150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h.  */
4152 #include <sys/types.h>
4153  /* Check that off_t can represent 2**63 - 1 correctly.
4154     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4155     since some C++ compilers masquerading as C compilers
4156     incorrectly reject 9223372036854775807.  */
4157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4158   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4159                        && LARGE_OFF_T % 2147483647 == 1)
4160                       ? 1 : -1];
4161 int
4162 main ()
4163 {
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170   ac_cv_sys_large_files=no; break
4171 fi
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h.  */
4175 #define _LARGE_FILES 1
4176 #include <sys/types.h>
4177  /* Check that off_t can represent 2**63 - 1 correctly.
4178     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4179     since some C++ compilers masquerading as C compilers
4180     incorrectly reject 9223372036854775807.  */
4181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4182   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4183                        && LARGE_OFF_T % 2147483647 == 1)
4184                       ? 1 : -1];
4185 int
4186 main ()
4187 {
4188
4189   ;
4190   return 0;
4191 }
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194   ac_cv_sys_large_files=1; break
4195 fi
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197   ac_cv_sys_large_files=unknown
4198   break
4199 done
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4202 $as_echo "$ac_cv_sys_large_files" >&6; }
4203 case $ac_cv_sys_large_files in #(
4204   no | unknown) ;;
4205   *)
4206 cat >>confdefs.h <<_ACEOF
4207 #define _LARGE_FILES $ac_cv_sys_large_files
4208 _ACEOF
4209 ;;
4210 esac
4211 rm -rf conftest*
4212   fi
4213 fi
4214
4215
4216 # Check for required programs.
4217 ac_ext=c
4218 ac_cpp='$CPP $CPPFLAGS'
4219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222 if test -n "$ac_tool_prefix"; then
4223   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4224 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_CC+:} false; then :
4228   $as_echo_n "(cached) " >&6
4229 else
4230   if test -n "$CC"; then
4231   ac_cv_prog_CC="$CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238     for ac_exec_ext in '' $ac_executable_extensions; do
4239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245   done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 CC=$ac_cv_prog_CC
4251 if test -n "$CC"; then
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4253 $as_echo "$CC" >&6; }
4254 else
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 fi
4258
4259
4260 fi
4261 if test -z "$ac_cv_prog_CC"; then
4262   ac_ct_CC=$CC
4263   # Extract the first word of "gcc", so it can be a program name with args.
4264 set dummy gcc; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   if test -n "$ac_ct_CC"; then
4271   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278     for ac_exec_ext in '' $ac_executable_extensions; do
4279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280     ac_cv_prog_ac_ct_CC="gcc"
4281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282     break 2
4283   fi
4284 done
4285   done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4291 if test -n "$ac_ct_CC"; then
4292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4293 $as_echo "$ac_ct_CC" >&6; }
4294 else
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299   if test "x$ac_ct_CC" = x; then
4300     CC=""
4301   else
4302     case $cross_compiling:$ac_tool_warned in
4303 yes:)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned=yes ;;
4307 esac
4308     CC=$ac_ct_CC
4309   fi
4310 else
4311   CC="$ac_cv_prog_CC"
4312 fi
4313
4314 if test -z "$CC"; then
4315           if test -n "$ac_tool_prefix"; then
4316     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4317 set dummy ${ac_tool_prefix}cc; ac_word=$2
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if ${ac_cv_prog_CC+:} false; then :
4321   $as_echo_n "(cached) " >&6
4322 else
4323   if test -n "$CC"; then
4324   ac_cv_prog_CC="$CC" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331     for ac_exec_ext in '' $ac_executable_extensions; do
4332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333     ac_cv_prog_CC="${ac_tool_prefix}cc"
4334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338   done
4339 IFS=$as_save_IFS
4340
4341 fi
4342 fi
4343 CC=$ac_cv_prog_CC
4344 if test -n "$CC"; then
4345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4346 $as_echo "$CC" >&6; }
4347 else
4348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4350 fi
4351
4352
4353   fi
4354 fi
4355 if test -z "$CC"; then
4356   # Extract the first word of "cc", so it can be a program name with args.
4357 set dummy cc; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if ${ac_cv_prog_CC+:} false; then :
4361   $as_echo_n "(cached) " >&6
4362 else
4363   if test -n "$CC"; then
4364   ac_cv_prog_CC="$CC" # Let the user override the test.
4365 else
4366   ac_prog_rejected=no
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370   IFS=$as_save_IFS
4371   test -z "$as_dir" && as_dir=.
4372     for ac_exec_ext in '' $ac_executable_extensions; do
4373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4375        ac_prog_rejected=yes
4376        continue
4377      fi
4378     ac_cv_prog_CC="cc"
4379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380     break 2
4381   fi
4382 done
4383   done
4384 IFS=$as_save_IFS
4385
4386 if test $ac_prog_rejected = yes; then
4387   # We found a bogon in the path, so make sure we never use it.
4388   set dummy $ac_cv_prog_CC
4389   shift
4390   if test $# != 0; then
4391     # We chose a different compiler from the bogus one.
4392     # However, it has the same basename, so the bogon will be chosen
4393     # first if we set CC to just the basename; use the full file name.
4394     shift
4395     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4396   fi
4397 fi
4398 fi
4399 fi
4400 CC=$ac_cv_prog_CC
4401 if test -n "$CC"; then
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4403 $as_echo "$CC" >&6; }
4404 else
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 fi
4408
4409
4410 fi
4411 if test -z "$CC"; then
4412   if test -n "$ac_tool_prefix"; then
4413   for ac_prog in cl.exe
4414   do
4415     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if ${ac_cv_prog_CC+:} false; then :
4420   $as_echo_n "(cached) " >&6
4421 else
4422   if test -n "$CC"; then
4423   ac_cv_prog_CC="$CC" # Let the user override the test.
4424 else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4427 do
4428   IFS=$as_save_IFS
4429   test -z "$as_dir" && as_dir=.
4430     for ac_exec_ext in '' $ac_executable_extensions; do
4431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434     break 2
4435   fi
4436 done
4437   done
4438 IFS=$as_save_IFS
4439
4440 fi
4441 fi
4442 CC=$ac_cv_prog_CC
4443 if test -n "$CC"; then
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4445 $as_echo "$CC" >&6; }
4446 else
4447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 $as_echo "no" >&6; }
4449 fi
4450
4451
4452     test -n "$CC" && break
4453   done
4454 fi
4455 if test -z "$CC"; then
4456   ac_ct_CC=$CC
4457   for ac_prog in cl.exe
4458 do
4459   # Extract the first word of "$ac_prog", so it can be a program name with args.
4460 set dummy $ac_prog; ac_word=$2
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462 $as_echo_n "checking for $ac_word... " >&6; }
4463 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4464   $as_echo_n "(cached) " >&6
4465 else
4466   if test -n "$ac_ct_CC"; then
4467   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4471 do
4472   IFS=$as_save_IFS
4473   test -z "$as_dir" && as_dir=.
4474     for ac_exec_ext in '' $ac_executable_extensions; do
4475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4476     ac_cv_prog_ac_ct_CC="$ac_prog"
4477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4478     break 2
4479   fi
4480 done
4481   done
4482 IFS=$as_save_IFS
4483
4484 fi
4485 fi
4486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4487 if test -n "$ac_ct_CC"; then
4488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4489 $as_echo "$ac_ct_CC" >&6; }
4490 else
4491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4493 fi
4494
4495
4496   test -n "$ac_ct_CC" && break
4497 done
4498
4499   if test "x$ac_ct_CC" = x; then
4500     CC=""
4501   else
4502     case $cross_compiling:$ac_tool_warned in
4503 yes:)
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506 ac_tool_warned=yes ;;
4507 esac
4508     CC=$ac_ct_CC
4509   fi
4510 fi
4511
4512 fi
4513
4514
4515 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4517 as_fn_error $? "no acceptable C compiler found in \$PATH
4518 See \`config.log' for more details" "$LINENO" 5; }
4519
4520 # Provide some information about the compiler.
4521 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4522 set X $ac_compile
4523 ac_compiler=$2
4524 for ac_option in --version -v -V -qversion; do
4525   { { ac_try="$ac_compiler $ac_option >&5"
4526 case "(($ac_try" in
4527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528   *) ac_try_echo=$ac_try;;
4529 esac
4530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531 $as_echo "$ac_try_echo"; } >&5
4532   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4533   ac_status=$?
4534   if test -s conftest.err; then
4535     sed '10a\
4536 ... rest of stderr output deleted ...
4537          10q' conftest.err >conftest.er1
4538     cat conftest.er1 >&5
4539   fi
4540   rm -f conftest.er1 conftest.err
4541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4542   test $ac_status = 0; }
4543 done
4544
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4547 if ${ac_cv_c_compiler_gnu+:} false; then :
4548   $as_echo_n "(cached) " >&6
4549 else
4550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h.  */
4552
4553 int
4554 main ()
4555 {
4556 #ifndef __GNUC__
4557        choke me
4558 #endif
4559
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565   ac_compiler_gnu=yes
4566 else
4567   ac_compiler_gnu=no
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4571
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4574 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4575 if test $ac_compiler_gnu = yes; then
4576   GCC=yes
4577 else
4578   GCC=
4579 fi
4580 ac_test_CFLAGS=${CFLAGS+set}
4581 ac_save_CFLAGS=$CFLAGS
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4583 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4584 if ${ac_cv_prog_cc_g+:} false; then :
4585   $as_echo_n "(cached) " >&6
4586 else
4587   ac_save_c_werror_flag=$ac_c_werror_flag
4588    ac_c_werror_flag=yes
4589    ac_cv_prog_cc_g=no
4590    CFLAGS="-g"
4591    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h.  */
4593
4594 int
4595 main ()
4596 {
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603   ac_cv_prog_cc_g=yes
4604 else
4605   CFLAGS=""
4606       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h.  */
4608
4609 int
4610 main ()
4611 {
4612
4613   ;
4614   return 0;
4615 }
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618
4619 else
4620   ac_c_werror_flag=$ac_save_c_werror_flag
4621          CFLAGS="-g"
4622          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h.  */
4624
4625 int
4626 main ()
4627 {
4628
4629   ;
4630   return 0;
4631 }
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634   ac_cv_prog_cc_g=yes
4635 fi
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 fi
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 fi
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641    ac_c_werror_flag=$ac_save_c_werror_flag
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4644 $as_echo "$ac_cv_prog_cc_g" >&6; }
4645 if test "$ac_test_CFLAGS" = set; then
4646   CFLAGS=$ac_save_CFLAGS
4647 elif test $ac_cv_prog_cc_g = yes; then
4648   if test "$GCC" = yes; then
4649     CFLAGS="-g -O2"
4650   else
4651     CFLAGS="-g"
4652   fi
4653 else
4654   if test "$GCC" = yes; then
4655     CFLAGS="-O2"
4656   else
4657     CFLAGS=
4658   fi
4659 fi
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4662 if ${ac_cv_prog_cc_c89+:} false; then :
4663   $as_echo_n "(cached) " >&6
4664 else
4665   ac_cv_prog_cc_c89=no
4666 ac_save_CC=$CC
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h.  */
4669 #include <stdarg.h>
4670 #include <stdio.h>
4671 #include <sys/types.h>
4672 #include <sys/stat.h>
4673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4674 struct buf { int x; };
4675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4676 static char *e (p, i)
4677      char **p;
4678      int i;
4679 {
4680   return p[i];
4681 }
4682 static char *f (char * (*g) (char **, int), char **p, ...)
4683 {
4684   char *s;
4685   va_list v;
4686   va_start (v,p);
4687   s = g (p, va_arg (v,int));
4688   va_end (v);
4689   return s;
4690 }
4691
4692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4693    function prototypes and stuff, but not '\xHH' hex character constants.
4694    These don't provoke an error unfortunately, instead are silently treated
4695    as 'x'.  The following induces an error, until -std is added to get
4696    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4697    array size at least.  It's necessary to write '\x00'==0 to get something
4698    that's true only with -std.  */
4699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4700
4701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4702    inside strings and character constants.  */
4703 #define FOO(x) 'x'
4704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4705
4706 int test (int i, double x);
4707 struct s1 {int (*f) (int a);};
4708 struct s2 {int (*f) (double a);};
4709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4710 int argc;
4711 char **argv;
4712 int
4713 main ()
4714 {
4715 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4716   ;
4717   return 0;
4718 }
4719 _ACEOF
4720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4721         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4722 do
4723   CC="$ac_save_CC $ac_arg"
4724   if ac_fn_c_try_compile "$LINENO"; then :
4725   ac_cv_prog_cc_c89=$ac_arg
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext
4728   test "x$ac_cv_prog_cc_c89" != "xno" && break
4729 done
4730 rm -f conftest.$ac_ext
4731 CC=$ac_save_CC
4732
4733 fi
4734 # AC_CACHE_VAL
4735 case "x$ac_cv_prog_cc_c89" in
4736   x)
4737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4738 $as_echo "none needed" >&6; } ;;
4739   xno)
4740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741 $as_echo "unsupported" >&6; } ;;
4742   *)
4743     CC="$CC $ac_cv_prog_cc_c89"
4744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4745 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4746 esac
4747 if test "x$ac_cv_prog_cc_c89" != xno; then :
4748
4749 fi
4750
4751 ac_ext=c
4752 ac_cpp='$CPP $CPPFLAGS'
4753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756
4757 depcc="$CC"   am_compiler_list=
4758
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4760 $as_echo_n "checking dependency style of $depcc... " >&6; }
4761 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4762   $as_echo_n "(cached) " >&6
4763 else
4764   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4765   # We make a subdir and do the tests there.  Otherwise we can end up
4766   # making bogus files that we don't know about and never remove.  For
4767   # instance it was reported that on HP-UX the gcc test will end up
4768   # making a dummy file named `D' -- because `-MD' means `put the output
4769   # in D'.
4770   mkdir conftest.dir
4771   # Copy depcomp to subdir because otherwise we won't find it if we're
4772   # using a relative directory.
4773   cp "$am_depcomp" conftest.dir
4774   cd conftest.dir
4775   # We will build objects and dependencies in a subdirectory because
4776   # it helps to detect inapplicable dependency modes.  For instance
4777   # both Tru64's cc and ICC support -MD to output dependencies as a
4778   # side effect of compilation, but ICC will put the dependencies in
4779   # the current directory while Tru64 will put them in the object
4780   # directory.
4781   mkdir sub
4782
4783   am_cv_CC_dependencies_compiler_type=none
4784   if test "$am_compiler_list" = ""; then
4785      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4786   fi
4787   for depmode in $am_compiler_list; do
4788     # Setup a source with many dependencies, because some compilers
4789     # like to wrap large dependency lists on column 80 (with \), and
4790     # we should not choose a depcomp mode which is confused by this.
4791     #
4792     # We need to recreate these files for each test, as the compiler may
4793     # overwrite some of them when testing with obscure command lines.
4794     # This happens at least with the AIX C compiler.
4795     : > sub/conftest.c
4796     for i in 1 2 3 4 5 6; do
4797       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4798       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4799       # Solaris 8's {/usr,}/bin/sh.
4800       touch sub/conftst$i.h
4801     done
4802     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4803
4804     case $depmode in
4805     nosideeffect)
4806       # after this tag, mechanisms are not by side-effect, so they'll
4807       # only be used when explicitly requested
4808       if test "x$enable_dependency_tracking" = xyes; then
4809         continue
4810       else
4811         break
4812       fi
4813       ;;
4814     none) break ;;
4815     esac
4816     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4817     # mode.  It turns out that the SunPro C++ compiler does not properly
4818     # handle `-M -o', and we need to detect this.
4819     if depmode=$depmode \
4820        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4821        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4822        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4823          >/dev/null 2>conftest.err &&
4824        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4825        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4826        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4827       # icc doesn't choke on unknown options, it will just issue warnings
4828       # or remarks (even with -Werror).  So we grep stderr for any message
4829       # that says an option was ignored or not supported.
4830       # When given -MP, icc 7.0 and 7.1 complain thusly:
4831       #   icc: Command line warning: ignoring option '-M'; no argument required
4832       # The diagnosis changed in icc 8.0:
4833       #   icc: Command line remark: option '-MP' not supported
4834       if (grep 'ignoring option' conftest.err ||
4835           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4836         am_cv_CC_dependencies_compiler_type=$depmode
4837         break
4838       fi
4839     fi
4840   done
4841
4842   cd ..
4843   rm -rf conftest.dir
4844 else
4845   am_cv_CC_dependencies_compiler_type=none
4846 fi
4847
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4850 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4851 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4852
4853
4854
4855 if
4856   test "x$enable_dependency_tracking" != xno \
4857   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4858   am__fastdepCC_TRUE=
4859   am__fastdepCC_FALSE='#'
4860 else
4861   am__fastdepCC_TRUE='#'
4862   am__fastdepCC_FALSE=
4863 fi
4864
4865
4866 if test -n "$ac_tool_prefix"; then
4867   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4868 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if ${ac_cv_prog_RANLIB+:} false; then :
4872   $as_echo_n "(cached) " >&6
4873 else
4874   if test -n "$RANLIB"; then
4875   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880   IFS=$as_save_IFS
4881   test -z "$as_dir" && as_dir=.
4882     for ac_exec_ext in '' $ac_executable_extensions; do
4883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886     break 2
4887   fi
4888 done
4889   done
4890 IFS=$as_save_IFS
4891
4892 fi
4893 fi
4894 RANLIB=$ac_cv_prog_RANLIB
4895 if test -n "$RANLIB"; then
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4897 $as_echo "$RANLIB" >&6; }
4898 else
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 fi
4902
4903
4904 fi
4905 if test -z "$ac_cv_prog_RANLIB"; then
4906   ac_ct_RANLIB=$RANLIB
4907   # Extract the first word of "ranlib", so it can be a program name with args.
4908 set dummy ranlib; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   if test -n "$ac_ct_RANLIB"; then
4915   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922     for ac_exec_ext in '' $ac_executable_extensions; do
4923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924     ac_cv_prog_ac_ct_RANLIB="ranlib"
4925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926     break 2
4927   fi
4928 done
4929   done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4935 if test -n "$ac_ct_RANLIB"; then
4936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4937 $as_echo "$ac_ct_RANLIB" >&6; }
4938 else
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 fi
4942
4943   if test "x$ac_ct_RANLIB" = x; then
4944     RANLIB=":"
4945   else
4946     case $cross_compiling:$ac_tool_warned in
4947 yes:)
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4950 ac_tool_warned=yes ;;
4951 esac
4952     RANLIB=$ac_ct_RANLIB
4953   fi
4954 else
4955   RANLIB="$ac_cv_prog_RANLIB"
4956 fi
4957
4958 # Check whether --enable-shared was given.
4959 if test "${enable_shared+set}" = set; then :
4960   enableval=$enable_shared; p=${PACKAGE-default}
4961     case $enableval in
4962     yes) enable_shared=yes ;;
4963     no) enable_shared=no ;;
4964     *)
4965       enable_shared=no
4966       # Look at the argument we got.  We use all the common list separators.
4967       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4968       for pkg in $enableval; do
4969         IFS="$lt_save_ifs"
4970         if test "X$pkg" = "X$p"; then
4971           enable_shared=yes
4972         fi
4973       done
4974       IFS="$lt_save_ifs"
4975       ;;
4976     esac
4977 else
4978   enable_shared=yes
4979 fi
4980
4981
4982 # Check whether --enable-static was given.
4983 if test "${enable_static+set}" = set; then :
4984   enableval=$enable_static; p=${PACKAGE-default}
4985     case $enableval in
4986     yes) enable_static=yes ;;
4987     no) enable_static=no ;;
4988     *)
4989      enable_static=no
4990       # Look at the argument we got.  We use all the common list separators.
4991       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4992       for pkg in $enableval; do
4993         IFS="$lt_save_ifs"
4994         if test "X$pkg" = "X$p"; then
4995           enable_static=yes
4996         fi
4997       done
4998       IFS="$lt_save_ifs"
4999       ;;
5000     esac
5001 else
5002   enable_static=yes
5003 fi
5004
5005
5006 # Check whether --enable-fast-install was given.
5007 if test "${enable_fast_install+set}" = set; then :
5008   enableval=$enable_fast_install; p=${PACKAGE-default}
5009     case $enableval in
5010     yes) enable_fast_install=yes ;;
5011     no) enable_fast_install=no ;;
5012     *)
5013       enable_fast_install=no
5014       # Look at the argument we got.  We use all the common list separators.
5015       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5016       for pkg in $enableval; do
5017         IFS="$lt_save_ifs"
5018         if test "X$pkg" = "X$p"; then
5019           enable_fast_install=yes
5020         fi
5021       done
5022       IFS="$lt_save_ifs"
5023       ;;
5024     esac
5025 else
5026   enable_fast_install=yes
5027 fi
5028
5029
5030 # Make sure we can run config.sub.
5031 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5032   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5035 $as_echo_n "checking build system type... " >&6; }
5036 if ${ac_cv_build+:} false; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039   ac_build_alias=$build_alias
5040 test "x$ac_build_alias" = x &&
5041   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5042 test "x$ac_build_alias" = x &&
5043   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5044 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5045   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5046
5047 fi
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5049 $as_echo "$ac_cv_build" >&6; }
5050 case $ac_cv_build in
5051 *-*-*) ;;
5052 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5053 esac
5054 build=$ac_cv_build
5055 ac_save_IFS=$IFS; IFS='-'
5056 set x $ac_cv_build
5057 shift
5058 build_cpu=$1
5059 build_vendor=$2
5060 shift; shift
5061 # Remember, the first character of IFS is used to create $*,
5062 # except with old shells:
5063 build_os=$*
5064 IFS=$ac_save_IFS
5065 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5066
5067
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5069 $as_echo_n "checking host system type... " >&6; }
5070 if ${ac_cv_host+:} false; then :
5071   $as_echo_n "(cached) " >&6
5072 else
5073   if test "x$host_alias" = x; then
5074   ac_cv_host=$ac_cv_build
5075 else
5076   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5077     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5078 fi
5079
5080 fi
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5082 $as_echo "$ac_cv_host" >&6; }
5083 case $ac_cv_host in
5084 *-*-*) ;;
5085 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5086 esac
5087 host=$ac_cv_host
5088 ac_save_IFS=$IFS; IFS='-'
5089 set x $ac_cv_host
5090 shift
5091 host_cpu=$1
5092 host_vendor=$2
5093 shift; shift
5094 # Remember, the first character of IFS is used to create $*,
5095 # except with old shells:
5096 host_os=$*
5097 IFS=$ac_save_IFS
5098 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5102 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5103 if ${lt_cv_path_SED+:} false; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   # Loop through the user's path and test for sed and gsed.
5107 # Then use that list of sed's as ones to test for truncation.
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113   for lt_ac_prog in sed gsed; do
5114     for ac_exec_ext in '' $ac_executable_extensions; do
5115       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5116         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5117       fi
5118     done
5119   done
5120 done
5121 lt_ac_max=0
5122 lt_ac_count=0
5123 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5124 # along with /bin/sed that truncates output.
5125 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5126   test ! -f $lt_ac_sed && continue
5127   cat /dev/null > conftest.in
5128   lt_ac_count=0
5129   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5130   # Check for GNU sed and select it if it is found.
5131   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5132     lt_cv_path_SED=$lt_ac_sed
5133     break
5134   fi
5135   while true; do
5136     cat conftest.in conftest.in >conftest.tmp
5137     mv conftest.tmp conftest.in
5138     cp conftest.in conftest.nl
5139     echo >>conftest.nl
5140     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5141     cmp -s conftest.out conftest.nl || break
5142     # 10000 chars as input seems more than enough
5143     test $lt_ac_count -gt 10 && break
5144     lt_ac_count=`expr $lt_ac_count + 1`
5145     if test $lt_ac_count -gt $lt_ac_max; then
5146       lt_ac_max=$lt_ac_count
5147       lt_cv_path_SED=$lt_ac_sed
5148     fi
5149   done
5150 done
5151
5152 fi
5153
5154 SED=$lt_cv_path_SED
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5156 $as_echo "$SED" >&6; }
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5159 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5160 if ${ac_cv_path_GREP+:} false; then :
5161   $as_echo_n "(cached) " >&6
5162 else
5163   if test -z "$GREP"; then
5164   ac_path_GREP_found=false
5165   # Loop through the user's path and test for each of PROGNAME-LIST
5166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5168 do
5169   IFS=$as_save_IFS
5170   test -z "$as_dir" && as_dir=.
5171     for ac_prog in grep ggrep; do
5172     for ac_exec_ext in '' $ac_executable_extensions; do
5173       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5174       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5175 # Check for GNU ac_path_GREP and select it if it is found.
5176   # Check for GNU $ac_path_GREP
5177 case `"$ac_path_GREP" --version 2>&1` in
5178 *GNU*)
5179   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5180 *)
5181   ac_count=0
5182   $as_echo_n 0123456789 >"conftest.in"
5183   while :
5184   do
5185     cat "conftest.in" "conftest.in" >"conftest.tmp"
5186     mv "conftest.tmp" "conftest.in"
5187     cp "conftest.in" "conftest.nl"
5188     $as_echo 'GREP' >> "conftest.nl"
5189     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5190     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5191     as_fn_arith $ac_count + 1 && ac_count=$as_val
5192     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5193       # Best one so far, save it but keep looking for a better one
5194       ac_cv_path_GREP="$ac_path_GREP"
5195       ac_path_GREP_max=$ac_count
5196     fi
5197     # 10*(2^10) chars as input seems more than enough
5198     test $ac_count -gt 10 && break
5199   done
5200   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5201 esac
5202
5203       $ac_path_GREP_found && break 3
5204     done
5205   done
5206   done
5207 IFS=$as_save_IFS
5208   if test -z "$ac_cv_path_GREP"; then
5209     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5210   fi
5211 else
5212   ac_cv_path_GREP=$GREP
5213 fi
5214
5215 fi
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5217 $as_echo "$ac_cv_path_GREP" >&6; }
5218  GREP="$ac_cv_path_GREP"
5219
5220
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5222 $as_echo_n "checking for egrep... " >&6; }
5223 if ${ac_cv_path_EGREP+:} false; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5227    then ac_cv_path_EGREP="$GREP -E"
5228    else
5229      if test -z "$EGREP"; then
5230   ac_path_EGREP_found=false
5231   # Loop through the user's path and test for each of PROGNAME-LIST
5232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5234 do
5235   IFS=$as_save_IFS
5236   test -z "$as_dir" && as_dir=.
5237     for ac_prog in egrep; do
5238     for ac_exec_ext in '' $ac_executable_extensions; do
5239       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5240       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5241 # Check for GNU ac_path_EGREP and select it if it is found.
5242   # Check for GNU $ac_path_EGREP
5243 case `"$ac_path_EGREP" --version 2>&1` in
5244 *GNU*)
5245   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5246 *)
5247   ac_count=0
5248   $as_echo_n 0123456789 >"conftest.in"
5249   while :
5250   do
5251     cat "conftest.in" "conftest.in" >"conftest.tmp"
5252     mv "conftest.tmp" "conftest.in"
5253     cp "conftest.in" "conftest.nl"
5254     $as_echo 'EGREP' >> "conftest.nl"
5255     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257     as_fn_arith $ac_count + 1 && ac_count=$as_val
5258     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5259       # Best one so far, save it but keep looking for a better one
5260       ac_cv_path_EGREP="$ac_path_EGREP"
5261       ac_path_EGREP_max=$ac_count
5262     fi
5263     # 10*(2^10) chars as input seems more than enough
5264     test $ac_count -gt 10 && break
5265   done
5266   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267 esac
5268
5269       $ac_path_EGREP_found && break 3
5270     done
5271   done
5272   done
5273 IFS=$as_save_IFS
5274   if test -z "$ac_cv_path_EGREP"; then
5275     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5276   fi
5277 else
5278   ac_cv_path_EGREP=$EGREP
5279 fi
5280
5281    fi
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5284 $as_echo "$ac_cv_path_EGREP" >&6; }
5285  EGREP="$ac_cv_path_EGREP"
5286
5287
5288
5289 # Check whether --with-gnu-ld was given.
5290 if test "${with_gnu_ld+set}" = set; then :
5291   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5292 else
5293   with_gnu_ld=no
5294 fi
5295
5296 ac_prog=ld
5297 if test "$GCC" = yes; then
5298   # Check if gcc -print-prog-name=ld gives a path.
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5300 $as_echo_n "checking for ld used by $CC... " >&6; }
5301   case $host in
5302   *-*-mingw*)
5303     # gcc leaves a trailing carriage return which upsets mingw
5304     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5305   *)
5306     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5307   esac
5308   case $ac_prog in
5309     # Accept absolute paths.
5310     [\\/]* | ?:[\\/]*)
5311       re_direlt='/[^/][^/]*/\.\./'
5312       # Canonicalize the pathname of ld
5313       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5314       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5315         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5316       done
5317       test -z "$LD" && LD="$ac_prog"
5318       ;;
5319   "")
5320     # If it fails, then pretend we aren't using GCC.
5321     ac_prog=ld
5322     ;;
5323   *)
5324     # If it is relative, then search for the first ld in PATH.
5325     with_gnu_ld=unknown
5326     ;;
5327   esac
5328 elif test "$with_gnu_ld" = yes; then
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5330 $as_echo_n "checking for GNU ld... " >&6; }
5331 else
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5333 $as_echo_n "checking for non-GNU ld... " >&6; }
5334 fi
5335 if ${lt_cv_path_LD+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   if test -z "$LD"; then
5339   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5340   for ac_dir in $PATH; do
5341     IFS="$lt_save_ifs"
5342     test -z "$ac_dir" && ac_dir=.
5343     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5344       lt_cv_path_LD="$ac_dir/$ac_prog"
5345       # Check to see if the program is GNU ld.  I'd rather use --version,
5346       # but apparently some variants of GNU ld only accept -v.
5347       # Break only if it was the GNU/non-GNU ld that we prefer.
5348       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5349       *GNU* | *'with BFD'*)
5350         test "$with_gnu_ld" != no && break
5351         ;;
5352       *)
5353         test "$with_gnu_ld" != yes && break
5354         ;;
5355       esac
5356     fi
5357   done
5358   IFS="$lt_save_ifs"
5359 else
5360   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5361 fi
5362 fi
5363
5364 LD="$lt_cv_path_LD"
5365 if test -n "$LD"; then
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5367 $as_echo "$LD" >&6; }
5368 else
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5371 fi
5372 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5374 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5375 if ${lt_cv_prog_gnu_ld+:} false; then :
5376   $as_echo_n "(cached) " >&6
5377 else
5378   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5379 case `$LD -v 2>&1 </dev/null` in
5380 *GNU* | *'with BFD'*)
5381   lt_cv_prog_gnu_ld=yes
5382   ;;
5383 *)
5384   lt_cv_prog_gnu_ld=no
5385   ;;
5386 esac
5387 fi
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5389 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5390 with_gnu_ld=$lt_cv_prog_gnu_ld
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5394 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5395 if ${lt_cv_ld_reload_flag+:} false; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   lt_cv_ld_reload_flag='-r'
5399 fi
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5401 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5402 reload_flag=$lt_cv_ld_reload_flag
5403 case $reload_flag in
5404 "" | " "*) ;;
5405 *) reload_flag=" $reload_flag" ;;
5406 esac
5407 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5408 case $host_os in
5409   darwin*)
5410     if test "$GCC" = yes; then
5411       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5412     else
5413       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5414     fi
5415     ;;
5416 esac
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5419 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5420 if ${lt_cv_path_NM+:} false; then :
5421   $as_echo_n "(cached) " >&6
5422 else
5423   if test -n "$NM"; then
5424   # Let the user override the test.
5425   lt_cv_path_NM="$NM"
5426 else
5427   lt_nm_to_check="${ac_tool_prefix}nm"
5428   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5429     lt_nm_to_check="$lt_nm_to_check nm"
5430   fi
5431   for lt_tmp_nm in $lt_nm_to_check; do
5432     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5433     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5434       IFS="$lt_save_ifs"
5435       test -z "$ac_dir" && ac_dir=.
5436       tmp_nm="$ac_dir/$lt_tmp_nm"
5437       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5438         # Check to see if the nm accepts a BSD-compat flag.
5439         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5440         #   nm: unknown option "B" ignored
5441         # Tru64's nm complains that /dev/null is an invalid object file
5442         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5443         */dev/null* | *'Invalid file or object type'*)
5444           lt_cv_path_NM="$tmp_nm -B"
5445           break
5446           ;;
5447         *)
5448           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5449           */dev/null*)
5450             lt_cv_path_NM="$tmp_nm -p"
5451             break
5452             ;;
5453           *)
5454             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5455             continue # so that we can try to find one that supports BSD flags
5456             ;;
5457           esac
5458           ;;
5459         esac
5460       fi
5461     done
5462     IFS="$lt_save_ifs"
5463   done
5464   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5465 fi
5466 fi
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5468 $as_echo "$lt_cv_path_NM" >&6; }
5469 NM="$lt_cv_path_NM"
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5472 $as_echo_n "checking whether ln -s works... " >&6; }
5473 LN_S=$as_ln_s
5474 if test "$LN_S" = "ln -s"; then
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 $as_echo "yes" >&6; }
5477 else
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5479 $as_echo "no, using $LN_S" >&6; }
5480 fi
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
5483 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
5484 if ${lt_cv_deplibs_check_method+:} false; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   lt_cv_file_magic_cmd='$MAGIC_CMD'
5488 lt_cv_file_magic_test_file=
5489 lt_cv_deplibs_check_method='unknown'
5490 # Need to set the preceding variable on all platforms that support
5491 # interlibrary dependencies.
5492 # 'none' -- dependencies not supported.
5493 # `unknown' -- same as none, but documents that we really don't know.
5494 # 'pass_all' -- all dependencies passed with no checks.
5495 # 'test_compile' -- check by making test program.
5496 # 'file_magic [[regex]]' -- check by looking for files in library path
5497 # which responds to the $file_magic_cmd with a given extended regex.
5498 # If you have `file' or equivalent on your system and you're not sure
5499 # whether `pass_all' will *always* work, you probably want this one.
5500
5501 case $host_os in
5502 aix4* | aix5*)
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505
5506 beos*)
5507   lt_cv_deplibs_check_method=pass_all
5508   ;;
5509
5510 bsdi[45]*)
5511   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5512   lt_cv_file_magic_cmd='/usr/bin/file -L'
5513   lt_cv_file_magic_test_file=/shlib/libc.so
5514   ;;
5515
5516 cygwin*)
5517   # func_win32_libid is a shell function defined in ltmain.sh
5518   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5519   lt_cv_file_magic_cmd='func_win32_libid'
5520   ;;
5521
5522 mingw* | pw32*)
5523   # Base MSYS/MinGW do not provide the 'file' command needed by
5524   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5525   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5526   lt_cv_file_magic_cmd='$OBJDUMP -f'
5527   ;;
5528
5529 darwin* | rhapsody*)
5530   lt_cv_deplibs_check_method=pass_all
5531   ;;
5532
5533 freebsd* | kfreebsd*-gnu | dragonfly*)
5534   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5535     case $host_cpu in
5536     i*86 )
5537       # Not sure whether the presence of OpenBSD here was a mistake.
5538       # Let's accept both of them until this is cleared up.
5539       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5540       lt_cv_file_magic_cmd=/usr/bin/file
5541       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5542       ;;
5543     esac
5544   else
5545     lt_cv_deplibs_check_method=pass_all
5546   fi
5547   ;;
5548
5549 gnu*)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552
5553 hpux10.20* | hpux11*)
5554   lt_cv_file_magic_cmd=/usr/bin/file
5555   case $host_cpu in
5556   ia64*)
5557     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5558     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5559     ;;
5560   hppa*64*)
5561     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]'
5562     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5563     ;;
5564   *)
5565     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5566     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5567     ;;
5568   esac
5569   ;;
5570
5571 interix3*)
5572   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5573   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5574   ;;
5575
5576 irix5* | irix6* | nonstopux*)
5577   case $LD in
5578   *-32|*"-32 ") libmagic=32-bit;;
5579   *-n32|*"-n32 ") libmagic=N32;;
5580   *-64|*"-64 ") libmagic=64-bit;;
5581   *) libmagic=never-match;;
5582   esac
5583   lt_cv_deplibs_check_method=pass_all
5584   ;;
5585
5586 # This must be Linux ELF.
5587 linux*)
5588   lt_cv_deplibs_check_method=pass_all
5589   ;;
5590
5591 netbsd*)
5592   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5593     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5594   else
5595     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5596   fi
5597   ;;
5598
5599 newos6*)
5600   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5601   lt_cv_file_magic_cmd=/usr/bin/file
5602   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5603   ;;
5604
5605 nto-qnx*)
5606   lt_cv_deplibs_check_method=unknown
5607   ;;
5608
5609 openbsd*)
5610   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5611     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5612   else
5613     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5614   fi
5615   ;;
5616
5617 osf3* | osf4* | osf5*)
5618   lt_cv_deplibs_check_method=pass_all
5619   ;;
5620
5621 solaris*)
5622   lt_cv_deplibs_check_method=pass_all
5623   ;;
5624
5625 sysv4 | sysv4.3*)
5626   case $host_vendor in
5627   motorola)
5628     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]'
5629     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5630     ;;
5631   ncr)
5632     lt_cv_deplibs_check_method=pass_all
5633     ;;
5634   sequent)
5635     lt_cv_file_magic_cmd='/bin/file'
5636     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5637     ;;
5638   sni)
5639     lt_cv_file_magic_cmd='/bin/file'
5640     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5641     lt_cv_file_magic_test_file=/lib/libc.so
5642     ;;
5643   siemens)
5644     lt_cv_deplibs_check_method=pass_all
5645     ;;
5646   pc)
5647     lt_cv_deplibs_check_method=pass_all
5648     ;;
5649   esac
5650   ;;
5651
5652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5653   lt_cv_deplibs_check_method=pass_all
5654   ;;
5655 esac
5656
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5659 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5660 file_magic_cmd=$lt_cv_file_magic_cmd
5661 deplibs_check_method=$lt_cv_deplibs_check_method
5662 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5663
5664
5665
5666
5667 # If no C compiler was specified, use CC.
5668 LTCC=${LTCC-"$CC"}
5669
5670 # If no C compiler flags were specified, use CFLAGS.
5671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5672
5673 # Allow CC to be a program name with arguments.
5674 compiler=$CC
5675
5676 # Check whether --enable-libtool-lock was given.
5677 if test "${enable_libtool_lock+set}" = set; then :
5678   enableval=$enable_libtool_lock;
5679 fi
5680
5681 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5682
5683 # Some flags need to be propagated to the compiler or linker for good
5684 # libtool support.
5685 case $host in
5686 ia64-*-hpux*)
5687   # Find out which ABI we are using.
5688   echo 'int i;' > conftest.$ac_ext
5689   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5690   (eval $ac_compile) 2>&5
5691   ac_status=$?
5692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693   test $ac_status = 0; }; then
5694     case `/usr/bin/file conftest.$ac_objext` in
5695     *ELF-32*)
5696       HPUX_IA64_MODE="32"
5697       ;;
5698     *ELF-64*)
5699       HPUX_IA64_MODE="64"
5700       ;;
5701     esac
5702   fi
5703   rm -rf conftest*
5704   ;;
5705 *-*-irix6*)
5706   # Find out which ABI we are using.
5707   echo '#line 5707 "configure"' > conftest.$ac_ext
5708   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5709   (eval $ac_compile) 2>&5
5710   ac_status=$?
5711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712   test $ac_status = 0; }; then
5713    if test "$lt_cv_prog_gnu_ld" = yes; then
5714     case `/usr/bin/file conftest.$ac_objext` in
5715     *32-bit*)
5716       LD="${LD-ld} -melf32bsmip"
5717       ;;
5718     *N32*)
5719       LD="${LD-ld} -melf32bmipn32"
5720       ;;
5721     *64-bit*)
5722       LD="${LD-ld} -melf64bmip"
5723       ;;
5724     esac
5725    else
5726     case `/usr/bin/file conftest.$ac_objext` in
5727     *32-bit*)
5728       LD="${LD-ld} -32"
5729       ;;
5730     *N32*)
5731       LD="${LD-ld} -n32"
5732       ;;
5733     *64-bit*)
5734       LD="${LD-ld} -64"
5735       ;;
5736     esac
5737    fi
5738   fi
5739   rm -rf conftest*
5740   ;;
5741
5742 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5743   # Find out which ABI we are using.
5744   echo 'int i;' > conftest.$ac_ext
5745   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5746   (eval $ac_compile) 2>&5
5747   ac_status=$?
5748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749   test $ac_status = 0; }; then
5750     case `/usr/bin/file conftest.o` in
5751     *32-bit*)
5752       case $host in
5753         x86_64-*linux*)
5754           LD="${LD-ld} -m elf_i386"
5755           ;;
5756         ppc64-*linux*|powerpc64-*linux*)
5757           LD="${LD-ld} -m elf32ppclinux"
5758           ;;
5759         s390x-*linux*)
5760           LD="${LD-ld} -m elf_s390"
5761           ;;
5762         sparc64-*linux*)
5763           LD="${LD-ld} -m elf32_sparc"
5764           ;;
5765       esac
5766       ;;
5767     *64-bit*)
5768       case $host in
5769         x86_64-*linux*)
5770           LD="${LD-ld} -m elf_x86_64"
5771           ;;
5772         ppc*-*linux*|powerpc*-*linux*)
5773           LD="${LD-ld} -m elf64ppc"
5774           ;;
5775         s390*-*linux*)
5776           LD="${LD-ld} -m elf64_s390"
5777           ;;
5778         sparc*-*linux*)
5779           LD="${LD-ld} -m elf64_sparc"
5780           ;;
5781       esac
5782       ;;
5783     esac
5784   fi
5785   rm -rf conftest*
5786   ;;
5787
5788 *-*-sco3.2v5*)
5789   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5790   SAVE_CFLAGS="$CFLAGS"
5791   CFLAGS="$CFLAGS -belf"
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5793 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5794 if ${lt_cv_cc_needs_belf+:} false; then :
5795   $as_echo_n "(cached) " >&6
5796 else
5797   ac_ext=c
5798 ac_cpp='$CPP $CPPFLAGS'
5799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802
5803      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h.  */
5805
5806 int
5807 main ()
5808 {
5809
5810   ;
5811   return 0;
5812 }
5813 _ACEOF
5814 if ac_fn_c_try_link "$LINENO"; then :
5815   lt_cv_cc_needs_belf=yes
5816 else
5817   lt_cv_cc_needs_belf=no
5818 fi
5819 rm -f core conftest.err conftest.$ac_objext \
5820     conftest$ac_exeext conftest.$ac_ext
5821      ac_ext=c
5822 ac_cpp='$CPP $CPPFLAGS'
5823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5826
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5829 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5830   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5831     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5832     CFLAGS="$SAVE_CFLAGS"
5833   fi
5834   ;;
5835 sparc*-*solaris*)
5836   # Find out which ABI we are using.
5837   echo 'int i;' > conftest.$ac_ext
5838   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5839   (eval $ac_compile) 2>&5
5840   ac_status=$?
5841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5842   test $ac_status = 0; }; then
5843     case `/usr/bin/file conftest.o` in
5844     *64-bit*)
5845       case $lt_cv_prog_gnu_ld in
5846       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5847       *)    LD="${LD-ld} -64" ;;
5848       esac
5849       ;;
5850     esac
5851   fi
5852   rm -rf conftest*
5853   ;;
5854
5855
5856 esac
5857
5858 need_locks="$enable_libtool_lock"
5859
5860
5861 ac_ext=c
5862 ac_cpp='$CPP $CPPFLAGS'
5863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5867 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5868 # On Suns, sometimes $CPP names a directory.
5869 if test -n "$CPP" && test -d "$CPP"; then
5870   CPP=
5871 fi
5872 if test -z "$CPP"; then
5873   if ${ac_cv_prog_CPP+:} false; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876       # Double quotes because CPP needs to be expanded
5877     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5878     do
5879       ac_preproc_ok=false
5880 for ac_c_preproc_warn_flag in '' yes
5881 do
5882   # Use a header file that comes with gcc, so configuring glibc
5883   # with a fresh cross-compiler works.
5884   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5885   # <limits.h> exists even on freestanding compilers.
5886   # On the NeXT, cc -E runs the code through the compiler's parser,
5887   # not just through cpp. "Syntax error" is here to catch this case.
5888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h.  */
5890 #ifdef __STDC__
5891 # include <limits.h>
5892 #else
5893 # include <assert.h>
5894 #endif
5895                      Syntax error
5896 _ACEOF
5897 if ac_fn_c_try_cpp "$LINENO"; then :
5898
5899 else
5900   # Broken: fails on valid input.
5901 continue
5902 fi
5903 rm -f conftest.err conftest.i conftest.$ac_ext
5904
5905   # OK, works on sane cases.  Now check whether nonexistent headers
5906   # can be detected and how.
5907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h.  */
5909 #include <ac_nonexistent.h>
5910 _ACEOF
5911 if ac_fn_c_try_cpp "$LINENO"; then :
5912   # Broken: success on invalid input.
5913 continue
5914 else
5915   # Passes both tests.
5916 ac_preproc_ok=:
5917 break
5918 fi
5919 rm -f conftest.err conftest.i conftest.$ac_ext
5920
5921 done
5922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5923 rm -f conftest.i conftest.err conftest.$ac_ext
5924 if $ac_preproc_ok; then :
5925   break
5926 fi
5927
5928     done
5929     ac_cv_prog_CPP=$CPP
5930
5931 fi
5932   CPP=$ac_cv_prog_CPP
5933 else
5934   ac_cv_prog_CPP=$CPP
5935 fi
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5937 $as_echo "$CPP" >&6; }
5938 ac_preproc_ok=false
5939 for ac_c_preproc_warn_flag in '' yes
5940 do
5941   # Use a header file that comes with gcc, so configuring glibc
5942   # with a fresh cross-compiler works.
5943   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5944   # <limits.h> exists even on freestanding compilers.
5945   # On the NeXT, cc -E runs the code through the compiler's parser,
5946   # not just through cpp. "Syntax error" is here to catch this case.
5947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h.  */
5949 #ifdef __STDC__
5950 # include <limits.h>
5951 #else
5952 # include <assert.h>
5953 #endif
5954                      Syntax error
5955 _ACEOF
5956 if ac_fn_c_try_cpp "$LINENO"; then :
5957
5958 else
5959   # Broken: fails on valid input.
5960 continue
5961 fi
5962 rm -f conftest.err conftest.i conftest.$ac_ext
5963
5964   # OK, works on sane cases.  Now check whether nonexistent headers
5965   # can be detected and how.
5966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h.  */
5968 #include <ac_nonexistent.h>
5969 _ACEOF
5970 if ac_fn_c_try_cpp "$LINENO"; then :
5971   # Broken: success on invalid input.
5972 continue
5973 else
5974   # Passes both tests.
5975 ac_preproc_ok=:
5976 break
5977 fi
5978 rm -f conftest.err conftest.i conftest.$ac_ext
5979
5980 done
5981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5982 rm -f conftest.i conftest.err conftest.$ac_ext
5983 if $ac_preproc_ok; then :
5984
5985 else
5986   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5988 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5989 See \`config.log' for more details" "$LINENO" 5; }
5990 fi
5991
5992 ac_ext=c
5993 ac_cpp='$CPP $CPPFLAGS'
5994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6000 $as_echo_n "checking for ANSI C header files... " >&6; }
6001 if ${ac_cv_header_stdc+:} false; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h.  */
6006 #include <stdlib.h>
6007 #include <stdarg.h>
6008 #include <string.h>
6009 #include <float.h>
6010
6011 int
6012 main ()
6013 {
6014
6015   ;
6016   return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_c_try_compile "$LINENO"; then :
6020   ac_cv_header_stdc=yes
6021 else
6022   ac_cv_header_stdc=no
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025
6026 if test $ac_cv_header_stdc = yes; then
6027   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h.  */
6030 #include <string.h>
6031
6032 _ACEOF
6033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6034   $EGREP "memchr" >/dev/null 2>&1; then :
6035
6036 else
6037   ac_cv_header_stdc=no
6038 fi
6039 rm -f conftest*
6040
6041 fi
6042
6043 if test $ac_cv_header_stdc = yes; then
6044   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h.  */
6047 #include <stdlib.h>
6048
6049 _ACEOF
6050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6051   $EGREP "free" >/dev/null 2>&1; then :
6052
6053 else
6054   ac_cv_header_stdc=no
6055 fi
6056 rm -f conftest*
6057
6058 fi
6059
6060 if test $ac_cv_header_stdc = yes; then
6061   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6062   if test "$cross_compiling" = yes; then :
6063   :
6064 else
6065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h.  */
6067 #include <ctype.h>
6068 #include <stdlib.h>
6069 #if ((' ' & 0x0FF) == 0x020)
6070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6072 #else
6073 # define ISLOWER(c) \
6074                    (('a' <= (c) && (c) <= 'i') \
6075                      || ('j' <= (c) && (c) <= 'r') \
6076                      || ('s' <= (c) && (c) <= 'z'))
6077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6078 #endif
6079
6080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6081 int
6082 main ()
6083 {
6084   int i;
6085   for (i = 0; i < 256; i++)
6086     if (XOR (islower (i), ISLOWER (i))
6087         || toupper (i) != TOUPPER (i))
6088       return 2;
6089   return 0;
6090 }
6091 _ACEOF
6092 if ac_fn_c_try_run "$LINENO"; then :
6093
6094 else
6095   ac_cv_header_stdc=no
6096 fi
6097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6098   conftest.$ac_objext conftest.beam conftest.$ac_ext
6099 fi
6100
6101 fi
6102 fi
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6104 $as_echo "$ac_cv_header_stdc" >&6; }
6105 if test $ac_cv_header_stdc = yes; then
6106
6107 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6108
6109 fi
6110
6111 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6112 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6113                   inttypes.h stdint.h unistd.h
6114 do :
6115   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6116 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6117 "
6118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6119   cat >>confdefs.h <<_ACEOF
6120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6121 _ACEOF
6122
6123 fi
6124
6125 done
6126
6127
6128 for ac_header in dlfcn.h
6129 do :
6130   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6131 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6132   cat >>confdefs.h <<_ACEOF
6133 #define HAVE_DLFCN_H 1
6134 _ACEOF
6135
6136 fi
6137
6138 done
6139
6140 ac_ext=cpp
6141 ac_cpp='$CXXCPP $CPPFLAGS'
6142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6145 if test -z "$CXX"; then
6146   if test -n "$CCC"; then
6147     CXX=$CCC
6148   else
6149     if test -n "$ac_tool_prefix"; then
6150   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6151   do
6152     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_CXX+:} false; then :
6157   $as_echo_n "(cached) " >&6
6158 else
6159   if test -n "$CXX"; then
6160   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6164 do
6165   IFS=$as_save_IFS
6166   test -z "$as_dir" && as_dir=.
6167     for ac_exec_ext in '' $ac_executable_extensions; do
6168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171     break 2
6172   fi
6173 done
6174   done
6175 IFS=$as_save_IFS
6176
6177 fi
6178 fi
6179 CXX=$ac_cv_prog_CXX
6180 if test -n "$CXX"; then
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6182 $as_echo "$CXX" >&6; }
6183 else
6184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6186 fi
6187
6188
6189     test -n "$CXX" && break
6190   done
6191 fi
6192 if test -z "$CXX"; then
6193   ac_ct_CXX=$CXX
6194   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6195 do
6196   # Extract the first word of "$ac_prog", so it can be a program name with args.
6197 set dummy $ac_prog; ac_word=$2
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6201   $as_echo_n "(cached) " >&6
6202 else
6203   if test -n "$ac_ct_CXX"; then
6204   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209   IFS=$as_save_IFS
6210   test -z "$as_dir" && as_dir=.
6211     for ac_exec_ext in '' $ac_executable_extensions; do
6212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213     ac_cv_prog_ac_ct_CXX="$ac_prog"
6214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215     break 2
6216   fi
6217 done
6218   done
6219 IFS=$as_save_IFS
6220
6221 fi
6222 fi
6223 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6224 if test -n "$ac_ct_CXX"; then
6225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6226 $as_echo "$ac_ct_CXX" >&6; }
6227 else
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231
6232
6233   test -n "$ac_ct_CXX" && break
6234 done
6235
6236   if test "x$ac_ct_CXX" = x; then
6237     CXX="g++"
6238   else
6239     case $cross_compiling:$ac_tool_warned in
6240 yes:)
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6244 esac
6245     CXX=$ac_ct_CXX
6246   fi
6247 fi
6248
6249   fi
6250 fi
6251 # Provide some information about the compiler.
6252 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6253 set X $ac_compile
6254 ac_compiler=$2
6255 for ac_option in --version -v -V -qversion; do
6256   { { ac_try="$ac_compiler $ac_option >&5"
6257 case "(($ac_try" in
6258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259   *) ac_try_echo=$ac_try;;
6260 esac
6261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6262 $as_echo "$ac_try_echo"; } >&5
6263   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6264   ac_status=$?
6265   if test -s conftest.err; then
6266     sed '10a\
6267 ... rest of stderr output deleted ...
6268          10q' conftest.err >conftest.er1
6269     cat conftest.er1 >&5
6270   fi
6271   rm -f conftest.er1 conftest.err
6272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6273   test $ac_status = 0; }
6274 done
6275
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6277 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6278 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6279   $as_echo_n "(cached) " >&6
6280 else
6281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h.  */
6283
6284 int
6285 main ()
6286 {
6287 #ifndef __GNUC__
6288        choke me
6289 #endif
6290
6291   ;
6292   return 0;
6293 }
6294 _ACEOF
6295 if ac_fn_cxx_try_compile "$LINENO"; then :
6296   ac_compiler_gnu=yes
6297 else
6298   ac_compiler_gnu=no
6299 fi
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6301 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6302
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6305 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6306 if test $ac_compiler_gnu = yes; then
6307   GXX=yes
6308 else
6309   GXX=
6310 fi
6311 ac_test_CXXFLAGS=${CXXFLAGS+set}
6312 ac_save_CXXFLAGS=$CXXFLAGS
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6314 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6315 if ${ac_cv_prog_cxx_g+:} false; then :
6316   $as_echo_n "(cached) " >&6
6317 else
6318   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6319    ac_cxx_werror_flag=yes
6320    ac_cv_prog_cxx_g=no
6321    CXXFLAGS="-g"
6322    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h.  */
6324
6325 int
6326 main ()
6327 {
6328
6329   ;
6330   return 0;
6331 }
6332 _ACEOF
6333 if ac_fn_cxx_try_compile "$LINENO"; then :
6334   ac_cv_prog_cxx_g=yes
6335 else
6336   CXXFLAGS=""
6337       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h.  */
6339
6340 int
6341 main ()
6342 {
6343
6344   ;
6345   return 0;
6346 }
6347 _ACEOF
6348 if ac_fn_cxx_try_compile "$LINENO"; then :
6349
6350 else
6351   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6352          CXXFLAGS="-g"
6353          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h.  */
6355
6356 int
6357 main ()
6358 {
6359
6360   ;
6361   return 0;
6362 }
6363 _ACEOF
6364 if ac_fn_cxx_try_compile "$LINENO"; then :
6365   ac_cv_prog_cxx_g=yes
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 fi
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6375 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6376 if test "$ac_test_CXXFLAGS" = set; then
6377   CXXFLAGS=$ac_save_CXXFLAGS
6378 elif test $ac_cv_prog_cxx_g = yes; then
6379   if test "$GXX" = yes; then
6380     CXXFLAGS="-g -O2"
6381   else
6382     CXXFLAGS="-g"
6383   fi
6384 else
6385   if test "$GXX" = yes; then
6386     CXXFLAGS="-O2"
6387   else
6388     CXXFLAGS=
6389   fi
6390 fi
6391 ac_ext=cpp
6392 ac_cpp='$CXXCPP $CPPFLAGS'
6393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6396
6397 depcc="$CXX"  am_compiler_list=
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6400 $as_echo_n "checking dependency style of $depcc... " >&6; }
6401 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6405   # We make a subdir and do the tests there.  Otherwise we can end up
6406   # making bogus files that we don't know about and never remove.  For
6407   # instance it was reported that on HP-UX the gcc test will end up
6408   # making a dummy file named `D' -- because `-MD' means `put the output
6409   # in D'.
6410   mkdir conftest.dir
6411   # Copy depcomp to subdir because otherwise we won't find it if we're
6412   # using a relative directory.
6413   cp "$am_depcomp" conftest.dir
6414   cd conftest.dir
6415   # We will build objects and dependencies in a subdirectory because
6416   # it helps to detect inapplicable dependency modes.  For instance
6417   # both Tru64's cc and ICC support -MD to output dependencies as a
6418   # side effect of compilation, but ICC will put the dependencies in
6419   # the current directory while Tru64 will put them in the object
6420   # directory.
6421   mkdir sub
6422
6423   am_cv_CXX_dependencies_compiler_type=none
6424   if test "$am_compiler_list" = ""; then
6425      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6426   fi
6427   for depmode in $am_compiler_list; do
6428     # Setup a source with many dependencies, because some compilers
6429     # like to wrap large dependency lists on column 80 (with \), and
6430     # we should not choose a depcomp mode which is confused by this.
6431     #
6432     # We need to recreate these files for each test, as the compiler may
6433     # overwrite some of them when testing with obscure command lines.
6434     # This happens at least with the AIX C compiler.
6435     : > sub/conftest.c
6436     for i in 1 2 3 4 5 6; do
6437       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6438       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6439       # Solaris 8's {/usr,}/bin/sh.
6440       touch sub/conftst$i.h
6441     done
6442     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6443
6444     case $depmode in
6445     nosideeffect)
6446       # after this tag, mechanisms are not by side-effect, so they'll
6447       # only be used when explicitly requested
6448       if test "x$enable_dependency_tracking" = xyes; then
6449         continue
6450       else
6451         break
6452       fi
6453       ;;
6454     none) break ;;
6455     esac
6456     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6457     # mode.  It turns out that the SunPro C++ compiler does not properly
6458     # handle `-M -o', and we need to detect this.
6459     if depmode=$depmode \
6460        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6461        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6462        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6463          >/dev/null 2>conftest.err &&
6464        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6465        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6466        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6467       # icc doesn't choke on unknown options, it will just issue warnings
6468       # or remarks (even with -Werror).  So we grep stderr for any message
6469       # that says an option was ignored or not supported.
6470       # When given -MP, icc 7.0 and 7.1 complain thusly:
6471       #   icc: Command line warning: ignoring option '-M'; no argument required
6472       # The diagnosis changed in icc 8.0:
6473       #   icc: Command line remark: option '-MP' not supported
6474       if (grep 'ignoring option' conftest.err ||
6475           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6476         am_cv_CXX_dependencies_compiler_type=$depmode
6477         break
6478       fi
6479     fi
6480   done
6481
6482   cd ..
6483   rm -rf conftest.dir
6484 else
6485   am_cv_CXX_dependencies_compiler_type=none
6486 fi
6487
6488 fi
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6490 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6491 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6492
6493
6494
6495 if
6496   test "x$enable_dependency_tracking" != xno \
6497   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6498   am__fastdepCXX_TRUE=
6499   am__fastdepCXX_FALSE='#'
6500 else
6501   am__fastdepCXX_TRUE='#'
6502   am__fastdepCXX_FALSE=
6503 fi
6504
6505
6506
6507
6508 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6509     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6510     (test "X$CXX" != "Xg++"))) ; then
6511   ac_ext=cpp
6512 ac_cpp='$CXXCPP $CPPFLAGS'
6513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6517 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6518 if test -z "$CXXCPP"; then
6519   if ${ac_cv_prog_CXXCPP+:} false; then :
6520   $as_echo_n "(cached) " >&6
6521 else
6522       # Double quotes because CXXCPP needs to be expanded
6523     for CXXCPP in "$CXX -E" "/lib/cpp"
6524     do
6525       ac_preproc_ok=false
6526 for ac_cxx_preproc_warn_flag in '' yes
6527 do
6528   # Use a header file that comes with gcc, so configuring glibc
6529   # with a fresh cross-compiler works.
6530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6531   # <limits.h> exists even on freestanding compilers.
6532   # On the NeXT, cc -E runs the code through the compiler's parser,
6533   # not just through cpp. "Syntax error" is here to catch this case.
6534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h.  */
6536 #ifdef __STDC__
6537 # include <limits.h>
6538 #else
6539 # include <assert.h>
6540 #endif
6541                      Syntax error
6542 _ACEOF
6543 if ac_fn_cxx_try_cpp "$LINENO"; then :
6544
6545 else
6546   # Broken: fails on valid input.
6547 continue
6548 fi
6549 rm -f conftest.err conftest.i conftest.$ac_ext
6550
6551   # OK, works on sane cases.  Now check whether nonexistent headers
6552   # can be detected and how.
6553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h.  */
6555 #include <ac_nonexistent.h>
6556 _ACEOF
6557 if ac_fn_cxx_try_cpp "$LINENO"; then :
6558   # Broken: success on invalid input.
6559 continue
6560 else
6561   # Passes both tests.
6562 ac_preproc_ok=:
6563 break
6564 fi
6565 rm -f conftest.err conftest.i conftest.$ac_ext
6566
6567 done
6568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6569 rm -f conftest.i conftest.err conftest.$ac_ext
6570 if $ac_preproc_ok; then :
6571   break
6572 fi
6573
6574     done
6575     ac_cv_prog_CXXCPP=$CXXCPP
6576
6577 fi
6578   CXXCPP=$ac_cv_prog_CXXCPP
6579 else
6580   ac_cv_prog_CXXCPP=$CXXCPP
6581 fi
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6583 $as_echo "$CXXCPP" >&6; }
6584 ac_preproc_ok=false
6585 for ac_cxx_preproc_warn_flag in '' yes
6586 do
6587   # Use a header file that comes with gcc, so configuring glibc
6588   # with a fresh cross-compiler works.
6589   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6590   # <limits.h> exists even on freestanding compilers.
6591   # On the NeXT, cc -E runs the code through the compiler's parser,
6592   # not just through cpp. "Syntax error" is here to catch this case.
6593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h.  */
6595 #ifdef __STDC__
6596 # include <limits.h>
6597 #else
6598 # include <assert.h>
6599 #endif
6600                      Syntax error
6601 _ACEOF
6602 if ac_fn_cxx_try_cpp "$LINENO"; then :
6603
6604 else
6605   # Broken: fails on valid input.
6606 continue
6607 fi
6608 rm -f conftest.err conftest.i conftest.$ac_ext
6609
6610   # OK, works on sane cases.  Now check whether nonexistent headers
6611   # can be detected and how.
6612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h.  */
6614 #include <ac_nonexistent.h>
6615 _ACEOF
6616 if ac_fn_cxx_try_cpp "$LINENO"; then :
6617   # Broken: success on invalid input.
6618 continue
6619 else
6620   # Passes both tests.
6621 ac_preproc_ok=:
6622 break
6623 fi
6624 rm -f conftest.err conftest.i conftest.$ac_ext
6625
6626 done
6627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6628 rm -f conftest.i conftest.err conftest.$ac_ext
6629 if $ac_preproc_ok; then :
6630
6631 else
6632   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6634 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6635 See \`config.log' for more details" "$LINENO" 5; }
6636 fi
6637
6638 ac_ext=cpp
6639 ac_cpp='$CXXCPP $CPPFLAGS'
6640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6643
6644 fi
6645
6646
6647 ac_ext=f
6648 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6649 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6650 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6651 if test -n "$ac_tool_prefix"; then
6652   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
6653   do
6654     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_F77+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661   if test -n "$F77"; then
6662   ac_cv_prog_F77="$F77" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669     for ac_exec_ext in '' $ac_executable_extensions; do
6670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676   done
6677 IFS=$as_save_IFS
6678
6679 fi
6680 fi
6681 F77=$ac_cv_prog_F77
6682 if test -n "$F77"; then
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6684 $as_echo "$F77" >&6; }
6685 else
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689
6690
6691     test -n "$F77" && break
6692   done
6693 fi
6694 if test -z "$F77"; then
6695   ac_ct_F77=$F77
6696   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
6697 do
6698   # Extract the first word of "$ac_prog", so it can be a program name with args.
6699 set dummy $ac_prog; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6703   $as_echo_n "(cached) " >&6
6704 else
6705   if test -n "$ac_ct_F77"; then
6706   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713     for ac_exec_ext in '' $ac_executable_extensions; do
6714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715     ac_cv_prog_ac_ct_F77="$ac_prog"
6716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720   done
6721 IFS=$as_save_IFS
6722
6723 fi
6724 fi
6725 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6726 if test -n "$ac_ct_F77"; then
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6728 $as_echo "$ac_ct_F77" >&6; }
6729 else
6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6732 fi
6733
6734
6735   test -n "$ac_ct_F77" && break
6736 done
6737
6738   if test "x$ac_ct_F77" = x; then
6739     F77=""
6740   else
6741     case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747     F77=$ac_ct_F77
6748   fi
6749 fi
6750
6751
6752 # Provide some information about the compiler.
6753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6754 set X $ac_compile
6755 ac_compiler=$2
6756 for ac_option in --version -v -V -qversion; do
6757   { { ac_try="$ac_compiler $ac_option >&5"
6758 case "(($ac_try" in
6759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760   *) ac_try_echo=$ac_try;;
6761 esac
6762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6763 $as_echo "$ac_try_echo"; } >&5
6764   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6765   ac_status=$?
6766   if test -s conftest.err; then
6767     sed '10a\
6768 ... rest of stderr output deleted ...
6769          10q' conftest.err >conftest.er1
6770     cat conftest.er1 >&5
6771   fi
6772   rm -f conftest.er1 conftest.err
6773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774   test $ac_status = 0; }
6775 done
6776 rm -f a.out
6777
6778 # If we don't use `.F' as extension, the preprocessor is not run on the
6779 # input file.  (Note that this only needs to work for GNU compilers.)
6780 ac_save_ext=$ac_ext
6781 ac_ext=F
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6783 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6784 if ${ac_cv_f77_compiler_gnu+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   cat > conftest.$ac_ext <<_ACEOF
6788       program main
6789 #ifndef __GNUC__
6790        choke me
6791 #endif
6792
6793       end
6794 _ACEOF
6795 if ac_fn_f77_try_compile "$LINENO"; then :
6796   ac_compiler_gnu=yes
6797 else
6798   ac_compiler_gnu=no
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6802
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6805 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6806 ac_ext=$ac_save_ext
6807 ac_test_FFLAGS=${FFLAGS+set}
6808 ac_save_FFLAGS=$FFLAGS
6809 FFLAGS=
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6811 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6812 if ${ac_cv_prog_f77_g+:} false; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   FFLAGS=-g
6816 cat > conftest.$ac_ext <<_ACEOF
6817       program main
6818
6819       end
6820 _ACEOF
6821 if ac_fn_f77_try_compile "$LINENO"; then :
6822   ac_cv_prog_f77_g=yes
6823 else
6824   ac_cv_prog_f77_g=no
6825 fi
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827
6828 fi
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6830 $as_echo "$ac_cv_prog_f77_g" >&6; }
6831 if test "$ac_test_FFLAGS" = set; then
6832   FFLAGS=$ac_save_FFLAGS
6833 elif test $ac_cv_prog_f77_g = yes; then
6834   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6835     FFLAGS="-g -O2"
6836   else
6837     FFLAGS="-g"
6838   fi
6839 else
6840   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6841     FFLAGS="-O2"
6842   else
6843     FFLAGS=
6844   fi
6845 fi
6846
6847 if test $ac_compiler_gnu = yes; then
6848   G77=yes
6849 else
6850   G77=
6851 fi
6852 ac_ext=c
6853 ac_cpp='$CPP $CPPFLAGS'
6854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6857
6858
6859
6860 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6861
6862 # find the maximum length of command line arguments
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6864 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6865 if ${lt_cv_sys_max_cmd_len+:} false; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868     i=0
6869   teststring="ABCD"
6870
6871   case $build_os in
6872   msdosdjgpp*)
6873     # On DJGPP, this test can blow up pretty badly due to problems in libc
6874     # (any single argument exceeding 2000 bytes causes a buffer overrun
6875     # during glob expansion).  Even if it were fixed, the result of this
6876     # check would be larger than it should be.
6877     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6878     ;;
6879
6880   gnu*)
6881     # Under GNU Hurd, this test is not required because there is
6882     # no limit to the length of command line arguments.
6883     # Libtool will interpret -1 as no limit whatsoever
6884     lt_cv_sys_max_cmd_len=-1;
6885     ;;
6886
6887   cygwin* | mingw*)
6888     # On Win9x/ME, this test blows up -- it succeeds, but takes
6889     # about 5 minutes as the teststring grows exponentially.
6890     # Worse, since 9x/ME are not pre-emptively multitasking,
6891     # you end up with a "frozen" computer, even though with patience
6892     # the test eventually succeeds (with a max line length of 256k).
6893     # Instead, let's just punt: use the minimum linelength reported by
6894     # all of the supported platforms: 8192 (on NT/2K/XP).
6895     lt_cv_sys_max_cmd_len=8192;
6896     ;;
6897
6898   amigaos*)
6899     # On AmigaOS with pdksh, this test takes hours, literally.
6900     # So we just punt and use a minimum line length of 8192.
6901     lt_cv_sys_max_cmd_len=8192;
6902     ;;
6903
6904   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6905     # This has been around since 386BSD, at least.  Likely further.
6906     if test -x /sbin/sysctl; then
6907       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6908     elif test -x /usr/sbin/sysctl; then
6909       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6910     else
6911       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6912     fi
6913     # And add a safety zone
6914     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6915     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6916     ;;
6917
6918   interix*)
6919     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6920     lt_cv_sys_max_cmd_len=196608
6921     ;;
6922
6923   osf*)
6924     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6925     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6926     # nice to cause kernel panics so lets avoid the loop below.
6927     # First set a reasonable default.
6928     lt_cv_sys_max_cmd_len=16384
6929     #
6930     if test -x /sbin/sysconfig; then
6931       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6932         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6933       esac
6934     fi
6935     ;;
6936   sco3.2v5*)
6937     lt_cv_sys_max_cmd_len=102400
6938     ;;
6939   sysv5* | sco5v6* | sysv4.2uw2*)
6940     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6941     if test -n "$kargmax"; then
6942       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6943     else
6944       lt_cv_sys_max_cmd_len=32768
6945     fi
6946     ;;
6947   *)
6948     # If test is not a shell built-in, we'll probably end up computing a
6949     # maximum length that is only half of the actual maximum length, but
6950     # we can't tell.
6951     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6952     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6953                = "XX$teststring") >/dev/null 2>&1 &&
6954             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6955             lt_cv_sys_max_cmd_len=$new_result &&
6956             test $i != 17 # 1/2 MB should be enough
6957     do
6958       i=`expr $i + 1`
6959       teststring=$teststring$teststring
6960     done
6961     teststring=
6962     # Add a significant safety factor because C++ compilers can tack on massive
6963     # amounts of additional arguments before passing them to the linker.
6964     # It appears as though 1/2 is a usable value.
6965     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6966     ;;
6967   esac
6968
6969 fi
6970
6971 if test -n $lt_cv_sys_max_cmd_len ; then
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6973 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6974 else
6975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6976 $as_echo "none" >&6; }
6977 fi
6978
6979
6980
6981
6982 # Check for command to grab the raw symbol name followed by C symbol from nm.
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6984 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6985 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6986   $as_echo_n "(cached) " >&6
6987 else
6988
6989 # These are sane defaults that work on at least a few old systems.
6990 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6991
6992 # Character class describing NM global symbol codes.
6993 symcode='[BCDEGRST]'
6994
6995 # Regexp to match symbols that can be accessed directly from C.
6996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6997
6998 # Transform an extracted symbol line into a proper C declaration
6999 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7000
7001 # Transform an extracted symbol line into symbol name and symbol address
7002 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'"
7003
7004 # Define system-specific variables.
7005 case $host_os in
7006 aix*)
7007   symcode='[BCDT]'
7008   ;;
7009 cygwin* | mingw* | pw32*)
7010   symcode='[ABCDGISTW]'
7011   ;;
7012 hpux*) # Its linker distinguishes data from code symbols
7013   if test "$host_cpu" = ia64; then
7014     symcode='[ABCDEGRST]'
7015   fi
7016   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7017   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'"
7018   ;;
7019 linux*)
7020   if test "$host_cpu" = ia64; then
7021     symcode='[ABCDGIRSTW]'
7022     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7023     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'"
7024   fi
7025   ;;
7026 irix* | nonstopux*)
7027   symcode='[BCDEGRST]'
7028   ;;
7029 osf*)
7030   symcode='[BCDEGQRST]'
7031   ;;
7032 solaris*)
7033   symcode='[BDRT]'
7034   ;;
7035 sco3.2v5*)
7036   symcode='[DT]'
7037   ;;
7038 sysv4.2uw2*)
7039   symcode='[DT]'
7040   ;;
7041 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7042   symcode='[ABDT]'
7043   ;;
7044 sysv4)
7045   symcode='[DFNSTU]'
7046   ;;
7047 esac
7048
7049 # Handle CRLF in mingw tool chain
7050 opt_cr=
7051 case $build_os in
7052 mingw*)
7053   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7054   ;;
7055 esac
7056
7057 # If we're using GNU nm, then use its standard symbol codes.
7058 case `$NM -V 2>&1` in
7059 *GNU* | *'with BFD'*)
7060   symcode='[ABCDGIRSTW]' ;;
7061 esac
7062
7063 # Try without a prefix undercore, then with it.
7064 for ac_symprfx in "" "_"; do
7065
7066   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7067   symxfrm="\\1 $ac_symprfx\\2 \\2"
7068
7069   # Write the raw and C identifiers.
7070   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7071
7072   # Check to see that the pipe works correctly.
7073   pipe_works=no
7074
7075   rm -f conftest*
7076   cat > conftest.$ac_ext <<EOF
7077 #ifdef __cplusplus
7078 extern "C" {
7079 #endif
7080 char nm_test_var;
7081 void nm_test_func(){}
7082 #ifdef __cplusplus
7083 }
7084 #endif
7085 int main(){nm_test_var='a';nm_test_func();return(0);}
7086 EOF
7087
7088   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7089   (eval $ac_compile) 2>&5
7090   ac_status=$?
7091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092   test $ac_status = 0; }; then
7093     # Now try to grab the symbols.
7094     nlist=conftest.nm
7095     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7096   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7097   ac_status=$?
7098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099   test $ac_status = 0; } && test -s "$nlist"; then
7100       # Try sorting and uniquifying the output.
7101       if sort "$nlist" | uniq > "$nlist"T; then
7102         mv -f "$nlist"T "$nlist"
7103       else
7104         rm -f "$nlist"T
7105       fi
7106
7107       # Make sure that we snagged all the symbols we need.
7108       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7109         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7110           cat <<EOF > conftest.$ac_ext
7111 #ifdef __cplusplus
7112 extern "C" {
7113 #endif
7114
7115 EOF
7116           # Now generate the symbol file.
7117           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7118
7119           cat <<EOF >> conftest.$ac_ext
7120 #if defined (__STDC__) && __STDC__
7121 # define lt_ptr_t void *
7122 #else
7123 # define lt_ptr_t char *
7124 # define const
7125 #endif
7126
7127 /* The mapping between symbol names and symbols. */
7128 const struct {
7129   const char *name;
7130   lt_ptr_t address;
7131 }
7132 lt_preloaded_symbols[] =
7133 {
7134 EOF
7135           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7136           cat <<\EOF >> conftest.$ac_ext
7137   {0, (lt_ptr_t) 0}
7138 };
7139
7140 #ifdef __cplusplus
7141 }
7142 #endif
7143 EOF
7144           # Now try linking the two files.
7145           mv conftest.$ac_objext conftstm.$ac_objext
7146           lt_save_LIBS="$LIBS"
7147           lt_save_CFLAGS="$CFLAGS"
7148           LIBS="conftstm.$ac_objext"
7149           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7150           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7151   (eval $ac_link) 2>&5
7152   ac_status=$?
7153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7154   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7155             pipe_works=yes
7156           fi
7157           LIBS="$lt_save_LIBS"
7158           CFLAGS="$lt_save_CFLAGS"
7159         else
7160           echo "cannot find nm_test_func in $nlist" >&5
7161         fi
7162       else
7163         echo "cannot find nm_test_var in $nlist" >&5
7164       fi
7165     else
7166       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7167     fi
7168   else
7169     echo "$progname: failed program was:" >&5
7170     cat conftest.$ac_ext >&5
7171   fi
7172   rm -f conftest* conftst*
7173
7174   # Do not use the global_symbol_pipe unless it works.
7175   if test "$pipe_works" = yes; then
7176     break
7177   else
7178     lt_cv_sys_global_symbol_pipe=
7179   fi
7180 done
7181
7182 fi
7183
7184 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7185   lt_cv_sys_global_symbol_to_cdecl=
7186 fi
7187 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7189 $as_echo "failed" >&6; }
7190 else
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7192 $as_echo "ok" >&6; }
7193 fi
7194
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7196 $as_echo_n "checking for objdir... " >&6; }
7197 if ${lt_cv_objdir+:} false; then :
7198   $as_echo_n "(cached) " >&6
7199 else
7200   rm -f .libs 2>/dev/null
7201 mkdir .libs 2>/dev/null
7202 if test -d .libs; then
7203   lt_cv_objdir=.libs
7204 else
7205   # MS-DOS does not allow filenames that begin with a dot.
7206   lt_cv_objdir=_libs
7207 fi
7208 rmdir .libs 2>/dev/null
7209 fi
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7211 $as_echo "$lt_cv_objdir" >&6; }
7212 objdir=$lt_cv_objdir
7213
7214
7215
7216
7217
7218 case $host_os in
7219 aix3*)
7220   # AIX sometimes has problems with the GCC collect2 program.  For some
7221   # reason, if we set the COLLECT_NAMES environment variable, the problems
7222   # vanish in a puff of smoke.
7223   if test "X${COLLECT_NAMES+set}" != Xset; then
7224     COLLECT_NAMES=
7225     export COLLECT_NAMES
7226   fi
7227   ;;
7228 esac
7229
7230 # Sed substitution that helps us do robust quoting.  It backslashifies
7231 # metacharacters that are still active within double-quoted strings.
7232 Xsed='sed -e 1s/^X//'
7233 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7234
7235 # Same as above, but do not quote variable references.
7236 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7237
7238 # Sed substitution to delay expansion of an escaped shell variable in a
7239 # double_quote_subst'ed string.
7240 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7241
7242 # Sed substitution to avoid accidental globbing in evaled expressions
7243 no_glob_subst='s/\*/\\\*/g'
7244
7245 # Constants:
7246 rm="rm -f"
7247
7248 # Global variables:
7249 default_ofile=libtool
7250 can_build_shared=yes
7251
7252 # All known linkers require a `.a' archive for static linking (except MSVC,
7253 # which needs '.lib').
7254 libext=a
7255 ltmain="$ac_aux_dir/ltmain.sh"
7256 ofile="$default_ofile"
7257 with_gnu_ld="$lt_cv_prog_gnu_ld"
7258
7259 if test -n "$ac_tool_prefix"; then
7260   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}ar; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_AR+:} false; then :
7265   $as_echo_n "(cached) " >&6
7266 else
7267   if test -n "$AR"; then
7268   ac_cv_prog_AR="$AR" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273   IFS=$as_save_IFS
7274   test -z "$as_dir" && as_dir=.
7275     for ac_exec_ext in '' $ac_executable_extensions; do
7276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277     ac_cv_prog_AR="${ac_tool_prefix}ar"
7278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279     break 2
7280   fi
7281 done
7282   done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 AR=$ac_cv_prog_AR
7288 if test -n "$AR"; then
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7290 $as_echo "$AR" >&6; }
7291 else
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296
7297 fi
7298 if test -z "$ac_cv_prog_AR"; then
7299   ac_ct_AR=$AR
7300   # Extract the first word of "ar", so it can be a program name with args.
7301 set dummy ar; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7305   $as_echo_n "(cached) " >&6
7306 else
7307   if test -n "$ac_ct_AR"; then
7308   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315     for ac_exec_ext in '' $ac_executable_extensions; do
7316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317     ac_cv_prog_ac_ct_AR="ar"
7318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322   done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7328 if test -n "$ac_ct_AR"; then
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7330 $as_echo "$ac_ct_AR" >&6; }
7331 else
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336   if test "x$ac_ct_AR" = x; then
7337     AR="false"
7338   else
7339     case $cross_compiling:$ac_tool_warned in
7340 yes:)
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned=yes ;;
7344 esac
7345     AR=$ac_ct_AR
7346   fi
7347 else
7348   AR="$ac_cv_prog_AR"
7349 fi
7350
7351 if test -n "$ac_tool_prefix"; then
7352   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_RANLIB+:} false; then :
7357   $as_echo_n "(cached) " >&6
7358 else
7359   if test -n "$RANLIB"; then
7360   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367     for ac_exec_ext in '' $ac_executable_extensions; do
7368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374   done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 RANLIB=$ac_cv_prog_RANLIB
7380 if test -n "$RANLIB"; then
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7382 $as_echo "$RANLIB" >&6; }
7383 else
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387
7388
7389 fi
7390 if test -z "$ac_cv_prog_RANLIB"; then
7391   ac_ct_RANLIB=$RANLIB
7392   # Extract the first word of "ranlib", so it can be a program name with args.
7393 set dummy ranlib; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   if test -n "$ac_ct_RANLIB"; then
7400   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407     for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_prog_ac_ct_RANLIB="ranlib"
7410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414   done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7420 if test -n "$ac_ct_RANLIB"; then
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7422 $as_echo "$ac_ct_RANLIB" >&6; }
7423 else
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427
7428   if test "x$ac_ct_RANLIB" = x; then
7429     RANLIB=":"
7430   else
7431     case $cross_compiling:$ac_tool_warned in
7432 yes:)
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435 ac_tool_warned=yes ;;
7436 esac
7437     RANLIB=$ac_ct_RANLIB
7438   fi
7439 else
7440   RANLIB="$ac_cv_prog_RANLIB"
7441 fi
7442
7443 if test -n "$ac_tool_prefix"; then
7444   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7445 set dummy ${ac_tool_prefix}strip; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if ${ac_cv_prog_STRIP+:} false; then :
7449   $as_echo_n "(cached) " >&6
7450 else
7451   if test -n "$STRIP"; then
7452   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457   IFS=$as_save_IFS
7458   test -z "$as_dir" && as_dir=.
7459     for ac_exec_ext in '' $ac_executable_extensions; do
7460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463     break 2
7464   fi
7465 done
7466   done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 STRIP=$ac_cv_prog_STRIP
7472 if test -n "$STRIP"; then
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7474 $as_echo "$STRIP" >&6; }
7475 else
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480
7481 fi
7482 if test -z "$ac_cv_prog_STRIP"; then
7483   ac_ct_STRIP=$STRIP
7484   # Extract the first word of "strip", so it can be a program name with args.
7485 set dummy strip; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   if test -n "$ac_ct_STRIP"; then
7492   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497   IFS=$as_save_IFS
7498   test -z "$as_dir" && as_dir=.
7499     for ac_exec_ext in '' $ac_executable_extensions; do
7500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501     ac_cv_prog_ac_ct_STRIP="strip"
7502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503     break 2
7504   fi
7505 done
7506   done
7507 IFS=$as_save_IFS
7508
7509 fi
7510 fi
7511 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7512 if test -n "$ac_ct_STRIP"; then
7513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7514 $as_echo "$ac_ct_STRIP" >&6; }
7515 else
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7518 fi
7519
7520   if test "x$ac_ct_STRIP" = x; then
7521     STRIP=":"
7522   else
7523     case $cross_compiling:$ac_tool_warned in
7524 yes:)
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527 ac_tool_warned=yes ;;
7528 esac
7529     STRIP=$ac_ct_STRIP
7530   fi
7531 else
7532   STRIP="$ac_cv_prog_STRIP"
7533 fi
7534
7535
7536 old_CC="$CC"
7537 old_CFLAGS="$CFLAGS"
7538
7539 # Set sane defaults for various variables
7540 test -z "$AR" && AR=ar
7541 test -z "$AR_FLAGS" && AR_FLAGS=cru
7542 test -z "$AS" && AS=as
7543 test -z "$CC" && CC=cc
7544 test -z "$LTCC" && LTCC=$CC
7545 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7546 test -z "$DLLTOOL" && DLLTOOL=dlltool
7547 test -z "$LD" && LD=ld
7548 test -z "$LN_S" && LN_S="ln -s"
7549 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7550 test -z "$NM" && NM=nm
7551 test -z "$SED" && SED=sed
7552 test -z "$OBJDUMP" && OBJDUMP=objdump
7553 test -z "$RANLIB" && RANLIB=:
7554 test -z "$STRIP" && STRIP=:
7555 test -z "$ac_objext" && ac_objext=o
7556
7557 # Determine commands to create old-style static archives.
7558 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7559 old_postinstall_cmds='chmod 644 $oldlib'
7560 old_postuninstall_cmds=
7561
7562 if test -n "$RANLIB"; then
7563   case $host_os in
7564   openbsd*)
7565     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7566     ;;
7567   *)
7568     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7569     ;;
7570   esac
7571   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7572 fi
7573
7574 for cc_temp in $compiler""; do
7575   case $cc_temp in
7576     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7577     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7578     \-*) ;;
7579     *) break;;
7580   esac
7581 done
7582 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7583
7584
7585 # Only perform the check for file, if the check method requires it
7586 case $deplibs_check_method in
7587 file_magic*)
7588   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7590 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7591 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   case $MAGIC_CMD in
7595 [\\/*] |  ?:[\\/]*)
7596   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7597   ;;
7598 *)
7599   lt_save_MAGIC_CMD="$MAGIC_CMD"
7600   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7601   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7602   for ac_dir in $ac_dummy; do
7603     IFS="$lt_save_ifs"
7604     test -z "$ac_dir" && ac_dir=.
7605     if test -f $ac_dir/${ac_tool_prefix}file; then
7606       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7607       if test -n "$file_magic_test_file"; then
7608         case $deplibs_check_method in
7609         "file_magic "*)
7610           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7611           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7612           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7613             $EGREP "$file_magic_regex" > /dev/null; then
7614             :
7615           else
7616             cat <<EOF 1>&2
7617
7618 *** Warning: the command libtool uses to detect shared libraries,
7619 *** $file_magic_cmd, produces output that libtool cannot recognize.
7620 *** The result is that libtool may fail to recognize shared libraries
7621 *** as such.  This will affect the creation of libtool libraries that
7622 *** depend on shared libraries, but programs linked with such libtool
7623 *** libraries will work regardless of this problem.  Nevertheless, you
7624 *** may want to report the problem to your system manager and/or to
7625 *** bug-libtool@gnu.org
7626
7627 EOF
7628           fi ;;
7629         esac
7630       fi
7631       break
7632     fi
7633   done
7634   IFS="$lt_save_ifs"
7635   MAGIC_CMD="$lt_save_MAGIC_CMD"
7636   ;;
7637 esac
7638 fi
7639
7640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641 if test -n "$MAGIC_CMD"; then
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7643 $as_echo "$MAGIC_CMD" >&6; }
7644 else
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649 if test -z "$lt_cv_path_MAGIC_CMD"; then
7650   if test -n "$ac_tool_prefix"; then
7651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7652 $as_echo_n "checking for file... " >&6; }
7653 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7654   $as_echo_n "(cached) " >&6
7655 else
7656   case $MAGIC_CMD in
7657 [\\/*] |  ?:[\\/]*)
7658   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7659   ;;
7660 *)
7661   lt_save_MAGIC_CMD="$MAGIC_CMD"
7662   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7663   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7664   for ac_dir in $ac_dummy; do
7665     IFS="$lt_save_ifs"
7666     test -z "$ac_dir" && ac_dir=.
7667     if test -f $ac_dir/file; then
7668       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7669       if test -n "$file_magic_test_file"; then
7670         case $deplibs_check_method in
7671         "file_magic "*)
7672           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7673           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7674           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7675             $EGREP "$file_magic_regex" > /dev/null; then
7676             :
7677           else
7678             cat <<EOF 1>&2
7679
7680 *** Warning: the command libtool uses to detect shared libraries,
7681 *** $file_magic_cmd, produces output that libtool cannot recognize.
7682 *** The result is that libtool may fail to recognize shared libraries
7683 *** as such.  This will affect the creation of libtool libraries that
7684 *** depend on shared libraries, but programs linked with such libtool
7685 *** libraries will work regardless of this problem.  Nevertheless, you
7686 *** may want to report the problem to your system manager and/or to
7687 *** bug-libtool@gnu.org
7688
7689 EOF
7690           fi ;;
7691         esac
7692       fi
7693       break
7694     fi
7695   done
7696   IFS="$lt_save_ifs"
7697   MAGIC_CMD="$lt_save_MAGIC_CMD"
7698   ;;
7699 esac
7700 fi
7701
7702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7703 if test -n "$MAGIC_CMD"; then
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7705 $as_echo "$MAGIC_CMD" >&6; }
7706 else
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710
7711   else
7712     MAGIC_CMD=:
7713   fi
7714 fi
7715
7716   fi
7717   ;;
7718 esac
7719
7720 enable_dlopen=no
7721 enable_win32_dll=no
7722
7723 # Check whether --enable-libtool-lock was given.
7724 if test "${enable_libtool_lock+set}" = set; then :
7725   enableval=$enable_libtool_lock;
7726 fi
7727
7728 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7729
7730
7731 # Check whether --with-pic was given.
7732 if test "${with_pic+set}" = set; then :
7733   withval=$with_pic; pic_mode="$withval"
7734 else
7735   pic_mode=default
7736 fi
7737
7738 test -z "$pic_mode" && pic_mode=default
7739
7740 # Use C for the default configuration in the libtool script
7741 tagname=
7742 lt_save_CC="$CC"
7743 ac_ext=c
7744 ac_cpp='$CPP $CPPFLAGS'
7745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7748
7749
7750 # Source file extension for C test sources.
7751 ac_ext=c
7752
7753 # Object file extension for compiled C test sources.
7754 objext=o
7755 objext=$objext
7756
7757 # Code to be used in simple compile tests
7758 lt_simple_compile_test_code="int some_variable = 0;\n"
7759
7760 # Code to be used in simple link tests
7761 lt_simple_link_test_code='int main(){return(0);}\n'
7762
7763
7764 # If no C compiler was specified, use CC.
7765 LTCC=${LTCC-"$CC"}
7766
7767 # If no C compiler flags were specified, use CFLAGS.
7768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7769
7770 # Allow CC to be a program name with arguments.
7771 compiler=$CC
7772
7773
7774 # save warnings/boilerplate of simple test code
7775 ac_outfile=conftest.$ac_objext
7776 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7778 _lt_compiler_boilerplate=`cat conftest.err`
7779 $rm conftest*
7780
7781 ac_outfile=conftest.$ac_objext
7782 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7784 _lt_linker_boilerplate=`cat conftest.err`
7785 $rm conftest*
7786
7787
7788
7789 lt_prog_compiler_no_builtin_flag=
7790
7791 if test "$GCC" = yes; then
7792   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7793
7794
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7796 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7797 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7798   $as_echo_n "(cached) " >&6
7799 else
7800   lt_cv_prog_compiler_rtti_exceptions=no
7801   ac_outfile=conftest.$ac_objext
7802    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7803    lt_compiler_flag="-fno-rtti -fno-exceptions"
7804    # Insert the option either (1) after the last *FLAGS variable, or
7805    # (2) before a word containing "conftest.", or (3) at the end.
7806    # Note that $ac_compile itself does not contain backslashes and begins
7807    # with a dollar sign (not a hyphen), so the echo should work correctly.
7808    # The option is referenced via a variable to avoid confusing sed.
7809    lt_compile=`echo "$ac_compile" | $SED \
7810    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7811    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7812    -e 's:$: $lt_compiler_flag:'`
7813    (eval echo "\"\$as_me:7813: $lt_compile\"" >&5)
7814    (eval "$lt_compile" 2>conftest.err)
7815    ac_status=$?
7816    cat conftest.err >&5
7817    echo "$as_me:7817: \$? = $ac_status" >&5
7818    if (exit $ac_status) && test -s "$ac_outfile"; then
7819      # The compiler can only warn and ignore the option if not recognized
7820      # So say no if there are warnings other than the usual output.
7821      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7822      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7823      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7824        lt_cv_prog_compiler_rtti_exceptions=yes
7825      fi
7826    fi
7827    $rm conftest*
7828
7829 fi
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7831 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7832
7833 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7834     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7835 else
7836     :
7837 fi
7838
7839 fi
7840
7841 lt_prog_compiler_wl=
7842 lt_prog_compiler_pic=
7843 lt_prog_compiler_static=
7844
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7846 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7847
7848   if test "$GCC" = yes; then
7849     lt_prog_compiler_wl='-Wl,'
7850     lt_prog_compiler_static='-static'
7851
7852     case $host_os in
7853       aix*)
7854       # All AIX code is PIC.
7855       if test "$host_cpu" = ia64; then
7856         # AIX 5 now supports IA64 processor
7857         lt_prog_compiler_static='-Bstatic'
7858       fi
7859       ;;
7860
7861     amigaos*)
7862       # FIXME: we need at least 68020 code to build shared libraries, but
7863       # adding the `-m68020' flag to GCC prevents building anything better,
7864       # like `-m68040'.
7865       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7866       ;;
7867
7868     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7869       # PIC is the default for these OSes.
7870       ;;
7871
7872     mingw* | pw32* | os2*)
7873       # This hack is so that the source file can tell whether it is being
7874       # built for inclusion in a dll (and should export symbols for example).
7875       lt_prog_compiler_pic='-DDLL_EXPORT'
7876       ;;
7877
7878     darwin* | rhapsody*)
7879       # PIC is the default on this platform
7880       # Common symbols not allowed in MH_DYLIB files
7881       lt_prog_compiler_pic='-fno-common'
7882       ;;
7883
7884     interix3*)
7885       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7886       # Instead, we relocate shared libraries at runtime.
7887       ;;
7888
7889     msdosdjgpp*)
7890       # Just because we use GCC doesn't mean we suddenly get shared libraries
7891       # on systems that don't support them.
7892       lt_prog_compiler_can_build_shared=no
7893       enable_shared=no
7894       ;;
7895
7896     sysv4*MP*)
7897       if test -d /usr/nec; then
7898         lt_prog_compiler_pic=-Kconform_pic
7899       fi
7900       ;;
7901
7902     hpux*)
7903       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7904       # not for PA HP-UX.
7905       case $host_cpu in
7906       hppa*64*|ia64*)
7907         # +Z the default
7908         ;;
7909       *)
7910         lt_prog_compiler_pic='-fPIC'
7911         ;;
7912       esac
7913       ;;
7914
7915     *)
7916       lt_prog_compiler_pic='-fPIC'
7917       ;;
7918     esac
7919   else
7920     # PORTME Check for flag to pass linker flags through the system compiler.
7921     case $host_os in
7922     aix*)
7923       lt_prog_compiler_wl='-Wl,'
7924       if test "$host_cpu" = ia64; then
7925         # AIX 5 now supports IA64 processor
7926         lt_prog_compiler_static='-Bstatic'
7927       else
7928         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7929       fi
7930       ;;
7931       darwin*)
7932         # PIC is the default on this platform
7933         # Common symbols not allowed in MH_DYLIB files
7934        case $cc_basename in
7935          xlc*)
7936          lt_prog_compiler_pic='-qnocommon'
7937          lt_prog_compiler_wl='-Wl,'
7938          ;;
7939        esac
7940        ;;
7941
7942     mingw* | pw32* | os2*)
7943       # This hack is so that the source file can tell whether it is being
7944       # built for inclusion in a dll (and should export symbols for example).
7945       lt_prog_compiler_pic='-DDLL_EXPORT'
7946       ;;
7947
7948     hpux9* | hpux10* | hpux11*)
7949       lt_prog_compiler_wl='-Wl,'
7950       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7951       # not for PA HP-UX.
7952       case $host_cpu in
7953       hppa*64*|ia64*)
7954         # +Z the default
7955         ;;
7956       *)
7957         lt_prog_compiler_pic='+Z'
7958         ;;
7959       esac
7960       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7961       lt_prog_compiler_static='${wl}-a ${wl}archive'
7962       ;;
7963
7964     irix5* | irix6* | nonstopux*)
7965       lt_prog_compiler_wl='-Wl,'
7966       # PIC (with -KPIC) is the default.
7967       lt_prog_compiler_static='-non_shared'
7968       ;;
7969
7970     newsos6)
7971       lt_prog_compiler_pic='-KPIC'
7972       lt_prog_compiler_static='-Bstatic'
7973       ;;
7974
7975     linux*)
7976       case $cc_basename in
7977       icc* | ecc*)
7978         lt_prog_compiler_wl='-Wl,'
7979         lt_prog_compiler_pic='-KPIC'
7980         lt_prog_compiler_static='-static'
7981         ;;
7982       pgcc* | pgf77* | pgf90* | pgf95*)
7983         # Portland Group compilers (*not* the Pentium gcc compiler,
7984         # which looks to be a dead project)
7985         lt_prog_compiler_wl='-Wl,'
7986         lt_prog_compiler_pic='-fpic'
7987         lt_prog_compiler_static='-Bstatic'
7988         ;;
7989       ccc*)
7990         lt_prog_compiler_wl='-Wl,'
7991         # All Alpha code is PIC.
7992         lt_prog_compiler_static='-non_shared'
7993         ;;
7994       esac
7995       ;;
7996
7997     osf3* | osf4* | osf5*)
7998       lt_prog_compiler_wl='-Wl,'
7999       # All OSF/1 code is PIC.
8000       lt_prog_compiler_static='-non_shared'
8001       ;;
8002
8003     solaris*)
8004       lt_prog_compiler_pic='-KPIC'
8005       lt_prog_compiler_static='-Bstatic'
8006       case $cc_basename in
8007       f77* | f90* | f95*)
8008         lt_prog_compiler_wl='-Qoption ld ';;
8009       *)
8010         lt_prog_compiler_wl='-Wl,';;
8011       esac
8012       ;;
8013
8014     sunos4*)
8015       lt_prog_compiler_wl='-Qoption ld '
8016       lt_prog_compiler_pic='-PIC'
8017       lt_prog_compiler_static='-Bstatic'
8018       ;;
8019
8020     sysv4 | sysv4.2uw2* | sysv4.3*)
8021       lt_prog_compiler_wl='-Wl,'
8022       lt_prog_compiler_pic='-KPIC'
8023       lt_prog_compiler_static='-Bstatic'
8024       ;;
8025
8026     sysv4*MP*)
8027       if test -d /usr/nec ;then
8028         lt_prog_compiler_pic='-Kconform_pic'
8029         lt_prog_compiler_static='-Bstatic'
8030       fi
8031       ;;
8032
8033     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8034       lt_prog_compiler_wl='-Wl,'
8035       lt_prog_compiler_pic='-KPIC'
8036       lt_prog_compiler_static='-Bstatic'
8037       ;;
8038
8039     unicos*)
8040       lt_prog_compiler_wl='-Wl,'
8041       lt_prog_compiler_can_build_shared=no
8042       ;;
8043
8044     uts4*)
8045       lt_prog_compiler_pic='-pic'
8046       lt_prog_compiler_static='-Bstatic'
8047       ;;
8048
8049     *)
8050       lt_prog_compiler_can_build_shared=no
8051       ;;
8052     esac
8053   fi
8054
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8056 $as_echo "$lt_prog_compiler_pic" >&6; }
8057
8058 #
8059 # Check to make sure the PIC flag actually works.
8060 #
8061 if test -n "$lt_prog_compiler_pic"; then
8062
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8064 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8065 if ${lt_prog_compiler_pic_works+:} false; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   lt_prog_compiler_pic_works=no
8069   ac_outfile=conftest.$ac_objext
8070    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8071    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8072    # Insert the option either (1) after the last *FLAGS variable, or
8073    # (2) before a word containing "conftest.", or (3) at the end.
8074    # Note that $ac_compile itself does not contain backslashes and begins
8075    # with a dollar sign (not a hyphen), so the echo should work correctly.
8076    # The option is referenced via a variable to avoid confusing sed.
8077    lt_compile=`echo "$ac_compile" | $SED \
8078    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8080    -e 's:$: $lt_compiler_flag:'`
8081    (eval echo "\"\$as_me:8081: $lt_compile\"" >&5)
8082    (eval "$lt_compile" 2>conftest.err)
8083    ac_status=$?
8084    cat conftest.err >&5
8085    echo "$as_me:8085: \$? = $ac_status" >&5
8086    if (exit $ac_status) && test -s "$ac_outfile"; then
8087      # The compiler can only warn and ignore the option if not recognized
8088      # So say no if there are warnings other than the usual output.
8089      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8090      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8091      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8092        lt_prog_compiler_pic_works=yes
8093      fi
8094    fi
8095    $rm conftest*
8096
8097 fi
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8099 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8100
8101 if test x"$lt_prog_compiler_pic_works" = xyes; then
8102     case $lt_prog_compiler_pic in
8103      "" | " "*) ;;
8104      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8105      esac
8106 else
8107     lt_prog_compiler_pic=
8108      lt_prog_compiler_can_build_shared=no
8109 fi
8110
8111 fi
8112 case $host_os in
8113   # For platforms which do not support PIC, -DPIC is meaningless:
8114   *djgpp*)
8115     lt_prog_compiler_pic=
8116     ;;
8117   *)
8118     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8119     ;;
8120 esac
8121
8122 #
8123 # Check to make sure the static flag actually works.
8124 #
8125 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8127 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8128 if ${lt_prog_compiler_static_works+:} false; then :
8129   $as_echo_n "(cached) " >&6
8130 else
8131   lt_prog_compiler_static_works=no
8132    save_LDFLAGS="$LDFLAGS"
8133    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8134    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8135    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8136      # The linker can only warn and ignore the option if not recognized
8137      # So say no if there are warnings
8138      if test -s conftest.err; then
8139        # Append any errors to the config.log.
8140        cat conftest.err 1>&5
8141        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8142        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8143        if diff conftest.exp conftest.er2 >/dev/null; then
8144          lt_prog_compiler_static_works=yes
8145        fi
8146      else
8147        lt_prog_compiler_static_works=yes
8148      fi
8149    fi
8150    $rm conftest*
8151    LDFLAGS="$save_LDFLAGS"
8152
8153 fi
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8155 $as_echo "$lt_prog_compiler_static_works" >&6; }
8156
8157 if test x"$lt_prog_compiler_static_works" = xyes; then
8158     :
8159 else
8160     lt_prog_compiler_static=
8161 fi
8162
8163
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8165 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8166 if ${lt_cv_prog_compiler_c_o+:} false; then :
8167   $as_echo_n "(cached) " >&6
8168 else
8169   lt_cv_prog_compiler_c_o=no
8170    $rm -r conftest 2>/dev/null
8171    mkdir conftest
8172    cd conftest
8173    mkdir out
8174    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8175
8176    lt_compiler_flag="-o out/conftest2.$ac_objext"
8177    # Insert the option either (1) after the last *FLAGS variable, or
8178    # (2) before a word containing "conftest.", or (3) at the end.
8179    # Note that $ac_compile itself does not contain backslashes and begins
8180    # with a dollar sign (not a hyphen), so the echo should work correctly.
8181    lt_compile=`echo "$ac_compile" | $SED \
8182    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8183    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8184    -e 's:$: $lt_compiler_flag:'`
8185    (eval echo "\"\$as_me:8185: $lt_compile\"" >&5)
8186    (eval "$lt_compile" 2>out/conftest.err)
8187    ac_status=$?
8188    cat out/conftest.err >&5
8189    echo "$as_me:8189: \$? = $ac_status" >&5
8190    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8191    then
8192      # The compiler can only warn and ignore the option if not recognized
8193      # So say no if there are warnings
8194      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8195      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8196      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8197        lt_cv_prog_compiler_c_o=yes
8198      fi
8199    fi
8200    chmod u+w . 2>&5
8201    $rm conftest*
8202    # SGI C++ compiler will create directory out/ii_files/ for
8203    # template instantiation
8204    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8205    $rm out/* && rmdir out
8206    cd ..
8207    rmdir conftest
8208    $rm conftest*
8209
8210 fi
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8212 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8213
8214
8215 hard_links="nottested"
8216 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8217   # do not overwrite the value of need_locks provided by the user
8218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8219 $as_echo_n "checking if we can lock with hard links... " >&6; }
8220   hard_links=yes
8221   $rm conftest*
8222   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8223   touch conftest.a
8224   ln conftest.a conftest.b 2>&5 || hard_links=no
8225   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8227 $as_echo "$hard_links" >&6; }
8228   if test "$hard_links" = no; then
8229     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8230 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8231     need_locks=warn
8232   fi
8233 else
8234   need_locks=no
8235 fi
8236
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8238 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8239
8240   runpath_var=
8241   allow_undefined_flag=
8242   enable_shared_with_static_runtimes=no
8243   archive_cmds=
8244   archive_expsym_cmds=
8245   old_archive_From_new_cmds=
8246   old_archive_from_expsyms_cmds=
8247   export_dynamic_flag_spec=
8248   whole_archive_flag_spec=
8249   thread_safe_flag_spec=
8250   hardcode_libdir_flag_spec=
8251   hardcode_libdir_flag_spec_ld=
8252   hardcode_libdir_separator=
8253   hardcode_direct=no
8254   hardcode_minus_L=no
8255   hardcode_shlibpath_var=unsupported
8256   link_all_deplibs=unknown
8257   hardcode_automatic=no
8258   module_cmds=
8259   module_expsym_cmds=
8260   always_export_symbols=no
8261   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8262   # include_expsyms should be a list of space-separated symbols to be *always*
8263   # included in the symbol list
8264   include_expsyms=
8265   # exclude_expsyms can be an extended regexp of symbols to exclude
8266   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8267   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8268   # as well as any symbol that contains `d'.
8269   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8270   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8271   # platforms (ab)use it in PIC code, but their linkers get confused if
8272   # the symbol is explicitly referenced.  Since portable code cannot
8273   # rely on this symbol name, it's probably fine to never include it in
8274   # preloaded symbol tables.
8275   extract_expsyms_cmds=
8276   # Just being paranoid about ensuring that cc_basename is set.
8277   for cc_temp in $compiler""; do
8278   case $cc_temp in
8279     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8280     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8281     \-*) ;;
8282     *) break;;
8283   esac
8284 done
8285 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8286
8287   case $host_os in
8288   cygwin* | mingw* | pw32*)
8289     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8290     # When not using gcc, we currently assume that we are using
8291     # Microsoft Visual C++.
8292     if test "$GCC" != yes; then
8293       with_gnu_ld=no
8294     fi
8295     ;;
8296   interix*)
8297     # we just hope/assume this is gcc and not c89 (= MSVC++)
8298     with_gnu_ld=yes
8299     ;;
8300   openbsd*)
8301     with_gnu_ld=no
8302     ;;
8303   esac
8304
8305   ld_shlibs=yes
8306   if test "$with_gnu_ld" = yes; then
8307     # If archive_cmds runs LD, not CC, wlarc should be empty
8308     wlarc='${wl}'
8309
8310     # Set some defaults for GNU ld with shared library support. These
8311     # are reset later if shared libraries are not supported. Putting them
8312     # here allows them to be overridden if necessary.
8313     runpath_var=LD_RUN_PATH
8314     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8315     export_dynamic_flag_spec='${wl}--export-dynamic'
8316     # ancient GNU ld didn't support --whole-archive et. al.
8317     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8318         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8319       else
8320         whole_archive_flag_spec=
8321     fi
8322     supports_anon_versioning=no
8323     case `$LD -v 2>/dev/null` in
8324       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8325       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8326       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8327       *\ 2.11.*) ;; # other 2.11 versions
8328       *) supports_anon_versioning=yes ;;
8329     esac
8330
8331     # See if GNU ld supports shared libraries.
8332     case $host_os in
8333     aix3* | aix4* | aix5*)
8334       # On AIX/PPC, the GNU linker is very broken
8335       if test "$host_cpu" != ia64; then
8336         ld_shlibs=no
8337         cat <<EOF 1>&2
8338
8339 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8340 *** to be unable to reliably create shared libraries on AIX.
8341 *** Therefore, libtool is disabling shared libraries support.  If you
8342 *** really care for shared libraries, you may want to modify your PATH
8343 *** so that a non-GNU linker is found, and then restart.
8344
8345 EOF
8346       fi
8347       ;;
8348
8349     amigaos*)
8350       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)'
8351       hardcode_libdir_flag_spec='-L$libdir'
8352       hardcode_minus_L=yes
8353
8354       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8355       # that the semantics of dynamic libraries on AmigaOS, at least up
8356       # to version 4, is to share data among multiple programs linked
8357       # with the same dynamic library.  Since this doesn't match the
8358       # behavior of shared libraries on other platforms, we can't use
8359       # them.
8360       ld_shlibs=no
8361       ;;
8362
8363     beos*)
8364       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8365         allow_undefined_flag=unsupported
8366         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8367         # support --undefined.  This deserves some investigation.  FIXME
8368         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8369       else
8370         ld_shlibs=no
8371       fi
8372       ;;
8373
8374     cygwin* | mingw* | pw32*)
8375       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8376       # as there is no search path for DLLs.
8377       hardcode_libdir_flag_spec='-L$libdir'
8378       allow_undefined_flag=unsupported
8379       always_export_symbols=no
8380       enable_shared_with_static_runtimes=yes
8381       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8382
8383       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8384         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8385         # If the export-symbols file already is a .def file (1st line
8386         # is EXPORTS), use it as is; otherwise, prepend...
8387         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8388           cp $export_symbols $output_objdir/$soname.def;
8389         else
8390           echo EXPORTS > $output_objdir/$soname.def;
8391           cat $export_symbols >> $output_objdir/$soname.def;
8392         fi~
8393         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8394       else
8395         ld_shlibs=no
8396       fi
8397       ;;
8398
8399     interix3*)
8400       hardcode_direct=no
8401       hardcode_shlibpath_var=no
8402       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8403       export_dynamic_flag_spec='${wl}-E'
8404       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8405       # Instead, shared libraries are loaded at an image base (0x10000000 by
8406       # default) and relocated if they conflict, which is a slow very memory
8407       # consuming and fragmenting process.  To avoid this, we pick a random,
8408       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8409       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8410       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8411       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8412       ;;
8413
8414     linux*)
8415       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8416         tmp_addflag=
8417         case $cc_basename,$host_cpu in
8418         pgcc*)                          # Portland Group C compiler
8419           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8420           tmp_addflag=' $pic_flag'
8421           ;;
8422         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8423           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8424           tmp_addflag=' $pic_flag -Mnomain' ;;
8425         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8426           tmp_addflag=' -i_dynamic' ;;
8427         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8428           tmp_addflag=' -i_dynamic -nofor_main' ;;
8429         ifc* | ifort*)                  # Intel Fortran compiler
8430           tmp_addflag=' -nofor_main' ;;
8431         esac
8432         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8433
8434         if test $supports_anon_versioning = yes; then
8435           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8436   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8437   $echo "local: *; };" >> $output_objdir/$libname.ver~
8438           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8439         fi
8440       else
8441         ld_shlibs=no
8442       fi
8443       ;;
8444
8445     netbsd*)
8446       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8447         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8448         wlarc=
8449       else
8450         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8452       fi
8453       ;;
8454
8455     solaris*)
8456       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8457         ld_shlibs=no
8458         cat <<EOF 1>&2
8459
8460 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8461 *** create shared libraries on Solaris systems.  Therefore, libtool
8462 *** is disabling shared libraries support.  We urge you to upgrade GNU
8463 *** binutils to release 2.9.1 or newer.  Another option is to modify
8464 *** your PATH or compiler configuration so that the native linker is
8465 *** used, and then restart.
8466
8467 EOF
8468       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8469         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8470         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8471       else
8472         ld_shlibs=no
8473       fi
8474       ;;
8475
8476     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8477       case `$LD -v 2>&1` in
8478         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8479         ld_shlibs=no
8480         cat <<_LT_EOF 1>&2
8481
8482 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8483 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8484 *** is disabling shared libraries support.  We urge you to upgrade GNU
8485 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8486 *** your PATH or compiler configuration so that the native linker is
8487 *** used, and then restart.
8488
8489 _LT_EOF
8490         ;;
8491         *)
8492           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8493             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8494             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8495             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8496           else
8497             ld_shlibs=no
8498           fi
8499         ;;
8500       esac
8501       ;;
8502
8503     sunos4*)
8504       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8505       wlarc=
8506       hardcode_direct=yes
8507       hardcode_shlibpath_var=no
8508       ;;
8509
8510     *)
8511       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8512         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8514       else
8515         ld_shlibs=no
8516       fi
8517       ;;
8518     esac
8519
8520     if test "$ld_shlibs" = no; then
8521       runpath_var=
8522       hardcode_libdir_flag_spec=
8523       export_dynamic_flag_spec=
8524       whole_archive_flag_spec=
8525     fi
8526   else
8527     # PORTME fill in a description of your system's linker (not GNU ld)
8528     case $host_os in
8529     aix3*)
8530       allow_undefined_flag=unsupported
8531       always_export_symbols=yes
8532       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'
8533       # Note: this linker hardcodes the directories in LIBPATH if there
8534       # are no directories specified by -L.
8535       hardcode_minus_L=yes
8536       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8537         # Neither direct hardcoding nor static linking is supported with a
8538         # broken collect2.
8539         hardcode_direct=unsupported
8540       fi
8541       ;;
8542
8543     aix4* | aix5*)
8544       if test "$host_cpu" = ia64; then
8545         # On IA64, the linker does run time linking by default, so we don't
8546         # have to do anything special.
8547         aix_use_runtimelinking=no
8548         exp_sym_flag='-Bexport'
8549         no_entry_flag=""
8550       else
8551         # If we're using GNU nm, then we don't want the "-C" option.
8552         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8553         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8554           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'
8555         else
8556           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'
8557         fi
8558         aix_use_runtimelinking=no
8559
8560         # Test if we are trying to use run time linking or normal
8561         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8562         # need to do runtime linking.
8563         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8564           for ld_flag in $LDFLAGS; do
8565           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8566             aix_use_runtimelinking=yes
8567             break
8568           fi
8569           done
8570           ;;
8571         esac
8572
8573         exp_sym_flag='-bexport'
8574         no_entry_flag='-bnoentry'
8575       fi
8576
8577       # When large executables or shared objects are built, AIX ld can
8578       # have problems creating the table of contents.  If linking a library
8579       # or program results in "error TOC overflow" add -mminimal-toc to
8580       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8581       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8582
8583       archive_cmds=''
8584       hardcode_direct=yes
8585       hardcode_libdir_separator=':'
8586       link_all_deplibs=yes
8587
8588       if test "$GCC" = yes; then
8589         case $host_os in aix4.[012]|aix4.[012].*)
8590         # We only want to do this on AIX 4.2 and lower, the check
8591         # below for broken collect2 doesn't work under 4.3+
8592           collect2name=`${CC} -print-prog-name=collect2`
8593           if test -f "$collect2name" && \
8594            strings "$collect2name" | grep resolve_lib_name >/dev/null
8595           then
8596           # We have reworked collect2
8597           hardcode_direct=yes
8598           else
8599           # We have old collect2
8600           hardcode_direct=unsupported
8601           # It fails to find uninstalled libraries when the uninstalled
8602           # path is not listed in the libpath.  Setting hardcode_minus_L
8603           # to unsupported forces relinking
8604           hardcode_minus_L=yes
8605           hardcode_libdir_flag_spec='-L$libdir'
8606           hardcode_libdir_separator=
8607           fi
8608           ;;
8609         esac
8610         shared_flag='-shared'
8611         if test "$aix_use_runtimelinking" = yes; then
8612           shared_flag="$shared_flag "'${wl}-G'
8613         fi
8614       else
8615         # not using gcc
8616         if test "$host_cpu" = ia64; then
8617         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8618         # chokes on -Wl,-G. The following line is correct:
8619           shared_flag='-G'
8620         else
8621           if test "$aix_use_runtimelinking" = yes; then
8622             shared_flag='${wl}-G'
8623           else
8624             shared_flag='${wl}-bM:SRE'
8625           fi
8626         fi
8627       fi
8628
8629       # It seems that -bexpall does not export symbols beginning with
8630       # underscore (_), so it is better to generate a list of symbols to export.
8631       always_export_symbols=yes
8632       if test "$aix_use_runtimelinking" = yes; then
8633         # Warning - without using the other runtime loading flags (-brtl),
8634         # -berok will link without error, but may produce a broken library.
8635         allow_undefined_flag='-berok'
8636        # Determine the default libpath from the value encoded in an empty executable.
8637        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h.  */
8639
8640 int
8641 main ()
8642 {
8643
8644   ;
8645   return 0;
8646 }
8647 _ACEOF
8648 if ac_fn_c_try_link "$LINENO"; then :
8649
8650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8651 }'`
8652 # Check for a 64-bit object if we didn't find anything.
8653 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; }
8654 }'`; fi
8655 fi
8656 rm -f core conftest.err conftest.$ac_objext \
8657     conftest$ac_exeext conftest.$ac_ext
8658 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8659
8660        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8661         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8662        else
8663         if test "$host_cpu" = ia64; then
8664           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8665           allow_undefined_flag="-z nodefs"
8666           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8667         else
8668          # Determine the default libpath from the value encoded in an empty executable.
8669          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h.  */
8671
8672 int
8673 main ()
8674 {
8675
8676   ;
8677   return 0;
8678 }
8679 _ACEOF
8680 if ac_fn_c_try_link "$LINENO"; then :
8681
8682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8683 }'`
8684 # Check for a 64-bit object if we didn't find anything.
8685 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; }
8686 }'`; fi
8687 fi
8688 rm -f core conftest.err conftest.$ac_objext \
8689     conftest$ac_exeext conftest.$ac_ext
8690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8691
8692          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8693           # Warning - without using the other run time loading flags,
8694           # -berok will link without error, but may produce a broken library.
8695           no_undefined_flag=' ${wl}-bernotok'
8696           allow_undefined_flag=' ${wl}-berok'
8697           # Exported symbols can be pulled into shared objects from archives
8698           whole_archive_flag_spec='$convenience'
8699           archive_cmds_need_lc=yes
8700           # This is similar to how AIX traditionally builds its shared libraries.
8701           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8702         fi
8703       fi
8704       ;;
8705
8706     amigaos*)
8707       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)'
8708       hardcode_libdir_flag_spec='-L$libdir'
8709       hardcode_minus_L=yes
8710       # see comment about different semantics on the GNU ld section
8711       ld_shlibs=no
8712       ;;
8713
8714     bsdi[45]*)
8715       export_dynamic_flag_spec=-rdynamic
8716       ;;
8717
8718     cygwin* | mingw* | pw32*)
8719       # When not using gcc, we currently assume that we are using
8720       # Microsoft Visual C++.
8721       # hardcode_libdir_flag_spec is actually meaningless, as there is
8722       # no search path for DLLs.
8723       hardcode_libdir_flag_spec=' '
8724       allow_undefined_flag=unsupported
8725       # Tell ltmain to make .lib files, not .a files.
8726       libext=lib
8727       # Tell ltmain to make .dll files, not .so files.
8728       shrext_cmds=".dll"
8729       # FIXME: Setting linknames here is a bad hack.
8730       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8731       # The linker will automatically build a .lib file if we build a DLL.
8732       old_archive_From_new_cmds='true'
8733       # FIXME: Should let the user specify the lib program.
8734       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8735       fix_srcfile_path='`cygpath -w "$srcfile"`'
8736       enable_shared_with_static_runtimes=yes
8737       ;;
8738
8739     darwin* | rhapsody*)
8740       case $host_os in
8741         rhapsody* | darwin1.[012])
8742          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8743          ;;
8744        *) # Darwin 1.3 on
8745          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8746            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8747          else
8748            case ${MACOSX_DEPLOYMENT_TARGET} in
8749              10.[012])
8750                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8751                ;;
8752              10.*)
8753                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8754                ;;
8755            esac
8756          fi
8757          ;;
8758       esac
8759       archive_cmds_need_lc=no
8760       hardcode_direct=no
8761       hardcode_automatic=yes
8762       hardcode_shlibpath_var=unsupported
8763       whole_archive_flag_spec=''
8764       link_all_deplibs=yes
8765     if test "$GCC" = yes ; then
8766         output_verbose_link_cmd='echo'
8767         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8768       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8769       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8770       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}'
8771       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}'
8772     else
8773       case $cc_basename in
8774         xlc*)
8775          output_verbose_link_cmd='echo'
8776          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8777          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8778           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8779          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8780           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}'
8781           ;;
8782        *)
8783          ld_shlibs=no
8784           ;;
8785       esac
8786     fi
8787       ;;
8788
8789     dgux*)
8790       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791       hardcode_libdir_flag_spec='-L$libdir'
8792       hardcode_shlibpath_var=no
8793       ;;
8794
8795     freebsd1*)
8796       ld_shlibs=no
8797       ;;
8798
8799     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8800     # support.  Future versions do this automatically, but an explicit c++rt0.o
8801     # does not break anything, and helps significantly (at the cost of a little
8802     # extra space).
8803     freebsd2.2*)
8804       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8805       hardcode_libdir_flag_spec='-R$libdir'
8806       hardcode_direct=yes
8807       hardcode_shlibpath_var=no
8808       ;;
8809
8810     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8811     freebsd2*)
8812       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8813       hardcode_direct=yes
8814       hardcode_minus_L=yes
8815       hardcode_shlibpath_var=no
8816       ;;
8817
8818     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8819     freebsd* | kfreebsd*-gnu | dragonfly*)
8820       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8821       hardcode_libdir_flag_spec='-R$libdir'
8822       hardcode_direct=yes
8823       hardcode_shlibpath_var=no
8824       ;;
8825
8826     hpux9*)
8827       if test "$GCC" = yes; then
8828         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'
8829       else
8830         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'
8831       fi
8832       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8833       hardcode_libdir_separator=:
8834       hardcode_direct=yes
8835
8836       # hardcode_minus_L: Not really in the search PATH,
8837       # but as the default location of the library.
8838       hardcode_minus_L=yes
8839       export_dynamic_flag_spec='${wl}-E'
8840       ;;
8841
8842     hpux10*)
8843       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8844         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8845       else
8846         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8847       fi
8848       if test "$with_gnu_ld" = no; then
8849         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8850         hardcode_libdir_separator=:
8851
8852         hardcode_direct=yes
8853         export_dynamic_flag_spec='${wl}-E'
8854
8855         # hardcode_minus_L: Not really in the search PATH,
8856         # but as the default location of the library.
8857         hardcode_minus_L=yes
8858       fi
8859       ;;
8860
8861     hpux11*)
8862       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8863         case $host_cpu in
8864         hppa*64*)
8865           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8866           ;;
8867         ia64*)
8868           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8869           ;;
8870         *)
8871           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8872           ;;
8873         esac
8874       else
8875         case $host_cpu in
8876         hppa*64*)
8877           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8878           ;;
8879         ia64*)
8880           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8881           ;;
8882         *)
8883           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8884           ;;
8885         esac
8886       fi
8887       if test "$with_gnu_ld" = no; then
8888         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8889         hardcode_libdir_separator=:
8890
8891         case $host_cpu in
8892         hppa*64*|ia64*)
8893           hardcode_libdir_flag_spec_ld='+b $libdir'
8894           hardcode_direct=no
8895           hardcode_shlibpath_var=no
8896           ;;
8897         *)
8898           hardcode_direct=yes
8899           export_dynamic_flag_spec='${wl}-E'
8900
8901           # hardcode_minus_L: Not really in the search PATH,
8902           # but as the default location of the library.
8903           hardcode_minus_L=yes
8904           ;;
8905         esac
8906       fi
8907       ;;
8908
8909     irix5* | irix6* | nonstopux*)
8910       if test "$GCC" = yes; then
8911         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'
8912       else
8913         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'
8914         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8915       fi
8916       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8917       hardcode_libdir_separator=:
8918       link_all_deplibs=yes
8919       ;;
8920
8921     netbsd*)
8922       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8923         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8924       else
8925         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8926       fi
8927       hardcode_libdir_flag_spec='-R$libdir'
8928       hardcode_direct=yes
8929       hardcode_shlibpath_var=no
8930       ;;
8931
8932     newsos6)
8933       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934       hardcode_direct=yes
8935       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8936       hardcode_libdir_separator=:
8937       hardcode_shlibpath_var=no
8938       ;;
8939
8940     openbsd*)
8941       hardcode_direct=yes
8942       hardcode_shlibpath_var=no
8943       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8944         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8945         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8946         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8947         export_dynamic_flag_spec='${wl}-E'
8948       else
8949        case $host_os in
8950          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8951            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8952            hardcode_libdir_flag_spec='-R$libdir'
8953            ;;
8954          *)
8955            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8956            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8957            ;;
8958        esac
8959       fi
8960       ;;
8961
8962     os2*)
8963       hardcode_libdir_flag_spec='-L$libdir'
8964       hardcode_minus_L=yes
8965       allow_undefined_flag=unsupported
8966       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'
8967       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8968       ;;
8969
8970     osf3*)
8971       if test "$GCC" = yes; then
8972         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8973         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'
8974       else
8975         allow_undefined_flag=' -expect_unresolved \*'
8976         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'
8977       fi
8978       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979       hardcode_libdir_separator=:
8980       ;;
8981
8982     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8983       if test "$GCC" = yes; then
8984         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8985         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'
8986         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8987       else
8988         allow_undefined_flag=' -expect_unresolved \*'
8989         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'
8990         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8991         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8992
8993         # Both c and cxx compiler support -rpath directly
8994         hardcode_libdir_flag_spec='-rpath $libdir'
8995       fi
8996       hardcode_libdir_separator=:
8997       ;;
8998
8999     solaris*)
9000       no_undefined_flag=' -z text'
9001       if test "$GCC" = yes; then
9002         wlarc='${wl}'
9003         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9004         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9005           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9006       else
9007         wlarc=''
9008         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9009         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9010         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9011       fi
9012       hardcode_libdir_flag_spec='-R$libdir'
9013       hardcode_shlibpath_var=no
9014       case $host_os in
9015       solaris2.[0-5] | solaris2.[0-5].*) ;;
9016       *)
9017         # The compiler driver will combine linker options so we
9018         # cannot just pass the convience library names through
9019         # without $wl, iff we do not link with $LD.
9020         # Luckily, gcc supports the same syntax we need for Sun Studio.
9021         # Supported since Solaris 2.6 (maybe 2.5.1?)
9022         case $wlarc in
9023         '')
9024           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9025         *)
9026           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9027         esac ;;
9028       esac
9029       link_all_deplibs=yes
9030       ;;
9031
9032     sunos4*)
9033       if test "x$host_vendor" = xsequent; then
9034         # Use $CC to link under sequent, because it throws in some extra .o
9035         # files that make .init and .fini sections work.
9036         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9037       else
9038         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9039       fi
9040       hardcode_libdir_flag_spec='-L$libdir'
9041       hardcode_direct=yes
9042       hardcode_minus_L=yes
9043       hardcode_shlibpath_var=no
9044       ;;
9045
9046     sysv4)
9047       case $host_vendor in
9048         sni)
9049           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9050           hardcode_direct=yes # is this really true???
9051         ;;
9052         siemens)
9053           ## LD is ld it makes a PLAMLIB
9054           ## CC just makes a GrossModule.
9055           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9056           reload_cmds='$CC -r -o $output$reload_objs'
9057           hardcode_direct=no
9058         ;;
9059         motorola)
9060           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9062         ;;
9063       esac
9064       runpath_var='LD_RUN_PATH'
9065       hardcode_shlibpath_var=no
9066       ;;
9067
9068     sysv4.3*)
9069       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9070       hardcode_shlibpath_var=no
9071       export_dynamic_flag_spec='-Bexport'
9072       ;;
9073
9074     sysv4*MP*)
9075       if test -d /usr/nec; then
9076         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9077         hardcode_shlibpath_var=no
9078         runpath_var=LD_RUN_PATH
9079         hardcode_runpath_var=yes
9080         ld_shlibs=yes
9081       fi
9082       ;;
9083
9084     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9085       no_undefined_flag='${wl}-z,text'
9086       archive_cmds_need_lc=no
9087       hardcode_shlibpath_var=no
9088       runpath_var='LD_RUN_PATH'
9089
9090       if test "$GCC" = yes; then
9091         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9092         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9093       else
9094         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9096       fi
9097       ;;
9098
9099     sysv5* | sco3.2v5* | sco5v6*)
9100       # Note: We can NOT use -z defs as we might desire, because we do not
9101       # link with -lc, and that would cause any symbols used from libc to
9102       # always be unresolved, which means just about no library would
9103       # ever link correctly.  If we're not using GNU ld we use -z text
9104       # though, which does catch some bad symbols but isn't as heavy-handed
9105       # as -z defs.
9106       no_undefined_flag='${wl}-z,text'
9107       allow_undefined_flag='${wl}-z,nodefs'
9108       archive_cmds_need_lc=no
9109       hardcode_shlibpath_var=no
9110       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9111       hardcode_libdir_separator=':'
9112       link_all_deplibs=yes
9113       export_dynamic_flag_spec='${wl}-Bexport'
9114       runpath_var='LD_RUN_PATH'
9115
9116       if test "$GCC" = yes; then
9117         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9118         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9119       else
9120         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9121         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9122       fi
9123       ;;
9124
9125     uts4*)
9126       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127       hardcode_libdir_flag_spec='-L$libdir'
9128       hardcode_shlibpath_var=no
9129       ;;
9130
9131     *)
9132       ld_shlibs=no
9133       ;;
9134     esac
9135   fi
9136
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9138 $as_echo "$ld_shlibs" >&6; }
9139 test "$ld_shlibs" = no && can_build_shared=no
9140
9141 #
9142 # Do we need to explicitly link libc?
9143 #
9144 case "x$archive_cmds_need_lc" in
9145 x|xyes)
9146   # Assume -lc should be added
9147   archive_cmds_need_lc=yes
9148
9149   if test "$enable_shared" = yes && test "$GCC" = yes; then
9150     case $archive_cmds in
9151     *'~'*)
9152       # FIXME: we may have to deal with multi-command sequences.
9153       ;;
9154     '$CC '*)
9155       # Test whether the compiler implicitly links with -lc since on some
9156       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9157       # to ld, don't add -lc before -lgcc.
9158       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9159 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9160       $rm conftest*
9161       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9162
9163       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9164   (eval $ac_compile) 2>&5
9165   ac_status=$?
9166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9167   test $ac_status = 0; } 2>conftest.err; then
9168         soname=conftest
9169         lib=conftest
9170         libobjs=conftest.$ac_objext
9171         deplibs=
9172         wl=$lt_prog_compiler_wl
9173         pic_flag=$lt_prog_compiler_pic
9174         compiler_flags=-v
9175         linker_flags=-v
9176         verstring=
9177         output_objdir=.
9178         libname=conftest
9179         lt_save_allow_undefined_flag=$allow_undefined_flag
9180         allow_undefined_flag=
9181         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9182   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9183   ac_status=$?
9184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9185   test $ac_status = 0; }
9186         then
9187           archive_cmds_need_lc=no
9188         else
9189           archive_cmds_need_lc=yes
9190         fi
9191         allow_undefined_flag=$lt_save_allow_undefined_flag
9192       else
9193         cat conftest.err 1>&5
9194       fi
9195       $rm conftest*
9196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9197 $as_echo "$archive_cmds_need_lc" >&6; }
9198       ;;
9199     esac
9200   fi
9201   ;;
9202 esac
9203
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9205 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9206 library_names_spec=
9207 libname_spec='lib$name'
9208 soname_spec=
9209 shrext_cmds=".so"
9210 postinstall_cmds=
9211 postuninstall_cmds=
9212 finish_cmds=
9213 finish_eval=
9214 shlibpath_var=
9215 shlibpath_overrides_runpath=unknown
9216 version_type=none
9217 dynamic_linker="$host_os ld.so"
9218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9219 if test "$GCC" = yes; then
9220   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9221   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9222     # if the path contains ";" then we assume it to be the separator
9223     # otherwise default to the standard path separator (i.e. ":") - it is
9224     # assumed that no part of a normal pathname contains ";" but that should
9225     # okay in the real world where ";" in dirpaths is itself problematic.
9226     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9227   else
9228     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9229   fi
9230 else
9231   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9232 fi
9233 need_lib_prefix=unknown
9234 hardcode_into_libs=no
9235
9236 # when you set need_version to no, make sure it does not cause -set_version
9237 # flags to be left without arguments
9238 need_version=unknown
9239
9240 case $host_os in
9241 aix3*)
9242   version_type=linux
9243   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9244   shlibpath_var=LIBPATH
9245
9246   # AIX 3 has no versioning support, so we append a major version to the name.
9247   soname_spec='${libname}${release}${shared_ext}$major'
9248   ;;
9249
9250 aix4* | aix5*)
9251   version_type=linux
9252   need_lib_prefix=no
9253   need_version=no
9254   hardcode_into_libs=yes
9255   if test "$host_cpu" = ia64; then
9256     # AIX 5 supports IA64
9257     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9258     shlibpath_var=LD_LIBRARY_PATH
9259   else
9260     # With GCC up to 2.95.x, collect2 would create an import file
9261     # for dependence libraries.  The import file would start with
9262     # the line `#! .'.  This would cause the generated library to
9263     # depend on `.', always an invalid library.  This was fixed in
9264     # development snapshots of GCC prior to 3.0.
9265     case $host_os in
9266       aix4 | aix4.[01] | aix4.[01].*)
9267       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9268            echo ' yes '
9269            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9270         :
9271       else
9272         can_build_shared=no
9273       fi
9274       ;;
9275     esac
9276     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9277     # soname into executable. Probably we can add versioning support to
9278     # collect2, so additional links can be useful in future.
9279     if test "$aix_use_runtimelinking" = yes; then
9280       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9281       # instead of lib<name>.a to let people know that these are not
9282       # typical AIX shared libraries.
9283       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284     else
9285       # We preserve .a as extension for shared libraries through AIX4.2
9286       # and later when we are not doing run time linking.
9287       library_names_spec='${libname}${release}.a $libname.a'
9288       soname_spec='${libname}${release}${shared_ext}$major'
9289     fi
9290     shlibpath_var=LIBPATH
9291   fi
9292   ;;
9293
9294 amigaos*)
9295   library_names_spec='$libname.ixlibrary $libname.a'
9296   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9297   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'
9298   ;;
9299
9300 beos*)
9301   library_names_spec='${libname}${shared_ext}'
9302   dynamic_linker="$host_os ld.so"
9303   shlibpath_var=LIBRARY_PATH
9304   ;;
9305
9306 bsdi[45]*)
9307   version_type=linux
9308   need_version=no
9309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310   soname_spec='${libname}${release}${shared_ext}$major'
9311   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9312   shlibpath_var=LD_LIBRARY_PATH
9313   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9314   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9315   # the default ld.so.conf also contains /usr/contrib/lib and
9316   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9317   # libtool to hard-code these into programs
9318   ;;
9319
9320 cygwin* | mingw* | pw32*)
9321   version_type=windows
9322   shrext_cmds=".dll"
9323   need_version=no
9324   need_lib_prefix=no
9325
9326   case $GCC,$host_os in
9327   yes,cygwin* | yes,mingw* | yes,pw32*)
9328     library_names_spec='$libname.dll.a'
9329     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9330     postinstall_cmds='base_file=`basename \${file}`~
9331       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9332       dldir=$destdir/`dirname \$dlpath`~
9333       test -d \$dldir || mkdir -p \$dldir~
9334       $install_prog $dir/$dlname \$dldir/$dlname~
9335       chmod a+x \$dldir/$dlname'
9336     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9337       dlpath=$dir/\$dldll~
9338        $rm \$dlpath'
9339     shlibpath_overrides_runpath=yes
9340
9341     case $host_os in
9342     cygwin*)
9343       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9344       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9345       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9346       ;;
9347     mingw*)
9348       # MinGW DLLs use traditional 'lib' prefix
9349       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9350       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9351       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9352         # It is most probably a Windows format PATH printed by
9353         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9354         # path with ; separators, and with drive letters. We can handle the
9355         # drive letters (cygwin fileutils understands them), so leave them,
9356         # especially as we might pass files found there to a mingw objdump,
9357         # which wouldn't understand a cygwinified path. Ahh.
9358         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9359       else
9360         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9361       fi
9362       ;;
9363     pw32*)
9364       # pw32 DLLs use 'pw' prefix rather than 'lib'
9365       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9366       ;;
9367     esac
9368     ;;
9369
9370   *)
9371     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9372     ;;
9373   esac
9374   dynamic_linker='Win32 ld.exe'
9375   # FIXME: first we should search . and the directory the executable is in
9376   shlibpath_var=PATH
9377   ;;
9378
9379 darwin* | rhapsody*)
9380   dynamic_linker="$host_os dyld"
9381   version_type=darwin
9382   need_lib_prefix=no
9383   need_version=no
9384   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9385   soname_spec='${libname}${release}${major}$shared_ext'
9386   shlibpath_overrides_runpath=yes
9387   shlibpath_var=DYLD_LIBRARY_PATH
9388   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9389   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9390   if test "$GCC" = yes; then
9391     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"`
9392   else
9393     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9394   fi
9395   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9396   ;;
9397
9398 dgux*)
9399   version_type=linux
9400   need_lib_prefix=no
9401   need_version=no
9402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9403   soname_spec='${libname}${release}${shared_ext}$major'
9404   shlibpath_var=LD_LIBRARY_PATH
9405   ;;
9406
9407 freebsd1*)
9408   dynamic_linker=no
9409   ;;
9410
9411 kfreebsd*-gnu)
9412   version_type=linux
9413   need_lib_prefix=no
9414   need_version=no
9415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9416   soname_spec='${libname}${release}${shared_ext}$major'
9417   shlibpath_var=LD_LIBRARY_PATH
9418   shlibpath_overrides_runpath=no
9419   hardcode_into_libs=yes
9420   dynamic_linker='GNU ld.so'
9421   ;;
9422
9423 freebsd* | dragonfly*)
9424   # DragonFly does not have aout.  When/if they implement a new
9425   # versioning mechanism, adjust this.
9426   if test -x /usr/bin/objformat; then
9427     objformat=`/usr/bin/objformat`
9428   else
9429     case $host_os in
9430     freebsd[123]*) objformat=aout ;;
9431     *) objformat=elf ;;
9432     esac
9433   fi
9434   version_type=freebsd-$objformat
9435   case $version_type in
9436     freebsd-elf*)
9437       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9438       need_version=no
9439       need_lib_prefix=no
9440       ;;
9441     freebsd-*)
9442       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9443       need_version=yes
9444       ;;
9445   esac
9446   shlibpath_var=LD_LIBRARY_PATH
9447   case $host_os in
9448   freebsd2*)
9449     shlibpath_overrides_runpath=yes
9450     ;;
9451   freebsd3.[01]* | freebsdelf3.[01]*)
9452     shlibpath_overrides_runpath=yes
9453     hardcode_into_libs=yes
9454     ;;
9455   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9456   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9457     shlibpath_overrides_runpath=no
9458     hardcode_into_libs=yes
9459     ;;
9460   freebsd*) # from 4.6 on
9461     shlibpath_overrides_runpath=yes
9462     hardcode_into_libs=yes
9463     ;;
9464   esac
9465   ;;
9466
9467 gnu*)
9468   version_type=linux
9469   need_lib_prefix=no
9470   need_version=no
9471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9472   soname_spec='${libname}${release}${shared_ext}$major'
9473   shlibpath_var=LD_LIBRARY_PATH
9474   hardcode_into_libs=yes
9475   ;;
9476
9477 hpux9* | hpux10* | hpux11*)
9478   # Give a soname corresponding to the major version so that dld.sl refuses to
9479   # link against other versions.
9480   version_type=sunos
9481   need_lib_prefix=no
9482   need_version=no
9483   case $host_cpu in
9484   ia64*)
9485     shrext_cmds='.so'
9486     hardcode_into_libs=yes
9487     dynamic_linker="$host_os dld.so"
9488     shlibpath_var=LD_LIBRARY_PATH
9489     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491     soname_spec='${libname}${release}${shared_ext}$major'
9492     if test "X$HPUX_IA64_MODE" = X32; then
9493       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9494     else
9495       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9496     fi
9497     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9498     ;;
9499    hppa*64*)
9500      shrext_cmds='.sl'
9501      hardcode_into_libs=yes
9502      dynamic_linker="$host_os dld.sl"
9503      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9504      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9505      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506      soname_spec='${libname}${release}${shared_ext}$major'
9507      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9508      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9509      ;;
9510    *)
9511     shrext_cmds='.sl'
9512     dynamic_linker="$host_os dld.sl"
9513     shlibpath_var=SHLIB_PATH
9514     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9515     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516     soname_spec='${libname}${release}${shared_ext}$major'
9517     ;;
9518   esac
9519   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9520   postinstall_cmds='chmod 555 $lib'
9521   ;;
9522
9523 interix3*)
9524   version_type=linux
9525   need_lib_prefix=no
9526   need_version=no
9527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9528   soname_spec='${libname}${release}${shared_ext}$major'
9529   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9530   shlibpath_var=LD_LIBRARY_PATH
9531   shlibpath_overrides_runpath=no
9532   hardcode_into_libs=yes
9533   ;;
9534
9535 irix5* | irix6* | nonstopux*)
9536   case $host_os in
9537     nonstopux*) version_type=nonstopux ;;
9538     *)
9539         if test "$lt_cv_prog_gnu_ld" = yes; then
9540                 version_type=linux
9541         else
9542                 version_type=irix
9543         fi ;;
9544   esac
9545   need_lib_prefix=no
9546   need_version=no
9547   soname_spec='${libname}${release}${shared_ext}$major'
9548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9549   case $host_os in
9550   irix5* | nonstopux*)
9551     libsuff= shlibsuff=
9552     ;;
9553   *)
9554     case $LD in # libtool.m4 will add one of these switches to LD
9555     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9556       libsuff= shlibsuff= libmagic=32-bit;;
9557     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9558       libsuff=32 shlibsuff=N32 libmagic=N32;;
9559     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9560       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9561     *) libsuff= shlibsuff= libmagic=never-match;;
9562     esac
9563     ;;
9564   esac
9565   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9566   shlibpath_overrides_runpath=no
9567   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9568   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9569   hardcode_into_libs=yes
9570   ;;
9571
9572 # No shared lib support for Linux oldld, aout, or coff.
9573 linux*oldld* | linux*aout* | linux*coff*)
9574   dynamic_linker=no
9575   ;;
9576
9577 # This must be Linux ELF.
9578 linux*)
9579   version_type=linux
9580   need_lib_prefix=no
9581   need_version=no
9582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583   soname_spec='${libname}${release}${shared_ext}$major'
9584   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9585   shlibpath_var=LD_LIBRARY_PATH
9586   shlibpath_overrides_runpath=no
9587   # This implies no fast_install, which is unacceptable.
9588   # Some rework will be needed to allow for fast_install
9589   # before this can be enabled.
9590   hardcode_into_libs=yes
9591
9592   # Append ld.so.conf contents to the search path
9593   if test -f /etc/ld.so.conf; then
9594     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9595     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9596   fi
9597
9598   # We used to test for /lib/ld.so.1 and disable shared libraries on
9599   # powerpc, because MkLinux only supported shared libraries with the
9600   # GNU dynamic linker.  Since this was broken with cross compilers,
9601   # most powerpc-linux boxes support dynamic linking these days and
9602   # people can always --disable-shared, the test was removed, and we
9603   # assume the GNU/Linux dynamic linker is in use.
9604   dynamic_linker='GNU/Linux ld.so'
9605   ;;
9606
9607 knetbsd*-gnu)
9608   version_type=linux
9609   need_lib_prefix=no
9610   need_version=no
9611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9612   soname_spec='${libname}${release}${shared_ext}$major'
9613   shlibpath_var=LD_LIBRARY_PATH
9614   shlibpath_overrides_runpath=no
9615   hardcode_into_libs=yes
9616   dynamic_linker='GNU ld.so'
9617   ;;
9618
9619 netbsd*)
9620   version_type=sunos
9621   need_lib_prefix=no
9622   need_version=no
9623   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9625     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9626     dynamic_linker='NetBSD (a.out) ld.so'
9627   else
9628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9629     soname_spec='${libname}${release}${shared_ext}$major'
9630     dynamic_linker='NetBSD ld.elf_so'
9631   fi
9632   shlibpath_var=LD_LIBRARY_PATH
9633   shlibpath_overrides_runpath=yes
9634   hardcode_into_libs=yes
9635   ;;
9636
9637 newsos6)
9638   version_type=linux
9639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640   shlibpath_var=LD_LIBRARY_PATH
9641   shlibpath_overrides_runpath=yes
9642   ;;
9643
9644 nto-qnx*)
9645   version_type=linux
9646   need_lib_prefix=no
9647   need_version=no
9648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649   soname_spec='${libname}${release}${shared_ext}$major'
9650   shlibpath_var=LD_LIBRARY_PATH
9651   shlibpath_overrides_runpath=yes
9652   ;;
9653
9654 openbsd*)
9655   version_type=sunos
9656   sys_lib_dlsearch_path_spec="/usr/lib"
9657   need_lib_prefix=no
9658   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9659   case $host_os in
9660     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9661     *)                         need_version=no  ;;
9662   esac
9663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9665   shlibpath_var=LD_LIBRARY_PATH
9666   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9667     case $host_os in
9668       openbsd2.[89] | openbsd2.[89].*)
9669         shlibpath_overrides_runpath=no
9670         ;;
9671       *)
9672         shlibpath_overrides_runpath=yes
9673         ;;
9674       esac
9675   else
9676     shlibpath_overrides_runpath=yes
9677   fi
9678   ;;
9679
9680 os2*)
9681   libname_spec='$name'
9682   shrext_cmds=".dll"
9683   need_lib_prefix=no
9684   library_names_spec='$libname${shared_ext} $libname.a'
9685   dynamic_linker='OS/2 ld.exe'
9686   shlibpath_var=LIBPATH
9687   ;;
9688
9689 osf3* | osf4* | osf5*)
9690   version_type=osf
9691   need_lib_prefix=no
9692   need_version=no
9693   soname_spec='${libname}${release}${shared_ext}$major'
9694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695   shlibpath_var=LD_LIBRARY_PATH
9696   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9697   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9698   ;;
9699
9700 solaris*)
9701   version_type=linux
9702   need_lib_prefix=no
9703   need_version=no
9704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705   soname_spec='${libname}${release}${shared_ext}$major'
9706   shlibpath_var=LD_LIBRARY_PATH
9707   shlibpath_overrides_runpath=yes
9708   hardcode_into_libs=yes
9709   # ldd complains unless libraries are executable
9710   postinstall_cmds='chmod +x $lib'
9711   ;;
9712
9713 sunos4*)
9714   version_type=sunos
9715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9716   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9717   shlibpath_var=LD_LIBRARY_PATH
9718   shlibpath_overrides_runpath=yes
9719   if test "$with_gnu_ld" = yes; then
9720     need_lib_prefix=no
9721   fi
9722   need_version=yes
9723   ;;
9724
9725 sysv4 | sysv4.3*)
9726   version_type=linux
9727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728   soname_spec='${libname}${release}${shared_ext}$major'
9729   shlibpath_var=LD_LIBRARY_PATH
9730   case $host_vendor in
9731     sni)
9732       shlibpath_overrides_runpath=no
9733       need_lib_prefix=no
9734       export_dynamic_flag_spec='${wl}-Blargedynsym'
9735       runpath_var=LD_RUN_PATH
9736       ;;
9737     siemens)
9738       need_lib_prefix=no
9739       ;;
9740     motorola)
9741       need_lib_prefix=no
9742       need_version=no
9743       shlibpath_overrides_runpath=no
9744       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9745       ;;
9746   esac
9747   ;;
9748
9749 sysv4*MP*)
9750   if test -d /usr/nec ;then
9751     version_type=linux
9752     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9753     soname_spec='$libname${shared_ext}.$major'
9754     shlibpath_var=LD_LIBRARY_PATH
9755   fi
9756   ;;
9757
9758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9759   version_type=freebsd-elf
9760   need_lib_prefix=no
9761   need_version=no
9762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9763   soname_spec='${libname}${release}${shared_ext}$major'
9764   shlibpath_var=LD_LIBRARY_PATH
9765   hardcode_into_libs=yes
9766   if test "$with_gnu_ld" = yes; then
9767     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9768     shlibpath_overrides_runpath=no
9769   else
9770     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9771     shlibpath_overrides_runpath=yes
9772     case $host_os in
9773       sco3.2v5*)
9774         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9775         ;;
9776     esac
9777   fi
9778   sys_lib_dlsearch_path_spec='/usr/lib'
9779   ;;
9780
9781 uts4*)
9782   version_type=linux
9783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784   soname_spec='${libname}${release}${shared_ext}$major'
9785   shlibpath_var=LD_LIBRARY_PATH
9786   ;;
9787
9788 *)
9789   dynamic_linker=no
9790   ;;
9791 esac
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9793 $as_echo "$dynamic_linker" >&6; }
9794 test "$dynamic_linker" = no && can_build_shared=no
9795
9796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9797 if test "$GCC" = yes; then
9798   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9799 fi
9800
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9802 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9803 hardcode_action=
9804 if test -n "$hardcode_libdir_flag_spec" || \
9805    test -n "$runpath_var" || \
9806    test "X$hardcode_automatic" = "Xyes" ; then
9807
9808   # We can hardcode non-existant directories.
9809   if test "$hardcode_direct" != no &&
9810      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9811      # have to relink, otherwise we might link with an installed library
9812      # when we should be linking with a yet-to-be-installed one
9813      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9814      test "$hardcode_minus_L" != no; then
9815     # Linking always hardcodes the temporary library directory.
9816     hardcode_action=relink
9817   else
9818     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9819     hardcode_action=immediate
9820   fi
9821 else
9822   # We cannot hardcode anything, or else we can only hardcode existing
9823   # directories.
9824   hardcode_action=unsupported
9825 fi
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9827 $as_echo "$hardcode_action" >&6; }
9828
9829 if test "$hardcode_action" = relink; then
9830   # Fast installation is not supported
9831   enable_fast_install=no
9832 elif test "$shlibpath_overrides_runpath" = yes ||
9833      test "$enable_shared" = no; then
9834   # Fast installation is not necessary
9835   enable_fast_install=needless
9836 fi
9837
9838 striplib=
9839 old_striplib=
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9841 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9842 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9843   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9844   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9846 $as_echo "yes" >&6; }
9847 else
9848 # FIXME - insert some real tests, host_os isn't really good enough
9849   case $host_os in
9850    darwin*)
9851        if test -n "$STRIP" ; then
9852          striplib="$STRIP -x"
9853          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9854 $as_echo "yes" >&6; }
9855        else
9856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9858 fi
9859        ;;
9860    *)
9861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862 $as_echo "no" >&6; }
9863     ;;
9864   esac
9865 fi
9866
9867 if test "x$enable_dlopen" != xyes; then
9868   enable_dlopen=unknown
9869   enable_dlopen_self=unknown
9870   enable_dlopen_self_static=unknown
9871 else
9872   lt_cv_dlopen=no
9873   lt_cv_dlopen_libs=
9874
9875   case $host_os in
9876   beos*)
9877     lt_cv_dlopen="load_add_on"
9878     lt_cv_dlopen_libs=
9879     lt_cv_dlopen_self=yes
9880     ;;
9881
9882   mingw* | pw32*)
9883     lt_cv_dlopen="LoadLibrary"
9884     lt_cv_dlopen_libs=
9885    ;;
9886
9887   cygwin*)
9888     lt_cv_dlopen="dlopen"
9889     lt_cv_dlopen_libs=
9890    ;;
9891
9892   darwin*)
9893   # if libdl is installed we need to link against it
9894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9896 if ${ac_cv_lib_dl_dlopen+:} false; then :
9897   $as_echo_n "(cached) " >&6
9898 else
9899   ac_check_lib_save_LIBS=$LIBS
9900 LIBS="-ldl  $LIBS"
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h.  */
9903
9904 /* Override any GCC internal prototype to avoid an error.
9905    Use char because int might match the return type of a GCC
9906    builtin and then its argument prototype would still apply.  */
9907 #ifdef __cplusplus
9908 extern "C"
9909 #endif
9910 char dlopen ();
9911 int
9912 main ()
9913 {
9914 return dlopen ();
9915   ;
9916   return 0;
9917 }
9918 _ACEOF
9919 if ac_fn_c_try_link "$LINENO"; then :
9920   ac_cv_lib_dl_dlopen=yes
9921 else
9922   ac_cv_lib_dl_dlopen=no
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext \
9925     conftest$ac_exeext conftest.$ac_ext
9926 LIBS=$ac_check_lib_save_LIBS
9927 fi
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9930 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9931   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9932 else
9933
9934     lt_cv_dlopen="dyld"
9935     lt_cv_dlopen_libs=
9936     lt_cv_dlopen_self=yes
9937
9938 fi
9939
9940    ;;
9941
9942   *)
9943     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9944 if test "x$ac_cv_func_shl_load" = xyes; then :
9945   lt_cv_dlopen="shl_load"
9946 else
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9948 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9949 if ${ac_cv_lib_dld_shl_load+:} false; then :
9950   $as_echo_n "(cached) " >&6
9951 else
9952   ac_check_lib_save_LIBS=$LIBS
9953 LIBS="-ldld  $LIBS"
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h.  */
9956
9957 /* Override any GCC internal prototype to avoid an error.
9958    Use char because int might match the return type of a GCC
9959    builtin and then its argument prototype would still apply.  */
9960 #ifdef __cplusplus
9961 extern "C"
9962 #endif
9963 char shl_load ();
9964 int
9965 main ()
9966 {
9967 return shl_load ();
9968   ;
9969   return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"; then :
9973   ac_cv_lib_dld_shl_load=yes
9974 else
9975   ac_cv_lib_dld_shl_load=no
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext \
9978     conftest$ac_exeext conftest.$ac_ext
9979 LIBS=$ac_check_lib_save_LIBS
9980 fi
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9982 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9983 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9984   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9985 else
9986   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9987 if test "x$ac_cv_func_dlopen" = xyes; then :
9988   lt_cv_dlopen="dlopen"
9989 else
9990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9991 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9992 if ${ac_cv_lib_dl_dlopen+:} false; then :
9993   $as_echo_n "(cached) " >&6
9994 else
9995   ac_check_lib_save_LIBS=$LIBS
9996 LIBS="-ldl  $LIBS"
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h.  */
9999
10000 /* Override any GCC internal prototype to avoid an error.
10001    Use char because int might match the return type of a GCC
10002    builtin and then its argument prototype would still apply.  */
10003 #ifdef __cplusplus
10004 extern "C"
10005 #endif
10006 char dlopen ();
10007 int
10008 main ()
10009 {
10010 return dlopen ();
10011   ;
10012   return 0;
10013 }
10014 _ACEOF
10015 if ac_fn_c_try_link "$LINENO"; then :
10016   ac_cv_lib_dl_dlopen=yes
10017 else
10018   ac_cv_lib_dl_dlopen=no
10019 fi
10020 rm -f core conftest.err conftest.$ac_objext \
10021     conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10023 fi
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10025 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10026 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10027   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10028 else
10029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10030 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10031 if ${ac_cv_lib_svld_dlopen+:} false; then :
10032   $as_echo_n "(cached) " >&6
10033 else
10034   ac_check_lib_save_LIBS=$LIBS
10035 LIBS="-lsvld  $LIBS"
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h.  */
10038
10039 /* Override any GCC internal prototype to avoid an error.
10040    Use char because int might match the return type of a GCC
10041    builtin and then its argument prototype would still apply.  */
10042 #ifdef __cplusplus
10043 extern "C"
10044 #endif
10045 char dlopen ();
10046 int
10047 main ()
10048 {
10049 return dlopen ();
10050   ;
10051   return 0;
10052 }
10053 _ACEOF
10054 if ac_fn_c_try_link "$LINENO"; then :
10055   ac_cv_lib_svld_dlopen=yes
10056 else
10057   ac_cv_lib_svld_dlopen=no
10058 fi
10059 rm -f core conftest.err conftest.$ac_objext \
10060     conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10062 fi
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10064 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10065 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10066   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10067 else
10068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10069 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10070 if ${ac_cv_lib_dld_dld_link+:} false; then :
10071   $as_echo_n "(cached) " >&6
10072 else
10073   ac_check_lib_save_LIBS=$LIBS
10074 LIBS="-ldld  $LIBS"
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h.  */
10077
10078 /* Override any GCC internal prototype to avoid an error.
10079    Use char because int might match the return type of a GCC
10080    builtin and then its argument prototype would still apply.  */
10081 #ifdef __cplusplus
10082 extern "C"
10083 #endif
10084 char dld_link ();
10085 int
10086 main ()
10087 {
10088 return dld_link ();
10089   ;
10090   return 0;
10091 }
10092 _ACEOF
10093 if ac_fn_c_try_link "$LINENO"; then :
10094   ac_cv_lib_dld_dld_link=yes
10095 else
10096   ac_cv_lib_dld_dld_link=no
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext \
10099     conftest$ac_exeext conftest.$ac_ext
10100 LIBS=$ac_check_lib_save_LIBS
10101 fi
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10103 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10104 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10105   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10106 fi
10107
10108
10109 fi
10110
10111
10112 fi
10113
10114
10115 fi
10116
10117
10118 fi
10119
10120
10121 fi
10122
10123     ;;
10124   esac
10125
10126   if test "x$lt_cv_dlopen" != xno; then
10127     enable_dlopen=yes
10128   else
10129     enable_dlopen=no
10130   fi
10131
10132   case $lt_cv_dlopen in
10133   dlopen)
10134     save_CPPFLAGS="$CPPFLAGS"
10135     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10136
10137     save_LDFLAGS="$LDFLAGS"
10138     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10139
10140     save_LIBS="$LIBS"
10141     LIBS="$lt_cv_dlopen_libs $LIBS"
10142
10143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10144 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10145 if ${lt_cv_dlopen_self+:} false; then :
10146   $as_echo_n "(cached) " >&6
10147 else
10148           if test "$cross_compiling" = yes; then :
10149   lt_cv_dlopen_self=cross
10150 else
10151   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10152   lt_status=$lt_dlunknown
10153   cat > conftest.$ac_ext <<EOF
10154 #line 10154 "configure"
10155 #include "confdefs.h"
10156
10157 #if HAVE_DLFCN_H
10158 #include <dlfcn.h>
10159 #endif
10160
10161 #include <stdio.h>
10162
10163 #ifdef RTLD_GLOBAL
10164 #  define LT_DLGLOBAL           RTLD_GLOBAL
10165 #else
10166 #  ifdef DL_GLOBAL
10167 #    define LT_DLGLOBAL         DL_GLOBAL
10168 #  else
10169 #    define LT_DLGLOBAL         0
10170 #  endif
10171 #endif
10172
10173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10174    find out it does not work in some platform. */
10175 #ifndef LT_DLLAZY_OR_NOW
10176 #  ifdef RTLD_LAZY
10177 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10178 #  else
10179 #    ifdef DL_LAZY
10180 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10181 #    else
10182 #      ifdef RTLD_NOW
10183 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10184 #      else
10185 #        ifdef DL_NOW
10186 #          define LT_DLLAZY_OR_NOW      DL_NOW
10187 #        else
10188 #          define LT_DLLAZY_OR_NOW      0
10189 #        endif
10190 #      endif
10191 #    endif
10192 #  endif
10193 #endif
10194
10195 #ifdef __cplusplus
10196 extern "C" void exit (int);
10197 #endif
10198
10199 void fnord() { int i=42;}
10200 int main ()
10201 {
10202   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10203   int status = $lt_dlunknown;
10204
10205   if (self)
10206     {
10207       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10208       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10209       /* dlclose (self); */
10210     }
10211   else
10212     puts (dlerror ());
10213
10214     exit (status);
10215 }
10216 EOF
10217   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10218   (eval $ac_link) 2>&5
10219   ac_status=$?
10220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10221   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10222     (./conftest; exit; ) >&5 2>/dev/null
10223     lt_status=$?
10224     case x$lt_status in
10225       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10226       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10227       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10228     esac
10229   else :
10230     # compilation failed
10231     lt_cv_dlopen_self=no
10232   fi
10233 fi
10234 rm -fr conftest*
10235
10236
10237 fi
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10239 $as_echo "$lt_cv_dlopen_self" >&6; }
10240
10241     if test "x$lt_cv_dlopen_self" = xyes; then
10242       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10243       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10244 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10245 if ${lt_cv_dlopen_self_static+:} false; then :
10246   $as_echo_n "(cached) " >&6
10247 else
10248           if test "$cross_compiling" = yes; then :
10249   lt_cv_dlopen_self_static=cross
10250 else
10251   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10252   lt_status=$lt_dlunknown
10253   cat > conftest.$ac_ext <<EOF
10254 #line 10254 "configure"
10255 #include "confdefs.h"
10256
10257 #if HAVE_DLFCN_H
10258 #include <dlfcn.h>
10259 #endif
10260
10261 #include <stdio.h>
10262
10263 #ifdef RTLD_GLOBAL
10264 #  define LT_DLGLOBAL           RTLD_GLOBAL
10265 #else
10266 #  ifdef DL_GLOBAL
10267 #    define LT_DLGLOBAL         DL_GLOBAL
10268 #  else
10269 #    define LT_DLGLOBAL         0
10270 #  endif
10271 #endif
10272
10273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10274    find out it does not work in some platform. */
10275 #ifndef LT_DLLAZY_OR_NOW
10276 #  ifdef RTLD_LAZY
10277 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10278 #  else
10279 #    ifdef DL_LAZY
10280 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10281 #    else
10282 #      ifdef RTLD_NOW
10283 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10284 #      else
10285 #        ifdef DL_NOW
10286 #          define LT_DLLAZY_OR_NOW      DL_NOW
10287 #        else
10288 #          define LT_DLLAZY_OR_NOW      0
10289 #        endif
10290 #      endif
10291 #    endif
10292 #  endif
10293 #endif
10294
10295 #ifdef __cplusplus
10296 extern "C" void exit (int);
10297 #endif
10298
10299 void fnord() { int i=42;}
10300 int main ()
10301 {
10302   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10303   int status = $lt_dlunknown;
10304
10305   if (self)
10306     {
10307       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10308       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10309       /* dlclose (self); */
10310     }
10311   else
10312     puts (dlerror ());
10313
10314     exit (status);
10315 }
10316 EOF
10317   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10318   (eval $ac_link) 2>&5
10319   ac_status=$?
10320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10321   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10322     (./conftest; exit; ) >&5 2>/dev/null
10323     lt_status=$?
10324     case x$lt_status in
10325       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10326       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10327       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10328     esac
10329   else :
10330     # compilation failed
10331     lt_cv_dlopen_self_static=no
10332   fi
10333 fi
10334 rm -fr conftest*
10335
10336
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10339 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10340     fi
10341
10342     CPPFLAGS="$save_CPPFLAGS"
10343     LDFLAGS="$save_LDFLAGS"
10344     LIBS="$save_LIBS"
10345     ;;
10346   esac
10347
10348   case $lt_cv_dlopen_self in
10349   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10350   *) enable_dlopen_self=unknown ;;
10351   esac
10352
10353   case $lt_cv_dlopen_self_static in
10354   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10355   *) enable_dlopen_self_static=unknown ;;
10356   esac
10357 fi
10358
10359
10360 # Report which library types will actually be built
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10362 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10364 $as_echo "$can_build_shared" >&6; }
10365
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10367 $as_echo_n "checking whether to build shared libraries... " >&6; }
10368 test "$can_build_shared" = "no" && enable_shared=no
10369
10370 # On AIX, shared libraries and static libraries use the same namespace, and
10371 # are all built from PIC.
10372 case $host_os in
10373 aix3*)
10374   test "$enable_shared" = yes && enable_static=no
10375   if test -n "$RANLIB"; then
10376     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10377     postinstall_cmds='$RANLIB $lib'
10378   fi
10379   ;;
10380
10381 aix4* | aix5*)
10382   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10383     test "$enable_shared" = yes && enable_static=no
10384   fi
10385     ;;
10386 esac
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10388 $as_echo "$enable_shared" >&6; }
10389
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10391 $as_echo_n "checking whether to build static libraries... " >&6; }
10392 # Make sure either enable_shared or enable_static is yes.
10393 test "$enable_shared" = yes || enable_static=yes
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10395 $as_echo "$enable_static" >&6; }
10396
10397 # The else clause should only fire when bootstrapping the
10398 # libtool distribution, otherwise you forgot to ship ltmain.sh
10399 # with your package, and you will get complaints that there are
10400 # no rules to generate ltmain.sh.
10401 if test -f "$ltmain"; then
10402   # See if we are running on zsh, and set the options which allow our commands through
10403   # without removal of \ escapes.
10404   if test -n "${ZSH_VERSION+set}" ; then
10405     setopt NO_GLOB_SUBST
10406   fi
10407   # Now quote all the things that may contain metacharacters while being
10408   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10409   # variables and quote the copies for generation of the libtool script.
10410   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10411     SED SHELL STRIP \
10412     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10413     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10414     deplibs_check_method reload_flag reload_cmds need_locks \
10415     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10416     lt_cv_sys_global_symbol_to_c_name_address \
10417     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10418     old_postinstall_cmds old_postuninstall_cmds \
10419     compiler \
10420     CC \
10421     LD \
10422     lt_prog_compiler_wl \
10423     lt_prog_compiler_pic \
10424     lt_prog_compiler_static \
10425     lt_prog_compiler_no_builtin_flag \
10426     export_dynamic_flag_spec \
10427     thread_safe_flag_spec \
10428     whole_archive_flag_spec \
10429     enable_shared_with_static_runtimes \
10430     old_archive_cmds \
10431     old_archive_from_new_cmds \
10432     predep_objects \
10433     postdep_objects \
10434     predeps \
10435     postdeps \
10436     compiler_lib_search_path \
10437     archive_cmds \
10438     archive_expsym_cmds \
10439     postinstall_cmds \
10440     postuninstall_cmds \
10441     old_archive_from_expsyms_cmds \
10442     allow_undefined_flag \
10443     no_undefined_flag \
10444     export_symbols_cmds \
10445     hardcode_libdir_flag_spec \
10446     hardcode_libdir_flag_spec_ld \
10447     hardcode_libdir_separator \
10448     hardcode_automatic \
10449     module_cmds \
10450     module_expsym_cmds \
10451     lt_cv_prog_compiler_c_o \
10452     exclude_expsyms \
10453     include_expsyms; do
10454
10455     case $var in
10456     old_archive_cmds | \
10457     old_archive_from_new_cmds | \
10458     archive_cmds | \
10459     archive_expsym_cmds | \
10460     module_cmds | \
10461     module_expsym_cmds | \
10462     old_archive_from_expsyms_cmds | \
10463     export_symbols_cmds | \
10464     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10465     postinstall_cmds | postuninstall_cmds | \
10466     old_postinstall_cmds | old_postuninstall_cmds | \
10467     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10468       # Double-quote double-evaled strings.
10469       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10470       ;;
10471     *)
10472       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10473       ;;
10474     esac
10475   done
10476
10477   case $lt_echo in
10478   *'\$0 --fallback-echo"')
10479     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10480     ;;
10481   esac
10482
10483 cfgfile="${ofile}T"
10484   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10485   $rm -f "$cfgfile"
10486   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10487 $as_echo "$as_me: creating $ofile" >&6;}
10488
10489   cat <<__EOF__ >> "$cfgfile"
10490 #! $SHELL
10491
10492 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10493 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10494 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10495 #
10496 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10497 # Free Software Foundation, Inc.
10498 #
10499 # This file is part of GNU Libtool:
10500 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10501 #
10502 # This program is free software; you can redistribute it and/or modify
10503 # it under the terms of the GNU General Public License as published by
10504 # the Free Software Foundation; either version 2 of the License, or
10505 # (at your option) any later version.
10506 #
10507 # This program is distributed in the hope that it will be useful, but
10508 # WITHOUT ANY WARRANTY; without even the implied warranty of
10509 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10510 # General Public License for more details.
10511 #
10512 # You should have received a copy of the GNU General Public License
10513 # along with this program; if not, write to the Free Software
10514 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10515 #
10516 # As a special exception to the GNU General Public License, if you
10517 # distribute this file as part of a program that contains a
10518 # configuration script generated by Autoconf, you may include it under
10519 # the same distribution terms that you use for the rest of that program.
10520
10521 # A sed program that does not truncate output.
10522 SED=$lt_SED
10523
10524 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10525 Xsed="$SED -e 1s/^X//"
10526
10527 # The HP-UX ksh and POSIX shell print the target directory to stdout
10528 # if CDPATH is set.
10529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10530
10531 # The names of the tagged configurations supported by this script.
10532 available_tags=
10533
10534 # ### BEGIN LIBTOOL CONFIG
10535
10536 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10537
10538 # Shell to use when invoking shell scripts.
10539 SHELL=$lt_SHELL
10540
10541 # Whether or not to build shared libraries.
10542 build_libtool_libs=$enable_shared
10543
10544 # Whether or not to build static libraries.
10545 build_old_libs=$enable_static
10546
10547 # Whether or not to add -lc for building shared libraries.
10548 build_libtool_need_lc=$archive_cmds_need_lc
10549
10550 # Whether or not to disallow shared libs when runtime libs are static
10551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10552
10553 # Whether or not to optimize for fast installation.
10554 fast_install=$enable_fast_install
10555
10556 # The host system.
10557 host_alias=$host_alias
10558 host=$host
10559 host_os=$host_os
10560
10561 # The build system.
10562 build_alias=$build_alias
10563 build=$build
10564 build_os=$build_os
10565
10566 # An echo program that does not interpret backslashes.
10567 echo=$lt_echo
10568
10569 # The archiver.
10570 AR=$lt_AR
10571 AR_FLAGS=$lt_AR_FLAGS
10572
10573 # A C compiler.
10574 LTCC=$lt_LTCC
10575
10576 # LTCC compiler flags.
10577 LTCFLAGS=$lt_LTCFLAGS
10578
10579 # A language-specific compiler.
10580 CC=$lt_compiler
10581
10582 # Is the compiler the GNU C compiler?
10583 with_gcc=$GCC
10584
10585 # An ERE matcher.
10586 EGREP=$lt_EGREP
10587
10588 # The linker used to build libraries.
10589 LD=$lt_LD
10590
10591 # Whether we need hard or soft links.
10592 LN_S=$lt_LN_S
10593
10594 # A BSD-compatible nm program.
10595 NM=$lt_NM
10596
10597 # A symbol stripping program
10598 STRIP=$lt_STRIP
10599
10600 # Used to examine libraries when file_magic_cmd begins "file"
10601 MAGIC_CMD=$MAGIC_CMD
10602
10603 # Used on cygwin: DLL creation program.
10604 DLLTOOL="$DLLTOOL"
10605
10606 # Used on cygwin: object dumper.
10607 OBJDUMP="$OBJDUMP"
10608
10609 # Used on cygwin: assembler.
10610 AS="$AS"
10611
10612 # The name of the directory that contains temporary libtool files.
10613 objdir=$objdir
10614
10615 # How to create reloadable object files.
10616 reload_flag=$lt_reload_flag
10617 reload_cmds=$lt_reload_cmds
10618
10619 # How to pass a linker flag through the compiler.
10620 wl=$lt_lt_prog_compiler_wl
10621
10622 # Object file suffix (normally "o").
10623 objext="$ac_objext"
10624
10625 # Old archive suffix (normally "a").
10626 libext="$libext"
10627
10628 # Shared library suffix (normally ".so").
10629 shrext_cmds='$shrext_cmds'
10630
10631 # Executable file suffix (normally "").
10632 exeext="$exeext"
10633
10634 # Additional compiler flags for building library objects.
10635 pic_flag=$lt_lt_prog_compiler_pic
10636 pic_mode=$pic_mode
10637
10638 # What is the maximum length of a command?
10639 max_cmd_len=$lt_cv_sys_max_cmd_len
10640
10641 # Does compiler simultaneously support -c and -o options?
10642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10643
10644 # Must we lock files when doing compilation?
10645 need_locks=$lt_need_locks
10646
10647 # Do we need the lib prefix for modules?
10648 need_lib_prefix=$need_lib_prefix
10649
10650 # Do we need a version for libraries?
10651 need_version=$need_version
10652
10653 # Whether dlopen is supported.
10654 dlopen_support=$enable_dlopen
10655
10656 # Whether dlopen of programs is supported.
10657 dlopen_self=$enable_dlopen_self
10658
10659 # Whether dlopen of statically linked programs is supported.
10660 dlopen_self_static=$enable_dlopen_self_static
10661
10662 # Compiler flag to prevent dynamic linking.
10663 link_static_flag=$lt_lt_prog_compiler_static
10664
10665 # Compiler flag to turn off builtin functions.
10666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10667
10668 # Compiler flag to allow reflexive dlopens.
10669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10670
10671 # Compiler flag to generate shared objects directly from archives.
10672 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10673
10674 # Compiler flag to generate thread-safe objects.
10675 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10676
10677 # Library versioning type.
10678 version_type=$version_type
10679
10680 # Format of library name prefix.
10681 libname_spec=$lt_libname_spec
10682
10683 # List of archive names.  First name is the real one, the rest are links.
10684 # The last name is the one that the linker finds with -lNAME.
10685 library_names_spec=$lt_library_names_spec
10686
10687 # The coded name of the library, if different from the real name.
10688 soname_spec=$lt_soname_spec
10689
10690 # Commands used to build and install an old-style archive.
10691 RANLIB=$lt_RANLIB
10692 old_archive_cmds=$lt_old_archive_cmds
10693 old_postinstall_cmds=$lt_old_postinstall_cmds
10694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10695
10696 # Create an old-style archive from a shared archive.
10697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10698
10699 # Create a temporary old-style archive to link instead of a shared archive.
10700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10701
10702 # Commands used to build and install a shared archive.
10703 archive_cmds=$lt_archive_cmds
10704 archive_expsym_cmds=$lt_archive_expsym_cmds
10705 postinstall_cmds=$lt_postinstall_cmds
10706 postuninstall_cmds=$lt_postuninstall_cmds
10707
10708 # Commands used to build a loadable module (assumed same as above if empty)
10709 module_cmds=$lt_module_cmds
10710 module_expsym_cmds=$lt_module_expsym_cmds
10711
10712 # Commands to strip libraries.
10713 old_striplib=$lt_old_striplib
10714 striplib=$lt_striplib
10715
10716 # Dependencies to place before the objects being linked to create a
10717 # shared library.
10718 predep_objects=$lt_predep_objects
10719
10720 # Dependencies to place after the objects being linked to create a
10721 # shared library.
10722 postdep_objects=$lt_postdep_objects
10723
10724 # Dependencies to place before the objects being linked to create a
10725 # shared library.
10726 predeps=$lt_predeps
10727
10728 # Dependencies to place after the objects being linked to create a
10729 # shared library.
10730 postdeps=$lt_postdeps
10731
10732 # The library search path used internally by the compiler when linking
10733 # a shared library.
10734 compiler_lib_search_path=$lt_compiler_lib_search_path
10735
10736 # Method to check whether dependent libraries are shared objects.
10737 deplibs_check_method=$lt_deplibs_check_method
10738
10739 # Command to use when deplibs_check_method == file_magic.
10740 file_magic_cmd=$lt_file_magic_cmd
10741
10742 # Flag that allows shared libraries with undefined symbols to be built.
10743 allow_undefined_flag=$lt_allow_undefined_flag
10744
10745 # Flag that forces no undefined symbols.
10746 no_undefined_flag=$lt_no_undefined_flag
10747
10748 # Commands used to finish a libtool library installation in a directory.
10749 finish_cmds=$lt_finish_cmds
10750
10751 # Same as above, but a single script fragment to be evaled but not shown.
10752 finish_eval=$lt_finish_eval
10753
10754 # Take the output of nm and produce a listing of raw symbols and C names.
10755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10756
10757 # Transform the output of nm in a proper C declaration
10758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10759
10760 # Transform the output of nm in a C name address pair
10761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10762
10763 # This is the shared library runtime path variable.
10764 runpath_var=$runpath_var
10765
10766 # This is the shared library path variable.
10767 shlibpath_var=$shlibpath_var
10768
10769 # Is shlibpath searched before the hard-coded library search path?
10770 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10771
10772 # How to hardcode a shared library path into an executable.
10773 hardcode_action=$hardcode_action
10774
10775 # Whether we should hardcode library paths into libraries.
10776 hardcode_into_libs=$hardcode_into_libs
10777
10778 # Flag to hardcode \$libdir into a binary during linking.
10779 # This must work even if \$libdir does not exist.
10780 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10781
10782 # If ld is used when linking, flag to hardcode \$libdir into
10783 # a binary during linking. This must work even if \$libdir does
10784 # not exist.
10785 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10786
10787 # Whether we need a single -rpath flag with a separated argument.
10788 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10789
10790 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10791 # resulting binary.
10792 hardcode_direct=$hardcode_direct
10793
10794 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10795 # resulting binary.
10796 hardcode_minus_L=$hardcode_minus_L
10797
10798 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10799 # the resulting binary.
10800 hardcode_shlibpath_var=$hardcode_shlibpath_var
10801
10802 # Set to yes if building a shared library automatically hardcodes DIR into the library
10803 # and all subsequent libraries and executables linked against it.
10804 hardcode_automatic=$hardcode_automatic
10805
10806 # Variables whose values should be saved in libtool wrapper scripts and
10807 # restored at relink time.
10808 variables_saved_for_relink="$variables_saved_for_relink"
10809
10810 # Whether libtool must link a program against all its dependency libraries.
10811 link_all_deplibs=$link_all_deplibs
10812
10813 # Compile-time system search path for libraries
10814 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10815
10816 # Run-time system search path for libraries
10817 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10818
10819 # Fix the shell variable \$srcfile for the compiler.
10820 fix_srcfile_path="$fix_srcfile_path"
10821
10822 # Set to yes if exported symbols are required.
10823 always_export_symbols=$always_export_symbols
10824
10825 # The commands to list exported symbols.
10826 export_symbols_cmds=$lt_export_symbols_cmds
10827
10828 # The commands to extract the exported symbol list from a shared archive.
10829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10830
10831 # Symbols that should not be listed in the preloaded symbols.
10832 exclude_expsyms=$lt_exclude_expsyms
10833
10834 # Symbols that must always be exported.
10835 include_expsyms=$lt_include_expsyms
10836
10837 # ### END LIBTOOL CONFIG
10838
10839 __EOF__
10840
10841
10842   case $host_os in
10843   aix3*)
10844     cat <<\EOF >> "$cfgfile"
10845
10846 # AIX sometimes has problems with the GCC collect2 program.  For some
10847 # reason, if we set the COLLECT_NAMES environment variable, the problems
10848 # vanish in a puff of smoke.
10849 if test "X${COLLECT_NAMES+set}" != Xset; then
10850   COLLECT_NAMES=
10851   export COLLECT_NAMES
10852 fi
10853 EOF
10854     ;;
10855   esac
10856
10857   # We use sed instead of cat because bash on DJGPP gets confused if
10858   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10859   # text mode, it properly converts lines to CR/LF.  This bash problem
10860   # is reportedly fixed, but why not run on old versions too?
10861   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10862
10863   mv -f "$cfgfile" "$ofile" || \
10864     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10865   chmod +x "$ofile"
10866
10867 else
10868   # If there is no Makefile yet, we rely on a make rule to execute
10869   # `config.status --recheck' to rerun these tests and create the
10870   # libtool script then.
10871   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10872   if test -f "$ltmain_in"; then
10873     test -f Makefile && make "$ltmain"
10874   fi
10875 fi
10876
10877
10878 ac_ext=c
10879 ac_cpp='$CPP $CPPFLAGS'
10880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10883
10884 CC="$lt_save_CC"
10885
10886
10887 # Check whether --with-tags was given.
10888 if test "${with_tags+set}" = set; then :
10889   withval=$with_tags; tagnames="$withval"
10890 fi
10891
10892
10893 if test -f "$ltmain" && test -n "$tagnames"; then
10894   if test ! -f "${ofile}"; then
10895     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10896 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10897   fi
10898
10899   if test -z "$LTCC"; then
10900     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10901     if test -z "$LTCC"; then
10902       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10903 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10904     else
10905       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10906 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10907     fi
10908   fi
10909   if test -z "$LTCFLAGS"; then
10910     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10911   fi
10912
10913   # Extract list of available tagged configurations in $ofile.
10914   # Note that this assumes the entire list is on one line.
10915   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10916
10917   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10918   for tagname in $tagnames; do
10919     IFS="$lt_save_ifs"
10920     # Check whether tagname contains only valid characters
10921     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10922     "") ;;
10923     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10924         ;;
10925     esac
10926
10927     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10928     then
10929       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10930     fi
10931
10932     # Update the list of available tags.
10933     if test -n "$tagname"; then
10934       echo appending configuration tag \"$tagname\" to $ofile
10935
10936       case $tagname in
10937       CXX)
10938         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10939             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10940             (test "X$CXX" != "Xg++"))) ; then
10941           ac_ext=cpp
10942 ac_cpp='$CXXCPP $CPPFLAGS'
10943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10946
10947
10948
10949
10950 archive_cmds_need_lc_CXX=no
10951 allow_undefined_flag_CXX=
10952 always_export_symbols_CXX=no
10953 archive_expsym_cmds_CXX=
10954 export_dynamic_flag_spec_CXX=
10955 hardcode_direct_CXX=no
10956 hardcode_libdir_flag_spec_CXX=
10957 hardcode_libdir_flag_spec_ld_CXX=
10958 hardcode_libdir_separator_CXX=
10959 hardcode_minus_L_CXX=no
10960 hardcode_shlibpath_var_CXX=unsupported
10961 hardcode_automatic_CXX=no
10962 module_cmds_CXX=
10963 module_expsym_cmds_CXX=
10964 link_all_deplibs_CXX=unknown
10965 old_archive_cmds_CXX=$old_archive_cmds
10966 no_undefined_flag_CXX=
10967 whole_archive_flag_spec_CXX=
10968 enable_shared_with_static_runtimes_CXX=no
10969
10970 # Dependencies to place before and after the object being linked:
10971 predep_objects_CXX=
10972 postdep_objects_CXX=
10973 predeps_CXX=
10974 postdeps_CXX=
10975 compiler_lib_search_path_CXX=
10976
10977 # Source file extension for C++ test sources.
10978 ac_ext=cpp
10979
10980 # Object file extension for compiled C++ test sources.
10981 objext=o
10982 objext_CXX=$objext
10983
10984 # Code to be used in simple compile tests
10985 lt_simple_compile_test_code="int some_variable = 0;\n"
10986
10987 # Code to be used in simple link tests
10988 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10989
10990 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10991
10992 # If no C compiler was specified, use CC.
10993 LTCC=${LTCC-"$CC"}
10994
10995 # If no C compiler flags were specified, use CFLAGS.
10996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10997
10998 # Allow CC to be a program name with arguments.
10999 compiler=$CC
11000
11001
11002 # save warnings/boilerplate of simple test code
11003 ac_outfile=conftest.$ac_objext
11004 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11005 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11006 _lt_compiler_boilerplate=`cat conftest.err`
11007 $rm conftest*
11008
11009 ac_outfile=conftest.$ac_objext
11010 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11011 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11012 _lt_linker_boilerplate=`cat conftest.err`
11013 $rm conftest*
11014
11015
11016 # Allow CC to be a program name with arguments.
11017 lt_save_CC=$CC
11018 lt_save_LD=$LD
11019 lt_save_GCC=$GCC
11020 GCC=$GXX
11021 lt_save_with_gnu_ld=$with_gnu_ld
11022 lt_save_path_LD=$lt_cv_path_LD
11023 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11024   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11025 else
11026   $as_unset lt_cv_prog_gnu_ld
11027 fi
11028 if test -n "${lt_cv_path_LDCXX+set}"; then
11029   lt_cv_path_LD=$lt_cv_path_LDCXX
11030 else
11031   $as_unset lt_cv_path_LD
11032 fi
11033 test -z "${LDCXX+set}" || LD=$LDCXX
11034 CC=${CXX-"c++"}
11035 compiler=$CC
11036 compiler_CXX=$CC
11037 for cc_temp in $compiler""; do
11038   case $cc_temp in
11039     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11040     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11041     \-*) ;;
11042     *) break;;
11043   esac
11044 done
11045 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11046
11047
11048 # We don't want -fno-exception wen compiling C++ code, so set the
11049 # no_builtin_flag separately
11050 if test "$GXX" = yes; then
11051   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11052 else
11053   lt_prog_compiler_no_builtin_flag_CXX=
11054 fi
11055
11056 if test "$GXX" = yes; then
11057   # Set up default GNU C++ configuration
11058
11059
11060 # Check whether --with-gnu-ld was given.
11061 if test "${with_gnu_ld+set}" = set; then :
11062   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11063 else
11064   with_gnu_ld=no
11065 fi
11066
11067 ac_prog=ld
11068 if test "$GCC" = yes; then
11069   # Check if gcc -print-prog-name=ld gives a path.
11070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11071 $as_echo_n "checking for ld used by $CC... " >&6; }
11072   case $host in
11073   *-*-mingw*)
11074     # gcc leaves a trailing carriage return which upsets mingw
11075     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11076   *)
11077     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11078   esac
11079   case $ac_prog in
11080     # Accept absolute paths.
11081     [\\/]* | ?:[\\/]*)
11082       re_direlt='/[^/][^/]*/\.\./'
11083       # Canonicalize the pathname of ld
11084       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11085       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11086         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11087       done
11088       test -z "$LD" && LD="$ac_prog"
11089       ;;
11090   "")
11091     # If it fails, then pretend we aren't using GCC.
11092     ac_prog=ld
11093     ;;
11094   *)
11095     # If it is relative, then search for the first ld in PATH.
11096     with_gnu_ld=unknown
11097     ;;
11098   esac
11099 elif test "$with_gnu_ld" = yes; then
11100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11101 $as_echo_n "checking for GNU ld... " >&6; }
11102 else
11103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11104 $as_echo_n "checking for non-GNU ld... " >&6; }
11105 fi
11106 if ${lt_cv_path_LD+:} false; then :
11107   $as_echo_n "(cached) " >&6
11108 else
11109   if test -z "$LD"; then
11110   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11111   for ac_dir in $PATH; do
11112     IFS="$lt_save_ifs"
11113     test -z "$ac_dir" && ac_dir=.
11114     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11115       lt_cv_path_LD="$ac_dir/$ac_prog"
11116       # Check to see if the program is GNU ld.  I'd rather use --version,
11117       # but apparently some variants of GNU ld only accept -v.
11118       # Break only if it was the GNU/non-GNU ld that we prefer.
11119       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11120       *GNU* | *'with BFD'*)
11121         test "$with_gnu_ld" != no && break
11122         ;;
11123       *)
11124         test "$with_gnu_ld" != yes && break
11125         ;;
11126       esac
11127     fi
11128   done
11129   IFS="$lt_save_ifs"
11130 else
11131   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11132 fi
11133 fi
11134
11135 LD="$lt_cv_path_LD"
11136 if test -n "$LD"; then
11137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11138 $as_echo "$LD" >&6; }
11139 else
11140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11142 fi
11143 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11145 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11146 if ${lt_cv_prog_gnu_ld+:} false; then :
11147   $as_echo_n "(cached) " >&6
11148 else
11149   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11150 case `$LD -v 2>&1 </dev/null` in
11151 *GNU* | *'with BFD'*)
11152   lt_cv_prog_gnu_ld=yes
11153   ;;
11154 *)
11155   lt_cv_prog_gnu_ld=no
11156   ;;
11157 esac
11158 fi
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11160 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11161 with_gnu_ld=$lt_cv_prog_gnu_ld
11162
11163
11164
11165   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11166   # archiving commands below assume that GNU ld is being used.
11167   if test "$with_gnu_ld" = yes; then
11168     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11169     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'
11170
11171     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11172     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11173
11174     # If archive_cmds runs LD, not CC, wlarc should be empty
11175     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11176     #     investigate it a little bit more. (MM)
11177     wlarc='${wl}'
11178
11179     # ancient GNU ld didn't support --whole-archive et. al.
11180     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11181         grep 'no-whole-archive' > /dev/null; then
11182       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11183     else
11184       whole_archive_flag_spec_CXX=
11185     fi
11186   else
11187     with_gnu_ld=no
11188     wlarc=
11189
11190     # A generic and very simple default shared library creation
11191     # command for GNU C++ for the case where it uses the native
11192     # linker, instead of GNU ld.  If possible, this setting should
11193     # overridden to take advantage of the native linker features on
11194     # the platform it is being used on.
11195     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11196   fi
11197
11198   # Commands to make compiler produce verbose output that lists
11199   # what "hidden" libraries, object files and flags are used when
11200   # linking a shared library.
11201   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11202
11203 else
11204   GXX=no
11205   with_gnu_ld=no
11206   wlarc=
11207 fi
11208
11209 # PORTME: fill in a description of your system's C++ link characteristics
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11211 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11212 ld_shlibs_CXX=yes
11213 case $host_os in
11214   aix3*)
11215     # FIXME: insert proper C++ library support
11216     ld_shlibs_CXX=no
11217     ;;
11218   aix4* | aix5*)
11219     if test "$host_cpu" = ia64; then
11220       # On IA64, the linker does run time linking by default, so we don't
11221       # have to do anything special.
11222       aix_use_runtimelinking=no
11223       exp_sym_flag='-Bexport'
11224       no_entry_flag=""
11225     else
11226       aix_use_runtimelinking=no
11227
11228       # Test if we are trying to use run time linking or normal
11229       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11230       # need to do runtime linking.
11231       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11232         for ld_flag in $LDFLAGS; do
11233           case $ld_flag in
11234           *-brtl*)
11235             aix_use_runtimelinking=yes
11236             break
11237             ;;
11238           esac
11239         done
11240         ;;
11241       esac
11242
11243       exp_sym_flag='-bexport'
11244       no_entry_flag='-bnoentry'
11245     fi
11246
11247     # When large executables or shared objects are built, AIX ld can
11248     # have problems creating the table of contents.  If linking a library
11249     # or program results in "error TOC overflow" add -mminimal-toc to
11250     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11251     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11252
11253     archive_cmds_CXX=''
11254     hardcode_direct_CXX=yes
11255     hardcode_libdir_separator_CXX=':'
11256     link_all_deplibs_CXX=yes
11257
11258     if test "$GXX" = yes; then
11259       case $host_os in aix4.[012]|aix4.[012].*)
11260       # We only want to do this on AIX 4.2 and lower, the check
11261       # below for broken collect2 doesn't work under 4.3+
11262         collect2name=`${CC} -print-prog-name=collect2`
11263         if test -f "$collect2name" && \
11264            strings "$collect2name" | grep resolve_lib_name >/dev/null
11265         then
11266           # We have reworked collect2
11267           hardcode_direct_CXX=yes
11268         else
11269           # We have old collect2
11270           hardcode_direct_CXX=unsupported
11271           # It fails to find uninstalled libraries when the uninstalled
11272           # path is not listed in the libpath.  Setting hardcode_minus_L
11273           # to unsupported forces relinking
11274           hardcode_minus_L_CXX=yes
11275           hardcode_libdir_flag_spec_CXX='-L$libdir'
11276           hardcode_libdir_separator_CXX=
11277         fi
11278         ;;
11279       esac
11280       shared_flag='-shared'
11281       if test "$aix_use_runtimelinking" = yes; then
11282         shared_flag="$shared_flag "'${wl}-G'
11283       fi
11284     else
11285       # not using gcc
11286       if test "$host_cpu" = ia64; then
11287         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11288         # chokes on -Wl,-G. The following line is correct:
11289         shared_flag='-G'
11290       else
11291         if test "$aix_use_runtimelinking" = yes; then
11292           shared_flag='${wl}-G'
11293         else
11294           shared_flag='${wl}-bM:SRE'
11295         fi
11296       fi
11297     fi
11298
11299     # It seems that -bexpall does not export symbols beginning with
11300     # underscore (_), so it is better to generate a list of symbols to export.
11301     always_export_symbols_CXX=yes
11302     if test "$aix_use_runtimelinking" = yes; then
11303       # Warning - without using the other runtime loading flags (-brtl),
11304       # -berok will link without error, but may produce a broken library.
11305       allow_undefined_flag_CXX='-berok'
11306       # Determine the default libpath from the value encoded in an empty executable.
11307       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h.  */
11309
11310 int
11311 main ()
11312 {
11313
11314   ;
11315   return 0;
11316 }
11317 _ACEOF
11318 if ac_fn_cxx_try_link "$LINENO"; then :
11319
11320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11321 }'`
11322 # Check for a 64-bit object if we didn't find anything.
11323 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; }
11324 }'`; fi
11325 fi
11326 rm -f core conftest.err conftest.$ac_objext \
11327     conftest$ac_exeext conftest.$ac_ext
11328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11329
11330       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11331
11332       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11333      else
11334       if test "$host_cpu" = ia64; then
11335         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11336         allow_undefined_flag_CXX="-z nodefs"
11337         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11338       else
11339         # Determine the default libpath from the value encoded in an empty executable.
11340         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h.  */
11342
11343 int
11344 main ()
11345 {
11346
11347   ;
11348   return 0;
11349 }
11350 _ACEOF
11351 if ac_fn_cxx_try_link "$LINENO"; then :
11352
11353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11354 }'`
11355 # Check for a 64-bit object if we didn't find anything.
11356 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; }
11357 }'`; fi
11358 fi
11359 rm -f core conftest.err conftest.$ac_objext \
11360     conftest$ac_exeext conftest.$ac_ext
11361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11362
11363         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11364         # Warning - without using the other run time loading flags,
11365         # -berok will link without error, but may produce a broken library.
11366         no_undefined_flag_CXX=' ${wl}-bernotok'
11367         allow_undefined_flag_CXX=' ${wl}-berok'
11368         # Exported symbols can be pulled into shared objects from archives
11369         whole_archive_flag_spec_CXX='$convenience'
11370         archive_cmds_need_lc_CXX=yes
11371         # This is similar to how AIX traditionally builds its shared libraries.
11372         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11373       fi
11374     fi
11375     ;;
11376
11377   beos*)
11378     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11379       allow_undefined_flag_CXX=unsupported
11380       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11381       # support --undefined.  This deserves some investigation.  FIXME
11382       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11383     else
11384       ld_shlibs_CXX=no
11385     fi
11386     ;;
11387
11388   chorus*)
11389     case $cc_basename in
11390       *)
11391         # FIXME: insert proper C++ library support
11392         ld_shlibs_CXX=no
11393         ;;
11394     esac
11395     ;;
11396
11397   cygwin* | mingw* | pw32*)
11398     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11399     # as there is no search path for DLLs.
11400     hardcode_libdir_flag_spec_CXX='-L$libdir'
11401     allow_undefined_flag_CXX=unsupported
11402     always_export_symbols_CXX=no
11403     enable_shared_with_static_runtimes_CXX=yes
11404
11405     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11406       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11407       # If the export-symbols file already is a .def file (1st line
11408       # is EXPORTS), use it as is; otherwise, prepend...
11409       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11410         cp $export_symbols $output_objdir/$soname.def;
11411       else
11412         echo EXPORTS > $output_objdir/$soname.def;
11413         cat $export_symbols >> $output_objdir/$soname.def;
11414       fi~
11415       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11416     else
11417       ld_shlibs_CXX=no
11418     fi
11419   ;;
11420       darwin* | rhapsody*)
11421         case $host_os in
11422         rhapsody* | darwin1.[012])
11423          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11424          ;;
11425        *) # Darwin 1.3 on
11426          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11427            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11428          else
11429            case ${MACOSX_DEPLOYMENT_TARGET} in
11430              10.[012])
11431                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11432                ;;
11433              10.*)
11434                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11435                ;;
11436            esac
11437          fi
11438          ;;
11439         esac
11440       archive_cmds_need_lc_CXX=no
11441       hardcode_direct_CXX=no
11442       hardcode_automatic_CXX=yes
11443       hardcode_shlibpath_var_CXX=unsupported
11444       whole_archive_flag_spec_CXX=''
11445       link_all_deplibs_CXX=yes
11446
11447     if test "$GXX" = yes ; then
11448       lt_int_apple_cc_single_mod=no
11449       output_verbose_link_cmd='echo'
11450       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11451        lt_int_apple_cc_single_mod=yes
11452       fi
11453       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11454        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11455       else
11456           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11457         fi
11458         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11459         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11460           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11461             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}'
11462           else
11463             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11464           fi
11465             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}'
11466       else
11467       case $cc_basename in
11468         xlc*)
11469          output_verbose_link_cmd='echo'
11470           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11471           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11472           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11473           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11474           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}'
11475           ;;
11476        *)
11477          ld_shlibs_CXX=no
11478           ;;
11479       esac
11480       fi
11481         ;;
11482
11483   dgux*)
11484     case $cc_basename in
11485       ec++*)
11486         # FIXME: insert proper C++ library support
11487         ld_shlibs_CXX=no
11488         ;;
11489       ghcx*)
11490         # Green Hills C++ Compiler
11491         # FIXME: insert proper C++ library support
11492         ld_shlibs_CXX=no
11493         ;;
11494       *)
11495         # FIXME: insert proper C++ library support
11496         ld_shlibs_CXX=no
11497         ;;
11498     esac
11499     ;;
11500   freebsd[12]*)
11501     # C++ shared libraries reported to be fairly broken before switch to ELF
11502     ld_shlibs_CXX=no
11503     ;;
11504   freebsd-elf*)
11505     archive_cmds_need_lc_CXX=no
11506     ;;
11507   freebsd* | kfreebsd*-gnu | dragonfly*)
11508     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11509     # conventions
11510     ld_shlibs_CXX=yes
11511     ;;
11512   gnu*)
11513     ;;
11514   hpux9*)
11515     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11516     hardcode_libdir_separator_CXX=:
11517     export_dynamic_flag_spec_CXX='${wl}-E'
11518     hardcode_direct_CXX=yes
11519     hardcode_minus_L_CXX=yes # Not in the search PATH,
11520                                 # but as the default
11521                                 # location of the library.
11522
11523     case $cc_basename in
11524     CC*)
11525       # FIXME: insert proper C++ library support
11526       ld_shlibs_CXX=no
11527       ;;
11528     aCC*)
11529       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'
11530       # Commands to make compiler produce verbose output that lists
11531       # what "hidden" libraries, object files and flags are used when
11532       # linking a shared library.
11533       #
11534       # There doesn't appear to be a way to prevent this compiler from
11535       # explicitly linking system object files so we need to strip them
11536       # from the output so that they don't get included in the library
11537       # dependencies.
11538       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'
11539       ;;
11540     *)
11541       if test "$GXX" = yes; then
11542         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'
11543       else
11544         # FIXME: insert proper C++ library support
11545         ld_shlibs_CXX=no
11546       fi
11547       ;;
11548     esac
11549     ;;
11550   hpux10*|hpux11*)
11551     if test $with_gnu_ld = no; then
11552       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11553       hardcode_libdir_separator_CXX=:
11554
11555       case $host_cpu in
11556       hppa*64*|ia64*)
11557         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11558         ;;
11559       *)
11560         export_dynamic_flag_spec_CXX='${wl}-E'
11561         ;;
11562       esac
11563     fi
11564     case $host_cpu in
11565     hppa*64*|ia64*)
11566       hardcode_direct_CXX=no
11567       hardcode_shlibpath_var_CXX=no
11568       ;;
11569     *)
11570       hardcode_direct_CXX=yes
11571       hardcode_minus_L_CXX=yes # Not in the search PATH,
11572                                               # but as the default
11573                                               # location of the library.
11574       ;;
11575     esac
11576
11577     case $cc_basename in
11578       CC*)
11579         # FIXME: insert proper C++ library support
11580         ld_shlibs_CXX=no
11581         ;;
11582       aCC*)
11583         case $host_cpu in
11584         hppa*64*)
11585           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11586           ;;
11587         ia64*)
11588           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11589           ;;
11590         *)
11591           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11592           ;;
11593         esac
11594         # Commands to make compiler produce verbose output that lists
11595         # what "hidden" libraries, object files and flags are used when
11596         # linking a shared library.
11597         #
11598         # There doesn't appear to be a way to prevent this compiler from
11599         # explicitly linking system object files so we need to strip them
11600         # from the output so that they don't get included in the library
11601         # dependencies.
11602         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'
11603         ;;
11604       *)
11605         if test "$GXX" = yes; then
11606           if test $with_gnu_ld = no; then
11607             case $host_cpu in
11608             hppa*64*)
11609               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11610               ;;
11611             ia64*)
11612               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11613               ;;
11614             *)
11615               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'
11616               ;;
11617             esac
11618           fi
11619         else
11620           # FIXME: insert proper C++ library support
11621           ld_shlibs_CXX=no
11622         fi
11623         ;;
11624     esac
11625     ;;
11626   interix3*)
11627     hardcode_direct_CXX=no
11628     hardcode_shlibpath_var_CXX=no
11629     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11630     export_dynamic_flag_spec_CXX='${wl}-E'
11631     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11632     # Instead, shared libraries are loaded at an image base (0x10000000 by
11633     # default) and relocated if they conflict, which is a slow very memory
11634     # consuming and fragmenting process.  To avoid this, we pick a random,
11635     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11636     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11637     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11638     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11639     ;;
11640   irix5* | irix6*)
11641     case $cc_basename in
11642       CC*)
11643         # SGI C++
11644         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 ${output_objdir}/so_locations -o $lib'
11645
11646         # Archives containing C++ object files must be created using
11647         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11648         # necessary to make sure instantiated templates are included
11649         # in the archive.
11650         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11651         ;;
11652       *)
11653         if test "$GXX" = yes; then
11654           if test "$with_gnu_ld" = no; then
11655             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}${output_objdir}/so_locations -o $lib'
11656           else
11657             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'
11658           fi
11659         fi
11660         link_all_deplibs_CXX=yes
11661         ;;
11662     esac
11663     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11664     hardcode_libdir_separator_CXX=:
11665     ;;
11666   linux*)
11667     case $cc_basename in
11668       KCC*)
11669         # Kuck and Associates, Inc. (KAI) C++ Compiler
11670
11671         # KCC will only create a shared library if the output file
11672         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11673         # to its proper name (with version) after linking.
11674         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'
11675         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'
11676         # Commands to make compiler produce verbose output that lists
11677         # what "hidden" libraries, object files and flags are used when
11678         # linking a shared library.
11679         #
11680         # There doesn't appear to be a way to prevent this compiler from
11681         # explicitly linking system object files so we need to strip them
11682         # from the output so that they don't get included in the library
11683         # dependencies.
11684         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'
11685
11686         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11687         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11688
11689         # Archives containing C++ object files must be created using
11690         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11691         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11692         ;;
11693       icpc*)
11694         # Intel C++
11695         with_gnu_ld=yes
11696         # version 8.0 and above of icpc choke on multiply defined symbols
11697         # if we add $predep_objects and $postdep_objects, however 7.1 and
11698         # earlier do not add the objects themselves.
11699         case `$CC -V 2>&1` in
11700         *"Version 7."*)
11701           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11702           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'
11703           ;;
11704         *)  # Version 8.0 or newer
11705           tmp_idyn=
11706           case $host_cpu in
11707             ia64*) tmp_idyn=' -i_dynamic';;
11708           esac
11709           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11710           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11711           ;;
11712         esac
11713         archive_cmds_need_lc_CXX=no
11714         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11715         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11716         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11717         ;;
11718       pgCC*)
11719         # Portland Group C++ compiler
11720         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11721         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11722
11723         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11724         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11725         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11726         ;;
11727       cxx*)
11728         # Compaq C++
11729         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11730         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'
11731
11732         runpath_var=LD_RUN_PATH
11733         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11734         hardcode_libdir_separator_CXX=:
11735
11736         # Commands to make compiler produce verbose output that lists
11737         # what "hidden" libraries, object files and flags are used when
11738         # linking a shared library.
11739         #
11740         # There doesn't appear to be a way to prevent this compiler from
11741         # explicitly linking system object files so we need to strip them
11742         # from the output so that they don't get included in the library
11743         # dependencies.
11744         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'
11745         ;;
11746     esac
11747     ;;
11748   lynxos*)
11749     # FIXME: insert proper C++ library support
11750     ld_shlibs_CXX=no
11751     ;;
11752   m88k*)
11753     # FIXME: insert proper C++ library support
11754     ld_shlibs_CXX=no
11755     ;;
11756   mvs*)
11757     case $cc_basename in
11758       cxx*)
11759         # FIXME: insert proper C++ library support
11760         ld_shlibs_CXX=no
11761         ;;
11762       *)
11763         # FIXME: insert proper C++ library support
11764         ld_shlibs_CXX=no
11765         ;;
11766     esac
11767     ;;
11768   netbsd*)
11769     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11770       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11771       wlarc=
11772       hardcode_libdir_flag_spec_CXX='-R$libdir'
11773       hardcode_direct_CXX=yes
11774       hardcode_shlibpath_var_CXX=no
11775     fi
11776     # Workaround some broken pre-1.5 toolchains
11777     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11778     ;;
11779   openbsd2*)
11780     # C++ shared libraries are fairly broken
11781     ld_shlibs_CXX=no
11782     ;;
11783   openbsd*)
11784     hardcode_direct_CXX=yes
11785     hardcode_shlibpath_var_CXX=no
11786     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11787     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11788     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11789       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11790       export_dynamic_flag_spec_CXX='${wl}-E'
11791       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11792     fi
11793     output_verbose_link_cmd='echo'
11794     ;;
11795   osf3*)
11796     case $cc_basename in
11797       KCC*)
11798         # Kuck and Associates, Inc. (KAI) C++ Compiler
11799
11800         # KCC will only create a shared library if the output file
11801         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11802         # to its proper name (with version) after linking.
11803         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'
11804
11805         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11806         hardcode_libdir_separator_CXX=:
11807
11808         # Archives containing C++ object files must be created using
11809         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11810         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11811
11812         ;;
11813       RCC*)
11814         # Rational C++ 2.4.1
11815         # FIXME: insert proper C++ library support
11816         ld_shlibs_CXX=no
11817         ;;
11818       cxx*)
11819         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11820         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 ${output_objdir}/so_locations -o $lib'
11821
11822         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11823         hardcode_libdir_separator_CXX=:
11824
11825         # Commands to make compiler produce verbose output that lists
11826         # what "hidden" libraries, object files and flags are used when
11827         # linking a shared library.
11828         #
11829         # There doesn't appear to be a way to prevent this compiler from
11830         # explicitly linking system object files so we need to strip them
11831         # from the output so that they don't get included in the library
11832         # dependencies.
11833         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'
11834         ;;
11835       *)
11836         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11837           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11838           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}${output_objdir}/so_locations -o $lib'
11839
11840           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11841           hardcode_libdir_separator_CXX=:
11842
11843           # Commands to make compiler produce verbose output that lists
11844           # what "hidden" libraries, object files and flags are used when
11845           # linking a shared library.
11846           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11847
11848         else
11849           # FIXME: insert proper C++ library support
11850           ld_shlibs_CXX=no
11851         fi
11852         ;;
11853     esac
11854     ;;
11855   osf4* | osf5*)
11856     case $cc_basename in
11857       KCC*)
11858         # Kuck and Associates, Inc. (KAI) C++ Compiler
11859
11860         # KCC will only create a shared library if the output file
11861         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11862         # to its proper name (with version) after linking.
11863         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'
11864
11865         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11866         hardcode_libdir_separator_CXX=:
11867
11868         # Archives containing C++ object files must be created using
11869         # the KAI C++ compiler.
11870         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11871         ;;
11872       RCC*)
11873         # Rational C++ 2.4.1
11874         # FIXME: insert proper C++ library support
11875         ld_shlibs_CXX=no
11876         ;;
11877       cxx*)
11878         allow_undefined_flag_CXX=' -expect_unresolved \*'
11879         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 ${output_objdir}/so_locations -o $lib'
11880         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11881           echo "-hidden">> $lib.exp~
11882           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11883           $rm $lib.exp'
11884
11885         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11886         hardcode_libdir_separator_CXX=:
11887
11888         # Commands to make compiler produce verbose output that lists
11889         # what "hidden" libraries, object files and flags are used when
11890         # linking a shared library.
11891         #
11892         # There doesn't appear to be a way to prevent this compiler from
11893         # explicitly linking system object files so we need to strip them
11894         # from the output so that they don't get included in the library
11895         # dependencies.
11896         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'
11897         ;;
11898       *)
11899         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11901          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}${output_objdir}/so_locations -o $lib'
11902
11903           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11904           hardcode_libdir_separator_CXX=:
11905
11906           # Commands to make compiler produce verbose output that lists
11907           # what "hidden" libraries, object files and flags are used when
11908           # linking a shared library.
11909           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11910
11911         else
11912           # FIXME: insert proper C++ library support
11913           ld_shlibs_CXX=no
11914         fi
11915         ;;
11916     esac
11917     ;;
11918   psos*)
11919     # FIXME: insert proper C++ library support
11920     ld_shlibs_CXX=no
11921     ;;
11922   sunos4*)
11923     case $cc_basename in
11924       CC*)
11925         # Sun C++ 4.x
11926         # FIXME: insert proper C++ library support
11927         ld_shlibs_CXX=no
11928         ;;
11929       lcc*)
11930         # Lucid
11931         # FIXME: insert proper C++ library support
11932         ld_shlibs_CXX=no
11933         ;;
11934       *)
11935         # FIXME: insert proper C++ library support
11936         ld_shlibs_CXX=no
11937         ;;
11938     esac
11939     ;;
11940   solaris*)
11941     case $cc_basename in
11942       CC*)
11943         # Sun C++ 4.2, 5.x and Centerline C++
11944         archive_cmds_need_lc_CXX=yes
11945         no_undefined_flag_CXX=' -zdefs'
11946         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11947         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11948         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11949
11950         hardcode_libdir_flag_spec_CXX='-R$libdir'
11951         hardcode_shlibpath_var_CXX=no
11952         case $host_os in
11953           solaris2.[0-5] | solaris2.[0-5].*) ;;
11954           *)
11955             # The C++ compiler is used as linker so we must use $wl
11956             # flag to pass the commands to the underlying system
11957             # linker. We must also pass each convience library through
11958             # to the system linker between allextract/defaultextract.
11959             # The C++ compiler will combine linker options so we
11960             # cannot just pass the convience library names through
11961             # without $wl.
11962             # Supported since Solaris 2.6 (maybe 2.5.1?)
11963             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11964             ;;
11965         esac
11966         link_all_deplibs_CXX=yes
11967
11968         output_verbose_link_cmd='echo'
11969
11970         # Archives containing C++ object files must be created using
11971         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11972         # necessary to make sure instantiated templates are included
11973         # in the archive.
11974         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11975         ;;
11976       gcx*)
11977         # Green Hills C++ Compiler
11978         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11979
11980         # The C++ compiler must be used to create the archive.
11981         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11982         ;;
11983       *)
11984         # GNU C++ compiler with Solaris linker
11985         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11986           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11987           if $CC --version | grep -v '^2\.7' > /dev/null; then
11988             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11989             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11990                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11991
11992             # Commands to make compiler produce verbose output that lists
11993             # what "hidden" libraries, object files and flags are used when
11994             # linking a shared library.
11995             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11996           else
11997             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11998             # platform.
11999             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12000             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12001                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12002
12003             # Commands to make compiler produce verbose output that lists
12004             # what "hidden" libraries, object files and flags are used when
12005             # linking a shared library.
12006             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12007           fi
12008
12009           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12010         fi
12011         ;;
12012     esac
12013     ;;
12014   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12015     no_undefined_flag_CXX='${wl}-z,text'
12016     archive_cmds_need_lc_CXX=no
12017     hardcode_shlibpath_var_CXX=no
12018     runpath_var='LD_RUN_PATH'
12019
12020     case $cc_basename in
12021       CC*)
12022         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12023         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12024         ;;
12025       *)
12026         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12027         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12028         ;;
12029     esac
12030     ;;
12031   sysv5* | sco3.2v5* | sco5v6*)
12032     # Note: We can NOT use -z defs as we might desire, because we do not
12033     # link with -lc, and that would cause any symbols used from libc to
12034     # always be unresolved, which means just about no library would
12035     # ever link correctly.  If we're not using GNU ld we use -z text
12036     # though, which does catch some bad symbols but isn't as heavy-handed
12037     # as -z defs.
12038     # For security reasons, it is highly recommended that you always
12039     # use absolute paths for naming shared libraries, and exclude the
12040     # DT_RUNPATH tag from executables and libraries.  But doing so
12041     # requires that you compile everything twice, which is a pain.
12042     # So that behaviour is only enabled if SCOABSPATH is set to a
12043     # non-empty value in the environment.  Most likely only useful for
12044     # creating official distributions of packages.
12045     # This is a hack until libtool officially supports absolute path
12046     # names for shared libraries.
12047     no_undefined_flag_CXX='${wl}-z,text'
12048     allow_undefined_flag_CXX='${wl}-z,nodefs'
12049     archive_cmds_need_lc_CXX=no
12050     hardcode_shlibpath_var_CXX=no
12051     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12052     hardcode_libdir_separator_CXX=':'
12053     link_all_deplibs_CXX=yes
12054     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12055     runpath_var='LD_RUN_PATH'
12056
12057     case $cc_basename in
12058       CC*)
12059         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12060         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12061         ;;
12062       *)
12063         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12064         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12065         ;;
12066     esac
12067     ;;
12068   tandem*)
12069     case $cc_basename in
12070       NCC*)
12071         # NonStop-UX NCC 3.20
12072         # FIXME: insert proper C++ library support
12073         ld_shlibs_CXX=no
12074         ;;
12075       *)
12076         # FIXME: insert proper C++ library support
12077         ld_shlibs_CXX=no
12078         ;;
12079     esac
12080     ;;
12081   vxworks*)
12082     # FIXME: insert proper C++ library support
12083     ld_shlibs_CXX=no
12084     ;;
12085   *)
12086     # FIXME: insert proper C++ library support
12087     ld_shlibs_CXX=no
12088     ;;
12089 esac
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12091 $as_echo "$ld_shlibs_CXX" >&6; }
12092 test "$ld_shlibs_CXX" = no && can_build_shared=no
12093
12094 GCC_CXX="$GXX"
12095 LD_CXX="$LD"
12096
12097
12098 cat > conftest.$ac_ext <<EOF
12099 class Foo
12100 {
12101 public:
12102   Foo (void) { a = 0; }
12103 private:
12104   int a;
12105 };
12106 EOF
12107
12108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12109   (eval $ac_compile) 2>&5
12110   ac_status=$?
12111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112   test $ac_status = 0; }; then
12113   # Parse the compiler output and extract the necessary
12114   # objects, libraries and library flags.
12115
12116   # Sentinel used to keep track of whether or not we are before
12117   # the conftest object file.
12118   pre_test_object_deps_done=no
12119
12120   # The `*' in the case matches for architectures that use `case' in
12121   # $output_verbose_cmd can trigger glob expansion during the loop
12122   # eval without this substitution.
12123   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12124
12125   for p in `eval $output_verbose_link_cmd`; do
12126     case $p in
12127
12128     -L* | -R* | -l*)
12129        # Some compilers place space between "-{L,R}" and the path.
12130        # Remove the space.
12131        if test $p = "-L" \
12132           || test $p = "-R"; then
12133          prev=$p
12134          continue
12135        else
12136          prev=
12137        fi
12138
12139        if test "$pre_test_object_deps_done" = no; then
12140          case $p in
12141          -L* | -R*)
12142            # Internal compiler library paths should come after those
12143            # provided the user.  The postdeps already come after the
12144            # user supplied libs so there is no need to process them.
12145            if test -z "$compiler_lib_search_path_CXX"; then
12146              compiler_lib_search_path_CXX="${prev}${p}"
12147            else
12148              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12149            fi
12150            ;;
12151          # The "-l" case would never come before the object being
12152          # linked, so don't bother handling this case.
12153          esac
12154        else
12155          if test -z "$postdeps_CXX"; then
12156            postdeps_CXX="${prev}${p}"
12157          else
12158            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12159          fi
12160        fi
12161        ;;
12162
12163     *.$objext)
12164        # This assumes that the test object file only shows up
12165        # once in the compiler output.
12166        if test "$p" = "conftest.$objext"; then
12167          pre_test_object_deps_done=yes
12168          continue
12169        fi
12170
12171        if test "$pre_test_object_deps_done" = no; then
12172          if test -z "$predep_objects_CXX"; then
12173            predep_objects_CXX="$p"
12174          else
12175            predep_objects_CXX="$predep_objects_CXX $p"
12176          fi
12177        else
12178          if test -z "$postdep_objects_CXX"; then
12179            postdep_objects_CXX="$p"
12180          else
12181            postdep_objects_CXX="$postdep_objects_CXX $p"
12182          fi
12183        fi
12184        ;;
12185
12186     *) ;; # Ignore the rest.
12187
12188     esac
12189   done
12190
12191   # Clean up.
12192   rm -f a.out a.exe
12193 else
12194   echo "libtool.m4: error: problem compiling CXX test program"
12195 fi
12196
12197 $rm -f confest.$objext
12198
12199 # PORTME: override above test on systems where it is broken
12200 case $host_os in
12201 interix3*)
12202   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12203   # hack all around it, let's just trust "g++" to DTRT.
12204   predep_objects_CXX=
12205   postdep_objects_CXX=
12206   postdeps_CXX=
12207   ;;
12208
12209 solaris*)
12210   case $cc_basename in
12211   CC*)
12212     # Adding this requires a known-good setup of shared libraries for
12213     # Sun compiler versions before 5.6, else PIC objects from an old
12214     # archive will be linked into the output, leading to subtle bugs.
12215     postdeps_CXX='-lCstd -lCrun'
12216     ;;
12217   esac
12218   ;;
12219 esac
12220
12221
12222 case " $postdeps_CXX " in
12223 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12224 esac
12225
12226 lt_prog_compiler_wl_CXX=
12227 lt_prog_compiler_pic_CXX=
12228 lt_prog_compiler_static_CXX=
12229
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12231 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12232
12233   # C++ specific cases for pic, static, wl, etc.
12234   if test "$GXX" = yes; then
12235     lt_prog_compiler_wl_CXX='-Wl,'
12236     lt_prog_compiler_static_CXX='-static'
12237
12238     case $host_os in
12239     aix*)
12240       # All AIX code is PIC.
12241       if test "$host_cpu" = ia64; then
12242         # AIX 5 now supports IA64 processor
12243         lt_prog_compiler_static_CXX='-Bstatic'
12244       fi
12245       ;;
12246     amigaos*)
12247       # FIXME: we need at least 68020 code to build shared libraries, but
12248       # adding the `-m68020' flag to GCC prevents building anything better,
12249       # like `-m68040'.
12250       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12251       ;;
12252     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12253       # PIC is the default for these OSes.
12254       ;;
12255     mingw* | os2* | pw32*)
12256       # This hack is so that the source file can tell whether it is being
12257       # built for inclusion in a dll (and should export symbols for example).
12258       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12259       ;;
12260     darwin* | rhapsody*)
12261       # PIC is the default on this platform
12262       # Common symbols not allowed in MH_DYLIB files
12263       lt_prog_compiler_pic_CXX='-fno-common'
12264       ;;
12265     *djgpp*)
12266       # DJGPP does not support shared libraries at all
12267       lt_prog_compiler_pic_CXX=
12268       ;;
12269     interix3*)
12270       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12271       # Instead, we relocate shared libraries at runtime.
12272       ;;
12273     sysv4*MP*)
12274       if test -d /usr/nec; then
12275         lt_prog_compiler_pic_CXX=-Kconform_pic
12276       fi
12277       ;;
12278     hpux*)
12279       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12280       # not for PA HP-UX.
12281       case $host_cpu in
12282       hppa*64*|ia64*)
12283         ;;
12284       *)
12285         lt_prog_compiler_pic_CXX='-fPIC'
12286         ;;
12287       esac
12288       ;;
12289     *)
12290       lt_prog_compiler_pic_CXX='-fPIC'
12291       ;;
12292     esac
12293   else
12294     case $host_os in
12295       aix4* | aix5*)
12296         # All AIX code is PIC.
12297         if test "$host_cpu" = ia64; then
12298           # AIX 5 now supports IA64 processor
12299           lt_prog_compiler_static_CXX='-Bstatic'
12300         else
12301           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12302         fi
12303         ;;
12304       chorus*)
12305         case $cc_basename in
12306         cxch68*)
12307           # Green Hills C++ Compiler
12308           # _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"
12309           ;;
12310         esac
12311         ;;
12312        darwin*)
12313          # PIC is the default on this platform
12314          # Common symbols not allowed in MH_DYLIB files
12315          case $cc_basename in
12316            xlc*)
12317            lt_prog_compiler_pic_CXX='-qnocommon'
12318            lt_prog_compiler_wl_CXX='-Wl,'
12319            ;;
12320          esac
12321        ;;
12322       dgux*)
12323         case $cc_basename in
12324           ec++*)
12325             lt_prog_compiler_pic_CXX='-KPIC'
12326             ;;
12327           ghcx*)
12328             # Green Hills C++ Compiler
12329             lt_prog_compiler_pic_CXX='-pic'
12330             ;;
12331           *)
12332             ;;
12333         esac
12334         ;;
12335       freebsd* | kfreebsd*-gnu | dragonfly*)
12336         # FreeBSD uses GNU C++
12337         ;;
12338       hpux9* | hpux10* | hpux11*)
12339         case $cc_basename in
12340           CC*)
12341             lt_prog_compiler_wl_CXX='-Wl,'
12342             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12343             if test "$host_cpu" != ia64; then
12344               lt_prog_compiler_pic_CXX='+Z'
12345             fi
12346             ;;
12347           aCC*)
12348             lt_prog_compiler_wl_CXX='-Wl,'
12349             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12350             case $host_cpu in
12351             hppa*64*|ia64*)
12352               # +Z the default
12353               ;;
12354             *)
12355               lt_prog_compiler_pic_CXX='+Z'
12356               ;;
12357             esac
12358             ;;
12359           *)
12360             ;;
12361         esac
12362         ;;
12363       interix*)
12364         # This is c89, which is MS Visual C++ (no shared libs)
12365         # Anyone wants to do a port?
12366         ;;
12367       irix5* | irix6* | nonstopux*)
12368         case $cc_basename in
12369           CC*)
12370             lt_prog_compiler_wl_CXX='-Wl,'
12371             lt_prog_compiler_static_CXX='-non_shared'
12372             # CC pic flag -KPIC is the default.
12373             ;;
12374           *)
12375             ;;
12376         esac
12377         ;;
12378       linux*)
12379         case $cc_basename in
12380           KCC*)
12381             # KAI C++ Compiler
12382             lt_prog_compiler_wl_CXX='--backend -Wl,'
12383             lt_prog_compiler_pic_CXX='-fPIC'
12384             ;;
12385           icpc* | ecpc*)
12386             # Intel C++
12387             lt_prog_compiler_wl_CXX='-Wl,'
12388             lt_prog_compiler_pic_CXX='-KPIC'
12389             lt_prog_compiler_static_CXX='-static'
12390             ;;
12391           pgCC*)
12392             # Portland Group C++ compiler.
12393             lt_prog_compiler_wl_CXX='-Wl,'
12394             lt_prog_compiler_pic_CXX='-fpic'
12395             lt_prog_compiler_static_CXX='-Bstatic'
12396             ;;
12397           cxx*)
12398             # Compaq C++
12399             # Make sure the PIC flag is empty.  It appears that all Alpha
12400             # Linux and Compaq Tru64 Unix objects are PIC.
12401             lt_prog_compiler_pic_CXX=
12402             lt_prog_compiler_static_CXX='-non_shared'
12403             ;;
12404           *)
12405             ;;
12406         esac
12407         ;;
12408       lynxos*)
12409         ;;
12410       m88k*)
12411         ;;
12412       mvs*)
12413         case $cc_basename in
12414           cxx*)
12415             lt_prog_compiler_pic_CXX='-W c,exportall'
12416             ;;
12417           *)
12418             ;;
12419         esac
12420         ;;
12421       netbsd*)
12422         ;;
12423       osf3* | osf4* | osf5*)
12424         case $cc_basename in
12425           KCC*)
12426             lt_prog_compiler_wl_CXX='--backend -Wl,'
12427             ;;
12428           RCC*)
12429             # Rational C++ 2.4.1
12430             lt_prog_compiler_pic_CXX='-pic'
12431             ;;
12432           cxx*)
12433             # Digital/Compaq C++
12434             lt_prog_compiler_wl_CXX='-Wl,'
12435             # Make sure the PIC flag is empty.  It appears that all Alpha
12436             # Linux and Compaq Tru64 Unix objects are PIC.
12437             lt_prog_compiler_pic_CXX=
12438             lt_prog_compiler_static_CXX='-non_shared'
12439             ;;
12440           *)
12441             ;;
12442         esac
12443         ;;
12444       psos*)
12445         ;;
12446       solaris*)
12447         case $cc_basename in
12448           CC*)
12449             # Sun C++ 4.2, 5.x and Centerline C++
12450             lt_prog_compiler_pic_CXX='-KPIC'
12451             lt_prog_compiler_static_CXX='-Bstatic'
12452             lt_prog_compiler_wl_CXX='-Qoption ld '
12453             ;;
12454           gcx*)
12455             # Green Hills C++ Compiler
12456             lt_prog_compiler_pic_CXX='-PIC'
12457             ;;
12458           *)
12459             ;;
12460         esac
12461         ;;
12462       sunos4*)
12463         case $cc_basename in
12464           CC*)
12465             # Sun C++ 4.x
12466             lt_prog_compiler_pic_CXX='-pic'
12467             lt_prog_compiler_static_CXX='-Bstatic'
12468             ;;
12469           lcc*)
12470             # Lucid
12471             lt_prog_compiler_pic_CXX='-pic'
12472             ;;
12473           *)
12474             ;;
12475         esac
12476         ;;
12477       tandem*)
12478         case $cc_basename in
12479           NCC*)
12480             # NonStop-UX NCC 3.20
12481             lt_prog_compiler_pic_CXX='-KPIC'
12482             ;;
12483           *)
12484             ;;
12485         esac
12486         ;;
12487       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12488         case $cc_basename in
12489           CC*)
12490             lt_prog_compiler_wl_CXX='-Wl,'
12491             lt_prog_compiler_pic_CXX='-KPIC'
12492             lt_prog_compiler_static_CXX='-Bstatic'
12493             ;;
12494         esac
12495         ;;
12496       vxworks*)
12497         ;;
12498       *)
12499         lt_prog_compiler_can_build_shared_CXX=no
12500         ;;
12501     esac
12502   fi
12503
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12505 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12506
12507 #
12508 # Check to make sure the PIC flag actually works.
12509 #
12510 if test -n "$lt_prog_compiler_pic_CXX"; then
12511
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12513 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12514 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
12515   $as_echo_n "(cached) " >&6
12516 else
12517   lt_prog_compiler_pic_works_CXX=no
12518   ac_outfile=conftest.$ac_objext
12519    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12520    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12521    # Insert the option either (1) after the last *FLAGS variable, or
12522    # (2) before a word containing "conftest.", or (3) at the end.
12523    # Note that $ac_compile itself does not contain backslashes and begins
12524    # with a dollar sign (not a hyphen), so the echo should work correctly.
12525    # The option is referenced via a variable to avoid confusing sed.
12526    lt_compile=`echo "$ac_compile" | $SED \
12527    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12528    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12529    -e 's:$: $lt_compiler_flag:'`
12530    (eval echo "\"\$as_me:12530: $lt_compile\"" >&5)
12531    (eval "$lt_compile" 2>conftest.err)
12532    ac_status=$?
12533    cat conftest.err >&5
12534    echo "$as_me:12534: \$? = $ac_status" >&5
12535    if (exit $ac_status) && test -s "$ac_outfile"; then
12536      # The compiler can only warn and ignore the option if not recognized
12537      # So say no if there are warnings other than the usual output.
12538      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12539      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12540      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12541        lt_prog_compiler_pic_works_CXX=yes
12542      fi
12543    fi
12544    $rm conftest*
12545
12546 fi
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
12548 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12549
12550 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12551     case $lt_prog_compiler_pic_CXX in
12552      "" | " "*) ;;
12553      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12554      esac
12555 else
12556     lt_prog_compiler_pic_CXX=
12557      lt_prog_compiler_can_build_shared_CXX=no
12558 fi
12559
12560 fi
12561 case $host_os in
12562   # For platforms which do not support PIC, -DPIC is meaningless:
12563   *djgpp*)
12564     lt_prog_compiler_pic_CXX=
12565     ;;
12566   *)
12567     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12568     ;;
12569 esac
12570
12571 #
12572 # Check to make sure the static flag actually works.
12573 #
12574 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12576 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12577 if ${lt_prog_compiler_static_works_CXX+:} false; then :
12578   $as_echo_n "(cached) " >&6
12579 else
12580   lt_prog_compiler_static_works_CXX=no
12581    save_LDFLAGS="$LDFLAGS"
12582    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12583    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12584    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12585      # The linker can only warn and ignore the option if not recognized
12586      # So say no if there are warnings
12587      if test -s conftest.err; then
12588        # Append any errors to the config.log.
12589        cat conftest.err 1>&5
12590        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12591        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12592        if diff conftest.exp conftest.er2 >/dev/null; then
12593          lt_prog_compiler_static_works_CXX=yes
12594        fi
12595      else
12596        lt_prog_compiler_static_works_CXX=yes
12597      fi
12598    fi
12599    $rm conftest*
12600    LDFLAGS="$save_LDFLAGS"
12601
12602 fi
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
12604 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12605
12606 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12607     :
12608 else
12609     lt_prog_compiler_static_CXX=
12610 fi
12611
12612
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12614 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12615 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12616   $as_echo_n "(cached) " >&6
12617 else
12618   lt_cv_prog_compiler_c_o_CXX=no
12619    $rm -r conftest 2>/dev/null
12620    mkdir conftest
12621    cd conftest
12622    mkdir out
12623    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12624
12625    lt_compiler_flag="-o out/conftest2.$ac_objext"
12626    # Insert the option either (1) after the last *FLAGS variable, or
12627    # (2) before a word containing "conftest.", or (3) at the end.
12628    # Note that $ac_compile itself does not contain backslashes and begins
12629    # with a dollar sign (not a hyphen), so the echo should work correctly.
12630    lt_compile=`echo "$ac_compile" | $SED \
12631    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12632    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12633    -e 's:$: $lt_compiler_flag:'`
12634    (eval echo "\"\$as_me:12634: $lt_compile\"" >&5)
12635    (eval "$lt_compile" 2>out/conftest.err)
12636    ac_status=$?
12637    cat out/conftest.err >&5
12638    echo "$as_me:12638: \$? = $ac_status" >&5
12639    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12640    then
12641      # The compiler can only warn and ignore the option if not recognized
12642      # So say no if there are warnings
12643      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12644      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12645      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12646        lt_cv_prog_compiler_c_o_CXX=yes
12647      fi
12648    fi
12649    chmod u+w . 2>&5
12650    $rm conftest*
12651    # SGI C++ compiler will create directory out/ii_files/ for
12652    # template instantiation
12653    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12654    $rm out/* && rmdir out
12655    cd ..
12656    rmdir conftest
12657    $rm conftest*
12658
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12661 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12662
12663
12664 hard_links="nottested"
12665 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12666   # do not overwrite the value of need_locks provided by the user
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12668 $as_echo_n "checking if we can lock with hard links... " >&6; }
12669   hard_links=yes
12670   $rm conftest*
12671   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12672   touch conftest.a
12673   ln conftest.a conftest.b 2>&5 || hard_links=no
12674   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12676 $as_echo "$hard_links" >&6; }
12677   if test "$hard_links" = no; then
12678     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12679 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12680     need_locks=warn
12681   fi
12682 else
12683   need_locks=no
12684 fi
12685
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12687 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12688
12689   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12690   case $host_os in
12691   aix4* | aix5*)
12692     # If we're using GNU nm, then we don't want the "-C" option.
12693     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12694     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12695       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'
12696     else
12697       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'
12698     fi
12699     ;;
12700   pw32*)
12701     export_symbols_cmds_CXX="$ltdll_cmds"
12702   ;;
12703   cygwin* | mingw*)
12704     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12705   ;;
12706   *)
12707     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12708   ;;
12709   esac
12710
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12712 $as_echo "$ld_shlibs_CXX" >&6; }
12713 test "$ld_shlibs_CXX" = no && can_build_shared=no
12714
12715 #
12716 # Do we need to explicitly link libc?
12717 #
12718 case "x$archive_cmds_need_lc_CXX" in
12719 x|xyes)
12720   # Assume -lc should be added
12721   archive_cmds_need_lc_CXX=yes
12722
12723   if test "$enable_shared" = yes && test "$GCC" = yes; then
12724     case $archive_cmds_CXX in
12725     *'~'*)
12726       # FIXME: we may have to deal with multi-command sequences.
12727       ;;
12728     '$CC '*)
12729       # Test whether the compiler implicitly links with -lc since on some
12730       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12731       # to ld, don't add -lc before -lgcc.
12732       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12733 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12734       $rm conftest*
12735       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12736
12737       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12738   (eval $ac_compile) 2>&5
12739   ac_status=$?
12740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12741   test $ac_status = 0; } 2>conftest.err; then
12742         soname=conftest
12743         lib=conftest
12744         libobjs=conftest.$ac_objext
12745         deplibs=
12746         wl=$lt_prog_compiler_wl_CXX
12747         pic_flag=$lt_prog_compiler_pic_CXX
12748         compiler_flags=-v
12749         linker_flags=-v
12750         verstring=
12751         output_objdir=.
12752         libname=conftest
12753         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12754         allow_undefined_flag_CXX=
12755         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12756   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12757   ac_status=$?
12758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12759   test $ac_status = 0; }
12760         then
12761           archive_cmds_need_lc_CXX=no
12762         else
12763           archive_cmds_need_lc_CXX=yes
12764         fi
12765         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12766       else
12767         cat conftest.err 1>&5
12768       fi
12769       $rm conftest*
12770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12771 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12772       ;;
12773     esac
12774   fi
12775   ;;
12776 esac
12777
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12779 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12780 library_names_spec=
12781 libname_spec='lib$name'
12782 soname_spec=
12783 shrext_cmds=".so"
12784 postinstall_cmds=
12785 postuninstall_cmds=
12786 finish_cmds=
12787 finish_eval=
12788 shlibpath_var=
12789 shlibpath_overrides_runpath=unknown
12790 version_type=none
12791 dynamic_linker="$host_os ld.so"
12792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12793 if test "$GCC" = yes; then
12794   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12795   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12796     # if the path contains ";" then we assume it to be the separator
12797     # otherwise default to the standard path separator (i.e. ":") - it is
12798     # assumed that no part of a normal pathname contains ";" but that should
12799     # okay in the real world where ";" in dirpaths is itself problematic.
12800     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12801   else
12802     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12803   fi
12804 else
12805   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12806 fi
12807 need_lib_prefix=unknown
12808 hardcode_into_libs=no
12809
12810 # when you set need_version to no, make sure it does not cause -set_version
12811 # flags to be left without arguments
12812 need_version=unknown
12813
12814 case $host_os in
12815 aix3*)
12816   version_type=linux
12817   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12818   shlibpath_var=LIBPATH
12819
12820   # AIX 3 has no versioning support, so we append a major version to the name.
12821   soname_spec='${libname}${release}${shared_ext}$major'
12822   ;;
12823
12824 aix4* | aix5*)
12825   version_type=linux
12826   need_lib_prefix=no
12827   need_version=no
12828   hardcode_into_libs=yes
12829   if test "$host_cpu" = ia64; then
12830     # AIX 5 supports IA64
12831     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12832     shlibpath_var=LD_LIBRARY_PATH
12833   else
12834     # With GCC up to 2.95.x, collect2 would create an import file
12835     # for dependence libraries.  The import file would start with
12836     # the line `#! .'.  This would cause the generated library to
12837     # depend on `.', always an invalid library.  This was fixed in
12838     # development snapshots of GCC prior to 3.0.
12839     case $host_os in
12840       aix4 | aix4.[01] | aix4.[01].*)
12841       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12842            echo ' yes '
12843            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12844         :
12845       else
12846         can_build_shared=no
12847       fi
12848       ;;
12849     esac
12850     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12851     # soname into executable. Probably we can add versioning support to
12852     # collect2, so additional links can be useful in future.
12853     if test "$aix_use_runtimelinking" = yes; then
12854       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12855       # instead of lib<name>.a to let people know that these are not
12856       # typical AIX shared libraries.
12857       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12858     else
12859       # We preserve .a as extension for shared libraries through AIX4.2
12860       # and later when we are not doing run time linking.
12861       library_names_spec='${libname}${release}.a $libname.a'
12862       soname_spec='${libname}${release}${shared_ext}$major'
12863     fi
12864     shlibpath_var=LIBPATH
12865   fi
12866   ;;
12867
12868 amigaos*)
12869   library_names_spec='$libname.ixlibrary $libname.a'
12870   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12871   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'
12872   ;;
12873
12874 beos*)
12875   library_names_spec='${libname}${shared_ext}'
12876   dynamic_linker="$host_os ld.so"
12877   shlibpath_var=LIBRARY_PATH
12878   ;;
12879
12880 bsdi[45]*)
12881   version_type=linux
12882   need_version=no
12883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12884   soname_spec='${libname}${release}${shared_ext}$major'
12885   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12886   shlibpath_var=LD_LIBRARY_PATH
12887   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12888   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12889   # the default ld.so.conf also contains /usr/contrib/lib and
12890   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12891   # libtool to hard-code these into programs
12892   ;;
12893
12894 cygwin* | mingw* | pw32*)
12895   version_type=windows
12896   shrext_cmds=".dll"
12897   need_version=no
12898   need_lib_prefix=no
12899
12900   case $GCC,$host_os in
12901   yes,cygwin* | yes,mingw* | yes,pw32*)
12902     library_names_spec='$libname.dll.a'
12903     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12904     postinstall_cmds='base_file=`basename \${file}`~
12905       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12906       dldir=$destdir/`dirname \$dlpath`~
12907       test -d \$dldir || mkdir -p \$dldir~
12908       $install_prog $dir/$dlname \$dldir/$dlname~
12909       chmod a+x \$dldir/$dlname'
12910     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12911       dlpath=$dir/\$dldll~
12912        $rm \$dlpath'
12913     shlibpath_overrides_runpath=yes
12914
12915     case $host_os in
12916     cygwin*)
12917       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12918       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12919       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12920       ;;
12921     mingw*)
12922       # MinGW DLLs use traditional 'lib' prefix
12923       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12924       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12925       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12926         # It is most probably a Windows format PATH printed by
12927         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12928         # path with ; separators, and with drive letters. We can handle the
12929         # drive letters (cygwin fileutils understands them), so leave them,
12930         # especially as we might pass files found there to a mingw objdump,
12931         # which wouldn't understand a cygwinified path. Ahh.
12932         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12933       else
12934         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12935       fi
12936       ;;
12937     pw32*)
12938       # pw32 DLLs use 'pw' prefix rather than 'lib'
12939       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12940       ;;
12941     esac
12942     ;;
12943
12944   *)
12945     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12946     ;;
12947   esac
12948   dynamic_linker='Win32 ld.exe'
12949   # FIXME: first we should search . and the directory the executable is in
12950   shlibpath_var=PATH
12951   ;;
12952
12953 darwin* | rhapsody*)
12954   dynamic_linker="$host_os dyld"
12955   version_type=darwin
12956   need_lib_prefix=no
12957   need_version=no
12958   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12959   soname_spec='${libname}${release}${major}$shared_ext'
12960   shlibpath_overrides_runpath=yes
12961   shlibpath_var=DYLD_LIBRARY_PATH
12962   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12963   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12964   if test "$GCC" = yes; then
12965     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"`
12966   else
12967     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12968   fi
12969   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12970   ;;
12971
12972 dgux*)
12973   version_type=linux
12974   need_lib_prefix=no
12975   need_version=no
12976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12977   soname_spec='${libname}${release}${shared_ext}$major'
12978   shlibpath_var=LD_LIBRARY_PATH
12979   ;;
12980
12981 freebsd1*)
12982   dynamic_linker=no
12983   ;;
12984
12985 kfreebsd*-gnu)
12986   version_type=linux
12987   need_lib_prefix=no
12988   need_version=no
12989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12990   soname_spec='${libname}${release}${shared_ext}$major'
12991   shlibpath_var=LD_LIBRARY_PATH
12992   shlibpath_overrides_runpath=no
12993   hardcode_into_libs=yes
12994   dynamic_linker='GNU ld.so'
12995   ;;
12996
12997 freebsd* | dragonfly*)
12998   # DragonFly does not have aout.  When/if they implement a new
12999   # versioning mechanism, adjust this.
13000   if test -x /usr/bin/objformat; then
13001     objformat=`/usr/bin/objformat`
13002   else
13003     case $host_os in
13004     freebsd[123]*) objformat=aout ;;
13005     *) objformat=elf ;;
13006     esac
13007   fi
13008   version_type=freebsd-$objformat
13009   case $version_type in
13010     freebsd-elf*)
13011       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13012       need_version=no
13013       need_lib_prefix=no
13014       ;;
13015     freebsd-*)
13016       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13017       need_version=yes
13018       ;;
13019   esac
13020   shlibpath_var=LD_LIBRARY_PATH
13021   case $host_os in
13022   freebsd2*)
13023     shlibpath_overrides_runpath=yes
13024     ;;
13025   freebsd3.[01]* | freebsdelf3.[01]*)
13026     shlibpath_overrides_runpath=yes
13027     hardcode_into_libs=yes
13028     ;;
13029   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13030   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13031     shlibpath_overrides_runpath=no
13032     hardcode_into_libs=yes
13033     ;;
13034   freebsd*) # from 4.6 on
13035     shlibpath_overrides_runpath=yes
13036     hardcode_into_libs=yes
13037     ;;
13038   esac
13039   ;;
13040
13041 gnu*)
13042   version_type=linux
13043   need_lib_prefix=no
13044   need_version=no
13045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13046   soname_spec='${libname}${release}${shared_ext}$major'
13047   shlibpath_var=LD_LIBRARY_PATH
13048   hardcode_into_libs=yes
13049   ;;
13050
13051 hpux9* | hpux10* | hpux11*)
13052   # Give a soname corresponding to the major version so that dld.sl refuses to
13053   # link against other versions.
13054   version_type=sunos
13055   need_lib_prefix=no
13056   need_version=no
13057   case $host_cpu in
13058   ia64*)
13059     shrext_cmds='.so'
13060     hardcode_into_libs=yes
13061     dynamic_linker="$host_os dld.so"
13062     shlibpath_var=LD_LIBRARY_PATH
13063     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065     soname_spec='${libname}${release}${shared_ext}$major'
13066     if test "X$HPUX_IA64_MODE" = X32; then
13067       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13068     else
13069       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13070     fi
13071     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13072     ;;
13073    hppa*64*)
13074      shrext_cmds='.sl'
13075      hardcode_into_libs=yes
13076      dynamic_linker="$host_os dld.sl"
13077      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13078      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13079      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13080      soname_spec='${libname}${release}${shared_ext}$major'
13081      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13082      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13083      ;;
13084    *)
13085     shrext_cmds='.sl'
13086     dynamic_linker="$host_os dld.sl"
13087     shlibpath_var=SHLIB_PATH
13088     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090     soname_spec='${libname}${release}${shared_ext}$major'
13091     ;;
13092   esac
13093   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13094   postinstall_cmds='chmod 555 $lib'
13095   ;;
13096
13097 interix3*)
13098   version_type=linux
13099   need_lib_prefix=no
13100   need_version=no
13101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13102   soname_spec='${libname}${release}${shared_ext}$major'
13103   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13104   shlibpath_var=LD_LIBRARY_PATH
13105   shlibpath_overrides_runpath=no
13106   hardcode_into_libs=yes
13107   ;;
13108
13109 irix5* | irix6* | nonstopux*)
13110   case $host_os in
13111     nonstopux*) version_type=nonstopux ;;
13112     *)
13113         if test "$lt_cv_prog_gnu_ld" = yes; then
13114                 version_type=linux
13115         else
13116                 version_type=irix
13117         fi ;;
13118   esac
13119   need_lib_prefix=no
13120   need_version=no
13121   soname_spec='${libname}${release}${shared_ext}$major'
13122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13123   case $host_os in
13124   irix5* | nonstopux*)
13125     libsuff= shlibsuff=
13126     ;;
13127   *)
13128     case $LD in # libtool.m4 will add one of these switches to LD
13129     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13130       libsuff= shlibsuff= libmagic=32-bit;;
13131     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13132       libsuff=32 shlibsuff=N32 libmagic=N32;;
13133     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13134       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13135     *) libsuff= shlibsuff= libmagic=never-match;;
13136     esac
13137     ;;
13138   esac
13139   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13140   shlibpath_overrides_runpath=no
13141   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13142   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13143   hardcode_into_libs=yes
13144   ;;
13145
13146 # No shared lib support for Linux oldld, aout, or coff.
13147 linux*oldld* | linux*aout* | linux*coff*)
13148   dynamic_linker=no
13149   ;;
13150
13151 # This must be Linux ELF.
13152 linux*)
13153   version_type=linux
13154   need_lib_prefix=no
13155   need_version=no
13156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157   soname_spec='${libname}${release}${shared_ext}$major'
13158   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13159   shlibpath_var=LD_LIBRARY_PATH
13160   shlibpath_overrides_runpath=no
13161   # This implies no fast_install, which is unacceptable.
13162   # Some rework will be needed to allow for fast_install
13163   # before this can be enabled.
13164   hardcode_into_libs=yes
13165
13166   # Append ld.so.conf contents to the search path
13167   if test -f /etc/ld.so.conf; then
13168     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13169     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13170   fi
13171
13172   # We used to test for /lib/ld.so.1 and disable shared libraries on
13173   # powerpc, because MkLinux only supported shared libraries with the
13174   # GNU dynamic linker.  Since this was broken with cross compilers,
13175   # most powerpc-linux boxes support dynamic linking these days and
13176   # people can always --disable-shared, the test was removed, and we
13177   # assume the GNU/Linux dynamic linker is in use.
13178   dynamic_linker='GNU/Linux ld.so'
13179   ;;
13180
13181 knetbsd*-gnu)
13182   version_type=linux
13183   need_lib_prefix=no
13184   need_version=no
13185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13186   soname_spec='${libname}${release}${shared_ext}$major'
13187   shlibpath_var=LD_LIBRARY_PATH
13188   shlibpath_overrides_runpath=no
13189   hardcode_into_libs=yes
13190   dynamic_linker='GNU ld.so'
13191   ;;
13192
13193 netbsd*)
13194   version_type=sunos
13195   need_lib_prefix=no
13196   need_version=no
13197   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13199     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13200     dynamic_linker='NetBSD (a.out) ld.so'
13201   else
13202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13203     soname_spec='${libname}${release}${shared_ext}$major'
13204     dynamic_linker='NetBSD ld.elf_so'
13205   fi
13206   shlibpath_var=LD_LIBRARY_PATH
13207   shlibpath_overrides_runpath=yes
13208   hardcode_into_libs=yes
13209   ;;
13210
13211 newsos6)
13212   version_type=linux
13213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13214   shlibpath_var=LD_LIBRARY_PATH
13215   shlibpath_overrides_runpath=yes
13216   ;;
13217
13218 nto-qnx*)
13219   version_type=linux
13220   need_lib_prefix=no
13221   need_version=no
13222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223   soname_spec='${libname}${release}${shared_ext}$major'
13224   shlibpath_var=LD_LIBRARY_PATH
13225   shlibpath_overrides_runpath=yes
13226   ;;
13227
13228 openbsd*)
13229   version_type=sunos
13230   sys_lib_dlsearch_path_spec="/usr/lib"
13231   need_lib_prefix=no
13232   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13233   case $host_os in
13234     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13235     *)                         need_version=no  ;;
13236   esac
13237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13238   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13239   shlibpath_var=LD_LIBRARY_PATH
13240   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13241     case $host_os in
13242       openbsd2.[89] | openbsd2.[89].*)
13243         shlibpath_overrides_runpath=no
13244         ;;
13245       *)
13246         shlibpath_overrides_runpath=yes
13247         ;;
13248       esac
13249   else
13250     shlibpath_overrides_runpath=yes
13251   fi
13252   ;;
13253
13254 os2*)
13255   libname_spec='$name'
13256   shrext_cmds=".dll"
13257   need_lib_prefix=no
13258   library_names_spec='$libname${shared_ext} $libname.a'
13259   dynamic_linker='OS/2 ld.exe'
13260   shlibpath_var=LIBPATH
13261   ;;
13262
13263 osf3* | osf4* | osf5*)
13264   version_type=osf
13265   need_lib_prefix=no
13266   need_version=no
13267   soname_spec='${libname}${release}${shared_ext}$major'
13268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13269   shlibpath_var=LD_LIBRARY_PATH
13270   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13271   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13272   ;;
13273
13274 solaris*)
13275   version_type=linux
13276   need_lib_prefix=no
13277   need_version=no
13278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279   soname_spec='${libname}${release}${shared_ext}$major'
13280   shlibpath_var=LD_LIBRARY_PATH
13281   shlibpath_overrides_runpath=yes
13282   hardcode_into_libs=yes
13283   # ldd complains unless libraries are executable
13284   postinstall_cmds='chmod +x $lib'
13285   ;;
13286
13287 sunos4*)
13288   version_type=sunos
13289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13290   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13291   shlibpath_var=LD_LIBRARY_PATH
13292   shlibpath_overrides_runpath=yes
13293   if test "$with_gnu_ld" = yes; then
13294     need_lib_prefix=no
13295   fi
13296   need_version=yes
13297   ;;
13298
13299 sysv4 | sysv4.3*)
13300   version_type=linux
13301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13302   soname_spec='${libname}${release}${shared_ext}$major'
13303   shlibpath_var=LD_LIBRARY_PATH
13304   case $host_vendor in
13305     sni)
13306       shlibpath_overrides_runpath=no
13307       need_lib_prefix=no
13308       export_dynamic_flag_spec='${wl}-Blargedynsym'
13309       runpath_var=LD_RUN_PATH
13310       ;;
13311     siemens)
13312       need_lib_prefix=no
13313       ;;
13314     motorola)
13315       need_lib_prefix=no
13316       need_version=no
13317       shlibpath_overrides_runpath=no
13318       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13319       ;;
13320   esac
13321   ;;
13322
13323 sysv4*MP*)
13324   if test -d /usr/nec ;then
13325     version_type=linux
13326     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13327     soname_spec='$libname${shared_ext}.$major'
13328     shlibpath_var=LD_LIBRARY_PATH
13329   fi
13330   ;;
13331
13332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13333   version_type=freebsd-elf
13334   need_lib_prefix=no
13335   need_version=no
13336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13337   soname_spec='${libname}${release}${shared_ext}$major'
13338   shlibpath_var=LD_LIBRARY_PATH
13339   hardcode_into_libs=yes
13340   if test "$with_gnu_ld" = yes; then
13341     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13342     shlibpath_overrides_runpath=no
13343   else
13344     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13345     shlibpath_overrides_runpath=yes
13346     case $host_os in
13347       sco3.2v5*)
13348         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13349         ;;
13350     esac
13351   fi
13352   sys_lib_dlsearch_path_spec='/usr/lib'
13353   ;;
13354
13355 uts4*)
13356   version_type=linux
13357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13358   soname_spec='${libname}${release}${shared_ext}$major'
13359   shlibpath_var=LD_LIBRARY_PATH
13360   ;;
13361
13362 *)
13363   dynamic_linker=no
13364   ;;
13365 esac
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13367 $as_echo "$dynamic_linker" >&6; }
13368 test "$dynamic_linker" = no && can_build_shared=no
13369
13370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13371 if test "$GCC" = yes; then
13372   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13373 fi
13374
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13376 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13377 hardcode_action_CXX=
13378 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13379    test -n "$runpath_var_CXX" || \
13380    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13381
13382   # We can hardcode non-existant directories.
13383   if test "$hardcode_direct_CXX" != no &&
13384      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13385      # have to relink, otherwise we might link with an installed library
13386      # when we should be linking with a yet-to-be-installed one
13387      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13388      test "$hardcode_minus_L_CXX" != no; then
13389     # Linking always hardcodes the temporary library directory.
13390     hardcode_action_CXX=relink
13391   else
13392     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13393     hardcode_action_CXX=immediate
13394   fi
13395 else
13396   # We cannot hardcode anything, or else we can only hardcode existing
13397   # directories.
13398   hardcode_action_CXX=unsupported
13399 fi
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13401 $as_echo "$hardcode_action_CXX" >&6; }
13402
13403 if test "$hardcode_action_CXX" = relink; then
13404   # Fast installation is not supported
13405   enable_fast_install=no
13406 elif test "$shlibpath_overrides_runpath" = yes ||
13407      test "$enable_shared" = no; then
13408   # Fast installation is not necessary
13409   enable_fast_install=needless
13410 fi
13411
13412
13413 # The else clause should only fire when bootstrapping the
13414 # libtool distribution, otherwise you forgot to ship ltmain.sh
13415 # with your package, and you will get complaints that there are
13416 # no rules to generate ltmain.sh.
13417 if test -f "$ltmain"; then
13418   # See if we are running on zsh, and set the options which allow our commands through
13419   # without removal of \ escapes.
13420   if test -n "${ZSH_VERSION+set}" ; then
13421     setopt NO_GLOB_SUBST
13422   fi
13423   # Now quote all the things that may contain metacharacters while being
13424   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13425   # variables and quote the copies for generation of the libtool script.
13426   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13427     SED SHELL STRIP \
13428     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13429     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13430     deplibs_check_method reload_flag reload_cmds need_locks \
13431     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13432     lt_cv_sys_global_symbol_to_c_name_address \
13433     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13434     old_postinstall_cmds old_postuninstall_cmds \
13435     compiler_CXX \
13436     CC_CXX \
13437     LD_CXX \
13438     lt_prog_compiler_wl_CXX \
13439     lt_prog_compiler_pic_CXX \
13440     lt_prog_compiler_static_CXX \
13441     lt_prog_compiler_no_builtin_flag_CXX \
13442     export_dynamic_flag_spec_CXX \
13443     thread_safe_flag_spec_CXX \
13444     whole_archive_flag_spec_CXX \
13445     enable_shared_with_static_runtimes_CXX \
13446     old_archive_cmds_CXX \
13447     old_archive_from_new_cmds_CXX \
13448     predep_objects_CXX \
13449     postdep_objects_CXX \
13450     predeps_CXX \
13451     postdeps_CXX \
13452     compiler_lib_search_path_CXX \
13453     archive_cmds_CXX \
13454     archive_expsym_cmds_CXX \
13455     postinstall_cmds_CXX \
13456     postuninstall_cmds_CXX \
13457     old_archive_from_expsyms_cmds_CXX \
13458     allow_undefined_flag_CXX \
13459     no_undefined_flag_CXX \
13460     export_symbols_cmds_CXX \
13461     hardcode_libdir_flag_spec_CXX \
13462     hardcode_libdir_flag_spec_ld_CXX \
13463     hardcode_libdir_separator_CXX \
13464     hardcode_automatic_CXX \
13465     module_cmds_CXX \
13466     module_expsym_cmds_CXX \
13467     lt_cv_prog_compiler_c_o_CXX \
13468     exclude_expsyms_CXX \
13469     include_expsyms_CXX; do
13470
13471     case $var in
13472     old_archive_cmds_CXX | \
13473     old_archive_from_new_cmds_CXX | \
13474     archive_cmds_CXX | \
13475     archive_expsym_cmds_CXX | \
13476     module_cmds_CXX | \
13477     module_expsym_cmds_CXX | \
13478     old_archive_from_expsyms_cmds_CXX | \
13479     export_symbols_cmds_CXX | \
13480     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13481     postinstall_cmds | postuninstall_cmds | \
13482     old_postinstall_cmds | old_postuninstall_cmds | \
13483     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13484       # Double-quote double-evaled strings.
13485       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13486       ;;
13487     *)
13488       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13489       ;;
13490     esac
13491   done
13492
13493   case $lt_echo in
13494   *'\$0 --fallback-echo"')
13495     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13496     ;;
13497   esac
13498
13499 cfgfile="$ofile"
13500
13501   cat <<__EOF__ >> "$cfgfile"
13502 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13503
13504 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13505
13506 # Shell to use when invoking shell scripts.
13507 SHELL=$lt_SHELL
13508
13509 # Whether or not to build shared libraries.
13510 build_libtool_libs=$enable_shared
13511
13512 # Whether or not to build static libraries.
13513 build_old_libs=$enable_static
13514
13515 # Whether or not to add -lc for building shared libraries.
13516 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13517
13518 # Whether or not to disallow shared libs when runtime libs are static
13519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13520
13521 # Whether or not to optimize for fast installation.
13522 fast_install=$enable_fast_install
13523
13524 # The host system.
13525 host_alias=$host_alias
13526 host=$host
13527 host_os=$host_os
13528
13529 # The build system.
13530 build_alias=$build_alias
13531 build=$build
13532 build_os=$build_os
13533
13534 # An echo program that does not interpret backslashes.
13535 echo=$lt_echo
13536
13537 # The archiver.
13538 AR=$lt_AR
13539 AR_FLAGS=$lt_AR_FLAGS
13540
13541 # A C compiler.
13542 LTCC=$lt_LTCC
13543
13544 # LTCC compiler flags.
13545 LTCFLAGS=$lt_LTCFLAGS
13546
13547 # A language-specific compiler.
13548 CC=$lt_compiler_CXX
13549
13550 # Is the compiler the GNU C compiler?
13551 with_gcc=$GCC_CXX
13552
13553 # An ERE matcher.
13554 EGREP=$lt_EGREP
13555
13556 # The linker used to build libraries.
13557 LD=$lt_LD_CXX
13558
13559 # Whether we need hard or soft links.
13560 LN_S=$lt_LN_S
13561
13562 # A BSD-compatible nm program.
13563 NM=$lt_NM
13564
13565 # A symbol stripping program
13566 STRIP=$lt_STRIP
13567
13568 # Used to examine libraries when file_magic_cmd begins "file"
13569 MAGIC_CMD=$MAGIC_CMD
13570
13571 # Used on cygwin: DLL creation program.
13572 DLLTOOL="$DLLTOOL"
13573
13574 # Used on cygwin: object dumper.
13575 OBJDUMP="$OBJDUMP"
13576
13577 # Used on cygwin: assembler.
13578 AS="$AS"
13579
13580 # The name of the directory that contains temporary libtool files.
13581 objdir=$objdir
13582
13583 # How to create reloadable object files.
13584 reload_flag=$lt_reload_flag
13585 reload_cmds=$lt_reload_cmds
13586
13587 # How to pass a linker flag through the compiler.
13588 wl=$lt_lt_prog_compiler_wl_CXX
13589
13590 # Object file suffix (normally "o").
13591 objext="$ac_objext"
13592
13593 # Old archive suffix (normally "a").
13594 libext="$libext"
13595
13596 # Shared library suffix (normally ".so").
13597 shrext_cmds='$shrext_cmds'
13598
13599 # Executable file suffix (normally "").
13600 exeext="$exeext"
13601
13602 # Additional compiler flags for building library objects.
13603 pic_flag=$lt_lt_prog_compiler_pic_CXX
13604 pic_mode=$pic_mode
13605
13606 # What is the maximum length of a command?
13607 max_cmd_len=$lt_cv_sys_max_cmd_len
13608
13609 # Does compiler simultaneously support -c and -o options?
13610 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13611
13612 # Must we lock files when doing compilation?
13613 need_locks=$lt_need_locks
13614
13615 # Do we need the lib prefix for modules?
13616 need_lib_prefix=$need_lib_prefix
13617
13618 # Do we need a version for libraries?
13619 need_version=$need_version
13620
13621 # Whether dlopen is supported.
13622 dlopen_support=$enable_dlopen
13623
13624 # Whether dlopen of programs is supported.
13625 dlopen_self=$enable_dlopen_self
13626
13627 # Whether dlopen of statically linked programs is supported.
13628 dlopen_self_static=$enable_dlopen_self_static
13629
13630 # Compiler flag to prevent dynamic linking.
13631 link_static_flag=$lt_lt_prog_compiler_static_CXX
13632
13633 # Compiler flag to turn off builtin functions.
13634 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13635
13636 # Compiler flag to allow reflexive dlopens.
13637 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13638
13639 # Compiler flag to generate shared objects directly from archives.
13640 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13641
13642 # Compiler flag to generate thread-safe objects.
13643 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13644
13645 # Library versioning type.
13646 version_type=$version_type
13647
13648 # Format of library name prefix.
13649 libname_spec=$lt_libname_spec
13650
13651 # List of archive names.  First name is the real one, the rest are links.
13652 # The last name is the one that the linker finds with -lNAME.
13653 library_names_spec=$lt_library_names_spec
13654
13655 # The coded name of the library, if different from the real name.
13656 soname_spec=$lt_soname_spec
13657
13658 # Commands used to build and install an old-style archive.
13659 RANLIB=$lt_RANLIB
13660 old_archive_cmds=$lt_old_archive_cmds_CXX
13661 old_postinstall_cmds=$lt_old_postinstall_cmds
13662 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13663
13664 # Create an old-style archive from a shared archive.
13665 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13666
13667 # Create a temporary old-style archive to link instead of a shared archive.
13668 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13669
13670 # Commands used to build and install a shared archive.
13671 archive_cmds=$lt_archive_cmds_CXX
13672 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13673 postinstall_cmds=$lt_postinstall_cmds
13674 postuninstall_cmds=$lt_postuninstall_cmds
13675
13676 # Commands used to build a loadable module (assumed same as above if empty)
13677 module_cmds=$lt_module_cmds_CXX
13678 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13679
13680 # Commands to strip libraries.
13681 old_striplib=$lt_old_striplib
13682 striplib=$lt_striplib
13683
13684 # Dependencies to place before the objects being linked to create a
13685 # shared library.
13686 predep_objects=$lt_predep_objects_CXX
13687
13688 # Dependencies to place after the objects being linked to create a
13689 # shared library.
13690 postdep_objects=$lt_postdep_objects_CXX
13691
13692 # Dependencies to place before the objects being linked to create a
13693 # shared library.
13694 predeps=$lt_predeps_CXX
13695
13696 # Dependencies to place after the objects being linked to create a
13697 # shared library.
13698 postdeps=$lt_postdeps_CXX
13699
13700 # The library search path used internally by the compiler when linking
13701 # a shared library.
13702 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13703
13704 # Method to check whether dependent libraries are shared objects.
13705 deplibs_check_method=$lt_deplibs_check_method
13706
13707 # Command to use when deplibs_check_method == file_magic.
13708 file_magic_cmd=$lt_file_magic_cmd
13709
13710 # Flag that allows shared libraries with undefined symbols to be built.
13711 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13712
13713 # Flag that forces no undefined symbols.
13714 no_undefined_flag=$lt_no_undefined_flag_CXX
13715
13716 # Commands used to finish a libtool library installation in a directory.
13717 finish_cmds=$lt_finish_cmds
13718
13719 # Same as above, but a single script fragment to be evaled but not shown.
13720 finish_eval=$lt_finish_eval
13721
13722 # Take the output of nm and produce a listing of raw symbols and C names.
13723 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13724
13725 # Transform the output of nm in a proper C declaration
13726 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13727
13728 # Transform the output of nm in a C name address pair
13729 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13730
13731 # This is the shared library runtime path variable.
13732 runpath_var=$runpath_var
13733
13734 # This is the shared library path variable.
13735 shlibpath_var=$shlibpath_var
13736
13737 # Is shlibpath searched before the hard-coded library search path?
13738 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13739
13740 # How to hardcode a shared library path into an executable.
13741 hardcode_action=$hardcode_action_CXX
13742
13743 # Whether we should hardcode library paths into libraries.
13744 hardcode_into_libs=$hardcode_into_libs
13745
13746 # Flag to hardcode \$libdir into a binary during linking.
13747 # This must work even if \$libdir does not exist.
13748 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13749
13750 # If ld is used when linking, flag to hardcode \$libdir into
13751 # a binary during linking. This must work even if \$libdir does
13752 # not exist.
13753 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13754
13755 # Whether we need a single -rpath flag with a separated argument.
13756 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13757
13758 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13759 # resulting binary.
13760 hardcode_direct=$hardcode_direct_CXX
13761
13762 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13763 # resulting binary.
13764 hardcode_minus_L=$hardcode_minus_L_CXX
13765
13766 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13767 # the resulting binary.
13768 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13769
13770 # Set to yes if building a shared library automatically hardcodes DIR into the library
13771 # and all subsequent libraries and executables linked against it.
13772 hardcode_automatic=$hardcode_automatic_CXX
13773
13774 # Variables whose values should be saved in libtool wrapper scripts and
13775 # restored at relink time.
13776 variables_saved_for_relink="$variables_saved_for_relink"
13777
13778 # Whether libtool must link a program against all its dependency libraries.
13779 link_all_deplibs=$link_all_deplibs_CXX
13780
13781 # Compile-time system search path for libraries
13782 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13783
13784 # Run-time system search path for libraries
13785 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13786
13787 # Fix the shell variable \$srcfile for the compiler.
13788 fix_srcfile_path="$fix_srcfile_path_CXX"
13789
13790 # Set to yes if exported symbols are required.
13791 always_export_symbols=$always_export_symbols_CXX
13792
13793 # The commands to list exported symbols.
13794 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13795
13796 # The commands to extract the exported symbol list from a shared archive.
13797 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13798
13799 # Symbols that should not be listed in the preloaded symbols.
13800 exclude_expsyms=$lt_exclude_expsyms_CXX
13801
13802 # Symbols that must always be exported.
13803 include_expsyms=$lt_include_expsyms_CXX
13804
13805 # ### END LIBTOOL TAG CONFIG: $tagname
13806
13807 __EOF__
13808
13809
13810 else
13811   # If there is no Makefile yet, we rely on a make rule to execute
13812   # `config.status --recheck' to rerun these tests and create the
13813   # libtool script then.
13814   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13815   if test -f "$ltmain_in"; then
13816     test -f Makefile && make "$ltmain"
13817   fi
13818 fi
13819
13820
13821 ac_ext=c
13822 ac_cpp='$CPP $CPPFLAGS'
13823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13826
13827 CC=$lt_save_CC
13828 LDCXX=$LD
13829 LD=$lt_save_LD
13830 GCC=$lt_save_GCC
13831 with_gnu_ldcxx=$with_gnu_ld
13832 with_gnu_ld=$lt_save_with_gnu_ld
13833 lt_cv_path_LDCXX=$lt_cv_path_LD
13834 lt_cv_path_LD=$lt_save_path_LD
13835 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13836 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13837
13838         else
13839           tagname=""
13840         fi
13841         ;;
13842
13843       F77)
13844         if test -n "$F77" && test "X$F77" != "Xno"; then
13845
13846 ac_ext=f
13847 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13848 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13850
13851
13852 archive_cmds_need_lc_F77=no
13853 allow_undefined_flag_F77=
13854 always_export_symbols_F77=no
13855 archive_expsym_cmds_F77=
13856 export_dynamic_flag_spec_F77=
13857 hardcode_direct_F77=no
13858 hardcode_libdir_flag_spec_F77=
13859 hardcode_libdir_flag_spec_ld_F77=
13860 hardcode_libdir_separator_F77=
13861 hardcode_minus_L_F77=no
13862 hardcode_automatic_F77=no
13863 module_cmds_F77=
13864 module_expsym_cmds_F77=
13865 link_all_deplibs_F77=unknown
13866 old_archive_cmds_F77=$old_archive_cmds
13867 no_undefined_flag_F77=
13868 whole_archive_flag_spec_F77=
13869 enable_shared_with_static_runtimes_F77=no
13870
13871 # Source file extension for f77 test sources.
13872 ac_ext=f
13873
13874 # Object file extension for compiled f77 test sources.
13875 objext=o
13876 objext_F77=$objext
13877
13878 # Code to be used in simple compile tests
13879 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13880
13881 # Code to be used in simple link tests
13882 lt_simple_link_test_code="      program t\n      end\n"
13883
13884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13885
13886 # If no C compiler was specified, use CC.
13887 LTCC=${LTCC-"$CC"}
13888
13889 # If no C compiler flags were specified, use CFLAGS.
13890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13891
13892 # Allow CC to be a program name with arguments.
13893 compiler=$CC
13894
13895
13896 # save warnings/boilerplate of simple test code
13897 ac_outfile=conftest.$ac_objext
13898 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13899 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13900 _lt_compiler_boilerplate=`cat conftest.err`
13901 $rm conftest*
13902
13903 ac_outfile=conftest.$ac_objext
13904 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13905 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13906 _lt_linker_boilerplate=`cat conftest.err`
13907 $rm conftest*
13908
13909
13910 # Allow CC to be a program name with arguments.
13911 lt_save_CC="$CC"
13912 CC=${F77-"f77"}
13913 compiler=$CC
13914 compiler_F77=$CC
13915 for cc_temp in $compiler""; do
13916   case $cc_temp in
13917     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13918     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13919     \-*) ;;
13920     *) break;;
13921   esac
13922 done
13923 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13924
13925
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13927 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13929 $as_echo "$can_build_shared" >&6; }
13930
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13932 $as_echo_n "checking whether to build shared libraries... " >&6; }
13933 test "$can_build_shared" = "no" && enable_shared=no
13934
13935 # On AIX, shared libraries and static libraries use the same namespace, and
13936 # are all built from PIC.
13937 case $host_os in
13938 aix3*)
13939   test "$enable_shared" = yes && enable_static=no
13940   if test -n "$RANLIB"; then
13941     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13942     postinstall_cmds='$RANLIB $lib'
13943   fi
13944   ;;
13945 aix4* | aix5*)
13946   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13947     test "$enable_shared" = yes && enable_static=no
13948   fi
13949   ;;
13950 esac
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13952 $as_echo "$enable_shared" >&6; }
13953
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13955 $as_echo_n "checking whether to build static libraries... " >&6; }
13956 # Make sure either enable_shared or enable_static is yes.
13957 test "$enable_shared" = yes || enable_static=yes
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13959 $as_echo "$enable_static" >&6; }
13960
13961 GCC_F77="$G77"
13962 LD_F77="$LD"
13963
13964 lt_prog_compiler_wl_F77=
13965 lt_prog_compiler_pic_F77=
13966 lt_prog_compiler_static_F77=
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13969 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13970
13971   if test "$GCC" = yes; then
13972     lt_prog_compiler_wl_F77='-Wl,'
13973     lt_prog_compiler_static_F77='-static'
13974
13975     case $host_os in
13976       aix*)
13977       # All AIX code is PIC.
13978       if test "$host_cpu" = ia64; then
13979         # AIX 5 now supports IA64 processor
13980         lt_prog_compiler_static_F77='-Bstatic'
13981       fi
13982       ;;
13983
13984     amigaos*)
13985       # FIXME: we need at least 68020 code to build shared libraries, but
13986       # adding the `-m68020' flag to GCC prevents building anything better,
13987       # like `-m68040'.
13988       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13989       ;;
13990
13991     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13992       # PIC is the default for these OSes.
13993       ;;
13994
13995     mingw* | pw32* | os2*)
13996       # This hack is so that the source file can tell whether it is being
13997       # built for inclusion in a dll (and should export symbols for example).
13998       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13999       ;;
14000
14001     darwin* | rhapsody*)
14002       # PIC is the default on this platform
14003       # Common symbols not allowed in MH_DYLIB files
14004       lt_prog_compiler_pic_F77='-fno-common'
14005       ;;
14006
14007     interix3*)
14008       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14009       # Instead, we relocate shared libraries at runtime.
14010       ;;
14011
14012     msdosdjgpp*)
14013       # Just because we use GCC doesn't mean we suddenly get shared libraries
14014       # on systems that don't support them.
14015       lt_prog_compiler_can_build_shared_F77=no
14016       enable_shared=no
14017       ;;
14018
14019     sysv4*MP*)
14020       if test -d /usr/nec; then
14021         lt_prog_compiler_pic_F77=-Kconform_pic
14022       fi
14023       ;;
14024
14025     hpux*)
14026       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14027       # not for PA HP-UX.
14028       case $host_cpu in
14029       hppa*64*|ia64*)
14030         # +Z the default
14031         ;;
14032       *)
14033         lt_prog_compiler_pic_F77='-fPIC'
14034         ;;
14035       esac
14036       ;;
14037
14038     *)
14039       lt_prog_compiler_pic_F77='-fPIC'
14040       ;;
14041     esac
14042   else
14043     # PORTME Check for flag to pass linker flags through the system compiler.
14044     case $host_os in
14045     aix*)
14046       lt_prog_compiler_wl_F77='-Wl,'
14047       if test "$host_cpu" = ia64; then
14048         # AIX 5 now supports IA64 processor
14049         lt_prog_compiler_static_F77='-Bstatic'
14050       else
14051         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14052       fi
14053       ;;
14054       darwin*)
14055         # PIC is the default on this platform
14056         # Common symbols not allowed in MH_DYLIB files
14057        case $cc_basename in
14058          xlc*)
14059          lt_prog_compiler_pic_F77='-qnocommon'
14060          lt_prog_compiler_wl_F77='-Wl,'
14061          ;;
14062        esac
14063        ;;
14064
14065     mingw* | pw32* | os2*)
14066       # This hack is so that the source file can tell whether it is being
14067       # built for inclusion in a dll (and should export symbols for example).
14068       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14069       ;;
14070
14071     hpux9* | hpux10* | hpux11*)
14072       lt_prog_compiler_wl_F77='-Wl,'
14073       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14074       # not for PA HP-UX.
14075       case $host_cpu in
14076       hppa*64*|ia64*)
14077         # +Z the default
14078         ;;
14079       *)
14080         lt_prog_compiler_pic_F77='+Z'
14081         ;;
14082       esac
14083       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14084       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14085       ;;
14086
14087     irix5* | irix6* | nonstopux*)
14088       lt_prog_compiler_wl_F77='-Wl,'
14089       # PIC (with -KPIC) is the default.
14090       lt_prog_compiler_static_F77='-non_shared'
14091       ;;
14092
14093     newsos6)
14094       lt_prog_compiler_pic_F77='-KPIC'
14095       lt_prog_compiler_static_F77='-Bstatic'
14096       ;;
14097
14098     linux*)
14099       case $cc_basename in
14100       icc* | ecc*)
14101         lt_prog_compiler_wl_F77='-Wl,'
14102         lt_prog_compiler_pic_F77='-KPIC'
14103         lt_prog_compiler_static_F77='-static'
14104         ;;
14105       pgcc* | pgf77* | pgf90* | pgf95*)
14106         # Portland Group compilers (*not* the Pentium gcc compiler,
14107         # which looks to be a dead project)
14108         lt_prog_compiler_wl_F77='-Wl,'
14109         lt_prog_compiler_pic_F77='-fpic'
14110         lt_prog_compiler_static_F77='-Bstatic'
14111         ;;
14112       ccc*)
14113         lt_prog_compiler_wl_F77='-Wl,'
14114         # All Alpha code is PIC.
14115         lt_prog_compiler_static_F77='-non_shared'
14116         ;;
14117       esac
14118       ;;
14119
14120     osf3* | osf4* | osf5*)
14121       lt_prog_compiler_wl_F77='-Wl,'
14122       # All OSF/1 code is PIC.
14123       lt_prog_compiler_static_F77='-non_shared'
14124       ;;
14125
14126     solaris*)
14127       lt_prog_compiler_pic_F77='-KPIC'
14128       lt_prog_compiler_static_F77='-Bstatic'
14129       case $cc_basename in
14130       f77* | f90* | f95*)
14131         lt_prog_compiler_wl_F77='-Qoption ld ';;
14132       *)
14133         lt_prog_compiler_wl_F77='-Wl,';;
14134       esac
14135       ;;
14136
14137     sunos4*)
14138       lt_prog_compiler_wl_F77='-Qoption ld '
14139       lt_prog_compiler_pic_F77='-PIC'
14140       lt_prog_compiler_static_F77='-Bstatic'
14141       ;;
14142
14143     sysv4 | sysv4.2uw2* | sysv4.3*)
14144       lt_prog_compiler_wl_F77='-Wl,'
14145       lt_prog_compiler_pic_F77='-KPIC'
14146       lt_prog_compiler_static_F77='-Bstatic'
14147       ;;
14148
14149     sysv4*MP*)
14150       if test -d /usr/nec ;then
14151         lt_prog_compiler_pic_F77='-Kconform_pic'
14152         lt_prog_compiler_static_F77='-Bstatic'
14153       fi
14154       ;;
14155
14156     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14157       lt_prog_compiler_wl_F77='-Wl,'
14158       lt_prog_compiler_pic_F77='-KPIC'
14159       lt_prog_compiler_static_F77='-Bstatic'
14160       ;;
14161
14162     unicos*)
14163       lt_prog_compiler_wl_F77='-Wl,'
14164       lt_prog_compiler_can_build_shared_F77=no
14165       ;;
14166
14167     uts4*)
14168       lt_prog_compiler_pic_F77='-pic'
14169       lt_prog_compiler_static_F77='-Bstatic'
14170       ;;
14171
14172     *)
14173       lt_prog_compiler_can_build_shared_F77=no
14174       ;;
14175     esac
14176   fi
14177
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14179 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14180
14181 #
14182 # Check to make sure the PIC flag actually works.
14183 #
14184 if test -n "$lt_prog_compiler_pic_F77"; then
14185
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14187 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14188 if ${lt_prog_compiler_pic_works_F77+:} false; then :
14189   $as_echo_n "(cached) " >&6
14190 else
14191   lt_prog_compiler_pic_works_F77=no
14192   ac_outfile=conftest.$ac_objext
14193    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14194    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14195    # Insert the option either (1) after the last *FLAGS variable, or
14196    # (2) before a word containing "conftest.", or (3) at the end.
14197    # Note that $ac_compile itself does not contain backslashes and begins
14198    # with a dollar sign (not a hyphen), so the echo should work correctly.
14199    # The option is referenced via a variable to avoid confusing sed.
14200    lt_compile=`echo "$ac_compile" | $SED \
14201    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14202    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14203    -e 's:$: $lt_compiler_flag:'`
14204    (eval echo "\"\$as_me:14204: $lt_compile\"" >&5)
14205    (eval "$lt_compile" 2>conftest.err)
14206    ac_status=$?
14207    cat conftest.err >&5
14208    echo "$as_me:14208: \$? = $ac_status" >&5
14209    if (exit $ac_status) && test -s "$ac_outfile"; then
14210      # The compiler can only warn and ignore the option if not recognized
14211      # So say no if there are warnings other than the usual output.
14212      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14213      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14214      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14215        lt_prog_compiler_pic_works_F77=yes
14216      fi
14217    fi
14218    $rm conftest*
14219
14220 fi
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
14222 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14223
14224 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14225     case $lt_prog_compiler_pic_F77 in
14226      "" | " "*) ;;
14227      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14228      esac
14229 else
14230     lt_prog_compiler_pic_F77=
14231      lt_prog_compiler_can_build_shared_F77=no
14232 fi
14233
14234 fi
14235 case $host_os in
14236   # For platforms which do not support PIC, -DPIC is meaningless:
14237   *djgpp*)
14238     lt_prog_compiler_pic_F77=
14239     ;;
14240   *)
14241     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14242     ;;
14243 esac
14244
14245 #
14246 # Check to make sure the static flag actually works.
14247 #
14248 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14250 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14251 if ${lt_prog_compiler_static_works_F77+:} false; then :
14252   $as_echo_n "(cached) " >&6
14253 else
14254   lt_prog_compiler_static_works_F77=no
14255    save_LDFLAGS="$LDFLAGS"
14256    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14257    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14258    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14259      # The linker can only warn and ignore the option if not recognized
14260      # So say no if there are warnings
14261      if test -s conftest.err; then
14262        # Append any errors to the config.log.
14263        cat conftest.err 1>&5
14264        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14265        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14266        if diff conftest.exp conftest.er2 >/dev/null; then
14267          lt_prog_compiler_static_works_F77=yes
14268        fi
14269      else
14270        lt_prog_compiler_static_works_F77=yes
14271      fi
14272    fi
14273    $rm conftest*
14274    LDFLAGS="$save_LDFLAGS"
14275
14276 fi
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
14278 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14279
14280 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14281     :
14282 else
14283     lt_prog_compiler_static_F77=
14284 fi
14285
14286
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14289 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14290   $as_echo_n "(cached) " >&6
14291 else
14292   lt_cv_prog_compiler_c_o_F77=no
14293    $rm -r conftest 2>/dev/null
14294    mkdir conftest
14295    cd conftest
14296    mkdir out
14297    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14298
14299    lt_compiler_flag="-o out/conftest2.$ac_objext"
14300    # Insert the option either (1) after the last *FLAGS variable, or
14301    # (2) before a word containing "conftest.", or (3) at the end.
14302    # Note that $ac_compile itself does not contain backslashes and begins
14303    # with a dollar sign (not a hyphen), so the echo should work correctly.
14304    lt_compile=`echo "$ac_compile" | $SED \
14305    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14306    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14307    -e 's:$: $lt_compiler_flag:'`
14308    (eval echo "\"\$as_me:14308: $lt_compile\"" >&5)
14309    (eval "$lt_compile" 2>out/conftest.err)
14310    ac_status=$?
14311    cat out/conftest.err >&5
14312    echo "$as_me:14312: \$? = $ac_status" >&5
14313    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14314    then
14315      # The compiler can only warn and ignore the option if not recognized
14316      # So say no if there are warnings
14317      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14318      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14319      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14320        lt_cv_prog_compiler_c_o_F77=yes
14321      fi
14322    fi
14323    chmod u+w . 2>&5
14324    $rm conftest*
14325    # SGI C++ compiler will create directory out/ii_files/ for
14326    # template instantiation
14327    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14328    $rm out/* && rmdir out
14329    cd ..
14330    rmdir conftest
14331    $rm conftest*
14332
14333 fi
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14335 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14336
14337
14338 hard_links="nottested"
14339 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14340   # do not overwrite the value of need_locks provided by the user
14341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14342 $as_echo_n "checking if we can lock with hard links... " >&6; }
14343   hard_links=yes
14344   $rm conftest*
14345   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14346   touch conftest.a
14347   ln conftest.a conftest.b 2>&5 || hard_links=no
14348   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14350 $as_echo "$hard_links" >&6; }
14351   if test "$hard_links" = no; then
14352     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14353 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14354     need_locks=warn
14355   fi
14356 else
14357   need_locks=no
14358 fi
14359
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14361 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14362
14363   runpath_var=
14364   allow_undefined_flag_F77=
14365   enable_shared_with_static_runtimes_F77=no
14366   archive_cmds_F77=
14367   archive_expsym_cmds_F77=
14368   old_archive_From_new_cmds_F77=
14369   old_archive_from_expsyms_cmds_F77=
14370   export_dynamic_flag_spec_F77=
14371   whole_archive_flag_spec_F77=
14372   thread_safe_flag_spec_F77=
14373   hardcode_libdir_flag_spec_F77=
14374   hardcode_libdir_flag_spec_ld_F77=
14375   hardcode_libdir_separator_F77=
14376   hardcode_direct_F77=no
14377   hardcode_minus_L_F77=no
14378   hardcode_shlibpath_var_F77=unsupported
14379   link_all_deplibs_F77=unknown
14380   hardcode_automatic_F77=no
14381   module_cmds_F77=
14382   module_expsym_cmds_F77=
14383   always_export_symbols_F77=no
14384   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14385   # include_expsyms should be a list of space-separated symbols to be *always*
14386   # included in the symbol list
14387   include_expsyms_F77=
14388   # exclude_expsyms can be an extended regexp of symbols to exclude
14389   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14390   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14391   # as well as any symbol that contains `d'.
14392   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14393   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14394   # platforms (ab)use it in PIC code, but their linkers get confused if
14395   # the symbol is explicitly referenced.  Since portable code cannot
14396   # rely on this symbol name, it's probably fine to never include it in
14397   # preloaded symbol tables.
14398   extract_expsyms_cmds=
14399   # Just being paranoid about ensuring that cc_basename is set.
14400   for cc_temp in $compiler""; do
14401   case $cc_temp in
14402     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14403     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14404     \-*) ;;
14405     *) break;;
14406   esac
14407 done
14408 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14409
14410   case $host_os in
14411   cygwin* | mingw* | pw32*)
14412     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14413     # When not using gcc, we currently assume that we are using
14414     # Microsoft Visual C++.
14415     if test "$GCC" != yes; then
14416       with_gnu_ld=no
14417     fi
14418     ;;
14419   interix*)
14420     # we just hope/assume this is gcc and not c89 (= MSVC++)
14421     with_gnu_ld=yes
14422     ;;
14423   openbsd*)
14424     with_gnu_ld=no
14425     ;;
14426   esac
14427
14428   ld_shlibs_F77=yes
14429   if test "$with_gnu_ld" = yes; then
14430     # If archive_cmds runs LD, not CC, wlarc should be empty
14431     wlarc='${wl}'
14432
14433     # Set some defaults for GNU ld with shared library support. These
14434     # are reset later if shared libraries are not supported. Putting them
14435     # here allows them to be overridden if necessary.
14436     runpath_var=LD_RUN_PATH
14437     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14438     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14439     # ancient GNU ld didn't support --whole-archive et. al.
14440     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14441         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14442       else
14443         whole_archive_flag_spec_F77=
14444     fi
14445     supports_anon_versioning=no
14446     case `$LD -v 2>/dev/null` in
14447       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14448       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14449       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14450       *\ 2.11.*) ;; # other 2.11 versions
14451       *) supports_anon_versioning=yes ;;
14452     esac
14453
14454     # See if GNU ld supports shared libraries.
14455     case $host_os in
14456     aix3* | aix4* | aix5*)
14457       # On AIX/PPC, the GNU linker is very broken
14458       if test "$host_cpu" != ia64; then
14459         ld_shlibs_F77=no
14460         cat <<EOF 1>&2
14461
14462 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14463 *** to be unable to reliably create shared libraries on AIX.
14464 *** Therefore, libtool is disabling shared libraries support.  If you
14465 *** really care for shared libraries, you may want to modify your PATH
14466 *** so that a non-GNU linker is found, and then restart.
14467
14468 EOF
14469       fi
14470       ;;
14471
14472     amigaos*)
14473       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)'
14474       hardcode_libdir_flag_spec_F77='-L$libdir'
14475       hardcode_minus_L_F77=yes
14476
14477       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14478       # that the semantics of dynamic libraries on AmigaOS, at least up
14479       # to version 4, is to share data among multiple programs linked
14480       # with the same dynamic library.  Since this doesn't match the
14481       # behavior of shared libraries on other platforms, we can't use
14482       # them.
14483       ld_shlibs_F77=no
14484       ;;
14485
14486     beos*)
14487       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14488         allow_undefined_flag_F77=unsupported
14489         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14490         # support --undefined.  This deserves some investigation.  FIXME
14491         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14492       else
14493         ld_shlibs_F77=no
14494       fi
14495       ;;
14496
14497     cygwin* | mingw* | pw32*)
14498       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14499       # as there is no search path for DLLs.
14500       hardcode_libdir_flag_spec_F77='-L$libdir'
14501       allow_undefined_flag_F77=unsupported
14502       always_export_symbols_F77=no
14503       enable_shared_with_static_runtimes_F77=yes
14504       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14505
14506       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14507         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14508         # If the export-symbols file already is a .def file (1st line
14509         # is EXPORTS), use it as is; otherwise, prepend...
14510         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14511           cp $export_symbols $output_objdir/$soname.def;
14512         else
14513           echo EXPORTS > $output_objdir/$soname.def;
14514           cat $export_symbols >> $output_objdir/$soname.def;
14515         fi~
14516         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14517       else
14518         ld_shlibs_F77=no
14519       fi
14520       ;;
14521
14522     interix3*)
14523       hardcode_direct_F77=no
14524       hardcode_shlibpath_var_F77=no
14525       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14526       export_dynamic_flag_spec_F77='${wl}-E'
14527       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14528       # Instead, shared libraries are loaded at an image base (0x10000000 by
14529       # default) and relocated if they conflict, which is a slow very memory
14530       # consuming and fragmenting process.  To avoid this, we pick a random,
14531       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14532       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14533       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14534       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14535       ;;
14536
14537     linux*)
14538       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14539         tmp_addflag=
14540         case $cc_basename,$host_cpu in
14541         pgcc*)                          # Portland Group C compiler
14542           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14543           tmp_addflag=' $pic_flag'
14544           ;;
14545         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14546           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14547           tmp_addflag=' $pic_flag -Mnomain' ;;
14548         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14549           tmp_addflag=' -i_dynamic' ;;
14550         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14551           tmp_addflag=' -i_dynamic -nofor_main' ;;
14552         ifc* | ifort*)                  # Intel Fortran compiler
14553           tmp_addflag=' -nofor_main' ;;
14554         esac
14555         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14556
14557         if test $supports_anon_versioning = yes; then
14558           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14559   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14560   $echo "local: *; };" >> $output_objdir/$libname.ver~
14561           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14562         fi
14563       else
14564         ld_shlibs_F77=no
14565       fi
14566       ;;
14567
14568     netbsd*)
14569       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14570         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14571         wlarc=
14572       else
14573         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14574         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14575       fi
14576       ;;
14577
14578     solaris*)
14579       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14580         ld_shlibs_F77=no
14581         cat <<EOF 1>&2
14582
14583 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14584 *** create shared libraries on Solaris systems.  Therefore, libtool
14585 *** is disabling shared libraries support.  We urge you to upgrade GNU
14586 *** binutils to release 2.9.1 or newer.  Another option is to modify
14587 *** your PATH or compiler configuration so that the native linker is
14588 *** used, and then restart.
14589
14590 EOF
14591       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14592         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14593         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14594       else
14595         ld_shlibs_F77=no
14596       fi
14597       ;;
14598
14599     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14600       case `$LD -v 2>&1` in
14601         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14602         ld_shlibs_F77=no
14603         cat <<_LT_EOF 1>&2
14604
14605 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14606 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14607 *** is disabling shared libraries support.  We urge you to upgrade GNU
14608 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14609 *** your PATH or compiler configuration so that the native linker is
14610 *** used, and then restart.
14611
14612 _LT_EOF
14613         ;;
14614         *)
14615           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14616             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14617             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14618             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14619           else
14620             ld_shlibs_F77=no
14621           fi
14622         ;;
14623       esac
14624       ;;
14625
14626     sunos4*)
14627       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14628       wlarc=
14629       hardcode_direct_F77=yes
14630       hardcode_shlibpath_var_F77=no
14631       ;;
14632
14633     *)
14634       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14635         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14636         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14637       else
14638         ld_shlibs_F77=no
14639       fi
14640       ;;
14641     esac
14642
14643     if test "$ld_shlibs_F77" = no; then
14644       runpath_var=
14645       hardcode_libdir_flag_spec_F77=
14646       export_dynamic_flag_spec_F77=
14647       whole_archive_flag_spec_F77=
14648     fi
14649   else
14650     # PORTME fill in a description of your system's linker (not GNU ld)
14651     case $host_os in
14652     aix3*)
14653       allow_undefined_flag_F77=unsupported
14654       always_export_symbols_F77=yes
14655       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'
14656       # Note: this linker hardcodes the directories in LIBPATH if there
14657       # are no directories specified by -L.
14658       hardcode_minus_L_F77=yes
14659       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14660         # Neither direct hardcoding nor static linking is supported with a
14661         # broken collect2.
14662         hardcode_direct_F77=unsupported
14663       fi
14664       ;;
14665
14666     aix4* | aix5*)
14667       if test "$host_cpu" = ia64; then
14668         # On IA64, the linker does run time linking by default, so we don't
14669         # have to do anything special.
14670         aix_use_runtimelinking=no
14671         exp_sym_flag='-Bexport'
14672         no_entry_flag=""
14673       else
14674         # If we're using GNU nm, then we don't want the "-C" option.
14675         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14676         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14677           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'
14678         else
14679           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'
14680         fi
14681         aix_use_runtimelinking=no
14682
14683         # Test if we are trying to use run time linking or normal
14684         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14685         # need to do runtime linking.
14686         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14687           for ld_flag in $LDFLAGS; do
14688           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14689             aix_use_runtimelinking=yes
14690             break
14691           fi
14692           done
14693           ;;
14694         esac
14695
14696         exp_sym_flag='-bexport'
14697         no_entry_flag='-bnoentry'
14698       fi
14699
14700       # When large executables or shared objects are built, AIX ld can
14701       # have problems creating the table of contents.  If linking a library
14702       # or program results in "error TOC overflow" add -mminimal-toc to
14703       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14704       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14705
14706       archive_cmds_F77=''
14707       hardcode_direct_F77=yes
14708       hardcode_libdir_separator_F77=':'
14709       link_all_deplibs_F77=yes
14710
14711       if test "$GCC" = yes; then
14712         case $host_os in aix4.[012]|aix4.[012].*)
14713         # We only want to do this on AIX 4.2 and lower, the check
14714         # below for broken collect2 doesn't work under 4.3+
14715           collect2name=`${CC} -print-prog-name=collect2`
14716           if test -f "$collect2name" && \
14717            strings "$collect2name" | grep resolve_lib_name >/dev/null
14718           then
14719           # We have reworked collect2
14720           hardcode_direct_F77=yes
14721           else
14722           # We have old collect2
14723           hardcode_direct_F77=unsupported
14724           # It fails to find uninstalled libraries when the uninstalled
14725           # path is not listed in the libpath.  Setting hardcode_minus_L
14726           # to unsupported forces relinking
14727           hardcode_minus_L_F77=yes
14728           hardcode_libdir_flag_spec_F77='-L$libdir'
14729           hardcode_libdir_separator_F77=
14730           fi
14731           ;;
14732         esac
14733         shared_flag='-shared'
14734         if test "$aix_use_runtimelinking" = yes; then
14735           shared_flag="$shared_flag "'${wl}-G'
14736         fi
14737       else
14738         # not using gcc
14739         if test "$host_cpu" = ia64; then
14740         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14741         # chokes on -Wl,-G. The following line is correct:
14742           shared_flag='-G'
14743         else
14744           if test "$aix_use_runtimelinking" = yes; then
14745             shared_flag='${wl}-G'
14746           else
14747             shared_flag='${wl}-bM:SRE'
14748           fi
14749         fi
14750       fi
14751
14752       # It seems that -bexpall does not export symbols beginning with
14753       # underscore (_), so it is better to generate a list of symbols to export.
14754       always_export_symbols_F77=yes
14755       if test "$aix_use_runtimelinking" = yes; then
14756         # Warning - without using the other runtime loading flags (-brtl),
14757         # -berok will link without error, but may produce a broken library.
14758         allow_undefined_flag_F77='-berok'
14759        # Determine the default libpath from the value encoded in an empty executable.
14760        cat > conftest.$ac_ext <<_ACEOF
14761       program main
14762
14763       end
14764 _ACEOF
14765 if ac_fn_f77_try_link "$LINENO"; then :
14766
14767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14768 }'`
14769 # Check for a 64-bit object if we didn't find anything.
14770 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; }
14771 }'`; fi
14772 fi
14773 rm -f core conftest.err conftest.$ac_objext \
14774     conftest$ac_exeext conftest.$ac_ext
14775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14776
14777        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14778         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14779        else
14780         if test "$host_cpu" = ia64; then
14781           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14782           allow_undefined_flag_F77="-z nodefs"
14783           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14784         else
14785          # Determine the default libpath from the value encoded in an empty executable.
14786          cat > conftest.$ac_ext <<_ACEOF
14787       program main
14788
14789       end
14790 _ACEOF
14791 if ac_fn_f77_try_link "$LINENO"; then :
14792
14793 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14794 }'`
14795 # Check for a 64-bit object if we didn't find anything.
14796 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; }
14797 }'`; fi
14798 fi
14799 rm -f core conftest.err conftest.$ac_objext \
14800     conftest$ac_exeext conftest.$ac_ext
14801 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14802
14803          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14804           # Warning - without using the other run time loading flags,
14805           # -berok will link without error, but may produce a broken library.
14806           no_undefined_flag_F77=' ${wl}-bernotok'
14807           allow_undefined_flag_F77=' ${wl}-berok'
14808           # Exported symbols can be pulled into shared objects from archives
14809           whole_archive_flag_spec_F77='$convenience'
14810           archive_cmds_need_lc_F77=yes
14811           # This is similar to how AIX traditionally builds its shared libraries.
14812           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14813         fi
14814       fi
14815       ;;
14816
14817     amigaos*)
14818       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)'
14819       hardcode_libdir_flag_spec_F77='-L$libdir'
14820       hardcode_minus_L_F77=yes
14821       # see comment about different semantics on the GNU ld section
14822       ld_shlibs_F77=no
14823       ;;
14824
14825     bsdi[45]*)
14826       export_dynamic_flag_spec_F77=-rdynamic
14827       ;;
14828
14829     cygwin* | mingw* | pw32*)
14830       # When not using gcc, we currently assume that we are using
14831       # Microsoft Visual C++.
14832       # hardcode_libdir_flag_spec is actually meaningless, as there is
14833       # no search path for DLLs.
14834       hardcode_libdir_flag_spec_F77=' '
14835       allow_undefined_flag_F77=unsupported
14836       # Tell ltmain to make .lib files, not .a files.
14837       libext=lib
14838       # Tell ltmain to make .dll files, not .so files.
14839       shrext_cmds=".dll"
14840       # FIXME: Setting linknames here is a bad hack.
14841       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14842       # The linker will automatically build a .lib file if we build a DLL.
14843       old_archive_From_new_cmds_F77='true'
14844       # FIXME: Should let the user specify the lib program.
14845       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14846       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14847       enable_shared_with_static_runtimes_F77=yes
14848       ;;
14849
14850     darwin* | rhapsody*)
14851       case $host_os in
14852         rhapsody* | darwin1.[012])
14853          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14854          ;;
14855        *) # Darwin 1.3 on
14856          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14857            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14858          else
14859            case ${MACOSX_DEPLOYMENT_TARGET} in
14860              10.[012])
14861                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14862                ;;
14863              10.*)
14864                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14865                ;;
14866            esac
14867          fi
14868          ;;
14869       esac
14870       archive_cmds_need_lc_F77=no
14871       hardcode_direct_F77=no
14872       hardcode_automatic_F77=yes
14873       hardcode_shlibpath_var_F77=unsupported
14874       whole_archive_flag_spec_F77=''
14875       link_all_deplibs_F77=yes
14876     if test "$GCC" = yes ; then
14877         output_verbose_link_cmd='echo'
14878         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14879       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14880       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14881       archive_expsym_cmds_F77='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}'
14882       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}'
14883     else
14884       case $cc_basename in
14885         xlc*)
14886          output_verbose_link_cmd='echo'
14887          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14888          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14889           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14890          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14891           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}'
14892           ;;
14893        *)
14894          ld_shlibs_F77=no
14895           ;;
14896       esac
14897     fi
14898       ;;
14899
14900     dgux*)
14901       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14902       hardcode_libdir_flag_spec_F77='-L$libdir'
14903       hardcode_shlibpath_var_F77=no
14904       ;;
14905
14906     freebsd1*)
14907       ld_shlibs_F77=no
14908       ;;
14909
14910     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14911     # support.  Future versions do this automatically, but an explicit c++rt0.o
14912     # does not break anything, and helps significantly (at the cost of a little
14913     # extra space).
14914     freebsd2.2*)
14915       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14916       hardcode_libdir_flag_spec_F77='-R$libdir'
14917       hardcode_direct_F77=yes
14918       hardcode_shlibpath_var_F77=no
14919       ;;
14920
14921     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14922     freebsd2*)
14923       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14924       hardcode_direct_F77=yes
14925       hardcode_minus_L_F77=yes
14926       hardcode_shlibpath_var_F77=no
14927       ;;
14928
14929     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14930     freebsd* | kfreebsd*-gnu | dragonfly*)
14931       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14932       hardcode_libdir_flag_spec_F77='-R$libdir'
14933       hardcode_direct_F77=yes
14934       hardcode_shlibpath_var_F77=no
14935       ;;
14936
14937     hpux9*)
14938       if test "$GCC" = yes; then
14939         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'
14940       else
14941         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'
14942       fi
14943       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14944       hardcode_libdir_separator_F77=:
14945       hardcode_direct_F77=yes
14946
14947       # hardcode_minus_L: Not really in the search PATH,
14948       # but as the default location of the library.
14949       hardcode_minus_L_F77=yes
14950       export_dynamic_flag_spec_F77='${wl}-E'
14951       ;;
14952
14953     hpux10*)
14954       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14955         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14956       else
14957         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14958       fi
14959       if test "$with_gnu_ld" = no; then
14960         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14961         hardcode_libdir_separator_F77=:
14962
14963         hardcode_direct_F77=yes
14964         export_dynamic_flag_spec_F77='${wl}-E'
14965
14966         # hardcode_minus_L: Not really in the search PATH,
14967         # but as the default location of the library.
14968         hardcode_minus_L_F77=yes
14969       fi
14970       ;;
14971
14972     hpux11*)
14973       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14974         case $host_cpu in
14975         hppa*64*)
14976           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14977           ;;
14978         ia64*)
14979           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14980           ;;
14981         *)
14982           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14983           ;;
14984         esac
14985       else
14986         case $host_cpu in
14987         hppa*64*)
14988           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14989           ;;
14990         ia64*)
14991           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14992           ;;
14993         *)
14994           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14995           ;;
14996         esac
14997       fi
14998       if test "$with_gnu_ld" = no; then
14999         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15000         hardcode_libdir_separator_F77=:
15001
15002         case $host_cpu in
15003         hppa*64*|ia64*)
15004           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15005           hardcode_direct_F77=no
15006           hardcode_shlibpath_var_F77=no
15007           ;;
15008         *)
15009           hardcode_direct_F77=yes
15010           export_dynamic_flag_spec_F77='${wl}-E'
15011
15012           # hardcode_minus_L: Not really in the search PATH,
15013           # but as the default location of the library.
15014           hardcode_minus_L_F77=yes
15015           ;;
15016         esac
15017       fi
15018       ;;
15019
15020     irix5* | irix6* | nonstopux*)
15021       if test "$GCC" = yes; then
15022         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'
15023       else
15024         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'
15025         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15026       fi
15027       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15028       hardcode_libdir_separator_F77=:
15029       link_all_deplibs_F77=yes
15030       ;;
15031
15032     netbsd*)
15033       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15034         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15035       else
15036         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15037       fi
15038       hardcode_libdir_flag_spec_F77='-R$libdir'
15039       hardcode_direct_F77=yes
15040       hardcode_shlibpath_var_F77=no
15041       ;;
15042
15043     newsos6)
15044       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15045       hardcode_direct_F77=yes
15046       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15047       hardcode_libdir_separator_F77=:
15048       hardcode_shlibpath_var_F77=no
15049       ;;
15050
15051     openbsd*)
15052       hardcode_direct_F77=yes
15053       hardcode_shlibpath_var_F77=no
15054       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15055         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15056         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15057         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15058         export_dynamic_flag_spec_F77='${wl}-E'
15059       else
15060        case $host_os in
15061          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15062            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15063            hardcode_libdir_flag_spec_F77='-R$libdir'
15064            ;;
15065          *)
15066            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15067            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15068            ;;
15069        esac
15070       fi
15071       ;;
15072
15073     os2*)
15074       hardcode_libdir_flag_spec_F77='-L$libdir'
15075       hardcode_minus_L_F77=yes
15076       allow_undefined_flag_F77=unsupported
15077       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'
15078       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15079       ;;
15080
15081     osf3*)
15082       if test "$GCC" = yes; then
15083         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15084         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'
15085       else
15086         allow_undefined_flag_F77=' -expect_unresolved \*'
15087         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'
15088       fi
15089       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15090       hardcode_libdir_separator_F77=:
15091       ;;
15092
15093     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15094       if test "$GCC" = yes; then
15095         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15096         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'
15097         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15098       else
15099         allow_undefined_flag_F77=' -expect_unresolved \*'
15100         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'
15101         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~
15102         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15103
15104         # Both c and cxx compiler support -rpath directly
15105         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15106       fi
15107       hardcode_libdir_separator_F77=:
15108       ;;
15109
15110     solaris*)
15111       no_undefined_flag_F77=' -z text'
15112       if test "$GCC" = yes; then
15113         wlarc='${wl}'
15114         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15115         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15116           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15117       else
15118         wlarc=''
15119         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15121         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15122       fi
15123       hardcode_libdir_flag_spec_F77='-R$libdir'
15124       hardcode_shlibpath_var_F77=no
15125       case $host_os in
15126       solaris2.[0-5] | solaris2.[0-5].*) ;;
15127       *)
15128         # The compiler driver will combine linker options so we
15129         # cannot just pass the convience library names through
15130         # without $wl, iff we do not link with $LD.
15131         # Luckily, gcc supports the same syntax we need for Sun Studio.
15132         # Supported since Solaris 2.6 (maybe 2.5.1?)
15133         case $wlarc in
15134         '')
15135           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15136         *)
15137           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15138         esac ;;
15139       esac
15140       link_all_deplibs_F77=yes
15141       ;;
15142
15143     sunos4*)
15144       if test "x$host_vendor" = xsequent; then
15145         # Use $CC to link under sequent, because it throws in some extra .o
15146         # files that make .init and .fini sections work.
15147         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15148       else
15149         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15150       fi
15151       hardcode_libdir_flag_spec_F77='-L$libdir'
15152       hardcode_direct_F77=yes
15153       hardcode_minus_L_F77=yes
15154       hardcode_shlibpath_var_F77=no
15155       ;;
15156
15157     sysv4)
15158       case $host_vendor in
15159         sni)
15160           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15161           hardcode_direct_F77=yes # is this really true???
15162         ;;
15163         siemens)
15164           ## LD is ld it makes a PLAMLIB
15165           ## CC just makes a GrossModule.
15166           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15167           reload_cmds_F77='$CC -r -o $output$reload_objs'
15168           hardcode_direct_F77=no
15169         ;;
15170         motorola)
15171           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15172           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15173         ;;
15174       esac
15175       runpath_var='LD_RUN_PATH'
15176       hardcode_shlibpath_var_F77=no
15177       ;;
15178
15179     sysv4.3*)
15180       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15181       hardcode_shlibpath_var_F77=no
15182       export_dynamic_flag_spec_F77='-Bexport'
15183       ;;
15184
15185     sysv4*MP*)
15186       if test -d /usr/nec; then
15187         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15188         hardcode_shlibpath_var_F77=no
15189         runpath_var=LD_RUN_PATH
15190         hardcode_runpath_var=yes
15191         ld_shlibs_F77=yes
15192       fi
15193       ;;
15194
15195     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15196       no_undefined_flag_F77='${wl}-z,text'
15197       archive_cmds_need_lc_F77=no
15198       hardcode_shlibpath_var_F77=no
15199       runpath_var='LD_RUN_PATH'
15200
15201       if test "$GCC" = yes; then
15202         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15203         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15204       else
15205         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15206         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15207       fi
15208       ;;
15209
15210     sysv5* | sco3.2v5* | sco5v6*)
15211       # Note: We can NOT use -z defs as we might desire, because we do not
15212       # link with -lc, and that would cause any symbols used from libc to
15213       # always be unresolved, which means just about no library would
15214       # ever link correctly.  If we're not using GNU ld we use -z text
15215       # though, which does catch some bad symbols but isn't as heavy-handed
15216       # as -z defs.
15217       no_undefined_flag_F77='${wl}-z,text'
15218       allow_undefined_flag_F77='${wl}-z,nodefs'
15219       archive_cmds_need_lc_F77=no
15220       hardcode_shlibpath_var_F77=no
15221       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15222       hardcode_libdir_separator_F77=':'
15223       link_all_deplibs_F77=yes
15224       export_dynamic_flag_spec_F77='${wl}-Bexport'
15225       runpath_var='LD_RUN_PATH'
15226
15227       if test "$GCC" = yes; then
15228         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15229         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15230       else
15231         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15232         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15233       fi
15234       ;;
15235
15236     uts4*)
15237       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15238       hardcode_libdir_flag_spec_F77='-L$libdir'
15239       hardcode_shlibpath_var_F77=no
15240       ;;
15241
15242     *)
15243       ld_shlibs_F77=no
15244       ;;
15245     esac
15246   fi
15247
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15249 $as_echo "$ld_shlibs_F77" >&6; }
15250 test "$ld_shlibs_F77" = no && can_build_shared=no
15251
15252 #
15253 # Do we need to explicitly link libc?
15254 #
15255 case "x$archive_cmds_need_lc_F77" in
15256 x|xyes)
15257   # Assume -lc should be added
15258   archive_cmds_need_lc_F77=yes
15259
15260   if test "$enable_shared" = yes && test "$GCC" = yes; then
15261     case $archive_cmds_F77 in
15262     *'~'*)
15263       # FIXME: we may have to deal with multi-command sequences.
15264       ;;
15265     '$CC '*)
15266       # Test whether the compiler implicitly links with -lc since on some
15267       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15268       # to ld, don't add -lc before -lgcc.
15269       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15270 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15271       $rm conftest*
15272       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15273
15274       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15275   (eval $ac_compile) 2>&5
15276   ac_status=$?
15277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15278   test $ac_status = 0; } 2>conftest.err; then
15279         soname=conftest
15280         lib=conftest
15281         libobjs=conftest.$ac_objext
15282         deplibs=
15283         wl=$lt_prog_compiler_wl_F77
15284         pic_flag=$lt_prog_compiler_pic_F77
15285         compiler_flags=-v
15286         linker_flags=-v
15287         verstring=
15288         output_objdir=.
15289         libname=conftest
15290         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15291         allow_undefined_flag_F77=
15292         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15293   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15294   ac_status=$?
15295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15296   test $ac_status = 0; }
15297         then
15298           archive_cmds_need_lc_F77=no
15299         else
15300           archive_cmds_need_lc_F77=yes
15301         fi
15302         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15303       else
15304         cat conftest.err 1>&5
15305       fi
15306       $rm conftest*
15307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15308 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15309       ;;
15310     esac
15311   fi
15312   ;;
15313 esac
15314
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15316 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15317 library_names_spec=
15318 libname_spec='lib$name'
15319 soname_spec=
15320 shrext_cmds=".so"
15321 postinstall_cmds=
15322 postuninstall_cmds=
15323 finish_cmds=
15324 finish_eval=
15325 shlibpath_var=
15326 shlibpath_overrides_runpath=unknown
15327 version_type=none
15328 dynamic_linker="$host_os ld.so"
15329 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15330 if test "$GCC" = yes; then
15331   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15332   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15333     # if the path contains ";" then we assume it to be the separator
15334     # otherwise default to the standard path separator (i.e. ":") - it is
15335     # assumed that no part of a normal pathname contains ";" but that should
15336     # okay in the real world where ";" in dirpaths is itself problematic.
15337     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15338   else
15339     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15340   fi
15341 else
15342   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15343 fi
15344 need_lib_prefix=unknown
15345 hardcode_into_libs=no
15346
15347 # when you set need_version to no, make sure it does not cause -set_version
15348 # flags to be left without arguments
15349 need_version=unknown
15350
15351 case $host_os in
15352 aix3*)
15353   version_type=linux
15354   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15355   shlibpath_var=LIBPATH
15356
15357   # AIX 3 has no versioning support, so we append a major version to the name.
15358   soname_spec='${libname}${release}${shared_ext}$major'
15359   ;;
15360
15361 aix4* | aix5*)
15362   version_type=linux
15363   need_lib_prefix=no
15364   need_version=no
15365   hardcode_into_libs=yes
15366   if test "$host_cpu" = ia64; then
15367     # AIX 5 supports IA64
15368     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15369     shlibpath_var=LD_LIBRARY_PATH
15370   else
15371     # With GCC up to 2.95.x, collect2 would create an import file
15372     # for dependence libraries.  The import file would start with
15373     # the line `#! .'.  This would cause the generated library to
15374     # depend on `.', always an invalid library.  This was fixed in
15375     # development snapshots of GCC prior to 3.0.
15376     case $host_os in
15377       aix4 | aix4.[01] | aix4.[01].*)
15378       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15379            echo ' yes '
15380            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15381         :
15382       else
15383         can_build_shared=no
15384       fi
15385       ;;
15386     esac
15387     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15388     # soname into executable. Probably we can add versioning support to
15389     # collect2, so additional links can be useful in future.
15390     if test "$aix_use_runtimelinking" = yes; then
15391       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15392       # instead of lib<name>.a to let people know that these are not
15393       # typical AIX shared libraries.
15394       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395     else
15396       # We preserve .a as extension for shared libraries through AIX4.2
15397       # and later when we are not doing run time linking.
15398       library_names_spec='${libname}${release}.a $libname.a'
15399       soname_spec='${libname}${release}${shared_ext}$major'
15400     fi
15401     shlibpath_var=LIBPATH
15402   fi
15403   ;;
15404
15405 amigaos*)
15406   library_names_spec='$libname.ixlibrary $libname.a'
15407   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15408   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'
15409   ;;
15410
15411 beos*)
15412   library_names_spec='${libname}${shared_ext}'
15413   dynamic_linker="$host_os ld.so"
15414   shlibpath_var=LIBRARY_PATH
15415   ;;
15416
15417 bsdi[45]*)
15418   version_type=linux
15419   need_version=no
15420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15421   soname_spec='${libname}${release}${shared_ext}$major'
15422   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15423   shlibpath_var=LD_LIBRARY_PATH
15424   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15425   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15426   # the default ld.so.conf also contains /usr/contrib/lib and
15427   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15428   # libtool to hard-code these into programs
15429   ;;
15430
15431 cygwin* | mingw* | pw32*)
15432   version_type=windows
15433   shrext_cmds=".dll"
15434   need_version=no
15435   need_lib_prefix=no
15436
15437   case $GCC,$host_os in
15438   yes,cygwin* | yes,mingw* | yes,pw32*)
15439     library_names_spec='$libname.dll.a'
15440     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15441     postinstall_cmds='base_file=`basename \${file}`~
15442       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15443       dldir=$destdir/`dirname \$dlpath`~
15444       test -d \$dldir || mkdir -p \$dldir~
15445       $install_prog $dir/$dlname \$dldir/$dlname~
15446       chmod a+x \$dldir/$dlname'
15447     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15448       dlpath=$dir/\$dldll~
15449        $rm \$dlpath'
15450     shlibpath_overrides_runpath=yes
15451
15452     case $host_os in
15453     cygwin*)
15454       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15455       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15456       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15457       ;;
15458     mingw*)
15459       # MinGW DLLs use traditional 'lib' prefix
15460       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15461       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15462       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15463         # It is most probably a Windows format PATH printed by
15464         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15465         # path with ; separators, and with drive letters. We can handle the
15466         # drive letters (cygwin fileutils understands them), so leave them,
15467         # especially as we might pass files found there to a mingw objdump,
15468         # which wouldn't understand a cygwinified path. Ahh.
15469         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15470       else
15471         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15472       fi
15473       ;;
15474     pw32*)
15475       # pw32 DLLs use 'pw' prefix rather than 'lib'
15476       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15477       ;;
15478     esac
15479     ;;
15480
15481   *)
15482     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15483     ;;
15484   esac
15485   dynamic_linker='Win32 ld.exe'
15486   # FIXME: first we should search . and the directory the executable is in
15487   shlibpath_var=PATH
15488   ;;
15489
15490 darwin* | rhapsody*)
15491   dynamic_linker="$host_os dyld"
15492   version_type=darwin
15493   need_lib_prefix=no
15494   need_version=no
15495   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15496   soname_spec='${libname}${release}${major}$shared_ext'
15497   shlibpath_overrides_runpath=yes
15498   shlibpath_var=DYLD_LIBRARY_PATH
15499   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15500   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15501   if test "$GCC" = yes; then
15502     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"`
15503   else
15504     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15505   fi
15506   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15507   ;;
15508
15509 dgux*)
15510   version_type=linux
15511   need_lib_prefix=no
15512   need_version=no
15513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15514   soname_spec='${libname}${release}${shared_ext}$major'
15515   shlibpath_var=LD_LIBRARY_PATH
15516   ;;
15517
15518 freebsd1*)
15519   dynamic_linker=no
15520   ;;
15521
15522 kfreebsd*-gnu)
15523   version_type=linux
15524   need_lib_prefix=no
15525   need_version=no
15526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15527   soname_spec='${libname}${release}${shared_ext}$major'
15528   shlibpath_var=LD_LIBRARY_PATH
15529   shlibpath_overrides_runpath=no
15530   hardcode_into_libs=yes
15531   dynamic_linker='GNU ld.so'
15532   ;;
15533
15534 freebsd* | dragonfly*)
15535   # DragonFly does not have aout.  When/if they implement a new
15536   # versioning mechanism, adjust this.
15537   if test -x /usr/bin/objformat; then
15538     objformat=`/usr/bin/objformat`
15539   else
15540     case $host_os in
15541     freebsd[123]*) objformat=aout ;;
15542     *) objformat=elf ;;
15543     esac
15544   fi
15545   version_type=freebsd-$objformat
15546   case $version_type in
15547     freebsd-elf*)
15548       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15549       need_version=no
15550       need_lib_prefix=no
15551       ;;
15552     freebsd-*)
15553       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15554       need_version=yes
15555       ;;
15556   esac
15557   shlibpath_var=LD_LIBRARY_PATH
15558   case $host_os in
15559   freebsd2*)
15560     shlibpath_overrides_runpath=yes
15561     ;;
15562   freebsd3.[01]* | freebsdelf3.[01]*)
15563     shlibpath_overrides_runpath=yes
15564     hardcode_into_libs=yes
15565     ;;
15566   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15567   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15568     shlibpath_overrides_runpath=no
15569     hardcode_into_libs=yes
15570     ;;
15571   freebsd*) # from 4.6 on
15572     shlibpath_overrides_runpath=yes
15573     hardcode_into_libs=yes
15574     ;;
15575   esac
15576   ;;
15577
15578 gnu*)
15579   version_type=linux
15580   need_lib_prefix=no
15581   need_version=no
15582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15583   soname_spec='${libname}${release}${shared_ext}$major'
15584   shlibpath_var=LD_LIBRARY_PATH
15585   hardcode_into_libs=yes
15586   ;;
15587
15588 hpux9* | hpux10* | hpux11*)
15589   # Give a soname corresponding to the major version so that dld.sl refuses to
15590   # link against other versions.
15591   version_type=sunos
15592   need_lib_prefix=no
15593   need_version=no
15594   case $host_cpu in
15595   ia64*)
15596     shrext_cmds='.so'
15597     hardcode_into_libs=yes
15598     dynamic_linker="$host_os dld.so"
15599     shlibpath_var=LD_LIBRARY_PATH
15600     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602     soname_spec='${libname}${release}${shared_ext}$major'
15603     if test "X$HPUX_IA64_MODE" = X32; then
15604       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15605     else
15606       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15607     fi
15608     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15609     ;;
15610    hppa*64*)
15611      shrext_cmds='.sl'
15612      hardcode_into_libs=yes
15613      dynamic_linker="$host_os dld.sl"
15614      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15615      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15616      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617      soname_spec='${libname}${release}${shared_ext}$major'
15618      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15619      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15620      ;;
15621    *)
15622     shrext_cmds='.sl'
15623     dynamic_linker="$host_os dld.sl"
15624     shlibpath_var=SHLIB_PATH
15625     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627     soname_spec='${libname}${release}${shared_ext}$major'
15628     ;;
15629   esac
15630   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15631   postinstall_cmds='chmod 555 $lib'
15632   ;;
15633
15634 interix3*)
15635   version_type=linux
15636   need_lib_prefix=no
15637   need_version=no
15638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15639   soname_spec='${libname}${release}${shared_ext}$major'
15640   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15641   shlibpath_var=LD_LIBRARY_PATH
15642   shlibpath_overrides_runpath=no
15643   hardcode_into_libs=yes
15644   ;;
15645
15646 irix5* | irix6* | nonstopux*)
15647   case $host_os in
15648     nonstopux*) version_type=nonstopux ;;
15649     *)
15650         if test "$lt_cv_prog_gnu_ld" = yes; then
15651                 version_type=linux
15652         else
15653                 version_type=irix
15654         fi ;;
15655   esac
15656   need_lib_prefix=no
15657   need_version=no
15658   soname_spec='${libname}${release}${shared_ext}$major'
15659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15660   case $host_os in
15661   irix5* | nonstopux*)
15662     libsuff= shlibsuff=
15663     ;;
15664   *)
15665     case $LD in # libtool.m4 will add one of these switches to LD
15666     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15667       libsuff= shlibsuff= libmagic=32-bit;;
15668     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15669       libsuff=32 shlibsuff=N32 libmagic=N32;;
15670     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15671       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15672     *) libsuff= shlibsuff= libmagic=never-match;;
15673     esac
15674     ;;
15675   esac
15676   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15677   shlibpath_overrides_runpath=no
15678   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15679   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15680   hardcode_into_libs=yes
15681   ;;
15682
15683 # No shared lib support for Linux oldld, aout, or coff.
15684 linux*oldld* | linux*aout* | linux*coff*)
15685   dynamic_linker=no
15686   ;;
15687
15688 # This must be Linux ELF.
15689 linux*)
15690   version_type=linux
15691   need_lib_prefix=no
15692   need_version=no
15693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694   soname_spec='${libname}${release}${shared_ext}$major'
15695   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15696   shlibpath_var=LD_LIBRARY_PATH
15697   shlibpath_overrides_runpath=no
15698   # This implies no fast_install, which is unacceptable.
15699   # Some rework will be needed to allow for fast_install
15700   # before this can be enabled.
15701   hardcode_into_libs=yes
15702
15703   # Append ld.so.conf contents to the search path
15704   if test -f /etc/ld.so.conf; then
15705     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15706     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15707   fi
15708
15709   # We used to test for /lib/ld.so.1 and disable shared libraries on
15710   # powerpc, because MkLinux only supported shared libraries with the
15711   # GNU dynamic linker.  Since this was broken with cross compilers,
15712   # most powerpc-linux boxes support dynamic linking these days and
15713   # people can always --disable-shared, the test was removed, and we
15714   # assume the GNU/Linux dynamic linker is in use.
15715   dynamic_linker='GNU/Linux ld.so'
15716   ;;
15717
15718 knetbsd*-gnu)
15719   version_type=linux
15720   need_lib_prefix=no
15721   need_version=no
15722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15723   soname_spec='${libname}${release}${shared_ext}$major'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   shlibpath_overrides_runpath=no
15726   hardcode_into_libs=yes
15727   dynamic_linker='GNU ld.so'
15728   ;;
15729
15730 netbsd*)
15731   version_type=sunos
15732   need_lib_prefix=no
15733   need_version=no
15734   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15736     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15737     dynamic_linker='NetBSD (a.out) ld.so'
15738   else
15739     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15740     soname_spec='${libname}${release}${shared_ext}$major'
15741     dynamic_linker='NetBSD ld.elf_so'
15742   fi
15743   shlibpath_var=LD_LIBRARY_PATH
15744   shlibpath_overrides_runpath=yes
15745   hardcode_into_libs=yes
15746   ;;
15747
15748 newsos6)
15749   version_type=linux
15750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751   shlibpath_var=LD_LIBRARY_PATH
15752   shlibpath_overrides_runpath=yes
15753   ;;
15754
15755 nto-qnx*)
15756   version_type=linux
15757   need_lib_prefix=no
15758   need_version=no
15759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15760   soname_spec='${libname}${release}${shared_ext}$major'
15761   shlibpath_var=LD_LIBRARY_PATH
15762   shlibpath_overrides_runpath=yes
15763   ;;
15764
15765 openbsd*)
15766   version_type=sunos
15767   sys_lib_dlsearch_path_spec="/usr/lib"
15768   need_lib_prefix=no
15769   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15770   case $host_os in
15771     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15772     *)                         need_version=no  ;;
15773   esac
15774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15775   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15776   shlibpath_var=LD_LIBRARY_PATH
15777   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15778     case $host_os in
15779       openbsd2.[89] | openbsd2.[89].*)
15780         shlibpath_overrides_runpath=no
15781         ;;
15782       *)
15783         shlibpath_overrides_runpath=yes
15784         ;;
15785       esac
15786   else
15787     shlibpath_overrides_runpath=yes
15788   fi
15789   ;;
15790
15791 os2*)
15792   libname_spec='$name'
15793   shrext_cmds=".dll"
15794   need_lib_prefix=no
15795   library_names_spec='$libname${shared_ext} $libname.a'
15796   dynamic_linker='OS/2 ld.exe'
15797   shlibpath_var=LIBPATH
15798   ;;
15799
15800 osf3* | osf4* | osf5*)
15801   version_type=osf
15802   need_lib_prefix=no
15803   need_version=no
15804   soname_spec='${libname}${release}${shared_ext}$major'
15805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806   shlibpath_var=LD_LIBRARY_PATH
15807   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15808   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15809   ;;
15810
15811 solaris*)
15812   version_type=linux
15813   need_lib_prefix=no
15814   need_version=no
15815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816   soname_spec='${libname}${release}${shared_ext}$major'
15817   shlibpath_var=LD_LIBRARY_PATH
15818   shlibpath_overrides_runpath=yes
15819   hardcode_into_libs=yes
15820   # ldd complains unless libraries are executable
15821   postinstall_cmds='chmod +x $lib'
15822   ;;
15823
15824 sunos4*)
15825   version_type=sunos
15826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15827   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15828   shlibpath_var=LD_LIBRARY_PATH
15829   shlibpath_overrides_runpath=yes
15830   if test "$with_gnu_ld" = yes; then
15831     need_lib_prefix=no
15832   fi
15833   need_version=yes
15834   ;;
15835
15836 sysv4 | sysv4.3*)
15837   version_type=linux
15838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839   soname_spec='${libname}${release}${shared_ext}$major'
15840   shlibpath_var=LD_LIBRARY_PATH
15841   case $host_vendor in
15842     sni)
15843       shlibpath_overrides_runpath=no
15844       need_lib_prefix=no
15845       export_dynamic_flag_spec='${wl}-Blargedynsym'
15846       runpath_var=LD_RUN_PATH
15847       ;;
15848     siemens)
15849       need_lib_prefix=no
15850       ;;
15851     motorola)
15852       need_lib_prefix=no
15853       need_version=no
15854       shlibpath_overrides_runpath=no
15855       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15856       ;;
15857   esac
15858   ;;
15859
15860 sysv4*MP*)
15861   if test -d /usr/nec ;then
15862     version_type=linux
15863     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15864     soname_spec='$libname${shared_ext}.$major'
15865     shlibpath_var=LD_LIBRARY_PATH
15866   fi
15867   ;;
15868
15869 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15870   version_type=freebsd-elf
15871   need_lib_prefix=no
15872   need_version=no
15873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15874   soname_spec='${libname}${release}${shared_ext}$major'
15875   shlibpath_var=LD_LIBRARY_PATH
15876   hardcode_into_libs=yes
15877   if test "$with_gnu_ld" = yes; then
15878     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15879     shlibpath_overrides_runpath=no
15880   else
15881     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15882     shlibpath_overrides_runpath=yes
15883     case $host_os in
15884       sco3.2v5*)
15885         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15886         ;;
15887     esac
15888   fi
15889   sys_lib_dlsearch_path_spec='/usr/lib'
15890   ;;
15891
15892 uts4*)
15893   version_type=linux
15894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15895   soname_spec='${libname}${release}${shared_ext}$major'
15896   shlibpath_var=LD_LIBRARY_PATH
15897   ;;
15898
15899 *)
15900   dynamic_linker=no
15901   ;;
15902 esac
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15904 $as_echo "$dynamic_linker" >&6; }
15905 test "$dynamic_linker" = no && can_build_shared=no
15906
15907 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15908 if test "$GCC" = yes; then
15909   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15910 fi
15911
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15913 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15914 hardcode_action_F77=
15915 if test -n "$hardcode_libdir_flag_spec_F77" || \
15916    test -n "$runpath_var_F77" || \
15917    test "X$hardcode_automatic_F77" = "Xyes" ; then
15918
15919   # We can hardcode non-existant directories.
15920   if test "$hardcode_direct_F77" != no &&
15921      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15922      # have to relink, otherwise we might link with an installed library
15923      # when we should be linking with a yet-to-be-installed one
15924      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15925      test "$hardcode_minus_L_F77" != no; then
15926     # Linking always hardcodes the temporary library directory.
15927     hardcode_action_F77=relink
15928   else
15929     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15930     hardcode_action_F77=immediate
15931   fi
15932 else
15933   # We cannot hardcode anything, or else we can only hardcode existing
15934   # directories.
15935   hardcode_action_F77=unsupported
15936 fi
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15938 $as_echo "$hardcode_action_F77" >&6; }
15939
15940 if test "$hardcode_action_F77" = relink; then
15941   # Fast installation is not supported
15942   enable_fast_install=no
15943 elif test "$shlibpath_overrides_runpath" = yes ||
15944      test "$enable_shared" = no; then
15945   # Fast installation is not necessary
15946   enable_fast_install=needless
15947 fi
15948
15949
15950 # The else clause should only fire when bootstrapping the
15951 # libtool distribution, otherwise you forgot to ship ltmain.sh
15952 # with your package, and you will get complaints that there are
15953 # no rules to generate ltmain.sh.
15954 if test -f "$ltmain"; then
15955   # See if we are running on zsh, and set the options which allow our commands through
15956   # without removal of \ escapes.
15957   if test -n "${ZSH_VERSION+set}" ; then
15958     setopt NO_GLOB_SUBST
15959   fi
15960   # Now quote all the things that may contain metacharacters while being
15961   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15962   # variables and quote the copies for generation of the libtool script.
15963   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15964     SED SHELL STRIP \
15965     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15966     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15967     deplibs_check_method reload_flag reload_cmds need_locks \
15968     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15969     lt_cv_sys_global_symbol_to_c_name_address \
15970     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15971     old_postinstall_cmds old_postuninstall_cmds \
15972     compiler_F77 \
15973     CC_F77 \
15974     LD_F77 \
15975     lt_prog_compiler_wl_F77 \
15976     lt_prog_compiler_pic_F77 \
15977     lt_prog_compiler_static_F77 \
15978     lt_prog_compiler_no_builtin_flag_F77 \
15979     export_dynamic_flag_spec_F77 \
15980     thread_safe_flag_spec_F77 \
15981     whole_archive_flag_spec_F77 \
15982     enable_shared_with_static_runtimes_F77 \
15983     old_archive_cmds_F77 \
15984     old_archive_from_new_cmds_F77 \
15985     predep_objects_F77 \
15986     postdep_objects_F77 \
15987     predeps_F77 \
15988     postdeps_F77 \
15989     compiler_lib_search_path_F77 \
15990     archive_cmds_F77 \
15991     archive_expsym_cmds_F77 \
15992     postinstall_cmds_F77 \
15993     postuninstall_cmds_F77 \
15994     old_archive_from_expsyms_cmds_F77 \
15995     allow_undefined_flag_F77 \
15996     no_undefined_flag_F77 \
15997     export_symbols_cmds_F77 \
15998     hardcode_libdir_flag_spec_F77 \
15999     hardcode_libdir_flag_spec_ld_F77 \
16000     hardcode_libdir_separator_F77 \
16001     hardcode_automatic_F77 \
16002     module_cmds_F77 \
16003     module_expsym_cmds_F77 \
16004     lt_cv_prog_compiler_c_o_F77 \
16005     exclude_expsyms_F77 \
16006     include_expsyms_F77; do
16007
16008     case $var in
16009     old_archive_cmds_F77 | \
16010     old_archive_from_new_cmds_F77 | \
16011     archive_cmds_F77 | \
16012     archive_expsym_cmds_F77 | \
16013     module_cmds_F77 | \
16014     module_expsym_cmds_F77 | \
16015     old_archive_from_expsyms_cmds_F77 | \
16016     export_symbols_cmds_F77 | \
16017     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16018     postinstall_cmds | postuninstall_cmds | \
16019     old_postinstall_cmds | old_postuninstall_cmds | \
16020     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16021       # Double-quote double-evaled strings.
16022       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16023       ;;
16024     *)
16025       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16026       ;;
16027     esac
16028   done
16029
16030   case $lt_echo in
16031   *'\$0 --fallback-echo"')
16032     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16033     ;;
16034   esac
16035
16036 cfgfile="$ofile"
16037
16038   cat <<__EOF__ >> "$cfgfile"
16039 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16040
16041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16042
16043 # Shell to use when invoking shell scripts.
16044 SHELL=$lt_SHELL
16045
16046 # Whether or not to build shared libraries.
16047 build_libtool_libs=$enable_shared
16048
16049 # Whether or not to build static libraries.
16050 build_old_libs=$enable_static
16051
16052 # Whether or not to add -lc for building shared libraries.
16053 build_libtool_need_lc=$archive_cmds_need_lc_F77
16054
16055 # Whether or not to disallow shared libs when runtime libs are static
16056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16057
16058 # Whether or not to optimize for fast installation.
16059 fast_install=$enable_fast_install
16060
16061 # The host system.
16062 host_alias=$host_alias
16063 host=$host
16064 host_os=$host_os
16065
16066 # The build system.
16067 build_alias=$build_alias
16068 build=$build
16069 build_os=$build_os
16070
16071 # An echo program that does not interpret backslashes.
16072 echo=$lt_echo
16073
16074 # The archiver.
16075 AR=$lt_AR
16076 AR_FLAGS=$lt_AR_FLAGS
16077
16078 # A C compiler.
16079 LTCC=$lt_LTCC
16080
16081 # LTCC compiler flags.
16082 LTCFLAGS=$lt_LTCFLAGS
16083
16084 # A language-specific compiler.
16085 CC=$lt_compiler_F77
16086
16087 # Is the compiler the GNU C compiler?
16088 with_gcc=$GCC_F77
16089
16090 # An ERE matcher.
16091 EGREP=$lt_EGREP
16092
16093 # The linker used to build libraries.
16094 LD=$lt_LD_F77
16095
16096 # Whether we need hard or soft links.
16097 LN_S=$lt_LN_S
16098
16099 # A BSD-compatible nm program.
16100 NM=$lt_NM
16101
16102 # A symbol stripping program
16103 STRIP=$lt_STRIP
16104
16105 # Used to examine libraries when file_magic_cmd begins "file"
16106 MAGIC_CMD=$MAGIC_CMD
16107
16108 # Used on cygwin: DLL creation program.
16109 DLLTOOL="$DLLTOOL"
16110
16111 # Used on cygwin: object dumper.
16112 OBJDUMP="$OBJDUMP"
16113
16114 # Used on cygwin: assembler.
16115 AS="$AS"
16116
16117 # The name of the directory that contains temporary libtool files.
16118 objdir=$objdir
16119
16120 # How to create reloadable object files.
16121 reload_flag=$lt_reload_flag
16122 reload_cmds=$lt_reload_cmds
16123
16124 # How to pass a linker flag through the compiler.
16125 wl=$lt_lt_prog_compiler_wl_F77
16126
16127 # Object file suffix (normally "o").
16128 objext="$ac_objext"
16129
16130 # Old archive suffix (normally "a").
16131 libext="$libext"
16132
16133 # Shared library suffix (normally ".so").
16134 shrext_cmds='$shrext_cmds'
16135
16136 # Executable file suffix (normally "").
16137 exeext="$exeext"
16138
16139 # Additional compiler flags for building library objects.
16140 pic_flag=$lt_lt_prog_compiler_pic_F77
16141 pic_mode=$pic_mode
16142
16143 # What is the maximum length of a command?
16144 max_cmd_len=$lt_cv_sys_max_cmd_len
16145
16146 # Does compiler simultaneously support -c and -o options?
16147 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16148
16149 # Must we lock files when doing compilation?
16150 need_locks=$lt_need_locks
16151
16152 # Do we need the lib prefix for modules?
16153 need_lib_prefix=$need_lib_prefix
16154
16155 # Do we need a version for libraries?
16156 need_version=$need_version
16157
16158 # Whether dlopen is supported.
16159 dlopen_support=$enable_dlopen
16160
16161 # Whether dlopen of programs is supported.
16162 dlopen_self=$enable_dlopen_self
16163
16164 # Whether dlopen of statically linked programs is supported.
16165 dlopen_self_static=$enable_dlopen_self_static
16166
16167 # Compiler flag to prevent dynamic linking.
16168 link_static_flag=$lt_lt_prog_compiler_static_F77
16169
16170 # Compiler flag to turn off builtin functions.
16171 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16172
16173 # Compiler flag to allow reflexive dlopens.
16174 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16175
16176 # Compiler flag to generate shared objects directly from archives.
16177 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16178
16179 # Compiler flag to generate thread-safe objects.
16180 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16181
16182 # Library versioning type.
16183 version_type=$version_type
16184
16185 # Format of library name prefix.
16186 libname_spec=$lt_libname_spec
16187
16188 # List of archive names.  First name is the real one, the rest are links.
16189 # The last name is the one that the linker finds with -lNAME.
16190 library_names_spec=$lt_library_names_spec
16191
16192 # The coded name of the library, if different from the real name.
16193 soname_spec=$lt_soname_spec
16194
16195 # Commands used to build and install an old-style archive.
16196 RANLIB=$lt_RANLIB
16197 old_archive_cmds=$lt_old_archive_cmds_F77
16198 old_postinstall_cmds=$lt_old_postinstall_cmds
16199 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16200
16201 # Create an old-style archive from a shared archive.
16202 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16203
16204 # Create a temporary old-style archive to link instead of a shared archive.
16205 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16206
16207 # Commands used to build and install a shared archive.
16208 archive_cmds=$lt_archive_cmds_F77
16209 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16210 postinstall_cmds=$lt_postinstall_cmds
16211 postuninstall_cmds=$lt_postuninstall_cmds
16212
16213 # Commands used to build a loadable module (assumed same as above if empty)
16214 module_cmds=$lt_module_cmds_F77
16215 module_expsym_cmds=$lt_module_expsym_cmds_F77
16216
16217 # Commands to strip libraries.
16218 old_striplib=$lt_old_striplib
16219 striplib=$lt_striplib
16220
16221 # Dependencies to place before the objects being linked to create a
16222 # shared library.
16223 predep_objects=$lt_predep_objects_F77
16224
16225 # Dependencies to place after the objects being linked to create a
16226 # shared library.
16227 postdep_objects=$lt_postdep_objects_F77
16228
16229 # Dependencies to place before the objects being linked to create a
16230 # shared library.
16231 predeps=$lt_predeps_F77
16232
16233 # Dependencies to place after the objects being linked to create a
16234 # shared library.
16235 postdeps=$lt_postdeps_F77
16236
16237 # The library search path used internally by the compiler when linking
16238 # a shared library.
16239 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16240
16241 # Method to check whether dependent libraries are shared objects.
16242 deplibs_check_method=$lt_deplibs_check_method
16243
16244 # Command to use when deplibs_check_method == file_magic.
16245 file_magic_cmd=$lt_file_magic_cmd
16246
16247 # Flag that allows shared libraries with undefined symbols to be built.
16248 allow_undefined_flag=$lt_allow_undefined_flag_F77
16249
16250 # Flag that forces no undefined symbols.
16251 no_undefined_flag=$lt_no_undefined_flag_F77
16252
16253 # Commands used to finish a libtool library installation in a directory.
16254 finish_cmds=$lt_finish_cmds
16255
16256 # Same as above, but a single script fragment to be evaled but not shown.
16257 finish_eval=$lt_finish_eval
16258
16259 # Take the output of nm and produce a listing of raw symbols and C names.
16260 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16261
16262 # Transform the output of nm in a proper C declaration
16263 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16264
16265 # Transform the output of nm in a C name address pair
16266 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16267
16268 # This is the shared library runtime path variable.
16269 runpath_var=$runpath_var
16270
16271 # This is the shared library path variable.
16272 shlibpath_var=$shlibpath_var
16273
16274 # Is shlibpath searched before the hard-coded library search path?
16275 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16276
16277 # How to hardcode a shared library path into an executable.
16278 hardcode_action=$hardcode_action_F77
16279
16280 # Whether we should hardcode library paths into libraries.
16281 hardcode_into_libs=$hardcode_into_libs
16282
16283 # Flag to hardcode \$libdir into a binary during linking.
16284 # This must work even if \$libdir does not exist.
16285 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16286
16287 # If ld is used when linking, flag to hardcode \$libdir into
16288 # a binary during linking. This must work even if \$libdir does
16289 # not exist.
16290 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16291
16292 # Whether we need a single -rpath flag with a separated argument.
16293 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16294
16295 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16296 # resulting binary.
16297 hardcode_direct=$hardcode_direct_F77
16298
16299 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16300 # resulting binary.
16301 hardcode_minus_L=$hardcode_minus_L_F77
16302
16303 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16304 # the resulting binary.
16305 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16306
16307 # Set to yes if building a shared library automatically hardcodes DIR into the library
16308 # and all subsequent libraries and executables linked against it.
16309 hardcode_automatic=$hardcode_automatic_F77
16310
16311 # Variables whose values should be saved in libtool wrapper scripts and
16312 # restored at relink time.
16313 variables_saved_for_relink="$variables_saved_for_relink"
16314
16315 # Whether libtool must link a program against all its dependency libraries.
16316 link_all_deplibs=$link_all_deplibs_F77
16317
16318 # Compile-time system search path for libraries
16319 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16320
16321 # Run-time system search path for libraries
16322 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16323
16324 # Fix the shell variable \$srcfile for the compiler.
16325 fix_srcfile_path="$fix_srcfile_path_F77"
16326
16327 # Set to yes if exported symbols are required.
16328 always_export_symbols=$always_export_symbols_F77
16329
16330 # The commands to list exported symbols.
16331 export_symbols_cmds=$lt_export_symbols_cmds_F77
16332
16333 # The commands to extract the exported symbol list from a shared archive.
16334 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16335
16336 # Symbols that should not be listed in the preloaded symbols.
16337 exclude_expsyms=$lt_exclude_expsyms_F77
16338
16339 # Symbols that must always be exported.
16340 include_expsyms=$lt_include_expsyms_F77
16341
16342 # ### END LIBTOOL TAG CONFIG: $tagname
16343
16344 __EOF__
16345
16346
16347 else
16348   # If there is no Makefile yet, we rely on a make rule to execute
16349   # `config.status --recheck' to rerun these tests and create the
16350   # libtool script then.
16351   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16352   if test -f "$ltmain_in"; then
16353     test -f Makefile && make "$ltmain"
16354   fi
16355 fi
16356
16357
16358 ac_ext=c
16359 ac_cpp='$CPP $CPPFLAGS'
16360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16363
16364 CC="$lt_save_CC"
16365
16366         else
16367           tagname=""
16368         fi
16369         ;;
16370
16371       GCJ)
16372         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16373
16374
16375 # Source file extension for Java test sources.
16376 ac_ext=java
16377
16378 # Object file extension for compiled Java test sources.
16379 objext=o
16380 objext_GCJ=$objext
16381
16382 # Code to be used in simple compile tests
16383 lt_simple_compile_test_code="class foo {}\n"
16384
16385 # Code to be used in simple link tests
16386 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16387
16388 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16389
16390 # If no C compiler was specified, use CC.
16391 LTCC=${LTCC-"$CC"}
16392
16393 # If no C compiler flags were specified, use CFLAGS.
16394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16395
16396 # Allow CC to be a program name with arguments.
16397 compiler=$CC
16398
16399
16400 # save warnings/boilerplate of simple test code
16401 ac_outfile=conftest.$ac_objext
16402 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16404 _lt_compiler_boilerplate=`cat conftest.err`
16405 $rm conftest*
16406
16407 ac_outfile=conftest.$ac_objext
16408 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16410 _lt_linker_boilerplate=`cat conftest.err`
16411 $rm conftest*
16412
16413
16414 # Allow CC to be a program name with arguments.
16415 lt_save_CC="$CC"
16416 CC=${GCJ-"gcj"}
16417 compiler=$CC
16418 compiler_GCJ=$CC
16419 for cc_temp in $compiler""; do
16420   case $cc_temp in
16421     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16422     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16423     \-*) ;;
16424     *) break;;
16425   esac
16426 done
16427 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16428
16429
16430 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16431 archive_cmds_need_lc_GCJ=no
16432
16433 old_archive_cmds_GCJ=$old_archive_cmds
16434
16435
16436 lt_prog_compiler_no_builtin_flag_GCJ=
16437
16438 if test "$GCC" = yes; then
16439   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16440
16441
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16443 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16444 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16445   $as_echo_n "(cached) " >&6
16446 else
16447   lt_cv_prog_compiler_rtti_exceptions=no
16448   ac_outfile=conftest.$ac_objext
16449    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16450    lt_compiler_flag="-fno-rtti -fno-exceptions"
16451    # Insert the option either (1) after the last *FLAGS variable, or
16452    # (2) before a word containing "conftest.", or (3) at the end.
16453    # Note that $ac_compile itself does not contain backslashes and begins
16454    # with a dollar sign (not a hyphen), so the echo should work correctly.
16455    # The option is referenced via a variable to avoid confusing sed.
16456    lt_compile=`echo "$ac_compile" | $SED \
16457    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16458    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16459    -e 's:$: $lt_compiler_flag:'`
16460    (eval echo "\"\$as_me:16460: $lt_compile\"" >&5)
16461    (eval "$lt_compile" 2>conftest.err)
16462    ac_status=$?
16463    cat conftest.err >&5
16464    echo "$as_me:16464: \$? = $ac_status" >&5
16465    if (exit $ac_status) && test -s "$ac_outfile"; then
16466      # The compiler can only warn and ignore the option if not recognized
16467      # So say no if there are warnings other than the usual output.
16468      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16469      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16470      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16471        lt_cv_prog_compiler_rtti_exceptions=yes
16472      fi
16473    fi
16474    $rm conftest*
16475
16476 fi
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16478 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16479
16480 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16481     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16482 else
16483     :
16484 fi
16485
16486 fi
16487
16488 lt_prog_compiler_wl_GCJ=
16489 lt_prog_compiler_pic_GCJ=
16490 lt_prog_compiler_static_GCJ=
16491
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16493 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16494
16495   if test "$GCC" = yes; then
16496     lt_prog_compiler_wl_GCJ='-Wl,'
16497     lt_prog_compiler_static_GCJ='-static'
16498
16499     case $host_os in
16500       aix*)
16501       # All AIX code is PIC.
16502       if test "$host_cpu" = ia64; then
16503         # AIX 5 now supports IA64 processor
16504         lt_prog_compiler_static_GCJ='-Bstatic'
16505       fi
16506       ;;
16507
16508     amigaos*)
16509       # FIXME: we need at least 68020 code to build shared libraries, but
16510       # adding the `-m68020' flag to GCC prevents building anything better,
16511       # like `-m68040'.
16512       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16513       ;;
16514
16515     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16516       # PIC is the default for these OSes.
16517       ;;
16518
16519     mingw* | pw32* | os2*)
16520       # This hack is so that the source file can tell whether it is being
16521       # built for inclusion in a dll (and should export symbols for example).
16522       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16523       ;;
16524
16525     darwin* | rhapsody*)
16526       # PIC is the default on this platform
16527       # Common symbols not allowed in MH_DYLIB files
16528       lt_prog_compiler_pic_GCJ='-fno-common'
16529       ;;
16530
16531     interix3*)
16532       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16533       # Instead, we relocate shared libraries at runtime.
16534       ;;
16535
16536     msdosdjgpp*)
16537       # Just because we use GCC doesn't mean we suddenly get shared libraries
16538       # on systems that don't support them.
16539       lt_prog_compiler_can_build_shared_GCJ=no
16540       enable_shared=no
16541       ;;
16542
16543     sysv4*MP*)
16544       if test -d /usr/nec; then
16545         lt_prog_compiler_pic_GCJ=-Kconform_pic
16546       fi
16547       ;;
16548
16549     hpux*)
16550       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16551       # not for PA HP-UX.
16552       case $host_cpu in
16553       hppa*64*|ia64*)
16554         # +Z the default
16555         ;;
16556       *)
16557         lt_prog_compiler_pic_GCJ='-fPIC'
16558         ;;
16559       esac
16560       ;;
16561
16562     *)
16563       lt_prog_compiler_pic_GCJ='-fPIC'
16564       ;;
16565     esac
16566   else
16567     # PORTME Check for flag to pass linker flags through the system compiler.
16568     case $host_os in
16569     aix*)
16570       lt_prog_compiler_wl_GCJ='-Wl,'
16571       if test "$host_cpu" = ia64; then
16572         # AIX 5 now supports IA64 processor
16573         lt_prog_compiler_static_GCJ='-Bstatic'
16574       else
16575         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16576       fi
16577       ;;
16578       darwin*)
16579         # PIC is the default on this platform
16580         # Common symbols not allowed in MH_DYLIB files
16581        case $cc_basename in
16582          xlc*)
16583          lt_prog_compiler_pic_GCJ='-qnocommon'
16584          lt_prog_compiler_wl_GCJ='-Wl,'
16585          ;;
16586        esac
16587        ;;
16588
16589     mingw* | pw32* | os2*)
16590       # This hack is so that the source file can tell whether it is being
16591       # built for inclusion in a dll (and should export symbols for example).
16592       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16593       ;;
16594
16595     hpux9* | hpux10* | hpux11*)
16596       lt_prog_compiler_wl_GCJ='-Wl,'
16597       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16598       # not for PA HP-UX.
16599       case $host_cpu in
16600       hppa*64*|ia64*)
16601         # +Z the default
16602         ;;
16603       *)
16604         lt_prog_compiler_pic_GCJ='+Z'
16605         ;;
16606       esac
16607       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16608       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16609       ;;
16610
16611     irix5* | irix6* | nonstopux*)
16612       lt_prog_compiler_wl_GCJ='-Wl,'
16613       # PIC (with -KPIC) is the default.
16614       lt_prog_compiler_static_GCJ='-non_shared'
16615       ;;
16616
16617     newsos6)
16618       lt_prog_compiler_pic_GCJ='-KPIC'
16619       lt_prog_compiler_static_GCJ='-Bstatic'
16620       ;;
16621
16622     linux*)
16623       case $cc_basename in
16624       icc* | ecc*)
16625         lt_prog_compiler_wl_GCJ='-Wl,'
16626         lt_prog_compiler_pic_GCJ='-KPIC'
16627         lt_prog_compiler_static_GCJ='-static'
16628         ;;
16629       pgcc* | pgf77* | pgf90* | pgf95*)
16630         # Portland Group compilers (*not* the Pentium gcc compiler,
16631         # which looks to be a dead project)
16632         lt_prog_compiler_wl_GCJ='-Wl,'
16633         lt_prog_compiler_pic_GCJ='-fpic'
16634         lt_prog_compiler_static_GCJ='-Bstatic'
16635         ;;
16636       ccc*)
16637         lt_prog_compiler_wl_GCJ='-Wl,'
16638         # All Alpha code is PIC.
16639         lt_prog_compiler_static_GCJ='-non_shared'
16640         ;;
16641       esac
16642       ;;
16643
16644     osf3* | osf4* | osf5*)
16645       lt_prog_compiler_wl_GCJ='-Wl,'
16646       # All OSF/1 code is PIC.
16647       lt_prog_compiler_static_GCJ='-non_shared'
16648       ;;
16649
16650     solaris*)
16651       lt_prog_compiler_pic_GCJ='-KPIC'
16652       lt_prog_compiler_static_GCJ='-Bstatic'
16653       case $cc_basename in
16654       f77* | f90* | f95*)
16655         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16656       *)
16657         lt_prog_compiler_wl_GCJ='-Wl,';;
16658       esac
16659       ;;
16660
16661     sunos4*)
16662       lt_prog_compiler_wl_GCJ='-Qoption ld '
16663       lt_prog_compiler_pic_GCJ='-PIC'
16664       lt_prog_compiler_static_GCJ='-Bstatic'
16665       ;;
16666
16667     sysv4 | sysv4.2uw2* | sysv4.3*)
16668       lt_prog_compiler_wl_GCJ='-Wl,'
16669       lt_prog_compiler_pic_GCJ='-KPIC'
16670       lt_prog_compiler_static_GCJ='-Bstatic'
16671       ;;
16672
16673     sysv4*MP*)
16674       if test -d /usr/nec ;then
16675         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16676         lt_prog_compiler_static_GCJ='-Bstatic'
16677       fi
16678       ;;
16679
16680     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16681       lt_prog_compiler_wl_GCJ='-Wl,'
16682       lt_prog_compiler_pic_GCJ='-KPIC'
16683       lt_prog_compiler_static_GCJ='-Bstatic'
16684       ;;
16685
16686     unicos*)
16687       lt_prog_compiler_wl_GCJ='-Wl,'
16688       lt_prog_compiler_can_build_shared_GCJ=no
16689       ;;
16690
16691     uts4*)
16692       lt_prog_compiler_pic_GCJ='-pic'
16693       lt_prog_compiler_static_GCJ='-Bstatic'
16694       ;;
16695
16696     *)
16697       lt_prog_compiler_can_build_shared_GCJ=no
16698       ;;
16699     esac
16700   fi
16701
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16703 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16704
16705 #
16706 # Check to make sure the PIC flag actually works.
16707 #
16708 if test -n "$lt_prog_compiler_pic_GCJ"; then
16709
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16711 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16712 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16713   $as_echo_n "(cached) " >&6
16714 else
16715   lt_prog_compiler_pic_works_GCJ=no
16716   ac_outfile=conftest.$ac_objext
16717    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16718    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16719    # Insert the option either (1) after the last *FLAGS variable, or
16720    # (2) before a word containing "conftest.", or (3) at the end.
16721    # Note that $ac_compile itself does not contain backslashes and begins
16722    # with a dollar sign (not a hyphen), so the echo should work correctly.
16723    # The option is referenced via a variable to avoid confusing sed.
16724    lt_compile=`echo "$ac_compile" | $SED \
16725    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16726    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16727    -e 's:$: $lt_compiler_flag:'`
16728    (eval echo "\"\$as_me:16728: $lt_compile\"" >&5)
16729    (eval "$lt_compile" 2>conftest.err)
16730    ac_status=$?
16731    cat conftest.err >&5
16732    echo "$as_me:16732: \$? = $ac_status" >&5
16733    if (exit $ac_status) && test -s "$ac_outfile"; then
16734      # The compiler can only warn and ignore the option if not recognized
16735      # So say no if there are warnings other than the usual output.
16736      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16737      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16738      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16739        lt_prog_compiler_pic_works_GCJ=yes
16740      fi
16741    fi
16742    $rm conftest*
16743
16744 fi
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16746 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16747
16748 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16749     case $lt_prog_compiler_pic_GCJ in
16750      "" | " "*) ;;
16751      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16752      esac
16753 else
16754     lt_prog_compiler_pic_GCJ=
16755      lt_prog_compiler_can_build_shared_GCJ=no
16756 fi
16757
16758 fi
16759 case $host_os in
16760   # For platforms which do not support PIC, -DPIC is meaningless:
16761   *djgpp*)
16762     lt_prog_compiler_pic_GCJ=
16763     ;;
16764   *)
16765     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16766     ;;
16767 esac
16768
16769 #
16770 # Check to make sure the static flag actually works.
16771 #
16772 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16774 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16775 if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16776   $as_echo_n "(cached) " >&6
16777 else
16778   lt_prog_compiler_static_works_GCJ=no
16779    save_LDFLAGS="$LDFLAGS"
16780    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16781    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16782    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16783      # The linker can only warn and ignore the option if not recognized
16784      # So say no if there are warnings
16785      if test -s conftest.err; then
16786        # Append any errors to the config.log.
16787        cat conftest.err 1>&5
16788        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16789        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16790        if diff conftest.exp conftest.er2 >/dev/null; then
16791          lt_prog_compiler_static_works_GCJ=yes
16792        fi
16793      else
16794        lt_prog_compiler_static_works_GCJ=yes
16795      fi
16796    fi
16797    $rm conftest*
16798    LDFLAGS="$save_LDFLAGS"
16799
16800 fi
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16802 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16803
16804 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16805     :
16806 else
16807     lt_prog_compiler_static_GCJ=
16808 fi
16809
16810
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16813 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16814   $as_echo_n "(cached) " >&6
16815 else
16816   lt_cv_prog_compiler_c_o_GCJ=no
16817    $rm -r conftest 2>/dev/null
16818    mkdir conftest
16819    cd conftest
16820    mkdir out
16821    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16822
16823    lt_compiler_flag="-o out/conftest2.$ac_objext"
16824    # Insert the option either (1) after the last *FLAGS variable, or
16825    # (2) before a word containing "conftest.", or (3) at the end.
16826    # Note that $ac_compile itself does not contain backslashes and begins
16827    # with a dollar sign (not a hyphen), so the echo should work correctly.
16828    lt_compile=`echo "$ac_compile" | $SED \
16829    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16830    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16831    -e 's:$: $lt_compiler_flag:'`
16832    (eval echo "\"\$as_me:16832: $lt_compile\"" >&5)
16833    (eval "$lt_compile" 2>out/conftest.err)
16834    ac_status=$?
16835    cat out/conftest.err >&5
16836    echo "$as_me:16836: \$? = $ac_status" >&5
16837    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16838    then
16839      # The compiler can only warn and ignore the option if not recognized
16840      # So say no if there are warnings
16841      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16842      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16843      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16844        lt_cv_prog_compiler_c_o_GCJ=yes
16845      fi
16846    fi
16847    chmod u+w . 2>&5
16848    $rm conftest*
16849    # SGI C++ compiler will create directory out/ii_files/ for
16850    # template instantiation
16851    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16852    $rm out/* && rmdir out
16853    cd ..
16854    rmdir conftest
16855    $rm conftest*
16856
16857 fi
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16859 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16860
16861
16862 hard_links="nottested"
16863 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16864   # do not overwrite the value of need_locks provided by the user
16865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16866 $as_echo_n "checking if we can lock with hard links... " >&6; }
16867   hard_links=yes
16868   $rm conftest*
16869   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16870   touch conftest.a
16871   ln conftest.a conftest.b 2>&5 || hard_links=no
16872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16874 $as_echo "$hard_links" >&6; }
16875   if test "$hard_links" = no; then
16876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16877 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16878     need_locks=warn
16879   fi
16880 else
16881   need_locks=no
16882 fi
16883
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16885 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16886
16887   runpath_var=
16888   allow_undefined_flag_GCJ=
16889   enable_shared_with_static_runtimes_GCJ=no
16890   archive_cmds_GCJ=
16891   archive_expsym_cmds_GCJ=
16892   old_archive_From_new_cmds_GCJ=
16893   old_archive_from_expsyms_cmds_GCJ=
16894   export_dynamic_flag_spec_GCJ=
16895   whole_archive_flag_spec_GCJ=
16896   thread_safe_flag_spec_GCJ=
16897   hardcode_libdir_flag_spec_GCJ=
16898   hardcode_libdir_flag_spec_ld_GCJ=
16899   hardcode_libdir_separator_GCJ=
16900   hardcode_direct_GCJ=no
16901   hardcode_minus_L_GCJ=no
16902   hardcode_shlibpath_var_GCJ=unsupported
16903   link_all_deplibs_GCJ=unknown
16904   hardcode_automatic_GCJ=no
16905   module_cmds_GCJ=
16906   module_expsym_cmds_GCJ=
16907   always_export_symbols_GCJ=no
16908   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16909   # include_expsyms should be a list of space-separated symbols to be *always*
16910   # included in the symbol list
16911   include_expsyms_GCJ=
16912   # exclude_expsyms can be an extended regexp of symbols to exclude
16913   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16914   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16915   # as well as any symbol that contains `d'.
16916   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16917   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16918   # platforms (ab)use it in PIC code, but their linkers get confused if
16919   # the symbol is explicitly referenced.  Since portable code cannot
16920   # rely on this symbol name, it's probably fine to never include it in
16921   # preloaded symbol tables.
16922   extract_expsyms_cmds=
16923   # Just being paranoid about ensuring that cc_basename is set.
16924   for cc_temp in $compiler""; do
16925   case $cc_temp in
16926     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16927     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16928     \-*) ;;
16929     *) break;;
16930   esac
16931 done
16932 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16933
16934   case $host_os in
16935   cygwin* | mingw* | pw32*)
16936     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16937     # When not using gcc, we currently assume that we are using
16938     # Microsoft Visual C++.
16939     if test "$GCC" != yes; then
16940       with_gnu_ld=no
16941     fi
16942     ;;
16943   interix*)
16944     # we just hope/assume this is gcc and not c89 (= MSVC++)
16945     with_gnu_ld=yes
16946     ;;
16947   openbsd*)
16948     with_gnu_ld=no
16949     ;;
16950   esac
16951
16952   ld_shlibs_GCJ=yes
16953   if test "$with_gnu_ld" = yes; then
16954     # If archive_cmds runs LD, not CC, wlarc should be empty
16955     wlarc='${wl}'
16956
16957     # Set some defaults for GNU ld with shared library support. These
16958     # are reset later if shared libraries are not supported. Putting them
16959     # here allows them to be overridden if necessary.
16960     runpath_var=LD_RUN_PATH
16961     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16962     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16963     # ancient GNU ld didn't support --whole-archive et. al.
16964     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16965         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16966       else
16967         whole_archive_flag_spec_GCJ=
16968     fi
16969     supports_anon_versioning=no
16970     case `$LD -v 2>/dev/null` in
16971       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16972       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16973       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16974       *\ 2.11.*) ;; # other 2.11 versions
16975       *) supports_anon_versioning=yes ;;
16976     esac
16977
16978     # See if GNU ld supports shared libraries.
16979     case $host_os in
16980     aix3* | aix4* | aix5*)
16981       # On AIX/PPC, the GNU linker is very broken
16982       if test "$host_cpu" != ia64; then
16983         ld_shlibs_GCJ=no
16984         cat <<EOF 1>&2
16985
16986 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16987 *** to be unable to reliably create shared libraries on AIX.
16988 *** Therefore, libtool is disabling shared libraries support.  If you
16989 *** really care for shared libraries, you may want to modify your PATH
16990 *** so that a non-GNU linker is found, and then restart.
16991
16992 EOF
16993       fi
16994       ;;
16995
16996     amigaos*)
16997       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)'
16998       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16999       hardcode_minus_L_GCJ=yes
17000
17001       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17002       # that the semantics of dynamic libraries on AmigaOS, at least up
17003       # to version 4, is to share data among multiple programs linked
17004       # with the same dynamic library.  Since this doesn't match the
17005       # behavior of shared libraries on other platforms, we can't use
17006       # them.
17007       ld_shlibs_GCJ=no
17008       ;;
17009
17010     beos*)
17011       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17012         allow_undefined_flag_GCJ=unsupported
17013         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17014         # support --undefined.  This deserves some investigation.  FIXME
17015         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17016       else
17017         ld_shlibs_GCJ=no
17018       fi
17019       ;;
17020
17021     cygwin* | mingw* | pw32*)
17022       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17023       # as there is no search path for DLLs.
17024       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17025       allow_undefined_flag_GCJ=unsupported
17026       always_export_symbols_GCJ=no
17027       enable_shared_with_static_runtimes_GCJ=yes
17028       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17029
17030       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17031         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17032         # If the export-symbols file already is a .def file (1st line
17033         # is EXPORTS), use it as is; otherwise, prepend...
17034         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17035           cp $export_symbols $output_objdir/$soname.def;
17036         else
17037           echo EXPORTS > $output_objdir/$soname.def;
17038           cat $export_symbols >> $output_objdir/$soname.def;
17039         fi~
17040         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17041       else
17042         ld_shlibs_GCJ=no
17043       fi
17044       ;;
17045
17046     interix3*)
17047       hardcode_direct_GCJ=no
17048       hardcode_shlibpath_var_GCJ=no
17049       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17050       export_dynamic_flag_spec_GCJ='${wl}-E'
17051       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17052       # Instead, shared libraries are loaded at an image base (0x10000000 by
17053       # default) and relocated if they conflict, which is a slow very memory
17054       # consuming and fragmenting process.  To avoid this, we pick a random,
17055       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17056       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17057       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17058       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17059       ;;
17060
17061     linux*)
17062       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17063         tmp_addflag=
17064         case $cc_basename,$host_cpu in
17065         pgcc*)                          # Portland Group C compiler
17066           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17067           tmp_addflag=' $pic_flag'
17068           ;;
17069         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17070           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17071           tmp_addflag=' $pic_flag -Mnomain' ;;
17072         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17073           tmp_addflag=' -i_dynamic' ;;
17074         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17075           tmp_addflag=' -i_dynamic -nofor_main' ;;
17076         ifc* | ifort*)                  # Intel Fortran compiler
17077           tmp_addflag=' -nofor_main' ;;
17078         esac
17079         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17080
17081         if test $supports_anon_versioning = yes; then
17082           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17083   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17084   $echo "local: *; };" >> $output_objdir/$libname.ver~
17085           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17086         fi
17087       else
17088         ld_shlibs_GCJ=no
17089       fi
17090       ;;
17091
17092     netbsd*)
17093       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17094         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17095         wlarc=
17096       else
17097         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17098         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17099       fi
17100       ;;
17101
17102     solaris*)
17103       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17104         ld_shlibs_GCJ=no
17105         cat <<EOF 1>&2
17106
17107 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17108 *** create shared libraries on Solaris systems.  Therefore, libtool
17109 *** is disabling shared libraries support.  We urge you to upgrade GNU
17110 *** binutils to release 2.9.1 or newer.  Another option is to modify
17111 *** your PATH or compiler configuration so that the native linker is
17112 *** used, and then restart.
17113
17114 EOF
17115       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17116         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17117         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17118       else
17119         ld_shlibs_GCJ=no
17120       fi
17121       ;;
17122
17123     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17124       case `$LD -v 2>&1` in
17125         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17126         ld_shlibs_GCJ=no
17127         cat <<_LT_EOF 1>&2
17128
17129 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17130 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17131 *** is disabling shared libraries support.  We urge you to upgrade GNU
17132 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17133 *** your PATH or compiler configuration so that the native linker is
17134 *** used, and then restart.
17135
17136 _LT_EOF
17137         ;;
17138         *)
17139           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17140             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17141             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17142             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17143           else
17144             ld_shlibs_GCJ=no
17145           fi
17146         ;;
17147       esac
17148       ;;
17149
17150     sunos4*)
17151       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17152       wlarc=
17153       hardcode_direct_GCJ=yes
17154       hardcode_shlibpath_var_GCJ=no
17155       ;;
17156
17157     *)
17158       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17159         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17160         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17161       else
17162         ld_shlibs_GCJ=no
17163       fi
17164       ;;
17165     esac
17166
17167     if test "$ld_shlibs_GCJ" = no; then
17168       runpath_var=
17169       hardcode_libdir_flag_spec_GCJ=
17170       export_dynamic_flag_spec_GCJ=
17171       whole_archive_flag_spec_GCJ=
17172     fi
17173   else
17174     # PORTME fill in a description of your system's linker (not GNU ld)
17175     case $host_os in
17176     aix3*)
17177       allow_undefined_flag_GCJ=unsupported
17178       always_export_symbols_GCJ=yes
17179       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'
17180       # Note: this linker hardcodes the directories in LIBPATH if there
17181       # are no directories specified by -L.
17182       hardcode_minus_L_GCJ=yes
17183       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17184         # Neither direct hardcoding nor static linking is supported with a
17185         # broken collect2.
17186         hardcode_direct_GCJ=unsupported
17187       fi
17188       ;;
17189
17190     aix4* | aix5*)
17191       if test "$host_cpu" = ia64; then
17192         # On IA64, the linker does run time linking by default, so we don't
17193         # have to do anything special.
17194         aix_use_runtimelinking=no
17195         exp_sym_flag='-Bexport'
17196         no_entry_flag=""
17197       else
17198         # If we're using GNU nm, then we don't want the "-C" option.
17199         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17200         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17201           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'
17202         else
17203           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'
17204         fi
17205         aix_use_runtimelinking=no
17206
17207         # Test if we are trying to use run time linking or normal
17208         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17209         # need to do runtime linking.
17210         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17211           for ld_flag in $LDFLAGS; do
17212           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17213             aix_use_runtimelinking=yes
17214             break
17215           fi
17216           done
17217           ;;
17218         esac
17219
17220         exp_sym_flag='-bexport'
17221         no_entry_flag='-bnoentry'
17222       fi
17223
17224       # When large executables or shared objects are built, AIX ld can
17225       # have problems creating the table of contents.  If linking a library
17226       # or program results in "error TOC overflow" add -mminimal-toc to
17227       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17228       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17229
17230       archive_cmds_GCJ=''
17231       hardcode_direct_GCJ=yes
17232       hardcode_libdir_separator_GCJ=':'
17233       link_all_deplibs_GCJ=yes
17234
17235       if test "$GCC" = yes; then
17236         case $host_os in aix4.[012]|aix4.[012].*)
17237         # We only want to do this on AIX 4.2 and lower, the check
17238         # below for broken collect2 doesn't work under 4.3+
17239           collect2name=`${CC} -print-prog-name=collect2`
17240           if test -f "$collect2name" && \
17241            strings "$collect2name" | grep resolve_lib_name >/dev/null
17242           then
17243           # We have reworked collect2
17244           hardcode_direct_GCJ=yes
17245           else
17246           # We have old collect2
17247           hardcode_direct_GCJ=unsupported
17248           # It fails to find uninstalled libraries when the uninstalled
17249           # path is not listed in the libpath.  Setting hardcode_minus_L
17250           # to unsupported forces relinking
17251           hardcode_minus_L_GCJ=yes
17252           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17253           hardcode_libdir_separator_GCJ=
17254           fi
17255           ;;
17256         esac
17257         shared_flag='-shared'
17258         if test "$aix_use_runtimelinking" = yes; then
17259           shared_flag="$shared_flag "'${wl}-G'
17260         fi
17261       else
17262         # not using gcc
17263         if test "$host_cpu" = ia64; then
17264         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17265         # chokes on -Wl,-G. The following line is correct:
17266           shared_flag='-G'
17267         else
17268           if test "$aix_use_runtimelinking" = yes; then
17269             shared_flag='${wl}-G'
17270           else
17271             shared_flag='${wl}-bM:SRE'
17272           fi
17273         fi
17274       fi
17275
17276       # It seems that -bexpall does not export symbols beginning with
17277       # underscore (_), so it is better to generate a list of symbols to export.
17278       always_export_symbols_GCJ=yes
17279       if test "$aix_use_runtimelinking" = yes; then
17280         # Warning - without using the other runtime loading flags (-brtl),
17281         # -berok will link without error, but may produce a broken library.
17282         allow_undefined_flag_GCJ='-berok'
17283        # Determine the default libpath from the value encoded in an empty executable.
17284        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17285 /* end confdefs.h.  */
17286
17287 int
17288 main ()
17289 {
17290
17291   ;
17292   return 0;
17293 }
17294 _ACEOF
17295 if ac_fn_c_try_link "$LINENO"; then :
17296
17297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17298 }'`
17299 # Check for a 64-bit object if we didn't find anything.
17300 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; }
17301 }'`; fi
17302 fi
17303 rm -f core conftest.err conftest.$ac_objext \
17304     conftest$ac_exeext conftest.$ac_ext
17305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17306
17307        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17308         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17309        else
17310         if test "$host_cpu" = ia64; then
17311           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17312           allow_undefined_flag_GCJ="-z nodefs"
17313           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17314         else
17315          # Determine the default libpath from the value encoded in an empty executable.
17316          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17317 /* end confdefs.h.  */
17318
17319 int
17320 main ()
17321 {
17322
17323   ;
17324   return 0;
17325 }
17326 _ACEOF
17327 if ac_fn_c_try_link "$LINENO"; then :
17328
17329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17330 }'`
17331 # Check for a 64-bit object if we didn't find anything.
17332 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; }
17333 }'`; fi
17334 fi
17335 rm -f core conftest.err conftest.$ac_objext \
17336     conftest$ac_exeext conftest.$ac_ext
17337 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17338
17339          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17340           # Warning - without using the other run time loading flags,
17341           # -berok will link without error, but may produce a broken library.
17342           no_undefined_flag_GCJ=' ${wl}-bernotok'
17343           allow_undefined_flag_GCJ=' ${wl}-berok'
17344           # Exported symbols can be pulled into shared objects from archives
17345           whole_archive_flag_spec_GCJ='$convenience'
17346           archive_cmds_need_lc_GCJ=yes
17347           # This is similar to how AIX traditionally builds its shared libraries.
17348           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17349         fi
17350       fi
17351       ;;
17352
17353     amigaos*)
17354       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)'
17355       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17356       hardcode_minus_L_GCJ=yes
17357       # see comment about different semantics on the GNU ld section
17358       ld_shlibs_GCJ=no
17359       ;;
17360
17361     bsdi[45]*)
17362       export_dynamic_flag_spec_GCJ=-rdynamic
17363       ;;
17364
17365     cygwin* | mingw* | pw32*)
17366       # When not using gcc, we currently assume that we are using
17367       # Microsoft Visual C++.
17368       # hardcode_libdir_flag_spec is actually meaningless, as there is
17369       # no search path for DLLs.
17370       hardcode_libdir_flag_spec_GCJ=' '
17371       allow_undefined_flag_GCJ=unsupported
17372       # Tell ltmain to make .lib files, not .a files.
17373       libext=lib
17374       # Tell ltmain to make .dll files, not .so files.
17375       shrext_cmds=".dll"
17376       # FIXME: Setting linknames here is a bad hack.
17377       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17378       # The linker will automatically build a .lib file if we build a DLL.
17379       old_archive_From_new_cmds_GCJ='true'
17380       # FIXME: Should let the user specify the lib program.
17381       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17382       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17383       enable_shared_with_static_runtimes_GCJ=yes
17384       ;;
17385
17386     darwin* | rhapsody*)
17387       case $host_os in
17388         rhapsody* | darwin1.[012])
17389          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17390          ;;
17391        *) # Darwin 1.3 on
17392          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17393            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17394          else
17395            case ${MACOSX_DEPLOYMENT_TARGET} in
17396              10.[012])
17397                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17398                ;;
17399              10.*)
17400                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17401                ;;
17402            esac
17403          fi
17404          ;;
17405       esac
17406       archive_cmds_need_lc_GCJ=no
17407       hardcode_direct_GCJ=no
17408       hardcode_automatic_GCJ=yes
17409       hardcode_shlibpath_var_GCJ=unsupported
17410       whole_archive_flag_spec_GCJ=''
17411       link_all_deplibs_GCJ=yes
17412     if test "$GCC" = yes ; then
17413         output_verbose_link_cmd='echo'
17414         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17415       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17416       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17417       archive_expsym_cmds_GCJ='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}'
17418       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}'
17419     else
17420       case $cc_basename in
17421         xlc*)
17422          output_verbose_link_cmd='echo'
17423          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17424          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17425           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17426          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17427           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}'
17428           ;;
17429        *)
17430          ld_shlibs_GCJ=no
17431           ;;
17432       esac
17433     fi
17434       ;;
17435
17436     dgux*)
17437       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17438       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17439       hardcode_shlibpath_var_GCJ=no
17440       ;;
17441
17442     freebsd1*)
17443       ld_shlibs_GCJ=no
17444       ;;
17445
17446     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17447     # support.  Future versions do this automatically, but an explicit c++rt0.o
17448     # does not break anything, and helps significantly (at the cost of a little
17449     # extra space).
17450     freebsd2.2*)
17451       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17452       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17453       hardcode_direct_GCJ=yes
17454       hardcode_shlibpath_var_GCJ=no
17455       ;;
17456
17457     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17458     freebsd2*)
17459       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17460       hardcode_direct_GCJ=yes
17461       hardcode_minus_L_GCJ=yes
17462       hardcode_shlibpath_var_GCJ=no
17463       ;;
17464
17465     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17466     freebsd* | kfreebsd*-gnu | dragonfly*)
17467       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17468       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17469       hardcode_direct_GCJ=yes
17470       hardcode_shlibpath_var_GCJ=no
17471       ;;
17472
17473     hpux9*)
17474       if test "$GCC" = yes; then
17475         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'
17476       else
17477         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'
17478       fi
17479       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17480       hardcode_libdir_separator_GCJ=:
17481       hardcode_direct_GCJ=yes
17482
17483       # hardcode_minus_L: Not really in the search PATH,
17484       # but as the default location of the library.
17485       hardcode_minus_L_GCJ=yes
17486       export_dynamic_flag_spec_GCJ='${wl}-E'
17487       ;;
17488
17489     hpux10*)
17490       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17491         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17492       else
17493         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17494       fi
17495       if test "$with_gnu_ld" = no; then
17496         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17497         hardcode_libdir_separator_GCJ=:
17498
17499         hardcode_direct_GCJ=yes
17500         export_dynamic_flag_spec_GCJ='${wl}-E'
17501
17502         # hardcode_minus_L: Not really in the search PATH,
17503         # but as the default location of the library.
17504         hardcode_minus_L_GCJ=yes
17505       fi
17506       ;;
17507
17508     hpux11*)
17509       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17510         case $host_cpu in
17511         hppa*64*)
17512           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17513           ;;
17514         ia64*)
17515           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17516           ;;
17517         *)
17518           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17519           ;;
17520         esac
17521       else
17522         case $host_cpu in
17523         hppa*64*)
17524           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17525           ;;
17526         ia64*)
17527           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17528           ;;
17529         *)
17530           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17531           ;;
17532         esac
17533       fi
17534       if test "$with_gnu_ld" = no; then
17535         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17536         hardcode_libdir_separator_GCJ=:
17537
17538         case $host_cpu in
17539         hppa*64*|ia64*)
17540           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17541           hardcode_direct_GCJ=no
17542           hardcode_shlibpath_var_GCJ=no
17543           ;;
17544         *)
17545           hardcode_direct_GCJ=yes
17546           export_dynamic_flag_spec_GCJ='${wl}-E'
17547
17548           # hardcode_minus_L: Not really in the search PATH,
17549           # but as the default location of the library.
17550           hardcode_minus_L_GCJ=yes
17551           ;;
17552         esac
17553       fi
17554       ;;
17555
17556     irix5* | irix6* | nonstopux*)
17557       if test "$GCC" = yes; then
17558         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'
17559       else
17560         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'
17561         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17562       fi
17563       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17564       hardcode_libdir_separator_GCJ=:
17565       link_all_deplibs_GCJ=yes
17566       ;;
17567
17568     netbsd*)
17569       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17570         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17571       else
17572         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17573       fi
17574       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17575       hardcode_direct_GCJ=yes
17576       hardcode_shlibpath_var_GCJ=no
17577       ;;
17578
17579     newsos6)
17580       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17581       hardcode_direct_GCJ=yes
17582       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17583       hardcode_libdir_separator_GCJ=:
17584       hardcode_shlibpath_var_GCJ=no
17585       ;;
17586
17587     openbsd*)
17588       hardcode_direct_GCJ=yes
17589       hardcode_shlibpath_var_GCJ=no
17590       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17591         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17592         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17593         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17594         export_dynamic_flag_spec_GCJ='${wl}-E'
17595       else
17596        case $host_os in
17597          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17598            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17599            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17600            ;;
17601          *)
17602            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17603            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17604            ;;
17605        esac
17606       fi
17607       ;;
17608
17609     os2*)
17610       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17611       hardcode_minus_L_GCJ=yes
17612       allow_undefined_flag_GCJ=unsupported
17613       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'
17614       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17615       ;;
17616
17617     osf3*)
17618       if test "$GCC" = yes; then
17619         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17620         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'
17621       else
17622         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17623         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'
17624       fi
17625       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17626       hardcode_libdir_separator_GCJ=:
17627       ;;
17628
17629     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17630       if test "$GCC" = yes; then
17631         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17632         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'
17633         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17634       else
17635         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17636         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'
17637         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~
17638         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17639
17640         # Both c and cxx compiler support -rpath directly
17641         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17642       fi
17643       hardcode_libdir_separator_GCJ=:
17644       ;;
17645
17646     solaris*)
17647       no_undefined_flag_GCJ=' -z text'
17648       if test "$GCC" = yes; then
17649         wlarc='${wl}'
17650         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17651         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17652           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17653       else
17654         wlarc=''
17655         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17656         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17657         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17658       fi
17659       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17660       hardcode_shlibpath_var_GCJ=no
17661       case $host_os in
17662       solaris2.[0-5] | solaris2.[0-5].*) ;;
17663       *)
17664         # The compiler driver will combine linker options so we
17665         # cannot just pass the convience library names through
17666         # without $wl, iff we do not link with $LD.
17667         # Luckily, gcc supports the same syntax we need for Sun Studio.
17668         # Supported since Solaris 2.6 (maybe 2.5.1?)
17669         case $wlarc in
17670         '')
17671           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17672         *)
17673           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17674         esac ;;
17675       esac
17676       link_all_deplibs_GCJ=yes
17677       ;;
17678
17679     sunos4*)
17680       if test "x$host_vendor" = xsequent; then
17681         # Use $CC to link under sequent, because it throws in some extra .o
17682         # files that make .init and .fini sections work.
17683         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17684       else
17685         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17686       fi
17687       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17688       hardcode_direct_GCJ=yes
17689       hardcode_minus_L_GCJ=yes
17690       hardcode_shlibpath_var_GCJ=no
17691       ;;
17692
17693     sysv4)
17694       case $host_vendor in
17695         sni)
17696           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17697           hardcode_direct_GCJ=yes # is this really true???
17698         ;;
17699         siemens)
17700           ## LD is ld it makes a PLAMLIB
17701           ## CC just makes a GrossModule.
17702           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17703           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17704           hardcode_direct_GCJ=no
17705         ;;
17706         motorola)
17707           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17708           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17709         ;;
17710       esac
17711       runpath_var='LD_RUN_PATH'
17712       hardcode_shlibpath_var_GCJ=no
17713       ;;
17714
17715     sysv4.3*)
17716       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17717       hardcode_shlibpath_var_GCJ=no
17718       export_dynamic_flag_spec_GCJ='-Bexport'
17719       ;;
17720
17721     sysv4*MP*)
17722       if test -d /usr/nec; then
17723         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724         hardcode_shlibpath_var_GCJ=no
17725         runpath_var=LD_RUN_PATH
17726         hardcode_runpath_var=yes
17727         ld_shlibs_GCJ=yes
17728       fi
17729       ;;
17730
17731     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17732       no_undefined_flag_GCJ='${wl}-z,text'
17733       archive_cmds_need_lc_GCJ=no
17734       hardcode_shlibpath_var_GCJ=no
17735       runpath_var='LD_RUN_PATH'
17736
17737       if test "$GCC" = yes; then
17738         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17739         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17740       else
17741         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17742         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17743       fi
17744       ;;
17745
17746     sysv5* | sco3.2v5* | sco5v6*)
17747       # Note: We can NOT use -z defs as we might desire, because we do not
17748       # link with -lc, and that would cause any symbols used from libc to
17749       # always be unresolved, which means just about no library would
17750       # ever link correctly.  If we're not using GNU ld we use -z text
17751       # though, which does catch some bad symbols but isn't as heavy-handed
17752       # as -z defs.
17753       no_undefined_flag_GCJ='${wl}-z,text'
17754       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17755       archive_cmds_need_lc_GCJ=no
17756       hardcode_shlibpath_var_GCJ=no
17757       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17758       hardcode_libdir_separator_GCJ=':'
17759       link_all_deplibs_GCJ=yes
17760       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17761       runpath_var='LD_RUN_PATH'
17762
17763       if test "$GCC" = yes; then
17764         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17765         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17766       else
17767         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17768         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17769       fi
17770       ;;
17771
17772     uts4*)
17773       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17774       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17775       hardcode_shlibpath_var_GCJ=no
17776       ;;
17777
17778     *)
17779       ld_shlibs_GCJ=no
17780       ;;
17781     esac
17782   fi
17783
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17785 $as_echo "$ld_shlibs_GCJ" >&6; }
17786 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17787
17788 #
17789 # Do we need to explicitly link libc?
17790 #
17791 case "x$archive_cmds_need_lc_GCJ" in
17792 x|xyes)
17793   # Assume -lc should be added
17794   archive_cmds_need_lc_GCJ=yes
17795
17796   if test "$enable_shared" = yes && test "$GCC" = yes; then
17797     case $archive_cmds_GCJ in
17798     *'~'*)
17799       # FIXME: we may have to deal with multi-command sequences.
17800       ;;
17801     '$CC '*)
17802       # Test whether the compiler implicitly links with -lc since on some
17803       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17804       # to ld, don't add -lc before -lgcc.
17805       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17806 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17807       $rm conftest*
17808       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17809
17810       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17811   (eval $ac_compile) 2>&5
17812   ac_status=$?
17813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17814   test $ac_status = 0; } 2>conftest.err; then
17815         soname=conftest
17816         lib=conftest
17817         libobjs=conftest.$ac_objext
17818         deplibs=
17819         wl=$lt_prog_compiler_wl_GCJ
17820         pic_flag=$lt_prog_compiler_pic_GCJ
17821         compiler_flags=-v
17822         linker_flags=-v
17823         verstring=
17824         output_objdir=.
17825         libname=conftest
17826         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17827         allow_undefined_flag_GCJ=
17828         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17829   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17830   ac_status=$?
17831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17832   test $ac_status = 0; }
17833         then
17834           archive_cmds_need_lc_GCJ=no
17835         else
17836           archive_cmds_need_lc_GCJ=yes
17837         fi
17838         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17839       else
17840         cat conftest.err 1>&5
17841       fi
17842       $rm conftest*
17843       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17844 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17845       ;;
17846     esac
17847   fi
17848   ;;
17849 esac
17850
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17852 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17853 library_names_spec=
17854 libname_spec='lib$name'
17855 soname_spec=
17856 shrext_cmds=".so"
17857 postinstall_cmds=
17858 postuninstall_cmds=
17859 finish_cmds=
17860 finish_eval=
17861 shlibpath_var=
17862 shlibpath_overrides_runpath=unknown
17863 version_type=none
17864 dynamic_linker="$host_os ld.so"
17865 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17866 if test "$GCC" = yes; then
17867   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17868   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17869     # if the path contains ";" then we assume it to be the separator
17870     # otherwise default to the standard path separator (i.e. ":") - it is
17871     # assumed that no part of a normal pathname contains ";" but that should
17872     # okay in the real world where ";" in dirpaths is itself problematic.
17873     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17874   else
17875     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17876   fi
17877 else
17878   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17879 fi
17880 need_lib_prefix=unknown
17881 hardcode_into_libs=no
17882
17883 # when you set need_version to no, make sure it does not cause -set_version
17884 # flags to be left without arguments
17885 need_version=unknown
17886
17887 case $host_os in
17888 aix3*)
17889   version_type=linux
17890   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17891   shlibpath_var=LIBPATH
17892
17893   # AIX 3 has no versioning support, so we append a major version to the name.
17894   soname_spec='${libname}${release}${shared_ext}$major'
17895   ;;
17896
17897 aix4* | aix5*)
17898   version_type=linux
17899   need_lib_prefix=no
17900   need_version=no
17901   hardcode_into_libs=yes
17902   if test "$host_cpu" = ia64; then
17903     # AIX 5 supports IA64
17904     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17905     shlibpath_var=LD_LIBRARY_PATH
17906   else
17907     # With GCC up to 2.95.x, collect2 would create an import file
17908     # for dependence libraries.  The import file would start with
17909     # the line `#! .'.  This would cause the generated library to
17910     # depend on `.', always an invalid library.  This was fixed in
17911     # development snapshots of GCC prior to 3.0.
17912     case $host_os in
17913       aix4 | aix4.[01] | aix4.[01].*)
17914       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17915            echo ' yes '
17916            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17917         :
17918       else
17919         can_build_shared=no
17920       fi
17921       ;;
17922     esac
17923     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17924     # soname into executable. Probably we can add versioning support to
17925     # collect2, so additional links can be useful in future.
17926     if test "$aix_use_runtimelinking" = yes; then
17927       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17928       # instead of lib<name>.a to let people know that these are not
17929       # typical AIX shared libraries.
17930       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17931     else
17932       # We preserve .a as extension for shared libraries through AIX4.2
17933       # and later when we are not doing run time linking.
17934       library_names_spec='${libname}${release}.a $libname.a'
17935       soname_spec='${libname}${release}${shared_ext}$major'
17936     fi
17937     shlibpath_var=LIBPATH
17938   fi
17939   ;;
17940
17941 amigaos*)
17942   library_names_spec='$libname.ixlibrary $libname.a'
17943   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17944   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'
17945   ;;
17946
17947 beos*)
17948   library_names_spec='${libname}${shared_ext}'
17949   dynamic_linker="$host_os ld.so"
17950   shlibpath_var=LIBRARY_PATH
17951   ;;
17952
17953 bsdi[45]*)
17954   version_type=linux
17955   need_version=no
17956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17957   soname_spec='${libname}${release}${shared_ext}$major'
17958   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17959   shlibpath_var=LD_LIBRARY_PATH
17960   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17961   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17962   # the default ld.so.conf also contains /usr/contrib/lib and
17963   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17964   # libtool to hard-code these into programs
17965   ;;
17966
17967 cygwin* | mingw* | pw32*)
17968   version_type=windows
17969   shrext_cmds=".dll"
17970   need_version=no
17971   need_lib_prefix=no
17972
17973   case $GCC,$host_os in
17974   yes,cygwin* | yes,mingw* | yes,pw32*)
17975     library_names_spec='$libname.dll.a'
17976     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17977     postinstall_cmds='base_file=`basename \${file}`~
17978       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17979       dldir=$destdir/`dirname \$dlpath`~
17980       test -d \$dldir || mkdir -p \$dldir~
17981       $install_prog $dir/$dlname \$dldir/$dlname~
17982       chmod a+x \$dldir/$dlname'
17983     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17984       dlpath=$dir/\$dldll~
17985        $rm \$dlpath'
17986     shlibpath_overrides_runpath=yes
17987
17988     case $host_os in
17989     cygwin*)
17990       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17991       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17992       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17993       ;;
17994     mingw*)
17995       # MinGW DLLs use traditional 'lib' prefix
17996       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17997       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17998       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17999         # It is most probably a Windows format PATH printed by
18000         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18001         # path with ; separators, and with drive letters. We can handle the
18002         # drive letters (cygwin fileutils understands them), so leave them,
18003         # especially as we might pass files found there to a mingw objdump,
18004         # which wouldn't understand a cygwinified path. Ahh.
18005         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18006       else
18007         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18008       fi
18009       ;;
18010     pw32*)
18011       # pw32 DLLs use 'pw' prefix rather than 'lib'
18012       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18013       ;;
18014     esac
18015     ;;
18016
18017   *)
18018     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18019     ;;
18020   esac
18021   dynamic_linker='Win32 ld.exe'
18022   # FIXME: first we should search . and the directory the executable is in
18023   shlibpath_var=PATH
18024   ;;
18025
18026 darwin* | rhapsody*)
18027   dynamic_linker="$host_os dyld"
18028   version_type=darwin
18029   need_lib_prefix=no
18030   need_version=no
18031   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18032   soname_spec='${libname}${release}${major}$shared_ext'
18033   shlibpath_overrides_runpath=yes
18034   shlibpath_var=DYLD_LIBRARY_PATH
18035   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18036   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18037   if test "$GCC" = yes; then
18038     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"`
18039   else
18040     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18041   fi
18042   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18043   ;;
18044
18045 dgux*)
18046   version_type=linux
18047   need_lib_prefix=no
18048   need_version=no
18049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18050   soname_spec='${libname}${release}${shared_ext}$major'
18051   shlibpath_var=LD_LIBRARY_PATH
18052   ;;
18053
18054 freebsd1*)
18055   dynamic_linker=no
18056   ;;
18057
18058 kfreebsd*-gnu)
18059   version_type=linux
18060   need_lib_prefix=no
18061   need_version=no
18062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18063   soname_spec='${libname}${release}${shared_ext}$major'
18064   shlibpath_var=LD_LIBRARY_PATH
18065   shlibpath_overrides_runpath=no
18066   hardcode_into_libs=yes
18067   dynamic_linker='GNU ld.so'
18068   ;;
18069
18070 freebsd* | dragonfly*)
18071   # DragonFly does not have aout.  When/if they implement a new
18072   # versioning mechanism, adjust this.
18073   if test -x /usr/bin/objformat; then
18074     objformat=`/usr/bin/objformat`
18075   else
18076     case $host_os in
18077     freebsd[123]*) objformat=aout ;;
18078     *) objformat=elf ;;
18079     esac
18080   fi
18081   version_type=freebsd-$objformat
18082   case $version_type in
18083     freebsd-elf*)
18084       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18085       need_version=no
18086       need_lib_prefix=no
18087       ;;
18088     freebsd-*)
18089       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18090       need_version=yes
18091       ;;
18092   esac
18093   shlibpath_var=LD_LIBRARY_PATH
18094   case $host_os in
18095   freebsd2*)
18096     shlibpath_overrides_runpath=yes
18097     ;;
18098   freebsd3.[01]* | freebsdelf3.[01]*)
18099     shlibpath_overrides_runpath=yes
18100     hardcode_into_libs=yes
18101     ;;
18102   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18103   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18104     shlibpath_overrides_runpath=no
18105     hardcode_into_libs=yes
18106     ;;
18107   freebsd*) # from 4.6 on
18108     shlibpath_overrides_runpath=yes
18109     hardcode_into_libs=yes
18110     ;;
18111   esac
18112   ;;
18113
18114 gnu*)
18115   version_type=linux
18116   need_lib_prefix=no
18117   need_version=no
18118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18119   soname_spec='${libname}${release}${shared_ext}$major'
18120   shlibpath_var=LD_LIBRARY_PATH
18121   hardcode_into_libs=yes
18122   ;;
18123
18124 hpux9* | hpux10* | hpux11*)
18125   # Give a soname corresponding to the major version so that dld.sl refuses to
18126   # link against other versions.
18127   version_type=sunos
18128   need_lib_prefix=no
18129   need_version=no
18130   case $host_cpu in
18131   ia64*)
18132     shrext_cmds='.so'
18133     hardcode_into_libs=yes
18134     dynamic_linker="$host_os dld.so"
18135     shlibpath_var=LD_LIBRARY_PATH
18136     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18138     soname_spec='${libname}${release}${shared_ext}$major'
18139     if test "X$HPUX_IA64_MODE" = X32; then
18140       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18141     else
18142       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18143     fi
18144     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18145     ;;
18146    hppa*64*)
18147      shrext_cmds='.sl'
18148      hardcode_into_libs=yes
18149      dynamic_linker="$host_os dld.sl"
18150      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18151      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18152      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18153      soname_spec='${libname}${release}${shared_ext}$major'
18154      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18155      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18156      ;;
18157    *)
18158     shrext_cmds='.sl'
18159     dynamic_linker="$host_os dld.sl"
18160     shlibpath_var=SHLIB_PATH
18161     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18163     soname_spec='${libname}${release}${shared_ext}$major'
18164     ;;
18165   esac
18166   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18167   postinstall_cmds='chmod 555 $lib'
18168   ;;
18169
18170 interix3*)
18171   version_type=linux
18172   need_lib_prefix=no
18173   need_version=no
18174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18175   soname_spec='${libname}${release}${shared_ext}$major'
18176   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18177   shlibpath_var=LD_LIBRARY_PATH
18178   shlibpath_overrides_runpath=no
18179   hardcode_into_libs=yes
18180   ;;
18181
18182 irix5* | irix6* | nonstopux*)
18183   case $host_os in
18184     nonstopux*) version_type=nonstopux ;;
18185     *)
18186         if test "$lt_cv_prog_gnu_ld" = yes; then
18187                 version_type=linux
18188         else
18189                 version_type=irix
18190         fi ;;
18191   esac
18192   need_lib_prefix=no
18193   need_version=no
18194   soname_spec='${libname}${release}${shared_ext}$major'
18195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18196   case $host_os in
18197   irix5* | nonstopux*)
18198     libsuff= shlibsuff=
18199     ;;
18200   *)
18201     case $LD in # libtool.m4 will add one of these switches to LD
18202     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18203       libsuff= shlibsuff= libmagic=32-bit;;
18204     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18205       libsuff=32 shlibsuff=N32 libmagic=N32;;
18206     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18207       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18208     *) libsuff= shlibsuff= libmagic=never-match;;
18209     esac
18210     ;;
18211   esac
18212   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18213   shlibpath_overrides_runpath=no
18214   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18215   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18216   hardcode_into_libs=yes
18217   ;;
18218
18219 # No shared lib support for Linux oldld, aout, or coff.
18220 linux*oldld* | linux*aout* | linux*coff*)
18221   dynamic_linker=no
18222   ;;
18223
18224 # This must be Linux ELF.
18225 linux*)
18226   version_type=linux
18227   need_lib_prefix=no
18228   need_version=no
18229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18230   soname_spec='${libname}${release}${shared_ext}$major'
18231   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18232   shlibpath_var=LD_LIBRARY_PATH
18233   shlibpath_overrides_runpath=no
18234   # This implies no fast_install, which is unacceptable.
18235   # Some rework will be needed to allow for fast_install
18236   # before this can be enabled.
18237   hardcode_into_libs=yes
18238
18239   # Append ld.so.conf contents to the search path
18240   if test -f /etc/ld.so.conf; then
18241     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18242     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18243   fi
18244
18245   # We used to test for /lib/ld.so.1 and disable shared libraries on
18246   # powerpc, because MkLinux only supported shared libraries with the
18247   # GNU dynamic linker.  Since this was broken with cross compilers,
18248   # most powerpc-linux boxes support dynamic linking these days and
18249   # people can always --disable-shared, the test was removed, and we
18250   # assume the GNU/Linux dynamic linker is in use.
18251   dynamic_linker='GNU/Linux ld.so'
18252   ;;
18253
18254 knetbsd*-gnu)
18255   version_type=linux
18256   need_lib_prefix=no
18257   need_version=no
18258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18259   soname_spec='${libname}${release}${shared_ext}$major'
18260   shlibpath_var=LD_LIBRARY_PATH
18261   shlibpath_overrides_runpath=no
18262   hardcode_into_libs=yes
18263   dynamic_linker='GNU ld.so'
18264   ;;
18265
18266 netbsd*)
18267   version_type=sunos
18268   need_lib_prefix=no
18269   need_version=no
18270   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18272     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18273     dynamic_linker='NetBSD (a.out) ld.so'
18274   else
18275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18276     soname_spec='${libname}${release}${shared_ext}$major'
18277     dynamic_linker='NetBSD ld.elf_so'
18278   fi
18279   shlibpath_var=LD_LIBRARY_PATH
18280   shlibpath_overrides_runpath=yes
18281   hardcode_into_libs=yes
18282   ;;
18283
18284 newsos6)
18285   version_type=linux
18286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18287   shlibpath_var=LD_LIBRARY_PATH
18288   shlibpath_overrides_runpath=yes
18289   ;;
18290
18291 nto-qnx*)
18292   version_type=linux
18293   need_lib_prefix=no
18294   need_version=no
18295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18296   soname_spec='${libname}${release}${shared_ext}$major'
18297   shlibpath_var=LD_LIBRARY_PATH
18298   shlibpath_overrides_runpath=yes
18299   ;;
18300
18301 openbsd*)
18302   version_type=sunos
18303   sys_lib_dlsearch_path_spec="/usr/lib"
18304   need_lib_prefix=no
18305   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18306   case $host_os in
18307     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18308     *)                         need_version=no  ;;
18309   esac
18310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18311   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18312   shlibpath_var=LD_LIBRARY_PATH
18313   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18314     case $host_os in
18315       openbsd2.[89] | openbsd2.[89].*)
18316         shlibpath_overrides_runpath=no
18317         ;;
18318       *)
18319         shlibpath_overrides_runpath=yes
18320         ;;
18321       esac
18322   else
18323     shlibpath_overrides_runpath=yes
18324   fi
18325   ;;
18326
18327 os2*)
18328   libname_spec='$name'
18329   shrext_cmds=".dll"
18330   need_lib_prefix=no
18331   library_names_spec='$libname${shared_ext} $libname.a'
18332   dynamic_linker='OS/2 ld.exe'
18333   shlibpath_var=LIBPATH
18334   ;;
18335
18336 osf3* | osf4* | osf5*)
18337   version_type=osf
18338   need_lib_prefix=no
18339   need_version=no
18340   soname_spec='${libname}${release}${shared_ext}$major'
18341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18342   shlibpath_var=LD_LIBRARY_PATH
18343   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18344   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18345   ;;
18346
18347 solaris*)
18348   version_type=linux
18349   need_lib_prefix=no
18350   need_version=no
18351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18352   soname_spec='${libname}${release}${shared_ext}$major'
18353   shlibpath_var=LD_LIBRARY_PATH
18354   shlibpath_overrides_runpath=yes
18355   hardcode_into_libs=yes
18356   # ldd complains unless libraries are executable
18357   postinstall_cmds='chmod +x $lib'
18358   ;;
18359
18360 sunos4*)
18361   version_type=sunos
18362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18363   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18364   shlibpath_var=LD_LIBRARY_PATH
18365   shlibpath_overrides_runpath=yes
18366   if test "$with_gnu_ld" = yes; then
18367     need_lib_prefix=no
18368   fi
18369   need_version=yes
18370   ;;
18371
18372 sysv4 | sysv4.3*)
18373   version_type=linux
18374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18375   soname_spec='${libname}${release}${shared_ext}$major'
18376   shlibpath_var=LD_LIBRARY_PATH
18377   case $host_vendor in
18378     sni)
18379       shlibpath_overrides_runpath=no
18380       need_lib_prefix=no
18381       export_dynamic_flag_spec='${wl}-Blargedynsym'
18382       runpath_var=LD_RUN_PATH
18383       ;;
18384     siemens)
18385       need_lib_prefix=no
18386       ;;
18387     motorola)
18388       need_lib_prefix=no
18389       need_version=no
18390       shlibpath_overrides_runpath=no
18391       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18392       ;;
18393   esac
18394   ;;
18395
18396 sysv4*MP*)
18397   if test -d /usr/nec ;then
18398     version_type=linux
18399     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18400     soname_spec='$libname${shared_ext}.$major'
18401     shlibpath_var=LD_LIBRARY_PATH
18402   fi
18403   ;;
18404
18405 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18406   version_type=freebsd-elf
18407   need_lib_prefix=no
18408   need_version=no
18409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18410   soname_spec='${libname}${release}${shared_ext}$major'
18411   shlibpath_var=LD_LIBRARY_PATH
18412   hardcode_into_libs=yes
18413   if test "$with_gnu_ld" = yes; then
18414     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18415     shlibpath_overrides_runpath=no
18416   else
18417     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18418     shlibpath_overrides_runpath=yes
18419     case $host_os in
18420       sco3.2v5*)
18421         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18422         ;;
18423     esac
18424   fi
18425   sys_lib_dlsearch_path_spec='/usr/lib'
18426   ;;
18427
18428 uts4*)
18429   version_type=linux
18430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18431   soname_spec='${libname}${release}${shared_ext}$major'
18432   shlibpath_var=LD_LIBRARY_PATH
18433   ;;
18434
18435 *)
18436   dynamic_linker=no
18437   ;;
18438 esac
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18440 $as_echo "$dynamic_linker" >&6; }
18441 test "$dynamic_linker" = no && can_build_shared=no
18442
18443 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18444 if test "$GCC" = yes; then
18445   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18446 fi
18447
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18449 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18450 hardcode_action_GCJ=
18451 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18452    test -n "$runpath_var_GCJ" || \
18453    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18454
18455   # We can hardcode non-existant directories.
18456   if test "$hardcode_direct_GCJ" != no &&
18457      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18458      # have to relink, otherwise we might link with an installed library
18459      # when we should be linking with a yet-to-be-installed one
18460      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18461      test "$hardcode_minus_L_GCJ" != no; then
18462     # Linking always hardcodes the temporary library directory.
18463     hardcode_action_GCJ=relink
18464   else
18465     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18466     hardcode_action_GCJ=immediate
18467   fi
18468 else
18469   # We cannot hardcode anything, or else we can only hardcode existing
18470   # directories.
18471   hardcode_action_GCJ=unsupported
18472 fi
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18474 $as_echo "$hardcode_action_GCJ" >&6; }
18475
18476 if test "$hardcode_action_GCJ" = relink; then
18477   # Fast installation is not supported
18478   enable_fast_install=no
18479 elif test "$shlibpath_overrides_runpath" = yes ||
18480      test "$enable_shared" = no; then
18481   # Fast installation is not necessary
18482   enable_fast_install=needless
18483 fi
18484
18485
18486 # The else clause should only fire when bootstrapping the
18487 # libtool distribution, otherwise you forgot to ship ltmain.sh
18488 # with your package, and you will get complaints that there are
18489 # no rules to generate ltmain.sh.
18490 if test -f "$ltmain"; then
18491   # See if we are running on zsh, and set the options which allow our commands through
18492   # without removal of \ escapes.
18493   if test -n "${ZSH_VERSION+set}" ; then
18494     setopt NO_GLOB_SUBST
18495   fi
18496   # Now quote all the things that may contain metacharacters while being
18497   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18498   # variables and quote the copies for generation of the libtool script.
18499   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18500     SED SHELL STRIP \
18501     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18502     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18503     deplibs_check_method reload_flag reload_cmds need_locks \
18504     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18505     lt_cv_sys_global_symbol_to_c_name_address \
18506     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18507     old_postinstall_cmds old_postuninstall_cmds \
18508     compiler_GCJ \
18509     CC_GCJ \
18510     LD_GCJ \
18511     lt_prog_compiler_wl_GCJ \
18512     lt_prog_compiler_pic_GCJ \
18513     lt_prog_compiler_static_GCJ \
18514     lt_prog_compiler_no_builtin_flag_GCJ \
18515     export_dynamic_flag_spec_GCJ \
18516     thread_safe_flag_spec_GCJ \
18517     whole_archive_flag_spec_GCJ \
18518     enable_shared_with_static_runtimes_GCJ \
18519     old_archive_cmds_GCJ \
18520     old_archive_from_new_cmds_GCJ \
18521     predep_objects_GCJ \
18522     postdep_objects_GCJ \
18523     predeps_GCJ \
18524     postdeps_GCJ \
18525     compiler_lib_search_path_GCJ \
18526     archive_cmds_GCJ \
18527     archive_expsym_cmds_GCJ \
18528     postinstall_cmds_GCJ \
18529     postuninstall_cmds_GCJ \
18530     old_archive_from_expsyms_cmds_GCJ \
18531     allow_undefined_flag_GCJ \
18532     no_undefined_flag_GCJ \
18533     export_symbols_cmds_GCJ \
18534     hardcode_libdir_flag_spec_GCJ \
18535     hardcode_libdir_flag_spec_ld_GCJ \
18536     hardcode_libdir_separator_GCJ \
18537     hardcode_automatic_GCJ \
18538     module_cmds_GCJ \
18539     module_expsym_cmds_GCJ \
18540     lt_cv_prog_compiler_c_o_GCJ \
18541     exclude_expsyms_GCJ \
18542     include_expsyms_GCJ; do
18543
18544     case $var in
18545     old_archive_cmds_GCJ | \
18546     old_archive_from_new_cmds_GCJ | \
18547     archive_cmds_GCJ | \
18548     archive_expsym_cmds_GCJ | \
18549     module_cmds_GCJ | \
18550     module_expsym_cmds_GCJ | \
18551     old_archive_from_expsyms_cmds_GCJ | \
18552     export_symbols_cmds_GCJ | \
18553     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18554     postinstall_cmds | postuninstall_cmds | \
18555     old_postinstall_cmds | old_postuninstall_cmds | \
18556     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18557       # Double-quote double-evaled strings.
18558       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18559       ;;
18560     *)
18561       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18562       ;;
18563     esac
18564   done
18565
18566   case $lt_echo in
18567   *'\$0 --fallback-echo"')
18568     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18569     ;;
18570   esac
18571
18572 cfgfile="$ofile"
18573
18574   cat <<__EOF__ >> "$cfgfile"
18575 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18576
18577 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18578
18579 # Shell to use when invoking shell scripts.
18580 SHELL=$lt_SHELL
18581
18582 # Whether or not to build shared libraries.
18583 build_libtool_libs=$enable_shared
18584
18585 # Whether or not to build static libraries.
18586 build_old_libs=$enable_static
18587
18588 # Whether or not to add -lc for building shared libraries.
18589 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18590
18591 # Whether or not to disallow shared libs when runtime libs are static
18592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18593
18594 # Whether or not to optimize for fast installation.
18595 fast_install=$enable_fast_install
18596
18597 # The host system.
18598 host_alias=$host_alias
18599 host=$host
18600 host_os=$host_os
18601
18602 # The build system.
18603 build_alias=$build_alias
18604 build=$build
18605 build_os=$build_os
18606
18607 # An echo program that does not interpret backslashes.
18608 echo=$lt_echo
18609
18610 # The archiver.
18611 AR=$lt_AR
18612 AR_FLAGS=$lt_AR_FLAGS
18613
18614 # A C compiler.
18615 LTCC=$lt_LTCC
18616
18617 # LTCC compiler flags.
18618 LTCFLAGS=$lt_LTCFLAGS
18619
18620 # A language-specific compiler.
18621 CC=$lt_compiler_GCJ
18622
18623 # Is the compiler the GNU C compiler?
18624 with_gcc=$GCC_GCJ
18625
18626 # An ERE matcher.
18627 EGREP=$lt_EGREP
18628
18629 # The linker used to build libraries.
18630 LD=$lt_LD_GCJ
18631
18632 # Whether we need hard or soft links.
18633 LN_S=$lt_LN_S
18634
18635 # A BSD-compatible nm program.
18636 NM=$lt_NM
18637
18638 # A symbol stripping program
18639 STRIP=$lt_STRIP
18640
18641 # Used to examine libraries when file_magic_cmd begins "file"
18642 MAGIC_CMD=$MAGIC_CMD
18643
18644 # Used on cygwin: DLL creation program.
18645 DLLTOOL="$DLLTOOL"
18646
18647 # Used on cygwin: object dumper.
18648 OBJDUMP="$OBJDUMP"
18649
18650 # Used on cygwin: assembler.
18651 AS="$AS"
18652
18653 # The name of the directory that contains temporary libtool files.
18654 objdir=$objdir
18655
18656 # How to create reloadable object files.
18657 reload_flag=$lt_reload_flag
18658 reload_cmds=$lt_reload_cmds
18659
18660 # How to pass a linker flag through the compiler.
18661 wl=$lt_lt_prog_compiler_wl_GCJ
18662
18663 # Object file suffix (normally "o").
18664 objext="$ac_objext"
18665
18666 # Old archive suffix (normally "a").
18667 libext="$libext"
18668
18669 # Shared library suffix (normally ".so").
18670 shrext_cmds='$shrext_cmds'
18671
18672 # Executable file suffix (normally "").
18673 exeext="$exeext"
18674
18675 # Additional compiler flags for building library objects.
18676 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18677 pic_mode=$pic_mode
18678
18679 # What is the maximum length of a command?
18680 max_cmd_len=$lt_cv_sys_max_cmd_len
18681
18682 # Does compiler simultaneously support -c and -o options?
18683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18684
18685 # Must we lock files when doing compilation?
18686 need_locks=$lt_need_locks
18687
18688 # Do we need the lib prefix for modules?
18689 need_lib_prefix=$need_lib_prefix
18690
18691 # Do we need a version for libraries?
18692 need_version=$need_version
18693
18694 # Whether dlopen is supported.
18695 dlopen_support=$enable_dlopen
18696
18697 # Whether dlopen of programs is supported.
18698 dlopen_self=$enable_dlopen_self
18699
18700 # Whether dlopen of statically linked programs is supported.
18701 dlopen_self_static=$enable_dlopen_self_static
18702
18703 # Compiler flag to prevent dynamic linking.
18704 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18705
18706 # Compiler flag to turn off builtin functions.
18707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18708
18709 # Compiler flag to allow reflexive dlopens.
18710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18711
18712 # Compiler flag to generate shared objects directly from archives.
18713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18714
18715 # Compiler flag to generate thread-safe objects.
18716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18717
18718 # Library versioning type.
18719 version_type=$version_type
18720
18721 # Format of library name prefix.
18722 libname_spec=$lt_libname_spec
18723
18724 # List of archive names.  First name is the real one, the rest are links.
18725 # The last name is the one that the linker finds with -lNAME.
18726 library_names_spec=$lt_library_names_spec
18727
18728 # The coded name of the library, if different from the real name.
18729 soname_spec=$lt_soname_spec
18730
18731 # Commands used to build and install an old-style archive.
18732 RANLIB=$lt_RANLIB
18733 old_archive_cmds=$lt_old_archive_cmds_GCJ
18734 old_postinstall_cmds=$lt_old_postinstall_cmds
18735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18736
18737 # Create an old-style archive from a shared archive.
18738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18739
18740 # Create a temporary old-style archive to link instead of a shared archive.
18741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18742
18743 # Commands used to build and install a shared archive.
18744 archive_cmds=$lt_archive_cmds_GCJ
18745 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18746 postinstall_cmds=$lt_postinstall_cmds
18747 postuninstall_cmds=$lt_postuninstall_cmds
18748
18749 # Commands used to build a loadable module (assumed same as above if empty)
18750 module_cmds=$lt_module_cmds_GCJ
18751 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18752
18753 # Commands to strip libraries.
18754 old_striplib=$lt_old_striplib
18755 striplib=$lt_striplib
18756
18757 # Dependencies to place before the objects being linked to create a
18758 # shared library.
18759 predep_objects=$lt_predep_objects_GCJ
18760
18761 # Dependencies to place after the objects being linked to create a
18762 # shared library.
18763 postdep_objects=$lt_postdep_objects_GCJ
18764
18765 # Dependencies to place before the objects being linked to create a
18766 # shared library.
18767 predeps=$lt_predeps_GCJ
18768
18769 # Dependencies to place after the objects being linked to create a
18770 # shared library.
18771 postdeps=$lt_postdeps_GCJ
18772
18773 # The library search path used internally by the compiler when linking
18774 # a shared library.
18775 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18776
18777 # Method to check whether dependent libraries are shared objects.
18778 deplibs_check_method=$lt_deplibs_check_method
18779
18780 # Command to use when deplibs_check_method == file_magic.
18781 file_magic_cmd=$lt_file_magic_cmd
18782
18783 # Flag that allows shared libraries with undefined symbols to be built.
18784 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18785
18786 # Flag that forces no undefined symbols.
18787 no_undefined_flag=$lt_no_undefined_flag_GCJ
18788
18789 # Commands used to finish a libtool library installation in a directory.
18790 finish_cmds=$lt_finish_cmds
18791
18792 # Same as above, but a single script fragment to be evaled but not shown.
18793 finish_eval=$lt_finish_eval
18794
18795 # Take the output of nm and produce a listing of raw symbols and C names.
18796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18797
18798 # Transform the output of nm in a proper C declaration
18799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18800
18801 # Transform the output of nm in a C name address pair
18802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18803
18804 # This is the shared library runtime path variable.
18805 runpath_var=$runpath_var
18806
18807 # This is the shared library path variable.
18808 shlibpath_var=$shlibpath_var
18809
18810 # Is shlibpath searched before the hard-coded library search path?
18811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18812
18813 # How to hardcode a shared library path into an executable.
18814 hardcode_action=$hardcode_action_GCJ
18815
18816 # Whether we should hardcode library paths into libraries.
18817 hardcode_into_libs=$hardcode_into_libs
18818
18819 # Flag to hardcode \$libdir into a binary during linking.
18820 # This must work even if \$libdir does not exist.
18821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18822
18823 # If ld is used when linking, flag to hardcode \$libdir into
18824 # a binary during linking. This must work even if \$libdir does
18825 # not exist.
18826 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18827
18828 # Whether we need a single -rpath flag with a separated argument.
18829 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18830
18831 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18832 # resulting binary.
18833 hardcode_direct=$hardcode_direct_GCJ
18834
18835 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18836 # resulting binary.
18837 hardcode_minus_L=$hardcode_minus_L_GCJ
18838
18839 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18840 # the resulting binary.
18841 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18842
18843 # Set to yes if building a shared library automatically hardcodes DIR into the library
18844 # and all subsequent libraries and executables linked against it.
18845 hardcode_automatic=$hardcode_automatic_GCJ
18846
18847 # Variables whose values should be saved in libtool wrapper scripts and
18848 # restored at relink time.
18849 variables_saved_for_relink="$variables_saved_for_relink"
18850
18851 # Whether libtool must link a program against all its dependency libraries.
18852 link_all_deplibs=$link_all_deplibs_GCJ
18853
18854 # Compile-time system search path for libraries
18855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18856
18857 # Run-time system search path for libraries
18858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18859
18860 # Fix the shell variable \$srcfile for the compiler.
18861 fix_srcfile_path="$fix_srcfile_path_GCJ"
18862
18863 # Set to yes if exported symbols are required.
18864 always_export_symbols=$always_export_symbols_GCJ
18865
18866 # The commands to list exported symbols.
18867 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18868
18869 # The commands to extract the exported symbol list from a shared archive.
18870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18871
18872 # Symbols that should not be listed in the preloaded symbols.
18873 exclude_expsyms=$lt_exclude_expsyms_GCJ
18874
18875 # Symbols that must always be exported.
18876 include_expsyms=$lt_include_expsyms_GCJ
18877
18878 # ### END LIBTOOL TAG CONFIG: $tagname
18879
18880 __EOF__
18881
18882
18883 else
18884   # If there is no Makefile yet, we rely on a make rule to execute
18885   # `config.status --recheck' to rerun these tests and create the
18886   # libtool script then.
18887   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18888   if test -f "$ltmain_in"; then
18889     test -f Makefile && make "$ltmain"
18890   fi
18891 fi
18892
18893
18894 ac_ext=c
18895 ac_cpp='$CPP $CPPFLAGS'
18896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18899
18900 CC="$lt_save_CC"
18901
18902         else
18903           tagname=""
18904         fi
18905         ;;
18906
18907       RC)
18908
18909
18910 # Source file extension for RC test sources.
18911 ac_ext=rc
18912
18913 # Object file extension for compiled RC test sources.
18914 objext=o
18915 objext_RC=$objext
18916
18917 # Code to be used in simple compile tests
18918 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18919
18920 # Code to be used in simple link tests
18921 lt_simple_link_test_code="$lt_simple_compile_test_code"
18922
18923 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18924
18925 # If no C compiler was specified, use CC.
18926 LTCC=${LTCC-"$CC"}
18927
18928 # If no C compiler flags were specified, use CFLAGS.
18929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18930
18931 # Allow CC to be a program name with arguments.
18932 compiler=$CC
18933
18934
18935 # save warnings/boilerplate of simple test code
18936 ac_outfile=conftest.$ac_objext
18937 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18938 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18939 _lt_compiler_boilerplate=`cat conftest.err`
18940 $rm conftest*
18941
18942 ac_outfile=conftest.$ac_objext
18943 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18944 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18945 _lt_linker_boilerplate=`cat conftest.err`
18946 $rm conftest*
18947
18948
18949 # Allow CC to be a program name with arguments.
18950 lt_save_CC="$CC"
18951 CC=${RC-"windres"}
18952 compiler=$CC
18953 compiler_RC=$CC
18954 for cc_temp in $compiler""; do
18955   case $cc_temp in
18956     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18957     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18958     \-*) ;;
18959     *) break;;
18960   esac
18961 done
18962 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18963
18964 lt_cv_prog_compiler_c_o_RC=yes
18965
18966 # The else clause should only fire when bootstrapping the
18967 # libtool distribution, otherwise you forgot to ship ltmain.sh
18968 # with your package, and you will get complaints that there are
18969 # no rules to generate ltmain.sh.
18970 if test -f "$ltmain"; then
18971   # See if we are running on zsh, and set the options which allow our commands through
18972   # without removal of \ escapes.
18973   if test -n "${ZSH_VERSION+set}" ; then
18974     setopt NO_GLOB_SUBST
18975   fi
18976   # Now quote all the things that may contain metacharacters while being
18977   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18978   # variables and quote the copies for generation of the libtool script.
18979   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18980     SED SHELL STRIP \
18981     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18982     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18983     deplibs_check_method reload_flag reload_cmds need_locks \
18984     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18985     lt_cv_sys_global_symbol_to_c_name_address \
18986     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18987     old_postinstall_cmds old_postuninstall_cmds \
18988     compiler_RC \
18989     CC_RC \
18990     LD_RC \
18991     lt_prog_compiler_wl_RC \
18992     lt_prog_compiler_pic_RC \
18993     lt_prog_compiler_static_RC \
18994     lt_prog_compiler_no_builtin_flag_RC \
18995     export_dynamic_flag_spec_RC \
18996     thread_safe_flag_spec_RC \
18997     whole_archive_flag_spec_RC \
18998     enable_shared_with_static_runtimes_RC \
18999     old_archive_cmds_RC \
19000     old_archive_from_new_cmds_RC \
19001     predep_objects_RC \
19002     postdep_objects_RC \
19003     predeps_RC \
19004     postdeps_RC \
19005     compiler_lib_search_path_RC \
19006     archive_cmds_RC \
19007     archive_expsym_cmds_RC \
19008     postinstall_cmds_RC \
19009     postuninstall_cmds_RC \
19010     old_archive_from_expsyms_cmds_RC \
19011     allow_undefined_flag_RC \
19012     no_undefined_flag_RC \
19013     export_symbols_cmds_RC \
19014     hardcode_libdir_flag_spec_RC \
19015     hardcode_libdir_flag_spec_ld_RC \
19016     hardcode_libdir_separator_RC \
19017     hardcode_automatic_RC \
19018     module_cmds_RC \
19019     module_expsym_cmds_RC \
19020     lt_cv_prog_compiler_c_o_RC \
19021     exclude_expsyms_RC \
19022     include_expsyms_RC; do
19023
19024     case $var in
19025     old_archive_cmds_RC | \
19026     old_archive_from_new_cmds_RC | \
19027     archive_cmds_RC | \
19028     archive_expsym_cmds_RC | \
19029     module_cmds_RC | \
19030     module_expsym_cmds_RC | \
19031     old_archive_from_expsyms_cmds_RC | \
19032     export_symbols_cmds_RC | \
19033     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19034     postinstall_cmds | postuninstall_cmds | \
19035     old_postinstall_cmds | old_postuninstall_cmds | \
19036     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19037       # Double-quote double-evaled strings.
19038       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19039       ;;
19040     *)
19041       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19042       ;;
19043     esac
19044   done
19045
19046   case $lt_echo in
19047   *'\$0 --fallback-echo"')
19048     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19049     ;;
19050   esac
19051
19052 cfgfile="$ofile"
19053
19054   cat <<__EOF__ >> "$cfgfile"
19055 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19056
19057 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19058
19059 # Shell to use when invoking shell scripts.
19060 SHELL=$lt_SHELL
19061
19062 # Whether or not to build shared libraries.
19063 build_libtool_libs=$enable_shared
19064
19065 # Whether or not to build static libraries.
19066 build_old_libs=$enable_static
19067
19068 # Whether or not to add -lc for building shared libraries.
19069 build_libtool_need_lc=$archive_cmds_need_lc_RC
19070
19071 # Whether or not to disallow shared libs when runtime libs are static
19072 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19073
19074 # Whether or not to optimize for fast installation.
19075 fast_install=$enable_fast_install
19076
19077 # The host system.
19078 host_alias=$host_alias
19079 host=$host
19080 host_os=$host_os
19081
19082 # The build system.
19083 build_alias=$build_alias
19084 build=$build
19085 build_os=$build_os
19086
19087 # An echo program that does not interpret backslashes.
19088 echo=$lt_echo
19089
19090 # The archiver.
19091 AR=$lt_AR
19092 AR_FLAGS=$lt_AR_FLAGS
19093
19094 # A C compiler.
19095 LTCC=$lt_LTCC
19096
19097 # LTCC compiler flags.
19098 LTCFLAGS=$lt_LTCFLAGS
19099
19100 # A language-specific compiler.
19101 CC=$lt_compiler_RC
19102
19103 # Is the compiler the GNU C compiler?
19104 with_gcc=$GCC_RC
19105
19106 # An ERE matcher.
19107 EGREP=$lt_EGREP
19108
19109 # The linker used to build libraries.
19110 LD=$lt_LD_RC
19111
19112 # Whether we need hard or soft links.
19113 LN_S=$lt_LN_S
19114
19115 # A BSD-compatible nm program.
19116 NM=$lt_NM
19117
19118 # A symbol stripping program
19119 STRIP=$lt_STRIP
19120
19121 # Used to examine libraries when file_magic_cmd begins "file"
19122 MAGIC_CMD=$MAGIC_CMD
19123
19124 # Used on cygwin: DLL creation program.
19125 DLLTOOL="$DLLTOOL"
19126
19127 # Used on cygwin: object dumper.
19128 OBJDUMP="$OBJDUMP"
19129
19130 # Used on cygwin: assembler.
19131 AS="$AS"
19132
19133 # The name of the directory that contains temporary libtool files.
19134 objdir=$objdir
19135
19136 # How to create reloadable object files.
19137 reload_flag=$lt_reload_flag
19138 reload_cmds=$lt_reload_cmds
19139
19140 # How to pass a linker flag through the compiler.
19141 wl=$lt_lt_prog_compiler_wl_RC
19142
19143 # Object file suffix (normally "o").
19144 objext="$ac_objext"
19145
19146 # Old archive suffix (normally "a").
19147 libext="$libext"
19148
19149 # Shared library suffix (normally ".so").
19150 shrext_cmds='$shrext_cmds'
19151
19152 # Executable file suffix (normally "").
19153 exeext="$exeext"
19154
19155 # Additional compiler flags for building library objects.
19156 pic_flag=$lt_lt_prog_compiler_pic_RC
19157 pic_mode=$pic_mode
19158
19159 # What is the maximum length of a command?
19160 max_cmd_len=$lt_cv_sys_max_cmd_len
19161
19162 # Does compiler simultaneously support -c and -o options?
19163 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19164
19165 # Must we lock files when doing compilation?
19166 need_locks=$lt_need_locks
19167
19168 # Do we need the lib prefix for modules?
19169 need_lib_prefix=$need_lib_prefix
19170
19171 # Do we need a version for libraries?
19172 need_version=$need_version
19173
19174 # Whether dlopen is supported.
19175 dlopen_support=$enable_dlopen
19176
19177 # Whether dlopen of programs is supported.
19178 dlopen_self=$enable_dlopen_self
19179
19180 # Whether dlopen of statically linked programs is supported.
19181 dlopen_self_static=$enable_dlopen_self_static
19182
19183 # Compiler flag to prevent dynamic linking.
19184 link_static_flag=$lt_lt_prog_compiler_static_RC
19185
19186 # Compiler flag to turn off builtin functions.
19187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19188
19189 # Compiler flag to allow reflexive dlopens.
19190 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19191
19192 # Compiler flag to generate shared objects directly from archives.
19193 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19194
19195 # Compiler flag to generate thread-safe objects.
19196 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19197
19198 # Library versioning type.
19199 version_type=$version_type
19200
19201 # Format of library name prefix.
19202 libname_spec=$lt_libname_spec
19203
19204 # List of archive names.  First name is the real one, the rest are links.
19205 # The last name is the one that the linker finds with -lNAME.
19206 library_names_spec=$lt_library_names_spec
19207
19208 # The coded name of the library, if different from the real name.
19209 soname_spec=$lt_soname_spec
19210
19211 # Commands used to build and install an old-style archive.
19212 RANLIB=$lt_RANLIB
19213 old_archive_cmds=$lt_old_archive_cmds_RC
19214 old_postinstall_cmds=$lt_old_postinstall_cmds
19215 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19216
19217 # Create an old-style archive from a shared archive.
19218 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19219
19220 # Create a temporary old-style archive to link instead of a shared archive.
19221 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19222
19223 # Commands used to build and install a shared archive.
19224 archive_cmds=$lt_archive_cmds_RC
19225 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19226 postinstall_cmds=$lt_postinstall_cmds
19227 postuninstall_cmds=$lt_postuninstall_cmds
19228
19229 # Commands used to build a loadable module (assumed same as above if empty)
19230 module_cmds=$lt_module_cmds_RC
19231 module_expsym_cmds=$lt_module_expsym_cmds_RC
19232
19233 # Commands to strip libraries.
19234 old_striplib=$lt_old_striplib
19235 striplib=$lt_striplib
19236
19237 # Dependencies to place before the objects being linked to create a
19238 # shared library.
19239 predep_objects=$lt_predep_objects_RC
19240
19241 # Dependencies to place after the objects being linked to create a
19242 # shared library.
19243 postdep_objects=$lt_postdep_objects_RC
19244
19245 # Dependencies to place before the objects being linked to create a
19246 # shared library.
19247 predeps=$lt_predeps_RC
19248
19249 # Dependencies to place after the objects being linked to create a
19250 # shared library.
19251 postdeps=$lt_postdeps_RC
19252
19253 # The library search path used internally by the compiler when linking
19254 # a shared library.
19255 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19256
19257 # Method to check whether dependent libraries are shared objects.
19258 deplibs_check_method=$lt_deplibs_check_method
19259
19260 # Command to use when deplibs_check_method == file_magic.
19261 file_magic_cmd=$lt_file_magic_cmd
19262
19263 # Flag that allows shared libraries with undefined symbols to be built.
19264 allow_undefined_flag=$lt_allow_undefined_flag_RC
19265
19266 # Flag that forces no undefined symbols.
19267 no_undefined_flag=$lt_no_undefined_flag_RC
19268
19269 # Commands used to finish a libtool library installation in a directory.
19270 finish_cmds=$lt_finish_cmds
19271
19272 # Same as above, but a single script fragment to be evaled but not shown.
19273 finish_eval=$lt_finish_eval
19274
19275 # Take the output of nm and produce a listing of raw symbols and C names.
19276 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19277
19278 # Transform the output of nm in a proper C declaration
19279 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19280
19281 # Transform the output of nm in a C name address pair
19282 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19283
19284 # This is the shared library runtime path variable.
19285 runpath_var=$runpath_var
19286
19287 # This is the shared library path variable.
19288 shlibpath_var=$shlibpath_var
19289
19290 # Is shlibpath searched before the hard-coded library search path?
19291 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19292
19293 # How to hardcode a shared library path into an executable.
19294 hardcode_action=$hardcode_action_RC
19295
19296 # Whether we should hardcode library paths into libraries.
19297 hardcode_into_libs=$hardcode_into_libs
19298
19299 # Flag to hardcode \$libdir into a binary during linking.
19300 # This must work even if \$libdir does not exist.
19301 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19302
19303 # If ld is used when linking, flag to hardcode \$libdir into
19304 # a binary during linking. This must work even if \$libdir does
19305 # not exist.
19306 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19307
19308 # Whether we need a single -rpath flag with a separated argument.
19309 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19310
19311 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19312 # resulting binary.
19313 hardcode_direct=$hardcode_direct_RC
19314
19315 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19316 # resulting binary.
19317 hardcode_minus_L=$hardcode_minus_L_RC
19318
19319 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19320 # the resulting binary.
19321 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19322
19323 # Set to yes if building a shared library automatically hardcodes DIR into the library
19324 # and all subsequent libraries and executables linked against it.
19325 hardcode_automatic=$hardcode_automatic_RC
19326
19327 # Variables whose values should be saved in libtool wrapper scripts and
19328 # restored at relink time.
19329 variables_saved_for_relink="$variables_saved_for_relink"
19330
19331 # Whether libtool must link a program against all its dependency libraries.
19332 link_all_deplibs=$link_all_deplibs_RC
19333
19334 # Compile-time system search path for libraries
19335 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19336
19337 # Run-time system search path for libraries
19338 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19339
19340 # Fix the shell variable \$srcfile for the compiler.
19341 fix_srcfile_path="$fix_srcfile_path_RC"
19342
19343 # Set to yes if exported symbols are required.
19344 always_export_symbols=$always_export_symbols_RC
19345
19346 # The commands to list exported symbols.
19347 export_symbols_cmds=$lt_export_symbols_cmds_RC
19348
19349 # The commands to extract the exported symbol list from a shared archive.
19350 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19351
19352 # Symbols that should not be listed in the preloaded symbols.
19353 exclude_expsyms=$lt_exclude_expsyms_RC
19354
19355 # Symbols that must always be exported.
19356 include_expsyms=$lt_include_expsyms_RC
19357
19358 # ### END LIBTOOL TAG CONFIG: $tagname
19359
19360 __EOF__
19361
19362
19363 else
19364   # If there is no Makefile yet, we rely on a make rule to execute
19365   # `config.status --recheck' to rerun these tests and create the
19366   # libtool script then.
19367   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19368   if test -f "$ltmain_in"; then
19369     test -f Makefile && make "$ltmain"
19370   fi
19371 fi
19372
19373
19374 ac_ext=c
19375 ac_cpp='$CPP $CPPFLAGS'
19376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19379
19380 CC="$lt_save_CC"
19381
19382         ;;
19383
19384       *)
19385         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19386         ;;
19387       esac
19388
19389       # Append the new tag name to the list of available tags.
19390       if test -n "$tagname" ; then
19391       available_tags="$available_tags $tagname"
19392     fi
19393     fi
19394   done
19395   IFS="$lt_save_ifs"
19396
19397   # Now substitute the updated list of available tags.
19398   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19399     mv "${ofile}T" "$ofile"
19400     chmod +x "$ofile"
19401   else
19402     rm -f "${ofile}T"
19403     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19404   fi
19405 fi
19406
19407
19408
19409 # This can be used to rebuild libtool when needed
19410 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19411
19412 # Always use our own libtool.
19413 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19414
19415 # Prevent multiple expansion
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
19437 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
19438 if test -z "$MKDIR_P"; then
19439   if ${ac_cv_path_mkdir+:} false; then :
19440   $as_echo_n "(cached) " >&6
19441 else
19442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19443 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
19444 do
19445   IFS=$as_save_IFS
19446   test -z "$as_dir" && as_dir=.
19447     for ac_prog in mkdir gmkdir; do
19448          for ac_exec_ext in '' $ac_executable_extensions; do
19449            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
19450            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
19451              'mkdir (GNU coreutils) '* | \
19452              'mkdir (coreutils) '* | \
19453              'mkdir (fileutils) '4.1*)
19454                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
19455                break 3;;
19456            esac
19457          done
19458        done
19459   done
19460 IFS=$as_save_IFS
19461
19462 fi
19463
19464   test -d ./--version && rmdir ./--version
19465   if test "${ac_cv_path_mkdir+set}" = set; then
19466     MKDIR_P="$ac_cv_path_mkdir -p"
19467   else
19468     # As a last resort, use the slow shell script.  Don't cache a
19469     # value for MKDIR_P within a source directory, because that will
19470     # break other packages using the cache if that directory is
19471     # removed, or if the value is a relative name.
19472     MKDIR_P="$ac_install_sh -d"
19473   fi
19474 fi
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
19476 $as_echo "$MKDIR_P" >&6; }
19477
19478
19479 # Check for library functions that SQLite can optionally use.
19480 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
19481 do :
19482   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19483 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19484 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19485   cat >>confdefs.h <<_ACEOF
19486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19487 _ACEOF
19488
19489 fi
19490 done
19491
19492 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
19493 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
19494   ac_have_decl=1
19495 else
19496   ac_have_decl=0
19497 fi
19498
19499 cat >>confdefs.h <<_ACEOF
19500 #define HAVE_DECL_STRERROR_R $ac_have_decl
19501 _ACEOF
19502
19503 for ac_func in strerror_r
19504 do :
19505   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
19506 if test "x$ac_cv_func_strerror_r" = xyes; then :
19507   cat >>confdefs.h <<_ACEOF
19508 #define HAVE_STRERROR_R 1
19509 _ACEOF
19510
19511 fi
19512 done
19513
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
19515 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
19516 if ${ac_cv_func_strerror_r_char_p+:} false; then :
19517   $as_echo_n "(cached) " >&6
19518 else
19519
19520     ac_cv_func_strerror_r_char_p=no
19521     if test $ac_cv_have_decl_strerror_r = yes; then
19522       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19523 /* end confdefs.h.  */
19524 $ac_includes_default
19525 int
19526 main ()
19527 {
19528
19529           char buf[100];
19530           char x = *strerror_r (0, buf, sizeof buf);
19531           char *p = strerror_r (0, buf, sizeof buf);
19532           return !p || x;
19533
19534   ;
19535   return 0;
19536 }
19537 _ACEOF
19538 if ac_fn_c_try_compile "$LINENO"; then :
19539   ac_cv_func_strerror_r_char_p=yes
19540 fi
19541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19542     else
19543       # strerror_r is not declared.  Choose between
19544       # systems that have relatively inaccessible declarations for the
19545       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
19546       # former has a strerror_r that returns char*, while the latter
19547       # has a strerror_r that returns `int'.
19548       # This test should segfault on the DEC system.
19549       if test "$cross_compiling" = yes; then :
19550   :
19551 else
19552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19553 /* end confdefs.h.  */
19554 $ac_includes_default
19555         extern char *strerror_r ();
19556 int
19557 main ()
19558 {
19559 char buf[100];
19560           char x = *strerror_r (0, buf, sizeof buf);
19561           return ! isalpha (x);
19562   ;
19563   return 0;
19564 }
19565 _ACEOF
19566 if ac_fn_c_try_run "$LINENO"; then :
19567   ac_cv_func_strerror_r_char_p=yes
19568 fi
19569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19570   conftest.$ac_objext conftest.beam conftest.$ac_ext
19571 fi
19572
19573     fi
19574
19575 fi
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
19577 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
19578 if test $ac_cv_func_strerror_r_char_p = yes; then
19579
19580 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
19581
19582 fi
19583
19584
19585 ac_config_files="$ac_config_files Makefile sqlite3.pc"
19586
19587
19588
19589 #-----------------------------------------------------------------------
19590 #   --enable-readline
19591 #
19592 # Check whether --enable-readline was given.
19593 if test "${enable_readline+set}" = set; then :
19594   enableval=$enable_readline;
19595 else
19596   enable_readline=yes
19597 fi
19598
19599 if test x"$enable_readline" != xno ; then
19600   sLIBS=$LIBS
19601   LIBS=""
19602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
19603 $as_echo_n "checking for library containing tgetent... " >&6; }
19604 if ${ac_cv_search_tgetent+:} false; then :
19605   $as_echo_n "(cached) " >&6
19606 else
19607   ac_func_search_save_LIBS=$LIBS
19608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19609 /* end confdefs.h.  */
19610
19611 /* Override any GCC internal prototype to avoid an error.
19612    Use char because int might match the return type of a GCC
19613    builtin and then its argument prototype would still apply.  */
19614 #ifdef __cplusplus
19615 extern "C"
19616 #endif
19617 char tgetent ();
19618 int
19619 main ()
19620 {
19621 return tgetent ();
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 for ac_lib in '' curses ncurses ncursesw; do
19627   if test -z "$ac_lib"; then
19628     ac_res="none required"
19629   else
19630     ac_res=-l$ac_lib
19631     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19632   fi
19633   if ac_fn_c_try_link "$LINENO"; then :
19634   ac_cv_search_tgetent=$ac_res
19635 fi
19636 rm -f core conftest.err conftest.$ac_objext \
19637     conftest$ac_exeext
19638   if ${ac_cv_search_tgetent+:} false; then :
19639   break
19640 fi
19641 done
19642 if ${ac_cv_search_tgetent+:} false; then :
19643
19644 else
19645   ac_cv_search_tgetent=no
19646 fi
19647 rm conftest.$ac_ext
19648 LIBS=$ac_func_search_save_LIBS
19649 fi
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
19651 $as_echo "$ac_cv_search_tgetent" >&6; }
19652 ac_res=$ac_cv_search_tgetent
19653 if test "$ac_res" != no; then :
19654   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19655
19656 fi
19657
19658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
19659 $as_echo_n "checking for library containing readline... " >&6; }
19660 if ${ac_cv_search_readline+:} false; then :
19661   $as_echo_n "(cached) " >&6
19662 else
19663   ac_func_search_save_LIBS=$LIBS
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h.  */
19666
19667 /* Override any GCC internal prototype to avoid an error.
19668    Use char because int might match the return type of a GCC
19669    builtin and then its argument prototype would still apply.  */
19670 #ifdef __cplusplus
19671 extern "C"
19672 #endif
19673 char readline ();
19674 int
19675 main ()
19676 {
19677 return readline ();
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 for ac_lib in '' readline; do
19683   if test -z "$ac_lib"; then
19684     ac_res="none required"
19685   else
19686     ac_res=-l$ac_lib
19687     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19688   fi
19689   if ac_fn_c_try_link "$LINENO"; then :
19690   ac_cv_search_readline=$ac_res
19691 fi
19692 rm -f core conftest.err conftest.$ac_objext \
19693     conftest$ac_exeext
19694   if ${ac_cv_search_readline+:} false; then :
19695   break
19696 fi
19697 done
19698 if ${ac_cv_search_readline+:} false; then :
19699
19700 else
19701   ac_cv_search_readline=no
19702 fi
19703 rm conftest.$ac_ext
19704 LIBS=$ac_func_search_save_LIBS
19705 fi
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
19707 $as_echo "$ac_cv_search_readline" >&6; }
19708 ac_res=$ac_cv_search_readline
19709 if test "$ac_res" != no; then :
19710   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19711
19712 else
19713   enable_readline=no
19714 fi
19715
19716   for ac_func in readline
19717 do :
19718   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
19719 if test "x$ac_cv_func_readline" = xyes; then :
19720   cat >>confdefs.h <<_ACEOF
19721 #define HAVE_READLINE 1
19722 _ACEOF
19723
19724 fi
19725 done
19726
19727   READLINE_LIBS=$LIBS
19728   LIBS=$sLIBS
19729 fi
19730
19731 #-----------------------------------------------------------------------
19732
19733 #-----------------------------------------------------------------------
19734 #   --enable-threadsafe
19735 #
19736 # Check whether --enable-threadsafe was given.
19737 if test "${enable_threadsafe+set}" = set; then :
19738   enableval=$enable_threadsafe;
19739 else
19740   enable_threadsafe=yes
19741 fi
19742
19743 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
19744 if test x"$enable_threadsafe" != "xno"; then
19745   THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
19746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
19747 $as_echo_n "checking for library containing pthread_create... " >&6; }
19748 if ${ac_cv_search_pthread_create+:} false; then :
19749   $as_echo_n "(cached) " >&6
19750 else
19751   ac_func_search_save_LIBS=$LIBS
19752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19753 /* end confdefs.h.  */
19754
19755 /* Override any GCC internal prototype to avoid an error.
19756    Use char because int might match the return type of a GCC
19757    builtin and then its argument prototype would still apply.  */
19758 #ifdef __cplusplus
19759 extern "C"
19760 #endif
19761 char pthread_create ();
19762 int
19763 main ()
19764 {
19765 return pthread_create ();
19766   ;
19767   return 0;
19768 }
19769 _ACEOF
19770 for ac_lib in '' pthread; do
19771   if test -z "$ac_lib"; then
19772     ac_res="none required"
19773   else
19774     ac_res=-l$ac_lib
19775     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19776   fi
19777   if ac_fn_c_try_link "$LINENO"; then :
19778   ac_cv_search_pthread_create=$ac_res
19779 fi
19780 rm -f core conftest.err conftest.$ac_objext \
19781     conftest$ac_exeext
19782   if ${ac_cv_search_pthread_create+:} false; then :
19783   break
19784 fi
19785 done
19786 if ${ac_cv_search_pthread_create+:} false; then :
19787
19788 else
19789   ac_cv_search_pthread_create=no
19790 fi
19791 rm conftest.$ac_ext
19792 LIBS=$ac_func_search_save_LIBS
19793 fi
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
19795 $as_echo "$ac_cv_search_pthread_create" >&6; }
19796 ac_res=$ac_cv_search_pthread_create
19797 if test "$ac_res" != no; then :
19798   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19799
19800 fi
19801
19802 fi
19803
19804 #-----------------------------------------------------------------------
19805
19806 #-----------------------------------------------------------------------
19807 #   --enable-dynamic-extensions
19808 #
19809 # Check whether --enable-dynamic-extensions was given.
19810 if test "${enable_dynamic_extensions+set}" = set; then :
19811   enableval=$enable_dynamic_extensions;
19812 else
19813   enable_dynamic_extensions=yes
19814 fi
19815
19816 if test x"$enable_dynamic_extensions" != "xno"; then
19817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19818 $as_echo_n "checking for library containing dlopen... " >&6; }
19819 if ${ac_cv_search_dlopen+:} false; then :
19820   $as_echo_n "(cached) " >&6
19821 else
19822   ac_func_search_save_LIBS=$LIBS
19823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19824 /* end confdefs.h.  */
19825
19826 /* Override any GCC internal prototype to avoid an error.
19827    Use char because int might match the return type of a GCC
19828    builtin and then its argument prototype would still apply.  */
19829 #ifdef __cplusplus
19830 extern "C"
19831 #endif
19832 char dlopen ();
19833 int
19834 main ()
19835 {
19836 return dlopen ();
19837   ;
19838   return 0;
19839 }
19840 _ACEOF
19841 for ac_lib in '' dl; do
19842   if test -z "$ac_lib"; then
19843     ac_res="none required"
19844   else
19845     ac_res=-l$ac_lib
19846     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19847   fi
19848   if ac_fn_c_try_link "$LINENO"; then :
19849   ac_cv_search_dlopen=$ac_res
19850 fi
19851 rm -f core conftest.err conftest.$ac_objext \
19852     conftest$ac_exeext
19853   if ${ac_cv_search_dlopen+:} false; then :
19854   break
19855 fi
19856 done
19857 if ${ac_cv_search_dlopen+:} false; then :
19858
19859 else
19860   ac_cv_search_dlopen=no
19861 fi
19862 rm conftest.$ac_ext
19863 LIBS=$ac_func_search_save_LIBS
19864 fi
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19866 $as_echo "$ac_cv_search_dlopen" >&6; }
19867 ac_res=$ac_cv_search_dlopen
19868 if test "$ac_res" != no; then :
19869   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19870
19871 fi
19872
19873 else
19874   DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
19875 fi
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
19877 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
19879 $as_echo "$enable_dynamic_extensions" >&6; }
19880
19881 #-----------------------------------------------------------------------
19882
19883 for ac_func in posix_fallocate
19884 do :
19885   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
19886 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
19887   cat >>confdefs.h <<_ACEOF
19888 #define HAVE_POSIX_FALLOCATE 1
19889 _ACEOF
19890
19891 fi
19892 done
19893
19894
19895 #-----------------------------------------------------------------------
19896 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
19897 # configure. This option doesn't really add much...
19898 #
19899 #   --enable-tempstore
19900 #
19901 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
19902 #   [--enable-tempstore],
19903 #   [in-memory temporary tables (never, no, yes, always) [default=no]])],
19904 #   [], [enable_tempstore=no])
19905 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
19906 # case "$enable_tempstore" in
19907 #   never )  TEMP_STORE=0 ;;
19908 #   no )     TEMP_STORE=1 ;;
19909 #   always ) TEMP_STORE=3 ;;
19910 #   yes )    TEMP_STORE=3 ;;
19911 #   * )
19912 #     TEMP_STORE=1
19913 #     enable_tempstore=yes
19914 #   ;;
19915 # esac
19916 # AC_MSG_RESULT($enable_tempstore)
19917 # AC_SUBST(TEMP_STORE)
19918 #-----------------------------------------------------------------------
19919
19920 cat >confcache <<\_ACEOF
19921 # This file is a shell script that caches the results of configure
19922 # tests run on this system so they can be shared between configure
19923 # scripts and configure runs, see configure's option --config-cache.
19924 # It is not useful on other systems.  If it contains results you don't
19925 # want to keep, you may remove or edit it.
19926 #
19927 # config.status only pays attention to the cache file if you give it
19928 # the --recheck option to rerun configure.
19929 #
19930 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19931 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19932 # following values.
19933
19934 _ACEOF
19935
19936 # The following way of writing the cache mishandles newlines in values,
19937 # but we know of no workaround that is simple, portable, and efficient.
19938 # So, we kill variables containing newlines.
19939 # Ultrix sh set writes to stderr and can't be redirected directly,
19940 # and sets the high bit in the cache file unless we assign to the vars.
19941 (
19942   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19943     eval ac_val=\$$ac_var
19944     case $ac_val in #(
19945     *${as_nl}*)
19946       case $ac_var in #(
19947       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19948 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19949       esac
19950       case $ac_var in #(
19951       _ | IFS | as_nl) ;; #(
19952       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19953       *) { eval $ac_var=; unset $ac_var;} ;;
19954       esac ;;
19955     esac
19956   done
19957
19958   (set) 2>&1 |
19959     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19960     *${as_nl}ac_space=\ *)
19961       # `set' does not quote correctly, so add quotes: double-quote
19962       # substitution turns \\\\ into \\, and sed turns \\ into \.
19963       sed -n \
19964         "s/'/'\\\\''/g;
19965           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19966       ;; #(
19967     *)
19968       # `set' quotes correctly as required by POSIX, so do not add quotes.
19969       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19970       ;;
19971     esac |
19972     sort
19973 ) |
19974   sed '
19975      /^ac_cv_env_/b end
19976      t clear
19977      :clear
19978      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19979      t end
19980      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19981      :end' >>confcache
19982 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19983   if test -w "$cache_file"; then
19984     if test "x$cache_file" != "x/dev/null"; then
19985       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19986 $as_echo "$as_me: updating cache $cache_file" >&6;}
19987       if test ! -f "$cache_file" || test -h "$cache_file"; then
19988         cat confcache >"$cache_file"
19989       else
19990         case $cache_file in #(
19991         */* | ?:*)
19992           mv -f confcache "$cache_file"$$ &&
19993           mv -f "$cache_file"$$ "$cache_file" ;; #(
19994         *)
19995           mv -f confcache "$cache_file" ;;
19996         esac
19997       fi
19998     fi
19999   else
20000     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20001 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20002   fi
20003 fi
20004 rm -f confcache
20005
20006 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20007 # Let make expand exec_prefix.
20008 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20009
20010 # Transform confdefs.h into DEFS.
20011 # Protect against shell expansion while executing Makefile rules.
20012 # Protect against Makefile macro expansion.
20013 #
20014 # If the first sed substitution is executed (which looks for macros that
20015 # take arguments), then branch to the quote section.  Otherwise,
20016 # look for a macro that doesn't take arguments.
20017 ac_script='
20018 :mline
20019 /\\$/{
20020  N
20021  s,\\\n,,
20022  b mline
20023 }
20024 t clear
20025 :clear
20026 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
20027 t quote
20028 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
20029 t quote
20030 b any
20031 :quote
20032 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20033 s/\[/\\&/g
20034 s/\]/\\&/g
20035 s/\$/$$/g
20036 H
20037 :any
20038 ${
20039         g
20040         s/^\n//
20041         s/\n/ /g
20042         p
20043 }
20044 '
20045 DEFS=`sed -n "$ac_script" confdefs.h`
20046
20047
20048 ac_libobjs=
20049 ac_ltlibobjs=
20050 U=
20051 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20052   # 1. Remove the extension, and $U if already installed.
20053   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20054   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20055   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20056   #    will be set to the directory where LIBOBJS objects are built.
20057   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20058   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20059 done
20060 LIBOBJS=$ac_libobjs
20061
20062 LTLIBOBJS=$ac_ltlibobjs
20063
20064
20065 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20066   as_fn_error $? "conditional \"AMDEP\" was never defined.
20067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20068 fi
20069 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20070   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20072 fi
20073 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20074   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20076 fi
20077 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20078   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20080 fi
20081
20082 : "${CONFIG_STATUS=./config.status}"
20083 ac_write_fail=0
20084 ac_clean_files_save=$ac_clean_files
20085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20087 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20088 as_write_fail=0
20089 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20090 #! $SHELL
20091 # Generated by $as_me.
20092 # Run this file to recreate the current configuration.
20093 # Compiler output produced by configure, useful for debugging
20094 # configure, is in config.log if it exists.
20095
20096 debug=false
20097 ac_cs_recheck=false
20098 ac_cs_silent=false
20099
20100 SHELL=\${CONFIG_SHELL-$SHELL}
20101 export SHELL
20102 _ASEOF
20103 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20104 ## -------------------- ##
20105 ## M4sh Initialization. ##
20106 ## -------------------- ##
20107
20108 # Be more Bourne compatible
20109 DUALCASE=1; export DUALCASE # for MKS sh
20110 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20111   emulate sh
20112   NULLCMD=:
20113   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20114   # is contrary to our usage.  Disable this feature.
20115   alias -g '${1+"$@"}'='"$@"'
20116   setopt NO_GLOB_SUBST
20117 else
20118   case `(set -o) 2>/dev/null` in #(
20119   *posix*) :
20120     set -o posix ;; #(
20121   *) :
20122      ;;
20123 esac
20124 fi
20125
20126
20127 as_nl='
20128 '
20129 export as_nl
20130 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20131 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20134 # Prefer a ksh shell builtin over an external printf program on Solaris,
20135 # but without wasting forks for bash or zsh.
20136 if test -z "$BASH_VERSION$ZSH_VERSION" \
20137     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20138   as_echo='print -r --'
20139   as_echo_n='print -rn --'
20140 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20141   as_echo='printf %s\n'
20142   as_echo_n='printf %s'
20143 else
20144   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20145     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20146     as_echo_n='/usr/ucb/echo -n'
20147   else
20148     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20149     as_echo_n_body='eval
20150       arg=$1;
20151       case $arg in #(
20152       *"$as_nl"*)
20153         expr "X$arg" : "X\\(.*\\)$as_nl";
20154         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20155       esac;
20156       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20157     '
20158     export as_echo_n_body
20159     as_echo_n='sh -c $as_echo_n_body as_echo'
20160   fi
20161   export as_echo_body
20162   as_echo='sh -c $as_echo_body as_echo'
20163 fi
20164
20165 # The user is always right.
20166 if test "${PATH_SEPARATOR+set}" != set; then
20167   PATH_SEPARATOR=:
20168   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20169     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20170       PATH_SEPARATOR=';'
20171   }
20172 fi
20173
20174
20175 # IFS
20176 # We need space, tab and new line, in precisely that order.  Quoting is
20177 # there to prevent editors from complaining about space-tab.
20178 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20179 # splitting by setting IFS to empty value.)
20180 IFS=" ""        $as_nl"
20181
20182 # Find who we are.  Look in the path if we contain no directory separator.
20183 as_myself=
20184 case $0 in #((
20185   *[\\/]* ) as_myself=$0 ;;
20186   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20187 for as_dir in $PATH
20188 do
20189   IFS=$as_save_IFS
20190   test -z "$as_dir" && as_dir=.
20191     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20192   done
20193 IFS=$as_save_IFS
20194
20195      ;;
20196 esac
20197 # We did not find ourselves, most probably we were run as `sh COMMAND'
20198 # in which case we are not to be found in the path.
20199 if test "x$as_myself" = x; then
20200   as_myself=$0
20201 fi
20202 if test ! -f "$as_myself"; then
20203   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20204   exit 1
20205 fi
20206
20207 # Unset variables that we do not need and which cause bugs (e.g. in
20208 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20209 # suppresses any "Segmentation fault" message there.  '((' could
20210 # trigger a bug in pdksh 5.2.14.
20211 for as_var in BASH_ENV ENV MAIL MAILPATH
20212 do eval test x\${$as_var+set} = xset \
20213   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20214 done
20215 PS1='$ '
20216 PS2='> '
20217 PS4='+ '
20218
20219 # NLS nuisances.
20220 LC_ALL=C
20221 export LC_ALL
20222 LANGUAGE=C
20223 export LANGUAGE
20224
20225 # CDPATH.
20226 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20227
20228
20229 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20230 # ----------------------------------------
20231 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20232 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20233 # script with STATUS, using 1 if that was 0.
20234 as_fn_error ()
20235 {
20236   as_status=$1; test $as_status -eq 0 && as_status=1
20237   if test "$4"; then
20238     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20239     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20240   fi
20241   $as_echo "$as_me: error: $2" >&2
20242   as_fn_exit $as_status
20243 } # as_fn_error
20244
20245
20246 # as_fn_set_status STATUS
20247 # -----------------------
20248 # Set $? to STATUS, without forking.
20249 as_fn_set_status ()
20250 {
20251   return $1
20252 } # as_fn_set_status
20253
20254 # as_fn_exit STATUS
20255 # -----------------
20256 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20257 as_fn_exit ()
20258 {
20259   set +e
20260   as_fn_set_status $1
20261   exit $1
20262 } # as_fn_exit
20263
20264 # as_fn_unset VAR
20265 # ---------------
20266 # Portably unset VAR.
20267 as_fn_unset ()
20268 {
20269   { eval $1=; unset $1;}
20270 }
20271 as_unset=as_fn_unset
20272 # as_fn_append VAR VALUE
20273 # ----------------------
20274 # Append the text in VALUE to the end of the definition contained in VAR. Take
20275 # advantage of any shell optimizations that allow amortized linear growth over
20276 # repeated appends, instead of the typical quadratic growth present in naive
20277 # implementations.
20278 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20279   eval 'as_fn_append ()
20280   {
20281     eval $1+=\$2
20282   }'
20283 else
20284   as_fn_append ()
20285   {
20286     eval $1=\$$1\$2
20287   }
20288 fi # as_fn_append
20289
20290 # as_fn_arith ARG...
20291 # ------------------
20292 # Perform arithmetic evaluation on the ARGs, and store the result in the
20293 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20294 # must be portable across $(()) and expr.
20295 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20296   eval 'as_fn_arith ()
20297   {
20298     as_val=$(( $* ))
20299   }'
20300 else
20301   as_fn_arith ()
20302   {
20303     as_val=`expr "$@" || test $? -eq 1`
20304   }
20305 fi # as_fn_arith
20306
20307
20308 if expr a : '\(a\)' >/dev/null 2>&1 &&
20309    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20310   as_expr=expr
20311 else
20312   as_expr=false
20313 fi
20314
20315 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20316   as_basename=basename
20317 else
20318   as_basename=false
20319 fi
20320
20321 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20322   as_dirname=dirname
20323 else
20324   as_dirname=false
20325 fi
20326
20327 as_me=`$as_basename -- "$0" ||
20328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20329          X"$0" : 'X\(//\)$' \| \
20330          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20331 $as_echo X/"$0" |
20332     sed '/^.*\/\([^/][^/]*\)\/*$/{
20333             s//\1/
20334             q
20335           }
20336           /^X\/\(\/\/\)$/{
20337             s//\1/
20338             q
20339           }
20340           /^X\/\(\/\).*/{
20341             s//\1/
20342             q
20343           }
20344           s/.*/./; q'`
20345
20346 # Avoid depending upon Character Ranges.
20347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20350 as_cr_digits='0123456789'
20351 as_cr_alnum=$as_cr_Letters$as_cr_digits
20352
20353 ECHO_C= ECHO_N= ECHO_T=
20354 case `echo -n x` in #(((((
20355 -n*)
20356   case `echo 'xy\c'` in
20357   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20358   xy)  ECHO_C='\c';;
20359   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20360        ECHO_T=' ';;
20361   esac;;
20362 *)
20363   ECHO_N='-n';;
20364 esac
20365
20366 rm -f conf$$ conf$$.exe conf$$.file
20367 if test -d conf$$.dir; then
20368   rm -f conf$$.dir/conf$$.file
20369 else
20370   rm -f conf$$.dir
20371   mkdir conf$$.dir 2>/dev/null
20372 fi
20373 if (echo >conf$$.file) 2>/dev/null; then
20374   if ln -s conf$$.file conf$$ 2>/dev/null; then
20375     as_ln_s='ln -s'
20376     # ... but there are two gotchas:
20377     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20378     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20379     # In both cases, we have to default to `cp -p'.
20380     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20381       as_ln_s='cp -p'
20382   elif ln conf$$.file conf$$ 2>/dev/null; then
20383     as_ln_s=ln
20384   else
20385     as_ln_s='cp -p'
20386   fi
20387 else
20388   as_ln_s='cp -p'
20389 fi
20390 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20391 rmdir conf$$.dir 2>/dev/null
20392
20393
20394 # as_fn_mkdir_p
20395 # -------------
20396 # Create "$as_dir" as a directory, including parents if necessary.
20397 as_fn_mkdir_p ()
20398 {
20399
20400   case $as_dir in #(
20401   -*) as_dir=./$as_dir;;
20402   esac
20403   test -d "$as_dir" || eval $as_mkdir_p || {
20404     as_dirs=
20405     while :; do
20406       case $as_dir in #(
20407       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20408       *) as_qdir=$as_dir;;
20409       esac
20410       as_dirs="'$as_qdir' $as_dirs"
20411       as_dir=`$as_dirname -- "$as_dir" ||
20412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20413          X"$as_dir" : 'X\(//\)[^/]' \| \
20414          X"$as_dir" : 'X\(//\)$' \| \
20415          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20416 $as_echo X"$as_dir" |
20417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20418             s//\1/
20419             q
20420           }
20421           /^X\(\/\/\)[^/].*/{
20422             s//\1/
20423             q
20424           }
20425           /^X\(\/\/\)$/{
20426             s//\1/
20427             q
20428           }
20429           /^X\(\/\).*/{
20430             s//\1/
20431             q
20432           }
20433           s/.*/./; q'`
20434       test -d "$as_dir" && break
20435     done
20436     test -z "$as_dirs" || eval "mkdir $as_dirs"
20437   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20438
20439
20440 } # as_fn_mkdir_p
20441 if mkdir -p . 2>/dev/null; then
20442   as_mkdir_p='mkdir -p "$as_dir"'
20443 else
20444   test -d ./-p && rmdir ./-p
20445   as_mkdir_p=false
20446 fi
20447
20448 if test -x / >/dev/null 2>&1; then
20449   as_test_x='test -x'
20450 else
20451   if ls -dL / >/dev/null 2>&1; then
20452     as_ls_L_option=L
20453   else
20454     as_ls_L_option=
20455   fi
20456   as_test_x='
20457     eval sh -c '\''
20458       if test -d "$1"; then
20459         test -d "$1/.";
20460       else
20461         case $1 in #(
20462         -*)set "./$1";;
20463         esac;
20464         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20465         ???[sx]*):;;*)false;;esac;fi
20466     '\'' sh
20467   '
20468 fi
20469 as_executable_p=$as_test_x
20470
20471 # Sed expression to map a string onto a valid CPP name.
20472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20473
20474 # Sed expression to map a string onto a valid variable name.
20475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20476
20477
20478 exec 6>&1
20479 ## ----------------------------------- ##
20480 ## Main body of $CONFIG_STATUS script. ##
20481 ## ----------------------------------- ##
20482 _ASEOF
20483 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20484
20485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20486 # Save the log message, to keep $0 and so on meaningful, and to
20487 # report actual input values of CONFIG_FILES etc. instead of their
20488 # values after options handling.
20489 ac_log="
20490 This file was extended by sqlite $as_me 3.7.15, which was
20491 generated by GNU Autoconf 2.68.  Invocation command line was
20492
20493   CONFIG_FILES    = $CONFIG_FILES
20494   CONFIG_HEADERS  = $CONFIG_HEADERS
20495   CONFIG_LINKS    = $CONFIG_LINKS
20496   CONFIG_COMMANDS = $CONFIG_COMMANDS
20497   $ $0 $@
20498
20499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20500 "
20501
20502 _ACEOF
20503
20504 case $ac_config_files in *"
20505 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20506 esac
20507
20508
20509
20510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20511 # Files that config.status was made for.
20512 config_files="$ac_config_files"
20513 config_commands="$ac_config_commands"
20514
20515 _ACEOF
20516
20517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20518 ac_cs_usage="\
20519 \`$as_me' instantiates files and other configuration actions
20520 from templates according to the current configuration.  Unless the files
20521 and actions are specified as TAGs, all are instantiated by default.
20522
20523 Usage: $0 [OPTION]... [TAG]...
20524
20525   -h, --help       print this help, then exit
20526   -V, --version    print version number and configuration settings, then exit
20527       --config     print configuration, then exit
20528   -q, --quiet, --silent
20529                    do not print progress messages
20530   -d, --debug      don't remove temporary files
20531       --recheck    update $as_me by reconfiguring in the same conditions
20532       --file=FILE[:TEMPLATE]
20533                    instantiate the configuration file FILE
20534
20535 Configuration files:
20536 $config_files
20537
20538 Configuration commands:
20539 $config_commands
20540
20541 Report bugs to <http://www.sqlite.org>."
20542
20543 _ACEOF
20544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20545 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20546 ac_cs_version="\\
20547 sqlite config.status 3.7.15
20548 configured by $0, generated by GNU Autoconf 2.68,
20549   with options \\"\$ac_cs_config\\"
20550
20551 Copyright (C) 2010 Free Software Foundation, Inc.
20552 This config.status script is free software; the Free Software Foundation
20553 gives unlimited permission to copy, distribute and modify it."
20554
20555 ac_pwd='$ac_pwd'
20556 srcdir='$srcdir'
20557 INSTALL='$INSTALL'
20558 MKDIR_P='$MKDIR_P'
20559 AWK='$AWK'
20560 test -n "\$AWK" || AWK=awk
20561 _ACEOF
20562
20563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20564 # The default lists apply if the user does not specify any file.
20565 ac_need_defaults=:
20566 while test $# != 0
20567 do
20568   case $1 in
20569   --*=?*)
20570     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20571     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20572     ac_shift=:
20573     ;;
20574   --*=)
20575     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20576     ac_optarg=
20577     ac_shift=:
20578     ;;
20579   *)
20580     ac_option=$1
20581     ac_optarg=$2
20582     ac_shift=shift
20583     ;;
20584   esac
20585
20586   case $ac_option in
20587   # Handling of the options.
20588   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20589     ac_cs_recheck=: ;;
20590   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20591     $as_echo "$ac_cs_version"; exit ;;
20592   --config | --confi | --conf | --con | --co | --c )
20593     $as_echo "$ac_cs_config"; exit ;;
20594   --debug | --debu | --deb | --de | --d | -d )
20595     debug=: ;;
20596   --file | --fil | --fi | --f )
20597     $ac_shift
20598     case $ac_optarg in
20599     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20600     '') as_fn_error $? "missing file argument" ;;
20601     esac
20602     as_fn_append CONFIG_FILES " '$ac_optarg'"
20603     ac_need_defaults=false;;
20604   --he | --h |  --help | --hel | -h )
20605     $as_echo "$ac_cs_usage"; exit ;;
20606   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20607   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20608     ac_cs_silent=: ;;
20609
20610   # This is an error.
20611   -*) as_fn_error $? "unrecognized option: \`$1'
20612 Try \`$0 --help' for more information." ;;
20613
20614   *) as_fn_append ac_config_targets " $1"
20615      ac_need_defaults=false ;;
20616
20617   esac
20618   shift
20619 done
20620
20621 ac_configure_extra_args=
20622
20623 if $ac_cs_silent; then
20624   exec 6>/dev/null
20625   ac_configure_extra_args="$ac_configure_extra_args --silent"
20626 fi
20627
20628 _ACEOF
20629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20630 if \$ac_cs_recheck; then
20631   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20632   shift
20633   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20634   CONFIG_SHELL='$SHELL'
20635   export CONFIG_SHELL
20636   exec "\$@"
20637 fi
20638
20639 _ACEOF
20640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20641 exec 5>>config.log
20642 {
20643   echo
20644   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20645 ## Running $as_me. ##
20646 _ASBOX
20647   $as_echo "$ac_log"
20648 } >&5
20649
20650 _ACEOF
20651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20652 #
20653 # INIT-COMMANDS
20654 #
20655 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20656
20657 _ACEOF
20658
20659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20660
20661 # Handling of arguments.
20662 for ac_config_target in $ac_config_targets
20663 do
20664   case $ac_config_target in
20665     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20666     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20667     "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
20668
20669   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20670   esac
20671 done
20672
20673
20674 # If the user did not use the arguments to specify the items to instantiate,
20675 # then the envvar interface is used.  Set only those that are not.
20676 # We use the long form for the default assignment because of an extremely
20677 # bizarre bug on SunOS 4.1.3.
20678 if $ac_need_defaults; then
20679   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20680   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20681 fi
20682
20683 # Have a temporary directory for convenience.  Make it in the build tree
20684 # simply because there is no reason against having it here, and in addition,
20685 # creating and moving files from /tmp can sometimes cause problems.
20686 # Hook for its removal unless debugging.
20687 # Note that there is a small window in which the directory will not be cleaned:
20688 # after its creation but before its name has been assigned to `$tmp'.
20689 $debug ||
20690 {
20691   tmp= ac_tmp=
20692   trap 'exit_status=$?
20693   : "${ac_tmp:=$tmp}"
20694   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20695 ' 0
20696   trap 'as_fn_exit 1' 1 2 13 15
20697 }
20698 # Create a (secure) tmp directory for tmp files.
20699
20700 {
20701   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20702   test -d "$tmp"
20703 }  ||
20704 {
20705   tmp=./conf$$-$RANDOM
20706   (umask 077 && mkdir "$tmp")
20707 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20708 ac_tmp=$tmp
20709
20710 # Set up the scripts for CONFIG_FILES section.
20711 # No need to generate them if there are no CONFIG_FILES.
20712 # This happens for instance with `./config.status config.h'.
20713 if test -n "$CONFIG_FILES"; then
20714
20715
20716 ac_cr=`echo X | tr X '\015'`
20717 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20718 # But we know of no other shell where ac_cr would be empty at this
20719 # point, so we can use a bashism as a fallback.
20720 if test "x$ac_cr" = x; then
20721   eval ac_cr=\$\'\\r\'
20722 fi
20723 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20724 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20725   ac_cs_awk_cr='\\r'
20726 else
20727   ac_cs_awk_cr=$ac_cr
20728 fi
20729
20730 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20731 _ACEOF
20732
20733
20734 {
20735   echo "cat >conf$$subs.awk <<_ACEOF" &&
20736   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20737   echo "_ACEOF"
20738 } >conf$$subs.sh ||
20739   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20740 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20741 ac_delim='%!_!# '
20742 for ac_last_try in false false false false false :; do
20743   . ./conf$$subs.sh ||
20744     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20745
20746   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20747   if test $ac_delim_n = $ac_delim_num; then
20748     break
20749   elif $ac_last_try; then
20750     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20751   else
20752     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20753   fi
20754 done
20755 rm -f conf$$subs.sh
20756
20757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20758 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20759 _ACEOF
20760 sed -n '
20761 h
20762 s/^/S["/; s/!.*/"]=/
20763 p
20764 g
20765 s/^[^!]*!//
20766 :repl
20767 t repl
20768 s/'"$ac_delim"'$//
20769 t delim
20770 :nl
20771 h
20772 s/\(.\{148\}\)..*/\1/
20773 t more1
20774 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20775 p
20776 n
20777 b repl
20778 :more1
20779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20780 p
20781 g
20782 s/.\{148\}//
20783 t nl
20784 :delim
20785 h
20786 s/\(.\{148\}\)..*/\1/
20787 t more2
20788 s/["\\]/\\&/g; s/^/"/; s/$/"/
20789 p
20790 b
20791 :more2
20792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20793 p
20794 g
20795 s/.\{148\}//
20796 t delim
20797 ' <conf$$subs.awk | sed '
20798 /^[^""]/{
20799   N
20800   s/\n//
20801 }
20802 ' >>$CONFIG_STATUS || ac_write_fail=1
20803 rm -f conf$$subs.awk
20804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20805 _ACAWK
20806 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20807   for (key in S) S_is_set[key] = 1
20808   FS = "\a"
20809
20810 }
20811 {
20812   line = $ 0
20813   nfields = split(line, field, "@")
20814   substed = 0
20815   len = length(field[1])
20816   for (i = 2; i < nfields; i++) {
20817     key = field[i]
20818     keylen = length(key)
20819     if (S_is_set[key]) {
20820       value = S[key]
20821       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20822       len += length(value) + length(field[++i])
20823       substed = 1
20824     } else
20825       len += 1 + keylen
20826   }
20827
20828   print line
20829 }
20830
20831 _ACAWK
20832 _ACEOF
20833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20834 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20835   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20836 else
20837   cat
20838 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20839   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20840 _ACEOF
20841
20842 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20843 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20844 # trailing colons and then remove the whole line if VPATH becomes empty
20845 # (actually we leave an empty line to preserve line numbers).
20846 if test "x$srcdir" = x.; then
20847   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20848 h
20849 s///
20850 s/^/:/
20851 s/[      ]*$/:/
20852 s/:\$(srcdir):/:/g
20853 s/:\${srcdir}:/:/g
20854 s/:@srcdir@:/:/g
20855 s/^:*//
20856 s/:*$//
20857 x
20858 s/\(=[   ]*\).*/\1/
20859 G
20860 s/\n//
20861 s/^[^=]*=[       ]*$//
20862 }'
20863 fi
20864
20865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20866 fi # test -n "$CONFIG_FILES"
20867
20868
20869 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
20870 shift
20871 for ac_tag
20872 do
20873   case $ac_tag in
20874   :[FHLC]) ac_mode=$ac_tag; continue;;
20875   esac
20876   case $ac_mode$ac_tag in
20877   :[FHL]*:*);;
20878   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20879   :[FH]-) ac_tag=-:-;;
20880   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20881   esac
20882   ac_save_IFS=$IFS
20883   IFS=:
20884   set x $ac_tag
20885   IFS=$ac_save_IFS
20886   shift
20887   ac_file=$1
20888   shift
20889
20890   case $ac_mode in
20891   :L) ac_source=$1;;
20892   :[FH])
20893     ac_file_inputs=
20894     for ac_f
20895     do
20896       case $ac_f in
20897       -) ac_f="$ac_tmp/stdin";;
20898       *) # Look for the file first in the build tree, then in the source tree
20899          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20900          # because $ac_f cannot contain `:'.
20901          test -f "$ac_f" ||
20902            case $ac_f in
20903            [\\/$]*) false;;
20904            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20905            esac ||
20906            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20907       esac
20908       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20909       as_fn_append ac_file_inputs " '$ac_f'"
20910     done
20911
20912     # Let's still pretend it is `configure' which instantiates (i.e., don't
20913     # use $as_me), people would be surprised to read:
20914     #    /* config.h.  Generated by config.status.  */
20915     configure_input='Generated from '`
20916           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20917         `' by configure.'
20918     if test x"$ac_file" != x-; then
20919       configure_input="$ac_file.  $configure_input"
20920       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20921 $as_echo "$as_me: creating $ac_file" >&6;}
20922     fi
20923     # Neutralize special characters interpreted by sed in replacement strings.
20924     case $configure_input in #(
20925     *\&* | *\|* | *\\* )
20926        ac_sed_conf_input=`$as_echo "$configure_input" |
20927        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20928     *) ac_sed_conf_input=$configure_input;;
20929     esac
20930
20931     case $ac_tag in
20932     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20933       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20934     esac
20935     ;;
20936   esac
20937
20938   ac_dir=`$as_dirname -- "$ac_file" ||
20939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940          X"$ac_file" : 'X\(//\)[^/]' \| \
20941          X"$ac_file" : 'X\(//\)$' \| \
20942          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20943 $as_echo X"$ac_file" |
20944     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20945             s//\1/
20946             q
20947           }
20948           /^X\(\/\/\)[^/].*/{
20949             s//\1/
20950             q
20951           }
20952           /^X\(\/\/\)$/{
20953             s//\1/
20954             q
20955           }
20956           /^X\(\/\).*/{
20957             s//\1/
20958             q
20959           }
20960           s/.*/./; q'`
20961   as_dir="$ac_dir"; as_fn_mkdir_p
20962   ac_builddir=.
20963
20964 case "$ac_dir" in
20965 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20966 *)
20967   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20968   # A ".." for each directory in $ac_dir_suffix.
20969   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20970   case $ac_top_builddir_sub in
20971   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20972   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20973   esac ;;
20974 esac
20975 ac_abs_top_builddir=$ac_pwd
20976 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20977 # for backward compatibility:
20978 ac_top_builddir=$ac_top_build_prefix
20979
20980 case $srcdir in
20981   .)  # We are building in place.
20982     ac_srcdir=.
20983     ac_top_srcdir=$ac_top_builddir_sub
20984     ac_abs_top_srcdir=$ac_pwd ;;
20985   [\\/]* | ?:[\\/]* )  # Absolute name.
20986     ac_srcdir=$srcdir$ac_dir_suffix;
20987     ac_top_srcdir=$srcdir
20988     ac_abs_top_srcdir=$srcdir ;;
20989   *) # Relative name.
20990     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20991     ac_top_srcdir=$ac_top_build_prefix$srcdir
20992     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20993 esac
20994 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20995
20996
20997   case $ac_mode in
20998   :F)
20999   #
21000   # CONFIG_FILE
21001   #
21002
21003   case $INSTALL in
21004   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21005   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21006   esac
21007   ac_MKDIR_P=$MKDIR_P
21008   case $MKDIR_P in
21009   [\\/$]* | ?:[\\/]* ) ;;
21010   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21011   esac
21012 _ACEOF
21013
21014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21015 # If the template does not know about datarootdir, expand it.
21016 # FIXME: This hack should be removed a few years after 2.60.
21017 ac_datarootdir_hack=; ac_datarootdir_seen=
21018 ac_sed_dataroot='
21019 /datarootdir/ {
21020   p
21021   q
21022 }
21023 /@datadir@/p
21024 /@docdir@/p
21025 /@infodir@/p
21026 /@localedir@/p
21027 /@mandir@/p'
21028 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21029 *datarootdir*) ac_datarootdir_seen=yes;;
21030 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21031   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21032 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21033 _ACEOF
21034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21035   ac_datarootdir_hack='
21036   s&@datadir@&$datadir&g
21037   s&@docdir@&$docdir&g
21038   s&@infodir@&$infodir&g
21039   s&@localedir@&$localedir&g
21040   s&@mandir@&$mandir&g
21041   s&\\\${datarootdir}&$datarootdir&g' ;;
21042 esac
21043 _ACEOF
21044
21045 # Neutralize VPATH when `$srcdir' = `.'.
21046 # Shell code in configure.ac might set extrasub.
21047 # FIXME: do we really want to maintain this feature?
21048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21049 ac_sed_extra="$ac_vpsub
21050 $extrasub
21051 _ACEOF
21052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21053 :t
21054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21055 s|@configure_input@|$ac_sed_conf_input|;t t
21056 s&@top_builddir@&$ac_top_builddir_sub&;t t
21057 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21058 s&@srcdir@&$ac_srcdir&;t t
21059 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21060 s&@top_srcdir@&$ac_top_srcdir&;t t
21061 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21062 s&@builddir@&$ac_builddir&;t t
21063 s&@abs_builddir@&$ac_abs_builddir&;t t
21064 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21065 s&@INSTALL@&$ac_INSTALL&;t t
21066 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21067 $ac_datarootdir_hack
21068 "
21069 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21070   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21071
21072 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21073   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21074   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21075       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21076   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21077 which seems to be undefined.  Please make sure it is defined" >&5
21078 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21079 which seems to be undefined.  Please make sure it is defined" >&2;}
21080
21081   rm -f "$ac_tmp/stdin"
21082   case $ac_file in
21083   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21084   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21085   esac \
21086   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21087  ;;
21088
21089
21090   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21091 $as_echo "$as_me: executing $ac_file commands" >&6;}
21092  ;;
21093   esac
21094
21095
21096   case $ac_file$ac_mode in
21097     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21098   # Strip MF so we end up with the name of the file.
21099   mf=`echo "$mf" | sed -e 's/:.*$//'`
21100   # Check whether this is an Automake generated Makefile or not.
21101   # We used to match only the files named `Makefile.in', but
21102   # some people rename them; so instead we look at the file content.
21103   # Grep'ing the first line is not enough: some people post-process
21104   # each Makefile.in and add a new line on top of each file to say so.
21105   # So let's grep whole file.
21106   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21107     dirpart=`$as_dirname -- "$mf" ||
21108 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21109          X"$mf" : 'X\(//\)[^/]' \| \
21110          X"$mf" : 'X\(//\)$' \| \
21111          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21112 $as_echo X"$mf" |
21113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21114             s//\1/
21115             q
21116           }
21117           /^X\(\/\/\)[^/].*/{
21118             s//\1/
21119             q
21120           }
21121           /^X\(\/\/\)$/{
21122             s//\1/
21123             q
21124           }
21125           /^X\(\/\).*/{
21126             s//\1/
21127             q
21128           }
21129           s/.*/./; q'`
21130   else
21131     continue
21132   fi
21133   # Extract the definition of DEPDIR, am__include, and am__quote
21134   # from the Makefile without running `make'.
21135   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21136   test -z "$DEPDIR" && continue
21137   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21138   test -z "am__include" && continue
21139   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21140   # When using ansi2knr, U may be empty or an underscore; expand it
21141   U=`sed -n 's/^U = //p' < "$mf"`
21142   # Find all dependency output files, they are included files with
21143   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21144   # simplest approach to changing $(DEPDIR) to its actual value in the
21145   # expansion.
21146   for file in `sed -n "
21147     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21148        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21149     # Make sure the directory exists.
21150     test -f "$dirpart/$file" && continue
21151     fdir=`$as_dirname -- "$file" ||
21152 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21153          X"$file" : 'X\(//\)[^/]' \| \
21154          X"$file" : 'X\(//\)$' \| \
21155          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21156 $as_echo X"$file" |
21157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21158             s//\1/
21159             q
21160           }
21161           /^X\(\/\/\)[^/].*/{
21162             s//\1/
21163             q
21164           }
21165           /^X\(\/\/\)$/{
21166             s//\1/
21167             q
21168           }
21169           /^X\(\/\).*/{
21170             s//\1/
21171             q
21172           }
21173           s/.*/./; q'`
21174     as_dir=$dirpart/$fdir; as_fn_mkdir_p
21175     # echo "creating $dirpart/$file"
21176     echo '# dummy' > "$dirpart/$file"
21177   done
21178 done
21179  ;;
21180
21181   esac
21182 done # for ac_tag
21183
21184
21185 as_fn_exit 0
21186 _ACEOF
21187 ac_clean_files=$ac_clean_files_save
21188
21189 test $ac_write_fail = 0 ||
21190   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21191
21192
21193 # configure is writing to config.log, and then calls config.status.
21194 # config.status does its own redirection, appending to config.log.
21195 # Unfortunately, on DOS this fails, as config.log is still kept open
21196 # by configure, so config.status won't be able to write to it; its
21197 # output is simply discarded.  So we exec the FD to /dev/null,
21198 # effectively closing config.log, so it can be properly (re)opened and
21199 # appended to by config.status.  When coming back to configure, we
21200 # need to make the FD available again.
21201 if test "$no_create" != yes; then
21202   ac_cs_success=:
21203   ac_config_status_args=
21204   test "$silent" = yes &&
21205     ac_config_status_args="$ac_config_status_args --quiet"
21206   exec 5>/dev/null
21207   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21208   exec 5>>config.log
21209   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21210   # would make configure fail if this is the last instruction.
21211   $ac_cs_success || as_fn_exit 1
21212 fi
21213 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21214   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21215 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21216 fi
21217