btx: tweak makefile for gold linker
[dragonfly.git] / contrib / mpfr / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for MPFR 2.4.2.
4 #
5 #
6 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
7 # Contributed by the Arenaire and Cacao projects, INRIA.
8 #
9 # This file is part of the GNU MPFR Library.
10 #
11 # The GNU MPFR Library is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License as published
13 # by the Free Software Foundation; either version 2.1 of the License, or (at
14 # your option) any later version.
15 #
16 # The GNU MPFR Library is distributed in the hope that it will be useful, but
17 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
19 # License for more details.
20 #
21 # You should have received a copy of the GNU Lesser General Public License
22 # along with the GNU MPFR Library; see the file COPYING.LIB.  If not, write to
23 # the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
24 # MA 02110-1301, USA.
25 #
26 #
27 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
28 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
29 # Foundation, Inc.
30 #
31 # This configure script is free software; the Free Software Foundation
32 # gives unlimited permission to copy, distribute and modify it.
33 ## -------------------- ##
34 ## M4sh Initialization. ##
35 ## -------------------- ##
36
37 # Be more Bourne compatible
38 DUALCASE=1; export DUALCASE # for MKS sh
39 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
40   emulate sh
41   NULLCMD=:
42   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
43   # is contrary to our usage.  Disable this feature.
44   alias -g '${1+"$@"}'='"$@"'
45   setopt NO_GLOB_SUBST
46 else
47   case `(set -o) 2>/dev/null` in #(
48   *posix*) :
49     set -o posix ;; #(
50   *) :
51      ;;
52 esac
53 fi
54
55
56 as_nl='
57 '
58 export as_nl
59 # Printing a long string crashes Solaris 7 /usr/bin/printf.
60 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
61 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
62 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
63 # Prefer a ksh shell builtin over an external printf program on Solaris,
64 # but without wasting forks for bash or zsh.
65 if test -z "$BASH_VERSION$ZSH_VERSION" \
66     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
67   as_echo='print -r --'
68   as_echo_n='print -rn --'
69 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
70   as_echo='printf %s\n'
71   as_echo_n='printf %s'
72 else
73   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
75     as_echo_n='/usr/ucb/echo -n'
76   else
77     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
78     as_echo_n_body='eval
79       arg=$1;
80       case $arg in #(
81       *"$as_nl"*)
82         expr "X$arg" : "X\\(.*\\)$as_nl";
83         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
84       esac;
85       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
86     '
87     export as_echo_n_body
88     as_echo_n='sh -c $as_echo_n_body as_echo'
89   fi
90   export as_echo_body
91   as_echo='sh -c $as_echo_body as_echo'
92 fi
93
94 # The user is always right.
95 if test "${PATH_SEPARATOR+set}" != set; then
96   PATH_SEPARATOR=:
97   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
98     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
99       PATH_SEPARATOR=';'
100   }
101 fi
102
103
104 # IFS
105 # We need space, tab and new line, in precisely that order.  Quoting is
106 # there to prevent editors from complaining about space-tab.
107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
108 # splitting by setting IFS to empty value.)
109 IFS=" ""        $as_nl"
110
111 # Find who we are.  Look in the path if we contain no directory separator.
112 case $0 in #((
113   *[\\/]* ) as_myself=$0 ;;
114   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 for as_dir in $PATH
116 do
117   IFS=$as_save_IFS
118   test -z "$as_dir" && as_dir=.
119     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120   done
121 IFS=$as_save_IFS
122
123      ;;
124 esac
125 # We did not find ourselves, most probably we were run as `sh COMMAND'
126 # in which case we are not to be found in the path.
127 if test "x$as_myself" = x; then
128   as_myself=$0
129 fi
130 if test ! -f "$as_myself"; then
131   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
132   exit 1
133 fi
134
135 # Unset variables that we do not need and which cause bugs (e.g. in
136 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
137 # suppresses any "Segmentation fault" message there.  '((' could
138 # trigger a bug in pdksh 5.2.14.
139 for as_var in BASH_ENV ENV MAIL MAILPATH
140 do eval test x\${$as_var+set} = xset \
141   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
142 done
143 PS1='$ '
144 PS2='> '
145 PS4='+ '
146
147 # NLS nuisances.
148 LC_ALL=C
149 export LC_ALL
150 LANGUAGE=C
151 export LANGUAGE
152
153 # CDPATH.
154 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
155
156 if test "x$CONFIG_SHELL" = x; then
157   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
158   emulate sh
159   NULLCMD=:
160   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
161   # is contrary to our usage.  Disable this feature.
162   alias -g '\${1+\"\$@\"}'='\"\$@\"'
163   setopt NO_GLOB_SUBST
164 else
165   case \`(set -o) 2>/dev/null\` in #(
166   *posix*) :
167     set -o posix ;; #(
168   *) :
169      ;;
170 esac
171 fi
172 "
173   as_required="as_fn_return () { (exit \$1); }
174 as_fn_success () { as_fn_return 0; }
175 as_fn_failure () { as_fn_return 1; }
176 as_fn_ret_success () { return 0; }
177 as_fn_ret_failure () { return 1; }
178
179 exitcode=0
180 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
181 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
182 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
183 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
184 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
185
186 else
187   exitcode=1; echo positional parameters were not saved.
188 fi
189 test x\$exitcode = x0 || exit 1"
190   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
191   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
192   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
193   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195   if (eval "$as_required") 2>/dev/null; then :
196   as_have_required=yes
197 else
198   as_have_required=no
199 fi
200   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
201
202 else
203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207   IFS=$as_save_IFS
208   test -z "$as_dir" && as_dir=.
209   as_found=:
210   case $as_dir in #(
211          /*)
212            for as_base in sh bash ksh sh5; do
213              # Try only shells that exist, to save several forks.
214              as_shell=$as_dir/$as_base
215              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
217   CONFIG_SHELL=$as_shell as_have_required=yes
218                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
219   break 2
220 fi
221 fi
222            done;;
223        esac
224   as_found=false
225 done
226 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
227               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
228   CONFIG_SHELL=$SHELL as_have_required=yes
229 fi; }
230 IFS=$as_save_IFS
231
232
233       if test "x$CONFIG_SHELL" != x; then :
234   # We cannot yet assume a decent shell, so we have to provide a
235         # neutralization value for shells without unset; and this also
236         # works around shells that cannot unset nonexistent variables.
237         BASH_ENV=/dev/null
238         ENV=/dev/null
239         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
240         export CONFIG_SHELL
241         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
242 fi
243
244     if test x$as_have_required = xno; then :
245   $as_echo "$0: This script requires a shell more modern than all"
246   $as_echo "$0: the shells that I found on your system."
247   if test x${ZSH_VERSION+set} = xset ; then
248     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
249     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
250   else
251     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
252 $0: including any error possibly output before this
253 $0: message. Then install a modern shell, or manually run
254 $0: the script under such a shell if you do have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error ERROR [LINENO LOG_FD]
380 # ---------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with status $?, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$?; test $as_status -eq 0 && as_status=1
387   if test "$3"; then
388     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
390   fi
391   $as_echo "$as_me: error: $1" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548
549
550 # Check that we are running under the correct shell.
551 SHELL=${CONFIG_SHELL-/bin/sh}
552
553 case X$lt_ECHO in
554 X*--fallback-echo)
555   # Remove one level of quotation (which was required for Make).
556   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
557   ;;
558 esac
559
560 ECHO=${lt_ECHO-echo}
561 if test "X$1" = X--no-reexec; then
562   # Discard the --no-reexec flag, and continue.
563   shift
564 elif test "X$1" = X--fallback-echo; then
565   # Avoid inline document here, it may be left over
566   :
567 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
568   # Yippee, $ECHO works!
569   :
570 else
571   # Restart under the correct shell.
572   exec $SHELL "$0" --no-reexec ${1+"$@"}
573 fi
574
575 if test "X$1" = X--fallback-echo; then
576   # used as fallback echo
577   shift
578   cat <<_LT_EOF
579 $*
580 _LT_EOF
581   exit 0
582 fi
583
584 # The HP-UX ksh and POSIX shell print the target directory to stdout
585 # if CDPATH is set.
586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
587
588 if test -z "$lt_ECHO"; then
589   if test "X${echo_test_string+set}" != Xset; then
590     # find a string as large as possible, as long as the shell can cope with it
591     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
592       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
593       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
594          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
595       then
596         break
597       fi
598     done
599   fi
600
601   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
602      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
603      test "X$echo_testing_string" = "X$echo_test_string"; then
604     :
605   else
606     # The Solaris, AIX, and Digital Unix default echo programs unquote
607     # backslashes.  This makes it impossible to quote backslashes using
608     #   echo "$something" | sed 's/\\/\\\\/g'
609     #
610     # So, first we look for a working echo in the user's PATH.
611
612     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
613     for dir in $PATH /usr/ucb; do
614       IFS="$lt_save_ifs"
615       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
616          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
617          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
618          test "X$echo_testing_string" = "X$echo_test_string"; then
619         ECHO="$dir/echo"
620         break
621       fi
622     done
623     IFS="$lt_save_ifs"
624
625     if test "X$ECHO" = Xecho; then
626       # We didn't find a better echo, so look for alternatives.
627       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
628          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
629          test "X$echo_testing_string" = "X$echo_test_string"; then
630         # This shell has a builtin print -r that does the trick.
631         ECHO='print -r'
632       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
633            test "X$CONFIG_SHELL" != X/bin/ksh; then
634         # If we have ksh, try running configure again with it.
635         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
636         export ORIGINAL_CONFIG_SHELL
637         CONFIG_SHELL=/bin/ksh
638         export CONFIG_SHELL
639         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
640       else
641         # Try using printf.
642         ECHO='printf %s\n'
643         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
644            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
645            test "X$echo_testing_string" = "X$echo_test_string"; then
646           # Cool, printf works
647           :
648         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649              test "X$echo_testing_string" = 'X\t' &&
650              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651              test "X$echo_testing_string" = "X$echo_test_string"; then
652           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
653           export CONFIG_SHELL
654           SHELL="$CONFIG_SHELL"
655           export SHELL
656           ECHO="$CONFIG_SHELL $0 --fallback-echo"
657         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
658              test "X$echo_testing_string" = 'X\t' &&
659              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
660              test "X$echo_testing_string" = "X$echo_test_string"; then
661           ECHO="$CONFIG_SHELL $0 --fallback-echo"
662         else
663           # maybe with a smaller string...
664           prev=:
665
666           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
667             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
668             then
669               break
670             fi
671             prev="$cmd"
672           done
673
674           if test "$prev" != 'sed 50q "$0"'; then
675             echo_test_string=`eval $prev`
676             export echo_test_string
677             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
678           else
679             # Oops.  We lost completely, so just stick with echo.
680             ECHO=echo
681           fi
682         fi
683       fi
684     fi
685   fi
686 fi
687
688 # Copy echo and quote the copy suitably for passing to libtool from
689 # the Makefile, instead of quoting the original, which is used later.
690 lt_ECHO=$ECHO
691 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
692    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
693 fi
694
695
696
697
698 exec 7<&0 </dev/null 6>&1
699
700 # Name of the host.
701 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
702 # so uname gets run too.
703 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
704
705 #
706 # Initializations.
707 #
708 ac_default_prefix=/usr/local
709 ac_clean_files=
710 ac_config_libobj_dir=.
711 LIBOBJS=
712 cross_compiling=no
713 subdirs=
714 MFLAGS=
715 MAKEFLAGS=
716
717 # Identity of this package.
718 PACKAGE_NAME='MPFR'
719 PACKAGE_TARNAME='mpfr'
720 PACKAGE_VERSION='2.4.2'
721 PACKAGE_STRING='MPFR 2.4.2'
722 PACKAGE_BUGREPORT=''
723 PACKAGE_URL=''
724
725 # Factoring default headers for most tests.
726 ac_includes_default="\
727 #include <stdio.h>
728 #ifdef HAVE_SYS_TYPES_H
729 # include <sys/types.h>
730 #endif
731 #ifdef HAVE_SYS_STAT_H
732 # include <sys/stat.h>
733 #endif
734 #ifdef STDC_HEADERS
735 # include <stdlib.h>
736 # include <stddef.h>
737 #else
738 # ifdef HAVE_STDLIB_H
739 #  include <stdlib.h>
740 # endif
741 #endif
742 #ifdef HAVE_STRING_H
743 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
744 #  include <memory.h>
745 # endif
746 # include <string.h>
747 #endif
748 #ifdef HAVE_STRINGS_H
749 # include <strings.h>
750 #endif
751 #ifdef HAVE_INTTYPES_H
752 # include <inttypes.h>
753 #endif
754 #ifdef HAVE_STDINT_H
755 # include <stdint.h>
756 #endif
757 #ifdef HAVE_UNISTD_H
758 # include <unistd.h>
759 #endif"
760
761 ac_subst_vars='am__EXEEXT_FALSE
762 am__EXEEXT_TRUE
763 LTLIBOBJS
764 LIBOBJS
765 ALLOCA
766 OTOOL64
767 OTOOL
768 LIPO
769 NMEDIT
770 DSYMUTIL
771 lt_ECHO
772 RANLIB
773 AR
774 LN_S
775 NM
776 ac_ct_DUMPBIN
777 DUMPBIN
778 LD
779 FGREP
780 LIBTOOL
781 OBJDUMP
782 DLLTOOL
783 AS
784 CXXCPP
785 ac_ct_F77
786 FFLAGS
787 F77
788 am__fastdepCXX_FALSE
789 am__fastdepCXX_TRUE
790 CXXDEPMODE
791 ac_ct_CXX
792 CXXFLAGS
793 CXX
794 MPFR_LIBM
795 ANSI2KNR
796 U
797 CPP
798 am__fastdepCC_FALSE
799 am__fastdepCC_TRUE
800 CCDEPMODE
801 AMDEPBACKSLASH
802 AMDEP_FALSE
803 AMDEP_TRUE
804 am__quote
805 am__include
806 DEPDIR
807 OBJEXT
808 EXEEXT
809 ac_ct_CC
810 CPPFLAGS
811 LDFLAGS
812 CFLAGS
813 CC
814 SED
815 EGREP
816 GREP
817 host_os
818 host_vendor
819 host_cpu
820 host
821 build_os
822 build_vendor
823 build_cpu
824 build
825 MAINT
826 MAINTAINER_MODE_FALSE
827 MAINTAINER_MODE_TRUE
828 am__untar
829 am__tar
830 AMTAR
831 am__leading_dot
832 SET_MAKE
833 AWK
834 mkdir_p
835 MKDIR_P
836 INSTALL_STRIP_PROGRAM
837 STRIP
838 install_sh
839 MAKEINFO
840 AUTOHEADER
841 AUTOMAKE
842 AUTOCONF
843 ACLOCAL
844 VERSION
845 PACKAGE
846 CYGPATH_W
847 am__isrc
848 INSTALL_DATA
849 INSTALL_SCRIPT
850 INSTALL_PROGRAM
851 target_alias
852 host_alias
853 build_alias
854 LIBS
855 ECHO_T
856 ECHO_N
857 ECHO_C
858 DEFS
859 mandir
860 localedir
861 libdir
862 psdir
863 pdfdir
864 dvidir
865 htmldir
866 infodir
867 docdir
868 oldincludedir
869 includedir
870 localstatedir
871 sharedstatedir
872 sysconfdir
873 datadir
874 datarootdir
875 libexecdir
876 sbindir
877 bindir
878 program_transform_name
879 prefix
880 exec_prefix
881 PACKAGE_URL
882 PACKAGE_BUGREPORT
883 PACKAGE_STRING
884 PACKAGE_VERSION
885 PACKAGE_TARNAME
886 PACKAGE_NAME
887 PATH_SEPARATOR
888 SHELL'
889 ac_subst_files=''
890 ac_user_opts='
891 enable_option_checking
892 enable_maintainer_mode
893 with_gmp_include
894 with_gmp_lib
895 with_gmp
896 with_gmp_build
897 with_mulhigh_size
898 enable_assert
899 enable_logging
900 enable_thread_safe
901 enable_warnings
902 enable_tests_timeout
903 enable_dependency_tracking
904 enable_decimal_float
905 enable_shared
906 enable_static
907 with_pic
908 enable_fast_install
909 with_gnu_ld
910 enable_libtool_lock
911 '
912       ac_precious_vars='build_alias
913 host_alias
914 target_alias
915 CC
916 CFLAGS
917 LDFLAGS
918 LIBS
919 CPPFLAGS
920 CPP
921 CXX
922 CXXFLAGS
923 CCC
924 F77
925 FFLAGS
926 CXXCPP'
927
928
929 # Initialize some variables set by options.
930 ac_init_help=
931 ac_init_version=false
932 ac_unrecognized_opts=
933 ac_unrecognized_sep=
934 # The variables have the same names as the options, with
935 # dashes changed to underlines.
936 cache_file=/dev/null
937 exec_prefix=NONE
938 no_create=
939 no_recursion=
940 prefix=NONE
941 program_prefix=NONE
942 program_suffix=NONE
943 program_transform_name=s,x,x,
944 silent=
945 site=
946 srcdir=
947 verbose=
948 x_includes=NONE
949 x_libraries=NONE
950
951 # Installation directory options.
952 # These are left unexpanded so users can "make install exec_prefix=/foo"
953 # and all the variables that are supposed to be based on exec_prefix
954 # by default will actually change.
955 # Use braces instead of parens because sh, perl, etc. also accept them.
956 # (The list follows the same order as the GNU Coding Standards.)
957 bindir='${exec_prefix}/bin'
958 sbindir='${exec_prefix}/sbin'
959 libexecdir='${exec_prefix}/libexec'
960 datarootdir='${prefix}/share'
961 datadir='${datarootdir}'
962 sysconfdir='${prefix}/etc'
963 sharedstatedir='${prefix}/com'
964 localstatedir='${prefix}/var'
965 includedir='${prefix}/include'
966 oldincludedir='/usr/include'
967 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
968 infodir='${datarootdir}/info'
969 htmldir='${docdir}'
970 dvidir='${docdir}'
971 pdfdir='${docdir}'
972 psdir='${docdir}'
973 libdir='${exec_prefix}/lib'
974 localedir='${datarootdir}/locale'
975 mandir='${datarootdir}/man'
976
977 ac_prev=
978 ac_dashdash=
979 for ac_option
980 do
981   # If the previous option needs an argument, assign it.
982   if test -n "$ac_prev"; then
983     eval $ac_prev=\$ac_option
984     ac_prev=
985     continue
986   fi
987
988   case $ac_option in
989   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990   *)    ac_optarg=yes ;;
991   esac
992
993   # Accept the important Cygnus configure options, so we can diagnose typos.
994
995   case $ac_dashdash$ac_option in
996   --)
997     ac_dashdash=yes ;;
998
999   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1000     ac_prev=bindir ;;
1001   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1002     bindir=$ac_optarg ;;
1003
1004   -build | --build | --buil | --bui | --bu)
1005     ac_prev=build_alias ;;
1006   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1007     build_alias=$ac_optarg ;;
1008
1009   -cache-file | --cache-file | --cache-fil | --cache-fi \
1010   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1011     ac_prev=cache_file ;;
1012   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1013   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1014     cache_file=$ac_optarg ;;
1015
1016   --config-cache | -C)
1017     cache_file=config.cache ;;
1018
1019   -datadir | --datadir | --datadi | --datad)
1020     ac_prev=datadir ;;
1021   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1022     datadir=$ac_optarg ;;
1023
1024   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1025   | --dataroo | --dataro | --datar)
1026     ac_prev=datarootdir ;;
1027   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1028   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1029     datarootdir=$ac_optarg ;;
1030
1031   -disable-* | --disable-*)
1032     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1033     # Reject names that are not valid shell variable names.
1034     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035       as_fn_error "invalid feature name: $ac_useropt"
1036     ac_useropt_orig=$ac_useropt
1037     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038     case $ac_user_opts in
1039       *"
1040 "enable_$ac_useropt"
1041 "*) ;;
1042       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1043          ac_unrecognized_sep=', ';;
1044     esac
1045     eval enable_$ac_useropt=no ;;
1046
1047   -docdir | --docdir | --docdi | --doc | --do)
1048     ac_prev=docdir ;;
1049   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050     docdir=$ac_optarg ;;
1051
1052   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053     ac_prev=dvidir ;;
1054   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055     dvidir=$ac_optarg ;;
1056
1057   -enable-* | --enable-*)
1058     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059     # Reject names that are not valid shell variable names.
1060     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061       as_fn_error "invalid feature name: $ac_useropt"
1062     ac_useropt_orig=$ac_useropt
1063     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064     case $ac_user_opts in
1065       *"
1066 "enable_$ac_useropt"
1067 "*) ;;
1068       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1069          ac_unrecognized_sep=', ';;
1070     esac
1071     eval enable_$ac_useropt=\$ac_optarg ;;
1072
1073   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075   | --exec | --exe | --ex)
1076     ac_prev=exec_prefix ;;
1077   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079   | --exec=* | --exe=* | --ex=*)
1080     exec_prefix=$ac_optarg ;;
1081
1082   -gas | --gas | --ga | --g)
1083     # Obsolete; use --with-gas.
1084     with_gas=yes ;;
1085
1086   -help | --help | --hel | --he | -h)
1087     ac_init_help=long ;;
1088   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089     ac_init_help=recursive ;;
1090   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091     ac_init_help=short ;;
1092
1093   -host | --host | --hos | --ho)
1094     ac_prev=host_alias ;;
1095   -host=* | --host=* | --hos=* | --ho=*)
1096     host_alias=$ac_optarg ;;
1097
1098   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099     ac_prev=htmldir ;;
1100   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101   | --ht=*)
1102     htmldir=$ac_optarg ;;
1103
1104   -includedir | --includedir | --includedi | --included | --include \
1105   | --includ | --inclu | --incl | --inc)
1106     ac_prev=includedir ;;
1107   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108   | --includ=* | --inclu=* | --incl=* | --inc=*)
1109     includedir=$ac_optarg ;;
1110
1111   -infodir | --infodir | --infodi | --infod | --info | --inf)
1112     ac_prev=infodir ;;
1113   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114     infodir=$ac_optarg ;;
1115
1116   -libdir | --libdir | --libdi | --libd)
1117     ac_prev=libdir ;;
1118   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119     libdir=$ac_optarg ;;
1120
1121   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122   | --libexe | --libex | --libe)
1123     ac_prev=libexecdir ;;
1124   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125   | --libexe=* | --libex=* | --libe=*)
1126     libexecdir=$ac_optarg ;;
1127
1128   -localedir | --localedir | --localedi | --localed | --locale)
1129     ac_prev=localedir ;;
1130   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131     localedir=$ac_optarg ;;
1132
1133   -localstatedir | --localstatedir | --localstatedi | --localstated \
1134   | --localstate | --localstat | --localsta | --localst | --locals)
1135     ac_prev=localstatedir ;;
1136   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138     localstatedir=$ac_optarg ;;
1139
1140   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141     ac_prev=mandir ;;
1142   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143     mandir=$ac_optarg ;;
1144
1145   -nfp | --nfp | --nf)
1146     # Obsolete; use --without-fp.
1147     with_fp=no ;;
1148
1149   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150   | --no-cr | --no-c | -n)
1151     no_create=yes ;;
1152
1153   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155     no_recursion=yes ;;
1156
1157   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159   | --oldin | --oldi | --old | --ol | --o)
1160     ac_prev=oldincludedir ;;
1161   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164     oldincludedir=$ac_optarg ;;
1165
1166   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167     ac_prev=prefix ;;
1168   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169     prefix=$ac_optarg ;;
1170
1171   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172   | --program-pre | --program-pr | --program-p)
1173     ac_prev=program_prefix ;;
1174   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176     program_prefix=$ac_optarg ;;
1177
1178   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179   | --program-suf | --program-su | --program-s)
1180     ac_prev=program_suffix ;;
1181   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183     program_suffix=$ac_optarg ;;
1184
1185   -program-transform-name | --program-transform-name \
1186   | --program-transform-nam | --program-transform-na \
1187   | --program-transform-n | --program-transform- \
1188   | --program-transform | --program-transfor \
1189   | --program-transfo | --program-transf \
1190   | --program-trans | --program-tran \
1191   | --progr-tra | --program-tr | --program-t)
1192     ac_prev=program_transform_name ;;
1193   -program-transform-name=* | --program-transform-name=* \
1194   | --program-transform-nam=* | --program-transform-na=* \
1195   | --program-transform-n=* | --program-transform-=* \
1196   | --program-transform=* | --program-transfor=* \
1197   | --program-transfo=* | --program-transf=* \
1198   | --program-trans=* | --program-tran=* \
1199   | --progr-tra=* | --program-tr=* | --program-t=*)
1200     program_transform_name=$ac_optarg ;;
1201
1202   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203     ac_prev=pdfdir ;;
1204   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205     pdfdir=$ac_optarg ;;
1206
1207   -psdir | --psdir | --psdi | --psd | --ps)
1208     ac_prev=psdir ;;
1209   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210     psdir=$ac_optarg ;;
1211
1212   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213   | -silent | --silent | --silen | --sile | --sil)
1214     silent=yes ;;
1215
1216   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217     ac_prev=sbindir ;;
1218   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219   | --sbi=* | --sb=*)
1220     sbindir=$ac_optarg ;;
1221
1222   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224   | --sharedst | --shareds | --shared | --share | --shar \
1225   | --sha | --sh)
1226     ac_prev=sharedstatedir ;;
1227   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230   | --sha=* | --sh=*)
1231     sharedstatedir=$ac_optarg ;;
1232
1233   -site | --site | --sit)
1234     ac_prev=site ;;
1235   -site=* | --site=* | --sit=*)
1236     site=$ac_optarg ;;
1237
1238   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239     ac_prev=srcdir ;;
1240   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241     srcdir=$ac_optarg ;;
1242
1243   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244   | --syscon | --sysco | --sysc | --sys | --sy)
1245     ac_prev=sysconfdir ;;
1246   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248     sysconfdir=$ac_optarg ;;
1249
1250   -target | --target | --targe | --targ | --tar | --ta | --t)
1251     ac_prev=target_alias ;;
1252   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253     target_alias=$ac_optarg ;;
1254
1255   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256     verbose=yes ;;
1257
1258   -version | --version | --versio | --versi | --vers | -V)
1259     ac_init_version=: ;;
1260
1261   -with-* | --with-*)
1262     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263     # Reject names that are not valid shell variable names.
1264     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265       as_fn_error "invalid package name: $ac_useropt"
1266     ac_useropt_orig=$ac_useropt
1267     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268     case $ac_user_opts in
1269       *"
1270 "with_$ac_useropt"
1271 "*) ;;
1272       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273          ac_unrecognized_sep=', ';;
1274     esac
1275     eval with_$ac_useropt=\$ac_optarg ;;
1276
1277   -without-* | --without-*)
1278     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281       as_fn_error "invalid package name: $ac_useropt"
1282     ac_useropt_orig=$ac_useropt
1283     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284     case $ac_user_opts in
1285       *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289          ac_unrecognized_sep=', ';;
1290     esac
1291     eval with_$ac_useropt=no ;;
1292
1293   --x)
1294     # Obsolete; use --with-x.
1295     with_x=yes ;;
1296
1297   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298   | --x-incl | --x-inc | --x-in | --x-i)
1299     ac_prev=x_includes ;;
1300   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302     x_includes=$ac_optarg ;;
1303
1304   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306     ac_prev=x_libraries ;;
1307   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309     x_libraries=$ac_optarg ;;
1310
1311   -*) as_fn_error "unrecognized option: \`$ac_option'
1312 Try \`$0 --help' for more information."
1313     ;;
1314
1315   *=*)
1316     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317     # Reject names that are not valid shell variable names.
1318     case $ac_envvar in #(
1319       '' | [0-9]* | *[!_$as_cr_alnum]* )
1320       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1321     esac
1322     eval $ac_envvar=\$ac_optarg
1323     export $ac_envvar ;;
1324
1325   *)
1326     # FIXME: should be removed in autoconf 3.0.
1327     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1331     ;;
1332
1333   esac
1334 done
1335
1336 if test -n "$ac_prev"; then
1337   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338   as_fn_error "missing argument to $ac_option"
1339 fi
1340
1341 if test -n "$ac_unrecognized_opts"; then
1342   case $enable_option_checking in
1343     no) ;;
1344     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1345     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346   esac
1347 fi
1348
1349 # Check all directory arguments for consistency.
1350 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351                 datadir sysconfdir sharedstatedir localstatedir includedir \
1352                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353                 libdir localedir mandir
1354 do
1355   eval ac_val=\$$ac_var
1356   # Remove trailing slashes.
1357   case $ac_val in
1358     */ )
1359       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360       eval $ac_var=\$ac_val;;
1361   esac
1362   # Be sure to have absolute directory names.
1363   case $ac_val in
1364     [\\/$]* | ?:[\\/]* )  continue;;
1365     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366   esac
1367   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379   if test "x$build_alias" = x; then
1380     cross_compiling=maybe
1381     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382     If a cross compiler is detected then cross compile mode will be used." >&2
1383   elif test "x$build_alias" != "x$host_alias"; then
1384     cross_compiling=yes
1385   fi
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397   as_fn_error "working directory cannot be determined"
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399   as_fn_error "pwd does not report name of working directory"
1400
1401
1402 # Find the source files, if location was not specified.
1403 if test -z "$srcdir"; then
1404   ac_srcdir_defaulted=yes
1405   # Try the directory containing this script, then the parent directory.
1406   ac_confdir=`$as_dirname -- "$as_myself" ||
1407 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408          X"$as_myself" : 'X\(//\)[^/]' \| \
1409          X"$as_myself" : 'X\(//\)$' \| \
1410          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411 $as_echo X"$as_myself" |
1412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413             s//\1/
1414             q
1415           }
1416           /^X\(\/\/\)[^/].*/{
1417             s//\1/
1418             q
1419           }
1420           /^X\(\/\/\)$/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\).*/{
1425             s//\1/
1426             q
1427           }
1428           s/.*/./; q'`
1429   srcdir=$ac_confdir
1430   if test ! -r "$srcdir/$ac_unique_file"; then
1431     srcdir=..
1432   fi
1433 else
1434   ac_srcdir_defaulted=no
1435 fi
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1438   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1439 fi
1440 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 ac_abs_confdir=`(
1442         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1443         pwd)`
1444 # When building in place, set srcdir=.
1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446   srcdir=.
1447 fi
1448 # Remove unnecessary trailing slashes from srcdir.
1449 # Double slashes in file names in object file debugging info
1450 # mess up M-x gdb in Emacs.
1451 case $srcdir in
1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 esac
1454 for ac_var in $ac_precious_vars; do
1455   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456   eval ac_env_${ac_var}_value=\$${ac_var}
1457   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 done
1460
1461 #
1462 # Report the --help message.
1463 #
1464 if test "$ac_init_help" = "long"; then
1465   # Omit some internal or obsolete options to make the list less imposing.
1466   # This message is too long to be a string in the A/UX 3.1 sh.
1467   cat <<_ACEOF
1468 \`configure' configures MPFR 2.4.2 to adapt to many kinds of systems.
1469
1470 Usage: $0 [OPTION]... [VAR=VALUE]...
1471
1472 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473 VAR=VALUE.  See below for descriptions of some of the useful variables.
1474
1475 Defaults for the options are specified in brackets.
1476
1477 Configuration:
1478   -h, --help              display this help and exit
1479       --help=short        display options specific to this package
1480       --help=recursive    display the short help of all the included packages
1481   -V, --version           display version information and exit
1482   -q, --quiet, --silent   do not print \`checking...' messages
1483       --cache-file=FILE   cache test results in FILE [disabled]
1484   -C, --config-cache      alias for \`--cache-file=config.cache'
1485   -n, --no-create         do not create output files
1486       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1487
1488 Installation directories:
1489   --prefix=PREFIX         install architecture-independent files in PREFIX
1490                           [$ac_default_prefix]
1491   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1492                           [PREFIX]
1493
1494 By default, \`make install' will install all the files in
1495 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1496 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497 for instance \`--prefix=\$HOME'.
1498
1499 For better control, use the options below.
1500
1501 Fine tuning of the installation directories:
1502   --bindir=DIR            user executables [EPREFIX/bin]
1503   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1504   --libexecdir=DIR        program executables [EPREFIX/libexec]
1505   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1506   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1507   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1508   --libdir=DIR            object code libraries [EPREFIX/lib]
1509   --includedir=DIR        C header files [PREFIX/include]
1510   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1511   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1512   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1513   --infodir=DIR           info documentation [DATAROOTDIR/info]
1514   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1515   --mandir=DIR            man documentation [DATAROOTDIR/man]
1516   --docdir=DIR            documentation root [DATAROOTDIR/doc/mpfr]
1517   --htmldir=DIR           html documentation [DOCDIR]
1518   --dvidir=DIR            dvi documentation [DOCDIR]
1519   --pdfdir=DIR            pdf documentation [DOCDIR]
1520   --psdir=DIR             ps documentation [DOCDIR]
1521 _ACEOF
1522
1523   cat <<\_ACEOF
1524
1525 Program names:
1526   --program-prefix=PREFIX            prepend PREFIX to installed program names
1527   --program-suffix=SUFFIX            append SUFFIX to installed program names
1528   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1529
1530 System types:
1531   --build=BUILD     configure for building on BUILD [guessed]
1532   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1533 _ACEOF
1534 fi
1535
1536 if test -n "$ac_init_help"; then
1537   case $ac_init_help in
1538      short | recursive ) echo "Configuration of MPFR 2.4.2:";;
1539    esac
1540   cat <<\_ACEOF
1541
1542 Optional Features:
1543   --disable-option-checking  ignore unrecognized --enable/--with options
1544   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1545   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1546   --disable-maintainer-mode  disable make rules and dependencies not useful
1547                           (and sometimes confusing) to the casual installer
1548   --enable-assert         enable ASSERT checking [default=no]
1549   --enable-logging        enable MPFR logging (the system must support it)
1550                           [default=no]
1551   --enable-thread-safe    build MPFR as thread safe (the system must support
1552                           it) [default=no]
1553   --enable-warnings       allow MPFR to output warnings to stderr [default=no]
1554   --enable-tests-timeout=NUM    enable timeout (NUM seconds) for test programs
1555                           (NUM <= 9999) [default=no]; if enabled, env variable
1556                           $MPFR_TESTS_TIMEOUT overrides NUM (0: no timeout).
1557   --disable-dependency-tracking  speeds up one-time build
1558   --enable-dependency-tracking   do not reject slow dependency extractors
1559   --enable-decimal-float  build conversion functions from/to decimal floats
1560                           [default=no]
1561   --enable-shared[=PKGS]  build shared libraries [default=yes]
1562   --enable-static[=PKGS]  build static libraries [default=yes]
1563   --enable-fast-install[=PKGS]
1564                           optimize for fast installation [default=yes]
1565   --disable-libtool-lock  avoid locking (might break parallel builds)
1566
1567 Optional Packages:
1568   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1569   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1570   --with-gmp-include=DIR  GMP include directory
1571   --with-gmp-lib=DIR      GMP lib directory
1572   --with-gmp=DIR          GMP install directory
1573   --with-gmp-build=DIR    GMP build directory (please read INSTALL file)
1574   --with-mulhigh-size=NUM internal threshold table for mulhigh
1575   --with-pic              try to use only PIC/non-PIC objects [default=use
1576                           both]
1577   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1578
1579 Some influential environment variables:
1580   CC          C compiler command
1581   CFLAGS      C compiler flags
1582   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1583               nonstandard directory <lib dir>
1584   LIBS        libraries to pass to the linker, e.g. -l<library>
1585   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586               you have headers in a nonstandard directory <include dir>
1587   CPP         C preprocessor
1588   CXX         C++ compiler command
1589   CXXFLAGS    C++ compiler flags
1590   F77         Fortran 77 compiler command
1591   FFLAGS      Fortran 77 compiler flags
1592   CXXCPP      C++ preprocessor
1593
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1596
1597 Report bugs to the package provider.
1598 _ACEOF
1599 ac_status=$?
1600 fi
1601
1602 if test "$ac_init_help" = "recursive"; then
1603   # If there are subdirs, report their specific --help.
1604   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605     test -d "$ac_dir" ||
1606       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1607       continue
1608     ac_builddir=.
1609
1610 case "$ac_dir" in
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *)
1613   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1614   # A ".." for each directory in $ac_dir_suffix.
1615   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1616   case $ac_top_builddir_sub in
1617   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619   esac ;;
1620 esac
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1625
1626 case $srcdir in
1627   .)  # We are building in place.
1628     ac_srcdir=.
1629     ac_top_srcdir=$ac_top_builddir_sub
1630     ac_abs_top_srcdir=$ac_pwd ;;
1631   [\\/]* | ?:[\\/]* )  # Absolute name.
1632     ac_srcdir=$srcdir$ac_dir_suffix;
1633     ac_top_srcdir=$srcdir
1634     ac_abs_top_srcdir=$srcdir ;;
1635   *) # Relative name.
1636     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637     ac_top_srcdir=$ac_top_build_prefix$srcdir
1638     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 esac
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641
1642     cd "$ac_dir" || { ac_status=$?; continue; }
1643     # Check for guested configure.
1644     if test -f "$ac_srcdir/configure.gnu"; then
1645       echo &&
1646       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647     elif test -f "$ac_srcdir/configure"; then
1648       echo &&
1649       $SHELL "$ac_srcdir/configure" --help=recursive
1650     else
1651       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652     fi || ac_status=$?
1653     cd "$ac_pwd" || { ac_status=$?; break; }
1654   done
1655 fi
1656
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1659   cat <<\_ACEOF
1660 MPFR configure 2.4.2
1661 generated by GNU Autoconf 2.64
1662
1663 Copyright (C) 2009 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1666
1667
1668 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1669 Contributed by the Arenaire and Cacao projects, INRIA.
1670
1671 This file is part of the GNU MPFR Library.
1672
1673 The GNU MPFR Library is free software; you can redistribute it and/or modify
1674 it under the terms of the GNU Lesser General Public License as published
1675 by the Free Software Foundation; either version 2.1 of the License, or (at
1676 your option) any later version.
1677
1678 The GNU MPFR Library is distributed in the hope that it will be useful, but
1679 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1680 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
1681 License for more details.
1682
1683 You should have received a copy of the GNU Lesser General Public License
1684 along with the GNU MPFR Library; see the file COPYING.LIB.  If not, write to
1685 the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
1686 MA 02110-1301, USA.
1687
1688 _ACEOF
1689   exit
1690 fi
1691
1692 ## ------------------------ ##
1693 ## Autoconf initialization. ##
1694 ## ------------------------ ##
1695
1696 # ac_fn_c_try_compile LINENO
1697 # --------------------------
1698 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_compile ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   rm -f conftest.$ac_objext
1703   if { { ac_try="$ac_compile"
1704 case "(($ac_try" in
1705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706   *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710   (eval "$ac_compile") 2>conftest.err
1711   ac_status=$?
1712   if test -s conftest.err; then
1713     grep -v '^ *+' conftest.err >conftest.er1
1714     cat conftest.er1 >&5
1715     mv -f conftest.er1 conftest.err
1716   fi
1717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718   test $ac_status = 0; } && {
1719          test -z "$ac_c_werror_flag" ||
1720          test ! -s conftest.err
1721        } && test -s conftest.$ac_objext; then :
1722   ac_retval=0
1723 else
1724   $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727         ac_retval=1
1728 fi
1729   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730   return $ac_retval
1731
1732 } # ac_fn_c_try_compile
1733
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_cpp ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748   ac_status=$?
1749   if test -s conftest.err; then
1750     grep -v '^ *+' conftest.err >conftest.er1
1751     cat conftest.er1 >&5
1752     mv -f conftest.er1 conftest.err
1753   fi
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; } >/dev/null && {
1756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757          test ! -s conftest.err
1758        }; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764     ac_retval=1
1765 fi
1766   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767   return $ac_retval
1768
1769 } # ac_fn_c_try_cpp
1770
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1775 ac_fn_c_try_run ()
1776 {
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_link") 2>&5
1786   ac_status=$?
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789   { { case "(($ac_try" in
1790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791   *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795   (eval "$ac_try") 2>&5
1796   ac_status=$?
1797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798   test $ac_status = 0; }; }; then :
1799   ac_retval=0
1800 else
1801   $as_echo "$as_me: program exited with status $ac_status" >&5
1802        $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805        ac_retval=$ac_status
1806 fi
1807   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809   return $ac_retval
1810
1811 } # ac_fn_c_try_run
1812
1813 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1814 # -------------------------------------------------------
1815 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1816 # the include files in INCLUDES and setting the cache variable VAR
1817 # accordingly.
1818 ac_fn_c_check_header_mongrel ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825   $as_echo_n "(cached) " >&6
1826 fi
1827 eval ac_res=\$$3
1828                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 else
1831   # Is the header compilable?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1833 $as_echo_n "checking $2 usability... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h.  */
1836 $4
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840   ac_header_compiler=yes
1841 else
1842   ac_header_compiler=no
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1846 $as_echo "$ac_header_compiler" >&6; }
1847
1848 # Is the header present?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1850 $as_echo_n "checking $2 presence... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h.  */
1853 #include <$2>
1854 _ACEOF
1855 if ac_fn_c_try_cpp "$LINENO"; then :
1856   ac_header_preproc=yes
1857 else
1858   ac_header_preproc=no
1859 fi
1860 rm -f conftest.err conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1862 $as_echo "$ac_header_preproc" >&6; }
1863
1864 # So?  What about this header?
1865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1866   yes:no: )
1867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1868 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871     ;;
1872   no:yes:* )
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1874 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1876 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1878 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1879     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1880 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883     ;;
1884 esac
1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888   $as_echo_n "(cached) " >&6
1889 else
1890   eval "$3=\$ac_header_compiler"
1891 fi
1892 eval ac_res=\$$3
1893                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 fi
1896   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897
1898 } # ac_fn_c_check_header_mongrel
1899
1900 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists and can be compiled using the include files in
1903 # INCLUDES, setting the cache variable VAR accordingly.
1904 ac_fn_c_check_header_compile ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1910   $as_echo_n "(cached) " >&6
1911 else
1912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h.  */
1914 $4
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918   eval "$3=yes"
1919 else
1920   eval "$3=no"
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 fi
1924 eval ac_res=\$$3
1925                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928
1929 } # ac_fn_c_check_header_compile
1930
1931 # ac_fn_c_try_link LINENO
1932 # -----------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_c_try_link ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   rm -f conftest.$ac_objext conftest$ac_exeext
1938   if { { ac_try="$ac_link"
1939 case "(($ac_try" in
1940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941   *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945   (eval "$ac_link") 2>conftest.err
1946   ac_status=$?
1947   if test -s conftest.err; then
1948     grep -v '^ *+' conftest.err >conftest.er1
1949     cat conftest.er1 >&5
1950     mv -f conftest.er1 conftest.err
1951   fi
1952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953   test $ac_status = 0; } && {
1954          test -z "$ac_c_werror_flag" ||
1955          test ! -s conftest.err
1956        } && test -s conftest$ac_exeext && {
1957          test "$cross_compiling" = yes ||
1958          $as_test_x conftest$ac_exeext
1959        }; then :
1960   ac_retval=0
1961 else
1962   $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965         ac_retval=1
1966 fi
1967   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1968   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1969   # interfere with the next link command; also delete a directory that is
1970   # left behind by Apple's compiler.  We do this before executing the actions.
1971   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973   return $ac_retval
1974
1975 } # ac_fn_c_try_link
1976
1977 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1978 # --------------------------------------------
1979 # Tries to find the compile-time value of EXPR in a program that includes
1980 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1981 # computed
1982 ac_fn_c_compute_int ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   if test "$cross_compiling" = yes; then
1986     # Depending upon the size, compute the lo and hi bounds.
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 int
1991 main ()
1992 {
1993 static int test_array [1 - 2 * !(($2) >= 0)];
1994 test_array [0] = 0
1995
1996   ;
1997   return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001   ac_lo=0 ac_mid=0
2002   while :; do
2003     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h.  */
2005 $4
2006 int
2007 main ()
2008 {
2009 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2010 test_array [0] = 0
2011
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017   ac_hi=$ac_mid; break
2018 else
2019   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2020                         if test $ac_lo -le $ac_mid; then
2021                           ac_lo= ac_hi=
2022                           break
2023                         fi
2024                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027   done
2028 else
2029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h.  */
2031 $4
2032 int
2033 main ()
2034 {
2035 static int test_array [1 - 2 * !(($2) < 0)];
2036 test_array [0] = 0
2037
2038   ;
2039   return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043   ac_hi=-1 ac_mid=-1
2044   while :; do
2045     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h.  */
2047 $4
2048 int
2049 main ()
2050 {
2051 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2052 test_array [0] = 0
2053
2054   ;
2055   return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059   ac_lo=$ac_mid; break
2060 else
2061   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2062                         if test $ac_mid -le $ac_hi; then
2063                           ac_lo= ac_hi=
2064                           break
2065                         fi
2066                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069   done
2070 else
2071   ac_lo= ac_hi=
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 # Binary search between lo and hi bounds.
2077 while test "x$ac_lo" != "x$ac_hi"; do
2078   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h.  */
2081 $4
2082 int
2083 main ()
2084 {
2085 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 test_array [0] = 0
2087
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093   ac_hi=$ac_mid
2094 else
2095   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 done
2099 case $ac_lo in #((
2100 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2101 '') ac_retval=1 ;;
2102 esac
2103   else
2104     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h.  */
2106 $4
2107 static long int longval () { return $2; }
2108 static unsigned long int ulongval () { return $2; }
2109 #include <stdio.h>
2110 #include <stdlib.h>
2111 int
2112 main ()
2113 {
2114
2115   FILE *f = fopen ("conftest.val", "w");
2116   if (! f)
2117     return 1;
2118   if (($2) < 0)
2119     {
2120       long int i = longval ();
2121       if (i != ($2))
2122         return 1;
2123       fprintf (f, "%ld", i);
2124     }
2125   else
2126     {
2127       unsigned long int i = ulongval ();
2128       if (i != ($2))
2129         return 1;
2130       fprintf (f, "%lu", i);
2131     }
2132   /* Do not output a trailing newline, as this causes \r\n confusion
2133      on some platforms.  */
2134   return ferror (f) || fclose (f) != 0;
2135
2136   ;
2137   return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_run "$LINENO"; then :
2141   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2142 else
2143   ac_retval=1
2144 fi
2145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2146   conftest.$ac_objext conftest.beam conftest.$ac_ext
2147 rm -f conftest.val
2148
2149   fi
2150   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151   return $ac_retval
2152
2153 } # ac_fn_c_compute_int
2154
2155 # ac_fn_c_check_func LINENO FUNC VAR
2156 # ----------------------------------
2157 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2158 ac_fn_c_check_func ()
2159 {
2160   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2164   $as_echo_n "(cached) " >&6
2165 else
2166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h.  */
2168 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2170 #define $2 innocuous_$2
2171
2172 /* System header to define __stub macros and hopefully few prototypes,
2173     which can conflict with char $2 (); below.
2174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2175     <limits.h> exists even on freestanding compilers.  */
2176
2177 #ifdef __STDC__
2178 # include <limits.h>
2179 #else
2180 # include <assert.h>
2181 #endif
2182
2183 #undef $2
2184
2185 /* Override any GCC internal prototype to avoid an error.
2186    Use char because int might match the return type of a GCC
2187    builtin and then its argument prototype would still apply.  */
2188 #ifdef __cplusplus
2189 extern "C"
2190 #endif
2191 char $2 ();
2192 /* The GNU C library defines this for functions which it implements
2193     to always fail with ENOSYS.  Some functions are actually named
2194     something starting with __ and the normal name is an alias.  */
2195 #if defined __stub_$2 || defined __stub___$2
2196 choke me
2197 #endif
2198
2199 int
2200 main ()
2201 {
2202 return $2 ();
2203   ;
2204   return 0;
2205 }
2206 _ACEOF
2207 if ac_fn_c_try_link "$LINENO"; then :
2208   eval "$3=yes"
2209 else
2210   eval "$3=no"
2211 fi
2212 rm -f core conftest.err conftest.$ac_objext \
2213     conftest$ac_exeext conftest.$ac_ext
2214 fi
2215 eval ac_res=\$$3
2216                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219
2220 } # ac_fn_c_check_func
2221
2222 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2223 # -------------------------------------------
2224 # Tests whether TYPE exists after having included INCLUDES, setting cache
2225 # variable VAR accordingly.
2226 ac_fn_c_check_type ()
2227 {
2228   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230 $as_echo_n "checking for $2... " >&6; }
2231 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2232   $as_echo_n "(cached) " >&6
2233 else
2234   eval "$3=no"
2235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h.  */
2237 $4
2238 int
2239 main ()
2240 {
2241 if (sizeof ($2))
2242          return 0;
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h.  */
2250 $4
2251 int
2252 main ()
2253 {
2254 if (sizeof (($2)))
2255             return 0;
2256   ;
2257   return 0;
2258 }
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261
2262 else
2263   eval "$3=yes"
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 eval ac_res=\$$3
2270                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271 $as_echo "$ac_res" >&6; }
2272   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2273
2274 } # ac_fn_c_check_type
2275
2276 # ac_fn_cxx_try_compile LINENO
2277 # ----------------------------
2278 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2279 ac_fn_cxx_try_compile ()
2280 {
2281   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282   rm -f conftest.$ac_objext
2283   if { { ac_try="$ac_compile"
2284 case "(($ac_try" in
2285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286   *) ac_try_echo=$ac_try;;
2287 esac
2288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2289 $as_echo "$ac_try_echo"; } >&5
2290   (eval "$ac_compile") 2>conftest.err
2291   ac_status=$?
2292   if test -s conftest.err; then
2293     grep -v '^ *+' conftest.err >conftest.er1
2294     cat conftest.er1 >&5
2295     mv -f conftest.er1 conftest.err
2296   fi
2297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2298   test $ac_status = 0; } && {
2299          test -z "$ac_cxx_werror_flag" ||
2300          test ! -s conftest.err
2301        } && test -s conftest.$ac_objext; then :
2302   ac_retval=0
2303 else
2304   $as_echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2306
2307         ac_retval=1
2308 fi
2309   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2310   return $ac_retval
2311
2312 } # ac_fn_cxx_try_compile
2313
2314 # ac_fn_f77_try_compile LINENO
2315 # ----------------------------
2316 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2317 ac_fn_f77_try_compile ()
2318 {
2319   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320   rm -f conftest.$ac_objext
2321   if { { ac_try="$ac_compile"
2322 case "(($ac_try" in
2323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324   *) ac_try_echo=$ac_try;;
2325 esac
2326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2327 $as_echo "$ac_try_echo"; } >&5
2328   (eval "$ac_compile") 2>conftest.err
2329   ac_status=$?
2330   if test -s conftest.err; then
2331     grep -v '^ *+' conftest.err >conftest.er1
2332     cat conftest.er1 >&5
2333     mv -f conftest.er1 conftest.err
2334   fi
2335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2336   test $ac_status = 0; } && {
2337          test -z "$ac_f77_werror_flag" ||
2338          test ! -s conftest.err
2339        } && test -s conftest.$ac_objext; then :
2340   ac_retval=0
2341 else
2342   $as_echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345         ac_retval=1
2346 fi
2347   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348   return $ac_retval
2349
2350 } # ac_fn_f77_try_compile
2351
2352 # ac_fn_cxx_try_cpp LINENO
2353 # ------------------------
2354 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2355 ac_fn_cxx_try_cpp ()
2356 {
2357   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358   if { { ac_try="$ac_cpp conftest.$ac_ext"
2359 case "(($ac_try" in
2360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361   *) ac_try_echo=$ac_try;;
2362 esac
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2366   ac_status=$?
2367   if test -s conftest.err; then
2368     grep -v '^ *+' conftest.err >conftest.er1
2369     cat conftest.er1 >&5
2370     mv -f conftest.er1 conftest.err
2371   fi
2372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373   test $ac_status = 0; } >/dev/null && {
2374          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2375          test ! -s conftest.err
2376        }; then :
2377   ac_retval=0
2378 else
2379   $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382     ac_retval=1
2383 fi
2384   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385   return $ac_retval
2386
2387 } # ac_fn_cxx_try_cpp
2388
2389 # ac_fn_cxx_try_link LINENO
2390 # -------------------------
2391 # Try to link conftest.$ac_ext, and return whether this succeeded.
2392 ac_fn_cxx_try_link ()
2393 {
2394   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395   rm -f conftest.$ac_objext conftest$ac_exeext
2396   if { { ac_try="$ac_link"
2397 case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2402 $as_echo "$ac_try_echo"; } >&5
2403   (eval "$ac_link") 2>conftest.err
2404   ac_status=$?
2405   if test -s conftest.err; then
2406     grep -v '^ *+' conftest.err >conftest.er1
2407     cat conftest.er1 >&5
2408     mv -f conftest.er1 conftest.err
2409   fi
2410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2411   test $ac_status = 0; } && {
2412          test -z "$ac_cxx_werror_flag" ||
2413          test ! -s conftest.err
2414        } && test -s conftest$ac_exeext && {
2415          test "$cross_compiling" = yes ||
2416          $as_test_x conftest$ac_exeext
2417        }; then :
2418   ac_retval=0
2419 else
2420   $as_echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423         ac_retval=1
2424 fi
2425   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2426   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2427   # interfere with the next link command; also delete a directory that is
2428   # left behind by Apple's compiler.  We do this before executing the actions.
2429   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2430   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2431   return $ac_retval
2432
2433 } # ac_fn_cxx_try_link
2434
2435 # ac_fn_f77_try_link LINENO
2436 # -------------------------
2437 # Try to link conftest.$ac_ext, and return whether this succeeded.
2438 ac_fn_f77_try_link ()
2439 {
2440   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441   rm -f conftest.$ac_objext conftest$ac_exeext
2442   if { { ac_try="$ac_link"
2443 case "(($ac_try" in
2444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445   *) ac_try_echo=$ac_try;;
2446 esac
2447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448 $as_echo "$ac_try_echo"; } >&5
2449   (eval "$ac_link") 2>conftest.err
2450   ac_status=$?
2451   if test -s conftest.err; then
2452     grep -v '^ *+' conftest.err >conftest.er1
2453     cat conftest.er1 >&5
2454     mv -f conftest.er1 conftest.err
2455   fi
2456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2457   test $ac_status = 0; } && {
2458          test -z "$ac_f77_werror_flag" ||
2459          test ! -s conftest.err
2460        } && test -s conftest$ac_exeext && {
2461          test "$cross_compiling" = yes ||
2462          $as_test_x conftest$ac_exeext
2463        }; then :
2464   ac_retval=0
2465 else
2466   $as_echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2468
2469         ac_retval=1
2470 fi
2471   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2472   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2473   # interfere with the next link command; also delete a directory that is
2474   # left behind by Apple's compiler.  We do this before executing the actions.
2475   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2476   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477   return $ac_retval
2478
2479 } # ac_fn_f77_try_link
2480 cat >config.log <<_ACEOF
2481 This file contains any messages produced by compilers while
2482 running configure, to aid debugging if configure makes a mistake.
2483
2484 It was created by MPFR $as_me 2.4.2, which was
2485 generated by GNU Autoconf 2.64.  Invocation command line was
2486
2487   $ $0 $@
2488
2489 _ACEOF
2490 exec 5>>config.log
2491 {
2492 cat <<_ASUNAME
2493 ## --------- ##
2494 ## Platform. ##
2495 ## --------- ##
2496
2497 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2498 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2499 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2500 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2501 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2502
2503 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2504 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2505
2506 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2507 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2508 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2509 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2510 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2511 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2512 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2513
2514 _ASUNAME
2515
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519   IFS=$as_save_IFS
2520   test -z "$as_dir" && as_dir=.
2521     $as_echo "PATH: $as_dir"
2522   done
2523 IFS=$as_save_IFS
2524
2525 } >&5
2526
2527 cat >&5 <<_ACEOF
2528
2529
2530 ## ----------- ##
2531 ## Core tests. ##
2532 ## ----------- ##
2533
2534 _ACEOF
2535
2536
2537 # Keep a trace of the command line.
2538 # Strip out --no-create and --no-recursion so they do not pile up.
2539 # Strip out --silent because we don't want to record it for future runs.
2540 # Also quote any args containing shell meta-characters.
2541 # Make two passes to allow for proper duplicate-argument suppression.
2542 ac_configure_args=
2543 ac_configure_args0=
2544 ac_configure_args1=
2545 ac_must_keep_next=false
2546 for ac_pass in 1 2
2547 do
2548   for ac_arg
2549   do
2550     case $ac_arg in
2551     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2552     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2553     | -silent | --silent | --silen | --sile | --sil)
2554       continue ;;
2555     *\'*)
2556       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2557     esac
2558     case $ac_pass in
2559     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2560     2)
2561       as_fn_append ac_configure_args1 " '$ac_arg'"
2562       if test $ac_must_keep_next = true; then
2563         ac_must_keep_next=false # Got value, back to normal.
2564       else
2565         case $ac_arg in
2566           *=* | --config-cache | -C | -disable-* | --disable-* \
2567           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2568           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2569           | -with-* | --with-* | -without-* | --without-* | --x)
2570             case "$ac_configure_args0 " in
2571               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2572             esac
2573             ;;
2574           -* ) ac_must_keep_next=true ;;
2575         esac
2576       fi
2577       as_fn_append ac_configure_args " '$ac_arg'"
2578       ;;
2579     esac
2580   done
2581 done
2582 { ac_configure_args0=; unset ac_configure_args0;}
2583 { ac_configure_args1=; unset ac_configure_args1;}
2584
2585 # When interrupted or exit'd, cleanup temporary files, and complete
2586 # config.log.  We remove comments because anyway the quotes in there
2587 # would cause problems or look ugly.
2588 # WARNING: Use '\'' to represent an apostrophe within the trap.
2589 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2590 trap 'exit_status=$?
2591   # Save into config.log some information that might help in debugging.
2592   {
2593     echo
2594
2595     cat <<\_ASBOX
2596 ## ---------------- ##
2597 ## Cache variables. ##
2598 ## ---------------- ##
2599 _ASBOX
2600     echo
2601     # The following way of writing the cache mishandles newlines in values,
2602 (
2603   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2604     eval ac_val=\$$ac_var
2605     case $ac_val in #(
2606     *${as_nl}*)
2607       case $ac_var in #(
2608       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2610       esac
2611       case $ac_var in #(
2612       _ | IFS | as_nl) ;; #(
2613       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2614       *) { eval $ac_var=; unset $ac_var;} ;;
2615       esac ;;
2616     esac
2617   done
2618   (set) 2>&1 |
2619     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2620     *${as_nl}ac_space=\ *)
2621       sed -n \
2622         "s/'\''/'\''\\\\'\'''\''/g;
2623           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2624       ;; #(
2625     *)
2626       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2627       ;;
2628     esac |
2629     sort
2630 )
2631     echo
2632
2633     cat <<\_ASBOX
2634 ## ----------------- ##
2635 ## Output variables. ##
2636 ## ----------------- ##
2637 _ASBOX
2638     echo
2639     for ac_var in $ac_subst_vars
2640     do
2641       eval ac_val=\$$ac_var
2642       case $ac_val in
2643       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2644       esac
2645       $as_echo "$ac_var='\''$ac_val'\''"
2646     done | sort
2647     echo
2648
2649     if test -n "$ac_subst_files"; then
2650       cat <<\_ASBOX
2651 ## ------------------- ##
2652 ## File substitutions. ##
2653 ## ------------------- ##
2654 _ASBOX
2655       echo
2656       for ac_var in $ac_subst_files
2657       do
2658         eval ac_val=\$$ac_var
2659         case $ac_val in
2660         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2661         esac
2662         $as_echo "$ac_var='\''$ac_val'\''"
2663       done | sort
2664       echo
2665     fi
2666
2667     if test -s confdefs.h; then
2668       cat <<\_ASBOX
2669 ## ----------- ##
2670 ## confdefs.h. ##
2671 ## ----------- ##
2672 _ASBOX
2673       echo
2674       cat confdefs.h
2675       echo
2676     fi
2677     test "$ac_signal" != 0 &&
2678       $as_echo "$as_me: caught signal $ac_signal"
2679     $as_echo "$as_me: exit $exit_status"
2680   } >&5
2681   rm -f core *.core core.conftest.* &&
2682     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2683     exit $exit_status
2684 ' 0
2685 for ac_signal in 1 2 13 15; do
2686   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2687 done
2688 ac_signal=0
2689
2690 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2691 rm -f -r conftest* confdefs.h
2692
2693 $as_echo "/* confdefs.h */" > confdefs.h
2694
2695 # Predefined preprocessor variables.
2696
2697 cat >>confdefs.h <<_ACEOF
2698 #define PACKAGE_NAME "$PACKAGE_NAME"
2699 _ACEOF
2700
2701 cat >>confdefs.h <<_ACEOF
2702 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2703 _ACEOF
2704
2705 cat >>confdefs.h <<_ACEOF
2706 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2707 _ACEOF
2708
2709 cat >>confdefs.h <<_ACEOF
2710 #define PACKAGE_STRING "$PACKAGE_STRING"
2711 _ACEOF
2712
2713 cat >>confdefs.h <<_ACEOF
2714 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2715 _ACEOF
2716
2717 cat >>confdefs.h <<_ACEOF
2718 #define PACKAGE_URL "$PACKAGE_URL"
2719 _ACEOF
2720
2721
2722 # Let the site file select an alternate cache file if it wants to.
2723 # Prefer an explicitly selected file to automatically selected ones.
2724 ac_site_file1=NONE
2725 ac_site_file2=NONE
2726 if test -n "$CONFIG_SITE"; then
2727   ac_site_file1=$CONFIG_SITE
2728 elif test "x$prefix" != xNONE; then
2729   ac_site_file1=$prefix/share/config.site
2730   ac_site_file2=$prefix/etc/config.site
2731 else
2732   ac_site_file1=$ac_default_prefix/share/config.site
2733   ac_site_file2=$ac_default_prefix/etc/config.site
2734 fi
2735 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2736 do
2737   test "x$ac_site_file" = xNONE && continue
2738   if test -r "$ac_site_file"; then
2739     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2740 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2741     sed 's/^/| /' "$ac_site_file" >&5
2742     . "$ac_site_file"
2743   fi
2744 done
2745
2746 if test -r "$cache_file"; then
2747   # Some versions of bash will fail to source /dev/null (special
2748   # files actually), so we avoid doing that.
2749   if test -f "$cache_file"; then
2750     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2751 $as_echo "$as_me: loading cache $cache_file" >&6;}
2752     case $cache_file in
2753       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2754       *)                      . "./$cache_file";;
2755     esac
2756   fi
2757 else
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2759 $as_echo "$as_me: creating cache $cache_file" >&6;}
2760   >$cache_file
2761 fi
2762
2763 # Check that the precious variables saved in the cache have kept the same
2764 # value.
2765 ac_cache_corrupted=false
2766 for ac_var in $ac_precious_vars; do
2767   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2768   eval ac_new_set=\$ac_env_${ac_var}_set
2769   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2770   eval ac_new_val=\$ac_env_${ac_var}_value
2771   case $ac_old_set,$ac_new_set in
2772     set,)
2773       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2774 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2775       ac_cache_corrupted=: ;;
2776     ,set)
2777       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2778 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2779       ac_cache_corrupted=: ;;
2780     ,);;
2781     *)
2782       if test "x$ac_old_val" != "x$ac_new_val"; then
2783         # differences in whitespace do not lead to failure.
2784         ac_old_val_w=`echo x $ac_old_val`
2785         ac_new_val_w=`echo x $ac_new_val`
2786         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2787           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2788 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2789           ac_cache_corrupted=:
2790         else
2791           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2792 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2793           eval $ac_var=\$ac_old_val
2794         fi
2795         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2796 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2797         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2798 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2799       fi;;
2800   esac
2801   # Pass precious variables to config.status.
2802   if test "$ac_new_set" = set; then
2803     case $ac_new_val in
2804     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2805     *) ac_arg=$ac_var=$ac_new_val ;;
2806     esac
2807     case " $ac_configure_args " in
2808       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2809       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2810     esac
2811   fi
2812 done
2813 if $ac_cache_corrupted; then
2814   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2817 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2818   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2819 fi
2820 ## -------------------- ##
2821 ## Main body of script. ##
2822 ## -------------------- ##
2823
2824 ac_ext=c
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829
2830
2831
2832 am__api_version='1.11'
2833
2834 ac_aux_dir=
2835 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2836   for ac_t in install-sh install.sh shtool; do
2837     if test -f "$ac_dir/$ac_t"; then
2838       ac_aux_dir=$ac_dir
2839       ac_install_sh="$ac_aux_dir/$ac_t -c"
2840       break 2
2841     fi
2842   done
2843 done
2844 if test -z "$ac_aux_dir"; then
2845   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2846 fi
2847
2848 # These three variables are undocumented and unsupported,
2849 # and are intended to be withdrawn in a future Autoconf release.
2850 # They can cause serious problems if a builder's source tree is in a directory
2851 # whose full name contains unusual characters.
2852 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2853 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2854 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2855
2856
2857 # Find a good install program.  We prefer a C program (faster),
2858 # so one script is as good as another.  But avoid the broken or
2859 # incompatible versions:
2860 # SysV /etc/install, /usr/sbin/install
2861 # SunOS /usr/etc/install
2862 # IRIX /sbin/install
2863 # AIX /bin/install
2864 # AmigaOS /C/install, which installs bootblocks on floppy discs
2865 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2868 # OS/2's system install, which has a completely different semantic
2869 # ./install, which can be erroneously created by make from ./install.sh.
2870 # Reject install programs that cannot install multiple files.
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2872 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2873 if test -z "$INSTALL"; then
2874 if test "${ac_cv_path_install+set}" = set; then :
2875   $as_echo_n "(cached) " >&6
2876 else
2877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880   IFS=$as_save_IFS
2881   test -z "$as_dir" && as_dir=.
2882     # Account for people who put trailing slashes in PATH elements.
2883 case $as_dir/ in #((
2884   ./ | .// | /[cC]/* | \
2885   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2886   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2887   /usr/ucb/* ) ;;
2888   *)
2889     # OSF1 and SCO ODT 3.0 have their own names for install.
2890     # Don't use installbsd from OSF since it installs stuff as root
2891     # by default.
2892     for ac_prog in ginstall scoinst install; do
2893       for ac_exec_ext in '' $ac_executable_extensions; do
2894         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2895           if test $ac_prog = install &&
2896             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2897             # AIX install.  It has an incompatible calling convention.
2898             :
2899           elif test $ac_prog = install &&
2900             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2901             # program-specific install script used by HP pwplus--don't use.
2902             :
2903           else
2904             rm -rf conftest.one conftest.two conftest.dir
2905             echo one > conftest.one
2906             echo two > conftest.two
2907             mkdir conftest.dir
2908             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2909               test -s conftest.one && test -s conftest.two &&
2910               test -s conftest.dir/conftest.one &&
2911               test -s conftest.dir/conftest.two
2912             then
2913               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2914               break 3
2915             fi
2916           fi
2917         fi
2918       done
2919     done
2920     ;;
2921 esac
2922
2923   done
2924 IFS=$as_save_IFS
2925
2926 rm -rf conftest.one conftest.two conftest.dir
2927
2928 fi
2929   if test "${ac_cv_path_install+set}" = set; then
2930     INSTALL=$ac_cv_path_install
2931   else
2932     # As a last resort, use the slow shell script.  Don't cache a
2933     # value for INSTALL within a source directory, because that will
2934     # break other packages using the cache if that directory is
2935     # removed, or if the value is a relative name.
2936     INSTALL=$ac_install_sh
2937   fi
2938 fi
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2940 $as_echo "$INSTALL" >&6; }
2941
2942 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2943 # It thinks the first close brace ends the variable substitution.
2944 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2945
2946 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2947
2948 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2949
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2951 $as_echo_n "checking whether build environment is sane... " >&6; }
2952 # Just in case
2953 sleep 1
2954 echo timestamp > conftest.file
2955 # Reject unsafe characters in $srcdir or the absolute working directory
2956 # name.  Accept space and tab only in the latter.
2957 am_lf='
2958 '
2959 case `pwd` in
2960   *[\\\"\#\$\&\'\`$am_lf]*)
2961     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2962 esac
2963 case $srcdir in
2964   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2965     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2966 esac
2967
2968 # Do `set' in a subshell so we don't clobber the current shell's
2969 # arguments.  Must try -L first in case configure is actually a
2970 # symlink; some systems play weird games with the mod time of symlinks
2971 # (eg FreeBSD returns the mod time of the symlink's containing
2972 # directory).
2973 if (
2974    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2975    if test "$*" = "X"; then
2976       # -L didn't work.
2977       set X `ls -t "$srcdir/configure" conftest.file`
2978    fi
2979    rm -f conftest.file
2980    if test "$*" != "X $srcdir/configure conftest.file" \
2981       && test "$*" != "X conftest.file $srcdir/configure"; then
2982
2983       # If neither matched, then we have a broken ls.  This can happen
2984       # if, for instance, CONFIG_SHELL is bash and it inherits a
2985       # broken ls alias from the environment.  This has actually
2986       # happened.  Such a system could not be considered "sane".
2987       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2988 alias in your environment" "$LINENO" 5
2989    fi
2990
2991    test "$2" = conftest.file
2992    )
2993 then
2994    # Ok.
2995    :
2996 else
2997    as_fn_error "newly created file is older than distributed files!
2998 Check your system clock" "$LINENO" 5
2999 fi
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001 $as_echo "yes" >&6; }
3002 test "$program_prefix" != NONE &&
3003   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3004 # Use a double $ so make ignores it.
3005 test "$program_suffix" != NONE &&
3006   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3007 # Double any \ or $.
3008 # By default was `s,x,x', remove it if useless.
3009 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3010 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3011
3012 # expand $ac_aux_dir to an absolute path
3013 am_aux_dir=`cd $ac_aux_dir && pwd`
3014
3015 if test x"${MISSING+set}" != xset; then
3016   case $am_aux_dir in
3017   *\ * | *\     *)
3018     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3019   *)
3020     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3021   esac
3022 fi
3023 # Use eval to expand $SHELL
3024 if eval "$MISSING --run true"; then
3025   am_missing_run="$MISSING --run "
3026 else
3027   am_missing_run=
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3029 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3030 fi
3031
3032 if test x"${install_sh}" != xset; then
3033   case $am_aux_dir in
3034   *\ * | *\     *)
3035     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3036   *)
3037     install_sh="\${SHELL} $am_aux_dir/install-sh"
3038   esac
3039 fi
3040
3041 # Installed binaries are usually stripped using `strip' when the user
3042 # run `make install-strip'.  However `strip' might not be the right
3043 # tool to use in cross-compilation environments, therefore Automake
3044 # will honor the `STRIP' environment variable to overrule this program.
3045 if test "$cross_compiling" != no; then
3046   if test -n "$ac_tool_prefix"; then
3047   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3048 set dummy ${ac_tool_prefix}strip; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_STRIP+set}" = set; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   if test -n "$STRIP"; then
3055   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060   IFS=$as_save_IFS
3061   test -z "$as_dir" && as_dir=.
3062     for ac_exec_ext in '' $ac_executable_extensions; do
3063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066     break 2
3067   fi
3068 done
3069   done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 STRIP=$ac_cv_prog_STRIP
3075 if test -n "$STRIP"; then
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3077 $as_echo "$STRIP" >&6; }
3078 else
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084 fi
3085 if test -z "$ac_cv_prog_STRIP"; then
3086   ac_ct_STRIP=$STRIP
3087   # Extract the first word of "strip", so it can be a program name with args.
3088 set dummy strip; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   if test -n "$ac_ct_STRIP"; then
3095   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100   IFS=$as_save_IFS
3101   test -z "$as_dir" && as_dir=.
3102     for ac_exec_ext in '' $ac_executable_extensions; do
3103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104     ac_cv_prog_ac_ct_STRIP="strip"
3105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106     break 2
3107   fi
3108 done
3109   done
3110 IFS=$as_save_IFS
3111
3112 fi
3113 fi
3114 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3115 if test -n "$ac_ct_STRIP"; then
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3117 $as_echo "$ac_ct_STRIP" >&6; }
3118 else
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3122
3123   if test "x$ac_ct_STRIP" = x; then
3124     STRIP=":"
3125   else
3126     case $cross_compiling:$ac_tool_warned in
3127 yes:)
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3131 esac
3132     STRIP=$ac_ct_STRIP
3133   fi
3134 else
3135   STRIP="$ac_cv_prog_STRIP"
3136 fi
3137
3138 fi
3139 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3140
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3142 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3143 if test -z "$MKDIR_P"; then
3144   if test "${ac_cv_path_mkdir+set}" = set; then :
3145   $as_echo_n "(cached) " >&6
3146 else
3147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152     for ac_prog in mkdir gmkdir; do
3153          for ac_exec_ext in '' $ac_executable_extensions; do
3154            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3155            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3156              'mkdir (GNU coreutils) '* | \
3157              'mkdir (coreutils) '* | \
3158              'mkdir (fileutils) '4.1*)
3159                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3160                break 3;;
3161            esac
3162          done
3163        done
3164   done
3165 IFS=$as_save_IFS
3166
3167 fi
3168
3169   if test "${ac_cv_path_mkdir+set}" = set; then
3170     MKDIR_P="$ac_cv_path_mkdir -p"
3171   else
3172     # As a last resort, use the slow shell script.  Don't cache a
3173     # value for MKDIR_P within a source directory, because that will
3174     # break other packages using the cache if that directory is
3175     # removed, or if the value is a relative name.
3176     test -d ./--version && rmdir ./--version
3177     MKDIR_P="$ac_install_sh -d"
3178   fi
3179 fi
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3181 $as_echo "$MKDIR_P" >&6; }
3182
3183 mkdir_p="$MKDIR_P"
3184 case $mkdir_p in
3185   [\\/$]* | ?:[\\/]*) ;;
3186   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3187 esac
3188
3189 for ac_prog in gawk mawk nawk awk
3190 do
3191   # Extract the first word of "$ac_prog", so it can be a program name with args.
3192 set dummy $ac_prog; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if test "${ac_cv_prog_AWK+set}" = set; then :
3196   $as_echo_n "(cached) " >&6
3197 else
3198   if test -n "$AWK"; then
3199   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204   IFS=$as_save_IFS
3205   test -z "$as_dir" && as_dir=.
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208     ac_cv_prog_AWK="$ac_prog"
3209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210     break 2
3211   fi
3212 done
3213   done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 AWK=$ac_cv_prog_AWK
3219 if test -n "$AWK"; then
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3221 $as_echo "$AWK" >&6; }
3222 else
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227
3228   test -n "$AWK" && break
3229 done
3230
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3232 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3233 set x ${MAKE-make}
3234 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3235 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3236   $as_echo_n "(cached) " >&6
3237 else
3238   cat >conftest.make <<\_ACEOF
3239 SHELL = /bin/sh
3240 all:
3241         @echo '@@@%%%=$(MAKE)=@@@%%%'
3242 _ACEOF
3243 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3244 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3245   *@@@%%%=?*=@@@%%%*)
3246     eval ac_cv_prog_make_${ac_make}_set=yes;;
3247   *)
3248     eval ac_cv_prog_make_${ac_make}_set=no;;
3249 esac
3250 rm -f conftest.make
3251 fi
3252 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3255   SET_MAKE=
3256 else
3257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259   SET_MAKE="MAKE=${MAKE-make}"
3260 fi
3261
3262 rm -rf .tst 2>/dev/null
3263 mkdir .tst 2>/dev/null
3264 if test -d .tst; then
3265   am__leading_dot=.
3266 else
3267   am__leading_dot=_
3268 fi
3269 rmdir .tst 2>/dev/null
3270
3271 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3272   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3273   # is not polluted with repeated "-I."
3274   am__isrc=' -I$(srcdir)'
3275   # test to see if srcdir already configured
3276   if test -f $srcdir/config.status; then
3277     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3278   fi
3279 fi
3280
3281 # test whether we have cygpath
3282 if test -z "$CYGPATH_W"; then
3283   if (cygpath --version) >/dev/null 2>/dev/null; then
3284     CYGPATH_W='cygpath -w'
3285   else
3286     CYGPATH_W=echo
3287   fi
3288 fi
3289
3290
3291 # Define the identity of the package.
3292  PACKAGE='mpfr'
3293  VERSION='2.4.2'
3294
3295
3296 # Some tools Automake needs.
3297
3298 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3299
3300
3301 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3302
3303
3304 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3305
3306
3307 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3308
3309
3310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3311
3312 # We need awk for the "check" target.  The system "awk" is bad on
3313 # some platforms.
3314 # Always define AMTAR for backward compatibility.
3315
3316 AMTAR=${AMTAR-"${am_missing_run}tar"}
3317
3318 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3319
3320
3321
3322
3323
3324
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
3326 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
3327     # Check whether --enable-maintainer-mode was given.
3328 if test "${enable_maintainer_mode+set}" = set; then :
3329   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3330 else
3331   USE_MAINTAINER_MODE=yes
3332 fi
3333
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3335 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3336    if test $USE_MAINTAINER_MODE = yes; then
3337   MAINTAINER_MODE_TRUE=
3338   MAINTAINER_MODE_FALSE='#'
3339 else
3340   MAINTAINER_MODE_TRUE='#'
3341   MAINTAINER_MODE_FALSE=
3342 fi
3343
3344   MAINT=$MAINTAINER_MODE_TRUE
3345
3346
3347
3348
3349
3350
3351 test_CFLAGS=${CFLAGS+set}
3352
3353 # Make sure we can run config.sub.
3354 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3355   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3356
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3358 $as_echo_n "checking build system type... " >&6; }
3359 if test "${ac_cv_build+set}" = set; then :
3360   $as_echo_n "(cached) " >&6
3361 else
3362   ac_build_alias=$build_alias
3363 test "x$ac_build_alias" = x &&
3364   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3365 test "x$ac_build_alias" = x &&
3366   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3367 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3368   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3369
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3372 $as_echo "$ac_cv_build" >&6; }
3373 case $ac_cv_build in
3374 *-*-*) ;;
3375 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3376 esac
3377 build=$ac_cv_build
3378 ac_save_IFS=$IFS; IFS='-'
3379 set x $ac_cv_build
3380 shift
3381 build_cpu=$1
3382 build_vendor=$2
3383 shift; shift
3384 # Remember, the first character of IFS is used to create $*,
3385 # except with old shells:
3386 build_os=$*
3387 IFS=$ac_save_IFS
3388 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3389
3390
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3392 $as_echo_n "checking host system type... " >&6; }
3393 if test "${ac_cv_host+set}" = set; then :
3394   $as_echo_n "(cached) " >&6
3395 else
3396   if test "x$host_alias" = x; then
3397   ac_cv_host=$ac_cv_build
3398 else
3399   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3400     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3401 fi
3402
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3405 $as_echo "$ac_cv_host" >&6; }
3406 case $ac_cv_host in
3407 *-*-*) ;;
3408 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3409 esac
3410 host=$ac_cv_host
3411 ac_save_IFS=$IFS; IFS='-'
3412 set x $ac_cv_host
3413 shift
3414 host_cpu=$1
3415 host_vendor=$2
3416 shift; shift
3417 # Remember, the first character of IFS is used to create $*,
3418 # except with old shells:
3419 host_os=$*
3420 IFS=$ac_save_IFS
3421 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3422
3423
3424
3425
3426 unset gmp_lib_path GMP_CFLAGS GMP_CC
3427
3428 # Check whether --with-gmp_include was given.
3429 if test "${with_gmp_include+set}" = set; then :
3430   withval=$with_gmp_include; CPPFLAGS="$CPPFLAGS -I$withval"
3431 fi
3432
3433
3434 # Check whether --with-gmp_lib was given.
3435 if test "${with_gmp_lib+set}" = set; then :
3436   withval=$with_gmp_lib;
3437    LDFLAGS="$LDFLAGS -L$withval"
3438    gmp_lib_path="$withval"
3439
3440 fi
3441
3442
3443 # Check whether --with-gmp was given.
3444 if test "${with_gmp+set}" = set; then :
3445   withval=$with_gmp;
3446    if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then
3447       CPPFLAGS="$CPPFLAGS -I$withval/include"
3448       LDFLAGS="$LDFLAGS -L$withval/lib"
3449       gmp_lib_path="$withval/lib"
3450    else
3451       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
3454 See \`config.log' for more details." "$LINENO" 5; }
3455    fi
3456
3457 fi
3458
3459
3460
3461 # Check whether --with-gmp_build was given.
3462 if test "${with_gmp_build+set}" = set; then :
3463   withval=$with_gmp_build;
3464    if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then
3465       CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune"
3466       LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune/"
3467       gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune"
3468       if test -r $withval/Makefile ; then
3469          GMP_CFLAGS=`grep -w "CFLAGS =" $withval/Makefile | sed 's/CFLAGS = //'`
3470          GMP_CC=`grep -w "CC =" $withval/Makefile | sed 's/CC = //'`
3471       fi
3472       use_gmp_build=yes
3473    else
3474       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error "Do not use --with-gmp-build and other --with-gmp options simultaneously.
3477 See \`config.log' for more details." "$LINENO" 5; }
3478    fi
3479
3480 fi
3481
3482
3483
3484 # Check whether --with-mulhigh_size was given.
3485 if test "${with_mulhigh_size+set}" = set; then :
3486   withval=$with_mulhigh_size;
3487 cat >>confdefs.h <<_ACEOF
3488 #define MPFR_MULHIGH_SIZE $withval
3489 _ACEOF
3490
3491 fi
3492
3493
3494 # Check whether --enable-assert was given.
3495 if test "${enable_assert+set}" = set; then :
3496   enableval=$enable_assert;  case $enableval in
3497       yes)
3498 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3499  ;;
3500       no)  ;;
3501       full)
3502 $as_echo "#define WANT_ASSERT 2" >>confdefs.h
3503  ;;
3504       *) as_fn_error "bad value for --enable-assert: yes, no or full" "$LINENO" 5 ;;
3505      esac
3506 fi
3507
3508 # Check whether --enable-logging was given.
3509 if test "${enable_logging+set}" = set; then :
3510   enableval=$enable_logging;  disable_gcc_format_warning=yes
3511      case $enableval in
3512       yes)
3513 $as_echo "#define MPFR_USE_LOGGING 1" >>confdefs.h
3514  ;;
3515       no)  ;;
3516       *)   as_fn_error "bad value for --enable-logging: yes or no" "$LINENO" 5 ;;
3517      esac
3518 fi
3519
3520 # Check whether --enable-thread-safe was given.
3521 if test "${enable_thread_safe+set}" = set; then :
3522   enableval=$enable_thread_safe;  case $enableval in
3523       yes)
3524 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
3525  ;;
3526       no)  ;;
3527       *)   as_fn_error "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;;
3528      esac
3529 fi
3530
3531 # Check whether --enable-warnings was given.
3532 if test "${enable_warnings+set}" = set; then :
3533   enableval=$enable_warnings;  case $enableval in
3534       yes)
3535 $as_echo "#define MPFR_USE_WARNINGS 1" >>confdefs.h
3536  ;;
3537       no)  ;;
3538       *)   as_fn_error "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;;
3539      esac
3540 fi
3541
3542
3543 # Check whether --enable-tests-timeout was given.
3544 if test "${enable_tests_timeout+set}" = set; then :
3545   enableval=$enable_tests_timeout;  case $enableval in
3546       no)   ;;
3547       yes)
3548 $as_echo "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h
3549  ;;
3550       [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
3551
3552 cat >>confdefs.h <<_ACEOF
3553 #define MPFR_TESTS_TIMEOUT $enableval
3554 _ACEOF
3555  ;;
3556       *)    as_fn_error "bad value for --enable-tests-timeout" "$LINENO" 5 ;;
3557      esac
3558 fi
3559
3560
3561
3562
3563 if test -n "$CFLAGS" || test -n "$CC" ; then
3564  user_redefine_cc=yes
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3567 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3568 if test "${ac_cv_path_GREP+set}" = set; then :
3569   $as_echo_n "(cached) " >&6
3570 else
3571   if test -z "$GREP"; then
3572   ac_path_GREP_found=false
3573   # Loop through the user's path and test for each of PROGNAME-LIST
3574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3576 do
3577   IFS=$as_save_IFS
3578   test -z "$as_dir" && as_dir=.
3579     for ac_prog in grep ggrep; do
3580     for ac_exec_ext in '' $ac_executable_extensions; do
3581       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3582       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3583 # Check for GNU ac_path_GREP and select it if it is found.
3584   # Check for GNU $ac_path_GREP
3585 case `"$ac_path_GREP" --version 2>&1` in
3586 *GNU*)
3587   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3588 *)
3589   ac_count=0
3590   $as_echo_n 0123456789 >"conftest.in"
3591   while :
3592   do
3593     cat "conftest.in" "conftest.in" >"conftest.tmp"
3594     mv "conftest.tmp" "conftest.in"
3595     cp "conftest.in" "conftest.nl"
3596     $as_echo 'GREP' >> "conftest.nl"
3597     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3598     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3599     as_fn_arith $ac_count + 1 && ac_count=$as_val
3600     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3601       # Best one so far, save it but keep looking for a better one
3602       ac_cv_path_GREP="$ac_path_GREP"
3603       ac_path_GREP_max=$ac_count
3604     fi
3605     # 10*(2^10) chars as input seems more than enough
3606     test $ac_count -gt 10 && break
3607   done
3608   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3609 esac
3610
3611       $ac_path_GREP_found && break 3
3612     done
3613   done
3614   done
3615 IFS=$as_save_IFS
3616   if test -z "$ac_cv_path_GREP"; then
3617     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3618   fi
3619 else
3620   ac_cv_path_GREP=$GREP
3621 fi
3622
3623 fi
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3625 $as_echo "$ac_cv_path_GREP" >&6; }
3626  GREP="$ac_cv_path_GREP"
3627
3628
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3630 $as_echo_n "checking for egrep... " >&6; }
3631 if test "${ac_cv_path_EGREP+set}" = set; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3635    then ac_cv_path_EGREP="$GREP -E"
3636    else
3637      if test -z "$EGREP"; then
3638   ac_path_EGREP_found=false
3639   # Loop through the user's path and test for each of PROGNAME-LIST
3640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3642 do
3643   IFS=$as_save_IFS
3644   test -z "$as_dir" && as_dir=.
3645     for ac_prog in egrep; do
3646     for ac_exec_ext in '' $ac_executable_extensions; do
3647       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3648       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3649 # Check for GNU ac_path_EGREP and select it if it is found.
3650   # Check for GNU $ac_path_EGREP
3651 case `"$ac_path_EGREP" --version 2>&1` in
3652 *GNU*)
3653   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3654 *)
3655   ac_count=0
3656   $as_echo_n 0123456789 >"conftest.in"
3657   while :
3658   do
3659     cat "conftest.in" "conftest.in" >"conftest.tmp"
3660     mv "conftest.tmp" "conftest.in"
3661     cp "conftest.in" "conftest.nl"
3662     $as_echo 'EGREP' >> "conftest.nl"
3663     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3664     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3665     as_fn_arith $ac_count + 1 && ac_count=$as_val
3666     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3667       # Best one so far, save it but keep looking for a better one
3668       ac_cv_path_EGREP="$ac_path_EGREP"
3669       ac_path_EGREP_max=$ac_count
3670     fi
3671     # 10*(2^10) chars as input seems more than enough
3672     test $ac_count -gt 10 && break
3673   done
3674   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3675 esac
3676
3677       $ac_path_EGREP_found && break 3
3678     done
3679   done
3680   done
3681 IFS=$as_save_IFS
3682   if test -z "$ac_cv_path_EGREP"; then
3683     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3684   fi
3685 else
3686   ac_cv_path_EGREP=$EGREP
3687 fi
3688
3689    fi
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3692 $as_echo "$ac_cv_path_EGREP" >&6; }
3693  EGREP="$ac_cv_path_EGREP"
3694
3695
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3697 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3698 if test "${ac_cv_path_SED+set}" = set; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3702      for ac_i in 1 2 3 4 5 6 7; do
3703        ac_script="$ac_script$as_nl$ac_script"
3704      done
3705      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3706      { ac_script=; unset ac_script;}
3707      if test -z "$SED"; then
3708   ac_path_SED_found=false
3709   # Loop through the user's path and test for each of PROGNAME-LIST
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715     for ac_prog in sed gsed; do
3716     for ac_exec_ext in '' $ac_executable_extensions; do
3717       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3718       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3719 # Check for GNU ac_path_SED and select it if it is found.
3720   # Check for GNU $ac_path_SED
3721 case `"$ac_path_SED" --version 2>&1` in
3722 *GNU*)
3723   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3724 *)
3725   ac_count=0
3726   $as_echo_n 0123456789 >"conftest.in"
3727   while :
3728   do
3729     cat "conftest.in" "conftest.in" >"conftest.tmp"
3730     mv "conftest.tmp" "conftest.in"
3731     cp "conftest.in" "conftest.nl"
3732     $as_echo '' >> "conftest.nl"
3733     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735     as_fn_arith $ac_count + 1 && ac_count=$as_val
3736     if test $ac_count -gt ${ac_path_SED_max-0}; then
3737       # Best one so far, save it but keep looking for a better one
3738       ac_cv_path_SED="$ac_path_SED"
3739       ac_path_SED_max=$ac_count
3740     fi
3741     # 10*(2^10) chars as input seems more than enough
3742     test $ac_count -gt 10 && break
3743   done
3744   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 esac
3746
3747       $ac_path_SED_found && break 3
3748     done
3749   done
3750   done
3751 IFS=$as_save_IFS
3752   if test -z "$ac_cv_path_SED"; then
3753     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3754   fi
3755 else
3756   ac_cv_path_SED=$SED
3757 fi
3758
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3761 $as_echo "$ac_cv_path_SED" >&6; }
3762  SED="$ac_cv_path_SED"
3763   rm -f conftest.sed
3764
3765
3766
3767 if test -z "$user_redefine_cc" && test "$cross_compiling" != yes ; then
3768
3769 if test -z "$GMP_CC$GMP_CFLAGS" ; then
3770    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
3771 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
3772    GMP_CC=__GMP_CC
3773    GMP_CFLAGS=__GMP_CFLAGS
3774    for cpp in /lib/cpp gcc cc c99
3775    do
3776      test $cpp = /lib/cpp || cpp="$cpp -E"
3777      echo foo > conftest.c
3778      if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
3779        # Get CC
3780        echo "#include \"gmp.h\"" >  conftest.c
3781        echo "MPFR_OPTION __GMP_CC"           >> conftest.c
3782        GMP_CC=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g' | $SED -e 's/"//g'`
3783        # Get CFLAGS
3784        echo "#include \"gmp.h\"" >  conftest.c
3785        echo "MPFR_OPTION __GMP_CFLAGS"           >> conftest.c
3786        GMP_CFLAGS=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g'| $SED -e 's/"//g'`
3787        break
3788      fi
3789    done
3790    rm -f conftest*
3791    if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then
3792       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3794       GMP_CFLAGS=
3795       GMP_CC=
3796    else
3797       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
3798 $as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
3799    fi
3800 fi
3801
3802 if test -n "$GMP_CC$GMP_CFLAGS" ; then
3803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
3804 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
3805    echo "int main (void) { return 0; }" > conftest.c
3806    if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
3807      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3808 $as_echo "yes" >&6; }
3809      CFLAGS=$GMP_CFLAGS
3810      CC=$GMP_CC
3811    else
3812      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814    fi
3815    rm -f conftest*
3816 fi
3817
3818 fi
3819
3820
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 if test -n "$ac_tool_prefix"; then
3827   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if test "${ac_cv_prog_CC+set}" = set; then :
3832   $as_echo_n "(cached) " >&6
3833 else
3834   if test -n "$CC"; then
3835   ac_cv_prog_CC="$CC" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840   IFS=$as_save_IFS
3841   test -z "$as_dir" && as_dir=.
3842     for ac_exec_ext in '' $ac_executable_extensions; do
3843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3844     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846     break 2
3847   fi
3848 done
3849   done
3850 IFS=$as_save_IFS
3851
3852 fi
3853 fi
3854 CC=$ac_cv_prog_CC
3855 if test -n "$CC"; then
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 $as_echo "$CC" >&6; }
3858 else
3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3861 fi
3862
3863
3864 fi
3865 if test -z "$ac_cv_prog_CC"; then
3866   ac_ct_CC=$CC
3867   # Extract the first word of "gcc", so it can be a program name with args.
3868 set dummy gcc; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3872   $as_echo_n "(cached) " >&6
3873 else
3874   if test -n "$ac_ct_CC"; then
3875   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880   IFS=$as_save_IFS
3881   test -z "$as_dir" && as_dir=.
3882     for ac_exec_ext in '' $ac_executable_extensions; do
3883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3884     ac_cv_prog_ac_ct_CC="gcc"
3885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886     break 2
3887   fi
3888 done
3889   done
3890 IFS=$as_save_IFS
3891
3892 fi
3893 fi
3894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3895 if test -n "$ac_ct_CC"; then
3896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3897 $as_echo "$ac_ct_CC" >&6; }
3898 else
3899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 fi
3902
3903   if test "x$ac_ct_CC" = x; then
3904     CC=""
3905   else
3906     case $cross_compiling:$ac_tool_warned in
3907 yes:)
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910 ac_tool_warned=yes ;;
3911 esac
3912     CC=$ac_ct_CC
3913   fi
3914 else
3915   CC="$ac_cv_prog_CC"
3916 fi
3917
3918 if test -z "$CC"; then
3919           if test -n "$ac_tool_prefix"; then
3920     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}cc; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_prog_CC+set}" = set; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   if test -n "$CC"; then
3928   ac_cv_prog_CC="$CC" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935     for ac_exec_ext in '' $ac_executable_extensions; do
3936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937     ac_cv_prog_CC="${ac_tool_prefix}cc"
3938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942   done
3943 IFS=$as_save_IFS
3944
3945 fi
3946 fi
3947 CC=$ac_cv_prog_CC
3948 if test -n "$CC"; then
3949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 $as_echo "$CC" >&6; }
3951 else
3952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 fi
3955
3956
3957   fi
3958 fi
3959 if test -z "$CC"; then
3960   # Extract the first word of "cc", so it can be a program name with args.
3961 set dummy cc; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if test "${ac_cv_prog_CC+set}" = set; then :
3965   $as_echo_n "(cached) " >&6
3966 else
3967   if test -n "$CC"; then
3968   ac_cv_prog_CC="$CC" # Let the user override the test.
3969 else
3970   ac_prog_rejected=no
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976     for ac_exec_ext in '' $ac_executable_extensions; do
3977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3979        ac_prog_rejected=yes
3980        continue
3981      fi
3982     ac_cv_prog_CC="cc"
3983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984     break 2
3985   fi
3986 done
3987   done
3988 IFS=$as_save_IFS
3989
3990 if test $ac_prog_rejected = yes; then
3991   # We found a bogon in the path, so make sure we never use it.
3992   set dummy $ac_cv_prog_CC
3993   shift
3994   if test $# != 0; then
3995     # We chose a different compiler from the bogus one.
3996     # However, it has the same basename, so the bogon will be chosen
3997     # first if we set CC to just the basename; use the full file name.
3998     shift
3999     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4000   fi
4001 fi
4002 fi
4003 fi
4004 CC=$ac_cv_prog_CC
4005 if test -n "$CC"; then
4006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4007 $as_echo "$CC" >&6; }
4008 else
4009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4011 fi
4012
4013
4014 fi
4015 if test -z "$CC"; then
4016   if test -n "$ac_tool_prefix"; then
4017   for ac_prog in cl.exe
4018   do
4019     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_prog_CC+set}" = set; then :
4024   $as_echo_n "(cached) " >&6
4025 else
4026   if test -n "$CC"; then
4027   ac_cv_prog_CC="$CC" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032   IFS=$as_save_IFS
4033   test -z "$as_dir" && as_dir=.
4034     for ac_exec_ext in '' $ac_executable_extensions; do
4035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038     break 2
4039   fi
4040 done
4041   done
4042 IFS=$as_save_IFS
4043
4044 fi
4045 fi
4046 CC=$ac_cv_prog_CC
4047 if test -n "$CC"; then
4048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4049 $as_echo "$CC" >&6; }
4050 else
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4053 fi
4054
4055
4056     test -n "$CC" && break
4057   done
4058 fi
4059 if test -z "$CC"; then
4060   ac_ct_CC=$CC
4061   for ac_prog in cl.exe
4062 do
4063   # Extract the first word of "$ac_prog", so it can be a program name with args.
4064 set dummy $ac_prog; ac_word=$2
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 $as_echo_n "checking for $ac_word... " >&6; }
4067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070   if test -n "$ac_ct_CC"; then
4071   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076   IFS=$as_save_IFS
4077   test -z "$as_dir" && as_dir=.
4078     for ac_exec_ext in '' $ac_executable_extensions; do
4079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080     ac_cv_prog_ac_ct_CC="$ac_prog"
4081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082     break 2
4083   fi
4084 done
4085   done
4086 IFS=$as_save_IFS
4087
4088 fi
4089 fi
4090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091 if test -n "$ac_ct_CC"; then
4092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093 $as_echo "$ac_ct_CC" >&6; }
4094 else
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097 fi
4098
4099
4100   test -n "$ac_ct_CC" && break
4101 done
4102
4103   if test "x$ac_ct_CC" = x; then
4104     CC=""
4105   else
4106     case $cross_compiling:$ac_tool_warned in
4107 yes:)
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4110 ac_tool_warned=yes ;;
4111 esac
4112     CC=$ac_ct_CC
4113   fi
4114 fi
4115
4116 fi
4117
4118
4119 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4121 as_fn_error "no acceptable C compiler found in \$PATH
4122 See \`config.log' for more details." "$LINENO" 5; }
4123
4124 # Provide some information about the compiler.
4125 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4126 set X $ac_compile
4127 ac_compiler=$2
4128 for ac_option in --version -v -V -qversion; do
4129   { { ac_try="$ac_compiler $ac_option >&5"
4130 case "(($ac_try" in
4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132   *) ac_try_echo=$ac_try;;
4133 esac
4134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4137   ac_status=$?
4138   if test -s conftest.err; then
4139     sed '10a\
4140 ... rest of stderr output deleted ...
4141          10q' conftest.err >conftest.er1
4142     cat conftest.er1 >&5
4143     rm -f conftest.er1 conftest.err
4144   fi
4145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146   test $ac_status = 0; }
4147 done
4148
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h.  */
4151 #include <stdio.h>
4152 int
4153 main ()
4154 {
4155 FILE *f = fopen ("conftest.out", "w");
4156  return ferror (f) || fclose (f) != 0;
4157
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 ac_clean_files_save=$ac_clean_files
4163 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4164 # Try to create an executable without -o first, disregard a.out.
4165 # It will help us diagnose broken compilers, and finding out an intuition
4166 # of exeext.
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4168 $as_echo_n "checking for C compiler default output file name... " >&6; }
4169 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4170
4171 # The possible output files:
4172 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4173
4174 ac_rmfiles=
4175 for ac_file in $ac_files
4176 do
4177   case $ac_file in
4178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4179     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4180   esac
4181 done
4182 rm -f $ac_rmfiles
4183
4184 if { { ac_try="$ac_link_default"
4185 case "(($ac_try" in
4186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187   *) ac_try_echo=$ac_try;;
4188 esac
4189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4190 $as_echo "$ac_try_echo"; } >&5
4191   (eval "$ac_link_default") 2>&5
4192   ac_status=$?
4193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4194   test $ac_status = 0; }; then :
4195   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4197 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4198 # so that the user can short-circuit this test for compilers unknown to
4199 # Autoconf.
4200 for ac_file in $ac_files ''
4201 do
4202   test -f "$ac_file" || continue
4203   case $ac_file in
4204     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4205         ;;
4206     [ab].out )
4207         # We found the default executable, but exeext='' is most
4208         # certainly right.
4209         break;;
4210     *.* )
4211         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4212         then :; else
4213            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4214         fi
4215         # We set ac_cv_exeext here because the later test for it is not
4216         # safe: cross compilers may not add the suffix if given an `-o'
4217         # argument, so we may need to know it at that point already.
4218         # Even if this section looks crufty: it has the advantage of
4219         # actually working.
4220         break;;
4221     * )
4222         break;;
4223   esac
4224 done
4225 test "$ac_cv_exeext" = no && ac_cv_exeext=
4226
4227 else
4228   ac_file=''
4229 fi
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4231 $as_echo "$ac_file" >&6; }
4232 if test -z "$ac_file"; then :
4233   $as_echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4238 { as_fn_set_status 77
4239 as_fn_error "C compiler cannot create executables
4240 See \`config.log' for more details." "$LINENO" 5; }; }
4241 fi
4242 ac_exeext=$ac_cv_exeext
4243
4244 # Check that the compiler produces executables we can run.  If not, either
4245 # the compiler is broken, or we cross compile.
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4247 $as_echo_n "checking whether the C compiler works... " >&6; }
4248 # If not cross compiling, check that we can run a simple program.
4249 if test "$cross_compiling" != yes; then
4250   if { ac_try='./$ac_file'
4251   { { case "(($ac_try" in
4252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253   *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257   (eval "$ac_try") 2>&5
4258   ac_status=$?
4259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260   test $ac_status = 0; }; }; then
4261     cross_compiling=no
4262   else
4263     if test "$cross_compiling" = maybe; then
4264         cross_compiling=yes
4265     else
4266         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4268 as_fn_error "cannot run C compiled programs.
4269 If you meant to cross compile, use \`--host'.
4270 See \`config.log' for more details." "$LINENO" 5; }
4271     fi
4272   fi
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4275 $as_echo "yes" >&6; }
4276
4277 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4278 ac_clean_files=$ac_clean_files_save
4279 # Check that the compiler produces executables we can run.  If not, either
4280 # the compiler is broken, or we cross compile.
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4282 $as_echo_n "checking whether we are cross compiling... " >&6; }
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4284 $as_echo "$cross_compiling" >&6; }
4285
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4287 $as_echo_n "checking for suffix of executables... " >&6; }
4288 if { { ac_try="$ac_link"
4289 case "(($ac_try" in
4290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291   *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295   (eval "$ac_link") 2>&5
4296   ac_status=$?
4297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298   test $ac_status = 0; }; then :
4299   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4300 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4301 # work properly (i.e., refer to `conftest.exe'), while it won't with
4302 # `rm'.
4303 for ac_file in conftest.exe conftest conftest.*; do
4304   test -f "$ac_file" || continue
4305   case $ac_file in
4306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4307     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4308           break;;
4309     * ) break;;
4310   esac
4311 done
4312 else
4313   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 as_fn_error "cannot compute suffix of executables: cannot compile and link
4316 See \`config.log' for more details." "$LINENO" 5; }
4317 fi
4318 rm -f conftest$ac_cv_exeext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4320 $as_echo "$ac_cv_exeext" >&6; }
4321
4322 rm -f conftest.$ac_ext
4323 EXEEXT=$ac_cv_exeext
4324 ac_exeext=$EXEEXT
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4326 $as_echo_n "checking for suffix of object files... " >&6; }
4327 if test "${ac_cv_objext+set}" = set; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h.  */
4332
4333 int
4334 main ()
4335 {
4336
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341 rm -f conftest.o conftest.obj
4342 if { { ac_try="$ac_compile"
4343 case "(($ac_try" in
4344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345   *) ac_try_echo=$ac_try;;
4346 esac
4347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4348 $as_echo "$ac_try_echo"; } >&5
4349   (eval "$ac_compile") 2>&5
4350   ac_status=$?
4351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4352   test $ac_status = 0; }; then :
4353   for ac_file in conftest.o conftest.obj conftest.*; do
4354   test -f "$ac_file" || continue;
4355   case $ac_file in
4356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4357     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4358        break;;
4359   esac
4360 done
4361 else
4362   $as_echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4367 as_fn_error "cannot compute suffix of object files: cannot compile
4368 See \`config.log' for more details." "$LINENO" 5; }
4369 fi
4370 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4373 $as_echo "$ac_cv_objext" >&6; }
4374 OBJEXT=$ac_cv_objext
4375 ac_objext=$OBJEXT
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4377 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4378 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4379   $as_echo_n "(cached) " >&6
4380 else
4381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h.  */
4383
4384 int
4385 main ()
4386 {
4387 #ifndef __GNUC__
4388        choke me
4389 #endif
4390
4391   ;
4392   return 0;
4393 }
4394 _ACEOF
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396   ac_compiler_gnu=yes
4397 else
4398   ac_compiler_gnu=no
4399 fi
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4402
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4405 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4406 if test $ac_compiler_gnu = yes; then
4407   GCC=yes
4408 else
4409   GCC=
4410 fi
4411 ac_test_CFLAGS=${CFLAGS+set}
4412 ac_save_CFLAGS=$CFLAGS
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4414 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4415 if test "${ac_cv_prog_cc_g+set}" = set; then :
4416   $as_echo_n "(cached) " >&6
4417 else
4418   ac_save_c_werror_flag=$ac_c_werror_flag
4419    ac_c_werror_flag=yes
4420    ac_cv_prog_cc_g=no
4421    CFLAGS="-g"
4422    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h.  */
4424
4425 int
4426 main ()
4427 {
4428
4429   ;
4430   return 0;
4431 }
4432 _ACEOF
4433 if ac_fn_c_try_compile "$LINENO"; then :
4434   ac_cv_prog_cc_g=yes
4435 else
4436   CFLAGS=""
4437       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h.  */
4439
4440 int
4441 main ()
4442 {
4443
4444   ;
4445   return 0;
4446 }
4447 _ACEOF
4448 if ac_fn_c_try_compile "$LINENO"; then :
4449
4450 else
4451   ac_c_werror_flag=$ac_save_c_werror_flag
4452          CFLAGS="-g"
4453          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h.  */
4455
4456 int
4457 main ()
4458 {
4459
4460   ;
4461   return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465   ac_cv_prog_cc_g=yes
4466 fi
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 fi
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 fi
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472    ac_c_werror_flag=$ac_save_c_werror_flag
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4475 $as_echo "$ac_cv_prog_cc_g" >&6; }
4476 if test "$ac_test_CFLAGS" = set; then
4477   CFLAGS=$ac_save_CFLAGS
4478 elif test $ac_cv_prog_cc_g = yes; then
4479   if test "$GCC" = yes; then
4480     CFLAGS="-g -O2"
4481   else
4482     CFLAGS="-g"
4483   fi
4484 else
4485   if test "$GCC" = yes; then
4486     CFLAGS="-O2"
4487   else
4488     CFLAGS=
4489   fi
4490 fi
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4492 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4493 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4494   $as_echo_n "(cached) " >&6
4495 else
4496   ac_cv_prog_cc_c89=no
4497 ac_save_CC=$CC
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h.  */
4500 #include <stdarg.h>
4501 #include <stdio.h>
4502 #include <sys/types.h>
4503 #include <sys/stat.h>
4504 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4505 struct buf { int x; };
4506 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4507 static char *e (p, i)
4508      char **p;
4509      int i;
4510 {
4511   return p[i];
4512 }
4513 static char *f (char * (*g) (char **, int), char **p, ...)
4514 {
4515   char *s;
4516   va_list v;
4517   va_start (v,p);
4518   s = g (p, va_arg (v,int));
4519   va_end (v);
4520   return s;
4521 }
4522
4523 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4524    function prototypes and stuff, but not '\xHH' hex character constants.
4525    These don't provoke an error unfortunately, instead are silently treated
4526    as 'x'.  The following induces an error, until -std is added to get
4527    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4528    array size at least.  It's necessary to write '\x00'==0 to get something
4529    that's true only with -std.  */
4530 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4531
4532 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4533    inside strings and character constants.  */
4534 #define FOO(x) 'x'
4535 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4536
4537 int test (int i, double x);
4538 struct s1 {int (*f) (int a);};
4539 struct s2 {int (*f) (double a);};
4540 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4541 int argc;
4542 char **argv;
4543 int
4544 main ()
4545 {
4546 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4547   ;
4548   return 0;
4549 }
4550 _ACEOF
4551 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4552         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4553 do
4554   CC="$ac_save_CC $ac_arg"
4555   if ac_fn_c_try_compile "$LINENO"; then :
4556   ac_cv_prog_cc_c89=$ac_arg
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext
4559   test "x$ac_cv_prog_cc_c89" != "xno" && break
4560 done
4561 rm -f conftest.$ac_ext
4562 CC=$ac_save_CC
4563
4564 fi
4565 # AC_CACHE_VAL
4566 case "x$ac_cv_prog_cc_c89" in
4567   x)
4568     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4569 $as_echo "none needed" >&6; } ;;
4570   xno)
4571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4572 $as_echo "unsupported" >&6; } ;;
4573   *)
4574     CC="$CC $ac_cv_prog_cc_c89"
4575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4576 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4577 esac
4578 if test "x$ac_cv_prog_cc_c89" != xno; then :
4579
4580 fi
4581
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 DEPDIR="${am__leading_dot}deps"
4588
4589 ac_config_commands="$ac_config_commands depfiles"
4590
4591
4592 am_make=${MAKE-make}
4593 cat > confinc << 'END'
4594 am__doit:
4595         @echo this is the am__doit target
4596 .PHONY: am__doit
4597 END
4598 # If we don't find an include directive, just comment out the code.
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4600 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4601 am__include="#"
4602 am__quote=
4603 _am_result=none
4604 # First try GNU make style include.
4605 echo "include confinc" > confmf
4606 # Ignore all kinds of additional output from `make'.
4607 case `$am_make -s -f confmf 2> /dev/null` in #(
4608 *the\ am__doit\ target*)
4609   am__include=include
4610   am__quote=
4611   _am_result=GNU
4612   ;;
4613 esac
4614 # Now try BSD make style include.
4615 if test "$am__include" = "#"; then
4616    echo '.include "confinc"' > confmf
4617    case `$am_make -s -f confmf 2> /dev/null` in #(
4618    *the\ am__doit\ target*)
4619      am__include=.include
4620      am__quote="\""
4621      _am_result=BSD
4622      ;;
4623    esac
4624 fi
4625
4626
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4628 $as_echo "$_am_result" >&6; }
4629 rm -f confinc confmf
4630
4631 # Check whether --enable-dependency-tracking was given.
4632 if test "${enable_dependency_tracking+set}" = set; then :
4633   enableval=$enable_dependency_tracking;
4634 fi
4635
4636 if test "x$enable_dependency_tracking" != xno; then
4637   am_depcomp="$ac_aux_dir/depcomp"
4638   AMDEPBACKSLASH='\'
4639 fi
4640  if test "x$enable_dependency_tracking" != xno; then
4641   AMDEP_TRUE=
4642   AMDEP_FALSE='#'
4643 else
4644   AMDEP_TRUE='#'
4645   AMDEP_FALSE=
4646 fi
4647
4648
4649
4650 depcc="$CC"   am_compiler_list=
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4653 $as_echo_n "checking dependency style of $depcc... " >&6; }
4654 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4655   $as_echo_n "(cached) " >&6
4656 else
4657   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4658   # We make a subdir and do the tests there.  Otherwise we can end up
4659   # making bogus files that we don't know about and never remove.  For
4660   # instance it was reported that on HP-UX the gcc test will end up
4661   # making a dummy file named `D' -- because `-MD' means `put the output
4662   # in D'.
4663   mkdir conftest.dir
4664   # Copy depcomp to subdir because otherwise we won't find it if we're
4665   # using a relative directory.
4666   cp "$am_depcomp" conftest.dir
4667   cd conftest.dir
4668   # We will build objects and dependencies in a subdirectory because
4669   # it helps to detect inapplicable dependency modes.  For instance
4670   # both Tru64's cc and ICC support -MD to output dependencies as a
4671   # side effect of compilation, but ICC will put the dependencies in
4672   # the current directory while Tru64 will put them in the object
4673   # directory.
4674   mkdir sub
4675
4676   am_cv_CC_dependencies_compiler_type=none
4677   if test "$am_compiler_list" = ""; then
4678      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4679   fi
4680   am__universal=false
4681   case " $depcc " in #(
4682      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4683      esac
4684
4685   for depmode in $am_compiler_list; do
4686     # Setup a source with many dependencies, because some compilers
4687     # like to wrap large dependency lists on column 80 (with \), and
4688     # we should not choose a depcomp mode which is confused by this.
4689     #
4690     # We need to recreate these files for each test, as the compiler may
4691     # overwrite some of them when testing with obscure command lines.
4692     # This happens at least with the AIX C compiler.
4693     : > sub/conftest.c
4694     for i in 1 2 3 4 5 6; do
4695       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4696       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4697       # Solaris 8's {/usr,}/bin/sh.
4698       touch sub/conftst$i.h
4699     done
4700     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4701
4702     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4703     # mode.  It turns out that the SunPro C++ compiler does not properly
4704     # handle `-M -o', and we need to detect this.  Also, some Intel
4705     # versions had trouble with output in subdirs
4706     am__obj=sub/conftest.${OBJEXT-o}
4707     am__minus_obj="-o $am__obj"
4708     case $depmode in
4709     gcc)
4710       # This depmode causes a compiler race in universal mode.
4711       test "$am__universal" = false || continue
4712       ;;
4713     nosideeffect)
4714       # after this tag, mechanisms are not by side-effect, so they'll
4715       # only be used when explicitly requested
4716       if test "x$enable_dependency_tracking" = xyes; then
4717         continue
4718       else
4719         break
4720       fi
4721       ;;
4722     msvisualcpp | msvcmsys)
4723       # This compiler won't grok `-c -o', but also, the minuso test has
4724       # not run yet.  These depmodes are late enough in the game, and
4725       # so weak that their functioning should not be impacted.
4726       am__obj=conftest.${OBJEXT-o}
4727       am__minus_obj=
4728       ;;
4729     none) break ;;
4730     esac
4731     if depmode=$depmode \
4732        source=sub/conftest.c object=$am__obj \
4733        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4734        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4735          >/dev/null 2>conftest.err &&
4736        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4737        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4738        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4739        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4740       # icc doesn't choke on unknown options, it will just issue warnings
4741       # or remarks (even with -Werror).  So we grep stderr for any message
4742       # that says an option was ignored or not supported.
4743       # When given -MP, icc 7.0 and 7.1 complain thusly:
4744       #   icc: Command line warning: ignoring option '-M'; no argument required
4745       # The diagnosis changed in icc 8.0:
4746       #   icc: Command line remark: option '-MP' not supported
4747       if (grep 'ignoring option' conftest.err ||
4748           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4749         am_cv_CC_dependencies_compiler_type=$depmode
4750         break
4751       fi
4752     fi
4753   done
4754
4755   cd ..
4756   rm -rf conftest.dir
4757 else
4758   am_cv_CC_dependencies_compiler_type=none
4759 fi
4760
4761 fi
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4763 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4764 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4765
4766  if
4767   test "x$enable_dependency_tracking" != xno \
4768   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4769   am__fastdepCC_TRUE=
4770   am__fastdepCC_FALSE='#'
4771 else
4772   am__fastdepCC_TRUE='#'
4773   am__fastdepCC_FALSE=
4774 fi
4775
4776
4777 ac_ext=c
4778 ac_cpp='$CPP $CPPFLAGS'
4779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4783 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4784 # On Suns, sometimes $CPP names a directory.
4785 if test -n "$CPP" && test -d "$CPP"; then
4786   CPP=
4787 fi
4788 if test -z "$CPP"; then
4789   if test "${ac_cv_prog_CPP+set}" = set; then :
4790   $as_echo_n "(cached) " >&6
4791 else
4792       # Double quotes because CPP needs to be expanded
4793     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4794     do
4795       ac_preproc_ok=false
4796 for ac_c_preproc_warn_flag in '' yes
4797 do
4798   # Use a header file that comes with gcc, so configuring glibc
4799   # with a fresh cross-compiler works.
4800   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4801   # <limits.h> exists even on freestanding compilers.
4802   # On the NeXT, cc -E runs the code through the compiler's parser,
4803   # not just through cpp. "Syntax error" is here to catch this case.
4804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h.  */
4806 #ifdef __STDC__
4807 # include <limits.h>
4808 #else
4809 # include <assert.h>
4810 #endif
4811                      Syntax error
4812 _ACEOF
4813 if ac_fn_c_try_cpp "$LINENO"; then :
4814
4815 else
4816   # Broken: fails on valid input.
4817 continue
4818 fi
4819 rm -f conftest.err conftest.$ac_ext
4820
4821   # OK, works on sane cases.  Now check whether nonexistent headers
4822   # can be detected and how.
4823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h.  */
4825 #include <ac_nonexistent.h>
4826 _ACEOF
4827 if ac_fn_c_try_cpp "$LINENO"; then :
4828   # Broken: success on invalid input.
4829 continue
4830 else
4831   # Passes both tests.
4832 ac_preproc_ok=:
4833 break
4834 fi
4835 rm -f conftest.err conftest.$ac_ext
4836
4837 done
4838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4839 rm -f conftest.err conftest.$ac_ext
4840 if $ac_preproc_ok; then :
4841   break
4842 fi
4843
4844     done
4845     ac_cv_prog_CPP=$CPP
4846
4847 fi
4848   CPP=$ac_cv_prog_CPP
4849 else
4850   ac_cv_prog_CPP=$CPP
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4853 $as_echo "$CPP" >&6; }
4854 ac_preproc_ok=false
4855 for ac_c_preproc_warn_flag in '' yes
4856 do
4857   # Use a header file that comes with gcc, so configuring glibc
4858   # with a fresh cross-compiler works.
4859   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4860   # <limits.h> exists even on freestanding compilers.
4861   # On the NeXT, cc -E runs the code through the compiler's parser,
4862   # not just through cpp. "Syntax error" is here to catch this case.
4863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h.  */
4865 #ifdef __STDC__
4866 # include <limits.h>
4867 #else
4868 # include <assert.h>
4869 #endif
4870                      Syntax error
4871 _ACEOF
4872 if ac_fn_c_try_cpp "$LINENO"; then :
4873
4874 else
4875   # Broken: fails on valid input.
4876 continue
4877 fi
4878 rm -f conftest.err conftest.$ac_ext
4879
4880   # OK, works on sane cases.  Now check whether nonexistent headers
4881   # can be detected and how.
4882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h.  */
4884 #include <ac_nonexistent.h>
4885 _ACEOF
4886 if ac_fn_c_try_cpp "$LINENO"; then :
4887   # Broken: success on invalid input.
4888 continue
4889 else
4890   # Passes both tests.
4891 ac_preproc_ok=:
4892 break
4893 fi
4894 rm -f conftest.err conftest.$ac_ext
4895
4896 done
4897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4898 rm -f conftest.err conftest.$ac_ext
4899 if $ac_preproc_ok; then :
4900
4901 else
4902   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4904 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4905 See \`config.log' for more details." "$LINENO" 5; }
4906 fi
4907
4908 ac_ext=c
4909 ac_cpp='$CPP $CPPFLAGS'
4910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913
4914 ac_ext=c
4915 ac_cpp='$CPP $CPPFLAGS'
4916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4919
4920
4921
4922 # Check whether --enable-decimal-float was given.
4923 if test "${enable_decimal_float+set}" = set; then :
4924   enableval=$enable_decimal_float;  case $enableval in
4925       yes)
4926 $as_echo "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h
4927
4928            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5
4929 $as_echo_n "checking if compiler knows _Decimal64... " >&6; }
4930            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h.  */
4932 _Decimal64 x;
4933 int
4934 main ()
4935 {
4936
4937   ;
4938   return 0;
4939 }
4940 _ACEOF
4941 if ac_fn_c_try_compile "$LINENO"; then :
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4943 $as_echo "yes" >&6; }
4944                if test "$use_gmp_build" != yes ; then
4945                   as_fn_error "decimal float support requires --with-gmp-build" "$LINENO" 5
4946                fi
4947                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GMP_IEEE_FLOATS is defined" >&5
4948 $as_echo_n "checking if _GMP_IEEE_FLOATS is defined... " >&6; }
4949                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h.  */
4951
4952 #include "gmp.h"
4953 #include "gmp-impl.h"
4954 #ifndef _GMP_IEEE_FLOATS
4955 #error "_GMP_IEEE_FLOATS is not defined"
4956 #endif
4957 _ACEOF
4958 if ac_fn_c_try_compile "$LINENO"; then :
4959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4960 $as_echo "yes" >&6; }
4961 else
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4964                   as_fn_error "decimal float support requires _GMP_IEEE_FLOATS" "$LINENO" 5
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967
4968 else
4969   as_fn_error "Compiler doesn't know _Decimal64; try GCC >= 4.2, configured with --enable-decimal-float
4970            " "$LINENO" 5
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973            { $as_echo "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5
4974 $as_echo_n "checking decimal float format... " >&6; }
4975            if test "$cross_compiling" = yes; then :
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming DPD" >&5
4977 $as_echo "assuming DPD" >&6; }
4978        $as_echo "#define DPD_FORMAT 1" >>confdefs.h
4979
4980 else
4981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h.  */
4983
4984 #include <stdlib.h>
4985
4986 int
4987 main ()
4988 {
4989
4990 union { double d; _Decimal64 d64; } y;
4991 y.d64 = 1234567890123456.0dd;
4992 return y.d == 0.14894469406741037E-123 ? 0 :
4993        y.d == 0.59075095508629822E-68  ? 1 : 2;
4994
4995   ;
4996   return 0;
4997 }
4998 _ACEOF
4999 if ac_fn_c_try_run "$LINENO"; then :
5000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: DPD" >&5
5001 $as_echo "DPD" >&6; }
5002        $as_echo "#define DPD_FORMAT 1" >>confdefs.h
5003
5004 else
5005   if test "$?" != 1 ; then
5006           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5008 as_fn_error "neither DPD nor BID
5009 See \`config.log' for more details." "$LINENO" 5; }
5010        fi
5011        { $as_echo "$as_me:${as_lineno-$LINENO}: result: BID" >&5
5012 $as_echo "BID" >&6; }
5013 fi
5014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5015   conftest.$ac_objext conftest.beam conftest.$ac_ext
5016 fi
5017
5018            ;;
5019       no)  ;;
5020       *)   as_fn_error "bad value for --enable-decimal-float: yes or no" "$LINENO" 5 ;;
5021      esac
5022 fi
5023
5024
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICC" >&5
5026 $as_echo_n "checking for ICC... " >&6; }
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h.  */
5029
5030 #if !defined(__ICC)
5031 # error "ICC Not Found"
5032 error
5033 #endif
5034
5035 int
5036 main ()
5037 {
5038
5039   ;
5040   return 0;
5041 }
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5046 $as_echo "yes" >&6; }
5047  CFLAGS="-fp_port -mp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
5048
5049 else
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054
5055 if test "$test_CFLAGS" != set && test -n "$GCC"; then
5056   CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith $CFLAGS"
5057   if test -n "$disable_gcc_format_warning" ; then
5058    CFLAGS="$CFLAGS -Wno-format"
5059   fi
5060 fi
5061
5062 if test "x$CC" != xcc; then
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5064 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5065 else
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5067 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5068 fi
5069 set dummy $CC; ac_cc=`$as_echo "$2" |
5070                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5071 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h.  */
5076
5077 int
5078 main ()
5079 {
5080
5081   ;
5082   return 0;
5083 }
5084 _ACEOF
5085 # Make sure it works both with $CC and with simple cc.
5086 # We do the test twice because some compilers refuse to overwrite an
5087 # existing .o file with -o, though they will create one.
5088 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5089 rm -f conftest2.*
5090 if { { case "(($ac_try" in
5091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092   *) ac_try_echo=$ac_try;;
5093 esac
5094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5095 $as_echo "$ac_try_echo"; } >&5
5096   (eval "$ac_try") 2>&5
5097   ac_status=$?
5098   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5099   test $ac_status = 0; } &&
5100    test -f conftest2.$ac_objext && { { case "(($ac_try" in
5101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102   *) ac_try_echo=$ac_try;;
5103 esac
5104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5105 $as_echo "$ac_try_echo"; } >&5
5106   (eval "$ac_try") 2>&5
5107   ac_status=$?
5108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5109   test $ac_status = 0; };
5110 then
5111   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5112   if test "x$CC" != xcc; then
5113     # Test first that cc exists at all.
5114     if { ac_try='cc -c conftest.$ac_ext >&5'
5115   { { case "(($ac_try" in
5116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117   *) ac_try_echo=$ac_try;;
5118 esac
5119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5120 $as_echo "$ac_try_echo"; } >&5
5121   (eval "$ac_try") 2>&5
5122   ac_status=$?
5123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5124   test $ac_status = 0; }; }; then
5125       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5126       rm -f conftest2.*
5127       if { { case "(($ac_try" in
5128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129   *) ac_try_echo=$ac_try;;
5130 esac
5131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5132 $as_echo "$ac_try_echo"; } >&5
5133   (eval "$ac_try") 2>&5
5134   ac_status=$?
5135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5136   test $ac_status = 0; } &&
5137          test -f conftest2.$ac_objext && { { case "(($ac_try" in
5138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139   *) ac_try_echo=$ac_try;;
5140 esac
5141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5142 $as_echo "$ac_try_echo"; } >&5
5143   (eval "$ac_try") 2>&5
5144   ac_status=$?
5145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5146   test $ac_status = 0; };
5147       then
5148         # cc works too.
5149         :
5150       else
5151         # cc exists but doesn't like -o.
5152         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5153       fi
5154     fi
5155   fi
5156 else
5157   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5158 fi
5159 rm -f core conftest*
5160
5161 fi
5162 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5164 $as_echo "yes" >&6; }
5165 else
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5168
5169 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5170
5171 fi
5172
5173 # FIXME: we rely on the cache variable name because
5174 # there is no other way.
5175 set dummy $CC
5176 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5177 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5178 if test "$am_t" != yes; then
5179    # Losing compiler, so override with the script.
5180    # FIXME: It is wrong to rewrite CC.
5181    # But if we don't then we get into trouble of one sort or another.
5182    # A longer-term fix would be to have automake use am__CC in this case,
5183    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5184    CC="$am_aux_dir/compile $CC"
5185 fi
5186
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5189 $as_echo_n "checking for function prototypes... " >&6; }
5190 if test "$ac_cv_prog_cc_c89" != no; then
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5192 $as_echo "yes" >&6; }
5193
5194 $as_echo "#define PROTOTYPES 1" >>confdefs.h
5195
5196
5197 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
5198
5199 else
5200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202 fi
5203
5204
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5206 $as_echo_n "checking for ANSI C header files... " >&6; }
5207 if test "${ac_cv_header_stdc+set}" = set; then :
5208   $as_echo_n "(cached) " >&6
5209 else
5210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h.  */
5212 #include <stdlib.h>
5213 #include <stdarg.h>
5214 #include <string.h>
5215 #include <float.h>
5216
5217 int
5218 main ()
5219 {
5220
5221   ;
5222   return 0;
5223 }
5224 _ACEOF
5225 if ac_fn_c_try_compile "$LINENO"; then :
5226   ac_cv_header_stdc=yes
5227 else
5228   ac_cv_header_stdc=no
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231
5232 if test $ac_cv_header_stdc = yes; then
5233   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h.  */
5236 #include <string.h>
5237
5238 _ACEOF
5239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5240   $EGREP "memchr" >/dev/null 2>&1; then :
5241
5242 else
5243   ac_cv_header_stdc=no
5244 fi
5245 rm -f conftest*
5246
5247 fi
5248
5249 if test $ac_cv_header_stdc = yes; then
5250   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h.  */
5253 #include <stdlib.h>
5254
5255 _ACEOF
5256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5257   $EGREP "free" >/dev/null 2>&1; then :
5258
5259 else
5260   ac_cv_header_stdc=no
5261 fi
5262 rm -f conftest*
5263
5264 fi
5265
5266 if test $ac_cv_header_stdc = yes; then
5267   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5268   if test "$cross_compiling" = yes; then :
5269   :
5270 else
5271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h.  */
5273 #include <ctype.h>
5274 #include <stdlib.h>
5275 #if ((' ' & 0x0FF) == 0x020)
5276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5278 #else
5279 # define ISLOWER(c) \
5280                    (('a' <= (c) && (c) <= 'i') \
5281                      || ('j' <= (c) && (c) <= 'r') \
5282                      || ('s' <= (c) && (c) <= 'z'))
5283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5284 #endif
5285
5286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5287 int
5288 main ()
5289 {
5290   int i;
5291   for (i = 0; i < 256; i++)
5292     if (XOR (islower (i), ISLOWER (i))
5293         || toupper (i) != TOUPPER (i))
5294       return 2;
5295   return 0;
5296 }
5297 _ACEOF
5298 if ac_fn_c_try_run "$LINENO"; then :
5299
5300 else
5301   ac_cv_header_stdc=no
5302 fi
5303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5304   conftest.$ac_objext conftest.beam conftest.$ac_ext
5305 fi
5306
5307 fi
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5310 $as_echo "$ac_cv_header_stdc" >&6; }
5311 if test $ac_cv_header_stdc = yes; then
5312
5313 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5314
5315 fi
5316
5317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5319                   inttypes.h stdint.h unistd.h
5320 do :
5321   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5322 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5323 "
5324 eval as_val=\$$as_ac_Header
5325    if test "x$as_val" = x""yes; then :
5326   cat >>confdefs.h <<_ACEOF
5327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5328 _ACEOF
5329
5330 fi
5331
5332 done
5333
5334
5335
5336 if test "$ac_cv_prog_cc_stdc" != no; then
5337   U= ANSI2KNR=
5338 else
5339   U=_ ANSI2KNR=./ansi2knr
5340 fi
5341 # Ensure some checks needed by ansi2knr itself.
5342
5343 for ac_header in string.h
5344 do :
5345   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5346 if test "x$ac_cv_header_string_h" = x""yes; then :
5347   cat >>confdefs.h <<_ACEOF
5348 #define HAVE_STRING_H 1
5349 _ACEOF
5350
5351 fi
5352
5353 done
5354
5355
5356
5357 case $host in
5358   *-apple-darwin*)
5359     case "$LD $LDFLAGS" in
5360   *-Wl,-search_paths_first*) ;;
5361   *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5
5362 $as_echo_n "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
5363      saved_LDFLAGS="$LDFLAGS"
5364      LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
5365      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h.  */
5367
5368 int
5369 main ()
5370 {
5371
5372   ;
5373   return 0;
5374 }
5375 _ACEOF
5376 if ac_fn_c_try_link "$LINENO"; then :
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5378 $as_echo "yes" >&6; }
5379 else
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382         LDFLAGS="$saved_LDFLAGS"
5383 fi
5384 rm -f core conftest.err conftest.$ac_objext \
5385     conftest$ac_exeext conftest.$ac_ext
5386      ;;
5387  esac
5388  ;;
5389 esac
5390
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5392 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5393 if test "${ac_cv_c_const+set}" = set; then :
5394   $as_echo_n "(cached) " >&6
5395 else
5396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h.  */
5398
5399 int
5400 main ()
5401 {
5402 /* FIXME: Include the comments suggested by Paul. */
5403 #ifndef __cplusplus
5404   /* Ultrix mips cc rejects this.  */
5405   typedef int charset[2];
5406   const charset cs;
5407   /* SunOS 4.1.1 cc rejects this.  */
5408   char const *const *pcpcc;
5409   char **ppc;
5410   /* NEC SVR4.0.2 mips cc rejects this.  */
5411   struct point {int x, y;};
5412   static struct point const zero = {0,0};
5413   /* AIX XL C 1.02.0.0 rejects this.
5414      It does not let you subtract one const X* pointer from another in
5415      an arm of an if-expression whose if-part is not a constant
5416      expression */
5417   const char *g = "string";
5418   pcpcc = &g + (g ? g-g : 0);
5419   /* HPUX 7.0 cc rejects these. */
5420   ++pcpcc;
5421   ppc = (char**) pcpcc;
5422   pcpcc = (char const *const *) ppc;
5423   { /* SCO 3.2v4 cc rejects this.  */
5424     char *t;
5425     char const *s = 0 ? (char *) 0 : (char const *) 0;
5426
5427     *t++ = 0;
5428     if (s) return 0;
5429   }
5430   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5431     int x[] = {25, 17};
5432     const int *foo = &x[0];
5433     ++foo;
5434   }
5435   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5436     typedef const int *iptr;
5437     iptr p = 0;
5438     ++p;
5439   }
5440   { /* AIX XL C 1.02.0.0 rejects this saying
5441        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5442     struct s { int j; const int *ap[3]; };
5443     struct s *b; b->j = 5;
5444   }
5445   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5446     const int foo = 10;
5447     if (!foo) return 0;
5448   }
5449   return !cs[0] && !zero.x;
5450 #endif
5451
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457   ac_cv_c_const=yes
5458 else
5459   ac_cv_c_const=no
5460 fi
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 fi
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5464 $as_echo "$ac_cv_c_const" >&6; }
5465 if test $ac_cv_c_const = no; then
5466
5467 $as_echo "#define const /**/" >>confdefs.h
5468
5469 fi
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5472 $as_echo_n "checking for working volatile... " >&6; }
5473 if test "${ac_cv_c_volatile+set}" = set; then :
5474   $as_echo_n "(cached) " >&6
5475 else
5476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h.  */
5478
5479 int
5480 main ()
5481 {
5482
5483 volatile int x;
5484 int * volatile y = (int *) 0;
5485 return !x && !y;
5486   ;
5487   return 0;
5488 }
5489 _ACEOF
5490 if ac_fn_c_try_compile "$LINENO"; then :
5491   ac_cv_c_volatile=yes
5492 else
5493   ac_cv_c_volatile=no
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5498 $as_echo "$ac_cv_c_volatile" >&6; }
5499 if test $ac_cv_c_volatile = no; then
5500
5501 $as_echo "#define volatile /**/" >>confdefs.h
5502
5503 fi
5504
5505
5506
5507 MPFR_LIBM=''
5508
5509 case $host in
5510   *-*-beos* | *-*-cygwin* | *-*-pw32*)
5511     # According to libtool AC CHECK LIBM, these systems don't have libm
5512     ;;
5513   *-*-hpux*)
5514     # -lM means something subtly different to -lm, SVID style error handling
5515     # or something.  FIXME: Why exactly do we want this?
5516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lM" >&5
5517 $as_echo_n "checking for main in -lM... " >&6; }
5518 if test "${ac_cv_lib_M_main+set}" = set; then :
5519   $as_echo_n "(cached) " >&6
5520 else
5521   ac_check_lib_save_LIBS=$LIBS
5522 LIBS="-lM  $LIBS"
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h.  */
5525
5526
5527 int
5528 main ()
5529 {
5530 return main ();
5531   ;
5532   return 0;
5533 }
5534 _ACEOF
5535 if ac_fn_c_try_link "$LINENO"; then :
5536   ac_cv_lib_M_main=yes
5537 else
5538   ac_cv_lib_M_main=no
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext \
5541     conftest$ac_exeext conftest.$ac_ext
5542 LIBS=$ac_check_lib_save_LIBS
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_M_main" >&5
5545 $as_echo "$ac_cv_lib_M_main" >&6; }
5546 if test "x$ac_cv_lib_M_main" = x""yes; then :
5547   MPFR_LIBM="-lM"
5548 fi
5549
5550     ;;
5551   *-*-solaris*)
5552     # On Solaris the math functions new in C99 are in -lm9x.
5553     # FIXME: Do we need -lm9x as well as -lm, or just instead of?
5554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm9x" >&5
5555 $as_echo_n "checking for main in -lm9x... " >&6; }
5556 if test "${ac_cv_lib_m9x_main+set}" = set; then :
5557   $as_echo_n "(cached) " >&6
5558 else
5559   ac_check_lib_save_LIBS=$LIBS
5560 LIBS="-lm9x  $LIBS"
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h.  */
5563
5564
5565 int
5566 main ()
5567 {
5568 return main ();
5569   ;
5570   return 0;
5571 }
5572 _ACEOF
5573 if ac_fn_c_try_link "$LINENO"; then :
5574   ac_cv_lib_m9x_main=yes
5575 else
5576   ac_cv_lib_m9x_main=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext \
5579     conftest$ac_exeext conftest.$ac_ext
5580 LIBS=$ac_check_lib_save_LIBS
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m9x_main" >&5
5583 $as_echo "$ac_cv_lib_m9x_main" >&6; }
5584 if test "x$ac_cv_lib_m9x_main" = x""yes; then :
5585   MPFR_LIBM="-lm9x"
5586 fi
5587
5588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5589 $as_echo_n "checking for main in -lm... " >&6; }
5590 if test "${ac_cv_lib_m_main+set}" = set; then :
5591   $as_echo_n "(cached) " >&6
5592 else
5593   ac_check_lib_save_LIBS=$LIBS
5594 LIBS="-lm  $LIBS"
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h.  */
5597
5598
5599 int
5600 main ()
5601 {
5602 return main ();
5603   ;
5604   return 0;
5605 }
5606 _ACEOF
5607 if ac_fn_c_try_link "$LINENO"; then :
5608   ac_cv_lib_m_main=yes
5609 else
5610   ac_cv_lib_m_main=no
5611 fi
5612 rm -f core conftest.err conftest.$ac_objext \
5613     conftest$ac_exeext conftest.$ac_ext
5614 LIBS=$ac_check_lib_save_LIBS
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5617 $as_echo "$ac_cv_lib_m_main" >&6; }
5618 if test "x$ac_cv_lib_m_main" = x""yes; then :
5619   MPFR_LIBM="$MPFR_LIBM -lm"
5620 fi
5621
5622     ;;
5623   *-ncr-sysv4.3*)
5624     # FIXME: What does -lmw mean?  Libtool AC CHECK LIBM does it this way.
5625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
5626 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
5627 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
5628   $as_echo_n "(cached) " >&6
5629 else
5630   ac_check_lib_save_LIBS=$LIBS
5631 LIBS="-lmw  $LIBS"
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h.  */
5634
5635 /* Override any GCC internal prototype to avoid an error.
5636    Use char because int might match the return type of a GCC
5637    builtin and then its argument prototype would still apply.  */
5638 #ifdef __cplusplus
5639 extern "C"
5640 #endif
5641 char _mwvalidcheckl ();
5642 int
5643 main ()
5644 {
5645 return _mwvalidcheckl ();
5646   ;
5647   return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_c_try_link "$LINENO"; then :
5651   ac_cv_lib_mw__mwvalidcheckl=yes
5652 else
5653   ac_cv_lib_mw__mwvalidcheckl=no
5654 fi
5655 rm -f core conftest.err conftest.$ac_objext \
5656     conftest$ac_exeext conftest.$ac_ext
5657 LIBS=$ac_check_lib_save_LIBS
5658 fi
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
5660 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
5661 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
5662   MPFR_LIBM="-lmw"
5663 fi
5664
5665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5666 $as_echo_n "checking for main in -lm... " >&6; }
5667 if test "${ac_cv_lib_m_main+set}" = set; then :
5668   $as_echo_n "(cached) " >&6
5669 else
5670   ac_check_lib_save_LIBS=$LIBS
5671 LIBS="-lm  $LIBS"
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h.  */
5674
5675
5676 int
5677 main ()
5678 {
5679 return main ();
5680   ;
5681   return 0;
5682 }
5683 _ACEOF
5684 if ac_fn_c_try_link "$LINENO"; then :
5685   ac_cv_lib_m_main=yes
5686 else
5687   ac_cv_lib_m_main=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext \
5690     conftest$ac_exeext conftest.$ac_ext
5691 LIBS=$ac_check_lib_save_LIBS
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5694 $as_echo "$ac_cv_lib_m_main" >&6; }
5695 if test "x$ac_cv_lib_m_main" = x""yes; then :
5696   MPFR_LIBM="$MPFR_LIBM -lm"
5697 fi
5698
5699     ;;
5700   *)
5701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5702 $as_echo_n "checking for main in -lm... " >&6; }
5703 if test "${ac_cv_lib_m_main+set}" = set; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   ac_check_lib_save_LIBS=$LIBS
5707 LIBS="-lm  $LIBS"
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h.  */
5710
5711
5712 int
5713 main ()
5714 {
5715 return main ();
5716   ;
5717   return 0;
5718 }
5719 _ACEOF
5720 if ac_fn_c_try_link "$LINENO"; then :
5721   ac_cv_lib_m_main=yes
5722 else
5723   ac_cv_lib_m_main=no
5724 fi
5725 rm -f core conftest.err conftest.$ac_objext \
5726     conftest$ac_exeext conftest.$ac_ext
5727 LIBS=$ac_check_lib_save_LIBS
5728 fi
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5730 $as_echo "$ac_cv_lib_m_main" >&6; }
5731 if test "x$ac_cv_lib_m_main" = x""yes; then :
5732   MPFR_LIBM="-lm"
5733 fi
5734
5735     ;;
5736 esac
5737
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5739 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5740 if test "${ac_cv_header_time+set}" = set; then :
5741   $as_echo_n "(cached) " >&6
5742 else
5743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h.  */
5745 #include <sys/types.h>
5746 #include <sys/time.h>
5747 #include <time.h>
5748
5749 int
5750 main ()
5751 {
5752 if ((struct tm *) 0)
5753 return 0;
5754   ;
5755   return 0;
5756 }
5757 _ACEOF
5758 if ac_fn_c_try_compile "$LINENO"; then :
5759   ac_cv_header_time=yes
5760 else
5761   ac_cv_header_time=no
5762 fi
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 fi
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5766 $as_echo "$ac_cv_header_time" >&6; }
5767 if test $ac_cv_header_time = yes; then
5768
5769 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5770
5771 fi
5772
5773
5774
5775
5776
5777
5778
5779 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5780 if test "x$ac_cv_header_limits_h" = x""yes; then :
5781
5782 else
5783   as_fn_error "limits.h not found" "$LINENO" 5
5784 fi
5785
5786
5787 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
5788 if test "x$ac_cv_header_float_h" = x""yes; then :
5789
5790 else
5791   as_fn_error "float.h not found" "$LINENO" 5
5792 fi
5793
5794
5795 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5796 if test "x$ac_cv_header_string_h" = x""yes; then :
5797
5798 else
5799   as_fn_error "string.h not found" "$LINENO" 5
5800 fi
5801
5802
5803
5804 for ac_header in locale.h
5805 do :
5806   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5807 if test "x$ac_cv_header_locale_h" = x""yes; then :
5808   cat >>confdefs.h <<_ACEOF
5809 #define HAVE_LOCALE_H 1
5810 _ACEOF
5811
5812 fi
5813
5814 done
5815
5816
5817 for ac_header in wchar.h
5818 do :
5819   ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5820 if test "x$ac_cv_header_wchar_h" = x""yes; then :
5821   cat >>confdefs.h <<_ACEOF
5822 #define HAVE_WCHAR_H 1
5823 _ACEOF
5824
5825 fi
5826
5827 done
5828
5829
5830 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
5831 if test "x$ac_cv_header_stdarg_h" = x""yes; then :
5832
5833 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
5834
5835 else
5836   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
5837 if test "x$ac_cv_header_varargs_h" = x""yes; then :
5838
5839 else
5840   as_fn_error "stdarg.h or varargs.h not found" "$LINENO" 5
5841 fi
5842
5843
5844 fi
5845
5846
5847
5848 for ac_header in sys/time.h sys/fpu.h
5849 do :
5850   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5851 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5852 eval as_val=\$$as_ac_Header
5853    if test "x$as_val" = x""yes; then :
5854   cat >>confdefs.h <<_ACEOF
5855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5856 _ACEOF
5857
5858 fi
5859
5860 done
5861
5862
5863
5864   for ac_header in stdint.h
5865 do :
5866   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5867 if test "x$ac_cv_header_stdint_h" = x""yes; then :
5868   cat >>confdefs.h <<_ACEOF
5869 #define HAVE_STDINT_H 1
5870 _ACEOF
5871
5872 fi
5873
5874 done
5875
5876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
5877 $as_echo_n "checking for SIZE_MAX... " >&6; }
5878   if test "${gl_cv_size_max+set}" = set; then :
5879   $as_echo_n "(cached) " >&6
5880 else
5881
5882     gl_cv_size_max=
5883     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h.  */
5885
5886 #include <limits.h>
5887 #if HAVE_STDINT_H
5888 #include <stdint.h>
5889 #endif
5890 #ifdef SIZE_MAX
5891 Found it
5892 #endif
5893
5894 _ACEOF
5895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896   $EGREP "Found it" >/dev/null 2>&1; then :
5897   gl_cv_size_max=yes
5898 fi
5899 rm -f conftest*
5900
5901     if test -z "$gl_cv_size_max"; then
5902                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
5903 #include <limits.h>"; then :
5904
5905 else
5906   size_t_bits_minus_1=
5907 fi
5908
5909       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
5910
5911 else
5912   fits_in_uint=
5913 fi
5914
5915       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
5916         if test $fits_in_uint = 1; then
5917                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h.  */
5919 #include <stddef.h>
5920             extern size_t foo;
5921             extern unsigned long foo;
5922
5923 int
5924 main ()
5925 {
5926
5927   ;
5928   return 0;
5929 }
5930 _ACEOF
5931 if ac_fn_c_try_compile "$LINENO"; then :
5932   fits_in_uint=0
5933 fi
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935         fi
5936                                 if test $fits_in_uint = 1; then
5937           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
5938         else
5939           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
5940         fi
5941       else
5942                 gl_cv_size_max='((size_t)~(size_t)0)'
5943       fi
5944     fi
5945
5946 fi
5947
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
5949 $as_echo "$gl_cv_size_max" >&6; }
5950   if test "$gl_cv_size_max" != yes; then
5951
5952 cat >>confdefs.h <<_ACEOF
5953 #define SIZE_MAX $gl_cv_size_max
5954 _ACEOF
5955
5956   fi
5957
5958
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
5960 $as_echo_n "checking how to copy va_list... " >&6; }
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h.  */
5963
5964 #include <stdarg.h>
5965
5966 int
5967 main ()
5968 {
5969
5970    va_list ap1, ap2;
5971    va_copy(ap1, ap2);
5972
5973   ;
5974   return 0;
5975 }
5976 _ACEOF
5977 if ac_fn_c_try_link "$LINENO"; then :
5978
5979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
5980 $as_echo "va_copy" >&6; }
5981    $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
5982
5983
5984 else
5985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h.  */
5987
5988 #include <stdarg.h>
5989
5990 int
5991 main ()
5992 {
5993
5994    va_list ap1, ap2;
5995    __va_copy(ap1, ap2);
5996
5997   ;
5998   return 0;
5999 }
6000 _ACEOF
6001 if ac_fn_c_try_link "$LINENO"; then :
6002   $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
6004 $as_echo "__va_copy" >&6; }
6005 else
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
6007 $as_echo "memcpy" >&6; }
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext \
6010     conftest$ac_exeext conftest.$ac_ext
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext \
6013     conftest$ac_exeext conftest.$ac_ext
6014
6015 for ac_func in memmove memset setlocale strtol gettimeofday
6016 do :
6017   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6018 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6019 eval as_val=\$$as_ac_var
6020    if test "x$as_val" = x""yes; then :
6021   cat >>confdefs.h <<_ACEOF
6022 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6023 _ACEOF
6024
6025 fi
6026 done
6027
6028
6029 case $host in
6030 alpha*-*-*)
6031   saved_CFLAGS="$CFLAGS"
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE-754 switches" >&5
6033 $as_echo_n "checking for IEEE-754 switches... " >&6; }
6034 if test "${mpfr_cv_ieee_switches+set}" = set; then :
6035   $as_echo_n "(cached) " >&6
6036 else
6037
6038   if test -n "$GCC"; then
6039     mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
6040   else
6041     mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
6042   fi
6043   CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
6044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h.  */
6046
6047 int
6048 main ()
6049 {
6050
6051   ;
6052   return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"; then :
6056
6057 else
6058   mpfr_cv_ieee_switches="none"
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061
6062 fi
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_ieee_switches" >&5
6064 $as_echo "$mpfr_cv_ieee_switches" >&6; }
6065   if test "$mpfr_cv_ieee_switches" = "none"; then
6066     CFLAGS="$saved_CFLAGS"
6067   else
6068     CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches"
6069   fi
6070 esac
6071
6072 case $host in
6073 x86_64-*linux*)
6074   case `sed -n '/^vendor_id/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
6075     *Intel*)
6076 $as_echo "#define HAVE_HOST_CORE2 1" >>confdefs.h
6077  ;;
6078   esac
6079 esac
6080
6081 ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default"
6082 if test "x$ac_cv_type_long_long_int" = x""yes; then :
6083
6084 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6085
6086 fi
6087
6088
6089 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6090 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6091
6092 cat >>confdefs.h <<_ACEOF
6093 #define HAVE_INTMAX_T 1
6094 _ACEOF
6095
6096
6097 fi
6098
6099
6100 ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" "
6101 #if HAVE_SYS_FPU_H
6102 #  include <sys/fpu.h>
6103 #endif
6104
6105 "
6106 if test "x$ac_cv_type_union_fpc_csr" = x""yes; then :
6107
6108 $as_echo "#define HAVE_FPC_CSR 1" >>confdefs.h
6109
6110 fi
6111
6112
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5
6114 $as_echo_n "checking for fesetround... " >&6; }
6115 if test "${mpfr_cv_have_fesetround+set}" = set; then :
6116   $as_echo_n "(cached) " >&6
6117 else
6118
6119 saved_LIBS="$LIBS"
6120 LIBS="$LIBS $MPFR_LIBM"
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h.  */
6123 #include <fenv.h>
6124 int
6125 main ()
6126 {
6127 fesetround(FE_TONEAREST);
6128   ;
6129   return 0;
6130 }
6131 _ACEOF
6132 if ac_fn_c_try_link "$LINENO"; then :
6133   mpfr_cv_have_fesetround=yes
6134 else
6135   mpfr_cv_have_fesetround=no
6136 fi
6137 rm -f core conftest.err conftest.$ac_objext \
6138     conftest$ac_exeext conftest.$ac_ext
6139 LIBS="$saved_LIBS"
6140
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5
6143 $as_echo "$mpfr_cv_have_fesetround" >&6; }
6144 if test "$mpfr_cv_have_fesetround" = "yes"; then
6145
6146 $as_echo "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h
6147
6148 fi
6149
6150 if test -n "$GCC"; then
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5
6152 $as_echo_n "checking for gcc float-conversion bug... " >&6; }
6153 if test "${mpfr_cv_gcc_floatconv_bug+set}" = set; then :
6154   $as_echo_n "(cached) " >&6
6155 else
6156
6157   saved_LIBS="$LIBS"
6158   LIBS="$LIBS $MPFR_LIBM"
6159   if test "$cross_compiling" = yes; then :
6160   mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
6161 else
6162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h.  */
6164
6165 #include <float.h>
6166 #ifdef MPFR_HAVE_FESETROUND
6167 #include <fenv.h>
6168 #endif
6169 static double get_max (void);
6170 int main() {
6171   double x = 0.5;
6172   double y;
6173   int i;
6174   for (i = 1; i <= 11; i++)
6175     x *= x;
6176   if (x != 0)
6177     return 1;
6178 #ifdef MPFR_HAVE_FESETROUND
6179   /* Useful test for the G4 PowerPC */
6180   fesetround(FE_TOWARDZERO);
6181   x = y = get_max ();
6182   x *= 2.0;
6183   if (x != y)
6184     return 1;
6185 #endif
6186   return 0;
6187 }
6188 static double get_max (void) { static volatile double d = DBL_MAX; return d; }
6189
6190 _ACEOF
6191 if ac_fn_c_try_run "$LINENO"; then :
6192   mpfr_cv_gcc_floatconv_bug="no"
6193 else
6194   mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
6195 fi
6196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6197   conftest.$ac_objext conftest.beam conftest.$ac_ext
6198 fi
6199
6200   LIBS="$saved_LIBS"
6201
6202 fi
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5
6204 $as_echo "$mpfr_cv_gcc_floatconv_bug" >&6; }
6205   if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
6206     CFLAGS="$CFLAGS -ffloat-store"
6207   fi
6208 fi
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for denormalized numbers" >&5
6211 $as_echo_n "checking for denormalized numbers... " >&6; }
6212 if test "${mpfr_cv_have_denorms+set}" = set; then :
6213   $as_echo_n "(cached) " >&6
6214 else
6215
6216 if test "$cross_compiling" = yes; then :
6217   mpfr_cv_have_denorms=no
6218 else
6219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h.  */
6221
6222 #include <math.h>
6223 #include <stdio.h>
6224 int main() {
6225   double x = 2.22507385850720138309e-308;
6226   fprintf (stderr, "%e\n", x / 2.0);
6227   return 2.0 * (x / 2.0) != x;
6228 }
6229
6230 _ACEOF
6231 if ac_fn_c_try_run "$LINENO"; then :
6232   mpfr_cv_have_denorms=yes
6233 else
6234   mpfr_cv_have_denorms=no
6235 fi
6236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6237   conftest.$ac_objext conftest.beam conftest.$ac_ext
6238 fi
6239
6240
6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_denorms" >&5
6243 $as_echo "$mpfr_cv_have_denorms" >&6; }
6244 if test "$mpfr_cv_have_denorms" = "yes"; then
6245
6246 $as_echo "#define HAVE_DENORMS 1" >>confdefs.h
6247
6248 fi
6249
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5
6251 $as_echo_n "checking if NAN == NAN... " >&6; }
6252 if test "${mpfr_cv_nanisnan+set}" = set; then :
6253   $as_echo_n "(cached) " >&6
6254 else
6255
6256 if test "$cross_compiling" = yes; then :
6257   mpfr_cv_nanisnan="cannot test, assume no"
6258 else
6259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h.  */
6261
6262 #include <stdio.h>
6263 #include <math.h>
6264 #ifndef NAN
6265 # define NAN (0.0/0.0)
6266 #endif
6267 int main() {
6268   double d;
6269   d = NAN;
6270   return d != d;
6271 }
6272
6273 _ACEOF
6274 if ac_fn_c_try_run "$LINENO"; then :
6275   mpfr_cv_nanisnan="yes"
6276 else
6277   mpfr_cv_nanisnan="no"
6278 fi
6279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6280   conftest.$ac_objext conftest.beam conftest.$ac_ext
6281 fi
6282
6283
6284 fi
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5
6286 $as_echo "$mpfr_cv_nanisnan" >&6; }
6287 if test "$mpfr_cv_nanisnan" = "yes"; then
6288
6289 $as_echo "#define MPFR_NANISNAN 1" >>confdefs.h
6290
6291   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
6292 $as_echo "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5
6294 $as_echo "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5
6296 $as_echo "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used.  You" >&5
6298 $as_echo "$as_me: WARNING: -fast (depending on the compiler), has been used.  You" >&2;}
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
6300 $as_echo "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
6302 $as_echo "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
6304 $as_echo "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
6305   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5
6306 $as_echo "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5
6308 $as_echo "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5
6310 $as_echo "$as_me: WARNING: platform and/or document the behavior." >&2;}
6311 fi
6312
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5
6314 $as_echo_n "checking if charset has consecutive values... " >&6; }
6315 if test "$cross_compiling" = yes; then :
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not test" >&5
6317 $as_echo "can not test" >&6; }
6318 else
6319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h.  */
6321
6322 char *number = "0123456789";
6323 char *lower  = "abcdefghijklmnopqrstuvwxyz";
6324 char *upper  = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
6325
6326 int
6327 main ()
6328 {
6329
6330  int i;
6331  unsigned char *p;
6332  for (p = (unsigned char*) number, i = 0; i < 9; i++)
6333    if ( (*p)+1 != *(p+1) ) return 1;
6334  for (p = (unsigned char*) lower, i = 0; i < 25; i++)
6335    if ( (*p)+1 != *(p+1) ) return 1;
6336  for (p = (unsigned char*) upper, i = 0; i < 25; i++)
6337    if ( (*p)+1 != *(p+1) ) return 1;
6338
6339   ;
6340   return 0;
6341 }
6342 _ACEOF
6343 if ac_fn_c_try_run "$LINENO"; then :
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6345 $as_echo "yes" >&6; }
6346 else
6347
6348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6350
6351 $as_echo "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h
6352
6353
6354 fi
6355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6356   conftest.$ac_objext conftest.beam conftest.$ac_ext
6357 fi
6358
6359
6360 saved_LIBS="$LIBS"
6361 LIBS="$LIBS $MPFR_LIBM"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5
6363 $as_echo_n "checking for math/round... " >&6; }
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h.  */
6366
6367 #include <math.h>
6368 int f (double (*func)(double)) { return 0;}
6369
6370 int
6371 main ()
6372 {
6373
6374  double a = 17.42;
6375  a = f (round);
6376  return 0;
6377
6378   ;
6379   return 0;
6380 }
6381 _ACEOF
6382 if ac_fn_c_try_link "$LINENO"; then :
6383
6384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6385 $as_echo "yes" >&6; }
6386
6387 $as_echo "#define HAVE_ROUND 1" >>confdefs.h
6388
6389
6390 else
6391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext \
6395     conftest$ac_exeext conftest.$ac_ext
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5
6398 $as_echo_n "checking for math/trunc... " >&6; }
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h.  */
6401
6402 #include <math.h>
6403 int f (double (*func)(double)) { return 0;}
6404
6405 int
6406 main ()
6407 {
6408
6409  double a = 17.42;
6410  a = f(trunc);
6411  return 0;
6412
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_link "$LINENO"; then :
6418
6419    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6420 $as_echo "yes" >&6; }
6421
6422 $as_echo "#define HAVE_TRUNC 1" >>confdefs.h
6423
6424
6425 else
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext \
6430     conftest$ac_exeext conftest.$ac_ext
6431
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5
6433 $as_echo_n "checking for math/floor... " >&6; }
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h.  */
6436
6437 #include <math.h>
6438 int f (double (*func)(double)) { return 0;}
6439
6440 int
6441 main ()
6442 {
6443
6444  double a = 17.42;
6445  a = f(floor);
6446  return 0;
6447
6448   ;
6449   return 0;
6450 }
6451 _ACEOF
6452 if ac_fn_c_try_link "$LINENO"; then :
6453
6454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6455 $as_echo "yes" >&6; }
6456
6457 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
6458
6459
6460 else
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6463 fi
6464 rm -f core conftest.err conftest.$ac_objext \
6465     conftest$ac_exeext conftest.$ac_ext
6466
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5
6468 $as_echo_n "checking for math/ceil... " >&6; }
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h.  */
6471
6472 #include <math.h>
6473 int f (double (*func)(double)) { return 0;}
6474
6475 int
6476 main ()
6477 {
6478
6479  double a = 17.42;
6480  a = f(ceil);
6481  return 0;
6482
6483   ;
6484   return 0;
6485 }
6486 _ACEOF
6487 if ac_fn_c_try_link "$LINENO"; then :
6488
6489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6490 $as_echo "yes" >&6; }
6491
6492 $as_echo "#define HAVE_CEIL 1" >>confdefs.h
6493
6494
6495 else
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext \
6500     conftest$ac_exeext conftest.$ac_ext
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/rint" >&5
6503 $as_echo_n "checking for math/rint... " >&6; }
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h.  */
6506
6507 #include <math.h>
6508 int f (double (*func)(double)) { return 0;}
6509
6510 int
6511 main ()
6512 {
6513
6514  double a = 17.42;
6515  a = f(nearbyint);
6516  return 0;
6517
6518   ;
6519   return 0;
6520 }
6521 _ACEOF
6522 if ac_fn_c_try_link "$LINENO"; then :
6523
6524    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6525 $as_echo "yes" >&6; }
6526
6527 $as_echo "#define HAVE_NEARBYINT 1" >>confdefs.h
6528
6529
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext \
6535     conftest$ac_exeext conftest.$ac_ext
6536
6537 LIBS="$saved_LIBS"
6538
6539
6540
6541
6542 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
6543 if test "x$ac_cv_type_long_double" = x""yes; then :
6544
6545 cat >>confdefs.h <<_ACEOF
6546 #define HAVE_LONG_DOUBLE 1
6547 _ACEOF
6548
6549
6550 fi
6551
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`long double' floating point" >&5
6553 $as_echo_n "checking format of \`long double' floating point... " >&6; }
6554 if test "${mpfr_cv_c_long_double_format+set}" = set; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   mpfr_cv_c_long_double_format=unknown
6558 if test "$ac_cv_type_long_double" != yes; then
6559   mpfr_cv_c_long_double_format="not available"
6560 else
6561   cat >conftest.c <<\EOF
6562
6563 /* "before" is 16 bytes to ensure there's no padding between it and "x".
6564    We're not expecting any "long double" bigger than 16 bytes or with
6565    alignment requirements stricter than 16 bytes.  */
6566 struct {
6567   char         before[16];
6568   long double  x;
6569   char         after[8];
6570 } foo = {
6571   { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
6572     '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
6573   -123456789.0,
6574   { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
6575 };
6576
6577 EOF
6578   mpfr_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
6579   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
6580   (eval $mpfr_compile) 2>&5
6581   ac_status=$?
6582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583   test $ac_status = 0; }; then
6584     cat >conftest.awk <<\EOF
6585
6586 BEGIN {
6587   found = 0
6588 }
6589
6590 # got[] holds a sliding window of bytes read the input.  got[0] is the most
6591 # recent byte read, and got[31] the oldest byte read, so when looking to
6592 # match some data the indices are "reversed".
6593 #
6594 {
6595   for (f = 2; f <= NF; f++)
6596     {
6597       # new byte, shift others up
6598       for (i = 31; i >= 0; i--)
6599         got[i+1] = got[i];
6600       got[0] = $f;
6601
6602       # end sequence
6603       if (got[7] != "376") continue
6604       if (got[6] != "334") continue
6605       if (got[5] != "272") continue
6606       if (got[4] != "230") continue
6607       if (got[3] != "166") continue
6608       if (got[2] != "124") continue
6609       if (got[1] != "062") continue
6610       if (got[0] != "020") continue
6611
6612       # start sequence, with 12-byte body
6613       if (got[27] == "001" && \
6614           got[26] == "043" && \
6615           got[25] == "105" && \
6616           got[24] == "147" && \
6617           got[23] == "211" && \
6618           got[22] == "253" && \
6619           got[21] == "315" && \
6620           got[20] == "357")
6621         {
6622           saw = " (" got[19] \
6623                  " " got[18] \
6624                  " " got[17] \
6625                  " " got[16] \
6626                  " " got[15] \
6627                  " " got[14] \
6628                  " " got[13] \
6629                  " " got[12] \
6630                  " " got[11] \
6631                  " " got[10] \
6632                  " " got[9]  \
6633                  " " got[8] ")"
6634
6635           if (got[19] == "000" && \
6636               got[18] == "000" && \
6637               got[17] == "000" && \
6638               got[16] == "000" && \
6639               got[15] == "240" && \
6640               got[14] == "242" && \
6641               got[13] == "171" && \
6642               got[12] == "353" && \
6643               got[11] == "031" && \
6644               got[10] == "300")
6645             {
6646               print "IEEE extended, little endian"
6647               found = 1
6648               exit
6649             }
6650         }
6651
6652       # start sequence, with 16-byte body
6653       if (got[31] == "001" && \
6654           got[30] == "043" && \
6655           got[29] == "105" && \
6656           got[28] == "147" && \
6657           got[27] == "211" && \
6658           got[26] == "253" && \
6659           got[25] == "315" && \
6660           got[24] == "357")
6661         {
6662           saw = " (" got[23] \
6663                  " " got[22] \
6664                  " " got[21] \
6665                  " " got[20] \
6666                  " " got[19] \
6667                  " " got[18] \
6668                  " " got[17] \
6669                  " " got[16] \
6670                  " " got[15] \
6671                  " " got[14] \
6672                  " " got[13] \
6673                  " " got[12] \
6674                  " " got[11] \
6675                  " " got[10] \
6676                  " " got[9]  \
6677                  " " got[8] ")"
6678
6679           if (got[23] == "000" && \
6680               got[22] == "000" && \
6681               got[21] == "000" && \
6682               got[20] == "000" && \
6683               got[19] == "240" && \
6684               got[18] == "242" && \
6685               got[17] == "171" && \
6686               got[16] == "353" && \
6687               got[15] == "031" && \
6688               got[14] == "300")
6689             {
6690               print "IEEE extended, little endian"
6691               found = 1
6692               exit
6693             }
6694
6695           if (got[23] == "300" && \
6696               got[22] == "031" && \
6697               got[21] == "326" && \
6698               got[20] == "363" && \
6699               got[19] == "105" && \
6700               got[18] == "100" && \
6701               got[17] == "000" && \
6702               got[16] == "000" && \
6703               got[15] == "000" && \
6704               got[14] == "000" && \
6705               got[13] == "000" && \
6706               got[12] == "000" && \
6707               got[11] == "000" && \
6708               got[10] == "000" && \
6709               got[9]  == "000" && \
6710               got[8]  == "000")
6711             {
6712               print "IEEE quad, big endian"
6713               found = 1
6714               exit
6715             }
6716         }
6717     }
6718 }
6719
6720 END {
6721   if (! found)
6722     print "unknown", saw
6723 }
6724
6725 EOF
6726     mpfr_cv_c_long_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
6727     case $mpfr_cv_c_long_double_format in
6728     unknown*)
6729       echo "cannot match anything, conftest.$OBJEXT contains" >&5
6730       od -b conftest.$OBJEXT >&5
6731       ;;
6732     esac
6733   else
6734     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
6735 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
6736   fi
6737 fi
6738 rm -f conftest*
6739
6740 fi
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5
6742 $as_echo "$mpfr_cv_c_long_double_format" >&6; }
6743
6744
6745
6746 case $mpfr_cv_c_long_double_format in
6747   "IEEE extended, little endian")
6748     $as_echo "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h
6749
6750     ;;
6751   "IEEE quad, big endian")
6752     $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h
6753
6754     ;;
6755   unknown* | "not available")
6756     ;;
6757   *)
6758     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&5
6759 $as_echo "$as_me: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&2;}
6760     ;;
6761 esac
6762
6763
6764 if test "$enable_thread_safe" = yes; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
6766 $as_echo_n "checking for TLS support... " >&6; }
6767 if test "${mpfr_cv_working_tls+set}" = set; then :
6768   $as_echo_n "(cached) " >&6
6769 else
6770
6771 saved_CPPFLAGS="$CPPFLAGS"
6772 # The -I$srcdir is necessary when objdir is different from srcdir.
6773 CPPFLAGS="$CPPFLAGS -I$srcdir"
6774 if test "$cross_compiling" = yes; then :
6775   mpfr_cv_working_tls="cannot test, assume yes"
6776 else
6777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h.  */
6779
6780 #define MPFR_USE_THREAD_SAFE 1
6781 #include "mpfr-thread.h"
6782 MPFR_THREAD_ATTR int x = 17;
6783 int main() {
6784   return x != 17;
6785 }
6786
6787 _ACEOF
6788 if ac_fn_c_try_run "$LINENO"; then :
6789   mpfr_cv_working_tls="yes"
6790 else
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6793       as_fn_error "please configure with --disable-thread-safe" "$LINENO" 5
6794 fi
6795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6796   conftest.$ac_objext conftest.beam conftest.$ac_ext
6797 fi
6798
6799 CPPFLAGS="$saved_CPPFLAGS"
6800
6801 fi
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_working_tls" >&5
6803 $as_echo "$mpfr_cv_working_tls" >&6; }
6804 fi
6805
6806
6807 if test -n "$variable_indefinie" ; then
6808  ac_ext=cpp
6809 ac_cpp='$CXXCPP $CPPFLAGS'
6810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6813 if test -z "$CXX"; then
6814   if test -n "$CCC"; then
6815     CXX=$CCC
6816   else
6817     if test -n "$ac_tool_prefix"; then
6818   for ac_prog in g++
6819   do
6820     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if test "${ac_cv_prog_CXX+set}" = set; then :
6825   $as_echo_n "(cached) " >&6
6826 else
6827   if test -n "$CXX"; then
6828   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835     for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842   done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 CXX=$ac_cv_prog_CXX
6848 if test -n "$CXX"; then
6849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6850 $as_echo "$CXX" >&6; }
6851 else
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855
6856
6857     test -n "$CXX" && break
6858   done
6859 fi
6860 if test -z "$CXX"; then
6861   ac_ct_CXX=$CXX
6862   for ac_prog in g++
6863 do
6864   # Extract the first word of "$ac_prog", so it can be a program name with args.
6865 set dummy $ac_prog; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6869   $as_echo_n "(cached) " >&6
6870 else
6871   if test -n "$ac_ct_CXX"; then
6872   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879     for ac_exec_ext in '' $ac_executable_extensions; do
6880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881     ac_cv_prog_ac_ct_CXX="$ac_prog"
6882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886   done
6887 IFS=$as_save_IFS
6888
6889 fi
6890 fi
6891 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6892 if test -n "$ac_ct_CXX"; then
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6894 $as_echo "$ac_ct_CXX" >&6; }
6895 else
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6898 fi
6899
6900
6901   test -n "$ac_ct_CXX" && break
6902 done
6903
6904   if test "x$ac_ct_CXX" = x; then
6905     CXX="g++"
6906   else
6907     case $cross_compiling:$ac_tool_warned in
6908 yes:)
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6911 ac_tool_warned=yes ;;
6912 esac
6913     CXX=$ac_ct_CXX
6914   fi
6915 fi
6916
6917   fi
6918 fi
6919 # Provide some information about the compiler.
6920 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6921 set X $ac_compile
6922 ac_compiler=$2
6923 for ac_option in --version -v -V -qversion; do
6924   { { ac_try="$ac_compiler $ac_option >&5"
6925 case "(($ac_try" in
6926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927   *) ac_try_echo=$ac_try;;
6928 esac
6929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6930 $as_echo "$ac_try_echo"; } >&5
6931   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6932   ac_status=$?
6933   if test -s conftest.err; then
6934     sed '10a\
6935 ... rest of stderr output deleted ...
6936          10q' conftest.err >conftest.er1
6937     cat conftest.er1 >&5
6938     rm -f conftest.er1 conftest.err
6939   fi
6940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941   test $ac_status = 0; }
6942 done
6943
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6945 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6946 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6947   $as_echo_n "(cached) " >&6
6948 else
6949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h.  */
6951
6952 int
6953 main ()
6954 {
6955 #ifndef __GNUC__
6956        choke me
6957 #endif
6958
6959   ;
6960   return 0;
6961 }
6962 _ACEOF
6963 if ac_fn_cxx_try_compile "$LINENO"; then :
6964   ac_compiler_gnu=yes
6965 else
6966   ac_compiler_gnu=no
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6970
6971 fi
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6973 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6974 if test $ac_compiler_gnu = yes; then
6975   GXX=yes
6976 else
6977   GXX=
6978 fi
6979 ac_test_CXXFLAGS=${CXXFLAGS+set}
6980 ac_save_CXXFLAGS=$CXXFLAGS
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6982 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6983 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6984   $as_echo_n "(cached) " >&6
6985 else
6986   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6987    ac_cxx_werror_flag=yes
6988    ac_cv_prog_cxx_g=no
6989    CXXFLAGS="-g"
6990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h.  */
6992
6993 int
6994 main ()
6995 {
6996
6997   ;
6998   return 0;
6999 }
7000 _ACEOF
7001 if ac_fn_cxx_try_compile "$LINENO"; then :
7002   ac_cv_prog_cxx_g=yes
7003 else
7004   CXXFLAGS=""
7005       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h.  */
7007
7008 int
7009 main ()
7010 {
7011
7012   ;
7013   return 0;
7014 }
7015 _ACEOF
7016 if ac_fn_cxx_try_compile "$LINENO"; then :
7017
7018 else
7019   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7020          CXXFLAGS="-g"
7021          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h.  */
7023
7024 int
7025 main ()
7026 {
7027
7028   ;
7029   return 0;
7030 }
7031 _ACEOF
7032 if ac_fn_cxx_try_compile "$LINENO"; then :
7033   ac_cv_prog_cxx_g=yes
7034 fi
7035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7043 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7044 if test "$ac_test_CXXFLAGS" = set; then
7045   CXXFLAGS=$ac_save_CXXFLAGS
7046 elif test $ac_cv_prog_cxx_g = yes; then
7047   if test "$GXX" = yes; then
7048     CXXFLAGS="-g -O2"
7049   else
7050     CXXFLAGS="-g"
7051   fi
7052 else
7053   if test "$GXX" = yes; then
7054     CXXFLAGS="-O2"
7055   else
7056     CXXFLAGS=
7057   fi
7058 fi
7059 ac_ext=c
7060 ac_cpp='$CPP $CPPFLAGS'
7061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7064
7065 depcc="$CXX"  am_compiler_list=
7066
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7068 $as_echo_n "checking dependency style of $depcc... " >&6; }
7069 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7073   # We make a subdir and do the tests there.  Otherwise we can end up
7074   # making bogus files that we don't know about and never remove.  For
7075   # instance it was reported that on HP-UX the gcc test will end up
7076   # making a dummy file named `D' -- because `-MD' means `put the output
7077   # in D'.
7078   mkdir conftest.dir
7079   # Copy depcomp to subdir because otherwise we won't find it if we're
7080   # using a relative directory.
7081   cp "$am_depcomp" conftest.dir
7082   cd conftest.dir
7083   # We will build objects and dependencies in a subdirectory because
7084   # it helps to detect inapplicable dependency modes.  For instance
7085   # both Tru64's cc and ICC support -MD to output dependencies as a
7086   # side effect of compilation, but ICC will put the dependencies in
7087   # the current directory while Tru64 will put them in the object
7088   # directory.
7089   mkdir sub
7090
7091   am_cv_CXX_dependencies_compiler_type=none
7092   if test "$am_compiler_list" = ""; then
7093      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7094   fi
7095   am__universal=false
7096   case " $depcc " in #(
7097      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7098      esac
7099
7100   for depmode in $am_compiler_list; do
7101     # Setup a source with many dependencies, because some compilers
7102     # like to wrap large dependency lists on column 80 (with \), and
7103     # we should not choose a depcomp mode which is confused by this.
7104     #
7105     # We need to recreate these files for each test, as the compiler may
7106     # overwrite some of them when testing with obscure command lines.
7107     # This happens at least with the AIX C compiler.
7108     : > sub/conftest.c
7109     for i in 1 2 3 4 5 6; do
7110       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7111       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7112       # Solaris 8's {/usr,}/bin/sh.
7113       touch sub/conftst$i.h
7114     done
7115     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7116
7117     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7118     # mode.  It turns out that the SunPro C++ compiler does not properly
7119     # handle `-M -o', and we need to detect this.  Also, some Intel
7120     # versions had trouble with output in subdirs
7121     am__obj=sub/conftest.${OBJEXT-o}
7122     am__minus_obj="-o $am__obj"
7123     case $depmode in
7124     gcc)
7125       # This depmode causes a compiler race in universal mode.
7126       test "$am__universal" = false || continue
7127       ;;
7128     nosideeffect)
7129       # after this tag, mechanisms are not by side-effect, so they'll
7130       # only be used when explicitly requested
7131       if test "x$enable_dependency_tracking" = xyes; then
7132         continue
7133       else
7134         break
7135       fi
7136       ;;
7137     msvisualcpp | msvcmsys)
7138       # This compiler won't grok `-c -o', but also, the minuso test has
7139       # not run yet.  These depmodes are late enough in the game, and
7140       # so weak that their functioning should not be impacted.
7141       am__obj=conftest.${OBJEXT-o}
7142       am__minus_obj=
7143       ;;
7144     none) break ;;
7145     esac
7146     if depmode=$depmode \
7147        source=sub/conftest.c object=$am__obj \
7148        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7149        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7150          >/dev/null 2>conftest.err &&
7151        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7152        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7153        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7154        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7155       # icc doesn't choke on unknown options, it will just issue warnings
7156       # or remarks (even with -Werror).  So we grep stderr for any message
7157       # that says an option was ignored or not supported.
7158       # When given -MP, icc 7.0 and 7.1 complain thusly:
7159       #   icc: Command line warning: ignoring option '-M'; no argument required
7160       # The diagnosis changed in icc 8.0:
7161       #   icc: Command line remark: option '-MP' not supported
7162       if (grep 'ignoring option' conftest.err ||
7163           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7164         am_cv_CXX_dependencies_compiler_type=$depmode
7165         break
7166       fi
7167     fi
7168   done
7169
7170   cd ..
7171   rm -rf conftest.dir
7172 else
7173   am_cv_CXX_dependencies_compiler_type=none
7174 fi
7175
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7178 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7179 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7180
7181  if
7182   test "x$enable_dependency_tracking" != xno \
7183   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7184   am__fastdepCXX_TRUE=
7185   am__fastdepCXX_FALSE='#'
7186 else
7187   am__fastdepCXX_TRUE='#'
7188   am__fastdepCXX_FALSE=
7189 fi
7190
7191
7192  ac_ext=f
7193 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7194 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7196 if test -n "$ac_tool_prefix"; then
7197   for ac_prog in g77
7198   do
7199     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if test "${ac_cv_prog_F77+set}" = set; then :
7204   $as_echo_n "(cached) " >&6
7205 else
7206   if test -n "$F77"; then
7207   ac_cv_prog_F77="$F77" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214     for ac_exec_ext in '' $ac_executable_extensions; do
7215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221   done
7222 IFS=$as_save_IFS
7223
7224 fi
7225 fi
7226 F77=$ac_cv_prog_F77
7227 if test -n "$F77"; then
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7229 $as_echo "$F77" >&6; }
7230 else
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7233 fi
7234
7235
7236     test -n "$F77" && break
7237   done
7238 fi
7239 if test -z "$F77"; then
7240   ac_ct_F77=$F77
7241   for ac_prog in g77
7242 do
7243   # Extract the first word of "$ac_prog", so it can be a program name with args.
7244 set dummy $ac_prog; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   if test -n "$ac_ct_F77"; then
7251   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258     for ac_exec_ext in '' $ac_executable_extensions; do
7259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260     ac_cv_prog_ac_ct_F77="$ac_prog"
7261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265   done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7271 if test -n "$ac_ct_F77"; then
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7273 $as_echo "$ac_ct_F77" >&6; }
7274 else
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279
7280   test -n "$ac_ct_F77" && break
7281 done
7282
7283   if test "x$ac_ct_F77" = x; then
7284     F77=""
7285   else
7286     case $cross_compiling:$ac_tool_warned in
7287 yes:)
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7290 ac_tool_warned=yes ;;
7291 esac
7292     F77=$ac_ct_F77
7293   fi
7294 fi
7295
7296
7297 # Provide some information about the compiler.
7298 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7299 set X $ac_compile
7300 ac_compiler=$2
7301 for ac_option in --version -v -V -qversion; do
7302   { { ac_try="$ac_compiler $ac_option >&5"
7303 case "(($ac_try" in
7304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305   *) ac_try_echo=$ac_try;;
7306 esac
7307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7308 $as_echo "$ac_try_echo"; } >&5
7309   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7310   ac_status=$?
7311   if test -s conftest.err; then
7312     sed '10a\
7313 ... rest of stderr output deleted ...
7314          10q' conftest.err >conftest.er1
7315     cat conftest.er1 >&5
7316     rm -f conftest.er1 conftest.err
7317   fi
7318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7319   test $ac_status = 0; }
7320 done
7321 rm -f a.out
7322
7323 # If we don't use `.F' as extension, the preprocessor is not run on the
7324 # input file.  (Note that this only needs to work for GNU compilers.)
7325 ac_save_ext=$ac_ext
7326 ac_ext=F
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7328 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7329 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   cat > conftest.$ac_ext <<_ACEOF
7333       program main
7334 #ifndef __GNUC__
7335        choke me
7336 #endif
7337
7338       end
7339 _ACEOF
7340 if ac_fn_f77_try_compile "$LINENO"; then :
7341   ac_compiler_gnu=yes
7342 else
7343   ac_compiler_gnu=no
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7347
7348 fi
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7350 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7351 ac_ext=$ac_save_ext
7352 ac_test_FFLAGS=${FFLAGS+set}
7353 ac_save_FFLAGS=$FFLAGS
7354 FFLAGS=
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7356 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7357 if test "${ac_cv_prog_f77_g+set}" = set; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   FFLAGS=-g
7361 cat > conftest.$ac_ext <<_ACEOF
7362       program main
7363
7364       end
7365 _ACEOF
7366 if ac_fn_f77_try_compile "$LINENO"; then :
7367   ac_cv_prog_f77_g=yes
7368 else
7369   ac_cv_prog_f77_g=no
7370 fi
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372
7373 fi
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7375 $as_echo "$ac_cv_prog_f77_g" >&6; }
7376 if test "$ac_test_FFLAGS" = set; then
7377   FFLAGS=$ac_save_FFLAGS
7378 elif test $ac_cv_prog_f77_g = yes; then
7379   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7380     FFLAGS="-g -O2"
7381   else
7382     FFLAGS="-g"
7383   fi
7384 else
7385   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7386     FFLAGS="-O2"
7387   else
7388     FFLAGS=
7389   fi
7390 fi
7391
7392 if test $ac_compiler_gnu = yes; then
7393   G77=yes
7394 else
7395   G77=
7396 fi
7397 ac_ext=c
7398 ac_cpp='$CPP $CPPFLAGS'
7399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7402
7403  ac_ext=cpp
7404 ac_cpp='$CXXCPP $CPPFLAGS'
7405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7409 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7410 if test -z "$CXXCPP"; then
7411   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414       # Double quotes because CXXCPP needs to be expanded
7415     for CXXCPP in "$CXX -E" "/lib/cpp"
7416     do
7417       ac_preproc_ok=false
7418 for ac_cxx_preproc_warn_flag in '' yes
7419 do
7420   # Use a header file that comes with gcc, so configuring glibc
7421   # with a fresh cross-compiler works.
7422   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7423   # <limits.h> exists even on freestanding compilers.
7424   # On the NeXT, cc -E runs the code through the compiler's parser,
7425   # not just through cpp. "Syntax error" is here to catch this case.
7426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h.  */
7428 #ifdef __STDC__
7429 # include <limits.h>
7430 #else
7431 # include <assert.h>
7432 #endif
7433                      Syntax error
7434 _ACEOF
7435 if ac_fn_cxx_try_cpp "$LINENO"; then :
7436
7437 else
7438   # Broken: fails on valid input.
7439 continue
7440 fi
7441 rm -f conftest.err conftest.$ac_ext
7442
7443   # OK, works on sane cases.  Now check whether nonexistent headers
7444   # can be detected and how.
7445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h.  */
7447 #include <ac_nonexistent.h>
7448 _ACEOF
7449 if ac_fn_cxx_try_cpp "$LINENO"; then :
7450   # Broken: success on invalid input.
7451 continue
7452 else
7453   # Passes both tests.
7454 ac_preproc_ok=:
7455 break
7456 fi
7457 rm -f conftest.err conftest.$ac_ext
7458
7459 done
7460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7461 rm -f conftest.err conftest.$ac_ext
7462 if $ac_preproc_ok; then :
7463   break
7464 fi
7465
7466     done
7467     ac_cv_prog_CXXCPP=$CXXCPP
7468
7469 fi
7470   CXXCPP=$ac_cv_prog_CXXCPP
7471 else
7472   ac_cv_prog_CXXCPP=$CXXCPP
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7475 $as_echo "$CXXCPP" >&6; }
7476 ac_preproc_ok=false
7477 for ac_cxx_preproc_warn_flag in '' yes
7478 do
7479   # Use a header file that comes with gcc, so configuring glibc
7480   # with a fresh cross-compiler works.
7481   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7482   # <limits.h> exists even on freestanding compilers.
7483   # On the NeXT, cc -E runs the code through the compiler's parser,
7484   # not just through cpp. "Syntax error" is here to catch this case.
7485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h.  */
7487 #ifdef __STDC__
7488 # include <limits.h>
7489 #else
7490 # include <assert.h>
7491 #endif
7492                      Syntax error
7493 _ACEOF
7494 if ac_fn_cxx_try_cpp "$LINENO"; then :
7495
7496 else
7497   # Broken: fails on valid input.
7498 continue
7499 fi
7500 rm -f conftest.err conftest.$ac_ext
7501
7502   # OK, works on sane cases.  Now check whether nonexistent headers
7503   # can be detected and how.
7504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h.  */
7506 #include <ac_nonexistent.h>
7507 _ACEOF
7508 if ac_fn_cxx_try_cpp "$LINENO"; then :
7509   # Broken: success on invalid input.
7510 continue
7511 else
7512   # Passes both tests.
7513 ac_preproc_ok=:
7514 break
7515 fi
7516 rm -f conftest.err conftest.$ac_ext
7517
7518 done
7519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7520 rm -f conftest.err conftest.$ac_ext
7521 if $ac_preproc_ok; then :
7522
7523 else
7524   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7526 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
7527 See \`config.log' for more details." "$LINENO" 5; }
7528 fi
7529
7530 ac_ext=c
7531 ac_cpp='$CPP $CPPFLAGS'
7532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7535
7536 fi
7537 am__fastdepCXX_FALSE='#'
7538 if test "${with_tags+set}" != set; then
7539   with_tags=
7540 fi
7541
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
7544 $as_echo_n "checking for gmp.h... " >&6; }
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h.  */
7547
7548 #include "gmp.h"
7549
7550 _ACEOF
7551 if ac_fn_c_try_compile "$LINENO"; then :
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7553 $as_echo "yes" >&6; }
7554 else
7555
7556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7558  as_fn_error "gmp.h can't be found, or is unusable." "$LINENO" 5
7559
7560 fi
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562
7563 enable_win32_dll=yes
7564
7565 case $host in
7566 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7567   if test -n "$ac_tool_prefix"; then
7568   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}as; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if test "${ac_cv_prog_AS+set}" = set; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   if test -n "$AS"; then
7576   ac_cv_prog_AS="$AS" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583     for ac_exec_ext in '' $ac_executable_extensions; do
7584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585     ac_cv_prog_AS="${ac_tool_prefix}as"
7586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590   done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 AS=$ac_cv_prog_AS
7596 if test -n "$AS"; then
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7598 $as_echo "$AS" >&6; }
7599 else
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604
7605 fi
7606 if test -z "$ac_cv_prog_AS"; then
7607   ac_ct_AS=$AS
7608   # Extract the first word of "as", so it can be a program name with args.
7609 set dummy as; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7613   $as_echo_n "(cached) " >&6
7614 else
7615   if test -n "$ac_ct_AS"; then
7616   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621   IFS=$as_save_IFS
7622   test -z "$as_dir" && as_dir=.
7623     for ac_exec_ext in '' $ac_executable_extensions; do
7624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625     ac_cv_prog_ac_ct_AS="as"
7626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627     break 2
7628   fi
7629 done
7630   done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7636 if test -n "$ac_ct_AS"; then
7637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7638 $as_echo "$ac_ct_AS" >&6; }
7639 else
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644   if test "x$ac_ct_AS" = x; then
7645     AS="false"
7646   else
7647     case $cross_compiling:$ac_tool_warned in
7648 yes:)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7652 esac
7653     AS=$ac_ct_AS
7654   fi
7655 else
7656   AS="$ac_cv_prog_AS"
7657 fi
7658
7659   if test -n "$ac_tool_prefix"; then
7660   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   if test -n "$DLLTOOL"; then
7668   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673   IFS=$as_save_IFS
7674   test -z "$as_dir" && as_dir=.
7675     for ac_exec_ext in '' $ac_executable_extensions; do
7676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7677     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679     break 2
7680   fi
7681 done
7682   done
7683 IFS=$as_save_IFS
7684
7685 fi
7686 fi
7687 DLLTOOL=$ac_cv_prog_DLLTOOL
7688 if test -n "$DLLTOOL"; then
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7690 $as_echo "$DLLTOOL" >&6; }
7691 else
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7694 fi
7695
7696
7697 fi
7698 if test -z "$ac_cv_prog_DLLTOOL"; then
7699   ac_ct_DLLTOOL=$DLLTOOL
7700   # Extract the first word of "dlltool", so it can be a program name with args.
7701 set dummy dlltool; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   if test -n "$ac_ct_DLLTOOL"; then
7708   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713   IFS=$as_save_IFS
7714   test -z "$as_dir" && as_dir=.
7715     for ac_exec_ext in '' $ac_executable_extensions; do
7716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719     break 2
7720   fi
7721 done
7722   done
7723 IFS=$as_save_IFS
7724
7725 fi
7726 fi
7727 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7728 if test -n "$ac_ct_DLLTOOL"; then
7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7730 $as_echo "$ac_ct_DLLTOOL" >&6; }
7731 else
7732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7734 fi
7735
7736   if test "x$ac_ct_DLLTOOL" = x; then
7737     DLLTOOL="false"
7738   else
7739     case $cross_compiling:$ac_tool_warned in
7740 yes:)
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7743 ac_tool_warned=yes ;;
7744 esac
7745     DLLTOOL=$ac_ct_DLLTOOL
7746   fi
7747 else
7748   DLLTOOL="$ac_cv_prog_DLLTOOL"
7749 fi
7750
7751   if test -n "$ac_tool_prefix"; then
7752   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7757   $as_echo_n "(cached) " >&6
7758 else
7759   if test -n "$OBJDUMP"; then
7760   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767     for ac_exec_ext in '' $ac_executable_extensions; do
7768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774   done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 OBJDUMP=$ac_cv_prog_OBJDUMP
7780 if test -n "$OBJDUMP"; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7782 $as_echo "$OBJDUMP" >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789 fi
7790 if test -z "$ac_cv_prog_OBJDUMP"; then
7791   ac_ct_OBJDUMP=$OBJDUMP
7792   # Extract the first word of "objdump", so it can be a program name with args.
7793 set dummy objdump; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   if test -n "$ac_ct_OBJDUMP"; then
7800   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807     for ac_exec_ext in '' $ac_executable_extensions; do
7808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814   done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7820 if test -n "$ac_ct_OBJDUMP"; then
7821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7822 $as_echo "$ac_ct_OBJDUMP" >&6; }
7823 else
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828   if test "x$ac_ct_OBJDUMP" = x; then
7829     OBJDUMP="false"
7830   else
7831     case $cross_compiling:$ac_tool_warned in
7832 yes:)
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7836 esac
7837     OBJDUMP=$ac_ct_OBJDUMP
7838   fi
7839 else
7840   OBJDUMP="$ac_cv_prog_OBJDUMP"
7841 fi
7842
7843   ;;
7844 esac
7845
7846 test -z "$AS" && AS=as
7847
7848
7849
7850
7851
7852 test -z "$DLLTOOL" && DLLTOOL=dlltool
7853
7854
7855
7856
7857
7858 test -z "$OBJDUMP" && OBJDUMP=objdump
7859
7860
7861
7862
7863
7864
7865
7866 case $host in
7867   *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7868    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5
7869 $as_echo_n "checking for DLL/static GMP... " >&6; }
7870    if test "$enable_shared" = yes; then
7871      LDFLAGS="$LDFLAGS -no-undefined"
7872      dont_link_with_gmp="yes"
7873      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h.  */
7875
7876 #include "gmp.h"
7877 #if !__GMP_LIBGMP_DLL
7878 # error "Dead man"
7879 error
7880 #endif
7881
7882 int
7883 main ()
7884 {
7885
7886   ;
7887   return 0;
7888 }
7889 _ACEOF
7890 if ac_fn_c_try_compile "$LINENO"; then :
7891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
7892 $as_echo "DLL" >&6; }
7893 else
7894
7895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
7896 $as_echo "static" >&6; }
7897   as_fn_error "gmp.h isn't a DLL: use --enable-static --disable-shared" "$LINENO" 5
7898 fi
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900    else
7901      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h.  */
7903
7904 #include "gmp.h"
7905 #if __GMP_LIBGMP_DLL
7906 # error "Dead man"
7907 error
7908 #endif
7909
7910 int
7911 main ()
7912 {
7913
7914   ;
7915   return 0;
7916 }
7917 _ACEOF
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
7920 $as_echo "static" >&6; }
7921 else
7922
7923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
7924 $as_echo "DLL" >&6; }
7925   as_fn_error "gmp.h is a DLL: use --disable-static --enable-shared" "$LINENO" 5
7926 fi
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928   fi
7929   ;;
7930 esac
7931 case `pwd` in
7932   *\ * | *\     *)
7933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7934 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7935 esac
7936
7937
7938
7939 macro_version='2.2.6'
7940 macro_revision='1.3012'
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954 ltmain="$ac_aux_dir/ltmain.sh"
7955
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7957 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7958 if test "${ac_cv_path_SED+set}" = set; then :
7959   $as_echo_n "(cached) " >&6
7960 else
7961             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7962      for ac_i in 1 2 3 4 5 6 7; do
7963        ac_script="$ac_script$as_nl$ac_script"
7964      done
7965      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7966      { ac_script=; unset ac_script;}
7967      if test -z "$SED"; then
7968   ac_path_SED_found=false
7969   # Loop through the user's path and test for each of PROGNAME-LIST
7970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7972 do
7973   IFS=$as_save_IFS
7974   test -z "$as_dir" && as_dir=.
7975     for ac_prog in sed gsed; do
7976     for ac_exec_ext in '' $ac_executable_extensions; do
7977       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7978       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7979 # Check for GNU ac_path_SED and select it if it is found.
7980   # Check for GNU $ac_path_SED
7981 case `"$ac_path_SED" --version 2>&1` in
7982 *GNU*)
7983   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7984 *)
7985   ac_count=0
7986   $as_echo_n 0123456789 >"conftest.in"
7987   while :
7988   do
7989     cat "conftest.in" "conftest.in" >"conftest.tmp"
7990     mv "conftest.tmp" "conftest.in"
7991     cp "conftest.in" "conftest.nl"
7992     $as_echo '' >> "conftest.nl"
7993     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7994     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7995     as_fn_arith $ac_count + 1 && ac_count=$as_val
7996     if test $ac_count -gt ${ac_path_SED_max-0}; then
7997       # Best one so far, save it but keep looking for a better one
7998       ac_cv_path_SED="$ac_path_SED"
7999       ac_path_SED_max=$ac_count
8000     fi
8001     # 10*(2^10) chars as input seems more than enough
8002     test $ac_count -gt 10 && break
8003   done
8004   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8005 esac
8006
8007       $ac_path_SED_found && break 3
8008     done
8009   done
8010   done
8011 IFS=$as_save_IFS
8012   if test -z "$ac_cv_path_SED"; then
8013     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
8014   fi
8015 else
8016   ac_cv_path_SED=$SED
8017 fi
8018
8019 fi
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8021 $as_echo "$ac_cv_path_SED" >&6; }
8022  SED="$ac_cv_path_SED"
8023   rm -f conftest.sed
8024
8025 test -z "$SED" && SED=sed
8026 Xsed="$SED -e 1s/^X//"
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8039 $as_echo_n "checking for fgrep... " >&6; }
8040 if test "${ac_cv_path_FGREP+set}" = set; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8044    then ac_cv_path_FGREP="$GREP -F"
8045    else
8046      if test -z "$FGREP"; then
8047   ac_path_FGREP_found=false
8048   # Loop through the user's path and test for each of PROGNAME-LIST
8049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8051 do
8052   IFS=$as_save_IFS
8053   test -z "$as_dir" && as_dir=.
8054     for ac_prog in fgrep; do
8055     for ac_exec_ext in '' $ac_executable_extensions; do
8056       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8057       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8058 # Check for GNU ac_path_FGREP and select it if it is found.
8059   # Check for GNU $ac_path_FGREP
8060 case `"$ac_path_FGREP" --version 2>&1` in
8061 *GNU*)
8062   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8063 *)
8064   ac_count=0
8065   $as_echo_n 0123456789 >"conftest.in"
8066   while :
8067   do
8068     cat "conftest.in" "conftest.in" >"conftest.tmp"
8069     mv "conftest.tmp" "conftest.in"
8070     cp "conftest.in" "conftest.nl"
8071     $as_echo 'FGREP' >> "conftest.nl"
8072     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8073     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8074     as_fn_arith $ac_count + 1 && ac_count=$as_val
8075     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8076       # Best one so far, save it but keep looking for a better one
8077       ac_cv_path_FGREP="$ac_path_FGREP"
8078       ac_path_FGREP_max=$ac_count
8079     fi
8080     # 10*(2^10) chars as input seems more than enough
8081     test $ac_count -gt 10 && break
8082   done
8083   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8084 esac
8085
8086       $ac_path_FGREP_found && break 3
8087     done
8088   done
8089   done
8090 IFS=$as_save_IFS
8091   if test -z "$ac_cv_path_FGREP"; then
8092     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8093   fi
8094 else
8095   ac_cv_path_FGREP=$FGREP
8096 fi
8097
8098    fi
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8101 $as_echo "$ac_cv_path_FGREP" >&6; }
8102  FGREP="$ac_cv_path_FGREP"
8103
8104
8105 test -z "$GREP" && GREP=grep
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125 # Check whether --with-gnu-ld was given.
8126 if test "${with_gnu_ld+set}" = set; then :
8127   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8128 else
8129   with_gnu_ld=no
8130 fi
8131
8132 ac_prog=ld
8133 if test "$GCC" = yes; then
8134   # Check if gcc -print-prog-name=ld gives a path.
8135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8136 $as_echo_n "checking for ld used by $CC... " >&6; }
8137   case $host in
8138   *-*-mingw*)
8139     # gcc leaves a trailing carriage return which upsets mingw
8140     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8141   *)
8142     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8143   esac
8144   case $ac_prog in
8145     # Accept absolute paths.
8146     [\\/]* | ?:[\\/]*)
8147       re_direlt='/[^/][^/]*/\.\./'
8148       # Canonicalize the pathname of ld
8149       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8150       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8151         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8152       done
8153       test -z "$LD" && LD="$ac_prog"
8154       ;;
8155   "")
8156     # If it fails, then pretend we aren't using GCC.
8157     ac_prog=ld
8158     ;;
8159   *)
8160     # If it is relative, then search for the first ld in PATH.
8161     with_gnu_ld=unknown
8162     ;;
8163   esac
8164 elif test "$with_gnu_ld" = yes; then
8165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8166 $as_echo_n "checking for GNU ld... " >&6; }
8167 else
8168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8169 $as_echo_n "checking for non-GNU ld... " >&6; }
8170 fi
8171 if test "${lt_cv_path_LD+set}" = set; then :
8172   $as_echo_n "(cached) " >&6
8173 else
8174   if test -z "$LD"; then
8175   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8176   for ac_dir in $PATH; do
8177     IFS="$lt_save_ifs"
8178     test -z "$ac_dir" && ac_dir=.
8179     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8180       lt_cv_path_LD="$ac_dir/$ac_prog"
8181       # Check to see if the program is GNU ld.  I'd rather use --version,
8182       # but apparently some variants of GNU ld only accept -v.
8183       # Break only if it was the GNU/non-GNU ld that we prefer.
8184       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8185       *GNU* | *'with BFD'*)
8186         test "$with_gnu_ld" != no && break
8187         ;;
8188       *)
8189         test "$with_gnu_ld" != yes && break
8190         ;;
8191       esac
8192     fi
8193   done
8194   IFS="$lt_save_ifs"
8195 else
8196   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8197 fi
8198 fi
8199
8200 LD="$lt_cv_path_LD"
8201 if test -n "$LD"; then
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8203 $as_echo "$LD" >&6; }
8204 else
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8207 fi
8208 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8210 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8211 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8212   $as_echo_n "(cached) " >&6
8213 else
8214   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8215 case `$LD -v 2>&1 </dev/null` in
8216 *GNU* | *'with BFD'*)
8217   lt_cv_prog_gnu_ld=yes
8218   ;;
8219 *)
8220   lt_cv_prog_gnu_ld=no
8221   ;;
8222 esac
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8225 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8226 with_gnu_ld=$lt_cv_prog_gnu_ld
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8237 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8238 if test "${lt_cv_path_NM+set}" = set; then :
8239   $as_echo_n "(cached) " >&6
8240 else
8241   if test -n "$NM"; then
8242   # Let the user override the test.
8243   lt_cv_path_NM="$NM"
8244 else
8245   lt_nm_to_check="${ac_tool_prefix}nm"
8246   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8247     lt_nm_to_check="$lt_nm_to_check nm"
8248   fi
8249   for lt_tmp_nm in $lt_nm_to_check; do
8250     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8251     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8252       IFS="$lt_save_ifs"
8253       test -z "$ac_dir" && ac_dir=.
8254       tmp_nm="$ac_dir/$lt_tmp_nm"
8255       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8256         # Check to see if the nm accepts a BSD-compat flag.
8257         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8258         #   nm: unknown option "B" ignored
8259         # Tru64's nm complains that /dev/null is an invalid object file
8260         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8261         */dev/null* | *'Invalid file or object type'*)
8262           lt_cv_path_NM="$tmp_nm -B"
8263           break
8264           ;;
8265         *)
8266           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8267           */dev/null*)
8268             lt_cv_path_NM="$tmp_nm -p"
8269             break
8270             ;;
8271           *)
8272             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8273             continue # so that we can try to find one that supports BSD flags
8274             ;;
8275           esac
8276           ;;
8277         esac
8278       fi
8279     done
8280     IFS="$lt_save_ifs"
8281   done
8282   : ${lt_cv_path_NM=no}
8283 fi
8284 fi
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8286 $as_echo "$lt_cv_path_NM" >&6; }
8287 if test "$lt_cv_path_NM" != "no"; then
8288   NM="$lt_cv_path_NM"
8289 else
8290   # Didn't find any BSD compatible name lister, look for dumpbin.
8291   if test -n "$ac_tool_prefix"; then
8292   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8293   do
8294     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8299   $as_echo_n "(cached) " >&6
8300 else
8301   if test -n "$DUMPBIN"; then
8302   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307   IFS=$as_save_IFS
8308   test -z "$as_dir" && as_dir=.
8309     for ac_exec_ext in '' $ac_executable_extensions; do
8310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313     break 2
8314   fi
8315 done
8316   done
8317 IFS=$as_save_IFS
8318
8319 fi
8320 fi
8321 DUMPBIN=$ac_cv_prog_DUMPBIN
8322 if test -n "$DUMPBIN"; then
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8324 $as_echo "$DUMPBIN" >&6; }
8325 else
8326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 fi
8329
8330
8331     test -n "$DUMPBIN" && break
8332   done
8333 fi
8334 if test -z "$DUMPBIN"; then
8335   ac_ct_DUMPBIN=$DUMPBIN
8336   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8337 do
8338   # Extract the first word of "$ac_prog", so it can be a program name with args.
8339 set dummy $ac_prog; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8343   $as_echo_n "(cached) " >&6
8344 else
8345   if test -n "$ac_ct_DUMPBIN"; then
8346   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8347 else
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351   IFS=$as_save_IFS
8352   test -z "$as_dir" && as_dir=.
8353     for ac_exec_ext in '' $ac_executable_extensions; do
8354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357     break 2
8358   fi
8359 done
8360   done
8361 IFS=$as_save_IFS
8362
8363 fi
8364 fi
8365 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8366 if test -n "$ac_ct_DUMPBIN"; then
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8368 $as_echo "$ac_ct_DUMPBIN" >&6; }
8369 else
8370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8372 fi
8373
8374
8375   test -n "$ac_ct_DUMPBIN" && break
8376 done
8377
8378   if test "x$ac_ct_DUMPBIN" = x; then
8379     DUMPBIN=":"
8380   else
8381     case $cross_compiling:$ac_tool_warned in
8382 yes:)
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8385 ac_tool_warned=yes ;;
8386 esac
8387     DUMPBIN=$ac_ct_DUMPBIN
8388   fi
8389 fi
8390
8391
8392   if test "$DUMPBIN" != ":"; then
8393     NM="$DUMPBIN"
8394   fi
8395 fi
8396 test -z "$NM" && NM=nm
8397
8398
8399
8400
8401
8402
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8404 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8405 if test "${lt_cv_nm_interface+set}" = set; then :
8406   $as_echo_n "(cached) " >&6
8407 else
8408   lt_cv_nm_interface="BSD nm"
8409   echo "int some_variable = 0;" > conftest.$ac_ext
8410   (eval echo "\"\$as_me:8410: $ac_compile\"" >&5)
8411   (eval "$ac_compile" 2>conftest.err)
8412   cat conftest.err >&5
8413   (eval echo "\"\$as_me:8413: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8414   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8415   cat conftest.err >&5
8416   (eval echo "\"\$as_me:8416: output\"" >&5)
8417   cat conftest.out >&5
8418   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8419     lt_cv_nm_interface="MS dumpbin"
8420   fi
8421   rm -f conftest*
8422 fi
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8424 $as_echo "$lt_cv_nm_interface" >&6; }
8425
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8427 $as_echo_n "checking whether ln -s works... " >&6; }
8428 LN_S=$as_ln_s
8429 if test "$LN_S" = "ln -s"; then
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8431 $as_echo "yes" >&6; }
8432 else
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8434 $as_echo "no, using $LN_S" >&6; }
8435 fi
8436
8437 # find the maximum length of command line arguments
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8439 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8440 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8441   $as_echo_n "(cached) " >&6
8442 else
8443     i=0
8444   teststring="ABCD"
8445
8446   case $build_os in
8447   msdosdjgpp*)
8448     # On DJGPP, this test can blow up pretty badly due to problems in libc
8449     # (any single argument exceeding 2000 bytes causes a buffer overrun
8450     # during glob expansion).  Even if it were fixed, the result of this
8451     # check would be larger than it should be.
8452     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8453     ;;
8454
8455   gnu*)
8456     # Under GNU Hurd, this test is not required because there is
8457     # no limit to the length of command line arguments.
8458     # Libtool will interpret -1 as no limit whatsoever
8459     lt_cv_sys_max_cmd_len=-1;
8460     ;;
8461
8462   cygwin* | mingw* | cegcc*)
8463     # On Win9x/ME, this test blows up -- it succeeds, but takes
8464     # about 5 minutes as the teststring grows exponentially.
8465     # Worse, since 9x/ME are not pre-emptively multitasking,
8466     # you end up with a "frozen" computer, even though with patience
8467     # the test eventually succeeds (with a max line length of 256k).
8468     # Instead, let's just punt: use the minimum linelength reported by
8469     # all of the supported platforms: 8192 (on NT/2K/XP).
8470     lt_cv_sys_max_cmd_len=8192;
8471     ;;
8472
8473   amigaos*)
8474     # On AmigaOS with pdksh, this test takes hours, literally.
8475     # So we just punt and use a minimum line length of 8192.
8476     lt_cv_sys_max_cmd_len=8192;
8477     ;;
8478
8479   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8480     # This has been around since 386BSD, at least.  Likely further.
8481     if test -x /sbin/sysctl; then
8482       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8483     elif test -x /usr/sbin/sysctl; then
8484       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8485     else
8486       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8487     fi
8488     # And add a safety zone
8489     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8490     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8491     ;;
8492
8493   interix*)
8494     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8495     lt_cv_sys_max_cmd_len=196608
8496     ;;
8497
8498   osf*)
8499     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8500     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8501     # nice to cause kernel panics so lets avoid the loop below.
8502     # First set a reasonable default.
8503     lt_cv_sys_max_cmd_len=16384
8504     #
8505     if test -x /sbin/sysconfig; then
8506       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8507         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8508       esac
8509     fi
8510     ;;
8511   sco3.2v5*)
8512     lt_cv_sys_max_cmd_len=102400
8513     ;;
8514   sysv5* | sco5v6* | sysv4.2uw2*)
8515     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8516     if test -n "$kargmax"; then
8517       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8518     else
8519       lt_cv_sys_max_cmd_len=32768
8520     fi
8521     ;;
8522   *)
8523     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8524     if test -n "$lt_cv_sys_max_cmd_len"; then
8525       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8526       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8527     else
8528       # Make teststring a little bigger before we do anything with it.
8529       # a 1K string should be a reasonable start.
8530       for i in 1 2 3 4 5 6 7 8 ; do
8531         teststring=$teststring$teststring
8532       done
8533       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8534       # If test is not a shell built-in, we'll probably end up computing a
8535       # maximum length that is only half of the actual maximum length, but
8536       # we can't tell.
8537       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8538                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8539               test $i != 17 # 1/2 MB should be enough
8540       do
8541         i=`expr $i + 1`
8542         teststring=$teststring$teststring
8543       done
8544       # Only check the string length outside the loop.
8545       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8546       teststring=
8547       # Add a significant safety factor because C++ compilers can tack on
8548       # massive amounts of additional arguments before passing them to the
8549       # linker.  It appears as though 1/2 is a usable value.
8550       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8551     fi
8552     ;;
8553   esac
8554
8555 fi
8556
8557 if test -n $lt_cv_sys_max_cmd_len ; then
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8559 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8560 else
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8562 $as_echo "none" >&6; }
8563 fi
8564 max_cmd_len=$lt_cv_sys_max_cmd_len
8565
8566
8567
8568
8569
8570
8571 : ${CP="cp -f"}
8572 : ${MV="mv -f"}
8573 : ${RM="rm -f"}
8574
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8576 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8577 # Try some XSI features
8578 xsi_shell=no
8579 ( _lt_dummy="a/b/c"
8580   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8581       = c,a/b,, \
8582     && eval 'test $(( 1 + 1 )) -eq 2 \
8583     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8584   && xsi_shell=yes
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8586 $as_echo "$xsi_shell" >&6; }
8587
8588
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8590 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8591 lt_shell_append=no
8592 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8593     >/dev/null 2>&1 \
8594   && lt_shell_append=yes
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8596 $as_echo "$lt_shell_append" >&6; }
8597
8598
8599 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8600   lt_unset=unset
8601 else
8602   lt_unset=false
8603 fi
8604
8605
8606
8607
8608
8609 # test EBCDIC or ASCII
8610 case `echo X|tr X '\101'` in
8611  A) # ASCII based system
8612     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8613   lt_SP2NL='tr \040 \012'
8614   lt_NL2SP='tr \015\012 \040\040'
8615   ;;
8616  *) # EBCDIC based system
8617   lt_SP2NL='tr \100 \n'
8618   lt_NL2SP='tr \r\n \100\100'
8619   ;;
8620 esac
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8631 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8632 if test "${lt_cv_ld_reload_flag+set}" = set; then :
8633   $as_echo_n "(cached) " >&6
8634 else
8635   lt_cv_ld_reload_flag='-r'
8636 fi
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8638 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8639 reload_flag=$lt_cv_ld_reload_flag
8640 case $reload_flag in
8641 "" | " "*) ;;
8642 *) reload_flag=" $reload_flag" ;;
8643 esac
8644 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8645 case $host_os in
8646   darwin*)
8647     if test "$GCC" = yes; then
8648       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8649     else
8650       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8651     fi
8652     ;;
8653 esac
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663 if test -n "$ac_tool_prefix"; then
8664   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8665 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667 $as_echo_n "checking for $ac_word... " >&6; }
8668 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8669   $as_echo_n "(cached) " >&6
8670 else
8671   if test -n "$OBJDUMP"; then
8672   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8673 else
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8676 do
8677   IFS=$as_save_IFS
8678   test -z "$as_dir" && as_dir=.
8679     for ac_exec_ext in '' $ac_executable_extensions; do
8680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8683     break 2
8684   fi
8685 done
8686   done
8687 IFS=$as_save_IFS
8688
8689 fi
8690 fi
8691 OBJDUMP=$ac_cv_prog_OBJDUMP
8692 if test -n "$OBJDUMP"; then
8693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8694 $as_echo "$OBJDUMP" >&6; }
8695 else
8696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8698 fi
8699
8700
8701 fi
8702 if test -z "$ac_cv_prog_OBJDUMP"; then
8703   ac_ct_OBJDUMP=$OBJDUMP
8704   # Extract the first word of "objdump", so it can be a program name with args.
8705 set dummy objdump; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8709   $as_echo_n "(cached) " >&6
8710 else
8711   if test -n "$ac_ct_OBJDUMP"; then
8712   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8713 else
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 for as_dir in $PATH
8716 do
8717   IFS=$as_save_IFS
8718   test -z "$as_dir" && as_dir=.
8719     for ac_exec_ext in '' $ac_executable_extensions; do
8720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8721     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723     break 2
8724   fi
8725 done
8726   done
8727 IFS=$as_save_IFS
8728
8729 fi
8730 fi
8731 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8732 if test -n "$ac_ct_OBJDUMP"; then
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8734 $as_echo "$ac_ct_OBJDUMP" >&6; }
8735 else
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8738 fi
8739
8740   if test "x$ac_ct_OBJDUMP" = x; then
8741     OBJDUMP="false"
8742   else
8743     case $cross_compiling:$ac_tool_warned in
8744 yes:)
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8747 ac_tool_warned=yes ;;
8748 esac
8749     OBJDUMP=$ac_ct_OBJDUMP
8750   fi
8751 else
8752   OBJDUMP="$ac_cv_prog_OBJDUMP"
8753 fi
8754
8755 test -z "$OBJDUMP" && OBJDUMP=objdump
8756
8757
8758
8759
8760
8761
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8763 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8764 if test "${lt_cv_deplibs_check_method+set}" = set; then :
8765   $as_echo_n "(cached) " >&6
8766 else
8767   lt_cv_file_magic_cmd='$MAGIC_CMD'
8768 lt_cv_file_magic_test_file=
8769 lt_cv_deplibs_check_method='unknown'
8770 # Need to set the preceding variable on all platforms that support
8771 # interlibrary dependencies.
8772 # 'none' -- dependencies not supported.
8773 # `unknown' -- same as none, but documents that we really don't know.
8774 # 'pass_all' -- all dependencies passed with no checks.
8775 # 'test_compile' -- check by making test program.
8776 # 'file_magic [[regex]]' -- check by looking for files in library path
8777 # which responds to the $file_magic_cmd with a given extended regex.
8778 # If you have `file' or equivalent on your system and you're not sure
8779 # whether `pass_all' will *always* work, you probably want this one.
8780
8781 case $host_os in
8782 aix[4-9]*)
8783   lt_cv_deplibs_check_method=pass_all
8784   ;;
8785
8786 beos*)
8787   lt_cv_deplibs_check_method=pass_all
8788   ;;
8789
8790 bsdi[45]*)
8791   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8792   lt_cv_file_magic_cmd='/usr/bin/file -L'
8793   lt_cv_file_magic_test_file=/shlib/libc.so
8794   ;;
8795
8796 cygwin*)
8797   # func_win32_libid is a shell function defined in ltmain.sh
8798   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8799   lt_cv_file_magic_cmd='func_win32_libid'
8800   ;;
8801
8802 mingw* | pw32*)
8803   # Base MSYS/MinGW do not provide the 'file' command needed by
8804   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8805   # unless we find 'file', for example because we are cross-compiling.
8806   if ( file / ) >/dev/null 2>&1; then
8807     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8808     lt_cv_file_magic_cmd='func_win32_libid'
8809   else
8810     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8811     lt_cv_file_magic_cmd='$OBJDUMP -f'
8812   fi
8813   ;;
8814
8815 cegcc)
8816   # use the weaker test based on 'objdump'. See mingw*.
8817   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8818   lt_cv_file_magic_cmd='$OBJDUMP -f'
8819   ;;
8820
8821 darwin* | rhapsody*)
8822   lt_cv_deplibs_check_method=pass_all
8823   ;;
8824
8825 freebsd* | dragonfly*)
8826   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8827     case $host_cpu in
8828     i*86 )
8829       # Not sure whether the presence of OpenBSD here was a mistake.
8830       # Let's accept both of them until this is cleared up.
8831       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8832       lt_cv_file_magic_cmd=/usr/bin/file
8833       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8834       ;;
8835     esac
8836   else
8837     lt_cv_deplibs_check_method=pass_all
8838   fi
8839   ;;
8840
8841 gnu*)
8842   lt_cv_deplibs_check_method=pass_all
8843   ;;
8844
8845 hpux10.20* | hpux11*)
8846   lt_cv_file_magic_cmd=/usr/bin/file
8847   case $host_cpu in
8848   ia64*)
8849     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8850     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8851     ;;
8852   hppa*64*)
8853     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]'
8854     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8855     ;;
8856   *)
8857     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8858     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8859     ;;
8860   esac
8861   ;;
8862
8863 interix[3-9]*)
8864   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8865   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8866   ;;
8867
8868 irix5* | irix6* | nonstopux*)
8869   case $LD in
8870   *-32|*"-32 ") libmagic=32-bit;;
8871   *-n32|*"-n32 ") libmagic=N32;;
8872   *-64|*"-64 ") libmagic=64-bit;;
8873   *) libmagic=never-match;;
8874   esac
8875   lt_cv_deplibs_check_method=pass_all
8876   ;;
8877
8878 # This must be Linux ELF.
8879 linux* | k*bsd*-gnu)
8880   lt_cv_deplibs_check_method=pass_all
8881   ;;
8882
8883 netbsd* | netbsdelf*-gnu)
8884   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8885     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8886   else
8887     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8888   fi
8889   ;;
8890
8891 newos6*)
8892   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8893   lt_cv_file_magic_cmd=/usr/bin/file
8894   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8895   ;;
8896
8897 *nto* | *qnx*)
8898   lt_cv_deplibs_check_method=pass_all
8899   ;;
8900
8901 openbsd*)
8902   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8903     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8904   else
8905     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8906   fi
8907   ;;
8908
8909 osf3* | osf4* | osf5*)
8910   lt_cv_deplibs_check_method=pass_all
8911   ;;
8912
8913 rdos*)
8914   lt_cv_deplibs_check_method=pass_all
8915   ;;
8916
8917 solaris*)
8918   lt_cv_deplibs_check_method=pass_all
8919   ;;
8920
8921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8922   lt_cv_deplibs_check_method=pass_all
8923   ;;
8924
8925 sysv4 | sysv4.3*)
8926   case $host_vendor in
8927   motorola)
8928     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]'
8929     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8930     ;;
8931   ncr)
8932     lt_cv_deplibs_check_method=pass_all
8933     ;;
8934   sequent)
8935     lt_cv_file_magic_cmd='/bin/file'
8936     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8937     ;;
8938   sni)
8939     lt_cv_file_magic_cmd='/bin/file'
8940     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8941     lt_cv_file_magic_test_file=/lib/libc.so
8942     ;;
8943   siemens)
8944     lt_cv_deplibs_check_method=pass_all
8945     ;;
8946   pc)
8947     lt_cv_deplibs_check_method=pass_all
8948     ;;
8949   esac
8950   ;;
8951
8952 tpf*)
8953   lt_cv_deplibs_check_method=pass_all
8954   ;;
8955 esac
8956
8957 fi
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8959 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8960 file_magic_cmd=$lt_cv_file_magic_cmd
8961 deplibs_check_method=$lt_cv_deplibs_check_method
8962 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975 if test -n "$ac_tool_prefix"; then
8976   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8977 set dummy ${ac_tool_prefix}ar; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if test "${ac_cv_prog_AR+set}" = set; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   if test -n "$AR"; then
8984   ac_cv_prog_AR="$AR" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8988 do
8989   IFS=$as_save_IFS
8990   test -z "$as_dir" && as_dir=.
8991     for ac_exec_ext in '' $ac_executable_extensions; do
8992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993     ac_cv_prog_AR="${ac_tool_prefix}ar"
8994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995     break 2
8996   fi
8997 done
8998   done
8999 IFS=$as_save_IFS
9000
9001 fi
9002 fi
9003 AR=$ac_cv_prog_AR
9004 if test -n "$AR"; then
9005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9006 $as_echo "$AR" >&6; }
9007 else
9008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9010 fi
9011
9012
9013 fi
9014 if test -z "$ac_cv_prog_AR"; then
9015   ac_ct_AR=$AR
9016   # Extract the first word of "ar", so it can be a program name with args.
9017 set dummy ar; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9021   $as_echo_n "(cached) " >&6
9022 else
9023   if test -n "$ac_ct_AR"; then
9024   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9025 else
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 for as_dir in $PATH
9028 do
9029   IFS=$as_save_IFS
9030   test -z "$as_dir" && as_dir=.
9031     for ac_exec_ext in '' $ac_executable_extensions; do
9032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9033     ac_cv_prog_ac_ct_AR="ar"
9034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9035     break 2
9036   fi
9037 done
9038   done
9039 IFS=$as_save_IFS
9040
9041 fi
9042 fi
9043 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9044 if test -n "$ac_ct_AR"; then
9045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9046 $as_echo "$ac_ct_AR" >&6; }
9047 else
9048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9050 fi
9051
9052   if test "x$ac_ct_AR" = x; then
9053     AR="false"
9054   else
9055     case $cross_compiling:$ac_tool_warned in
9056 yes:)
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9059 ac_tool_warned=yes ;;
9060 esac
9061     AR=$ac_ct_AR
9062   fi
9063 else
9064   AR="$ac_cv_prog_AR"
9065 fi
9066
9067 test -z "$AR" && AR=ar
9068 test -z "$AR_FLAGS" && AR_FLAGS=cru
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080 if test -n "$ac_tool_prefix"; then
9081   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9082 set dummy ${ac_tool_prefix}strip; ac_word=$2
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084 $as_echo_n "checking for $ac_word... " >&6; }
9085 if test "${ac_cv_prog_STRIP+set}" = set; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   if test -n "$STRIP"; then
9089   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9090 else
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 for as_dir in $PATH
9093 do
9094   IFS=$as_save_IFS
9095   test -z "$as_dir" && as_dir=.
9096     for ac_exec_ext in '' $ac_executable_extensions; do
9097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9098     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9100     break 2
9101   fi
9102 done
9103   done
9104 IFS=$as_save_IFS
9105
9106 fi
9107 fi
9108 STRIP=$ac_cv_prog_STRIP
9109 if test -n "$STRIP"; then
9110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9111 $as_echo "$STRIP" >&6; }
9112 else
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9115 fi
9116
9117
9118 fi
9119 if test -z "$ac_cv_prog_STRIP"; then
9120   ac_ct_STRIP=$STRIP
9121   # Extract the first word of "strip", so it can be a program name with args.
9122 set dummy strip; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9126   $as_echo_n "(cached) " >&6
9127 else
9128   if test -n "$ac_ct_STRIP"; then
9129   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9130 else
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 for as_dir in $PATH
9133 do
9134   IFS=$as_save_IFS
9135   test -z "$as_dir" && as_dir=.
9136     for ac_exec_ext in '' $ac_executable_extensions; do
9137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9138     ac_cv_prog_ac_ct_STRIP="strip"
9139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140     break 2
9141   fi
9142 done
9143   done
9144 IFS=$as_save_IFS
9145
9146 fi
9147 fi
9148 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9149 if test -n "$ac_ct_STRIP"; then
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9151 $as_echo "$ac_ct_STRIP" >&6; }
9152 else
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155 fi
9156
9157   if test "x$ac_ct_STRIP" = x; then
9158     STRIP=":"
9159   else
9160     case $cross_compiling:$ac_tool_warned in
9161 yes:)
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9164 ac_tool_warned=yes ;;
9165 esac
9166     STRIP=$ac_ct_STRIP
9167   fi
9168 else
9169   STRIP="$ac_cv_prog_STRIP"
9170 fi
9171
9172 test -z "$STRIP" && STRIP=:
9173
9174
9175
9176
9177
9178
9179 if test -n "$ac_tool_prefix"; then
9180   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9185   $as_echo_n "(cached) " >&6
9186 else
9187   if test -n "$RANLIB"; then
9188   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9189 else
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH
9192 do
9193   IFS=$as_save_IFS
9194   test -z "$as_dir" && as_dir=.
9195     for ac_exec_ext in '' $ac_executable_extensions; do
9196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9197     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199     break 2
9200   fi
9201 done
9202   done
9203 IFS=$as_save_IFS
9204
9205 fi
9206 fi
9207 RANLIB=$ac_cv_prog_RANLIB
9208 if test -n "$RANLIB"; then
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9210 $as_echo "$RANLIB" >&6; }
9211 else
9212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 $as_echo "no" >&6; }
9214 fi
9215
9216
9217 fi
9218 if test -z "$ac_cv_prog_RANLIB"; then
9219   ac_ct_RANLIB=$RANLIB
9220   # Extract the first word of "ranlib", so it can be a program name with args.
9221 set dummy ranlib; ac_word=$2
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9223 $as_echo_n "checking for $ac_word... " >&6; }
9224 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9225   $as_echo_n "(cached) " >&6
9226 else
9227   if test -n "$ac_ct_RANLIB"; then
9228   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9229 else
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 for as_dir in $PATH
9232 do
9233   IFS=$as_save_IFS
9234   test -z "$as_dir" && as_dir=.
9235     for ac_exec_ext in '' $ac_executable_extensions; do
9236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9237     ac_cv_prog_ac_ct_RANLIB="ranlib"
9238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9239     break 2
9240   fi
9241 done
9242   done
9243 IFS=$as_save_IFS
9244
9245 fi
9246 fi
9247 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9248 if test -n "$ac_ct_RANLIB"; then
9249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9250 $as_echo "$ac_ct_RANLIB" >&6; }
9251 else
9252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9254 fi
9255
9256   if test "x$ac_ct_RANLIB" = x; then
9257     RANLIB=":"
9258   else
9259     case $cross_compiling:$ac_tool_warned in
9260 yes:)
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9263 ac_tool_warned=yes ;;
9264 esac
9265     RANLIB=$ac_ct_RANLIB
9266   fi
9267 else
9268   RANLIB="$ac_cv_prog_RANLIB"
9269 fi
9270
9271 test -z "$RANLIB" && RANLIB=:
9272
9273
9274
9275
9276
9277
9278 # Determine commands to create old-style static archives.
9279 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9280 old_postinstall_cmds='chmod 644 $oldlib'
9281 old_postuninstall_cmds=
9282
9283 if test -n "$RANLIB"; then
9284   case $host_os in
9285   openbsd*)
9286     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9287     ;;
9288   *)
9289     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9290     ;;
9291   esac
9292   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9293 fi
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328 # If no C compiler was specified, use CC.
9329 LTCC=${LTCC-"$CC"}
9330
9331 # If no C compiler flags were specified, use CFLAGS.
9332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9333
9334 # Allow CC to be a program name with arguments.
9335 compiler=$CC
9336
9337
9338 # Check for command to grab the raw symbol name followed by C symbol from nm.
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9340 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9341 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9342   $as_echo_n "(cached) " >&6
9343 else
9344
9345 # These are sane defaults that work on at least a few old systems.
9346 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9347
9348 # Character class describing NM global symbol codes.
9349 symcode='[BCDEGRST]'
9350
9351 # Regexp to match symbols that can be accessed directly from C.
9352 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9353
9354 # Define system-specific variables.
9355 case $host_os in
9356 aix*)
9357   symcode='[BCDT]'
9358   ;;
9359 cygwin* | mingw* | pw32* | cegcc*)
9360   symcode='[ABCDGISTW]'
9361   ;;
9362 hpux*)
9363   if test "$host_cpu" = ia64; then
9364     symcode='[ABCDEGRST]'
9365   fi
9366   ;;
9367 irix* | nonstopux*)
9368   symcode='[BCDEGRST]'
9369   ;;
9370 osf*)
9371   symcode='[BCDEGQRST]'
9372   ;;
9373 solaris*)
9374   symcode='[BDRT]'
9375   ;;
9376 sco3.2v5*)
9377   symcode='[DT]'
9378   ;;
9379 sysv4.2uw2*)
9380   symcode='[DT]'
9381   ;;
9382 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9383   symcode='[ABDT]'
9384   ;;
9385 sysv4)
9386   symcode='[DFNSTU]'
9387   ;;
9388 esac
9389
9390 # If we're using GNU nm, then use its standard symbol codes.
9391 case `$NM -V 2>&1` in
9392 *GNU* | *'with BFD'*)
9393   symcode='[ABCDGIRSTW]' ;;
9394 esac
9395
9396 # Transform an extracted symbol line into a proper C declaration.
9397 # Some systems (esp. on ia64) link data and code symbols differently,
9398 # so use this general approach.
9399 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9400
9401 # Transform an extracted symbol line into symbol name and symbol address
9402 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9403 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
9404
9405 # Handle CRLF in mingw tool chain
9406 opt_cr=
9407 case $build_os in
9408 mingw*)
9409   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9410   ;;
9411 esac
9412
9413 # Try without a prefix underscore, then with it.
9414 for ac_symprfx in "" "_"; do
9415
9416   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9417   symxfrm="\\1 $ac_symprfx\\2 \\2"
9418
9419   # Write the raw and C identifiers.
9420   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9421     # Fake it for dumpbin and say T for any non-static function
9422     # and D for any global variable.
9423     # Also find C++ and __fastcall symbols from MSVC++,
9424     # which start with @ or ?.
9425     lt_cv_sys_global_symbol_pipe="$AWK '"\
9426 "     {last_section=section; section=\$ 3};"\
9427 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9428 "     \$ 0!~/External *\|/{next};"\
9429 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9430 "     {if(hide[section]) next};"\
9431 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9432 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9433 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9434 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9435 "     ' prfx=^$ac_symprfx"
9436   else
9437     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9438   fi
9439
9440   # Check to see that the pipe works correctly.
9441   pipe_works=no
9442
9443   rm -f conftest*
9444   cat > conftest.$ac_ext <<_LT_EOF
9445 #ifdef __cplusplus
9446 extern "C" {
9447 #endif
9448 char nm_test_var;
9449 void nm_test_func(void);
9450 void nm_test_func(void){}
9451 #ifdef __cplusplus
9452 }
9453 #endif
9454 int main(){nm_test_var='a';nm_test_func();return(0);}
9455 _LT_EOF
9456
9457   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9458   (eval $ac_compile) 2>&5
9459   ac_status=$?
9460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9461   test $ac_status = 0; }; then
9462     # Now try to grab the symbols.
9463     nlist=conftest.nm
9464     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9465   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9466   ac_status=$?
9467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9468   test $ac_status = 0; } && test -s "$nlist"; then
9469       # Try sorting and uniquifying the output.
9470       if sort "$nlist" | uniq > "$nlist"T; then
9471         mv -f "$nlist"T "$nlist"
9472       else
9473         rm -f "$nlist"T
9474       fi
9475
9476       # Make sure that we snagged all the symbols we need.
9477       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9478         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9479           cat <<_LT_EOF > conftest.$ac_ext
9480 #ifdef __cplusplus
9481 extern "C" {
9482 #endif
9483
9484 _LT_EOF
9485           # Now generate the symbol file.
9486           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9487
9488           cat <<_LT_EOF >> conftest.$ac_ext
9489
9490 /* The mapping between symbol names and symbols.  */
9491 const struct {
9492   const char *name;
9493   void       *address;
9494 }
9495 lt__PROGRAM__LTX_preloaded_symbols[] =
9496 {
9497   { "@PROGRAM@", (void *) 0 },
9498 _LT_EOF
9499           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9500           cat <<\_LT_EOF >> conftest.$ac_ext
9501   {0, (void *) 0}
9502 };
9503
9504 /* This works around a problem in FreeBSD linker */
9505 #ifdef FREEBSD_WORKAROUND
9506 static const void *lt_preloaded_setup() {
9507   return lt__PROGRAM__LTX_preloaded_symbols;
9508 }
9509 #endif
9510
9511 #ifdef __cplusplus
9512 }
9513 #endif
9514 _LT_EOF
9515           # Now try linking the two files.
9516           mv conftest.$ac_objext conftstm.$ac_objext
9517           lt_save_LIBS="$LIBS"
9518           lt_save_CFLAGS="$CFLAGS"
9519           LIBS="conftstm.$ac_objext"
9520           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9521           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9522   (eval $ac_link) 2>&5
9523   ac_status=$?
9524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9525   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9526             pipe_works=yes
9527           fi
9528           LIBS="$lt_save_LIBS"
9529           CFLAGS="$lt_save_CFLAGS"
9530         else
9531           echo "cannot find nm_test_func in $nlist" >&5
9532         fi
9533       else
9534         echo "cannot find nm_test_var in $nlist" >&5
9535       fi
9536     else
9537       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9538     fi
9539   else
9540     echo "$progname: failed program was:" >&5
9541     cat conftest.$ac_ext >&5
9542   fi
9543   rm -rf conftest* conftst*
9544
9545   # Do not use the global_symbol_pipe unless it works.
9546   if test "$pipe_works" = yes; then
9547     break
9548   else
9549     lt_cv_sys_global_symbol_pipe=
9550   fi
9551 done
9552
9553 fi
9554
9555 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9556   lt_cv_sys_global_symbol_to_cdecl=
9557 fi
9558 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9560 $as_echo "failed" >&6; }
9561 else
9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9563 $as_echo "ok" >&6; }
9564 fi
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587 # Check whether --enable-libtool-lock was given.
9588 if test "${enable_libtool_lock+set}" = set; then :
9589   enableval=$enable_libtool_lock;
9590 fi
9591
9592 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9593
9594 # Some flags need to be propagated to the compiler or linker for good
9595 # libtool support.
9596 case $host in
9597 ia64-*-hpux*)
9598   # Find out which ABI we are using.
9599   echo 'int i;' > conftest.$ac_ext
9600   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9601   (eval $ac_compile) 2>&5
9602   ac_status=$?
9603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9604   test $ac_status = 0; }; then
9605     case `/usr/bin/file conftest.$ac_objext` in
9606       *ELF-32*)
9607         HPUX_IA64_MODE="32"
9608         ;;
9609       *ELF-64*)
9610         HPUX_IA64_MODE="64"
9611         ;;
9612     esac
9613   fi
9614   rm -rf conftest*
9615   ;;
9616 *-*-irix6*)
9617   # Find out which ABI we are using.
9618   echo '#line 9618 "configure"' > conftest.$ac_ext
9619   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9620   (eval $ac_compile) 2>&5
9621   ac_status=$?
9622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9623   test $ac_status = 0; }; then
9624     if test "$lt_cv_prog_gnu_ld" = yes; then
9625       case `/usr/bin/file conftest.$ac_objext` in
9626         *32-bit*)
9627           LD="${LD-ld} -melf32bsmip"
9628           ;;
9629         *N32*)
9630           LD="${LD-ld} -melf32bmipn32"
9631           ;;
9632         *64-bit*)
9633           LD="${LD-ld} -melf64bmip"
9634         ;;
9635       esac
9636     else
9637       case `/usr/bin/file conftest.$ac_objext` in
9638         *32-bit*)
9639           LD="${LD-ld} -32"
9640           ;;
9641         *N32*)
9642           LD="${LD-ld} -n32"
9643           ;;
9644         *64-bit*)
9645           LD="${LD-ld} -64"
9646           ;;
9647       esac
9648     fi
9649   fi
9650   rm -rf conftest*
9651   ;;
9652
9653 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9654 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9655   # Find out which ABI we are using.
9656   echo 'int i;' > conftest.$ac_ext
9657   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9658   (eval $ac_compile) 2>&5
9659   ac_status=$?
9660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9661   test $ac_status = 0; }; then
9662     case `/usr/bin/file conftest.o` in
9663       *32-bit*)
9664         case $host in
9665           x86_64-*kfreebsd*-gnu)
9666             LD="${LD-ld} -m elf_i386_fbsd"
9667             ;;
9668           x86_64-*linux*)
9669             LD="${LD-ld} -m elf_i386"
9670             ;;
9671           ppc64-*linux*|powerpc64-*linux*)
9672             LD="${LD-ld} -m elf32ppclinux"
9673             ;;
9674           s390x-*linux*)
9675             LD="${LD-ld} -m elf_s390"
9676             ;;
9677           sparc64-*linux*)
9678             LD="${LD-ld} -m elf32_sparc"
9679             ;;
9680         esac
9681         ;;
9682       *64-bit*)
9683         case $host in
9684           x86_64-*kfreebsd*-gnu)
9685             LD="${LD-ld} -m elf_x86_64_fbsd"
9686             ;;
9687           x86_64-*linux*)
9688             LD="${LD-ld} -m elf_x86_64"
9689             ;;
9690           ppc*-*linux*|powerpc*-*linux*)
9691             LD="${LD-ld} -m elf64ppc"
9692             ;;
9693           s390*-*linux*|s390*-*tpf*)
9694             LD="${LD-ld} -m elf64_s390"
9695             ;;
9696           sparc*-*linux*)
9697             LD="${LD-ld} -m elf64_sparc"
9698             ;;
9699         esac
9700         ;;
9701     esac
9702   fi
9703   rm -rf conftest*
9704   ;;
9705
9706 *-*-sco3.2v5*)
9707   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9708   SAVE_CFLAGS="$CFLAGS"
9709   CFLAGS="$CFLAGS -belf"
9710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9711 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9712 if test "${lt_cv_cc_needs_belf+set}" = set; then :
9713   $as_echo_n "(cached) " >&6
9714 else
9715   ac_ext=c
9716 ac_cpp='$CPP $CPPFLAGS'
9717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9720
9721      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h.  */
9723
9724 int
9725 main ()
9726 {
9727
9728   ;
9729   return 0;
9730 }
9731 _ACEOF
9732 if ac_fn_c_try_link "$LINENO"; then :
9733   lt_cv_cc_needs_belf=yes
9734 else
9735   lt_cv_cc_needs_belf=no
9736 fi
9737 rm -f core conftest.err conftest.$ac_objext \
9738     conftest$ac_exeext conftest.$ac_ext
9739      ac_ext=c
9740 ac_cpp='$CPP $CPPFLAGS'
9741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9744
9745 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9747 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9748   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9749     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9750     CFLAGS="$SAVE_CFLAGS"
9751   fi
9752   ;;
9753 sparc*-*solaris*)
9754   # Find out which ABI we are using.
9755   echo 'int i;' > conftest.$ac_ext
9756   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9757   (eval $ac_compile) 2>&5
9758   ac_status=$?
9759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9760   test $ac_status = 0; }; then
9761     case `/usr/bin/file conftest.o` in
9762     *64-bit*)
9763       case $lt_cv_prog_gnu_ld in
9764       yes*) LD="${LD-ld} -m elf64_sparc" ;;
9765       *)
9766         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9767           LD="${LD-ld} -64"
9768         fi
9769         ;;
9770       esac
9771       ;;
9772     esac
9773   fi
9774   rm -rf conftest*
9775   ;;
9776 esac
9777
9778 need_locks="$enable_libtool_lock"
9779
9780
9781   case $host_os in
9782     rhapsody* | darwin*)
9783     if test -n "$ac_tool_prefix"; then
9784   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9785 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9787 $as_echo_n "checking for $ac_word... " >&6; }
9788 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9789   $as_echo_n "(cached) " >&6
9790 else
9791   if test -n "$DSYMUTIL"; then
9792   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9793 else
9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in $PATH
9796 do
9797   IFS=$as_save_IFS
9798   test -z "$as_dir" && as_dir=.
9799     for ac_exec_ext in '' $ac_executable_extensions; do
9800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9801     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9803     break 2
9804   fi
9805 done
9806   done
9807 IFS=$as_save_IFS
9808
9809 fi
9810 fi
9811 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9812 if test -n "$DSYMUTIL"; then
9813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9814 $as_echo "$DSYMUTIL" >&6; }
9815 else
9816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817 $as_echo "no" >&6; }
9818 fi
9819
9820
9821 fi
9822 if test -z "$ac_cv_prog_DSYMUTIL"; then
9823   ac_ct_DSYMUTIL=$DSYMUTIL
9824   # Extract the first word of "dsymutil", so it can be a program name with args.
9825 set dummy dsymutil; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9829   $as_echo_n "(cached) " >&6
9830 else
9831   if test -n "$ac_ct_DSYMUTIL"; then
9832   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9833 else
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 for as_dir in $PATH
9836 do
9837   IFS=$as_save_IFS
9838   test -z "$as_dir" && as_dir=.
9839     for ac_exec_ext in '' $ac_executable_extensions; do
9840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9843     break 2
9844   fi
9845 done
9846   done
9847 IFS=$as_save_IFS
9848
9849 fi
9850 fi
9851 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9852 if test -n "$ac_ct_DSYMUTIL"; then
9853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9854 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9855 else
9856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9858 fi
9859
9860   if test "x$ac_ct_DSYMUTIL" = x; then
9861     DSYMUTIL=":"
9862   else
9863     case $cross_compiling:$ac_tool_warned in
9864 yes:)
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9867 ac_tool_warned=yes ;;
9868 esac
9869     DSYMUTIL=$ac_ct_DSYMUTIL
9870   fi
9871 else
9872   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9873 fi
9874
9875     if test -n "$ac_tool_prefix"; then
9876   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9877 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9881   $as_echo_n "(cached) " >&6
9882 else
9883   if test -n "$NMEDIT"; then
9884   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9885 else
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in $PATH
9888 do
9889   IFS=$as_save_IFS
9890   test -z "$as_dir" && as_dir=.
9891     for ac_exec_ext in '' $ac_executable_extensions; do
9892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9893     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895     break 2
9896   fi
9897 done
9898   done
9899 IFS=$as_save_IFS
9900
9901 fi
9902 fi
9903 NMEDIT=$ac_cv_prog_NMEDIT
9904 if test -n "$NMEDIT"; then
9905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9906 $as_echo "$NMEDIT" >&6; }
9907 else
9908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9910 fi
9911
9912
9913 fi
9914 if test -z "$ac_cv_prog_NMEDIT"; then
9915   ac_ct_NMEDIT=$NMEDIT
9916   # Extract the first word of "nmedit", so it can be a program name with args.
9917 set dummy nmedit; ac_word=$2
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919 $as_echo_n "checking for $ac_word... " >&6; }
9920 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9921   $as_echo_n "(cached) " >&6
9922 else
9923   if test -n "$ac_ct_NMEDIT"; then
9924   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9925 else
9926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 for as_dir in $PATH
9928 do
9929   IFS=$as_save_IFS
9930   test -z "$as_dir" && as_dir=.
9931     for ac_exec_ext in '' $ac_executable_extensions; do
9932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9933     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9935     break 2
9936   fi
9937 done
9938   done
9939 IFS=$as_save_IFS
9940
9941 fi
9942 fi
9943 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9944 if test -n "$ac_ct_NMEDIT"; then
9945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9946 $as_echo "$ac_ct_NMEDIT" >&6; }
9947 else
9948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9950 fi
9951
9952   if test "x$ac_ct_NMEDIT" = x; then
9953     NMEDIT=":"
9954   else
9955     case $cross_compiling:$ac_tool_warned in
9956 yes:)
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9959 ac_tool_warned=yes ;;
9960 esac
9961     NMEDIT=$ac_ct_NMEDIT
9962   fi
9963 else
9964   NMEDIT="$ac_cv_prog_NMEDIT"
9965 fi
9966
9967     if test -n "$ac_tool_prefix"; then
9968   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9969 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if test "${ac_cv_prog_LIPO+set}" = set; then :
9973   $as_echo_n "(cached) " >&6
9974 else
9975   if test -n "$LIPO"; then
9976   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9977 else
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 for as_dir in $PATH
9980 do
9981   IFS=$as_save_IFS
9982   test -z "$as_dir" && as_dir=.
9983     for ac_exec_ext in '' $ac_executable_extensions; do
9984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9985     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987     break 2
9988   fi
9989 done
9990   done
9991 IFS=$as_save_IFS
9992
9993 fi
9994 fi
9995 LIPO=$ac_cv_prog_LIPO
9996 if test -n "$LIPO"; then
9997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9998 $as_echo "$LIPO" >&6; }
9999 else
10000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10002 fi
10003
10004
10005 fi
10006 if test -z "$ac_cv_prog_LIPO"; then
10007   ac_ct_LIPO=$LIPO
10008   # Extract the first word of "lipo", so it can be a program name with args.
10009 set dummy lipo; ac_word=$2
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
10013   $as_echo_n "(cached) " >&6
10014 else
10015   if test -n "$ac_ct_LIPO"; then
10016   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10017 else
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10020 do
10021   IFS=$as_save_IFS
10022   test -z "$as_dir" && as_dir=.
10023     for ac_exec_ext in '' $ac_executable_extensions; do
10024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025     ac_cv_prog_ac_ct_LIPO="lipo"
10026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027     break 2
10028   fi
10029 done
10030   done
10031 IFS=$as_save_IFS
10032
10033 fi
10034 fi
10035 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10036 if test -n "$ac_ct_LIPO"; then
10037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10038 $as_echo "$ac_ct_LIPO" >&6; }
10039 else
10040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10042 fi
10043
10044   if test "x$ac_ct_LIPO" = x; then
10045     LIPO=":"
10046   else
10047     case $cross_compiling:$ac_tool_warned in
10048 yes:)
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10051 ac_tool_warned=yes ;;
10052 esac
10053     LIPO=$ac_ct_LIPO
10054   fi
10055 else
10056   LIPO="$ac_cv_prog_LIPO"
10057 fi
10058
10059     if test -n "$ac_tool_prefix"; then
10060   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10061 set dummy ${ac_tool_prefix}otool; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if test "${ac_cv_prog_OTOOL+set}" = set; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   if test -n "$OTOOL"; then
10068   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10069 else
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10072 do
10073   IFS=$as_save_IFS
10074   test -z "$as_dir" && as_dir=.
10075     for ac_exec_ext in '' $ac_executable_extensions; do
10076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079     break 2
10080   fi
10081 done
10082   done
10083 IFS=$as_save_IFS
10084
10085 fi
10086 fi
10087 OTOOL=$ac_cv_prog_OTOOL
10088 if test -n "$OTOOL"; then
10089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10090 $as_echo "$OTOOL" >&6; }
10091 else
10092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093 $as_echo "no" >&6; }
10094 fi
10095
10096
10097 fi
10098 if test -z "$ac_cv_prog_OTOOL"; then
10099   ac_ct_OTOOL=$OTOOL
10100   # Extract the first word of "otool", so it can be a program name with args.
10101 set dummy otool; ac_word=$2
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103 $as_echo_n "checking for $ac_word... " >&6; }
10104 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
10105   $as_echo_n "(cached) " >&6
10106 else
10107   if test -n "$ac_ct_OTOOL"; then
10108   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10109 else
10110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111 for as_dir in $PATH
10112 do
10113   IFS=$as_save_IFS
10114   test -z "$as_dir" && as_dir=.
10115     for ac_exec_ext in '' $ac_executable_extensions; do
10116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10117     ac_cv_prog_ac_ct_OTOOL="otool"
10118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10119     break 2
10120   fi
10121 done
10122   done
10123 IFS=$as_save_IFS
10124
10125 fi
10126 fi
10127 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10128 if test -n "$ac_ct_OTOOL"; then
10129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10130 $as_echo "$ac_ct_OTOOL" >&6; }
10131 else
10132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10134 fi
10135
10136   if test "x$ac_ct_OTOOL" = x; then
10137     OTOOL=":"
10138   else
10139     case $cross_compiling:$ac_tool_warned in
10140 yes:)
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10143 ac_tool_warned=yes ;;
10144 esac
10145     OTOOL=$ac_ct_OTOOL
10146   fi
10147 else
10148   OTOOL="$ac_cv_prog_OTOOL"
10149 fi
10150
10151     if test -n "$ac_tool_prefix"; then
10152   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10153 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10155 $as_echo_n "checking for $ac_word... " >&6; }
10156 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10157   $as_echo_n "(cached) " >&6
10158 else
10159   if test -n "$OTOOL64"; then
10160   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10161 else
10162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10163 for as_dir in $PATH
10164 do
10165   IFS=$as_save_IFS
10166   test -z "$as_dir" && as_dir=.
10167     for ac_exec_ext in '' $ac_executable_extensions; do
10168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10169     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10171     break 2
10172   fi
10173 done
10174   done
10175 IFS=$as_save_IFS
10176
10177 fi
10178 fi
10179 OTOOL64=$ac_cv_prog_OTOOL64
10180 if test -n "$OTOOL64"; then
10181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10182 $as_echo "$OTOOL64" >&6; }
10183 else
10184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10186 fi
10187
10188
10189 fi
10190 if test -z "$ac_cv_prog_OTOOL64"; then
10191   ac_ct_OTOOL64=$OTOOL64
10192   # Extract the first word of "otool64", so it can be a program name with args.
10193 set dummy otool64; ac_word=$2
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10195 $as_echo_n "checking for $ac_word... " >&6; }
10196 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10197   $as_echo_n "(cached) " >&6
10198 else
10199   if test -n "$ac_ct_OTOOL64"; then
10200   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10201 else
10202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10203 for as_dir in $PATH
10204 do
10205   IFS=$as_save_IFS
10206   test -z "$as_dir" && as_dir=.
10207     for ac_exec_ext in '' $ac_executable_extensions; do
10208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10209     ac_cv_prog_ac_ct_OTOOL64="otool64"
10210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10211     break 2
10212   fi
10213 done
10214   done
10215 IFS=$as_save_IFS
10216
10217 fi
10218 fi
10219 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10220 if test -n "$ac_ct_OTOOL64"; then
10221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10222 $as_echo "$ac_ct_OTOOL64" >&6; }
10223 else
10224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10226 fi
10227
10228   if test "x$ac_ct_OTOOL64" = x; then
10229     OTOOL64=":"
10230   else
10231     case $cross_compiling:$ac_tool_warned in
10232 yes:)
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10235 ac_tool_warned=yes ;;
10236 esac
10237     OTOOL64=$ac_ct_OTOOL64
10238   fi
10239 else
10240   OTOOL64="$ac_cv_prog_OTOOL64"
10241 fi
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10270 $as_echo_n "checking for -single_module linker flag... " >&6; }
10271 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10272   $as_echo_n "(cached) " >&6
10273 else
10274   lt_cv_apple_cc_single_mod=no
10275       if test -z "${LT_MULTI_MODULE}"; then
10276         # By default we will add the -single_module flag. You can override
10277         # by either setting the environment variable LT_MULTI_MODULE
10278         # non-empty at configure time, or by adding -multi_module to the
10279         # link flags.
10280         rm -rf libconftest.dylib*
10281         echo "int foo(void){return 1;}" > conftest.c
10282         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10283 -dynamiclib -Wl,-single_module conftest.c" >&5
10284         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10285           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10286         _lt_result=$?
10287         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10288           lt_cv_apple_cc_single_mod=yes
10289         else
10290           cat conftest.err >&5
10291         fi
10292         rm -rf libconftest.dylib*
10293         rm -f conftest.*
10294       fi
10295 fi
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10297 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10299 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10300 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10301   $as_echo_n "(cached) " >&6
10302 else
10303   lt_cv_ld_exported_symbols_list=no
10304       save_LDFLAGS=$LDFLAGS
10305       echo "_main" > conftest.sym
10306       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10307       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h.  */
10309
10310 int
10311 main ()
10312 {
10313
10314   ;
10315   return 0;
10316 }
10317 _ACEOF
10318 if ac_fn_c_try_link "$LINENO"; then :
10319   lt_cv_ld_exported_symbols_list=yes
10320 else
10321   lt_cv_ld_exported_symbols_list=no
10322 fi
10323 rm -f core conftest.err conftest.$ac_objext \
10324     conftest$ac_exeext conftest.$ac_ext
10325         LDFLAGS="$save_LDFLAGS"
10326
10327 fi
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10329 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10330     case $host_os in
10331     rhapsody* | darwin1.[012])
10332       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10333     darwin1.*)
10334       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10335     darwin*) # darwin 5.x on
10336       # if running on 10.5 or later, the deployment target defaults
10337       # to the OS version, if on x86, and 10.4, the deployment
10338       # target defaults to 10.4. Don't you love it?
10339       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10340         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10341           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10342         10.[012]*)
10343           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10344         10.*)
10345           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10346       esac
10347     ;;
10348   esac
10349     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10350       _lt_dar_single_mod='$single_module'
10351     fi
10352     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10353       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10354     else
10355       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10356     fi
10357     if test "$DSYMUTIL" != ":"; then
10358       _lt_dsymutil='~$DSYMUTIL $lib || :'
10359     else
10360       _lt_dsymutil=
10361     fi
10362     ;;
10363   esac
10364
10365 for ac_header in dlfcn.h
10366 do :
10367   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10368 "
10369 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10370   cat >>confdefs.h <<_ACEOF
10371 #define HAVE_DLFCN_H 1
10372 _ACEOF
10373
10374 fi
10375
10376 done
10377
10378
10379
10380 ac_ext=cpp
10381 ac_cpp='$CXXCPP $CPPFLAGS'
10382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10385 if test -z "$CXX"; then
10386   if test -n "$CCC"; then
10387     CXX=$CCC
10388   else
10389     if test -n "$ac_tool_prefix"; then
10390   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10391   do
10392     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if test "${ac_cv_prog_CXX+set}" = set; then :
10397   $as_echo_n "(cached) " >&6
10398 else
10399   if test -n "$CXX"; then
10400   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10401 else
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10404 do
10405   IFS=$as_save_IFS
10406   test -z "$as_dir" && as_dir=.
10407     for ac_exec_ext in '' $ac_executable_extensions; do
10408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10409     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411     break 2
10412   fi
10413 done
10414   done
10415 IFS=$as_save_IFS
10416
10417 fi
10418 fi
10419 CXX=$ac_cv_prog_CXX
10420 if test -n "$CXX"; then
10421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10422 $as_echo "$CXX" >&6; }
10423 else
10424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10426 fi
10427
10428
10429     test -n "$CXX" && break
10430   done
10431 fi
10432 if test -z "$CXX"; then
10433   ac_ct_CXX=$CXX
10434   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10435 do
10436   # Extract the first word of "$ac_prog", so it can be a program name with args.
10437 set dummy $ac_prog; ac_word=$2
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439 $as_echo_n "checking for $ac_word... " >&6; }
10440 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10441   $as_echo_n "(cached) " >&6
10442 else
10443   if test -n "$ac_ct_CXX"; then
10444   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10445 else
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447 for as_dir in $PATH
10448 do
10449   IFS=$as_save_IFS
10450   test -z "$as_dir" && as_dir=.
10451     for ac_exec_ext in '' $ac_executable_extensions; do
10452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10453     ac_cv_prog_ac_ct_CXX="$ac_prog"
10454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10455     break 2
10456   fi
10457 done
10458   done
10459 IFS=$as_save_IFS
10460
10461 fi
10462 fi
10463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10464 if test -n "$ac_ct_CXX"; then
10465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10466 $as_echo "$ac_ct_CXX" >&6; }
10467 else
10468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469 $as_echo "no" >&6; }
10470 fi
10471
10472
10473   test -n "$ac_ct_CXX" && break
10474 done
10475
10476   if test "x$ac_ct_CXX" = x; then
10477     CXX="g++"
10478   else
10479     case $cross_compiling:$ac_tool_warned in
10480 yes:)
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10483 ac_tool_warned=yes ;;
10484 esac
10485     CXX=$ac_ct_CXX
10486   fi
10487 fi
10488
10489   fi
10490 fi
10491 # Provide some information about the compiler.
10492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10493 set X $ac_compile
10494 ac_compiler=$2
10495 for ac_option in --version -v -V -qversion; do
10496   { { ac_try="$ac_compiler $ac_option >&5"
10497 case "(($ac_try" in
10498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499   *) ac_try_echo=$ac_try;;
10500 esac
10501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10502 $as_echo "$ac_try_echo"; } >&5
10503   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10504   ac_status=$?
10505   if test -s conftest.err; then
10506     sed '10a\
10507 ... rest of stderr output deleted ...
10508          10q' conftest.err >conftest.er1
10509     cat conftest.er1 >&5
10510     rm -f conftest.er1 conftest.err
10511   fi
10512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513   test $ac_status = 0; }
10514 done
10515
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10517 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10518 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10519   $as_echo_n "(cached) " >&6
10520 else
10521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h.  */
10523
10524 int
10525 main ()
10526 {
10527 #ifndef __GNUC__
10528        choke me
10529 #endif
10530
10531   ;
10532   return 0;
10533 }
10534 _ACEOF
10535 if ac_fn_cxx_try_compile "$LINENO"; then :
10536   ac_compiler_gnu=yes
10537 else
10538   ac_compiler_gnu=no
10539 fi
10540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10542
10543 fi
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10545 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10546 if test $ac_compiler_gnu = yes; then
10547   GXX=yes
10548 else
10549   GXX=
10550 fi
10551 ac_test_CXXFLAGS=${CXXFLAGS+set}
10552 ac_save_CXXFLAGS=$CXXFLAGS
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10554 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10555 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10556   $as_echo_n "(cached) " >&6
10557 else
10558   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10559    ac_cxx_werror_flag=yes
10560    ac_cv_prog_cxx_g=no
10561    CXXFLAGS="-g"
10562    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h.  */
10564
10565 int
10566 main ()
10567 {
10568
10569   ;
10570   return 0;
10571 }
10572 _ACEOF
10573 if ac_fn_cxx_try_compile "$LINENO"; then :
10574   ac_cv_prog_cxx_g=yes
10575 else
10576   CXXFLAGS=""
10577       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h.  */
10579
10580 int
10581 main ()
10582 {
10583
10584   ;
10585   return 0;
10586 }
10587 _ACEOF
10588 if ac_fn_cxx_try_compile "$LINENO"; then :
10589
10590 else
10591   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10592          CXXFLAGS="-g"
10593          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h.  */
10595
10596 int
10597 main ()
10598 {
10599
10600   ;
10601   return 0;
10602 }
10603 _ACEOF
10604 if ac_fn_cxx_try_compile "$LINENO"; then :
10605   ac_cv_prog_cxx_g=yes
10606 fi
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608 fi
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10610 fi
10611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10612    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10615 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10616 if test "$ac_test_CXXFLAGS" = set; then
10617   CXXFLAGS=$ac_save_CXXFLAGS
10618 elif test $ac_cv_prog_cxx_g = yes; then
10619   if test "$GXX" = yes; then
10620     CXXFLAGS="-g -O2"
10621   else
10622     CXXFLAGS="-g"
10623   fi
10624 else
10625   if test "$GXX" = yes; then
10626     CXXFLAGS="-O2"
10627   else
10628     CXXFLAGS=
10629   fi
10630 fi
10631 ac_ext=c
10632 ac_cpp='$CPP $CPPFLAGS'
10633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10636
10637 depcc="$CXX"  am_compiler_list=
10638
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10640 $as_echo_n "checking dependency style of $depcc... " >&6; }
10641 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10642   $as_echo_n "(cached) " >&6
10643 else
10644   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10645   # We make a subdir and do the tests there.  Otherwise we can end up
10646   # making bogus files that we don't know about and never remove.  For
10647   # instance it was reported that on HP-UX the gcc test will end up
10648   # making a dummy file named `D' -- because `-MD' means `put the output
10649   # in D'.
10650   mkdir conftest.dir
10651   # Copy depcomp to subdir because otherwise we won't find it if we're
10652   # using a relative directory.
10653   cp "$am_depcomp" conftest.dir
10654   cd conftest.dir
10655   # We will build objects and dependencies in a subdirectory because
10656   # it helps to detect inapplicable dependency modes.  For instance
10657   # both Tru64's cc and ICC support -MD to output dependencies as a
10658   # side effect of compilation, but ICC will put the dependencies in
10659   # the current directory while Tru64 will put them in the object
10660   # directory.
10661   mkdir sub
10662
10663   am_cv_CXX_dependencies_compiler_type=none
10664   if test "$am_compiler_list" = ""; then
10665      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10666   fi
10667   am__universal=false
10668   case " $depcc " in #(
10669      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10670      esac
10671
10672   for depmode in $am_compiler_list; do
10673     # Setup a source with many dependencies, because some compilers
10674     # like to wrap large dependency lists on column 80 (with \), and
10675     # we should not choose a depcomp mode which is confused by this.
10676     #
10677     # We need to recreate these files for each test, as the compiler may
10678     # overwrite some of them when testing with obscure command lines.
10679     # This happens at least with the AIX C compiler.
10680     : > sub/conftest.c
10681     for i in 1 2 3 4 5 6; do
10682       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10683       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10684       # Solaris 8's {/usr,}/bin/sh.
10685       touch sub/conftst$i.h
10686     done
10687     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10688
10689     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10690     # mode.  It turns out that the SunPro C++ compiler does not properly
10691     # handle `-M -o', and we need to detect this.  Also, some Intel
10692     # versions had trouble with output in subdirs
10693     am__obj=sub/conftest.${OBJEXT-o}
10694     am__minus_obj="-o $am__obj"
10695     case $depmode in
10696     gcc)
10697       # This depmode causes a compiler race in universal mode.
10698       test "$am__universal" = false || continue
10699       ;;
10700     nosideeffect)
10701       # after this tag, mechanisms are not by side-effect, so they'll
10702       # only be used when explicitly requested
10703       if test "x$enable_dependency_tracking" = xyes; then
10704         continue
10705       else
10706         break
10707       fi
10708       ;;
10709     msvisualcpp | msvcmsys)
10710       # This compiler won't grok `-c -o', but also, the minuso test has
10711       # not run yet.  These depmodes are late enough in the game, and
10712       # so weak that their functioning should not be impacted.
10713       am__obj=conftest.${OBJEXT-o}
10714       am__minus_obj=
10715       ;;
10716     none) break ;;
10717     esac
10718     if depmode=$depmode \
10719        source=sub/conftest.c object=$am__obj \
10720        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10721        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10722          >/dev/null 2>conftest.err &&
10723        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10724        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10725        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10726        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10727       # icc doesn't choke on unknown options, it will just issue warnings
10728       # or remarks (even with -Werror).  So we grep stderr for any message
10729       # that says an option was ignored or not supported.
10730       # When given -MP, icc 7.0 and 7.1 complain thusly:
10731       #   icc: Command line warning: ignoring option '-M'; no argument required
10732       # The diagnosis changed in icc 8.0:
10733       #   icc: Command line remark: option '-MP' not supported
10734       if (grep 'ignoring option' conftest.err ||
10735           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10736         am_cv_CXX_dependencies_compiler_type=$depmode
10737         break
10738       fi
10739     fi
10740   done
10741
10742   cd ..
10743   rm -rf conftest.dir
10744 else
10745   am_cv_CXX_dependencies_compiler_type=none
10746 fi
10747
10748 fi
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10750 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10751 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10752
10753  if
10754   test "x$enable_dependency_tracking" != xno \
10755   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10756   am__fastdepCXX_TRUE=
10757   am__fastdepCXX_FALSE='#'
10758 else
10759   am__fastdepCXX_TRUE='#'
10760   am__fastdepCXX_FALSE=
10761 fi
10762
10763
10764 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10765     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10766     (test "X$CXX" != "Xg++"))) ; then
10767   ac_ext=cpp
10768 ac_cpp='$CXXCPP $CPPFLAGS'
10769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10773 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10774 if test -z "$CXXCPP"; then
10775   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10776   $as_echo_n "(cached) " >&6
10777 else
10778       # Double quotes because CXXCPP needs to be expanded
10779     for CXXCPP in "$CXX -E" "/lib/cpp"
10780     do
10781       ac_preproc_ok=false
10782 for ac_cxx_preproc_warn_flag in '' yes
10783 do
10784   # Use a header file that comes with gcc, so configuring glibc
10785   # with a fresh cross-compiler works.
10786   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10787   # <limits.h> exists even on freestanding compilers.
10788   # On the NeXT, cc -E runs the code through the compiler's parser,
10789   # not just through cpp. "Syntax error" is here to catch this case.
10790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h.  */
10792 #ifdef __STDC__
10793 # include <limits.h>
10794 #else
10795 # include <assert.h>
10796 #endif
10797                      Syntax error
10798 _ACEOF
10799 if ac_fn_cxx_try_cpp "$LINENO"; then :
10800
10801 else
10802   # Broken: fails on valid input.
10803 continue
10804 fi
10805 rm -f conftest.err conftest.$ac_ext
10806
10807   # OK, works on sane cases.  Now check whether nonexistent headers
10808   # can be detected and how.
10809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h.  */
10811 #include <ac_nonexistent.h>
10812 _ACEOF
10813 if ac_fn_cxx_try_cpp "$LINENO"; then :
10814   # Broken: success on invalid input.
10815 continue
10816 else
10817   # Passes both tests.
10818 ac_preproc_ok=:
10819 break
10820 fi
10821 rm -f conftest.err conftest.$ac_ext
10822
10823 done
10824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10825 rm -f conftest.err conftest.$ac_ext
10826 if $ac_preproc_ok; then :
10827   break
10828 fi
10829
10830     done
10831     ac_cv_prog_CXXCPP=$CXXCPP
10832
10833 fi
10834   CXXCPP=$ac_cv_prog_CXXCPP
10835 else
10836   ac_cv_prog_CXXCPP=$CXXCPP
10837 fi
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10839 $as_echo "$CXXCPP" >&6; }
10840 ac_preproc_ok=false
10841 for ac_cxx_preproc_warn_flag in '' yes
10842 do
10843   # Use a header file that comes with gcc, so configuring glibc
10844   # with a fresh cross-compiler works.
10845   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10846   # <limits.h> exists even on freestanding compilers.
10847   # On the NeXT, cc -E runs the code through the compiler's parser,
10848   # not just through cpp. "Syntax error" is here to catch this case.
10849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h.  */
10851 #ifdef __STDC__
10852 # include <limits.h>
10853 #else
10854 # include <assert.h>
10855 #endif
10856                      Syntax error
10857 _ACEOF
10858 if ac_fn_cxx_try_cpp "$LINENO"; then :
10859
10860 else
10861   # Broken: fails on valid input.
10862 continue
10863 fi
10864 rm -f conftest.err conftest.$ac_ext
10865
10866   # OK, works on sane cases.  Now check whether nonexistent headers
10867   # can be detected and how.
10868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h.  */
10870 #include <ac_nonexistent.h>
10871 _ACEOF
10872 if ac_fn_cxx_try_cpp "$LINENO"; then :
10873   # Broken: success on invalid input.
10874 continue
10875 else
10876   # Passes both tests.
10877 ac_preproc_ok=:
10878 break
10879 fi
10880 rm -f conftest.err conftest.$ac_ext
10881
10882 done
10883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10884 rm -f conftest.err conftest.$ac_ext
10885 if $ac_preproc_ok; then :
10886
10887 else
10888   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10890 _lt_caught_CXX_error=yes; }
10891 fi
10892
10893 ac_ext=c
10894 ac_cpp='$CPP $CPPFLAGS'
10895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10898
10899 else
10900   _lt_caught_CXX_error=yes
10901 fi
10902
10903
10904
10905
10906
10907 ac_ext=f
10908 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10909 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10910 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10911 if test -n "$ac_tool_prefix"; then
10912   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 pgf95 lf95 ftn
10913   do
10914     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10917 $as_echo_n "checking for $ac_word... " >&6; }
10918 if test "${ac_cv_prog_F77+set}" = set; then :
10919   $as_echo_n "(cached) " >&6
10920 else
10921   if test -n "$F77"; then
10922   ac_cv_prog_F77="$F77" # Let the user override the test.
10923 else
10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10926 do
10927   IFS=$as_save_IFS
10928   test -z "$as_dir" && as_dir=.
10929     for ac_exec_ext in '' $ac_executable_extensions; do
10930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10931     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10933     break 2
10934   fi
10935 done
10936   done
10937 IFS=$as_save_IFS
10938
10939 fi
10940 fi
10941 F77=$ac_cv_prog_F77
10942 if test -n "$F77"; then
10943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
10944 $as_echo "$F77" >&6; }
10945 else
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10948 fi
10949
10950
10951     test -n "$F77" && break
10952   done
10953 fi
10954 if test -z "$F77"; then
10955   ac_ct_F77=$F77
10956   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 pgf95 lf95 ftn
10957 do
10958   # Extract the first word of "$ac_prog", so it can be a program name with args.
10959 set dummy $ac_prog; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
10963   $as_echo_n "(cached) " >&6
10964 else
10965   if test -n "$ac_ct_F77"; then
10966   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10967 else
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10970 do
10971   IFS=$as_save_IFS
10972   test -z "$as_dir" && as_dir=.
10973     for ac_exec_ext in '' $ac_executable_extensions; do
10974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10975     ac_cv_prog_ac_ct_F77="$ac_prog"
10976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977     break 2
10978   fi
10979 done
10980   done
10981 IFS=$as_save_IFS
10982
10983 fi
10984 fi
10985 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10986 if test -n "$ac_ct_F77"; then
10987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
10988 $as_echo "$ac_ct_F77" >&6; }
10989 else
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992 fi
10993
10994
10995   test -n "$ac_ct_F77" && break
10996 done
10997
10998   if test "x$ac_ct_F77" = x; then
10999     F77=""
11000   else
11001     case $cross_compiling:$ac_tool_warned in
11002 yes:)
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11005 ac_tool_warned=yes ;;
11006 esac
11007     F77=$ac_ct_F77
11008   fi
11009 fi
11010
11011
11012 # Provide some information about the compiler.
11013 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
11014 set X $ac_compile
11015 ac_compiler=$2
11016 for ac_option in --version -v -V -qversion; do
11017   { { ac_try="$ac_compiler $ac_option >&5"
11018 case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11023 $as_echo "$ac_try_echo"; } >&5
11024   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11025   ac_status=$?
11026   if test -s conftest.err; then
11027     sed '10a\
11028 ... rest of stderr output deleted ...
11029          10q' conftest.err >conftest.er1
11030     cat conftest.er1 >&5
11031     rm -f conftest.er1 conftest.err
11032   fi
11033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11034   test $ac_status = 0; }
11035 done
11036 rm -f a.out
11037
11038 # If we don't use `.F' as extension, the preprocessor is not run on the
11039 # input file.  (Note that this only needs to work for GNU compilers.)
11040 ac_save_ext=$ac_ext
11041 ac_ext=F
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
11043 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
11044 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
11045   $as_echo_n "(cached) " >&6
11046 else
11047   cat > conftest.$ac_ext <<_ACEOF
11048       program main
11049 #ifndef __GNUC__
11050        choke me
11051 #endif
11052
11053       end
11054 _ACEOF
11055 if ac_fn_f77_try_compile "$LINENO"; then :
11056   ac_compiler_gnu=yes
11057 else
11058   ac_compiler_gnu=no
11059 fi
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11062
11063 fi
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
11065 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
11066 ac_ext=$ac_save_ext
11067 ac_test_FFLAGS=${FFLAGS+set}
11068 ac_save_FFLAGS=$FFLAGS
11069 FFLAGS=
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
11071 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
11072 if test "${ac_cv_prog_f77_g+set}" = set; then :
11073   $as_echo_n "(cached) " >&6
11074 else
11075   FFLAGS=-g
11076 cat > conftest.$ac_ext <<_ACEOF
11077       program main
11078
11079       end
11080 _ACEOF
11081 if ac_fn_f77_try_compile "$LINENO"; then :
11082   ac_cv_prog_f77_g=yes
11083 else
11084   ac_cv_prog_f77_g=no
11085 fi
11086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11087
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
11090 $as_echo "$ac_cv_prog_f77_g" >&6; }
11091 if test "$ac_test_FFLAGS" = set; then
11092   FFLAGS=$ac_save_FFLAGS
11093 elif test $ac_cv_prog_f77_g = yes; then
11094   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11095     FFLAGS="-g -O2"
11096   else
11097     FFLAGS="-g"
11098   fi
11099 else
11100   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11101     FFLAGS="-O2"
11102   else
11103     FFLAGS=
11104   fi
11105 fi
11106
11107 if test $ac_compiler_gnu = yes; then
11108   G77=yes
11109 else
11110   G77=
11111 fi
11112 ac_ext=c
11113 ac_cpp='$CPP $CPPFLAGS'
11114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11117
11118 if test -z "$F77" || test "X$F77" = "Xno"; then
11119   _lt_disable_F77=yes
11120 fi
11121
11122
11123
11124
11125
11126 # Set options
11127
11128
11129
11130         enable_dlopen=no
11131
11132
11133
11134             # Check whether --enable-shared was given.
11135 if test "${enable_shared+set}" = set; then :
11136   enableval=$enable_shared; p=${PACKAGE-default}
11137     case $enableval in
11138     yes) enable_shared=yes ;;
11139     no) enable_shared=no ;;
11140     *)
11141       enable_shared=no
11142       # Look at the argument we got.  We use all the common list separators.
11143       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11144       for pkg in $enableval; do
11145         IFS="$lt_save_ifs"
11146         if test "X$pkg" = "X$p"; then
11147           enable_shared=yes
11148         fi
11149       done
11150       IFS="$lt_save_ifs"
11151       ;;
11152     esac
11153 else
11154   enable_shared=yes
11155 fi
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165   # Check whether --enable-static was given.
11166 if test "${enable_static+set}" = set; then :
11167   enableval=$enable_static; p=${PACKAGE-default}
11168     case $enableval in
11169     yes) enable_static=yes ;;
11170     no) enable_static=no ;;
11171     *)
11172      enable_static=no
11173       # Look at the argument we got.  We use all the common list separators.
11174       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11175       for pkg in $enableval; do
11176         IFS="$lt_save_ifs"
11177         if test "X$pkg" = "X$p"; then
11178           enable_static=yes
11179         fi
11180       done
11181       IFS="$lt_save_ifs"
11182       ;;
11183     esac
11184 else
11185   enable_static=yes
11186 fi
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197 # Check whether --with-pic was given.
11198 if test "${with_pic+set}" = set; then :
11199   withval=$with_pic; pic_mode="$withval"
11200 else
11201   pic_mode=default
11202 fi
11203
11204
11205 test -z "$pic_mode" && pic_mode=default
11206
11207
11208
11209
11210
11211
11212
11213   # Check whether --enable-fast-install was given.
11214 if test "${enable_fast_install+set}" = set; then :
11215   enableval=$enable_fast_install; p=${PACKAGE-default}
11216     case $enableval in
11217     yes) enable_fast_install=yes ;;
11218     no) enable_fast_install=no ;;
11219     *)
11220       enable_fast_install=no
11221       # Look at the argument we got.  We use all the common list separators.
11222       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11223       for pkg in $enableval; do
11224         IFS="$lt_save_ifs"
11225         if test "X$pkg" = "X$p"; then
11226           enable_fast_install=yes
11227         fi
11228       done
11229       IFS="$lt_save_ifs"
11230       ;;
11231     esac
11232 else
11233   enable_fast_install=yes
11234 fi
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246 # This can be used to rebuild libtool when needed
11247 LIBTOOL_DEPS="$ltmain"
11248
11249 # Always use our own libtool.
11250 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276 test -z "$LN_S" && LN_S="ln -s"
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291 if test -n "${ZSH_VERSION+set}" ; then
11292    setopt NO_GLOB_SUBST
11293 fi
11294
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11296 $as_echo_n "checking for objdir... " >&6; }
11297 if test "${lt_cv_objdir+set}" = set; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   rm -f .libs 2>/dev/null
11301 mkdir .libs 2>/dev/null
11302 if test -d .libs; then
11303   lt_cv_objdir=.libs
11304 else
11305   # MS-DOS does not allow filenames that begin with a dot.
11306   lt_cv_objdir=_libs
11307 fi
11308 rmdir .libs 2>/dev/null
11309 fi
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11311 $as_echo "$lt_cv_objdir" >&6; }
11312 objdir=$lt_cv_objdir
11313
11314
11315
11316
11317
11318 cat >>confdefs.h <<_ACEOF
11319 #define LT_OBJDIR "$lt_cv_objdir/"
11320 _ACEOF
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338 case $host_os in
11339 aix3*)
11340   # AIX sometimes has problems with the GCC collect2 program.  For some
11341   # reason, if we set the COLLECT_NAMES environment variable, the problems
11342   # vanish in a puff of smoke.
11343   if test "X${COLLECT_NAMES+set}" != Xset; then
11344     COLLECT_NAMES=
11345     export COLLECT_NAMES
11346   fi
11347   ;;
11348 esac
11349
11350 # Sed substitution that helps us do robust quoting.  It backslashifies
11351 # metacharacters that are still active within double-quoted strings.
11352 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11353
11354 # Same as above, but do not quote variable references.
11355 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11356
11357 # Sed substitution to delay expansion of an escaped shell variable in a
11358 # double_quote_subst'ed string.
11359 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11360
11361 # Sed substitution to delay expansion of an escaped single quote.
11362 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11363
11364 # Sed substitution to avoid accidental globbing in evaled expressions
11365 no_glob_subst='s/\*/\\\*/g'
11366
11367 # Global variables:
11368 ofile=libtool
11369 can_build_shared=yes
11370
11371 # All known linkers require a `.a' archive for static linking (except MSVC,
11372 # which needs '.lib').
11373 libext=a
11374
11375 with_gnu_ld="$lt_cv_prog_gnu_ld"
11376
11377 old_CC="$CC"
11378 old_CFLAGS="$CFLAGS"
11379
11380 # Set sane defaults for various variables
11381 test -z "$CC" && CC=cc
11382 test -z "$LTCC" && LTCC=$CC
11383 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11384 test -z "$LD" && LD=ld
11385 test -z "$ac_objext" && ac_objext=o
11386
11387 for cc_temp in $compiler""; do
11388   case $cc_temp in
11389     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11390     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11391     \-*) ;;
11392     *) break;;
11393   esac
11394 done
11395 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11396
11397
11398 # Only perform the check for file, if the check method requires it
11399 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11400 case $deplibs_check_method in
11401 file_magic*)
11402   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11404 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11405 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11406   $as_echo_n "(cached) " >&6
11407 else
11408   case $MAGIC_CMD in
11409 [\\/*] |  ?:[\\/]*)
11410   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11411   ;;
11412 *)
11413   lt_save_MAGIC_CMD="$MAGIC_CMD"
11414   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11415   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11416   for ac_dir in $ac_dummy; do
11417     IFS="$lt_save_ifs"
11418     test -z "$ac_dir" && ac_dir=.
11419     if test -f $ac_dir/${ac_tool_prefix}file; then
11420       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11421       if test -n "$file_magic_test_file"; then
11422         case $deplibs_check_method in
11423         "file_magic "*)
11424           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11425           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11426           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11427             $EGREP "$file_magic_regex" > /dev/null; then
11428             :
11429           else
11430             cat <<_LT_EOF 1>&2
11431
11432 *** Warning: the command libtool uses to detect shared libraries,
11433 *** $file_magic_cmd, produces output that libtool cannot recognize.
11434 *** The result is that libtool may fail to recognize shared libraries
11435 *** as such.  This will affect the creation of libtool libraries that
11436 *** depend on shared libraries, but programs linked with such libtool
11437 *** libraries will work regardless of this problem.  Nevertheless, you
11438 *** may want to report the problem to your system manager and/or to
11439 *** bug-libtool@gnu.org
11440
11441 _LT_EOF
11442           fi ;;
11443         esac
11444       fi
11445       break
11446     fi
11447   done
11448   IFS="$lt_save_ifs"
11449   MAGIC_CMD="$lt_save_MAGIC_CMD"
11450   ;;
11451 esac
11452 fi
11453
11454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11455 if test -n "$MAGIC_CMD"; then
11456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11457 $as_echo "$MAGIC_CMD" >&6; }
11458 else
11459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11461 fi
11462
11463
11464
11465
11466
11467 if test -z "$lt_cv_path_MAGIC_CMD"; then
11468   if test -n "$ac_tool_prefix"; then
11469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11470 $as_echo_n "checking for file... " >&6; }
11471 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11472   $as_echo_n "(cached) " >&6
11473 else
11474   case $MAGIC_CMD in
11475 [\\/*] |  ?:[\\/]*)
11476   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11477   ;;
11478 *)
11479   lt_save_MAGIC_CMD="$MAGIC_CMD"
11480   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11481   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11482   for ac_dir in $ac_dummy; do
11483     IFS="$lt_save_ifs"
11484     test -z "$ac_dir" && ac_dir=.
11485     if test -f $ac_dir/file; then
11486       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11487       if test -n "$file_magic_test_file"; then
11488         case $deplibs_check_method in
11489         "file_magic "*)
11490           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11491           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11492           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11493             $EGREP "$file_magic_regex" > /dev/null; then
11494             :
11495           else
11496             cat <<_LT_EOF 1>&2
11497
11498 *** Warning: the command libtool uses to detect shared libraries,
11499 *** $file_magic_cmd, produces output that libtool cannot recognize.
11500 *** The result is that libtool may fail to recognize shared libraries
11501 *** as such.  This will affect the creation of libtool libraries that
11502 *** depend on shared libraries, but programs linked with such libtool
11503 *** libraries will work regardless of this problem.  Nevertheless, you
11504 *** may want to report the problem to your system manager and/or to
11505 *** bug-libtool@gnu.org
11506
11507 _LT_EOF
11508           fi ;;
11509         esac
11510       fi
11511       break
11512     fi
11513   done
11514   IFS="$lt_save_ifs"
11515   MAGIC_CMD="$lt_save_MAGIC_CMD"
11516   ;;
11517 esac
11518 fi
11519
11520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11521 if test -n "$MAGIC_CMD"; then
11522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11523 $as_echo "$MAGIC_CMD" >&6; }
11524 else
11525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528
11529
11530   else
11531     MAGIC_CMD=:
11532   fi
11533 fi
11534
11535   fi
11536   ;;
11537 esac
11538
11539 # Use C for the default configuration in the libtool script
11540
11541 lt_save_CC="$CC"
11542 ac_ext=c
11543 ac_cpp='$CPP $CPPFLAGS'
11544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11547
11548
11549 # Source file extension for C test sources.
11550 ac_ext=c
11551
11552 # Object file extension for compiled C test sources.
11553 objext=o
11554 objext=$objext
11555
11556 # Code to be used in simple compile tests
11557 lt_simple_compile_test_code="int some_variable = 0;"
11558
11559 # Code to be used in simple link tests
11560 lt_simple_link_test_code='int main(){return(0);}'
11561
11562
11563
11564
11565
11566
11567
11568 # If no C compiler was specified, use CC.
11569 LTCC=${LTCC-"$CC"}
11570
11571 # If no C compiler flags were specified, use CFLAGS.
11572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11573
11574 # Allow CC to be a program name with arguments.
11575 compiler=$CC
11576
11577 # Save the default compiler, since it gets overwritten when the other
11578 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11579 compiler_DEFAULT=$CC
11580
11581 # save warnings/boilerplate of simple test code
11582 ac_outfile=conftest.$ac_objext
11583 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11584 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11585 _lt_compiler_boilerplate=`cat conftest.err`
11586 $RM conftest*
11587
11588 ac_outfile=conftest.$ac_objext
11589 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11590 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11591 _lt_linker_boilerplate=`cat conftest.err`
11592 $RM -r conftest*
11593
11594
11595 ## CAVEAT EMPTOR:
11596 ## There is no encapsulation within the following macros, do not change
11597 ## the running order or otherwise move them around unless you know exactly
11598 ## what you are doing...
11599 if test -n "$compiler"; then
11600
11601 lt_prog_compiler_no_builtin_flag=
11602
11603 if test "$GCC" = yes; then
11604   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11605
11606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11607 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11608 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11609   $as_echo_n "(cached) " >&6
11610 else
11611   lt_cv_prog_compiler_rtti_exceptions=no
11612    ac_outfile=conftest.$ac_objext
11613    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11614    lt_compiler_flag="-fno-rtti -fno-exceptions"
11615    # Insert the option either (1) after the last *FLAGS variable, or
11616    # (2) before a word containing "conftest.", or (3) at the end.
11617    # Note that $ac_compile itself does not contain backslashes and begins
11618    # with a dollar sign (not a hyphen), so the echo should work correctly.
11619    # The option is referenced via a variable to avoid confusing sed.
11620    lt_compile=`echo "$ac_compile" | $SED \
11621    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11622    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11623    -e 's:$: $lt_compiler_flag:'`
11624    (eval echo "\"\$as_me:11624: $lt_compile\"" >&5)
11625    (eval "$lt_compile" 2>conftest.err)
11626    ac_status=$?
11627    cat conftest.err >&5
11628    echo "$as_me:11628: \$? = $ac_status" >&5
11629    if (exit $ac_status) && test -s "$ac_outfile"; then
11630      # The compiler can only warn and ignore the option if not recognized
11631      # So say no if there are warnings other than the usual output.
11632      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11633      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11634      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11635        lt_cv_prog_compiler_rtti_exceptions=yes
11636      fi
11637    fi
11638    $RM conftest*
11639
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11642 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11643
11644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11645     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11646 else
11647     :
11648 fi
11649
11650 fi
11651
11652
11653
11654
11655
11656
11657   lt_prog_compiler_wl=
11658 lt_prog_compiler_pic=
11659 lt_prog_compiler_static=
11660
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11662 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11663
11664   if test "$GCC" = yes; then
11665     lt_prog_compiler_wl='-Wl,'
11666     lt_prog_compiler_static='-static'
11667
11668     case $host_os in
11669       aix*)
11670       # All AIX code is PIC.
11671       if test "$host_cpu" = ia64; then
11672         # AIX 5 now supports IA64 processor
11673         lt_prog_compiler_static='-Bstatic'
11674       fi
11675       ;;
11676
11677     amigaos*)
11678       case $host_cpu in
11679       powerpc)
11680             # see comment about AmigaOS4 .so support
11681             lt_prog_compiler_pic='-fPIC'
11682         ;;
11683       m68k)
11684             # FIXME: we need at least 68020 code to build shared libraries, but
11685             # adding the `-m68020' flag to GCC prevents building anything better,
11686             # like `-m68040'.
11687             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11688         ;;
11689       esac
11690       ;;
11691
11692     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11693       # PIC is the default for these OSes.
11694       ;;
11695
11696     mingw* | cygwin* | pw32* | os2* | cegcc*)
11697       # This hack is so that the source file can tell whether it is being
11698       # built for inclusion in a dll (and should export symbols for example).
11699       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11700       # (--disable-auto-import) libraries
11701       lt_prog_compiler_pic='-DDLL_EXPORT'
11702       ;;
11703
11704     darwin* | rhapsody*)
11705       # PIC is the default on this platform
11706       # Common symbols not allowed in MH_DYLIB files
11707       lt_prog_compiler_pic='-fno-common'
11708       ;;
11709
11710     hpux*)
11711       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11712       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11713       # sets the default TLS model and affects inlining.
11714       case $host_cpu in
11715       hppa*64*)
11716         # +Z the default
11717         ;;
11718       *)
11719         lt_prog_compiler_pic='-fPIC'
11720         ;;
11721       esac
11722       ;;
11723
11724     interix[3-9]*)
11725       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11726       # Instead, we relocate shared libraries at runtime.
11727       ;;
11728
11729     msdosdjgpp*)
11730       # Just because we use GCC doesn't mean we suddenly get shared libraries
11731       # on systems that don't support them.
11732       lt_prog_compiler_can_build_shared=no
11733       enable_shared=no
11734       ;;
11735
11736     *nto* | *qnx*)
11737       # QNX uses GNU C++, but need to define -shared option too, otherwise
11738       # it will coredump.
11739       lt_prog_compiler_pic='-fPIC -shared'
11740       ;;
11741
11742     sysv4*MP*)
11743       if test -d /usr/nec; then
11744         lt_prog_compiler_pic=-Kconform_pic
11745       fi
11746       ;;
11747
11748     *)
11749       lt_prog_compiler_pic='-fPIC'
11750       ;;
11751     esac
11752   else
11753     # PORTME Check for flag to pass linker flags through the system compiler.
11754     case $host_os in
11755     aix*)
11756       lt_prog_compiler_wl='-Wl,'
11757       if test "$host_cpu" = ia64; then
11758         # AIX 5 now supports IA64 processor
11759         lt_prog_compiler_static='-Bstatic'
11760       else
11761         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11762       fi
11763       ;;
11764
11765     mingw* | cygwin* | pw32* | os2* | cegcc*)
11766       # This hack is so that the source file can tell whether it is being
11767       # built for inclusion in a dll (and should export symbols for example).
11768       lt_prog_compiler_pic='-DDLL_EXPORT'
11769       ;;
11770
11771     hpux9* | hpux10* | hpux11*)
11772       lt_prog_compiler_wl='-Wl,'
11773       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11774       # not for PA HP-UX.
11775       case $host_cpu in
11776       hppa*64*|ia64*)
11777         # +Z the default
11778         ;;
11779       *)
11780         lt_prog_compiler_pic='+Z'
11781         ;;
11782       esac
11783       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11784       lt_prog_compiler_static='${wl}-a ${wl}archive'
11785       ;;
11786
11787     irix5* | irix6* | nonstopux*)
11788       lt_prog_compiler_wl='-Wl,'
11789       # PIC (with -KPIC) is the default.
11790       lt_prog_compiler_static='-non_shared'
11791       ;;
11792
11793     linux* | k*bsd*-gnu)
11794       case $cc_basename in
11795       # old Intel for x86_64 which still supported -KPIC.
11796       ecc*)
11797         lt_prog_compiler_wl='-Wl,'
11798         lt_prog_compiler_pic='-KPIC'
11799         lt_prog_compiler_static='-static'
11800         ;;
11801       # icc used to be incompatible with GCC.
11802       # ICC 10 doesn't accept -KPIC any more.
11803       icc* | ifort*)
11804         lt_prog_compiler_wl='-Wl,'
11805         lt_prog_compiler_pic='-fPIC'
11806         lt_prog_compiler_static='-static'
11807         ;;
11808       # Lahey Fortran 8.1.
11809       lf95*)
11810         lt_prog_compiler_wl='-Wl,'
11811         lt_prog_compiler_pic='--shared'
11812         lt_prog_compiler_static='--static'
11813         ;;
11814       pgcc* | pgf77* | pgf90* | pgf95*)
11815         # Portland Group compilers (*not* the Pentium gcc compiler,
11816         # which looks to be a dead project)
11817         lt_prog_compiler_wl='-Wl,'
11818         lt_prog_compiler_pic='-fpic'
11819         lt_prog_compiler_static='-Bstatic'
11820         ;;
11821       ccc*)
11822         lt_prog_compiler_wl='-Wl,'
11823         # All Alpha code is PIC.
11824         lt_prog_compiler_static='-non_shared'
11825         ;;
11826       xl*)
11827         # IBM XL C 8.0/Fortran 10.1 on PPC
11828         lt_prog_compiler_wl='-Wl,'
11829         lt_prog_compiler_pic='-qpic'
11830         lt_prog_compiler_static='-qstaticlink'
11831         ;;
11832       *)
11833         case `$CC -V 2>&1 | sed 5q` in
11834         *Sun\ C*)
11835           # Sun C 5.9
11836           lt_prog_compiler_pic='-KPIC'
11837           lt_prog_compiler_static='-Bstatic'
11838           lt_prog_compiler_wl='-Wl,'
11839           ;;
11840         *Sun\ F*)
11841           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11842           lt_prog_compiler_pic='-KPIC'
11843           lt_prog_compiler_static='-Bstatic'
11844           lt_prog_compiler_wl=''
11845           ;;
11846         esac
11847         ;;
11848       esac
11849       ;;
11850
11851     newsos6)
11852       lt_prog_compiler_pic='-KPIC'
11853       lt_prog_compiler_static='-Bstatic'
11854       ;;
11855
11856     *nto* | *qnx*)
11857       # QNX uses GNU C++, but need to define -shared option too, otherwise
11858       # it will coredump.
11859       lt_prog_compiler_pic='-fPIC -shared'
11860       ;;
11861
11862     osf3* | osf4* | osf5*)
11863       lt_prog_compiler_wl='-Wl,'
11864       # All OSF/1 code is PIC.
11865       lt_prog_compiler_static='-non_shared'
11866       ;;
11867
11868     rdos*)
11869       lt_prog_compiler_static='-non_shared'
11870       ;;
11871
11872     solaris*)
11873       lt_prog_compiler_pic='-KPIC'
11874       lt_prog_compiler_static='-Bstatic'
11875       case $cc_basename in
11876       f77* | f90* | f95*)
11877         lt_prog_compiler_wl='-Qoption ld ';;
11878       *)
11879         lt_prog_compiler_wl='-Wl,';;
11880       esac
11881       ;;
11882
11883     sunos4*)
11884       lt_prog_compiler_wl='-Qoption ld '
11885       lt_prog_compiler_pic='-PIC'
11886       lt_prog_compiler_static='-Bstatic'
11887       ;;
11888
11889     sysv4 | sysv4.2uw2* | sysv4.3*)
11890       lt_prog_compiler_wl='-Wl,'
11891       lt_prog_compiler_pic='-KPIC'
11892       lt_prog_compiler_static='-Bstatic'
11893       ;;
11894
11895     sysv4*MP*)
11896       if test -d /usr/nec ;then
11897         lt_prog_compiler_pic='-Kconform_pic'
11898         lt_prog_compiler_static='-Bstatic'
11899       fi
11900       ;;
11901
11902     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11903       lt_prog_compiler_wl='-Wl,'
11904       lt_prog_compiler_pic='-KPIC'
11905       lt_prog_compiler_static='-Bstatic'
11906       ;;
11907
11908     unicos*)
11909       lt_prog_compiler_wl='-Wl,'
11910       lt_prog_compiler_can_build_shared=no
11911       ;;
11912
11913     uts4*)
11914       lt_prog_compiler_pic='-pic'
11915       lt_prog_compiler_static='-Bstatic'
11916       ;;
11917
11918     *)
11919       lt_prog_compiler_can_build_shared=no
11920       ;;
11921     esac
11922   fi
11923
11924 case $host_os in
11925   # For platforms which do not support PIC, -DPIC is meaningless:
11926   *djgpp*)
11927     lt_prog_compiler_pic=
11928     ;;
11929   *)
11930     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11931     ;;
11932 esac
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11934 $as_echo "$lt_prog_compiler_pic" >&6; }
11935
11936
11937
11938
11939
11940
11941 #
11942 # Check to make sure the PIC flag actually works.
11943 #
11944 if test -n "$lt_prog_compiler_pic"; then
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11946 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11947 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
11948   $as_echo_n "(cached) " >&6
11949 else
11950   lt_cv_prog_compiler_pic_works=no
11951    ac_outfile=conftest.$ac_objext
11952    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11953    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11954    # Insert the option either (1) after the last *FLAGS variable, or
11955    # (2) before a word containing "conftest.", or (3) at the end.
11956    # Note that $ac_compile itself does not contain backslashes and begins
11957    # with a dollar sign (not a hyphen), so the echo should work correctly.
11958    # The option is referenced via a variable to avoid confusing sed.
11959    lt_compile=`echo "$ac_compile" | $SED \
11960    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11962    -e 's:$: $lt_compiler_flag:'`
11963    (eval echo "\"\$as_me:11963: $lt_compile\"" >&5)
11964    (eval "$lt_compile" 2>conftest.err)
11965    ac_status=$?
11966    cat conftest.err >&5
11967    echo "$as_me:11967: \$? = $ac_status" >&5
11968    if (exit $ac_status) && test -s "$ac_outfile"; then
11969      # The compiler can only warn and ignore the option if not recognized
11970      # So say no if there are warnings other than the usual output.
11971      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11972      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11973      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11974        lt_cv_prog_compiler_pic_works=yes
11975      fi
11976    fi
11977    $RM conftest*
11978
11979 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11981 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11982
11983 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11984     case $lt_prog_compiler_pic in
11985      "" | " "*) ;;
11986      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11987      esac
11988 else
11989     lt_prog_compiler_pic=
11990      lt_prog_compiler_can_build_shared=no
11991 fi
11992
11993 fi
11994
11995
11996
11997
11998
11999
12000 #
12001 # Check to make sure the static flag actually works.
12002 #
12003 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12005 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12006 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12007   $as_echo_n "(cached) " >&6
12008 else
12009   lt_cv_prog_compiler_static_works=no
12010    save_LDFLAGS="$LDFLAGS"
12011    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12012    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12013    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12014      # The linker can only warn and ignore the option if not recognized
12015      # So say no if there are warnings
12016      if test -s conftest.err; then
12017        # Append any errors to the config.log.
12018        cat conftest.err 1>&5
12019        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12020        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12021        if diff conftest.exp conftest.er2 >/dev/null; then
12022          lt_cv_prog_compiler_static_works=yes
12023        fi
12024      else
12025        lt_cv_prog_compiler_static_works=yes
12026      fi
12027    fi
12028    $RM -r conftest*
12029    LDFLAGS="$save_LDFLAGS"
12030
12031 fi
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12033 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12034
12035 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12036     :
12037 else
12038     lt_prog_compiler_static=
12039 fi
12040
12041
12042
12043
12044
12045
12046
12047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12048 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12049 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12050   $as_echo_n "(cached) " >&6
12051 else
12052   lt_cv_prog_compiler_c_o=no
12053    $RM -r conftest 2>/dev/null
12054    mkdir conftest
12055    cd conftest
12056    mkdir out
12057    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12058
12059    lt_compiler_flag="-o out/conftest2.$ac_objext"
12060    # Insert the option either (1) after the last *FLAGS variable, or
12061    # (2) before a word containing "conftest.", or (3) at the end.
12062    # Note that $ac_compile itself does not contain backslashes and begins
12063    # with a dollar sign (not a hyphen), so the echo should work correctly.
12064    lt_compile=`echo "$ac_compile" | $SED \
12065    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12067    -e 's:$: $lt_compiler_flag:'`
12068    (eval echo "\"\$as_me:12068: $lt_compile\"" >&5)
12069    (eval "$lt_compile" 2>out/conftest.err)
12070    ac_status=$?
12071    cat out/conftest.err >&5
12072    echo "$as_me:12072: \$? = $ac_status" >&5
12073    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12074    then
12075      # The compiler can only warn and ignore the option if not recognized
12076      # So say no if there are warnings
12077      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12078      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12079      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12080        lt_cv_prog_compiler_c_o=yes
12081      fi
12082    fi
12083    chmod u+w . 2>&5
12084    $RM conftest*
12085    # SGI C++ compiler will create directory out/ii_files/ for
12086    # template instantiation
12087    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12088    $RM out/* && rmdir out
12089    cd ..
12090    $RM -r conftest
12091    $RM conftest*
12092
12093 fi
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12095 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12096
12097
12098
12099
12100
12101
12102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12103 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12104 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12105   $as_echo_n "(cached) " >&6
12106 else
12107   lt_cv_prog_compiler_c_o=no
12108    $RM -r conftest 2>/dev/null
12109    mkdir conftest
12110    cd conftest
12111    mkdir out
12112    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12113
12114    lt_compiler_flag="-o out/conftest2.$ac_objext"
12115    # Insert the option either (1) after the last *FLAGS variable, or
12116    # (2) before a word containing "conftest.", or (3) at the end.
12117    # Note that $ac_compile itself does not contain backslashes and begins
12118    # with a dollar sign (not a hyphen), so the echo should work correctly.
12119    lt_compile=`echo "$ac_compile" | $SED \
12120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12122    -e 's:$: $lt_compiler_flag:'`
12123    (eval echo "\"\$as_me:12123: $lt_compile\"" >&5)
12124    (eval "$lt_compile" 2>out/conftest.err)
12125    ac_status=$?
12126    cat out/conftest.err >&5
12127    echo "$as_me:12127: \$? = $ac_status" >&5
12128    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12129    then
12130      # The compiler can only warn and ignore the option if not recognized
12131      # So say no if there are warnings
12132      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12133      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12134      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12135        lt_cv_prog_compiler_c_o=yes
12136      fi
12137    fi
12138    chmod u+w . 2>&5
12139    $RM conftest*
12140    # SGI C++ compiler will create directory out/ii_files/ for
12141    # template instantiation
12142    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12143    $RM out/* && rmdir out
12144    cd ..
12145    $RM -r conftest
12146    $RM conftest*
12147
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12150 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12151
12152
12153
12154
12155 hard_links="nottested"
12156 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12157   # do not overwrite the value of need_locks provided by the user
12158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12159 $as_echo_n "checking if we can lock with hard links... " >&6; }
12160   hard_links=yes
12161   $RM conftest*
12162   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12163   touch conftest.a
12164   ln conftest.a conftest.b 2>&5 || hard_links=no
12165   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12167 $as_echo "$hard_links" >&6; }
12168   if test "$hard_links" = no; then
12169     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12170 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12171     need_locks=warn
12172   fi
12173 else
12174   need_locks=no
12175 fi
12176
12177
12178
12179
12180
12181
12182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12183 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12184
12185   runpath_var=
12186   allow_undefined_flag=
12187   always_export_symbols=no
12188   archive_cmds=
12189   archive_expsym_cmds=
12190   compiler_needs_object=no
12191   enable_shared_with_static_runtimes=no
12192   export_dynamic_flag_spec=
12193   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12194   hardcode_automatic=no
12195   hardcode_direct=no
12196   hardcode_direct_absolute=no
12197   hardcode_libdir_flag_spec=
12198   hardcode_libdir_flag_spec_ld=
12199   hardcode_libdir_separator=
12200   hardcode_minus_L=no
12201   hardcode_shlibpath_var=unsupported
12202   inherit_rpath=no
12203   link_all_deplibs=unknown
12204   module_cmds=
12205   module_expsym_cmds=
12206   old_archive_from_new_cmds=
12207   old_archive_from_expsyms_cmds=
12208   thread_safe_flag_spec=
12209   whole_archive_flag_spec=
12210   # include_expsyms should be a list of space-separated symbols to be *always*
12211   # included in the symbol list
12212   include_expsyms=
12213   # exclude_expsyms can be an extended regexp of symbols to exclude
12214   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12215   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12216   # as well as any symbol that contains `d'.
12217   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12218   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12219   # platforms (ab)use it in PIC code, but their linkers get confused if
12220   # the symbol is explicitly referenced.  Since portable code cannot
12221   # rely on this symbol name, it's probably fine to never include it in
12222   # preloaded symbol tables.
12223   # Exclude shared library initialization/finalization symbols.
12224   extract_expsyms_cmds=
12225
12226   case $host_os in
12227   cygwin* | mingw* | pw32* | cegcc*)
12228     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12229     # When not using gcc, we currently assume that we are using
12230     # Microsoft Visual C++.
12231     if test "$GCC" != yes; then
12232       with_gnu_ld=no
12233     fi
12234     ;;
12235   interix*)
12236     # we just hope/assume this is gcc and not c89 (= MSVC++)
12237     with_gnu_ld=yes
12238     ;;
12239   openbsd*)
12240     with_gnu_ld=no
12241     ;;
12242   linux* | k*bsd*-gnu)
12243     link_all_deplibs=no
12244     ;;
12245   esac
12246
12247   ld_shlibs=yes
12248   if test "$with_gnu_ld" = yes; then
12249     # If archive_cmds runs LD, not CC, wlarc should be empty
12250     wlarc='${wl}'
12251
12252     # Set some defaults for GNU ld with shared library support. These
12253     # are reset later if shared libraries are not supported. Putting them
12254     # here allows them to be overridden if necessary.
12255     runpath_var=LD_RUN_PATH
12256     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12257     export_dynamic_flag_spec='${wl}--export-dynamic'
12258     # ancient GNU ld didn't support --whole-archive et. al.
12259     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12260       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12261     else
12262       whole_archive_flag_spec=
12263     fi
12264     supports_anon_versioning=no
12265     case `$LD -v 2>&1` in
12266       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12267       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12268       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12269       *\ 2.11.*) ;; # other 2.11 versions
12270       *) supports_anon_versioning=yes ;;
12271     esac
12272
12273     # See if GNU ld supports shared libraries.
12274     case $host_os in
12275     aix[3-9]*)
12276       # On AIX/PPC, the GNU linker is very broken
12277       if test "$host_cpu" != ia64; then
12278         ld_shlibs=no
12279         cat <<_LT_EOF 1>&2
12280
12281 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12282 *** to be unable to reliably create shared libraries on AIX.
12283 *** Therefore, libtool is disabling shared libraries support.  If you
12284 *** really care for shared libraries, you may want to modify your PATH
12285 *** so that a non-GNU linker is found, and then restart.
12286
12287 _LT_EOF
12288       fi
12289       ;;
12290
12291     amigaos*)
12292       case $host_cpu in
12293       powerpc)
12294             # see comment about AmigaOS4 .so support
12295             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12296             archive_expsym_cmds=''
12297         ;;
12298       m68k)
12299             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)'
12300             hardcode_libdir_flag_spec='-L$libdir'
12301             hardcode_minus_L=yes
12302         ;;
12303       esac
12304       ;;
12305
12306     beos*)
12307       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12308         allow_undefined_flag=unsupported
12309         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12310         # support --undefined.  This deserves some investigation.  FIXME
12311         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12312       else
12313         ld_shlibs=no
12314       fi
12315       ;;
12316
12317     cygwin* | mingw* | pw32* | cegcc*)
12318       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12319       # as there is no search path for DLLs.
12320       hardcode_libdir_flag_spec='-L$libdir'
12321       allow_undefined_flag=unsupported
12322       always_export_symbols=no
12323       enable_shared_with_static_runtimes=yes
12324       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12325
12326       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12327         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12328         # If the export-symbols file already is a .def file (1st line
12329         # is EXPORTS), use it as is; otherwise, prepend...
12330         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12331           cp $export_symbols $output_objdir/$soname.def;
12332         else
12333           echo EXPORTS > $output_objdir/$soname.def;
12334           cat $export_symbols >> $output_objdir/$soname.def;
12335         fi~
12336         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12337       else
12338         ld_shlibs=no
12339       fi
12340       ;;
12341
12342     interix[3-9]*)
12343       hardcode_direct=no
12344       hardcode_shlibpath_var=no
12345       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12346       export_dynamic_flag_spec='${wl}-E'
12347       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12348       # Instead, shared libraries are loaded at an image base (0x10000000 by
12349       # default) and relocated if they conflict, which is a slow very memory
12350       # consuming and fragmenting process.  To avoid this, we pick a random,
12351       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12352       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12353       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12354       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'
12355       ;;
12356
12357     gnu* | linux* | tpf* | k*bsd*-gnu)
12358       tmp_diet=no
12359       if test "$host_os" = linux-dietlibc; then
12360         case $cc_basename in
12361           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12362         esac
12363       fi
12364       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12365          && test "$tmp_diet" = no
12366       then
12367         tmp_addflag=
12368         tmp_sharedflag='-shared'
12369         case $cc_basename,$host_cpu in
12370         pgcc*)                          # Portland Group C compiler
12371           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'
12372           tmp_addflag=' $pic_flag'
12373           ;;
12374         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
12375           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'
12376           tmp_addflag=' $pic_flag -Mnomain' ;;
12377         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12378           tmp_addflag=' -i_dynamic' ;;
12379         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12380           tmp_addflag=' -i_dynamic -nofor_main' ;;
12381         ifc* | ifort*)                  # Intel Fortran compiler
12382           tmp_addflag=' -nofor_main' ;;
12383         lf95*)                          # Lahey Fortran 8.1
12384           whole_archive_flag_spec=
12385           tmp_sharedflag='--shared' ;;
12386         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
12387           tmp_sharedflag='-qmkshrobj'
12388           tmp_addflag= ;;
12389         esac
12390         case `$CC -V 2>&1 | sed 5q` in
12391         *Sun\ C*)                       # Sun C 5.9
12392           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12393           compiler_needs_object=yes
12394           tmp_sharedflag='-G' ;;
12395         *Sun\ F*)                       # Sun Fortran 8.3
12396           tmp_sharedflag='-G' ;;
12397         esac
12398         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12399
12400         if test "x$supports_anon_versioning" = xyes; then
12401           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12402             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12403             echo "local: *; };" >> $output_objdir/$libname.ver~
12404             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12405         fi
12406
12407         case $cc_basename in
12408         xlf*)
12409           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12410           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12411           hardcode_libdir_flag_spec=
12412           hardcode_libdir_flag_spec_ld='-rpath $libdir'
12413           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12414           if test "x$supports_anon_versioning" = xyes; then
12415             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12416               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12417               echo "local: *; };" >> $output_objdir/$libname.ver~
12418               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12419           fi
12420           ;;
12421         esac
12422       else
12423         ld_shlibs=no
12424       fi
12425       ;;
12426
12427     netbsd* | netbsdelf*-gnu)
12428       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12429         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12430         wlarc=
12431       else
12432         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12433         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12434       fi
12435       ;;
12436
12437     solaris*)
12438       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12439         ld_shlibs=no
12440         cat <<_LT_EOF 1>&2
12441
12442 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12443 *** create shared libraries on Solaris systems.  Therefore, libtool
12444 *** is disabling shared libraries support.  We urge you to upgrade GNU
12445 *** binutils to release 2.9.1 or newer.  Another option is to modify
12446 *** your PATH or compiler configuration so that the native linker is
12447 *** used, and then restart.
12448
12449 _LT_EOF
12450       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12451         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12452         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12453       else
12454         ld_shlibs=no
12455       fi
12456       ;;
12457
12458     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12459       case `$LD -v 2>&1` in
12460         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12461         ld_shlibs=no
12462         cat <<_LT_EOF 1>&2
12463
12464 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12465 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12466 *** is disabling shared libraries support.  We urge you to upgrade GNU
12467 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12468 *** your PATH or compiler configuration so that the native linker is
12469 *** used, and then restart.
12470
12471 _LT_EOF
12472         ;;
12473         *)
12474           # For security reasons, it is highly recommended that you always
12475           # use absolute paths for naming shared libraries, and exclude the
12476           # DT_RUNPATH tag from executables and libraries.  But doing so
12477           # requires that you compile everything twice, which is a pain.
12478           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12479             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12480             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12481             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12482           else
12483             ld_shlibs=no
12484           fi
12485         ;;
12486       esac
12487       ;;
12488
12489     sunos4*)
12490       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12491       wlarc=
12492       hardcode_direct=yes
12493       hardcode_shlibpath_var=no
12494       ;;
12495
12496     *)
12497       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12498         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12499         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12500       else
12501         ld_shlibs=no
12502       fi
12503       ;;
12504     esac
12505
12506     if test "$ld_shlibs" = no; then
12507       runpath_var=
12508       hardcode_libdir_flag_spec=
12509       export_dynamic_flag_spec=
12510       whole_archive_flag_spec=
12511     fi
12512   else
12513     # PORTME fill in a description of your system's linker (not GNU ld)
12514     case $host_os in
12515     aix3*)
12516       allow_undefined_flag=unsupported
12517       always_export_symbols=yes
12518       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'
12519       # Note: this linker hardcodes the directories in LIBPATH if there
12520       # are no directories specified by -L.
12521       hardcode_minus_L=yes
12522       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12523         # Neither direct hardcoding nor static linking is supported with a
12524         # broken collect2.
12525         hardcode_direct=unsupported
12526       fi
12527       ;;
12528
12529     aix[4-9]*)
12530       if test "$host_cpu" = ia64; then
12531         # On IA64, the linker does run time linking by default, so we don't
12532         # have to do anything special.
12533         aix_use_runtimelinking=no
12534         exp_sym_flag='-Bexport'
12535         no_entry_flag=""
12536       else
12537         # If we're using GNU nm, then we don't want the "-C" option.
12538         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12539         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12540           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'
12541         else
12542           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'
12543         fi
12544         aix_use_runtimelinking=no
12545
12546         # Test if we are trying to use run time linking or normal
12547         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12548         # need to do runtime linking.
12549         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12550           for ld_flag in $LDFLAGS; do
12551           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12552             aix_use_runtimelinking=yes
12553             break
12554           fi
12555           done
12556           ;;
12557         esac
12558
12559         exp_sym_flag='-bexport'
12560         no_entry_flag='-bnoentry'
12561       fi
12562
12563       # When large executables or shared objects are built, AIX ld can
12564       # have problems creating the table of contents.  If linking a library
12565       # or program results in "error TOC overflow" add -mminimal-toc to
12566       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12567       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12568
12569       archive_cmds=''
12570       hardcode_direct=yes
12571       hardcode_direct_absolute=yes
12572       hardcode_libdir_separator=':'
12573       link_all_deplibs=yes
12574       file_list_spec='${wl}-f,'
12575
12576       if test "$GCC" = yes; then
12577         case $host_os in aix4.[012]|aix4.[012].*)
12578         # We only want to do this on AIX 4.2 and lower, the check
12579         # below for broken collect2 doesn't work under 4.3+
12580           collect2name=`${CC} -print-prog-name=collect2`
12581           if test -f "$collect2name" &&
12582            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12583           then
12584           # We have reworked collect2
12585           :
12586           else
12587           # We have old collect2
12588           hardcode_direct=unsupported
12589           # It fails to find uninstalled libraries when the uninstalled
12590           # path is not listed in the libpath.  Setting hardcode_minus_L
12591           # to unsupported forces relinking
12592           hardcode_minus_L=yes
12593           hardcode_libdir_flag_spec='-L$libdir'
12594           hardcode_libdir_separator=
12595           fi
12596           ;;
12597         esac
12598         shared_flag='-shared'
12599         if test "$aix_use_runtimelinking" = yes; then
12600           shared_flag="$shared_flag "'${wl}-G'
12601         fi
12602         link_all_deplibs=no
12603       else
12604         # not using gcc
12605         if test "$host_cpu" = ia64; then
12606         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12607         # chokes on -Wl,-G. The following line is correct:
12608           shared_flag='-G'
12609         else
12610           if test "$aix_use_runtimelinking" = yes; then
12611             shared_flag='${wl}-G'
12612           else
12613             shared_flag='${wl}-bM:SRE'
12614           fi
12615         fi
12616       fi
12617
12618       export_dynamic_flag_spec='${wl}-bexpall'
12619       # It seems that -bexpall does not export symbols beginning with
12620       # underscore (_), so it is better to generate a list of symbols to export.
12621       always_export_symbols=yes
12622       if test "$aix_use_runtimelinking" = yes; then
12623         # Warning - without using the other runtime loading flags (-brtl),
12624         # -berok will link without error, but may produce a broken library.
12625         allow_undefined_flag='-berok'
12626         # Determine the default libpath from the value encoded in an
12627         # empty executable.
12628         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h.  */
12630
12631 int
12632 main ()
12633 {
12634
12635   ;
12636   return 0;
12637 }
12638 _ACEOF
12639 if ac_fn_c_try_link "$LINENO"; then :
12640
12641 lt_aix_libpath_sed='
12642     /Import File Strings/,/^$/ {
12643         /^0/ {
12644             s/^0  *\(.*\)$/\1/
12645             p
12646         }
12647     }'
12648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12649 # Check for a 64-bit object if we didn't find anything.
12650 if test -z "$aix_libpath"; then
12651   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12652 fi
12653 fi
12654 rm -f core conftest.err conftest.$ac_objext \
12655     conftest$ac_exeext conftest.$ac_ext
12656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12657
12658         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12659         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12660       else
12661         if test "$host_cpu" = ia64; then
12662           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12663           allow_undefined_flag="-z nodefs"
12664           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"
12665         else
12666          # Determine the default libpath from the value encoded in an
12667          # empty executable.
12668          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h.  */
12670
12671 int
12672 main ()
12673 {
12674
12675   ;
12676   return 0;
12677 }
12678 _ACEOF
12679 if ac_fn_c_try_link "$LINENO"; then :
12680
12681 lt_aix_libpath_sed='
12682     /Import File Strings/,/^$/ {
12683         /^0/ {
12684             s/^0  *\(.*\)$/\1/
12685             p
12686         }
12687     }'
12688 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12689 # Check for a 64-bit object if we didn't find anything.
12690 if test -z "$aix_libpath"; then
12691   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12692 fi
12693 fi
12694 rm -f core conftest.err conftest.$ac_objext \
12695     conftest$ac_exeext conftest.$ac_ext
12696 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12697
12698          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12699           # Warning - without using the other run time loading flags,
12700           # -berok will link without error, but may produce a broken library.
12701           no_undefined_flag=' ${wl}-bernotok'
12702           allow_undefined_flag=' ${wl}-berok'
12703           # Exported symbols can be pulled into shared objects from archives
12704           whole_archive_flag_spec='$convenience'
12705           archive_cmds_need_lc=yes
12706           # This is similar to how AIX traditionally builds its shared libraries.
12707           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'
12708         fi
12709       fi
12710       ;;
12711
12712     amigaos*)
12713       case $host_cpu in
12714       powerpc)
12715             # see comment about AmigaOS4 .so support
12716             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12717             archive_expsym_cmds=''
12718         ;;
12719       m68k)
12720             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)'
12721             hardcode_libdir_flag_spec='-L$libdir'
12722             hardcode_minus_L=yes
12723         ;;
12724       esac
12725       ;;
12726
12727     bsdi[45]*)
12728       export_dynamic_flag_spec=-rdynamic
12729       ;;
12730
12731     cygwin* | mingw* | pw32* | cegcc*)
12732       # When not using gcc, we currently assume that we are using
12733       # Microsoft Visual C++.
12734       # hardcode_libdir_flag_spec is actually meaningless, as there is
12735       # no search path for DLLs.
12736       hardcode_libdir_flag_spec=' '
12737       allow_undefined_flag=unsupported
12738       # Tell ltmain to make .lib files, not .a files.
12739       libext=lib
12740       # Tell ltmain to make .dll files, not .so files.
12741       shrext_cmds=".dll"
12742       # FIXME: Setting linknames here is a bad hack.
12743       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12744       # The linker will automatically build a .lib file if we build a DLL.
12745       old_archive_from_new_cmds='true'
12746       # FIXME: Should let the user specify the lib program.
12747       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12748       fix_srcfile_path='`cygpath -w "$srcfile"`'
12749       enable_shared_with_static_runtimes=yes
12750       ;;
12751
12752     darwin* | rhapsody*)
12753
12754
12755   archive_cmds_need_lc=no
12756   hardcode_direct=no
12757   hardcode_automatic=yes
12758   hardcode_shlibpath_var=unsupported
12759   whole_archive_flag_spec=''
12760   link_all_deplibs=yes
12761   allow_undefined_flag="$_lt_dar_allow_undefined"
12762   case $cc_basename in
12763      ifort*) _lt_dar_can_shared=yes ;;
12764      *) _lt_dar_can_shared=$GCC ;;
12765   esac
12766   if test "$_lt_dar_can_shared" = "yes"; then
12767     output_verbose_link_cmd=echo
12768     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12769     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12770     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12771     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12772
12773   else
12774   ld_shlibs=no
12775   fi
12776
12777       ;;
12778
12779     dgux*)
12780       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12781       hardcode_libdir_flag_spec='-L$libdir'
12782       hardcode_shlibpath_var=no
12783       ;;
12784
12785     freebsd1*)
12786       ld_shlibs=no
12787       ;;
12788
12789     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12790     # support.  Future versions do this automatically, but an explicit c++rt0.o
12791     # does not break anything, and helps significantly (at the cost of a little
12792     # extra space).
12793     freebsd2.2*)
12794       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12795       hardcode_libdir_flag_spec='-R$libdir'
12796       hardcode_direct=yes
12797       hardcode_shlibpath_var=no
12798       ;;
12799
12800     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12801     freebsd2*)
12802       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12803       hardcode_direct=yes
12804       hardcode_minus_L=yes
12805       hardcode_shlibpath_var=no
12806       ;;
12807
12808     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12809     freebsd* | dragonfly*)
12810       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12811       hardcode_libdir_flag_spec='-R$libdir'
12812       hardcode_direct=yes
12813       hardcode_shlibpath_var=no
12814       ;;
12815
12816     hpux9*)
12817       if test "$GCC" = yes; then
12818         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'
12819       else
12820         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'
12821       fi
12822       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12823       hardcode_libdir_separator=:
12824       hardcode_direct=yes
12825
12826       # hardcode_minus_L: Not really in the search PATH,
12827       # but as the default location of the library.
12828       hardcode_minus_L=yes
12829       export_dynamic_flag_spec='${wl}-E'
12830       ;;
12831
12832     hpux10*)
12833       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12834         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12835       else
12836         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12837       fi
12838       if test "$with_gnu_ld" = no; then
12839         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12840         hardcode_libdir_flag_spec_ld='+b $libdir'
12841         hardcode_libdir_separator=:
12842         hardcode_direct=yes
12843         hardcode_direct_absolute=yes
12844         export_dynamic_flag_spec='${wl}-E'
12845         # hardcode_minus_L: Not really in the search PATH,
12846         # but as the default location of the library.
12847         hardcode_minus_L=yes
12848       fi
12849       ;;
12850
12851     hpux11*)
12852       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12853         case $host_cpu in
12854         hppa*64*)
12855           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12856           ;;
12857         ia64*)
12858           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12859           ;;
12860         *)
12861           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12862           ;;
12863         esac
12864       else
12865         case $host_cpu in
12866         hppa*64*)
12867           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12868           ;;
12869         ia64*)
12870           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12871           ;;
12872         *)
12873           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12874           ;;
12875         esac
12876       fi
12877       if test "$with_gnu_ld" = no; then
12878         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12879         hardcode_libdir_separator=:
12880
12881         case $host_cpu in
12882         hppa*64*|ia64*)
12883           hardcode_direct=no
12884           hardcode_shlibpath_var=no
12885           ;;
12886         *)
12887           hardcode_direct=yes
12888           hardcode_direct_absolute=yes
12889           export_dynamic_flag_spec='${wl}-E'
12890
12891           # hardcode_minus_L: Not really in the search PATH,
12892           # but as the default location of the library.
12893           hardcode_minus_L=yes
12894           ;;
12895         esac
12896       fi
12897       ;;
12898
12899     irix5* | irix6* | nonstopux*)
12900       if test "$GCC" = yes; then
12901         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12902         # Try to use the -exported_symbol ld option, if it does not
12903         # work, assume that -exports_file does not work either and
12904         # implicitly export all symbols.
12905         save_LDFLAGS="$LDFLAGS"
12906         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12907         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h.  */
12909 int foo(void) {}
12910 _ACEOF
12911 if ac_fn_c_try_link "$LINENO"; then :
12912   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12913
12914 fi
12915 rm -f core conftest.err conftest.$ac_objext \
12916     conftest$ac_exeext conftest.$ac_ext
12917         LDFLAGS="$save_LDFLAGS"
12918       else
12919         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12920         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12921       fi
12922       archive_cmds_need_lc='no'
12923       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12924       hardcode_libdir_separator=:
12925       inherit_rpath=yes
12926       link_all_deplibs=yes
12927       ;;
12928
12929     netbsd* | netbsdelf*-gnu)
12930       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12931         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12932       else
12933         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12934       fi
12935       hardcode_libdir_flag_spec='-R$libdir'
12936       hardcode_direct=yes
12937       hardcode_shlibpath_var=no
12938       ;;
12939
12940     newsos6)
12941       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12942       hardcode_direct=yes
12943       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12944       hardcode_libdir_separator=:
12945       hardcode_shlibpath_var=no
12946       ;;
12947
12948     *nto* | *qnx*)
12949       ;;
12950
12951     openbsd*)
12952       if test -f /usr/libexec/ld.so; then
12953         hardcode_direct=yes
12954         hardcode_shlibpath_var=no
12955         hardcode_direct_absolute=yes
12956         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12957           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12958           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12959           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12960           export_dynamic_flag_spec='${wl}-E'
12961         else
12962           case $host_os in
12963            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12964              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12965              hardcode_libdir_flag_spec='-R$libdir'
12966              ;;
12967            *)
12968              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12969              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12970              ;;
12971           esac
12972         fi
12973       else
12974         ld_shlibs=no
12975       fi
12976       ;;
12977
12978     os2*)
12979       hardcode_libdir_flag_spec='-L$libdir'
12980       hardcode_minus_L=yes
12981       allow_undefined_flag=unsupported
12982       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'
12983       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12984       ;;
12985
12986     osf3*)
12987       if test "$GCC" = yes; then
12988         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12989         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12990       else
12991         allow_undefined_flag=' -expect_unresolved \*'
12992         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12993       fi
12994       archive_cmds_need_lc='no'
12995       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12996       hardcode_libdir_separator=:
12997       ;;
12998
12999     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13000       if test "$GCC" = yes; then
13001         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13002         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13003         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13004       else
13005         allow_undefined_flag=' -expect_unresolved \*'
13006         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13007         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13008         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13009
13010         # Both c and cxx compiler support -rpath directly
13011         hardcode_libdir_flag_spec='-rpath $libdir'
13012       fi
13013       archive_cmds_need_lc='no'
13014       hardcode_libdir_separator=:
13015       ;;
13016
13017     solaris*)
13018       no_undefined_flag=' -z defs'
13019       if test "$GCC" = yes; then
13020         wlarc='${wl}'
13021         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13022         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13023           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13024       else
13025         case `$CC -V 2>&1` in
13026         *"Compilers 5.0"*)
13027           wlarc=''
13028           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13029           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13030           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13031           ;;
13032         *)
13033           wlarc='${wl}'
13034           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13035           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13036           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13037           ;;
13038         esac
13039       fi
13040       hardcode_libdir_flag_spec='-R$libdir'
13041       hardcode_shlibpath_var=no
13042       case $host_os in
13043       solaris2.[0-5] | solaris2.[0-5].*) ;;
13044       *)
13045         # The compiler driver will combine and reorder linker options,
13046         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13047         # but is careful enough not to reorder.
13048         # Supported since Solaris 2.6 (maybe 2.5.1?)
13049         if test "$GCC" = yes; then
13050           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13051         else
13052           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13053         fi
13054         ;;
13055       esac
13056       link_all_deplibs=yes
13057       ;;
13058
13059     sunos4*)
13060       if test "x$host_vendor" = xsequent; then
13061         # Use $CC to link under sequent, because it throws in some extra .o
13062         # files that make .init and .fini sections work.
13063         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13064       else
13065         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13066       fi
13067       hardcode_libdir_flag_spec='-L$libdir'
13068       hardcode_direct=yes
13069       hardcode_minus_L=yes
13070       hardcode_shlibpath_var=no
13071       ;;
13072
13073     sysv4)
13074       case $host_vendor in
13075         sni)
13076           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13077           hardcode_direct=yes # is this really true???
13078         ;;
13079         siemens)
13080           ## LD is ld it makes a PLAMLIB
13081           ## CC just makes a GrossModule.
13082           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13083           reload_cmds='$CC -r -o $output$reload_objs'
13084           hardcode_direct=no
13085         ;;
13086         motorola)
13087           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13088           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13089         ;;
13090       esac
13091       runpath_var='LD_RUN_PATH'
13092       hardcode_shlibpath_var=no
13093       ;;
13094
13095     sysv4.3*)
13096       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13097       hardcode_shlibpath_var=no
13098       export_dynamic_flag_spec='-Bexport'
13099       ;;
13100
13101     sysv4*MP*)
13102       if test -d /usr/nec; then
13103         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13104         hardcode_shlibpath_var=no
13105         runpath_var=LD_RUN_PATH
13106         hardcode_runpath_var=yes
13107         ld_shlibs=yes
13108       fi
13109       ;;
13110
13111     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13112       no_undefined_flag='${wl}-z,text'
13113       archive_cmds_need_lc=no
13114       hardcode_shlibpath_var=no
13115       runpath_var='LD_RUN_PATH'
13116
13117       if test "$GCC" = yes; then
13118         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13119         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13120       else
13121         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13122         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13123       fi
13124       ;;
13125
13126     sysv5* | sco3.2v5* | sco5v6*)
13127       # Note: We can NOT use -z defs as we might desire, because we do not
13128       # link with -lc, and that would cause any symbols used from libc to
13129       # always be unresolved, which means just about no library would
13130       # ever link correctly.  If we're not using GNU ld we use -z text
13131       # though, which does catch some bad symbols but isn't as heavy-handed
13132       # as -z defs.
13133       no_undefined_flag='${wl}-z,text'
13134       allow_undefined_flag='${wl}-z,nodefs'
13135       archive_cmds_need_lc=no
13136       hardcode_shlibpath_var=no
13137       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13138       hardcode_libdir_separator=':'
13139       link_all_deplibs=yes
13140       export_dynamic_flag_spec='${wl}-Bexport'
13141       runpath_var='LD_RUN_PATH'
13142
13143       if test "$GCC" = yes; then
13144         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13145         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13146       else
13147         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13148         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13149       fi
13150       ;;
13151
13152     uts4*)
13153       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13154       hardcode_libdir_flag_spec='-L$libdir'
13155       hardcode_shlibpath_var=no
13156       ;;
13157
13158     *)
13159       ld_shlibs=no
13160       ;;
13161     esac
13162
13163     if test x$host_vendor = xsni; then
13164       case $host in
13165       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13166         export_dynamic_flag_spec='${wl}-Blargedynsym'
13167         ;;
13168       esac
13169     fi
13170   fi
13171
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13173 $as_echo "$ld_shlibs" >&6; }
13174 test "$ld_shlibs" = no && can_build_shared=no
13175
13176 with_gnu_ld=$with_gnu_ld
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192 #
13193 # Do we need to explicitly link libc?
13194 #
13195 case "x$archive_cmds_need_lc" in
13196 x|xyes)
13197   # Assume -lc should be added
13198   archive_cmds_need_lc=yes
13199
13200   if test "$enable_shared" = yes && test "$GCC" = yes; then
13201     case $archive_cmds in
13202     *'~'*)
13203       # FIXME: we may have to deal with multi-command sequences.
13204       ;;
13205     '$CC '*)
13206       # Test whether the compiler implicitly links with -lc since on some
13207       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13208       # to ld, don't add -lc before -lgcc.
13209       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13210 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13211       $RM conftest*
13212       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13213
13214       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13215   (eval $ac_compile) 2>&5
13216   ac_status=$?
13217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13218   test $ac_status = 0; } 2>conftest.err; then
13219         soname=conftest
13220         lib=conftest
13221         libobjs=conftest.$ac_objext
13222         deplibs=
13223         wl=$lt_prog_compiler_wl
13224         pic_flag=$lt_prog_compiler_pic
13225         compiler_flags=-v
13226         linker_flags=-v
13227         verstring=
13228         output_objdir=.
13229         libname=conftest
13230         lt_save_allow_undefined_flag=$allow_undefined_flag
13231         allow_undefined_flag=
13232         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13233   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13234   ac_status=$?
13235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13236   test $ac_status = 0; }
13237         then
13238           archive_cmds_need_lc=no
13239         else
13240           archive_cmds_need_lc=yes
13241         fi
13242         allow_undefined_flag=$lt_save_allow_undefined_flag
13243       else
13244         cat conftest.err 1>&5
13245       fi
13246       $RM conftest*
13247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13248 $as_echo "$archive_cmds_need_lc" >&6; }
13249       ;;
13250     esac
13251   fi
13252   ;;
13253 esac
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13412 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13413
13414 if test "$GCC" = yes; then
13415   case $host_os in
13416     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13417     *) lt_awk_arg="/^libraries:/" ;;
13418   esac
13419   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13420   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13421     # if the path contains ";" then we assume it to be the separator
13422     # otherwise default to the standard path separator (i.e. ":") - it is
13423     # assumed that no part of a normal pathname contains ";" but that should
13424     # okay in the real world where ";" in dirpaths is itself problematic.
13425     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13426   else
13427     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13428   fi
13429   # Ok, now we have the path, separated by spaces, we can step through it
13430   # and add multilib dir if necessary.
13431   lt_tmp_lt_search_path_spec=
13432   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13433   for lt_sys_path in $lt_search_path_spec; do
13434     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13435       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13436     else
13437       test -d "$lt_sys_path" && \
13438         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13439     fi
13440   done
13441   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13442 BEGIN {RS=" "; FS="/|\n";} {
13443   lt_foo="";
13444   lt_count=0;
13445   for (lt_i = NF; lt_i > 0; lt_i--) {
13446     if ($lt_i != "" && $lt_i != ".") {
13447       if ($lt_i == "..") {
13448         lt_count++;
13449       } else {
13450         if (lt_count == 0) {
13451           lt_foo="/" $lt_i lt_foo;
13452         } else {
13453           lt_count--;
13454         }
13455       }
13456     }
13457   }
13458   if (lt_foo != "") { lt_freq[lt_foo]++; }
13459   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13460 }'`
13461   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13462 else
13463   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13464 fi
13465 library_names_spec=
13466 libname_spec='lib$name'
13467 soname_spec=
13468 shrext_cmds=".so"
13469 postinstall_cmds=
13470 postuninstall_cmds=
13471 finish_cmds=
13472 finish_eval=
13473 shlibpath_var=
13474 shlibpath_overrides_runpath=unknown
13475 version_type=none
13476 dynamic_linker="$host_os ld.so"
13477 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13478 need_lib_prefix=unknown
13479 hardcode_into_libs=no
13480
13481 # when you set need_version to no, make sure it does not cause -set_version
13482 # flags to be left without arguments
13483 need_version=unknown
13484
13485 case $host_os in
13486 aix3*)
13487   version_type=linux
13488   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13489   shlibpath_var=LIBPATH
13490
13491   # AIX 3 has no versioning support, so we append a major version to the name.
13492   soname_spec='${libname}${release}${shared_ext}$major'
13493   ;;
13494
13495 aix[4-9]*)
13496   version_type=linux
13497   need_lib_prefix=no
13498   need_version=no
13499   hardcode_into_libs=yes
13500   if test "$host_cpu" = ia64; then
13501     # AIX 5 supports IA64
13502     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13503     shlibpath_var=LD_LIBRARY_PATH
13504   else
13505     # With GCC up to 2.95.x, collect2 would create an import file
13506     # for dependence libraries.  The import file would start with
13507     # the line `#! .'.  This would cause the generated library to
13508     # depend on `.', always an invalid library.  This was fixed in
13509     # development snapshots of GCC prior to 3.0.
13510     case $host_os in
13511       aix4 | aix4.[01] | aix4.[01].*)
13512       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13513            echo ' yes '
13514            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13515         :
13516       else
13517         can_build_shared=no
13518       fi
13519       ;;
13520     esac
13521     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13522     # soname into executable. Probably we can add versioning support to
13523     # collect2, so additional links can be useful in future.
13524     if test "$aix_use_runtimelinking" = yes; then
13525       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13526       # instead of lib<name>.a to let people know that these are not
13527       # typical AIX shared libraries.
13528       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13529     else
13530       # We preserve .a as extension for shared libraries through AIX4.2
13531       # and later when we are not doing run time linking.
13532       library_names_spec='${libname}${release}.a $libname.a'
13533       soname_spec='${libname}${release}${shared_ext}$major'
13534     fi
13535     shlibpath_var=LIBPATH
13536   fi
13537   ;;
13538
13539 amigaos*)
13540   case $host_cpu in
13541   powerpc)
13542     # Since July 2007 AmigaOS4 officially supports .so libraries.
13543     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545     ;;
13546   m68k)
13547     library_names_spec='$libname.ixlibrary $libname.a'
13548     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13549     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'
13550     ;;
13551   esac
13552   ;;
13553
13554 beos*)
13555   library_names_spec='${libname}${shared_ext}'
13556   dynamic_linker="$host_os ld.so"
13557   shlibpath_var=LIBRARY_PATH
13558   ;;
13559
13560 bsdi[45]*)
13561   version_type=linux
13562   need_version=no
13563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564   soname_spec='${libname}${release}${shared_ext}$major'
13565   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13566   shlibpath_var=LD_LIBRARY_PATH
13567   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13568   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13569   # the default ld.so.conf also contains /usr/contrib/lib and
13570   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13571   # libtool to hard-code these into programs
13572   ;;
13573
13574 cygwin* | mingw* | pw32* | cegcc*)
13575   version_type=windows
13576   shrext_cmds=".dll"
13577   need_version=no
13578   need_lib_prefix=no
13579
13580   case $GCC,$host_os in
13581   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13582     library_names_spec='$libname.dll.a'
13583     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13584     postinstall_cmds='base_file=`basename \${file}`~
13585       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13586       dldir=$destdir/`dirname \$dlpath`~
13587       test -d \$dldir || mkdir -p \$dldir~
13588       $install_prog $dir/$dlname \$dldir/$dlname~
13589       chmod a+x \$dldir/$dlname~
13590       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13591         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13592       fi'
13593     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13594       dlpath=$dir/\$dldll~
13595        $RM \$dlpath'
13596     shlibpath_overrides_runpath=yes
13597
13598     case $host_os in
13599     cygwin*)
13600       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13601       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13602       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13603       ;;
13604     mingw* | cegcc*)
13605       # MinGW DLLs use traditional 'lib' prefix
13606       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13607       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13608       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13609         # It is most probably a Windows format PATH printed by
13610         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13611         # path with ; separators, and with drive letters. We can handle the
13612         # drive letters (cygwin fileutils understands them), so leave them,
13613         # especially as we might pass files found there to a mingw objdump,
13614         # which wouldn't understand a cygwinified path. Ahh.
13615         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13616       else
13617         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13618       fi
13619       ;;
13620     pw32*)
13621       # pw32 DLLs use 'pw' prefix rather than 'lib'
13622       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13623       ;;
13624     esac
13625     ;;
13626
13627   *)
13628     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13629     ;;
13630   esac
13631   dynamic_linker='Win32 ld.exe'
13632   # FIXME: first we should search . and the directory the executable is in
13633   shlibpath_var=PATH
13634   ;;
13635
13636 darwin* | rhapsody*)
13637   dynamic_linker="$host_os dyld"
13638   version_type=darwin
13639   need_lib_prefix=no
13640   need_version=no
13641   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13642   soname_spec='${libname}${release}${major}$shared_ext'
13643   shlibpath_overrides_runpath=yes
13644   shlibpath_var=DYLD_LIBRARY_PATH
13645   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13646
13647   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13648   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13649   ;;
13650
13651 dgux*)
13652   version_type=linux
13653   need_lib_prefix=no
13654   need_version=no
13655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13656   soname_spec='${libname}${release}${shared_ext}$major'
13657   shlibpath_var=LD_LIBRARY_PATH
13658   ;;
13659
13660 freebsd1*)
13661   dynamic_linker=no
13662   ;;
13663
13664 freebsd* | dragonfly*)
13665   # DragonFly does not have aout.  When/if they implement a new
13666   # versioning mechanism, adjust this.
13667   if test -x /usr/bin/objformat; then
13668     objformat=`/usr/bin/objformat`
13669   else
13670     case $host_os in
13671     freebsd[123]*) objformat=aout ;;
13672     *) objformat=elf ;;
13673     esac
13674   fi
13675   version_type=freebsd-$objformat
13676   case $version_type in
13677     freebsd-elf*)
13678       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13679       need_version=no
13680       need_lib_prefix=no
13681       ;;
13682     freebsd-*)
13683       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13684       need_version=yes
13685       ;;
13686   esac
13687   shlibpath_var=LD_LIBRARY_PATH
13688   case $host_os in
13689   freebsd2*)
13690     shlibpath_overrides_runpath=yes
13691     ;;
13692   freebsd3.[01]* | freebsdelf3.[01]*)
13693     shlibpath_overrides_runpath=yes
13694     hardcode_into_libs=yes
13695     ;;
13696   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13697   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13698     shlibpath_overrides_runpath=no
13699     hardcode_into_libs=yes
13700     ;;
13701   *) # from 4.6 on, and DragonFly
13702     shlibpath_overrides_runpath=yes
13703     hardcode_into_libs=yes
13704     ;;
13705   esac
13706   ;;
13707
13708 gnu*)
13709   version_type=linux
13710   need_lib_prefix=no
13711   need_version=no
13712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13713   soname_spec='${libname}${release}${shared_ext}$major'
13714   shlibpath_var=LD_LIBRARY_PATH
13715   hardcode_into_libs=yes
13716   ;;
13717
13718 hpux9* | hpux10* | hpux11*)
13719   # Give a soname corresponding to the major version so that dld.sl refuses to
13720   # link against other versions.
13721   version_type=sunos
13722   need_lib_prefix=no
13723   need_version=no
13724   case $host_cpu in
13725   ia64*)
13726     shrext_cmds='.so'
13727     hardcode_into_libs=yes
13728     dynamic_linker="$host_os dld.so"
13729     shlibpath_var=LD_LIBRARY_PATH
13730     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732     soname_spec='${libname}${release}${shared_ext}$major'
13733     if test "X$HPUX_IA64_MODE" = X32; then
13734       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13735     else
13736       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13737     fi
13738     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13739     ;;
13740   hppa*64*)
13741     shrext_cmds='.sl'
13742     hardcode_into_libs=yes
13743     dynamic_linker="$host_os dld.sl"
13744     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13745     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747     soname_spec='${libname}${release}${shared_ext}$major'
13748     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13749     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13750     ;;
13751   *)
13752     shrext_cmds='.sl'
13753     dynamic_linker="$host_os dld.sl"
13754     shlibpath_var=SHLIB_PATH
13755     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13757     soname_spec='${libname}${release}${shared_ext}$major'
13758     ;;
13759   esac
13760   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13761   postinstall_cmds='chmod 555 $lib'
13762   ;;
13763
13764 interix[3-9]*)
13765   version_type=linux
13766   need_lib_prefix=no
13767   need_version=no
13768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13769   soname_spec='${libname}${release}${shared_ext}$major'
13770   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13771   shlibpath_var=LD_LIBRARY_PATH
13772   shlibpath_overrides_runpath=no
13773   hardcode_into_libs=yes
13774   ;;
13775
13776 irix5* | irix6* | nonstopux*)
13777   case $host_os in
13778     nonstopux*) version_type=nonstopux ;;
13779     *)
13780         if test "$lt_cv_prog_gnu_ld" = yes; then
13781                 version_type=linux
13782         else
13783                 version_type=irix
13784         fi ;;
13785   esac
13786   need_lib_prefix=no
13787   need_version=no
13788   soname_spec='${libname}${release}${shared_ext}$major'
13789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13790   case $host_os in
13791   irix5* | nonstopux*)
13792     libsuff= shlibsuff=
13793     ;;
13794   *)
13795     case $LD in # libtool.m4 will add one of these switches to LD
13796     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13797       libsuff= shlibsuff= libmagic=32-bit;;
13798     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13799       libsuff=32 shlibsuff=N32 libmagic=N32;;
13800     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13801       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13802     *) libsuff= shlibsuff= libmagic=never-match;;
13803     esac
13804     ;;
13805   esac
13806   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13807   shlibpath_overrides_runpath=no
13808   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13809   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13810   hardcode_into_libs=yes
13811   ;;
13812
13813 # No shared lib support for Linux oldld, aout, or coff.
13814 linux*oldld* | linux*aout* | linux*coff*)
13815   dynamic_linker=no
13816   ;;
13817
13818 # This must be Linux ELF.
13819 linux* | k*bsd*-gnu)
13820   version_type=linux
13821   need_lib_prefix=no
13822   need_version=no
13823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13824   soname_spec='${libname}${release}${shared_ext}$major'
13825   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13826   shlibpath_var=LD_LIBRARY_PATH
13827   shlibpath_overrides_runpath=no
13828   # Some binutils ld are patched to set DT_RUNPATH
13829   save_LDFLAGS=$LDFLAGS
13830   save_libdir=$libdir
13831   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13832        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h.  */
13835
13836 int
13837 main ()
13838 {
13839
13840   ;
13841   return 0;
13842 }
13843 _ACEOF
13844 if ac_fn_c_try_link "$LINENO"; then :
13845   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13846   shlibpath_overrides_runpath=yes
13847 fi
13848 fi
13849 rm -f core conftest.err conftest.$ac_objext \
13850     conftest$ac_exeext conftest.$ac_ext
13851   LDFLAGS=$save_LDFLAGS
13852   libdir=$save_libdir
13853
13854   # This implies no fast_install, which is unacceptable.
13855   # Some rework will be needed to allow for fast_install
13856   # before this can be enabled.
13857   hardcode_into_libs=yes
13858
13859   # Append ld.so.conf contents to the search path
13860   if test -f /etc/ld.so.conf; then
13861     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13862     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13863   fi
13864
13865   # We used to test for /lib/ld.so.1 and disable shared libraries on
13866   # powerpc, because MkLinux only supported shared libraries with the
13867   # GNU dynamic linker.  Since this was broken with cross compilers,
13868   # most powerpc-linux boxes support dynamic linking these days and
13869   # people can always --disable-shared, the test was removed, and we
13870   # assume the GNU/Linux dynamic linker is in use.
13871   dynamic_linker='GNU/Linux ld.so'
13872   ;;
13873
13874 netbsdelf*-gnu)
13875   version_type=linux
13876   need_lib_prefix=no
13877   need_version=no
13878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13879   soname_spec='${libname}${release}${shared_ext}$major'
13880   shlibpath_var=LD_LIBRARY_PATH
13881   shlibpath_overrides_runpath=no
13882   hardcode_into_libs=yes
13883   dynamic_linker='NetBSD ld.elf_so'
13884   ;;
13885
13886 netbsd*)
13887   version_type=sunos
13888   need_lib_prefix=no
13889   need_version=no
13890   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13892     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13893     dynamic_linker='NetBSD (a.out) ld.so'
13894   else
13895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13896     soname_spec='${libname}${release}${shared_ext}$major'
13897     dynamic_linker='NetBSD ld.elf_so'
13898   fi
13899   shlibpath_var=LD_LIBRARY_PATH
13900   shlibpath_overrides_runpath=yes
13901   hardcode_into_libs=yes
13902   ;;
13903
13904 newsos6)
13905   version_type=linux
13906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907   shlibpath_var=LD_LIBRARY_PATH
13908   shlibpath_overrides_runpath=yes
13909   ;;
13910
13911 *nto* | *qnx*)
13912   version_type=qnx
13913   need_lib_prefix=no
13914   need_version=no
13915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13916   soname_spec='${libname}${release}${shared_ext}$major'
13917   shlibpath_var=LD_LIBRARY_PATH
13918   shlibpath_overrides_runpath=no
13919   hardcode_into_libs=yes
13920   dynamic_linker='ldqnx.so'
13921   ;;
13922
13923 openbsd*)
13924   version_type=sunos
13925   sys_lib_dlsearch_path_spec="/usr/lib"
13926   need_lib_prefix=no
13927   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13928   case $host_os in
13929     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13930     *)                          need_version=no  ;;
13931   esac
13932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13933   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13934   shlibpath_var=LD_LIBRARY_PATH
13935   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13936     case $host_os in
13937       openbsd2.[89] | openbsd2.[89].*)
13938         shlibpath_overrides_runpath=no
13939         ;;
13940       *)
13941         shlibpath_overrides_runpath=yes
13942         ;;
13943       esac
13944   else
13945     shlibpath_overrides_runpath=yes
13946   fi
13947   ;;
13948
13949 os2*)
13950   libname_spec='$name'
13951   shrext_cmds=".dll"
13952   need_lib_prefix=no
13953   library_names_spec='$libname${shared_ext} $libname.a'
13954   dynamic_linker='OS/2 ld.exe'
13955   shlibpath_var=LIBPATH
13956   ;;
13957
13958 osf3* | osf4* | osf5*)
13959   version_type=osf
13960   need_lib_prefix=no
13961   need_version=no
13962   soname_spec='${libname}${release}${shared_ext}$major'
13963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964   shlibpath_var=LD_LIBRARY_PATH
13965   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13966   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13967   ;;
13968
13969 rdos*)
13970   dynamic_linker=no
13971   ;;
13972
13973 solaris*)
13974   version_type=linux
13975   need_lib_prefix=no
13976   need_version=no
13977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978   soname_spec='${libname}${release}${shared_ext}$major'
13979   shlibpath_var=LD_LIBRARY_PATH
13980   shlibpath_overrides_runpath=yes
13981   hardcode_into_libs=yes
13982   # ldd complains unless libraries are executable
13983   postinstall_cmds='chmod +x $lib'
13984   ;;
13985
13986 sunos4*)
13987   version_type=sunos
13988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13989   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13990   shlibpath_var=LD_LIBRARY_PATH
13991   shlibpath_overrides_runpath=yes
13992   if test "$with_gnu_ld" = yes; then
13993     need_lib_prefix=no
13994   fi
13995   need_version=yes
13996   ;;
13997
13998 sysv4 | sysv4.3*)
13999   version_type=linux
14000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001   soname_spec='${libname}${release}${shared_ext}$major'
14002   shlibpath_var=LD_LIBRARY_PATH
14003   case $host_vendor in
14004     sni)
14005       shlibpath_overrides_runpath=no
14006       need_lib_prefix=no
14007       runpath_var=LD_RUN_PATH
14008       ;;
14009     siemens)
14010       need_lib_prefix=no
14011       ;;
14012     motorola)
14013       need_lib_prefix=no
14014       need_version=no
14015       shlibpath_overrides_runpath=no
14016       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14017       ;;
14018   esac
14019   ;;
14020
14021 sysv4*MP*)
14022   if test -d /usr/nec ;then
14023     version_type=linux
14024     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14025     soname_spec='$libname${shared_ext}.$major'
14026     shlibpath_var=LD_LIBRARY_PATH
14027   fi
14028   ;;
14029
14030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14031   version_type=freebsd-elf
14032   need_lib_prefix=no
14033   need_version=no
14034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14035   soname_spec='${libname}${release}${shared_ext}$major'
14036   shlibpath_var=LD_LIBRARY_PATH
14037   shlibpath_overrides_runpath=yes
14038   hardcode_into_libs=yes
14039   if test "$with_gnu_ld" = yes; then
14040     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14041   else
14042     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14043     case $host_os in
14044       sco3.2v5*)
14045         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14046         ;;
14047     esac
14048   fi
14049   sys_lib_dlsearch_path_spec='/usr/lib'
14050   ;;
14051
14052 tpf*)
14053   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14054   version_type=linux
14055   need_lib_prefix=no
14056   need_version=no
14057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14058   shlibpath_var=LD_LIBRARY_PATH
14059   shlibpath_overrides_runpath=no
14060   hardcode_into_libs=yes
14061   ;;
14062
14063 uts4*)
14064   version_type=linux
14065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066   soname_spec='${libname}${release}${shared_ext}$major'
14067   shlibpath_var=LD_LIBRARY_PATH
14068   ;;
14069
14070 *)
14071   dynamic_linker=no
14072   ;;
14073 esac
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14075 $as_echo "$dynamic_linker" >&6; }
14076 test "$dynamic_linker" = no && can_build_shared=no
14077
14078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14079 if test "$GCC" = yes; then
14080   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14081 fi
14082
14083 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14084   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14085 fi
14086 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14087   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14088 fi
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14177 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14178 hardcode_action=
14179 if test -n "$hardcode_libdir_flag_spec" ||
14180    test -n "$runpath_var" ||
14181    test "X$hardcode_automatic" = "Xyes" ; then
14182
14183   # We can hardcode non-existent directories.
14184   if test "$hardcode_direct" != no &&
14185      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14186      # have to relink, otherwise we might link with an installed library
14187      # when we should be linking with a yet-to-be-installed one
14188      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14189      test "$hardcode_minus_L" != no; then
14190     # Linking always hardcodes the temporary library directory.
14191     hardcode_action=relink
14192   else
14193     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14194     hardcode_action=immediate
14195   fi
14196 else
14197   # We cannot hardcode anything, or else we can only hardcode existing
14198   # directories.
14199   hardcode_action=unsupported
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14202 $as_echo "$hardcode_action" >&6; }
14203
14204 if test "$hardcode_action" = relink ||
14205    test "$inherit_rpath" = yes; then
14206   # Fast installation is not supported
14207   enable_fast_install=no
14208 elif test "$shlibpath_overrides_runpath" = yes ||
14209      test "$enable_shared" = no; then
14210   # Fast installation is not necessary
14211   enable_fast_install=needless
14212 fi
14213
14214
14215
14216
14217
14218
14219   if test "x$enable_dlopen" != xyes; then
14220   enable_dlopen=unknown
14221   enable_dlopen_self=unknown
14222   enable_dlopen_self_static=unknown
14223 else
14224   lt_cv_dlopen=no
14225   lt_cv_dlopen_libs=
14226
14227   case $host_os in
14228   beos*)
14229     lt_cv_dlopen="load_add_on"
14230     lt_cv_dlopen_libs=
14231     lt_cv_dlopen_self=yes
14232     ;;
14233
14234   mingw* | pw32* | cegcc*)
14235     lt_cv_dlopen="LoadLibrary"
14236     lt_cv_dlopen_libs=
14237     ;;
14238
14239   cygwin*)
14240     lt_cv_dlopen="dlopen"
14241     lt_cv_dlopen_libs=
14242     ;;
14243
14244   darwin*)
14245   # if libdl is installed we need to link against it
14246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14247 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14249   $as_echo_n "(cached) " >&6
14250 else
14251   ac_check_lib_save_LIBS=$LIBS
14252 LIBS="-ldl  $LIBS"
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h.  */
14255
14256 /* Override any GCC internal prototype to avoid an error.
14257    Use char because int might match the return type of a GCC
14258    builtin and then its argument prototype would still apply.  */
14259 #ifdef __cplusplus
14260 extern "C"
14261 #endif
14262 char dlopen ();
14263 int
14264 main ()
14265 {
14266 return dlopen ();
14267   ;
14268   return 0;
14269 }
14270 _ACEOF
14271 if ac_fn_c_try_link "$LINENO"; then :
14272   ac_cv_lib_dl_dlopen=yes
14273 else
14274   ac_cv_lib_dl_dlopen=no
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext \
14277     conftest$ac_exeext conftest.$ac_ext
14278 LIBS=$ac_check_lib_save_LIBS
14279 fi
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14281 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14282 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14283   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14284 else
14285
14286     lt_cv_dlopen="dyld"
14287     lt_cv_dlopen_libs=
14288     lt_cv_dlopen_self=yes
14289
14290 fi
14291
14292     ;;
14293
14294   *)
14295     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14296 if test "x$ac_cv_func_shl_load" = x""yes; then :
14297   lt_cv_dlopen="shl_load"
14298 else
14299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14300 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14301 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14302   $as_echo_n "(cached) " >&6
14303 else
14304   ac_check_lib_save_LIBS=$LIBS
14305 LIBS="-ldld  $LIBS"
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h.  */
14308
14309 /* Override any GCC internal prototype to avoid an error.
14310    Use char because int might match the return type of a GCC
14311    builtin and then its argument prototype would still apply.  */
14312 #ifdef __cplusplus
14313 extern "C"
14314 #endif
14315 char shl_load ();
14316 int
14317 main ()
14318 {
14319 return shl_load ();
14320   ;
14321   return 0;
14322 }
14323 _ACEOF
14324 if ac_fn_c_try_link "$LINENO"; then :
14325   ac_cv_lib_dld_shl_load=yes
14326 else
14327   ac_cv_lib_dld_shl_load=no
14328 fi
14329 rm -f core conftest.err conftest.$ac_objext \
14330     conftest$ac_exeext conftest.$ac_ext
14331 LIBS=$ac_check_lib_save_LIBS
14332 fi
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14334 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14335 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14336   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14337 else
14338   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14339 if test "x$ac_cv_func_dlopen" = x""yes; then :
14340   lt_cv_dlopen="dlopen"
14341 else
14342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14345   $as_echo_n "(cached) " >&6
14346 else
14347   ac_check_lib_save_LIBS=$LIBS
14348 LIBS="-ldl  $LIBS"
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h.  */
14351
14352 /* Override any GCC internal prototype to avoid an error.
14353    Use char because int might match the return type of a GCC
14354    builtin and then its argument prototype would still apply.  */
14355 #ifdef __cplusplus
14356 extern "C"
14357 #endif
14358 char dlopen ();
14359 int
14360 main ()
14361 {
14362 return dlopen ();
14363   ;
14364   return 0;
14365 }
14366 _ACEOF
14367 if ac_fn_c_try_link "$LINENO"; then :
14368   ac_cv_lib_dl_dlopen=yes
14369 else
14370   ac_cv_lib_dl_dlopen=no
14371 fi
14372 rm -f core conftest.err conftest.$ac_objext \
14373     conftest$ac_exeext conftest.$ac_ext
14374 LIBS=$ac_check_lib_save_LIBS
14375 fi
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14378 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14379   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14380 else
14381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14382 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14384   $as_echo_n "(cached) " >&6
14385 else
14386   ac_check_lib_save_LIBS=$LIBS
14387 LIBS="-lsvld  $LIBS"
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h.  */
14390
14391 /* Override any GCC internal prototype to avoid an error.
14392    Use char because int might match the return type of a GCC
14393    builtin and then its argument prototype would still apply.  */
14394 #ifdef __cplusplus
14395 extern "C"
14396 #endif
14397 char dlopen ();
14398 int
14399 main ()
14400 {
14401 return dlopen ();
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 if ac_fn_c_try_link "$LINENO"; then :
14407   ac_cv_lib_svld_dlopen=yes
14408 else
14409   ac_cv_lib_svld_dlopen=no
14410 fi
14411 rm -f core conftest.err conftest.$ac_objext \
14412     conftest$ac_exeext conftest.$ac_ext
14413 LIBS=$ac_check_lib_save_LIBS
14414 fi
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14416 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14417 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14418   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14419 else
14420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14421 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14422 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14423   $as_echo_n "(cached) " >&6
14424 else
14425   ac_check_lib_save_LIBS=$LIBS
14426 LIBS="-ldld  $LIBS"
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h.  */
14429
14430 /* Override any GCC internal prototype to avoid an error.
14431    Use char because int might match the return type of a GCC
14432    builtin and then its argument prototype would still apply.  */
14433 #ifdef __cplusplus
14434 extern "C"
14435 #endif
14436 char dld_link ();
14437 int
14438 main ()
14439 {
14440 return dld_link ();
14441   ;
14442   return 0;
14443 }
14444 _ACEOF
14445 if ac_fn_c_try_link "$LINENO"; then :
14446   ac_cv_lib_dld_dld_link=yes
14447 else
14448   ac_cv_lib_dld_dld_link=no
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext \
14451     conftest$ac_exeext conftest.$ac_ext
14452 LIBS=$ac_check_lib_save_LIBS
14453 fi
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14455 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14456 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14457   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14458 fi
14459
14460
14461 fi
14462
14463
14464 fi
14465
14466
14467 fi
14468
14469
14470 fi
14471
14472
14473 fi
14474
14475     ;;
14476   esac
14477
14478   if test "x$lt_cv_dlopen" != xno; then
14479     enable_dlopen=yes
14480   else
14481     enable_dlopen=no
14482   fi
14483
14484   case $lt_cv_dlopen in
14485   dlopen)
14486     save_CPPFLAGS="$CPPFLAGS"
14487     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14488
14489     save_LDFLAGS="$LDFLAGS"
14490     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14491
14492     save_LIBS="$LIBS"
14493     LIBS="$lt_cv_dlopen_libs $LIBS"
14494
14495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14496 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14497 if test "${lt_cv_dlopen_self+set}" = set; then :
14498   $as_echo_n "(cached) " >&6
14499 else
14500           if test "$cross_compiling" = yes; then :
14501   lt_cv_dlopen_self=cross
14502 else
14503   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14504   lt_status=$lt_dlunknown
14505   cat > conftest.$ac_ext <<_LT_EOF
14506 #line 14506 "configure"
14507 #include "confdefs.h"
14508
14509 #if HAVE_DLFCN_H
14510 #include <dlfcn.h>
14511 #endif
14512
14513 #include <stdio.h>
14514
14515 #ifdef RTLD_GLOBAL
14516 #  define LT_DLGLOBAL           RTLD_GLOBAL
14517 #else
14518 #  ifdef DL_GLOBAL
14519 #    define LT_DLGLOBAL         DL_GLOBAL
14520 #  else
14521 #    define LT_DLGLOBAL         0
14522 #  endif
14523 #endif
14524
14525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14526    find out it does not work in some platform. */
14527 #ifndef LT_DLLAZY_OR_NOW
14528 #  ifdef RTLD_LAZY
14529 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14530 #  else
14531 #    ifdef DL_LAZY
14532 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14533 #    else
14534 #      ifdef RTLD_NOW
14535 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14536 #      else
14537 #        ifdef DL_NOW
14538 #          define LT_DLLAZY_OR_NOW      DL_NOW
14539 #        else
14540 #          define LT_DLLAZY_OR_NOW      0
14541 #        endif
14542 #      endif
14543 #    endif
14544 #  endif
14545 #endif
14546
14547 void fnord() { int i=42;}
14548 int main ()
14549 {
14550   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14551   int status = $lt_dlunknown;
14552
14553   if (self)
14554     {
14555       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14556       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14557       /* dlclose (self); */
14558     }
14559   else
14560     puts (dlerror ());
14561
14562   return status;
14563 }
14564 _LT_EOF
14565   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14566   (eval $ac_link) 2>&5
14567   ac_status=$?
14568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14569   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14570     (./conftest; exit; ) >&5 2>/dev/null
14571     lt_status=$?
14572     case x$lt_status in
14573       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14574       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14575       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14576     esac
14577   else :
14578     # compilation failed
14579     lt_cv_dlopen_self=no
14580   fi
14581 fi
14582 rm -fr conftest*
14583
14584
14585 fi
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14587 $as_echo "$lt_cv_dlopen_self" >&6; }
14588
14589     if test "x$lt_cv_dlopen_self" = xyes; then
14590       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14591       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14592 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14593 if test "${lt_cv_dlopen_self_static+set}" = set; then :
14594   $as_echo_n "(cached) " >&6
14595 else
14596           if test "$cross_compiling" = yes; then :
14597   lt_cv_dlopen_self_static=cross
14598 else
14599   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14600   lt_status=$lt_dlunknown
14601   cat > conftest.$ac_ext <<_LT_EOF
14602 #line 14602 "configure"
14603 #include "confdefs.h"
14604
14605 #if HAVE_DLFCN_H
14606 #include <dlfcn.h>
14607 #endif
14608
14609 #include <stdio.h>
14610
14611 #ifdef RTLD_GLOBAL
14612 #  define LT_DLGLOBAL           RTLD_GLOBAL
14613 #else
14614 #  ifdef DL_GLOBAL
14615 #    define LT_DLGLOBAL         DL_GLOBAL
14616 #  else
14617 #    define LT_DLGLOBAL         0
14618 #  endif
14619 #endif
14620
14621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14622    find out it does not work in some platform. */
14623 #ifndef LT_DLLAZY_OR_NOW
14624 #  ifdef RTLD_LAZY
14625 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14626 #  else
14627 #    ifdef DL_LAZY
14628 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14629 #    else
14630 #      ifdef RTLD_NOW
14631 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14632 #      else
14633 #        ifdef DL_NOW
14634 #          define LT_DLLAZY_OR_NOW      DL_NOW
14635 #        else
14636 #          define LT_DLLAZY_OR_NOW      0
14637 #        endif
14638 #      endif
14639 #    endif
14640 #  endif
14641 #endif
14642
14643 void fnord() { int i=42;}
14644 int main ()
14645 {
14646   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14647   int status = $lt_dlunknown;
14648
14649   if (self)
14650     {
14651       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14652       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14653       /* dlclose (self); */
14654     }
14655   else
14656     puts (dlerror ());
14657
14658   return status;
14659 }
14660 _LT_EOF
14661   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14662   (eval $ac_link) 2>&5
14663   ac_status=$?
14664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14665   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14666     (./conftest; exit; ) >&5 2>/dev/null
14667     lt_status=$?
14668     case x$lt_status in
14669       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14670       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14671       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14672     esac
14673   else :
14674     # compilation failed
14675     lt_cv_dlopen_self_static=no
14676   fi
14677 fi
14678 rm -fr conftest*
14679
14680
14681 fi
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14683 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14684     fi
14685
14686     CPPFLAGS="$save_CPPFLAGS"
14687     LDFLAGS="$save_LDFLAGS"
14688     LIBS="$save_LIBS"
14689     ;;
14690   esac
14691
14692   case $lt_cv_dlopen_self in
14693   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14694   *) enable_dlopen_self=unknown ;;
14695   esac
14696
14697   case $lt_cv_dlopen_self_static in
14698   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14699   *) enable_dlopen_self_static=unknown ;;
14700   esac
14701 fi
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719 striplib=
14720 old_striplib=
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14722 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14723 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14724   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14725   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14727 $as_echo "yes" >&6; }
14728 else
14729 # FIXME - insert some real tests, host_os isn't really good enough
14730   case $host_os in
14731   darwin*)
14732     if test -n "$STRIP" ; then
14733       striplib="$STRIP -x"
14734       old_striplib="$STRIP -S"
14735       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14736 $as_echo "yes" >&6; }
14737     else
14738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14739 $as_echo "no" >&6; }
14740     fi
14741     ;;
14742   *)
14743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 $as_echo "no" >&6; }
14745     ;;
14746   esac
14747 fi
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760   # Report which library types will actually be built
14761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14762 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14764 $as_echo "$can_build_shared" >&6; }
14765
14766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14767 $as_echo_n "checking whether to build shared libraries... " >&6; }
14768   test "$can_build_shared" = "no" && enable_shared=no
14769
14770   # On AIX, shared libraries and static libraries use the same namespace, and
14771   # are all built from PIC.
14772   case $host_os in
14773   aix3*)
14774     test "$enable_shared" = yes && enable_static=no
14775     if test -n "$RANLIB"; then
14776       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14777       postinstall_cmds='$RANLIB $lib'
14778     fi
14779     ;;
14780
14781   aix[4-9]*)
14782     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14783       test "$enable_shared" = yes && enable_static=no
14784     fi
14785     ;;
14786   esac
14787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14788 $as_echo "$enable_shared" >&6; }
14789
14790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14791 $as_echo_n "checking whether to build static libraries... " >&6; }
14792   # Make sure either enable_shared or enable_static is yes.
14793   test "$enable_shared" = yes || enable_static=yes
14794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14795 $as_echo "$enable_static" >&6; }
14796
14797
14798
14799
14800 fi
14801 ac_ext=c
14802 ac_cpp='$CPP $CPPFLAGS'
14803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14806
14807 CC="$lt_save_CC"
14808
14809
14810 ac_ext=cpp
14811 ac_cpp='$CXXCPP $CPPFLAGS'
14812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14815
14816 archive_cmds_need_lc_CXX=no
14817 allow_undefined_flag_CXX=
14818 always_export_symbols_CXX=no
14819 archive_expsym_cmds_CXX=
14820 compiler_needs_object_CXX=no
14821 export_dynamic_flag_spec_CXX=
14822 hardcode_direct_CXX=no
14823 hardcode_direct_absolute_CXX=no
14824 hardcode_libdir_flag_spec_CXX=
14825 hardcode_libdir_flag_spec_ld_CXX=
14826 hardcode_libdir_separator_CXX=
14827 hardcode_minus_L_CXX=no
14828 hardcode_shlibpath_var_CXX=unsupported
14829 hardcode_automatic_CXX=no
14830 inherit_rpath_CXX=no
14831 module_cmds_CXX=
14832 module_expsym_cmds_CXX=
14833 link_all_deplibs_CXX=unknown
14834 old_archive_cmds_CXX=$old_archive_cmds
14835 no_undefined_flag_CXX=
14836 whole_archive_flag_spec_CXX=
14837 enable_shared_with_static_runtimes_CXX=no
14838
14839 # Source file extension for C++ test sources.
14840 ac_ext=cpp
14841
14842 # Object file extension for compiled C++ test sources.
14843 objext=o
14844 objext_CXX=$objext
14845
14846 # No sense in running all these tests if we already determined that
14847 # the CXX compiler isn't working.  Some variables (like enable_shared)
14848 # are currently assumed to apply to all compilers on this platform,
14849 # and will be corrupted by setting them based on a non-working compiler.
14850 if test "$_lt_caught_CXX_error" != yes; then
14851   # Code to be used in simple compile tests
14852   lt_simple_compile_test_code="int some_variable = 0;"
14853
14854   # Code to be used in simple link tests
14855   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14856
14857   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14858
14859
14860
14861
14862
14863
14864 # If no C compiler was specified, use CC.
14865 LTCC=${LTCC-"$CC"}
14866
14867 # If no C compiler flags were specified, use CFLAGS.
14868 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14869
14870 # Allow CC to be a program name with arguments.
14871 compiler=$CC
14872
14873
14874   # save warnings/boilerplate of simple test code
14875   ac_outfile=conftest.$ac_objext
14876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14878 _lt_compiler_boilerplate=`cat conftest.err`
14879 $RM conftest*
14880
14881   ac_outfile=conftest.$ac_objext
14882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14884 _lt_linker_boilerplate=`cat conftest.err`
14885 $RM -r conftest*
14886
14887
14888   # Allow CC to be a program name with arguments.
14889   lt_save_CC=$CC
14890   lt_save_LD=$LD
14891   lt_save_GCC=$GCC
14892   GCC=$GXX
14893   lt_save_with_gnu_ld=$with_gnu_ld
14894   lt_save_path_LD=$lt_cv_path_LD
14895   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14896     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14897   else
14898     $as_unset lt_cv_prog_gnu_ld
14899   fi
14900   if test -n "${lt_cv_path_LDCXX+set}"; then
14901     lt_cv_path_LD=$lt_cv_path_LDCXX
14902   else
14903     $as_unset lt_cv_path_LD
14904   fi
14905   test -z "${LDCXX+set}" || LD=$LDCXX
14906   CC=${CXX-"c++"}
14907   compiler=$CC
14908   compiler_CXX=$CC
14909   for cc_temp in $compiler""; do
14910   case $cc_temp in
14911     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14912     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14913     \-*) ;;
14914     *) break;;
14915   esac
14916 done
14917 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14918
14919
14920   if test -n "$compiler"; then
14921     # We don't want -fno-exception when compiling C++ code, so set the
14922     # no_builtin_flag separately
14923     if test "$GXX" = yes; then
14924       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14925     else
14926       lt_prog_compiler_no_builtin_flag_CXX=
14927     fi
14928
14929     if test "$GXX" = yes; then
14930       # Set up default GNU C++ configuration
14931
14932
14933
14934 # Check whether --with-gnu-ld was given.
14935 if test "${with_gnu_ld+set}" = set; then :
14936   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14937 else
14938   with_gnu_ld=no
14939 fi
14940
14941 ac_prog=ld
14942 if test "$GCC" = yes; then
14943   # Check if gcc -print-prog-name=ld gives a path.
14944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14945 $as_echo_n "checking for ld used by $CC... " >&6; }
14946   case $host in
14947   *-*-mingw*)
14948     # gcc leaves a trailing carriage return which upsets mingw
14949     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14950   *)
14951     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14952   esac
14953   case $ac_prog in
14954     # Accept absolute paths.
14955     [\\/]* | ?:[\\/]*)
14956       re_direlt='/[^/][^/]*/\.\./'
14957       # Canonicalize the pathname of ld
14958       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14959       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14960         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14961       done
14962       test -z "$LD" && LD="$ac_prog"
14963       ;;
14964   "")
14965     # If it fails, then pretend we aren't using GCC.
14966     ac_prog=ld
14967     ;;
14968   *)
14969     # If it is relative, then search for the first ld in PATH.
14970     with_gnu_ld=unknown
14971     ;;
14972   esac
14973 elif test "$with_gnu_ld" = yes; then
14974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14975 $as_echo_n "checking for GNU ld... " >&6; }
14976 else
14977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14978 $as_echo_n "checking for non-GNU ld... " >&6; }
14979 fi
14980 if test "${lt_cv_path_LD+set}" = set; then :
14981   $as_echo_n "(cached) " >&6
14982 else
14983   if test -z "$LD"; then
14984   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14985   for ac_dir in $PATH; do
14986     IFS="$lt_save_ifs"
14987     test -z "$ac_dir" && ac_dir=.
14988     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14989       lt_cv_path_LD="$ac_dir/$ac_prog"
14990       # Check to see if the program is GNU ld.  I'd rather use --version,
14991       # but apparently some variants of GNU ld only accept -v.
14992       # Break only if it was the GNU/non-GNU ld that we prefer.
14993       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14994       *GNU* | *'with BFD'*)
14995         test "$with_gnu_ld" != no && break
14996         ;;
14997       *)
14998         test "$with_gnu_ld" != yes && break
14999         ;;
15000       esac
15001     fi
15002   done
15003   IFS="$lt_save_ifs"
15004 else
15005   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15006 fi
15007 fi
15008
15009 LD="$lt_cv_path_LD"
15010 if test -n "$LD"; then
15011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15012 $as_echo "$LD" >&6; }
15013 else
15014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15015 $as_echo "no" >&6; }
15016 fi
15017 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15019 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15020 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15021   $as_echo_n "(cached) " >&6
15022 else
15023   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15024 case `$LD -v 2>&1 </dev/null` in
15025 *GNU* | *'with BFD'*)
15026   lt_cv_prog_gnu_ld=yes
15027   ;;
15028 *)
15029   lt_cv_prog_gnu_ld=no
15030   ;;
15031 esac
15032 fi
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15034 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15035 with_gnu_ld=$lt_cv_prog_gnu_ld
15036
15037
15038
15039
15040
15041
15042
15043       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15044       # archiving commands below assume that GNU ld is being used.
15045       if test "$with_gnu_ld" = yes; then
15046         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15047         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'
15048
15049         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15050         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15051
15052         # If archive_cmds runs LD, not CC, wlarc should be empty
15053         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15054         #     investigate it a little bit more. (MM)
15055         wlarc='${wl}'
15056
15057         # ancient GNU ld didn't support --whole-archive et. al.
15058         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15059           $GREP 'no-whole-archive' > /dev/null; then
15060           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15061         else
15062           whole_archive_flag_spec_CXX=
15063         fi
15064       else
15065         with_gnu_ld=no
15066         wlarc=
15067
15068         # A generic and very simple default shared library creation
15069         # command for GNU C++ for the case where it uses the native
15070         # linker, instead of GNU ld.  If possible, this setting should
15071         # overridden to take advantage of the native linker features on
15072         # the platform it is being used on.
15073         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15074       fi
15075
15076       # Commands to make compiler produce verbose output that lists
15077       # what "hidden" libraries, object files and flags are used when
15078       # linking a shared library.
15079       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15080
15081     else
15082       GXX=no
15083       with_gnu_ld=no
15084       wlarc=
15085     fi
15086
15087     # PORTME: fill in a description of your system's C++ link characteristics
15088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15089 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15090     ld_shlibs_CXX=yes
15091     case $host_os in
15092       aix3*)
15093         # FIXME: insert proper C++ library support
15094         ld_shlibs_CXX=no
15095         ;;
15096       aix[4-9]*)
15097         if test "$host_cpu" = ia64; then
15098           # On IA64, the linker does run time linking by default, so we don't
15099           # have to do anything special.
15100           aix_use_runtimelinking=no
15101           exp_sym_flag='-Bexport'
15102           no_entry_flag=""
15103         else
15104           aix_use_runtimelinking=no
15105
15106           # Test if we are trying to use run time linking or normal
15107           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15108           # need to do runtime linking.
15109           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15110             for ld_flag in $LDFLAGS; do
15111               case $ld_flag in
15112               *-brtl*)
15113                 aix_use_runtimelinking=yes
15114                 break
15115                 ;;
15116               esac
15117             done
15118             ;;
15119           esac
15120
15121           exp_sym_flag='-bexport'
15122           no_entry_flag='-bnoentry'
15123         fi
15124
15125         # When large executables or shared objects are built, AIX ld can
15126         # have problems creating the table of contents.  If linking a library
15127         # or program results in "error TOC overflow" add -mminimal-toc to
15128         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15129         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15130
15131         archive_cmds_CXX=''
15132         hardcode_direct_CXX=yes
15133         hardcode_direct_absolute_CXX=yes
15134         hardcode_libdir_separator_CXX=':'
15135         link_all_deplibs_CXX=yes
15136         file_list_spec_CXX='${wl}-f,'
15137
15138         if test "$GXX" = yes; then
15139           case $host_os in aix4.[012]|aix4.[012].*)
15140           # We only want to do this on AIX 4.2 and lower, the check
15141           # below for broken collect2 doesn't work under 4.3+
15142           collect2name=`${CC} -print-prog-name=collect2`
15143           if test -f "$collect2name" &&
15144              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15145           then
15146             # We have reworked collect2
15147             :
15148           else
15149             # We have old collect2
15150             hardcode_direct_CXX=unsupported
15151             # It fails to find uninstalled libraries when the uninstalled
15152             # path is not listed in the libpath.  Setting hardcode_minus_L
15153             # to unsupported forces relinking
15154             hardcode_minus_L_CXX=yes
15155             hardcode_libdir_flag_spec_CXX='-L$libdir'
15156             hardcode_libdir_separator_CXX=
15157           fi
15158           esac
15159           shared_flag='-shared'
15160           if test "$aix_use_runtimelinking" = yes; then
15161             shared_flag="$shared_flag "'${wl}-G'
15162           fi
15163         else
15164           # not using gcc
15165           if test "$host_cpu" = ia64; then
15166           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15167           # chokes on -Wl,-G. The following line is correct:
15168           shared_flag='-G'
15169           else
15170             if test "$aix_use_runtimelinking" = yes; then
15171               shared_flag='${wl}-G'
15172             else
15173               shared_flag='${wl}-bM:SRE'
15174             fi
15175           fi
15176         fi
15177
15178         export_dynamic_flag_spec_CXX='${wl}-bexpall'
15179         # It seems that -bexpall does not export symbols beginning with
15180         # underscore (_), so it is better to generate a list of symbols to
15181         # export.
15182         always_export_symbols_CXX=yes
15183         if test "$aix_use_runtimelinking" = yes; then
15184           # Warning - without using the other runtime loading flags (-brtl),
15185           # -berok will link without error, but may produce a broken library.
15186           allow_undefined_flag_CXX='-berok'
15187           # Determine the default libpath from the value encoded in an empty
15188           # executable.
15189           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h.  */
15191
15192 int
15193 main ()
15194 {
15195
15196   ;
15197   return 0;
15198 }
15199 _ACEOF
15200 if ac_fn_cxx_try_link "$LINENO"; then :
15201
15202 lt_aix_libpath_sed='
15203     /Import File Strings/,/^$/ {
15204         /^0/ {
15205             s/^0  *\(.*\)$/\1/
15206             p
15207         }
15208     }'
15209 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15210 # Check for a 64-bit object if we didn't find anything.
15211 if test -z "$aix_libpath"; then
15212   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15213 fi
15214 fi
15215 rm -f core conftest.err conftest.$ac_objext \
15216     conftest$ac_exeext conftest.$ac_ext
15217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15218
15219           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15220
15221           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15222         else
15223           if test "$host_cpu" = ia64; then
15224             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15225             allow_undefined_flag_CXX="-z nodefs"
15226             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"
15227           else
15228             # Determine the default libpath from the value encoded in an
15229             # empty executable.
15230             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h.  */
15232
15233 int
15234 main ()
15235 {
15236
15237   ;
15238   return 0;
15239 }
15240 _ACEOF
15241 if ac_fn_cxx_try_link "$LINENO"; then :
15242
15243 lt_aix_libpath_sed='
15244     /Import File Strings/,/^$/ {
15245         /^0/ {
15246             s/^0  *\(.*\)$/\1/
15247             p
15248         }
15249     }'
15250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15251 # Check for a 64-bit object if we didn't find anything.
15252 if test -z "$aix_libpath"; then
15253   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15254 fi
15255 fi
15256 rm -f core conftest.err conftest.$ac_objext \
15257     conftest$ac_exeext conftest.$ac_ext
15258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15259
15260             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15261             # Warning - without using the other run time loading flags,
15262             # -berok will link without error, but may produce a broken library.
15263             no_undefined_flag_CXX=' ${wl}-bernotok'
15264             allow_undefined_flag_CXX=' ${wl}-berok'
15265             # Exported symbols can be pulled into shared objects from archives
15266             whole_archive_flag_spec_CXX='$convenience'
15267             archive_cmds_need_lc_CXX=yes
15268             # This is similar to how AIX traditionally builds its shared
15269             # libraries.
15270             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'
15271           fi
15272         fi
15273         ;;
15274
15275       beos*)
15276         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15277           allow_undefined_flag_CXX=unsupported
15278           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15279           # support --undefined.  This deserves some investigation.  FIXME
15280           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15281         else
15282           ld_shlibs_CXX=no
15283         fi
15284         ;;
15285
15286       chorus*)
15287         case $cc_basename in
15288           *)
15289           # FIXME: insert proper C++ library support
15290           ld_shlibs_CXX=no
15291           ;;
15292         esac
15293         ;;
15294
15295       cygwin* | mingw* | pw32* | cegcc*)
15296         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15297         # as there is no search path for DLLs.
15298         hardcode_libdir_flag_spec_CXX='-L$libdir'
15299         allow_undefined_flag_CXX=unsupported
15300         always_export_symbols_CXX=no
15301         enable_shared_with_static_runtimes_CXX=yes
15302
15303         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15304           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'
15305           # If the export-symbols file already is a .def file (1st line
15306           # is EXPORTS), use it as is; otherwise, prepend...
15307           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15308             cp $export_symbols $output_objdir/$soname.def;
15309           else
15310             echo EXPORTS > $output_objdir/$soname.def;
15311             cat $export_symbols >> $output_objdir/$soname.def;
15312           fi~
15313           $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'
15314         else
15315           ld_shlibs_CXX=no
15316         fi
15317         ;;
15318       darwin* | rhapsody*)
15319
15320
15321   archive_cmds_need_lc_CXX=no
15322   hardcode_direct_CXX=no
15323   hardcode_automatic_CXX=yes
15324   hardcode_shlibpath_var_CXX=unsupported
15325   whole_archive_flag_spec_CXX=''
15326   link_all_deplibs_CXX=yes
15327   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15328   case $cc_basename in
15329      ifort*) _lt_dar_can_shared=yes ;;
15330      *) _lt_dar_can_shared=$GCC ;;
15331   esac
15332   if test "$_lt_dar_can_shared" = "yes"; then
15333     output_verbose_link_cmd=echo
15334     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15335     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15336     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15337     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15338        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15339       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15340       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15341     fi
15342
15343   else
15344   ld_shlibs_CXX=no
15345   fi
15346
15347         ;;
15348
15349       dgux*)
15350         case $cc_basename in
15351           ec++*)
15352             # FIXME: insert proper C++ library support
15353             ld_shlibs_CXX=no
15354             ;;
15355           ghcx*)
15356             # Green Hills C++ Compiler
15357             # FIXME: insert proper C++ library support
15358             ld_shlibs_CXX=no
15359             ;;
15360           *)
15361             # FIXME: insert proper C++ library support
15362             ld_shlibs_CXX=no
15363             ;;
15364         esac
15365         ;;
15366
15367       freebsd[12]*)
15368         # C++ shared libraries reported to be fairly broken before
15369         # switch to ELF
15370         ld_shlibs_CXX=no
15371         ;;
15372
15373       freebsd-elf*)
15374         archive_cmds_need_lc_CXX=no
15375         ;;
15376
15377       freebsd* | dragonfly*)
15378         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15379         # conventions
15380         ld_shlibs_CXX=yes
15381         ;;
15382
15383       gnu*)
15384         ;;
15385
15386       hpux9*)
15387         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15388         hardcode_libdir_separator_CXX=:
15389         export_dynamic_flag_spec_CXX='${wl}-E'
15390         hardcode_direct_CXX=yes
15391         hardcode_minus_L_CXX=yes # Not in the search PATH,
15392                                              # but as the default
15393                                              # location of the library.
15394
15395         case $cc_basename in
15396           CC*)
15397             # FIXME: insert proper C++ library support
15398             ld_shlibs_CXX=no
15399             ;;
15400           aCC*)
15401             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'
15402             # Commands to make compiler produce verbose output that lists
15403             # what "hidden" libraries, object files and flags are used when
15404             # linking a shared library.
15405             #
15406             # There doesn't appear to be a way to prevent this compiler from
15407             # explicitly linking system object files so we need to strip them
15408             # from the output so that they don't get included in the library
15409             # dependencies.
15410             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15411             ;;
15412           *)
15413             if test "$GXX" = yes; then
15414               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'
15415             else
15416               # FIXME: insert proper C++ library support
15417               ld_shlibs_CXX=no
15418             fi
15419             ;;
15420         esac
15421         ;;
15422
15423       hpux10*|hpux11*)
15424         if test $with_gnu_ld = no; then
15425           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15426           hardcode_libdir_separator_CXX=:
15427
15428           case $host_cpu in
15429             hppa*64*|ia64*)
15430               ;;
15431             *)
15432               export_dynamic_flag_spec_CXX='${wl}-E'
15433               ;;
15434           esac
15435         fi
15436         case $host_cpu in
15437           hppa*64*|ia64*)
15438             hardcode_direct_CXX=no
15439             hardcode_shlibpath_var_CXX=no
15440             ;;
15441           *)
15442             hardcode_direct_CXX=yes
15443             hardcode_direct_absolute_CXX=yes
15444             hardcode_minus_L_CXX=yes # Not in the search PATH,
15445                                                  # but as the default
15446                                                  # location of the library.
15447             ;;
15448         esac
15449
15450         case $cc_basename in
15451           CC*)
15452             # FIXME: insert proper C++ library support
15453             ld_shlibs_CXX=no
15454             ;;
15455           aCC*)
15456             case $host_cpu in
15457               hppa*64*)
15458                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15459                 ;;
15460               ia64*)
15461                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15462                 ;;
15463               *)
15464                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15465                 ;;
15466             esac
15467             # Commands to make compiler produce verbose output that lists
15468             # what "hidden" libraries, object files and flags are used when
15469             # linking a shared library.
15470             #
15471             # There doesn't appear to be a way to prevent this compiler from
15472             # explicitly linking system object files so we need to strip them
15473             # from the output so that they don't get included in the library
15474             # dependencies.
15475             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15476             ;;
15477           *)
15478             if test "$GXX" = yes; then
15479               if test $with_gnu_ld = no; then
15480                 case $host_cpu in
15481                   hppa*64*)
15482                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15483                     ;;
15484                   ia64*)
15485                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15486                     ;;
15487                   *)
15488                     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'
15489                     ;;
15490                 esac
15491               fi
15492             else
15493               # FIXME: insert proper C++ library support
15494               ld_shlibs_CXX=no
15495             fi
15496             ;;
15497         esac
15498         ;;
15499
15500       interix[3-9]*)
15501         hardcode_direct_CXX=no
15502         hardcode_shlibpath_var_CXX=no
15503         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15504         export_dynamic_flag_spec_CXX='${wl}-E'
15505         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15506         # Instead, shared libraries are loaded at an image base (0x10000000 by
15507         # default) and relocated if they conflict, which is a slow very memory
15508         # consuming and fragmenting process.  To avoid this, we pick a random,
15509         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15510         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15511         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'
15512         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'
15513         ;;
15514       irix5* | irix6*)
15515         case $cc_basename in
15516           CC*)
15517             # SGI C++
15518             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15519
15520             # Archives containing C++ object files must be created using
15521             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15522             # necessary to make sure instantiated templates are included
15523             # in the archive.
15524             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15525             ;;
15526           *)
15527             if test "$GXX" = yes; then
15528               if test "$with_gnu_ld" = no; then
15529                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15530               else
15531                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15532               fi
15533             fi
15534             link_all_deplibs_CXX=yes
15535             ;;
15536         esac
15537         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15538         hardcode_libdir_separator_CXX=:
15539         inherit_rpath_CXX=yes
15540         ;;
15541
15542       linux* | k*bsd*-gnu)
15543         case $cc_basename in
15544           KCC*)
15545             # Kuck and Associates, Inc. (KAI) C++ Compiler
15546
15547             # KCC will only create a shared library if the output file
15548             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15549             # to its proper name (with version) after linking.
15550             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'
15551             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'
15552             # Commands to make compiler produce verbose output that lists
15553             # what "hidden" libraries, object files and flags are used when
15554             # linking a shared library.
15555             #
15556             # There doesn't appear to be a way to prevent this compiler from
15557             # explicitly linking system object files so we need to strip them
15558             # from the output so that they don't get included in the library
15559             # dependencies.
15560             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15561
15562             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15563             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15564
15565             # Archives containing C++ object files must be created using
15566             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15567             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15568             ;;
15569           icpc* | ecpc* )
15570             # Intel C++
15571             with_gnu_ld=yes
15572             # version 8.0 and above of icpc choke on multiply defined symbols
15573             # if we add $predep_objects and $postdep_objects, however 7.1 and
15574             # earlier do not add the objects themselves.
15575             case `$CC -V 2>&1` in
15576               *"Version 7."*)
15577                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15578                 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'
15579                 ;;
15580               *)  # Version 8.0 or newer
15581                 tmp_idyn=
15582                 case $host_cpu in
15583                   ia64*) tmp_idyn=' -i_dynamic';;
15584                 esac
15585                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15586                 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'
15587                 ;;
15588             esac
15589             archive_cmds_need_lc_CXX=no
15590             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15591             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15592             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15593             ;;
15594           pgCC* | pgcpp*)
15595             # Portland Group C++ compiler
15596             case `$CC -V` in
15597             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15598               prelink_cmds_CXX='tpldir=Template.dir~
15599                 rm -rf $tpldir~
15600                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15601                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15602               old_archive_cmds_CXX='tpldir=Template.dir~
15603                 rm -rf $tpldir~
15604                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15605                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15606                 $RANLIB $oldlib'
15607               archive_cmds_CXX='tpldir=Template.dir~
15608                 rm -rf $tpldir~
15609                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15610                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15611               archive_expsym_cmds_CXX='tpldir=Template.dir~
15612                 rm -rf $tpldir~
15613                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15614                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15615               ;;
15616             *) # Version 6 will use weak symbols
15617               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15618               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'
15619               ;;
15620             esac
15621
15622             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15623             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15624             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'
15625             ;;
15626           cxx*)
15627             # Compaq C++
15628             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629             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'
15630
15631             runpath_var=LD_RUN_PATH
15632             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15633             hardcode_libdir_separator_CXX=:
15634
15635             # Commands to make compiler produce verbose output that lists
15636             # what "hidden" libraries, object files and flags are used when
15637             # linking a shared library.
15638             #
15639             # There doesn't appear to be a way to prevent this compiler from
15640             # explicitly linking system object files so we need to strip them
15641             # from the output so that they don't get included in the library
15642             # dependencies.
15643             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15644             ;;
15645           xl*)
15646             # IBM XL 8.0 on PPC, with GNU ld
15647             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15648             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15649             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15650             if test "x$supports_anon_versioning" = xyes; then
15651               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15652                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15653                 echo "local: *; };" >> $output_objdir/$libname.ver~
15654                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15655             fi
15656             ;;
15657           *)
15658             case `$CC -V 2>&1 | sed 5q` in
15659             *Sun\ C*)
15660               # Sun C++ 5.9
15661               no_undefined_flag_CXX=' -zdefs'
15662               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15663               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15664               hardcode_libdir_flag_spec_CXX='-R$libdir'
15665               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15666               compiler_needs_object_CXX=yes
15667
15668               # Not sure whether something based on
15669               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15670               # would be better.
15671               output_verbose_link_cmd='echo'
15672
15673               # Archives containing C++ object files must be created using
15674               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15675               # necessary to make sure instantiated templates are included
15676               # in the archive.
15677               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15678               ;;
15679             esac
15680             ;;
15681         esac
15682         ;;
15683
15684       lynxos*)
15685         # FIXME: insert proper C++ library support
15686         ld_shlibs_CXX=no
15687         ;;
15688
15689       m88k*)
15690         # FIXME: insert proper C++ library support
15691         ld_shlibs_CXX=no
15692         ;;
15693
15694       mvs*)
15695         case $cc_basename in
15696           cxx*)
15697             # FIXME: insert proper C++ library support
15698             ld_shlibs_CXX=no
15699             ;;
15700           *)
15701             # FIXME: insert proper C++ library support
15702             ld_shlibs_CXX=no
15703             ;;
15704         esac
15705         ;;
15706
15707       netbsd*)
15708         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15709           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15710           wlarc=
15711           hardcode_libdir_flag_spec_CXX='-R$libdir'
15712           hardcode_direct_CXX=yes
15713           hardcode_shlibpath_var_CXX=no
15714         fi
15715         # Workaround some broken pre-1.5 toolchains
15716         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15717         ;;
15718
15719       *nto* | *qnx*)
15720         ld_shlibs_CXX=yes
15721         ;;
15722
15723       openbsd2*)
15724         # C++ shared libraries are fairly broken
15725         ld_shlibs_CXX=no
15726         ;;
15727
15728       openbsd*)
15729         if test -f /usr/libexec/ld.so; then
15730           hardcode_direct_CXX=yes
15731           hardcode_shlibpath_var_CXX=no
15732           hardcode_direct_absolute_CXX=yes
15733           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15734           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15735           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15736             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15737             export_dynamic_flag_spec_CXX='${wl}-E'
15738             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15739           fi
15740           output_verbose_link_cmd=echo
15741         else
15742           ld_shlibs_CXX=no
15743         fi
15744         ;;
15745
15746       osf3* | osf4* | osf5*)
15747         case $cc_basename in
15748           KCC*)
15749             # Kuck and Associates, Inc. (KAI) C++ Compiler
15750
15751             # KCC will only create a shared library if the output file
15752             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15753             # to its proper name (with version) after linking.
15754             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'
15755
15756             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15757             hardcode_libdir_separator_CXX=:
15758
15759             # Archives containing C++ object files must be created using
15760             # the KAI C++ compiler.
15761             case $host in
15762               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15763               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15764             esac
15765             ;;
15766           RCC*)
15767             # Rational C++ 2.4.1
15768             # FIXME: insert proper C++ library support
15769             ld_shlibs_CXX=no
15770             ;;
15771           cxx*)
15772             case $host in
15773               osf3*)
15774                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15775                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15776                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15777                 ;;
15778               *)
15779                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15780                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15781                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15782                   echo "-hidden">> $lib.exp~
15783                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15784                   $RM $lib.exp'
15785                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15786                 ;;
15787             esac
15788
15789             hardcode_libdir_separator_CXX=:
15790
15791             # Commands to make compiler produce verbose output that lists
15792             # what "hidden" libraries, object files and flags are used when
15793             # linking a shared library.
15794             #
15795             # There doesn't appear to be a way to prevent this compiler from
15796             # explicitly linking system object files so we need to strip them
15797             # from the output so that they don't get included in the library
15798             # dependencies.
15799             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15800             ;;
15801           *)
15802             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15803               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15804               case $host in
15805                 osf3*)
15806                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15807                   ;;
15808                 *)
15809                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15810                   ;;
15811               esac
15812
15813               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15814               hardcode_libdir_separator_CXX=:
15815
15816               # Commands to make compiler produce verbose output that lists
15817               # what "hidden" libraries, object files and flags are used when
15818               # linking a shared library.
15819               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15820
15821             else
15822               # FIXME: insert proper C++ library support
15823               ld_shlibs_CXX=no
15824             fi
15825             ;;
15826         esac
15827         ;;
15828
15829       psos*)
15830         # FIXME: insert proper C++ library support
15831         ld_shlibs_CXX=no
15832         ;;
15833
15834       sunos4*)
15835         case $cc_basename in
15836           CC*)
15837             # Sun C++ 4.x
15838             # FIXME: insert proper C++ library support
15839             ld_shlibs_CXX=no
15840             ;;
15841           lcc*)
15842             # Lucid
15843             # FIXME: insert proper C++ library support
15844             ld_shlibs_CXX=no
15845             ;;
15846           *)
15847             # FIXME: insert proper C++ library support
15848             ld_shlibs_CXX=no
15849             ;;
15850         esac
15851         ;;
15852
15853       solaris*)
15854         case $cc_basename in
15855           CC*)
15856             # Sun C++ 4.2, 5.x and Centerline C++
15857             archive_cmds_need_lc_CXX=yes
15858             no_undefined_flag_CXX=' -zdefs'
15859             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15860             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15861               $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'
15862
15863             hardcode_libdir_flag_spec_CXX='-R$libdir'
15864             hardcode_shlibpath_var_CXX=no
15865             case $host_os in
15866               solaris2.[0-5] | solaris2.[0-5].*) ;;
15867               *)
15868                 # The compiler driver will combine and reorder linker options,
15869                 # but understands `-z linker_flag'.
15870                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15871                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15872                 ;;
15873             esac
15874             link_all_deplibs_CXX=yes
15875
15876             output_verbose_link_cmd='echo'
15877
15878             # Archives containing C++ object files must be created using
15879             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15880             # necessary to make sure instantiated templates are included
15881             # in the archive.
15882             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15883             ;;
15884           gcx*)
15885             # Green Hills C++ Compiler
15886             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15887
15888             # The C++ compiler must be used to create the archive.
15889             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15890             ;;
15891           *)
15892             # GNU C++ compiler with Solaris linker
15893             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15894               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15895               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15896                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15897                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15898                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15899
15900                 # Commands to make compiler produce verbose output that lists
15901                 # what "hidden" libraries, object files and flags are used when
15902                 # linking a shared library.
15903                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15904               else
15905                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15906                 # platform.
15907                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15908                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15909                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15910
15911                 # Commands to make compiler produce verbose output that lists
15912                 # what "hidden" libraries, object files and flags are used when
15913                 # linking a shared library.
15914                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15915               fi
15916
15917               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15918               case $host_os in
15919                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15920                 *)
15921                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15922                   ;;
15923               esac
15924             fi
15925             ;;
15926         esac
15927         ;;
15928
15929     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15930       no_undefined_flag_CXX='${wl}-z,text'
15931       archive_cmds_need_lc_CXX=no
15932       hardcode_shlibpath_var_CXX=no
15933       runpath_var='LD_RUN_PATH'
15934
15935       case $cc_basename in
15936         CC*)
15937           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15938           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15939           ;;
15940         *)
15941           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15942           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15943           ;;
15944       esac
15945       ;;
15946
15947       sysv5* | sco3.2v5* | sco5v6*)
15948         # Note: We can NOT use -z defs as we might desire, because we do not
15949         # link with -lc, and that would cause any symbols used from libc to
15950         # always be unresolved, which means just about no library would
15951         # ever link correctly.  If we're not using GNU ld we use -z text
15952         # though, which does catch some bad symbols but isn't as heavy-handed
15953         # as -z defs.
15954         no_undefined_flag_CXX='${wl}-z,text'
15955         allow_undefined_flag_CXX='${wl}-z,nodefs'
15956         archive_cmds_need_lc_CXX=no
15957         hardcode_shlibpath_var_CXX=no
15958         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15959         hardcode_libdir_separator_CXX=':'
15960         link_all_deplibs_CXX=yes
15961         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15962         runpath_var='LD_RUN_PATH'
15963
15964         case $cc_basename in
15965           CC*)
15966             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15967             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15968             ;;
15969           *)
15970             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15971             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15972             ;;
15973         esac
15974       ;;
15975
15976       tandem*)
15977         case $cc_basename in
15978           NCC*)
15979             # NonStop-UX NCC 3.20
15980             # FIXME: insert proper C++ library support
15981             ld_shlibs_CXX=no
15982             ;;
15983           *)
15984             # FIXME: insert proper C++ library support
15985             ld_shlibs_CXX=no
15986             ;;
15987         esac
15988         ;;
15989
15990       vxworks*)
15991         # FIXME: insert proper C++ library support
15992         ld_shlibs_CXX=no
15993         ;;
15994
15995       *)
15996         # FIXME: insert proper C++ library support
15997         ld_shlibs_CXX=no
15998         ;;
15999     esac
16000
16001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16002 $as_echo "$ld_shlibs_CXX" >&6; }
16003     test "$ld_shlibs_CXX" = no && can_build_shared=no
16004
16005     GCC_CXX="$GXX"
16006     LD_CXX="$LD"
16007
16008     ## CAVEAT EMPTOR:
16009     ## There is no encapsulation within the following macros, do not change
16010     ## the running order or otherwise move them around unless you know exactly
16011     ## what you are doing...
16012     # Dependencies to place before and after the object being linked:
16013 predep_objects_CXX=
16014 postdep_objects_CXX=
16015 predeps_CXX=
16016 postdeps_CXX=
16017 compiler_lib_search_path_CXX=
16018
16019 cat > conftest.$ac_ext <<_LT_EOF
16020 class Foo
16021 {
16022 public:
16023   Foo (void) { a = 0; }
16024 private:
16025   int a;
16026 };
16027 _LT_EOF
16028
16029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16030   (eval $ac_compile) 2>&5
16031   ac_status=$?
16032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16033   test $ac_status = 0; }; then
16034   # Parse the compiler output and extract the necessary
16035   # objects, libraries and library flags.
16036
16037   # Sentinel used to keep track of whether or not we are before
16038   # the conftest object file.
16039   pre_test_object_deps_done=no
16040
16041   for p in `eval "$output_verbose_link_cmd"`; do
16042     case $p in
16043
16044     -L* | -R* | -l*)
16045        # Some compilers place space between "-{L,R}" and the path.
16046        # Remove the space.
16047        if test $p = "-L" ||
16048           test $p = "-R"; then
16049          prev=$p
16050          continue
16051        else
16052          prev=
16053        fi
16054
16055        if test "$pre_test_object_deps_done" = no; then
16056          case $p in
16057          -L* | -R*)
16058            # Internal compiler library paths should come after those
16059            # provided the user.  The postdeps already come after the
16060            # user supplied libs so there is no need to process them.
16061            if test -z "$compiler_lib_search_path_CXX"; then
16062              compiler_lib_search_path_CXX="${prev}${p}"
16063            else
16064              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16065            fi
16066            ;;
16067          # The "-l" case would never come before the object being
16068          # linked, so don't bother handling this case.
16069          esac
16070        else
16071          if test -z "$postdeps_CXX"; then
16072            postdeps_CXX="${prev}${p}"
16073          else
16074            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16075          fi
16076        fi
16077        ;;
16078
16079     *.$objext)
16080        # This assumes that the test object file only shows up
16081        # once in the compiler output.
16082        if test "$p" = "conftest.$objext"; then
16083          pre_test_object_deps_done=yes
16084          continue
16085        fi
16086
16087        if test "$pre_test_object_deps_done" = no; then
16088          if test -z "$predep_objects_CXX"; then
16089            predep_objects_CXX="$p"
16090          else
16091            predep_objects_CXX="$predep_objects_CXX $p"
16092          fi
16093        else
16094          if test -z "$postdep_objects_CXX"; then
16095            postdep_objects_CXX="$p"
16096          else
16097            postdep_objects_CXX="$postdep_objects_CXX $p"
16098          fi
16099        fi
16100        ;;
16101
16102     *) ;; # Ignore the rest.
16103
16104     esac
16105   done
16106
16107   # Clean up.
16108   rm -f a.out a.exe
16109 else
16110   echo "libtool.m4: error: problem compiling CXX test program"
16111 fi
16112
16113 $RM -f confest.$objext
16114
16115 # PORTME: override above test on systems where it is broken
16116 case $host_os in
16117 interix[3-9]*)
16118   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16119   # hack all around it, let's just trust "g++" to DTRT.
16120   predep_objects_CXX=
16121   postdep_objects_CXX=
16122   postdeps_CXX=
16123   ;;
16124
16125 linux*)
16126   case `$CC -V 2>&1 | sed 5q` in
16127   *Sun\ C*)
16128     # Sun C++ 5.9
16129
16130     # The more standards-conforming stlport4 library is
16131     # incompatible with the Cstd library. Avoid specifying
16132     # it if it's in CXXFLAGS. Ignore libCrun as
16133     # -library=stlport4 depends on it.
16134     case " $CXX $CXXFLAGS " in
16135     *" -library=stlport4 "*)
16136       solaris_use_stlport4=yes
16137       ;;
16138     esac
16139
16140     if test "$solaris_use_stlport4" != yes; then
16141       postdeps_CXX='-library=Cstd -library=Crun'
16142     fi
16143     ;;
16144   esac
16145   ;;
16146
16147 solaris*)
16148   case $cc_basename in
16149   CC*)
16150     # The more standards-conforming stlport4 library is
16151     # incompatible with the Cstd library. Avoid specifying
16152     # it if it's in CXXFLAGS. Ignore libCrun as
16153     # -library=stlport4 depends on it.
16154     case " $CXX $CXXFLAGS " in
16155     *" -library=stlport4 "*)
16156       solaris_use_stlport4=yes
16157       ;;
16158     esac
16159
16160     # Adding this requires a known-good setup of shared libraries for
16161     # Sun compiler versions before 5.6, else PIC objects from an old
16162     # archive will be linked into the output, leading to subtle bugs.
16163     if test "$solaris_use_stlport4" != yes; then
16164       postdeps_CXX='-library=Cstd -library=Crun'
16165     fi
16166     ;;
16167   esac
16168   ;;
16169 esac
16170
16171
16172 case " $postdeps_CXX " in
16173 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16174 esac
16175  compiler_lib_search_dirs_CXX=
16176 if test -n "${compiler_lib_search_path_CXX}"; then
16177  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16178 fi
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210     lt_prog_compiler_wl_CXX=
16211 lt_prog_compiler_pic_CXX=
16212 lt_prog_compiler_static_CXX=
16213
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16215 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16216
16217   # C++ specific cases for pic, static, wl, etc.
16218   if test "$GXX" = yes; then
16219     lt_prog_compiler_wl_CXX='-Wl,'
16220     lt_prog_compiler_static_CXX='-static'
16221
16222     case $host_os in
16223     aix*)
16224       # All AIX code is PIC.
16225       if test "$host_cpu" = ia64; then
16226         # AIX 5 now supports IA64 processor
16227         lt_prog_compiler_static_CXX='-Bstatic'
16228       fi
16229       ;;
16230
16231     amigaos*)
16232       case $host_cpu in
16233       powerpc)
16234             # see comment about AmigaOS4 .so support
16235             lt_prog_compiler_pic_CXX='-fPIC'
16236         ;;
16237       m68k)
16238             # FIXME: we need at least 68020 code to build shared libraries, but
16239             # adding the `-m68020' flag to GCC prevents building anything better,
16240             # like `-m68040'.
16241             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16242         ;;
16243       esac
16244       ;;
16245
16246     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16247       # PIC is the default for these OSes.
16248       ;;
16249     mingw* | cygwin* | os2* | pw32* | cegcc*)
16250       # This hack is so that the source file can tell whether it is being
16251       # built for inclusion in a dll (and should export symbols for example).
16252       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16253       # (--disable-auto-import) libraries
16254       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16255       ;;
16256     darwin* | rhapsody*)
16257       # PIC is the default on this platform
16258       # Common symbols not allowed in MH_DYLIB files
16259       lt_prog_compiler_pic_CXX='-fno-common'
16260       ;;
16261     *djgpp*)
16262       # DJGPP does not support shared libraries at all
16263       lt_prog_compiler_pic_CXX=
16264       ;;
16265     interix[3-9]*)
16266       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16267       # Instead, we relocate shared libraries at runtime.
16268       ;;
16269     sysv4*MP*)
16270       if test -d /usr/nec; then
16271         lt_prog_compiler_pic_CXX=-Kconform_pic
16272       fi
16273       ;;
16274     hpux*)
16275       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16276       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16277       # sets the default TLS model and affects inlining.
16278       case $host_cpu in
16279       hppa*64*)
16280         ;;
16281       *)
16282         lt_prog_compiler_pic_CXX='-fPIC'
16283         ;;
16284       esac
16285       ;;
16286     *qnx* | *nto*)
16287       # QNX uses GNU C++, but need to define -shared option too, otherwise
16288       # it will coredump.
16289       lt_prog_compiler_pic_CXX='-fPIC -shared'
16290       ;;
16291     *)
16292       lt_prog_compiler_pic_CXX='-fPIC'
16293       ;;
16294     esac
16295   else
16296     case $host_os in
16297       aix[4-9]*)
16298         # All AIX code is PIC.
16299         if test "$host_cpu" = ia64; then
16300           # AIX 5 now supports IA64 processor
16301           lt_prog_compiler_static_CXX='-Bstatic'
16302         else
16303           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16304         fi
16305         ;;
16306       chorus*)
16307         case $cc_basename in
16308         cxch68*)
16309           # Green Hills C++ Compiler
16310           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16311           ;;
16312         esac
16313         ;;
16314       dgux*)
16315         case $cc_basename in
16316           ec++*)
16317             lt_prog_compiler_pic_CXX='-KPIC'
16318             ;;
16319           ghcx*)
16320             # Green Hills C++ Compiler
16321             lt_prog_compiler_pic_CXX='-pic'
16322             ;;
16323           *)
16324             ;;
16325         esac
16326         ;;
16327       freebsd* | dragonfly*)
16328         # FreeBSD uses GNU C++
16329         ;;
16330       hpux9* | hpux10* | hpux11*)
16331         case $cc_basename in
16332           CC*)
16333             lt_prog_compiler_wl_CXX='-Wl,'
16334             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16335             if test "$host_cpu" != ia64; then
16336               lt_prog_compiler_pic_CXX='+Z'
16337             fi
16338             ;;
16339           aCC*)
16340             lt_prog_compiler_wl_CXX='-Wl,'
16341             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16342             case $host_cpu in
16343             hppa*64*|ia64*)
16344               # +Z the default
16345               ;;
16346             *)
16347               lt_prog_compiler_pic_CXX='+Z'
16348               ;;
16349             esac
16350             ;;
16351           *)
16352             ;;
16353         esac
16354         ;;
16355       interix*)
16356         # This is c89, which is MS Visual C++ (no shared libs)
16357         # Anyone wants to do a port?
16358         ;;
16359       irix5* | irix6* | nonstopux*)
16360         case $cc_basename in
16361           CC*)
16362             lt_prog_compiler_wl_CXX='-Wl,'
16363             lt_prog_compiler_static_CXX='-non_shared'
16364             # CC pic flag -KPIC is the default.
16365             ;;
16366           *)
16367             ;;
16368         esac
16369         ;;
16370       linux* | k*bsd*-gnu)
16371         case $cc_basename in
16372           KCC*)
16373             # KAI C++ Compiler
16374             lt_prog_compiler_wl_CXX='--backend -Wl,'
16375             lt_prog_compiler_pic_CXX='-fPIC'
16376             ;;
16377           ecpc* )
16378             # old Intel C++ for x86_64 which still supported -KPIC.
16379             lt_prog_compiler_wl_CXX='-Wl,'
16380             lt_prog_compiler_pic_CXX='-KPIC'
16381             lt_prog_compiler_static_CXX='-static'
16382             ;;
16383           icpc* )
16384             # Intel C++, used to be incompatible with GCC.
16385             # ICC 10 doesn't accept -KPIC any more.
16386             lt_prog_compiler_wl_CXX='-Wl,'
16387             lt_prog_compiler_pic_CXX='-fPIC'
16388             lt_prog_compiler_static_CXX='-static'
16389             ;;
16390           pgCC* | pgcpp*)
16391             # Portland Group C++ compiler
16392             lt_prog_compiler_wl_CXX='-Wl,'
16393             lt_prog_compiler_pic_CXX='-fpic'
16394             lt_prog_compiler_static_CXX='-Bstatic'
16395             ;;
16396           cxx*)
16397             # Compaq C++
16398             # Make sure the PIC flag is empty.  It appears that all Alpha
16399             # Linux and Compaq Tru64 Unix objects are PIC.
16400             lt_prog_compiler_pic_CXX=
16401             lt_prog_compiler_static_CXX='-non_shared'
16402             ;;
16403           xlc* | xlC*)
16404             # IBM XL 8.0 on PPC
16405             lt_prog_compiler_wl_CXX='-Wl,'
16406             lt_prog_compiler_pic_CXX='-qpic'
16407             lt_prog_compiler_static_CXX='-qstaticlink'
16408             ;;
16409           *)
16410             case `$CC -V 2>&1 | sed 5q` in
16411             *Sun\ C*)
16412               # Sun C++ 5.9
16413               lt_prog_compiler_pic_CXX='-KPIC'
16414               lt_prog_compiler_static_CXX='-Bstatic'
16415               lt_prog_compiler_wl_CXX='-Qoption ld '
16416               ;;
16417             esac
16418             ;;
16419         esac
16420         ;;
16421       lynxos*)
16422         ;;
16423       m88k*)
16424         ;;
16425       mvs*)
16426         case $cc_basename in
16427           cxx*)
16428             lt_prog_compiler_pic_CXX='-W c,exportall'
16429             ;;
16430           *)
16431             ;;
16432         esac
16433         ;;
16434       netbsd* | netbsdelf*-gnu)
16435         ;;
16436       *qnx* | *nto*)
16437         # QNX uses GNU C++, but need to define -shared option too, otherwise
16438         # it will coredump.
16439         lt_prog_compiler_pic_CXX='-fPIC -shared'
16440         ;;
16441       osf3* | osf4* | osf5*)
16442         case $cc_basename in
16443           KCC*)
16444             lt_prog_compiler_wl_CXX='--backend -Wl,'
16445             ;;
16446           RCC*)
16447             # Rational C++ 2.4.1
16448             lt_prog_compiler_pic_CXX='-pic'
16449             ;;
16450           cxx*)
16451             # Digital/Compaq C++
16452             lt_prog_compiler_wl_CXX='-Wl,'
16453             # Make sure the PIC flag is empty.  It appears that all Alpha
16454             # Linux and Compaq Tru64 Unix objects are PIC.
16455             lt_prog_compiler_pic_CXX=
16456             lt_prog_compiler_static_CXX='-non_shared'
16457             ;;
16458           *)
16459             ;;
16460         esac
16461         ;;
16462       psos*)
16463         ;;
16464       solaris*)
16465         case $cc_basename in
16466           CC*)
16467             # Sun C++ 4.2, 5.x and Centerline C++
16468             lt_prog_compiler_pic_CXX='-KPIC'
16469             lt_prog_compiler_static_CXX='-Bstatic'
16470             lt_prog_compiler_wl_CXX='-Qoption ld '
16471             ;;
16472           gcx*)
16473             # Green Hills C++ Compiler
16474             lt_prog_compiler_pic_CXX='-PIC'
16475             ;;
16476           *)
16477             ;;
16478         esac
16479         ;;
16480       sunos4*)
16481         case $cc_basename in
16482           CC*)
16483             # Sun C++ 4.x
16484             lt_prog_compiler_pic_CXX='-pic'
16485             lt_prog_compiler_static_CXX='-Bstatic'
16486             ;;
16487           lcc*)
16488             # Lucid
16489             lt_prog_compiler_pic_CXX='-pic'
16490             ;;
16491           *)
16492             ;;
16493         esac
16494         ;;
16495       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16496         case $cc_basename in
16497           CC*)
16498             lt_prog_compiler_wl_CXX='-Wl,'
16499             lt_prog_compiler_pic_CXX='-KPIC'
16500             lt_prog_compiler_static_CXX='-Bstatic'
16501             ;;
16502         esac
16503         ;;
16504       tandem*)
16505         case $cc_basename in
16506           NCC*)
16507             # NonStop-UX NCC 3.20
16508             lt_prog_compiler_pic_CXX='-KPIC'
16509             ;;
16510           *)
16511             ;;
16512         esac
16513         ;;
16514       vxworks*)
16515         ;;
16516       *)
16517         lt_prog_compiler_can_build_shared_CXX=no
16518         ;;
16519     esac
16520   fi
16521
16522 case $host_os in
16523   # For platforms which do not support PIC, -DPIC is meaningless:
16524   *djgpp*)
16525     lt_prog_compiler_pic_CXX=
16526     ;;
16527   *)
16528     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16529     ;;
16530 esac
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16532 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16533
16534
16535
16536 #
16537 # Check to make sure the PIC flag actually works.
16538 #
16539 if test -n "$lt_prog_compiler_pic_CXX"; then
16540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16541 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16542 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16543   $as_echo_n "(cached) " >&6
16544 else
16545   lt_cv_prog_compiler_pic_works_CXX=no
16546    ac_outfile=conftest.$ac_objext
16547    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16548    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16549    # Insert the option either (1) after the last *FLAGS variable, or
16550    # (2) before a word containing "conftest.", or (3) at the end.
16551    # Note that $ac_compile itself does not contain backslashes and begins
16552    # with a dollar sign (not a hyphen), so the echo should work correctly.
16553    # The option is referenced via a variable to avoid confusing sed.
16554    lt_compile=`echo "$ac_compile" | $SED \
16555    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16556    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16557    -e 's:$: $lt_compiler_flag:'`
16558    (eval echo "\"\$as_me:16558: $lt_compile\"" >&5)
16559    (eval "$lt_compile" 2>conftest.err)
16560    ac_status=$?
16561    cat conftest.err >&5
16562    echo "$as_me:16562: \$? = $ac_status" >&5
16563    if (exit $ac_status) && test -s "$ac_outfile"; then
16564      # The compiler can only warn and ignore the option if not recognized
16565      # So say no if there are warnings other than the usual output.
16566      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16567      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16568      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16569        lt_cv_prog_compiler_pic_works_CXX=yes
16570      fi
16571    fi
16572    $RM conftest*
16573
16574 fi
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16576 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16577
16578 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16579     case $lt_prog_compiler_pic_CXX in
16580      "" | " "*) ;;
16581      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16582      esac
16583 else
16584     lt_prog_compiler_pic_CXX=
16585      lt_prog_compiler_can_build_shared_CXX=no
16586 fi
16587
16588 fi
16589
16590
16591
16592 #
16593 # Check to make sure the static flag actually works.
16594 #
16595 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16597 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16598 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16599   $as_echo_n "(cached) " >&6
16600 else
16601   lt_cv_prog_compiler_static_works_CXX=no
16602    save_LDFLAGS="$LDFLAGS"
16603    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16604    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16605    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16606      # The linker can only warn and ignore the option if not recognized
16607      # So say no if there are warnings
16608      if test -s conftest.err; then
16609        # Append any errors to the config.log.
16610        cat conftest.err 1>&5
16611        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16612        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16613        if diff conftest.exp conftest.er2 >/dev/null; then
16614          lt_cv_prog_compiler_static_works_CXX=yes
16615        fi
16616      else
16617        lt_cv_prog_compiler_static_works_CXX=yes
16618      fi
16619    fi
16620    $RM -r conftest*
16621    LDFLAGS="$save_LDFLAGS"
16622
16623 fi
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16625 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16626
16627 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16628     :
16629 else
16630     lt_prog_compiler_static_CXX=
16631 fi
16632
16633
16634
16635
16636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16637 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16638 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16639   $as_echo_n "(cached) " >&6
16640 else
16641   lt_cv_prog_compiler_c_o_CXX=no
16642    $RM -r conftest 2>/dev/null
16643    mkdir conftest
16644    cd conftest
16645    mkdir out
16646    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16647
16648    lt_compiler_flag="-o out/conftest2.$ac_objext"
16649    # Insert the option either (1) after the last *FLAGS variable, or
16650    # (2) before a word containing "conftest.", or (3) at the end.
16651    # Note that $ac_compile itself does not contain backslashes and begins
16652    # with a dollar sign (not a hyphen), so the echo should work correctly.
16653    lt_compile=`echo "$ac_compile" | $SED \
16654    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16655    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16656    -e 's:$: $lt_compiler_flag:'`
16657    (eval echo "\"\$as_me:16657: $lt_compile\"" >&5)
16658    (eval "$lt_compile" 2>out/conftest.err)
16659    ac_status=$?
16660    cat out/conftest.err >&5
16661    echo "$as_me:16661: \$? = $ac_status" >&5
16662    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16663    then
16664      # The compiler can only warn and ignore the option if not recognized
16665      # So say no if there are warnings
16666      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16667      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16668      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16669        lt_cv_prog_compiler_c_o_CXX=yes
16670      fi
16671    fi
16672    chmod u+w . 2>&5
16673    $RM conftest*
16674    # SGI C++ compiler will create directory out/ii_files/ for
16675    # template instantiation
16676    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16677    $RM out/* && rmdir out
16678    cd ..
16679    $RM -r conftest
16680    $RM conftest*
16681
16682 fi
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16684 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16685
16686
16687
16688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16689 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16690 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16691   $as_echo_n "(cached) " >&6
16692 else
16693   lt_cv_prog_compiler_c_o_CXX=no
16694    $RM -r conftest 2>/dev/null
16695    mkdir conftest
16696    cd conftest
16697    mkdir out
16698    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16699
16700    lt_compiler_flag="-o out/conftest2.$ac_objext"
16701    # Insert the option either (1) after the last *FLAGS variable, or
16702    # (2) before a word containing "conftest.", or (3) at the end.
16703    # Note that $ac_compile itself does not contain backslashes and begins
16704    # with a dollar sign (not a hyphen), so the echo should work correctly.
16705    lt_compile=`echo "$ac_compile" | $SED \
16706    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16707    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16708    -e 's:$: $lt_compiler_flag:'`
16709    (eval echo "\"\$as_me:16709: $lt_compile\"" >&5)
16710    (eval "$lt_compile" 2>out/conftest.err)
16711    ac_status=$?
16712    cat out/conftest.err >&5
16713    echo "$as_me:16713: \$? = $ac_status" >&5
16714    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16715    then
16716      # The compiler can only warn and ignore the option if not recognized
16717      # So say no if there are warnings
16718      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16719      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16720      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16721        lt_cv_prog_compiler_c_o_CXX=yes
16722      fi
16723    fi
16724    chmod u+w . 2>&5
16725    $RM conftest*
16726    # SGI C++ compiler will create directory out/ii_files/ for
16727    # template instantiation
16728    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16729    $RM out/* && rmdir out
16730    cd ..
16731    $RM -r conftest
16732    $RM conftest*
16733
16734 fi
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16736 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16737
16738
16739
16740
16741 hard_links="nottested"
16742 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16743   # do not overwrite the value of need_locks provided by the user
16744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16745 $as_echo_n "checking if we can lock with hard links... " >&6; }
16746   hard_links=yes
16747   $RM conftest*
16748   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16749   touch conftest.a
16750   ln conftest.a conftest.b 2>&5 || hard_links=no
16751   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16753 $as_echo "$hard_links" >&6; }
16754   if test "$hard_links" = no; then
16755     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16756 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16757     need_locks=warn
16758   fi
16759 else
16760   need_locks=no
16761 fi
16762
16763
16764
16765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16766 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16767
16768   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16769   case $host_os in
16770   aix[4-9]*)
16771     # If we're using GNU nm, then we don't want the "-C" option.
16772     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16773     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16774       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'
16775     else
16776       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'
16777     fi
16778     ;;
16779   pw32*)
16780     export_symbols_cmds_CXX="$ltdll_cmds"
16781   ;;
16782   cygwin* | mingw* | cegcc*)
16783     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'
16784   ;;
16785   linux* | k*bsd*-gnu)
16786     link_all_deplibs_CXX=no
16787   ;;
16788   *)
16789     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16790   ;;
16791   esac
16792   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16793
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16795 $as_echo "$ld_shlibs_CXX" >&6; }
16796 test "$ld_shlibs_CXX" = no && can_build_shared=no
16797
16798 with_gnu_ld_CXX=$with_gnu_ld
16799
16800
16801
16802
16803
16804
16805 #
16806 # Do we need to explicitly link libc?
16807 #
16808 case "x$archive_cmds_need_lc_CXX" in
16809 x|xyes)
16810   # Assume -lc should be added
16811   archive_cmds_need_lc_CXX=yes
16812
16813   if test "$enable_shared" = yes && test "$GCC" = yes; then
16814     case $archive_cmds_CXX in
16815     *'~'*)
16816       # FIXME: we may have to deal with multi-command sequences.
16817       ;;
16818     '$CC '*)
16819       # Test whether the compiler implicitly links with -lc since on some
16820       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16821       # to ld, don't add -lc before -lgcc.
16822       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16823 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16824       $RM conftest*
16825       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16826
16827       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16828   (eval $ac_compile) 2>&5
16829   ac_status=$?
16830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16831   test $ac_status = 0; } 2>conftest.err; then
16832         soname=conftest
16833         lib=conftest
16834         libobjs=conftest.$ac_objext
16835         deplibs=
16836         wl=$lt_prog_compiler_wl_CXX
16837         pic_flag=$lt_prog_compiler_pic_CXX
16838         compiler_flags=-v
16839         linker_flags=-v
16840         verstring=
16841         output_objdir=.
16842         libname=conftest
16843         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16844         allow_undefined_flag_CXX=
16845         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16846   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16847   ac_status=$?
16848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16849   test $ac_status = 0; }
16850         then
16851           archive_cmds_need_lc_CXX=no
16852         else
16853           archive_cmds_need_lc_CXX=yes
16854         fi
16855         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16856       else
16857         cat conftest.err 1>&5
16858       fi
16859       $RM conftest*
16860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16861 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16862       ;;
16863     esac
16864   fi
16865   ;;
16866 esac
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16932 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16933
16934 library_names_spec=
16935 libname_spec='lib$name'
16936 soname_spec=
16937 shrext_cmds=".so"
16938 postinstall_cmds=
16939 postuninstall_cmds=
16940 finish_cmds=
16941 finish_eval=
16942 shlibpath_var=
16943 shlibpath_overrides_runpath=unknown
16944 version_type=none
16945 dynamic_linker="$host_os ld.so"
16946 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16947 need_lib_prefix=unknown
16948 hardcode_into_libs=no
16949
16950 # when you set need_version to no, make sure it does not cause -set_version
16951 # flags to be left without arguments
16952 need_version=unknown
16953
16954 case $host_os in
16955 aix3*)
16956   version_type=linux
16957   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16958   shlibpath_var=LIBPATH
16959
16960   # AIX 3 has no versioning support, so we append a major version to the name.
16961   soname_spec='${libname}${release}${shared_ext}$major'
16962   ;;
16963
16964 aix[4-9]*)
16965   version_type=linux
16966   need_lib_prefix=no
16967   need_version=no
16968   hardcode_into_libs=yes
16969   if test "$host_cpu" = ia64; then
16970     # AIX 5 supports IA64
16971     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16972     shlibpath_var=LD_LIBRARY_PATH
16973   else
16974     # With GCC up to 2.95.x, collect2 would create an import file
16975     # for dependence libraries.  The import file would start with
16976     # the line `#! .'.  This would cause the generated library to
16977     # depend on `.', always an invalid library.  This was fixed in
16978     # development snapshots of GCC prior to 3.0.
16979     case $host_os in
16980       aix4 | aix4.[01] | aix4.[01].*)
16981       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16982            echo ' yes '
16983            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16984         :
16985       else
16986         can_build_shared=no
16987       fi
16988       ;;
16989     esac
16990     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16991     # soname into executable. Probably we can add versioning support to
16992     # collect2, so additional links can be useful in future.
16993     if test "$aix_use_runtimelinking" = yes; then
16994       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16995       # instead of lib<name>.a to let people know that these are not
16996       # typical AIX shared libraries.
16997       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998     else
16999       # We preserve .a as extension for shared libraries through AIX4.2
17000       # and later when we are not doing run time linking.
17001       library_names_spec='${libname}${release}.a $libname.a'
17002       soname_spec='${libname}${release}${shared_ext}$major'
17003     fi
17004     shlibpath_var=LIBPATH
17005   fi
17006   ;;
17007
17008 amigaos*)
17009   case $host_cpu in
17010   powerpc)
17011     # Since July 2007 AmigaOS4 officially supports .so libraries.
17012     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17014     ;;
17015   m68k)
17016     library_names_spec='$libname.ixlibrary $libname.a'
17017     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17018     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'
17019     ;;
17020   esac
17021   ;;
17022
17023 beos*)
17024   library_names_spec='${libname}${shared_ext}'
17025   dynamic_linker="$host_os ld.so"
17026   shlibpath_var=LIBRARY_PATH
17027   ;;
17028
17029 bsdi[45]*)
17030   version_type=linux
17031   need_version=no
17032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033   soname_spec='${libname}${release}${shared_ext}$major'
17034   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17035   shlibpath_var=LD_LIBRARY_PATH
17036   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17037   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17038   # the default ld.so.conf also contains /usr/contrib/lib and
17039   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17040   # libtool to hard-code these into programs
17041   ;;
17042
17043 cygwin* | mingw* | pw32* | cegcc*)
17044   version_type=windows
17045   shrext_cmds=".dll"
17046   need_version=no
17047   need_lib_prefix=no
17048
17049   case $GCC,$host_os in
17050   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17051     library_names_spec='$libname.dll.a'
17052     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17053     postinstall_cmds='base_file=`basename \${file}`~
17054       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17055       dldir=$destdir/`dirname \$dlpath`~
17056       test -d \$dldir || mkdir -p \$dldir~
17057       $install_prog $dir/$dlname \$dldir/$dlname~
17058       chmod a+x \$dldir/$dlname~
17059       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17060         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17061       fi'
17062     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17063       dlpath=$dir/\$dldll~
17064        $RM \$dlpath'
17065     shlibpath_overrides_runpath=yes
17066
17067     case $host_os in
17068     cygwin*)
17069       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17070       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17071       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17072       ;;
17073     mingw* | cegcc*)
17074       # MinGW DLLs use traditional 'lib' prefix
17075       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17076       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17077       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17078         # It is most probably a Windows format PATH printed by
17079         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17080         # path with ; separators, and with drive letters. We can handle the
17081         # drive letters (cygwin fileutils understands them), so leave them,
17082         # especially as we might pass files found there to a mingw objdump,
17083         # which wouldn't understand a cygwinified path. Ahh.
17084         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17085       else
17086         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17087       fi
17088       ;;
17089     pw32*)
17090       # pw32 DLLs use 'pw' prefix rather than 'lib'
17091       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17092       ;;
17093     esac
17094     ;;
17095
17096   *)
17097     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17098     ;;
17099   esac
17100   dynamic_linker='Win32 ld.exe'
17101   # FIXME: first we should search . and the directory the executable is in
17102   shlibpath_var=PATH
17103   ;;
17104
17105 darwin* | rhapsody*)
17106   dynamic_linker="$host_os dyld"
17107   version_type=darwin
17108   need_lib_prefix=no
17109   need_version=no
17110   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17111   soname_spec='${libname}${release}${major}$shared_ext'
17112   shlibpath_overrides_runpath=yes
17113   shlibpath_var=DYLD_LIBRARY_PATH
17114   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17115
17116   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17117   ;;
17118
17119 dgux*)
17120   version_type=linux
17121   need_lib_prefix=no
17122   need_version=no
17123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17124   soname_spec='${libname}${release}${shared_ext}$major'
17125   shlibpath_var=LD_LIBRARY_PATH
17126   ;;
17127
17128 freebsd1*)
17129   dynamic_linker=no
17130   ;;
17131
17132 freebsd* | dragonfly*)
17133   # DragonFly does not have aout.  When/if they implement a new
17134   # versioning mechanism, adjust this.
17135   if test -x /usr/bin/objformat; then
17136     objformat=`/usr/bin/objformat`
17137   else
17138     case $host_os in
17139     freebsd[123]*) objformat=aout ;;
17140     *) objformat=elf ;;
17141     esac
17142   fi
17143   version_type=freebsd-$objformat
17144   case $version_type in
17145     freebsd-elf*)
17146       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17147       need_version=no
17148       need_lib_prefix=no
17149       ;;
17150     freebsd-*)
17151       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17152       need_version=yes
17153       ;;
17154   esac
17155   shlibpath_var=LD_LIBRARY_PATH
17156   case $host_os in
17157   freebsd2*)
17158     shlibpath_overrides_runpath=yes
17159     ;;
17160   freebsd3.[01]* | freebsdelf3.[01]*)
17161     shlibpath_overrides_runpath=yes
17162     hardcode_into_libs=yes
17163     ;;
17164   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17165   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17166     shlibpath_overrides_runpath=no
17167     hardcode_into_libs=yes
17168     ;;
17169   *) # from 4.6 on, and DragonFly
17170     shlibpath_overrides_runpath=yes
17171     hardcode_into_libs=yes
17172     ;;
17173   esac
17174   ;;
17175
17176 gnu*)
17177   version_type=linux
17178   need_lib_prefix=no
17179   need_version=no
17180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17181   soname_spec='${libname}${release}${shared_ext}$major'
17182   shlibpath_var=LD_LIBRARY_PATH
17183   hardcode_into_libs=yes
17184   ;;
17185
17186 hpux9* | hpux10* | hpux11*)
17187   # Give a soname corresponding to the major version so that dld.sl refuses to
17188   # link against other versions.
17189   version_type=sunos
17190   need_lib_prefix=no
17191   need_version=no
17192   case $host_cpu in
17193   ia64*)
17194     shrext_cmds='.so'
17195     hardcode_into_libs=yes
17196     dynamic_linker="$host_os dld.so"
17197     shlibpath_var=LD_LIBRARY_PATH
17198     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200     soname_spec='${libname}${release}${shared_ext}$major'
17201     if test "X$HPUX_IA64_MODE" = X32; then
17202       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17203     else
17204       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17205     fi
17206     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17207     ;;
17208   hppa*64*)
17209     shrext_cmds='.sl'
17210     hardcode_into_libs=yes
17211     dynamic_linker="$host_os dld.sl"
17212     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17213     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215     soname_spec='${libname}${release}${shared_ext}$major'
17216     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17217     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17218     ;;
17219   *)
17220     shrext_cmds='.sl'
17221     dynamic_linker="$host_os dld.sl"
17222     shlibpath_var=SHLIB_PATH
17223     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17225     soname_spec='${libname}${release}${shared_ext}$major'
17226     ;;
17227   esac
17228   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17229   postinstall_cmds='chmod 555 $lib'
17230   ;;
17231
17232 interix[3-9]*)
17233   version_type=linux
17234   need_lib_prefix=no
17235   need_version=no
17236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17237   soname_spec='${libname}${release}${shared_ext}$major'
17238   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17239   shlibpath_var=LD_LIBRARY_PATH
17240   shlibpath_overrides_runpath=no
17241   hardcode_into_libs=yes
17242   ;;
17243
17244 irix5* | irix6* | nonstopux*)
17245   case $host_os in
17246     nonstopux*) version_type=nonstopux ;;
17247     *)
17248         if test "$lt_cv_prog_gnu_ld" = yes; then
17249                 version_type=linux
17250         else
17251                 version_type=irix
17252         fi ;;
17253   esac
17254   need_lib_prefix=no
17255   need_version=no
17256   soname_spec='${libname}${release}${shared_ext}$major'
17257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17258   case $host_os in
17259   irix5* | nonstopux*)
17260     libsuff= shlibsuff=
17261     ;;
17262   *)
17263     case $LD in # libtool.m4 will add one of these switches to LD
17264     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17265       libsuff= shlibsuff= libmagic=32-bit;;
17266     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17267       libsuff=32 shlibsuff=N32 libmagic=N32;;
17268     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17269       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17270     *) libsuff= shlibsuff= libmagic=never-match;;
17271     esac
17272     ;;
17273   esac
17274   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17275   shlibpath_overrides_runpath=no
17276   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17277   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17278   hardcode_into_libs=yes
17279   ;;
17280
17281 # No shared lib support for Linux oldld, aout, or coff.
17282 linux*oldld* | linux*aout* | linux*coff*)
17283   dynamic_linker=no
17284   ;;
17285
17286 # This must be Linux ELF.
17287 linux* | k*bsd*-gnu)
17288   version_type=linux
17289   need_lib_prefix=no
17290   need_version=no
17291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292   soname_spec='${libname}${release}${shared_ext}$major'
17293   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17294   shlibpath_var=LD_LIBRARY_PATH
17295   shlibpath_overrides_runpath=no
17296   # Some binutils ld are patched to set DT_RUNPATH
17297   save_LDFLAGS=$LDFLAGS
17298   save_libdir=$libdir
17299   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17300        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302 /* end confdefs.h.  */
17303
17304 int
17305 main ()
17306 {
17307
17308   ;
17309   return 0;
17310 }
17311 _ACEOF
17312 if ac_fn_cxx_try_link "$LINENO"; then :
17313   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17314   shlibpath_overrides_runpath=yes
17315 fi
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext \
17318     conftest$ac_exeext conftest.$ac_ext
17319   LDFLAGS=$save_LDFLAGS
17320   libdir=$save_libdir
17321
17322   # This implies no fast_install, which is unacceptable.
17323   # Some rework will be needed to allow for fast_install
17324   # before this can be enabled.
17325   hardcode_into_libs=yes
17326
17327   # Append ld.so.conf contents to the search path
17328   if test -f /etc/ld.so.conf; then
17329     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17330     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17331   fi
17332
17333   # We used to test for /lib/ld.so.1 and disable shared libraries on
17334   # powerpc, because MkLinux only supported shared libraries with the
17335   # GNU dynamic linker.  Since this was broken with cross compilers,
17336   # most powerpc-linux boxes support dynamic linking these days and
17337   # people can always --disable-shared, the test was removed, and we
17338   # assume the GNU/Linux dynamic linker is in use.
17339   dynamic_linker='GNU/Linux ld.so'
17340   ;;
17341
17342 netbsdelf*-gnu)
17343   version_type=linux
17344   need_lib_prefix=no
17345   need_version=no
17346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17347   soname_spec='${libname}${release}${shared_ext}$major'
17348   shlibpath_var=LD_LIBRARY_PATH
17349   shlibpath_overrides_runpath=no
17350   hardcode_into_libs=yes
17351   dynamic_linker='NetBSD ld.elf_so'
17352   ;;
17353
17354 netbsd*)
17355   version_type=sunos
17356   need_lib_prefix=no
17357   need_version=no
17358   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17360     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17361     dynamic_linker='NetBSD (a.out) ld.so'
17362   else
17363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17364     soname_spec='${libname}${release}${shared_ext}$major'
17365     dynamic_linker='NetBSD ld.elf_so'
17366   fi
17367   shlibpath_var=LD_LIBRARY_PATH
17368   shlibpath_overrides_runpath=yes
17369   hardcode_into_libs=yes
17370   ;;
17371
17372 newsos6)
17373   version_type=linux
17374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17375   shlibpath_var=LD_LIBRARY_PATH
17376   shlibpath_overrides_runpath=yes
17377   ;;
17378
17379 *nto* | *qnx*)
17380   version_type=qnx
17381   need_lib_prefix=no
17382   need_version=no
17383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384   soname_spec='${libname}${release}${shared_ext}$major'
17385   shlibpath_var=LD_LIBRARY_PATH
17386   shlibpath_overrides_runpath=no
17387   hardcode_into_libs=yes
17388   dynamic_linker='ldqnx.so'
17389   ;;
17390
17391 openbsd*)
17392   version_type=sunos
17393   sys_lib_dlsearch_path_spec="/usr/lib"
17394   need_lib_prefix=no
17395   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17396   case $host_os in
17397     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17398     *)                          need_version=no  ;;
17399   esac
17400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17401   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17402   shlibpath_var=LD_LIBRARY_PATH
17403   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17404     case $host_os in
17405       openbsd2.[89] | openbsd2.[89].*)
17406         shlibpath_overrides_runpath=no
17407         ;;
17408       *)
17409         shlibpath_overrides_runpath=yes
17410         ;;
17411       esac
17412   else
17413     shlibpath_overrides_runpath=yes
17414   fi
17415   ;;
17416
17417 os2*)
17418   libname_spec='$name'
17419   shrext_cmds=".dll"
17420   need_lib_prefix=no
17421   library_names_spec='$libname${shared_ext} $libname.a'
17422   dynamic_linker='OS/2 ld.exe'
17423   shlibpath_var=LIBPATH
17424   ;;
17425
17426 osf3* | osf4* | osf5*)
17427   version_type=osf
17428   need_lib_prefix=no
17429   need_version=no
17430   soname_spec='${libname}${release}${shared_ext}$major'
17431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432   shlibpath_var=LD_LIBRARY_PATH
17433   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17434   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17435   ;;
17436
17437 rdos*)
17438   dynamic_linker=no
17439   ;;
17440
17441 solaris*)
17442   version_type=linux
17443   need_lib_prefix=no
17444   need_version=no
17445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446   soname_spec='${libname}${release}${shared_ext}$major'
17447   shlibpath_var=LD_LIBRARY_PATH
17448   shlibpath_overrides_runpath=yes
17449   hardcode_into_libs=yes
17450   # ldd complains unless libraries are executable
17451   postinstall_cmds='chmod +x $lib'
17452   ;;
17453
17454 sunos4*)
17455   version_type=sunos
17456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17457   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17458   shlibpath_var=LD_LIBRARY_PATH
17459   shlibpath_overrides_runpath=yes
17460   if test "$with_gnu_ld" = yes; then
17461     need_lib_prefix=no
17462   fi
17463   need_version=yes
17464   ;;
17465
17466 sysv4 | sysv4.3*)
17467   version_type=linux
17468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17469   soname_spec='${libname}${release}${shared_ext}$major'
17470   shlibpath_var=LD_LIBRARY_PATH
17471   case $host_vendor in
17472     sni)
17473       shlibpath_overrides_runpath=no
17474       need_lib_prefix=no
17475       runpath_var=LD_RUN_PATH
17476       ;;
17477     siemens)
17478       need_lib_prefix=no
17479       ;;
17480     motorola)
17481       need_lib_prefix=no
17482       need_version=no
17483       shlibpath_overrides_runpath=no
17484       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17485       ;;
17486   esac
17487   ;;
17488
17489 sysv4*MP*)
17490   if test -d /usr/nec ;then
17491     version_type=linux
17492     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17493     soname_spec='$libname${shared_ext}.$major'
17494     shlibpath_var=LD_LIBRARY_PATH
17495   fi
17496   ;;
17497
17498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17499   version_type=freebsd-elf
17500   need_lib_prefix=no
17501   need_version=no
17502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17503   soname_spec='${libname}${release}${shared_ext}$major'
17504   shlibpath_var=LD_LIBRARY_PATH
17505   shlibpath_overrides_runpath=yes
17506   hardcode_into_libs=yes
17507   if test "$with_gnu_ld" = yes; then
17508     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17509   else
17510     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17511     case $host_os in
17512       sco3.2v5*)
17513         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17514         ;;
17515     esac
17516   fi
17517   sys_lib_dlsearch_path_spec='/usr/lib'
17518   ;;
17519
17520 tpf*)
17521   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17522   version_type=linux
17523   need_lib_prefix=no
17524   need_version=no
17525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17526   shlibpath_var=LD_LIBRARY_PATH
17527   shlibpath_overrides_runpath=no
17528   hardcode_into_libs=yes
17529   ;;
17530
17531 uts4*)
17532   version_type=linux
17533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534   soname_spec='${libname}${release}${shared_ext}$major'
17535   shlibpath_var=LD_LIBRARY_PATH
17536   ;;
17537
17538 *)
17539   dynamic_linker=no
17540   ;;
17541 esac
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17543 $as_echo "$dynamic_linker" >&6; }
17544 test "$dynamic_linker" = no && can_build_shared=no
17545
17546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17547 if test "$GCC" = yes; then
17548   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17549 fi
17550
17551 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17552   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17553 fi
17554 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17555   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17556 fi
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17594 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17595 hardcode_action_CXX=
17596 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17597    test -n "$runpath_var_CXX" ||
17598    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17599
17600   # We can hardcode non-existent directories.
17601   if test "$hardcode_direct_CXX" != no &&
17602      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17603      # have to relink, otherwise we might link with an installed library
17604      # when we should be linking with a yet-to-be-installed one
17605      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17606      test "$hardcode_minus_L_CXX" != no; then
17607     # Linking always hardcodes the temporary library directory.
17608     hardcode_action_CXX=relink
17609   else
17610     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17611     hardcode_action_CXX=immediate
17612   fi
17613 else
17614   # We cannot hardcode anything, or else we can only hardcode existing
17615   # directories.
17616   hardcode_action_CXX=unsupported
17617 fi
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17619 $as_echo "$hardcode_action_CXX" >&6; }
17620
17621 if test "$hardcode_action_CXX" = relink ||
17622    test "$inherit_rpath_CXX" = yes; then
17623   # Fast installation is not supported
17624   enable_fast_install=no
17625 elif test "$shlibpath_overrides_runpath" = yes ||
17626      test "$enable_shared" = no; then
17627   # Fast installation is not necessary
17628   enable_fast_install=needless
17629 fi
17630
17631
17632
17633
17634
17635
17636
17637   fi # test -n "$compiler"
17638
17639   CC=$lt_save_CC
17640   LDCXX=$LD
17641   LD=$lt_save_LD
17642   GCC=$lt_save_GCC
17643   with_gnu_ld=$lt_save_with_gnu_ld
17644   lt_cv_path_LDCXX=$lt_cv_path_LD
17645   lt_cv_path_LD=$lt_save_path_LD
17646   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17647   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17648 fi # test "$_lt_caught_CXX_error" != yes
17649
17650 ac_ext=c
17651 ac_cpp='$CPP $CPPFLAGS'
17652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17655
17656
17657
17658       ac_ext=f
17659 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17660 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17661 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17662
17663
17664 archive_cmds_need_lc_F77=no
17665 allow_undefined_flag_F77=
17666 always_export_symbols_F77=no
17667 archive_expsym_cmds_F77=
17668 export_dynamic_flag_spec_F77=
17669 hardcode_direct_F77=no
17670 hardcode_direct_absolute_F77=no
17671 hardcode_libdir_flag_spec_F77=
17672 hardcode_libdir_flag_spec_ld_F77=
17673 hardcode_libdir_separator_F77=
17674 hardcode_minus_L_F77=no
17675 hardcode_automatic_F77=no
17676 inherit_rpath_F77=no
17677 module_cmds_F77=
17678 module_expsym_cmds_F77=
17679 link_all_deplibs_F77=unknown
17680 old_archive_cmds_F77=$old_archive_cmds
17681 no_undefined_flag_F77=
17682 whole_archive_flag_spec_F77=
17683 enable_shared_with_static_runtimes_F77=no
17684
17685 # Source file extension for f77 test sources.
17686 ac_ext=f
17687
17688 # Object file extension for compiled f77 test sources.
17689 objext=o
17690 objext_F77=$objext
17691
17692 # No sense in running all these tests if we already determined that
17693 # the F77 compiler isn't working.  Some variables (like enable_shared)
17694 # are currently assumed to apply to all compilers on this platform,
17695 # and will be corrupted by setting them based on a non-working compiler.
17696 if test "$_lt_disable_F77" != yes; then
17697   # Code to be used in simple compile tests
17698   lt_simple_compile_test_code="\
17699       subroutine t
17700       return
17701       end
17702 "
17703
17704   # Code to be used in simple link tests
17705   lt_simple_link_test_code="\
17706       program t
17707       end
17708 "
17709
17710   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17711
17712
17713
17714
17715
17716
17717 # If no C compiler was specified, use CC.
17718 LTCC=${LTCC-"$CC"}
17719
17720 # If no C compiler flags were specified, use CFLAGS.
17721 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17722
17723 # Allow CC to be a program name with arguments.
17724 compiler=$CC
17725
17726
17727   # save warnings/boilerplate of simple test code
17728   ac_outfile=conftest.$ac_objext
17729 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17730 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17731 _lt_compiler_boilerplate=`cat conftest.err`
17732 $RM conftest*
17733
17734   ac_outfile=conftest.$ac_objext
17735 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17736 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17737 _lt_linker_boilerplate=`cat conftest.err`
17738 $RM -r conftest*
17739
17740
17741   # Allow CC to be a program name with arguments.
17742   lt_save_CC="$CC"
17743   lt_save_GCC=$GCC
17744   CC=${F77-"f77"}
17745   compiler=$CC
17746   compiler_F77=$CC
17747   for cc_temp in $compiler""; do
17748   case $cc_temp in
17749     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17750     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17751     \-*) ;;
17752     *) break;;
17753   esac
17754 done
17755 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17756
17757   GCC=$G77
17758   if test -n "$compiler"; then
17759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17760 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17762 $as_echo "$can_build_shared" >&6; }
17763
17764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17765 $as_echo_n "checking whether to build shared libraries... " >&6; }
17766     test "$can_build_shared" = "no" && enable_shared=no
17767
17768     # On AIX, shared libraries and static libraries use the same namespace, and
17769     # are all built from PIC.
17770     case $host_os in
17771       aix3*)
17772         test "$enable_shared" = yes && enable_static=no
17773         if test -n "$RANLIB"; then
17774           archive_cmds="$archive_cmds~\$RANLIB \$lib"
17775           postinstall_cmds='$RANLIB $lib'
17776         fi
17777         ;;
17778       aix[4-9]*)
17779         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17780           test "$enable_shared" = yes && enable_static=no
17781         fi
17782         ;;
17783     esac
17784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17785 $as_echo "$enable_shared" >&6; }
17786
17787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17788 $as_echo_n "checking whether to build static libraries... " >&6; }
17789     # Make sure either enable_shared or enable_static is yes.
17790     test "$enable_shared" = yes || enable_static=yes
17791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17792 $as_echo "$enable_static" >&6; }
17793
17794     GCC_F77="$G77"
17795     LD_F77="$LD"
17796
17797     ## CAVEAT EMPTOR:
17798     ## There is no encapsulation within the following macros, do not change
17799     ## the running order or otherwise move them around unless you know exactly
17800     ## what you are doing...
17801     lt_prog_compiler_wl_F77=
17802 lt_prog_compiler_pic_F77=
17803 lt_prog_compiler_static_F77=
17804
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17806 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17807
17808   if test "$GCC" = yes; then
17809     lt_prog_compiler_wl_F77='-Wl,'
17810     lt_prog_compiler_static_F77='-static'
17811
17812     case $host_os in
17813       aix*)
17814       # All AIX code is PIC.
17815       if test "$host_cpu" = ia64; then
17816         # AIX 5 now supports IA64 processor
17817         lt_prog_compiler_static_F77='-Bstatic'
17818       fi
17819       ;;
17820
17821     amigaos*)
17822       case $host_cpu in
17823       powerpc)
17824             # see comment about AmigaOS4 .so support
17825             lt_prog_compiler_pic_F77='-fPIC'
17826         ;;
17827       m68k)
17828             # FIXME: we need at least 68020 code to build shared libraries, but
17829             # adding the `-m68020' flag to GCC prevents building anything better,
17830             # like `-m68040'.
17831             lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17832         ;;
17833       esac
17834       ;;
17835
17836     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17837       # PIC is the default for these OSes.
17838       ;;
17839
17840     mingw* | cygwin* | pw32* | os2* | cegcc*)
17841       # This hack is so that the source file can tell whether it is being
17842       # built for inclusion in a dll (and should export symbols for example).
17843       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17844       # (--disable-auto-import) libraries
17845       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17846       ;;
17847
17848     darwin* | rhapsody*)
17849       # PIC is the default on this platform
17850       # Common symbols not allowed in MH_DYLIB files
17851       lt_prog_compiler_pic_F77='-fno-common'
17852       ;;
17853
17854     hpux*)
17855       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17856       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17857       # sets the default TLS model and affects inlining.
17858       case $host_cpu in
17859       hppa*64*)
17860         # +Z the default
17861         ;;
17862       *)
17863         lt_prog_compiler_pic_F77='-fPIC'
17864         ;;
17865       esac
17866       ;;
17867
17868     interix[3-9]*)
17869       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17870       # Instead, we relocate shared libraries at runtime.
17871       ;;
17872
17873     msdosdjgpp*)
17874       # Just because we use GCC doesn't mean we suddenly get shared libraries
17875       # on systems that don't support them.
17876       lt_prog_compiler_can_build_shared_F77=no
17877       enable_shared=no
17878       ;;
17879
17880     *nto* | *qnx*)
17881       # QNX uses GNU C++, but need to define -shared option too, otherwise
17882       # it will coredump.
17883       lt_prog_compiler_pic_F77='-fPIC -shared'
17884       ;;
17885
17886     sysv4*MP*)
17887       if test -d /usr/nec; then
17888         lt_prog_compiler_pic_F77=-Kconform_pic
17889       fi
17890       ;;
17891
17892     *)
17893       lt_prog_compiler_pic_F77='-fPIC'
17894       ;;
17895     esac
17896   else
17897     # PORTME Check for flag to pass linker flags through the system compiler.
17898     case $host_os in
17899     aix*)
17900       lt_prog_compiler_wl_F77='-Wl,'
17901       if test "$host_cpu" = ia64; then
17902         # AIX 5 now supports IA64 processor
17903         lt_prog_compiler_static_F77='-Bstatic'
17904       else
17905         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17906       fi
17907       ;;
17908
17909     mingw* | cygwin* | pw32* | os2* | cegcc*)
17910       # This hack is so that the source file can tell whether it is being
17911       # built for inclusion in a dll (and should export symbols for example).
17912       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17913       ;;
17914
17915     hpux9* | hpux10* | hpux11*)
17916       lt_prog_compiler_wl_F77='-Wl,'
17917       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17918       # not for PA HP-UX.
17919       case $host_cpu in
17920       hppa*64*|ia64*)
17921         # +Z the default
17922         ;;
17923       *)
17924         lt_prog_compiler_pic_F77='+Z'
17925         ;;
17926       esac
17927       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17928       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17929       ;;
17930
17931     irix5* | irix6* | nonstopux*)
17932       lt_prog_compiler_wl_F77='-Wl,'
17933       # PIC (with -KPIC) is the default.
17934       lt_prog_compiler_static_F77='-non_shared'
17935       ;;
17936
17937     linux* | k*bsd*-gnu)
17938       case $cc_basename in
17939       # old Intel for x86_64 which still supported -KPIC.
17940       ecc*)
17941         lt_prog_compiler_wl_F77='-Wl,'
17942         lt_prog_compiler_pic_F77='-KPIC'
17943         lt_prog_compiler_static_F77='-static'
17944         ;;
17945       # icc used to be incompatible with GCC.
17946       # ICC 10 doesn't accept -KPIC any more.
17947       icc* | ifort*)
17948         lt_prog_compiler_wl_F77='-Wl,'
17949         lt_prog_compiler_pic_F77='-fPIC'
17950         lt_prog_compiler_static_F77='-static'
17951         ;;
17952       # Lahey Fortran 8.1.
17953       lf95*)
17954         lt_prog_compiler_wl_F77='-Wl,'
17955         lt_prog_compiler_pic_F77='--shared'
17956         lt_prog_compiler_static_F77='--static'
17957         ;;
17958       pgcc* | pgf77* | pgf90* | pgf95*)
17959         # Portland Group compilers (*not* the Pentium gcc compiler,
17960         # which looks to be a dead project)
17961         lt_prog_compiler_wl_F77='-Wl,'
17962         lt_prog_compiler_pic_F77='-fpic'
17963         lt_prog_compiler_static_F77='-Bstatic'
17964         ;;
17965       ccc*)
17966         lt_prog_compiler_wl_F77='-Wl,'
17967         # All Alpha code is PIC.
17968         lt_prog_compiler_static_F77='-non_shared'
17969         ;;
17970       xl*)
17971         # IBM XL C 8.0/Fortran 10.1 on PPC
17972         lt_prog_compiler_wl_F77='-Wl,'
17973         lt_prog_compiler_pic_F77='-qpic'
17974         lt_prog_compiler_static_F77='-qstaticlink'
17975         ;;
17976       *)
17977         case `$CC -V 2>&1 | sed 5q` in
17978         *Sun\ C*)
17979           # Sun C 5.9
17980           lt_prog_compiler_pic_F77='-KPIC'
17981           lt_prog_compiler_static_F77='-Bstatic'
17982           lt_prog_compiler_wl_F77='-Wl,'
17983           ;;
17984         *Sun\ F*)
17985           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17986           lt_prog_compiler_pic_F77='-KPIC'
17987           lt_prog_compiler_static_F77='-Bstatic'
17988           lt_prog_compiler_wl_F77=''
17989           ;;
17990         esac
17991         ;;
17992       esac
17993       ;;
17994
17995     newsos6)
17996       lt_prog_compiler_pic_F77='-KPIC'
17997       lt_prog_compiler_static_F77='-Bstatic'
17998       ;;
17999
18000     *nto* | *qnx*)
18001       # QNX uses GNU C++, but need to define -shared option too, otherwise
18002       # it will coredump.
18003       lt_prog_compiler_pic_F77='-fPIC -shared'
18004       ;;
18005
18006     osf3* | osf4* | osf5*)
18007       lt_prog_compiler_wl_F77='-Wl,'
18008       # All OSF/1 code is PIC.
18009       lt_prog_compiler_static_F77='-non_shared'
18010       ;;
18011
18012     rdos*)
18013       lt_prog_compiler_static_F77='-non_shared'
18014       ;;
18015
18016     solaris*)
18017       lt_prog_compiler_pic_F77='-KPIC'
18018       lt_prog_compiler_static_F77='-Bstatic'
18019       case $cc_basename in
18020       f77* | f90* | f95*)
18021         lt_prog_compiler_wl_F77='-Qoption ld ';;
18022       *)
18023         lt_prog_compiler_wl_F77='-Wl,';;
18024       esac
18025       ;;
18026
18027     sunos4*)
18028       lt_prog_compiler_wl_F77='-Qoption ld '
18029       lt_prog_compiler_pic_F77='-PIC'
18030       lt_prog_compiler_static_F77='-Bstatic'
18031       ;;
18032
18033     sysv4 | sysv4.2uw2* | sysv4.3*)
18034       lt_prog_compiler_wl_F77='-Wl,'
18035       lt_prog_compiler_pic_F77='-KPIC'
18036       lt_prog_compiler_static_F77='-Bstatic'
18037       ;;
18038
18039     sysv4*MP*)
18040       if test -d /usr/nec ;then
18041         lt_prog_compiler_pic_F77='-Kconform_pic'
18042         lt_prog_compiler_static_F77='-Bstatic'
18043       fi
18044       ;;
18045
18046     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18047       lt_prog_compiler_wl_F77='-Wl,'
18048       lt_prog_compiler_pic_F77='-KPIC'
18049       lt_prog_compiler_static_F77='-Bstatic'
18050       ;;
18051
18052     unicos*)
18053       lt_prog_compiler_wl_F77='-Wl,'
18054       lt_prog_compiler_can_build_shared_F77=no
18055       ;;
18056
18057     uts4*)
18058       lt_prog_compiler_pic_F77='-pic'
18059       lt_prog_compiler_static_F77='-Bstatic'
18060       ;;
18061
18062     *)
18063       lt_prog_compiler_can_build_shared_F77=no
18064       ;;
18065     esac
18066   fi
18067
18068 case $host_os in
18069   # For platforms which do not support PIC, -DPIC is meaningless:
18070   *djgpp*)
18071     lt_prog_compiler_pic_F77=
18072     ;;
18073   *)
18074     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18075     ;;
18076 esac
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
18078 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
18079
18080
18081
18082 #
18083 # Check to make sure the PIC flag actually works.
18084 #
18085 if test -n "$lt_prog_compiler_pic_F77"; then
18086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18087 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
18088 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
18089   $as_echo_n "(cached) " >&6
18090 else
18091   lt_cv_prog_compiler_pic_works_F77=no
18092    ac_outfile=conftest.$ac_objext
18093    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18094    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18095    # Insert the option either (1) after the last *FLAGS variable, or
18096    # (2) before a word containing "conftest.", or (3) at the end.
18097    # Note that $ac_compile itself does not contain backslashes and begins
18098    # with a dollar sign (not a hyphen), so the echo should work correctly.
18099    # The option is referenced via a variable to avoid confusing sed.
18100    lt_compile=`echo "$ac_compile" | $SED \
18101    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18102    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18103    -e 's:$: $lt_compiler_flag:'`
18104    (eval echo "\"\$as_me:18104: $lt_compile\"" >&5)
18105    (eval "$lt_compile" 2>conftest.err)
18106    ac_status=$?
18107    cat conftest.err >&5
18108    echo "$as_me:18108: \$? = $ac_status" >&5
18109    if (exit $ac_status) && test -s "$ac_outfile"; then
18110      # The compiler can only warn and ignore the option if not recognized
18111      # So say no if there are warnings other than the usual output.
18112      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18113      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18114      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18115        lt_cv_prog_compiler_pic_works_F77=yes
18116      fi
18117    fi
18118    $RM conftest*
18119
18120 fi
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
18122 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
18123
18124 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
18125     case $lt_prog_compiler_pic_F77 in
18126      "" | " "*) ;;
18127      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18128      esac
18129 else
18130     lt_prog_compiler_pic_F77=
18131      lt_prog_compiler_can_build_shared_F77=no
18132 fi
18133
18134 fi
18135
18136
18137
18138 #
18139 # Check to make sure the static flag actually works.
18140 #
18141 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18143 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18144 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
18145   $as_echo_n "(cached) " >&6
18146 else
18147   lt_cv_prog_compiler_static_works_F77=no
18148    save_LDFLAGS="$LDFLAGS"
18149    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18150    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18151    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18152      # The linker can only warn and ignore the option if not recognized
18153      # So say no if there are warnings
18154      if test -s conftest.err; then
18155        # Append any errors to the config.log.
18156        cat conftest.err 1>&5
18157        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18158        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18159        if diff conftest.exp conftest.er2 >/dev/null; then
18160          lt_cv_prog_compiler_static_works_F77=yes
18161        fi
18162      else
18163        lt_cv_prog_compiler_static_works_F77=yes
18164      fi
18165    fi
18166    $RM -r conftest*
18167    LDFLAGS="$save_LDFLAGS"
18168
18169 fi
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
18171 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
18172
18173 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
18174     :
18175 else
18176     lt_prog_compiler_static_F77=
18177 fi
18178
18179
18180
18181
18182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18184 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
18185   $as_echo_n "(cached) " >&6
18186 else
18187   lt_cv_prog_compiler_c_o_F77=no
18188    $RM -r conftest 2>/dev/null
18189    mkdir conftest
18190    cd conftest
18191    mkdir out
18192    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18193
18194    lt_compiler_flag="-o out/conftest2.$ac_objext"
18195    # Insert the option either (1) after the last *FLAGS variable, or
18196    # (2) before a word containing "conftest.", or (3) at the end.
18197    # Note that $ac_compile itself does not contain backslashes and begins
18198    # with a dollar sign (not a hyphen), so the echo should work correctly.
18199    lt_compile=`echo "$ac_compile" | $SED \
18200    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18201    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18202    -e 's:$: $lt_compiler_flag:'`
18203    (eval echo "\"\$as_me:18203: $lt_compile\"" >&5)
18204    (eval "$lt_compile" 2>out/conftest.err)
18205    ac_status=$?
18206    cat out/conftest.err >&5
18207    echo "$as_me:18207: \$? = $ac_status" >&5
18208    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18209    then
18210      # The compiler can only warn and ignore the option if not recognized
18211      # So say no if there are warnings
18212      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18213      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18214      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18215        lt_cv_prog_compiler_c_o_F77=yes
18216      fi
18217    fi
18218    chmod u+w . 2>&5
18219    $RM conftest*
18220    # SGI C++ compiler will create directory out/ii_files/ for
18221    # template instantiation
18222    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18223    $RM out/* && rmdir out
18224    cd ..
18225    $RM -r conftest
18226    $RM conftest*
18227
18228 fi
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
18230 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18231
18232
18233
18234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18235 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18236 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
18237   $as_echo_n "(cached) " >&6
18238 else
18239   lt_cv_prog_compiler_c_o_F77=no
18240    $RM -r conftest 2>/dev/null
18241    mkdir conftest
18242    cd conftest
18243    mkdir out
18244    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18245
18246    lt_compiler_flag="-o out/conftest2.$ac_objext"
18247    # Insert the option either (1) after the last *FLAGS variable, or
18248    # (2) before a word containing "conftest.", or (3) at the end.
18249    # Note that $ac_compile itself does not contain backslashes and begins
18250    # with a dollar sign (not a hyphen), so the echo should work correctly.
18251    lt_compile=`echo "$ac_compile" | $SED \
18252    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18253    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18254    -e 's:$: $lt_compiler_flag:'`
18255    (eval echo "\"\$as_me:18255: $lt_compile\"" >&5)
18256    (eval "$lt_compile" 2>out/conftest.err)
18257    ac_status=$?
18258    cat out/conftest.err >&5
18259    echo "$as_me:18259: \$? = $ac_status" >&5
18260    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18261    then
18262      # The compiler can only warn and ignore the option if not recognized
18263      # So say no if there are warnings
18264      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18265      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18266      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18267        lt_cv_prog_compiler_c_o_F77=yes
18268      fi
18269    fi
18270    chmod u+w . 2>&5
18271    $RM conftest*
18272    # SGI C++ compiler will create directory out/ii_files/ for
18273    # template instantiation
18274    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18275    $RM out/* && rmdir out
18276    cd ..
18277    $RM -r conftest
18278    $RM conftest*
18279
18280 fi
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
18282 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18283
18284
18285
18286
18287 hard_links="nottested"
18288 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18289   # do not overwrite the value of need_locks provided by the user
18290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18291 $as_echo_n "checking if we can lock with hard links... " >&6; }
18292   hard_links=yes
18293   $RM conftest*
18294   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18295   touch conftest.a
18296   ln conftest.a conftest.b 2>&5 || hard_links=no
18297   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18299 $as_echo "$hard_links" >&6; }
18300   if test "$hard_links" = no; then
18301     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18302 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18303     need_locks=warn
18304   fi
18305 else
18306   need_locks=no
18307 fi
18308
18309
18310
18311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18312 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18313
18314   runpath_var=
18315   allow_undefined_flag_F77=
18316   always_export_symbols_F77=no
18317   archive_cmds_F77=
18318   archive_expsym_cmds_F77=
18319   compiler_needs_object_F77=no
18320   enable_shared_with_static_runtimes_F77=no
18321   export_dynamic_flag_spec_F77=
18322   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18323   hardcode_automatic_F77=no
18324   hardcode_direct_F77=no
18325   hardcode_direct_absolute_F77=no
18326   hardcode_libdir_flag_spec_F77=
18327   hardcode_libdir_flag_spec_ld_F77=
18328   hardcode_libdir_separator_F77=
18329   hardcode_minus_L_F77=no
18330   hardcode_shlibpath_var_F77=unsupported
18331   inherit_rpath_F77=no
18332   link_all_deplibs_F77=unknown
18333   module_cmds_F77=
18334   module_expsym_cmds_F77=
18335   old_archive_from_new_cmds_F77=
18336   old_archive_from_expsyms_cmds_F77=
18337   thread_safe_flag_spec_F77=
18338   whole_archive_flag_spec_F77=
18339   # include_expsyms should be a list of space-separated symbols to be *always*
18340   # included in the symbol list
18341   include_expsyms_F77=
18342   # exclude_expsyms can be an extended regexp of symbols to exclude
18343   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18344   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18345   # as well as any symbol that contains `d'.
18346   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18347   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18348   # platforms (ab)use it in PIC code, but their linkers get confused if
18349   # the symbol is explicitly referenced.  Since portable code cannot
18350   # rely on this symbol name, it's probably fine to never include it in
18351   # preloaded symbol tables.
18352   # Exclude shared library initialization/finalization symbols.
18353   extract_expsyms_cmds=
18354
18355   case $host_os in
18356   cygwin* | mingw* | pw32* | cegcc*)
18357     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18358     # When not using gcc, we currently assume that we are using
18359     # Microsoft Visual C++.
18360     if test "$GCC" != yes; then
18361       with_gnu_ld=no
18362     fi
18363     ;;
18364   interix*)
18365     # we just hope/assume this is gcc and not c89 (= MSVC++)
18366     with_gnu_ld=yes
18367     ;;
18368   openbsd*)
18369     with_gnu_ld=no
18370     ;;
18371   linux* | k*bsd*-gnu)
18372     link_all_deplibs_F77=no
18373     ;;
18374   esac
18375
18376   ld_shlibs_F77=yes
18377   if test "$with_gnu_ld" = yes; then
18378     # If archive_cmds runs LD, not CC, wlarc should be empty
18379     wlarc='${wl}'
18380
18381     # Set some defaults for GNU ld with shared library support. These
18382     # are reset later if shared libraries are not supported. Putting them
18383     # here allows them to be overridden if necessary.
18384     runpath_var=LD_RUN_PATH
18385     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18386     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
18387     # ancient GNU ld didn't support --whole-archive et. al.
18388     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18389       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18390     else
18391       whole_archive_flag_spec_F77=
18392     fi
18393     supports_anon_versioning=no
18394     case `$LD -v 2>&1` in
18395       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18396       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18397       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18398       *\ 2.11.*) ;; # other 2.11 versions
18399       *) supports_anon_versioning=yes ;;
18400     esac
18401
18402     # See if GNU ld supports shared libraries.
18403     case $host_os in
18404     aix[3-9]*)
18405       # On AIX/PPC, the GNU linker is very broken
18406       if test "$host_cpu" != ia64; then
18407         ld_shlibs_F77=no
18408         cat <<_LT_EOF 1>&2
18409
18410 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18411 *** to be unable to reliably create shared libraries on AIX.
18412 *** Therefore, libtool is disabling shared libraries support.  If you
18413 *** really care for shared libraries, you may want to modify your PATH
18414 *** so that a non-GNU linker is found, and then restart.
18415
18416 _LT_EOF
18417       fi
18418       ;;
18419
18420     amigaos*)
18421       case $host_cpu in
18422       powerpc)
18423             # see comment about AmigaOS4 .so support
18424             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18425             archive_expsym_cmds_F77=''
18426         ;;
18427       m68k)
18428             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)'
18429             hardcode_libdir_flag_spec_F77='-L$libdir'
18430             hardcode_minus_L_F77=yes
18431         ;;
18432       esac
18433       ;;
18434
18435     beos*)
18436       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18437         allow_undefined_flag_F77=unsupported
18438         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18439         # support --undefined.  This deserves some investigation.  FIXME
18440         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18441       else
18442         ld_shlibs_F77=no
18443       fi
18444       ;;
18445
18446     cygwin* | mingw* | pw32* | cegcc*)
18447       # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18448       # as there is no search path for DLLs.
18449       hardcode_libdir_flag_spec_F77='-L$libdir'
18450       allow_undefined_flag_F77=unsupported
18451       always_export_symbols_F77=no
18452       enable_shared_with_static_runtimes_F77=yes
18453       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18454
18455       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18456         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18457         # If the export-symbols file already is a .def file (1st line
18458         # is EXPORTS), use it as is; otherwise, prepend...
18459         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18460           cp $export_symbols $output_objdir/$soname.def;
18461         else
18462           echo EXPORTS > $output_objdir/$soname.def;
18463           cat $export_symbols >> $output_objdir/$soname.def;
18464         fi~
18465         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18466       else
18467         ld_shlibs_F77=no
18468       fi
18469       ;;
18470
18471     interix[3-9]*)
18472       hardcode_direct_F77=no
18473       hardcode_shlibpath_var_F77=no
18474       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18475       export_dynamic_flag_spec_F77='${wl}-E'
18476       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18477       # Instead, shared libraries are loaded at an image base (0x10000000 by
18478       # default) and relocated if they conflict, which is a slow very memory
18479       # consuming and fragmenting process.  To avoid this, we pick a random,
18480       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18481       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18482       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'
18483       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'
18484       ;;
18485
18486     gnu* | linux* | tpf* | k*bsd*-gnu)
18487       tmp_diet=no
18488       if test "$host_os" = linux-dietlibc; then
18489         case $cc_basename in
18490           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
18491         esac
18492       fi
18493       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18494          && test "$tmp_diet" = no
18495       then
18496         tmp_addflag=
18497         tmp_sharedflag='-shared'
18498         case $cc_basename,$host_cpu in
18499         pgcc*)                          # Portland Group C compiler
18500           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'
18501           tmp_addflag=' $pic_flag'
18502           ;;
18503         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18504           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'
18505           tmp_addflag=' $pic_flag -Mnomain' ;;
18506         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
18507           tmp_addflag=' -i_dynamic' ;;
18508         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18509           tmp_addflag=' -i_dynamic -nofor_main' ;;
18510         ifc* | ifort*)                  # Intel Fortran compiler
18511           tmp_addflag=' -nofor_main' ;;
18512         lf95*)                          # Lahey Fortran 8.1
18513           whole_archive_flag_spec_F77=
18514           tmp_sharedflag='--shared' ;;
18515         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
18516           tmp_sharedflag='-qmkshrobj'
18517           tmp_addflag= ;;
18518         esac
18519         case `$CC -V 2>&1 | sed 5q` in
18520         *Sun\ C*)                       # Sun C 5.9
18521           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18522           compiler_needs_object_F77=yes
18523           tmp_sharedflag='-G' ;;
18524         *Sun\ F*)                       # Sun Fortran 8.3
18525           tmp_sharedflag='-G' ;;
18526         esac
18527         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18528
18529         if test "x$supports_anon_versioning" = xyes; then
18530           archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
18531             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18532             echo "local: *; };" >> $output_objdir/$libname.ver~
18533             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18534         fi
18535
18536         case $cc_basename in
18537         xlf*)
18538           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18539           whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
18540           hardcode_libdir_flag_spec_F77=
18541           hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18542           archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18543           if test "x$supports_anon_versioning" = xyes; then
18544             archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
18545               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18546               echo "local: *; };" >> $output_objdir/$libname.ver~
18547               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18548           fi
18549           ;;
18550         esac
18551       else
18552         ld_shlibs_F77=no
18553       fi
18554       ;;
18555
18556     netbsd* | netbsdelf*-gnu)
18557       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18558         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18559         wlarc=
18560       else
18561         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18562         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18563       fi
18564       ;;
18565
18566     solaris*)
18567       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18568         ld_shlibs_F77=no
18569         cat <<_LT_EOF 1>&2
18570
18571 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18572 *** create shared libraries on Solaris systems.  Therefore, libtool
18573 *** is disabling shared libraries support.  We urge you to upgrade GNU
18574 *** binutils to release 2.9.1 or newer.  Another option is to modify
18575 *** your PATH or compiler configuration so that the native linker is
18576 *** used, and then restart.
18577
18578 _LT_EOF
18579       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18580         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18581         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18582       else
18583         ld_shlibs_F77=no
18584       fi
18585       ;;
18586
18587     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18588       case `$LD -v 2>&1` in
18589         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18590         ld_shlibs_F77=no
18591         cat <<_LT_EOF 1>&2
18592
18593 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18594 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18595 *** is disabling shared libraries support.  We urge you to upgrade GNU
18596 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18597 *** your PATH or compiler configuration so that the native linker is
18598 *** used, and then restart.
18599
18600 _LT_EOF
18601         ;;
18602         *)
18603           # For security reasons, it is highly recommended that you always
18604           # use absolute paths for naming shared libraries, and exclude the
18605           # DT_RUNPATH tag from executables and libraries.  But doing so
18606           # requires that you compile everything twice, which is a pain.
18607           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18608             hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18609             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18610             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18611           else
18612             ld_shlibs_F77=no
18613           fi
18614         ;;
18615       esac
18616       ;;
18617
18618     sunos4*)
18619       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18620       wlarc=
18621       hardcode_direct_F77=yes
18622       hardcode_shlibpath_var_F77=no
18623       ;;
18624
18625     *)
18626       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18627         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18628         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18629       else
18630         ld_shlibs_F77=no
18631       fi
18632       ;;
18633     esac
18634
18635     if test "$ld_shlibs_F77" = no; then
18636       runpath_var=
18637       hardcode_libdir_flag_spec_F77=
18638       export_dynamic_flag_spec_F77=
18639       whole_archive_flag_spec_F77=
18640     fi
18641   else
18642     # PORTME fill in a description of your system's linker (not GNU ld)
18643     case $host_os in
18644     aix3*)
18645       allow_undefined_flag_F77=unsupported
18646       always_export_symbols_F77=yes
18647       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'
18648       # Note: this linker hardcodes the directories in LIBPATH if there
18649       # are no directories specified by -L.
18650       hardcode_minus_L_F77=yes
18651       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18652         # Neither direct hardcoding nor static linking is supported with a
18653         # broken collect2.
18654         hardcode_direct_F77=unsupported
18655       fi
18656       ;;
18657
18658     aix[4-9]*)
18659       if test "$host_cpu" = ia64; then
18660         # On IA64, the linker does run time linking by default, so we don't
18661         # have to do anything special.
18662         aix_use_runtimelinking=no
18663         exp_sym_flag='-Bexport'
18664         no_entry_flag=""
18665       else
18666         # If we're using GNU nm, then we don't want the "-C" option.
18667         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18668         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18669           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'
18670         else
18671           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'
18672         fi
18673         aix_use_runtimelinking=no
18674
18675         # Test if we are trying to use run time linking or normal
18676         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18677         # need to do runtime linking.
18678         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18679           for ld_flag in $LDFLAGS; do
18680           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18681             aix_use_runtimelinking=yes
18682             break
18683           fi
18684           done
18685           ;;
18686         esac
18687
18688         exp_sym_flag='-bexport'
18689         no_entry_flag='-bnoentry'
18690       fi
18691
18692       # When large executables or shared objects are built, AIX ld can
18693       # have problems creating the table of contents.  If linking a library
18694       # or program results in "error TOC overflow" add -mminimal-toc to
18695       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18696       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18697
18698       archive_cmds_F77=''
18699       hardcode_direct_F77=yes
18700       hardcode_direct_absolute_F77=yes
18701       hardcode_libdir_separator_F77=':'
18702       link_all_deplibs_F77=yes
18703       file_list_spec_F77='${wl}-f,'
18704
18705       if test "$GCC" = yes; then
18706         case $host_os in aix4.[012]|aix4.[012].*)
18707         # We only want to do this on AIX 4.2 and lower, the check
18708         # below for broken collect2 doesn't work under 4.3+
18709           collect2name=`${CC} -print-prog-name=collect2`
18710           if test -f "$collect2name" &&
18711            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18712           then
18713           # We have reworked collect2
18714           :
18715           else
18716           # We have old collect2
18717           hardcode_direct_F77=unsupported
18718           # It fails to find uninstalled libraries when the uninstalled
18719           # path is not listed in the libpath.  Setting hardcode_minus_L
18720           # to unsupported forces relinking
18721           hardcode_minus_L_F77=yes
18722           hardcode_libdir_flag_spec_F77='-L$libdir'
18723           hardcode_libdir_separator_F77=
18724           fi
18725           ;;
18726         esac
18727         shared_flag='-shared'
18728         if test "$aix_use_runtimelinking" = yes; then
18729           shared_flag="$shared_flag "'${wl}-G'
18730         fi
18731         link_all_deplibs_F77=no
18732       else
18733         # not using gcc
18734         if test "$host_cpu" = ia64; then
18735         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18736         # chokes on -Wl,-G. The following line is correct:
18737           shared_flag='-G'
18738         else
18739           if test "$aix_use_runtimelinking" = yes; then
18740             shared_flag='${wl}-G'
18741           else
18742             shared_flag='${wl}-bM:SRE'
18743           fi
18744         fi
18745       fi
18746
18747       export_dynamic_flag_spec_F77='${wl}-bexpall'
18748       # It seems that -bexpall does not export symbols beginning with
18749       # underscore (_), so it is better to generate a list of symbols to export.
18750       always_export_symbols_F77=yes
18751       if test "$aix_use_runtimelinking" = yes; then
18752         # Warning - without using the other runtime loading flags (-brtl),
18753         # -berok will link without error, but may produce a broken library.
18754         allow_undefined_flag_F77='-berok'
18755         # Determine the default libpath from the value encoded in an
18756         # empty executable.
18757         cat > conftest.$ac_ext <<_ACEOF
18758       program main
18759
18760       end
18761 _ACEOF
18762 if ac_fn_f77_try_link "$LINENO"; then :
18763
18764 lt_aix_libpath_sed='
18765     /Import File Strings/,/^$/ {
18766         /^0/ {
18767             s/^0  *\(.*\)$/\1/
18768             p
18769         }
18770     }'
18771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18772 # Check for a 64-bit object if we didn't find anything.
18773 if test -z "$aix_libpath"; then
18774   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18775 fi
18776 fi
18777 rm -f core conftest.err conftest.$ac_objext \
18778     conftest$ac_exeext conftest.$ac_ext
18779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18780
18781         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18782         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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18783       else
18784         if test "$host_cpu" = ia64; then
18785           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18786           allow_undefined_flag_F77="-z nodefs"
18787           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"
18788         else
18789          # Determine the default libpath from the value encoded in an
18790          # empty executable.
18791          cat > conftest.$ac_ext <<_ACEOF
18792       program main
18793
18794       end
18795 _ACEOF
18796 if ac_fn_f77_try_link "$LINENO"; then :
18797
18798 lt_aix_libpath_sed='
18799     /Import File Strings/,/^$/ {
18800         /^0/ {
18801             s/^0  *\(.*\)$/\1/
18802             p
18803         }
18804     }'
18805 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18806 # Check for a 64-bit object if we didn't find anything.
18807 if test -z "$aix_libpath"; then
18808   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18809 fi
18810 fi
18811 rm -f core conftest.err conftest.$ac_objext \
18812     conftest$ac_exeext conftest.$ac_ext
18813 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18814
18815          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18816           # Warning - without using the other run time loading flags,
18817           # -berok will link without error, but may produce a broken library.
18818           no_undefined_flag_F77=' ${wl}-bernotok'
18819           allow_undefined_flag_F77=' ${wl}-berok'
18820           # Exported symbols can be pulled into shared objects from archives
18821           whole_archive_flag_spec_F77='$convenience'
18822           archive_cmds_need_lc_F77=yes
18823           # This is similar to how AIX traditionally builds its shared libraries.
18824           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'
18825         fi
18826       fi
18827       ;;
18828
18829     amigaos*)
18830       case $host_cpu in
18831       powerpc)
18832             # see comment about AmigaOS4 .so support
18833             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18834             archive_expsym_cmds_F77=''
18835         ;;
18836       m68k)
18837             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)'
18838             hardcode_libdir_flag_spec_F77='-L$libdir'
18839             hardcode_minus_L_F77=yes
18840         ;;
18841       esac
18842       ;;
18843
18844     bsdi[45]*)
18845       export_dynamic_flag_spec_F77=-rdynamic
18846       ;;
18847
18848     cygwin* | mingw* | pw32* | cegcc*)
18849       # When not using gcc, we currently assume that we are using
18850       # Microsoft Visual C++.
18851       # hardcode_libdir_flag_spec is actually meaningless, as there is
18852       # no search path for DLLs.
18853       hardcode_libdir_flag_spec_F77=' '
18854       allow_undefined_flag_F77=unsupported
18855       # Tell ltmain to make .lib files, not .a files.
18856       libext=lib
18857       # Tell ltmain to make .dll files, not .so files.
18858       shrext_cmds=".dll"
18859       # FIXME: Setting linknames here is a bad hack.
18860       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18861       # The linker will automatically build a .lib file if we build a DLL.
18862       old_archive_from_new_cmds_F77='true'
18863       # FIXME: Should let the user specify the lib program.
18864       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
18865       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
18866       enable_shared_with_static_runtimes_F77=yes
18867       ;;
18868
18869     darwin* | rhapsody*)
18870
18871
18872   archive_cmds_need_lc_F77=no
18873   hardcode_direct_F77=no
18874   hardcode_automatic_F77=yes
18875   hardcode_shlibpath_var_F77=unsupported
18876   whole_archive_flag_spec_F77=''
18877   link_all_deplibs_F77=yes
18878   allow_undefined_flag_F77="$_lt_dar_allow_undefined"
18879   case $cc_basename in
18880      ifort*) _lt_dar_can_shared=yes ;;
18881      *) _lt_dar_can_shared=$GCC ;;
18882   esac
18883   if test "$_lt_dar_can_shared" = "yes"; then
18884     output_verbose_link_cmd=echo
18885     archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18886     module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18887     archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18888     module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18889
18890   else
18891   ld_shlibs_F77=no
18892   fi
18893
18894       ;;
18895
18896     dgux*)
18897       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18898       hardcode_libdir_flag_spec_F77='-L$libdir'
18899       hardcode_shlibpath_var_F77=no
18900       ;;
18901
18902     freebsd1*)
18903       ld_shlibs_F77=no
18904       ;;
18905
18906     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18907     # support.  Future versions do this automatically, but an explicit c++rt0.o
18908     # does not break anything, and helps significantly (at the cost of a little
18909     # extra space).
18910     freebsd2.2*)
18911       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18912       hardcode_libdir_flag_spec_F77='-R$libdir'
18913       hardcode_direct_F77=yes
18914       hardcode_shlibpath_var_F77=no
18915       ;;
18916
18917     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18918     freebsd2*)
18919       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18920       hardcode_direct_F77=yes
18921       hardcode_minus_L_F77=yes
18922       hardcode_shlibpath_var_F77=no
18923       ;;
18924
18925     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18926     freebsd* | dragonfly*)
18927       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18928       hardcode_libdir_flag_spec_F77='-R$libdir'
18929       hardcode_direct_F77=yes
18930       hardcode_shlibpath_var_F77=no
18931       ;;
18932
18933     hpux9*)
18934       if test "$GCC" = yes; then
18935         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'
18936       else
18937         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'
18938       fi
18939       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18940       hardcode_libdir_separator_F77=:
18941       hardcode_direct_F77=yes
18942
18943       # hardcode_minus_L: Not really in the search PATH,
18944       # but as the default location of the library.
18945       hardcode_minus_L_F77=yes
18946       export_dynamic_flag_spec_F77='${wl}-E'
18947       ;;
18948
18949     hpux10*)
18950       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18951         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18952       else
18953         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18954       fi
18955       if test "$with_gnu_ld" = no; then
18956         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18957         hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18958         hardcode_libdir_separator_F77=:
18959         hardcode_direct_F77=yes
18960         hardcode_direct_absolute_F77=yes
18961         export_dynamic_flag_spec_F77='${wl}-E'
18962         # hardcode_minus_L: Not really in the search PATH,
18963         # but as the default location of the library.
18964         hardcode_minus_L_F77=yes
18965       fi
18966       ;;
18967
18968     hpux11*)
18969       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18970         case $host_cpu in
18971         hppa*64*)
18972           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18973           ;;
18974         ia64*)
18975           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18976           ;;
18977         *)
18978           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18979           ;;
18980         esac
18981       else
18982         case $host_cpu in
18983         hppa*64*)
18984           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18985           ;;
18986         ia64*)
18987           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18988           ;;
18989         *)
18990           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18991           ;;
18992         esac
18993       fi
18994       if test "$with_gnu_ld" = no; then
18995         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18996         hardcode_libdir_separator_F77=:
18997
18998         case $host_cpu in
18999         hppa*64*|ia64*)
19000           hardcode_direct_F77=no
19001           hardcode_shlibpath_var_F77=no
19002           ;;
19003         *)
19004           hardcode_direct_F77=yes
19005           hardcode_direct_absolute_F77=yes
19006           export_dynamic_flag_spec_F77='${wl}-E'
19007
19008           # hardcode_minus_L: Not really in the search PATH,
19009           # but as the default location of the library.
19010           hardcode_minus_L_F77=yes
19011           ;;
19012         esac
19013       fi
19014       ;;
19015
19016     irix5* | irix6* | nonstopux*)
19017       if test "$GCC" = yes; then
19018         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19019         # Try to use the -exported_symbol ld option, if it does not
19020         # work, assume that -exports_file does not work either and
19021         # implicitly export all symbols.
19022         save_LDFLAGS="$LDFLAGS"
19023         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19024         cat > conftest.$ac_ext <<_ACEOF
19025 int foo(void) {}
19026 _ACEOF
19027 if ac_fn_f77_try_link "$LINENO"; then :
19028   archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
19029
19030 fi
19031 rm -f core conftest.err conftest.$ac_objext \
19032     conftest$ac_exeext conftest.$ac_ext
19033         LDFLAGS="$save_LDFLAGS"
19034       else
19035         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19036         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
19037       fi
19038       archive_cmds_need_lc_F77='no'
19039       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19040       hardcode_libdir_separator_F77=:
19041       inherit_rpath_F77=yes
19042       link_all_deplibs_F77=yes
19043       ;;
19044
19045     netbsd* | netbsdelf*-gnu)
19046       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19047         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19048       else
19049         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19050       fi
19051       hardcode_libdir_flag_spec_F77='-R$libdir'
19052       hardcode_direct_F77=yes
19053       hardcode_shlibpath_var_F77=no
19054       ;;
19055
19056     newsos6)
19057       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19058       hardcode_direct_F77=yes
19059       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19060       hardcode_libdir_separator_F77=:
19061       hardcode_shlibpath_var_F77=no
19062       ;;
19063
19064     *nto* | *qnx*)
19065       ;;
19066
19067     openbsd*)
19068       if test -f /usr/libexec/ld.so; then
19069         hardcode_direct_F77=yes
19070         hardcode_shlibpath_var_F77=no
19071         hardcode_direct_absolute_F77=yes
19072         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19073           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19074           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19075           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19076           export_dynamic_flag_spec_F77='${wl}-E'
19077         else
19078           case $host_os in
19079            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19080              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19081              hardcode_libdir_flag_spec_F77='-R$libdir'
19082              ;;
19083            *)
19084              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19085              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19086              ;;
19087           esac
19088         fi
19089       else
19090         ld_shlibs_F77=no
19091       fi
19092       ;;
19093
19094     os2*)
19095       hardcode_libdir_flag_spec_F77='-L$libdir'
19096       hardcode_minus_L_F77=yes
19097       allow_undefined_flag_F77=unsupported
19098       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'
19099       old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19100       ;;
19101
19102     osf3*)
19103       if test "$GCC" = yes; then
19104         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19105         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19106       else
19107         allow_undefined_flag_F77=' -expect_unresolved \*'
19108         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19109       fi
19110       archive_cmds_need_lc_F77='no'
19111       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19112       hardcode_libdir_separator_F77=:
19113       ;;
19114
19115     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19116       if test "$GCC" = yes; then
19117         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19118         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19119         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19120       else
19121         allow_undefined_flag_F77=' -expect_unresolved \*'
19122         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19123         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
19124         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
19125
19126         # Both c and cxx compiler support -rpath directly
19127         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19128       fi
19129       archive_cmds_need_lc_F77='no'
19130       hardcode_libdir_separator_F77=:
19131       ;;
19132
19133     solaris*)
19134       no_undefined_flag_F77=' -z defs'
19135       if test "$GCC" = yes; then
19136         wlarc='${wl}'
19137         archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19138         archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19139           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19140       else
19141         case `$CC -V 2>&1` in
19142         *"Compilers 5.0"*)
19143           wlarc=''
19144           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19145           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19146           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19147           ;;
19148         *)
19149           wlarc='${wl}'
19150           archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19151           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19152           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19153           ;;
19154         esac
19155       fi
19156       hardcode_libdir_flag_spec_F77='-R$libdir'
19157       hardcode_shlibpath_var_F77=no
19158       case $host_os in
19159       solaris2.[0-5] | solaris2.[0-5].*) ;;
19160       *)
19161         # The compiler driver will combine and reorder linker options,
19162         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19163         # but is careful enough not to reorder.
19164         # Supported since Solaris 2.6 (maybe 2.5.1?)
19165         if test "$GCC" = yes; then
19166           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19167         else
19168           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
19169         fi
19170         ;;
19171       esac
19172       link_all_deplibs_F77=yes
19173       ;;
19174
19175     sunos4*)
19176       if test "x$host_vendor" = xsequent; then
19177         # Use $CC to link under sequent, because it throws in some extra .o
19178         # files that make .init and .fini sections work.
19179         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19180       else
19181         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19182       fi
19183       hardcode_libdir_flag_spec_F77='-L$libdir'
19184       hardcode_direct_F77=yes
19185       hardcode_minus_L_F77=yes
19186       hardcode_shlibpath_var_F77=no
19187       ;;
19188
19189     sysv4)
19190       case $host_vendor in
19191         sni)
19192           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19193           hardcode_direct_F77=yes # is this really true???
19194         ;;
19195         siemens)
19196           ## LD is ld it makes a PLAMLIB
19197           ## CC just makes a GrossModule.
19198           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19199           reload_cmds_F77='$CC -r -o $output$reload_objs'
19200           hardcode_direct_F77=no
19201         ;;
19202         motorola)
19203           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19204           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19205         ;;
19206       esac
19207       runpath_var='LD_RUN_PATH'
19208       hardcode_shlibpath_var_F77=no
19209       ;;
19210
19211     sysv4.3*)
19212       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19213       hardcode_shlibpath_var_F77=no
19214       export_dynamic_flag_spec_F77='-Bexport'
19215       ;;
19216
19217     sysv4*MP*)
19218       if test -d /usr/nec; then
19219         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19220         hardcode_shlibpath_var_F77=no
19221         runpath_var=LD_RUN_PATH
19222         hardcode_runpath_var=yes
19223         ld_shlibs_F77=yes
19224       fi
19225       ;;
19226
19227     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19228       no_undefined_flag_F77='${wl}-z,text'
19229       archive_cmds_need_lc_F77=no
19230       hardcode_shlibpath_var_F77=no
19231       runpath_var='LD_RUN_PATH'
19232
19233       if test "$GCC" = yes; then
19234         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19235         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19236       else
19237         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19238         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19239       fi
19240       ;;
19241
19242     sysv5* | sco3.2v5* | sco5v6*)
19243       # Note: We can NOT use -z defs as we might desire, because we do not
19244       # link with -lc, and that would cause any symbols used from libc to
19245       # always be unresolved, which means just about no library would
19246       # ever link correctly.  If we're not using GNU ld we use -z text
19247       # though, which does catch some bad symbols but isn't as heavy-handed
19248       # as -z defs.
19249       no_undefined_flag_F77='${wl}-z,text'
19250       allow_undefined_flag_F77='${wl}-z,nodefs'
19251       archive_cmds_need_lc_F77=no
19252       hardcode_shlibpath_var_F77=no
19253       hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
19254       hardcode_libdir_separator_F77=':'
19255       link_all_deplibs_F77=yes
19256       export_dynamic_flag_spec_F77='${wl}-Bexport'
19257       runpath_var='LD_RUN_PATH'
19258
19259       if test "$GCC" = yes; then
19260         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19261         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19262       else
19263         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19264         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19265       fi
19266       ;;
19267
19268     uts4*)
19269       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19270       hardcode_libdir_flag_spec_F77='-L$libdir'
19271       hardcode_shlibpath_var_F77=no
19272       ;;
19273
19274     *)
19275       ld_shlibs_F77=no
19276       ;;
19277     esac
19278
19279     if test x$host_vendor = xsni; then
19280       case $host in
19281       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19282         export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
19283         ;;
19284       esac
19285     fi
19286   fi
19287
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
19289 $as_echo "$ld_shlibs_F77" >&6; }
19290 test "$ld_shlibs_F77" = no && can_build_shared=no
19291
19292 with_gnu_ld_F77=$with_gnu_ld
19293
19294
19295
19296
19297
19298
19299 #
19300 # Do we need to explicitly link libc?
19301 #
19302 case "x$archive_cmds_need_lc_F77" in
19303 x|xyes)
19304   # Assume -lc should be added
19305   archive_cmds_need_lc_F77=yes
19306
19307   if test "$enable_shared" = yes && test "$GCC" = yes; then
19308     case $archive_cmds_F77 in
19309     *'~'*)
19310       # FIXME: we may have to deal with multi-command sequences.
19311       ;;
19312     '$CC '*)
19313       # Test whether the compiler implicitly links with -lc since on some
19314       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19315       # to ld, don't add -lc before -lgcc.
19316       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19317 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19318       $RM conftest*
19319       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19320
19321       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19322   (eval $ac_compile) 2>&5
19323   ac_status=$?
19324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19325   test $ac_status = 0; } 2>conftest.err; then
19326         soname=conftest
19327         lib=conftest
19328         libobjs=conftest.$ac_objext
19329         deplibs=
19330         wl=$lt_prog_compiler_wl_F77
19331         pic_flag=$lt_prog_compiler_pic_F77
19332         compiler_flags=-v
19333         linker_flags=-v
19334         verstring=
19335         output_objdir=.
19336         libname=conftest
19337         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19338         allow_undefined_flag_F77=
19339         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19340   (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19341   ac_status=$?
19342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19343   test $ac_status = 0; }
19344         then
19345           archive_cmds_need_lc_F77=no
19346         else
19347           archive_cmds_need_lc_F77=yes
19348         fi
19349         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19350       else
19351         cat conftest.err 1>&5
19352       fi
19353       $RM conftest*
19354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
19355 $as_echo "$archive_cmds_need_lc_F77" >&6; }
19356       ;;
19357     esac
19358   fi
19359   ;;
19360 esac
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19426 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19427
19428 library_names_spec=
19429 libname_spec='lib$name'
19430 soname_spec=
19431 shrext_cmds=".so"
19432 postinstall_cmds=
19433 postuninstall_cmds=
19434 finish_cmds=
19435 finish_eval=
19436 shlibpath_var=
19437 shlibpath_overrides_runpath=unknown
19438 version_type=none
19439 dynamic_linker="$host_os ld.so"
19440 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19441 need_lib_prefix=unknown
19442 hardcode_into_libs=no
19443
19444 # when you set need_version to no, make sure it does not cause -set_version
19445 # flags to be left without arguments
19446 need_version=unknown
19447
19448 case $host_os in
19449 aix3*)
19450   version_type=linux
19451   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19452   shlibpath_var=LIBPATH
19453
19454   # AIX 3 has no versioning support, so we append a major version to the name.
19455   soname_spec='${libname}${release}${shared_ext}$major'
19456   ;;
19457
19458 aix[4-9]*)
19459   version_type=linux
19460   need_lib_prefix=no
19461   need_version=no
19462   hardcode_into_libs=yes
19463   if test "$host_cpu" = ia64; then
19464     # AIX 5 supports IA64
19465     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19466     shlibpath_var=LD_LIBRARY_PATH
19467   else
19468     # With GCC up to 2.95.x, collect2 would create an import file
19469     # for dependence libraries.  The import file would start with
19470     # the line `#! .'.  This would cause the generated library to
19471     # depend on `.', always an invalid library.  This was fixed in
19472     # development snapshots of GCC prior to 3.0.
19473     case $host_os in
19474       aix4 | aix4.[01] | aix4.[01].*)
19475       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19476            echo ' yes '
19477            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19478         :
19479       else
19480         can_build_shared=no
19481       fi
19482       ;;
19483     esac
19484     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19485     # soname into executable. Probably we can add versioning support to
19486     # collect2, so additional links can be useful in future.
19487     if test "$aix_use_runtimelinking" = yes; then
19488       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19489       # instead of lib<name>.a to let people know that these are not
19490       # typical AIX shared libraries.
19491       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19492     else
19493       # We preserve .a as extension for shared libraries through AIX4.2
19494       # and later when we are not doing run time linking.
19495       library_names_spec='${libname}${release}.a $libname.a'
19496       soname_spec='${libname}${release}${shared_ext}$major'
19497     fi
19498     shlibpath_var=LIBPATH
19499   fi
19500   ;;
19501
19502 amigaos*)
19503   case $host_cpu in
19504   powerpc)
19505     # Since July 2007 AmigaOS4 officially supports .so libraries.
19506     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19508     ;;
19509   m68k)
19510     library_names_spec='$libname.ixlibrary $libname.a'
19511     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19512     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'
19513     ;;
19514   esac
19515   ;;
19516
19517 beos*)
19518   library_names_spec='${libname}${shared_ext}'
19519   dynamic_linker="$host_os ld.so"
19520   shlibpath_var=LIBRARY_PATH
19521   ;;
19522
19523 bsdi[45]*)
19524   version_type=linux
19525   need_version=no
19526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19527   soname_spec='${libname}${release}${shared_ext}$major'
19528   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19529   shlibpath_var=LD_LIBRARY_PATH
19530   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19531   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19532   # the default ld.so.conf also contains /usr/contrib/lib and
19533   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19534   # libtool to hard-code these into programs
19535   ;;
19536
19537 cygwin* | mingw* | pw32* | cegcc*)
19538   version_type=windows
19539   shrext_cmds=".dll"
19540   need_version=no
19541   need_lib_prefix=no
19542
19543   case $GCC,$host_os in
19544   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19545     library_names_spec='$libname.dll.a'
19546     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19547     postinstall_cmds='base_file=`basename \${file}`~
19548       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19549       dldir=$destdir/`dirname \$dlpath`~
19550       test -d \$dldir || mkdir -p \$dldir~
19551       $install_prog $dir/$dlname \$dldir/$dlname~
19552       chmod a+x \$dldir/$dlname~
19553       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19554         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19555       fi'
19556     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19557       dlpath=$dir/\$dldll~
19558        $RM \$dlpath'
19559     shlibpath_overrides_runpath=yes
19560
19561     case $host_os in
19562     cygwin*)
19563       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19564       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19565       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19566       ;;
19567     mingw* | cegcc*)
19568       # MinGW DLLs use traditional 'lib' prefix
19569       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19570       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19571       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19572         # It is most probably a Windows format PATH printed by
19573         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19574         # path with ; separators, and with drive letters. We can handle the
19575         # drive letters (cygwin fileutils understands them), so leave them,
19576         # especially as we might pass files found there to a mingw objdump,
19577         # which wouldn't understand a cygwinified path. Ahh.
19578         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19579       else
19580         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19581       fi
19582       ;;
19583     pw32*)
19584       # pw32 DLLs use 'pw' prefix rather than 'lib'
19585       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19586       ;;
19587     esac
19588     ;;
19589
19590   *)
19591     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19592     ;;
19593   esac
19594   dynamic_linker='Win32 ld.exe'
19595   # FIXME: first we should search . and the directory the executable is in
19596   shlibpath_var=PATH
19597   ;;
19598
19599 darwin* | rhapsody*)
19600   dynamic_linker="$host_os dyld"
19601   version_type=darwin
19602   need_lib_prefix=no
19603   need_version=no
19604   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19605   soname_spec='${libname}${release}${major}$shared_ext'
19606   shlibpath_overrides_runpath=yes
19607   shlibpath_var=DYLD_LIBRARY_PATH
19608   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19609
19610   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19611   ;;
19612
19613 dgux*)
19614   version_type=linux
19615   need_lib_prefix=no
19616   need_version=no
19617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19618   soname_spec='${libname}${release}${shared_ext}$major'
19619   shlibpath_var=LD_LIBRARY_PATH
19620   ;;
19621
19622 freebsd1*)
19623   dynamic_linker=no
19624   ;;
19625
19626 freebsd* | dragonfly*)
19627   # DragonFly does not have aout.  When/if they implement a new
19628   # versioning mechanism, adjust this.
19629   if test -x /usr/bin/objformat; then
19630     objformat=`/usr/bin/objformat`
19631   else
19632     case $host_os in
19633     freebsd[123]*) objformat=aout ;;
19634     *) objformat=elf ;;
19635     esac
19636   fi
19637   version_type=freebsd-$objformat
19638   case $version_type in
19639     freebsd-elf*)
19640       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19641       need_version=no
19642       need_lib_prefix=no
19643       ;;
19644     freebsd-*)
19645       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19646       need_version=yes
19647       ;;
19648   esac
19649   shlibpath_var=LD_LIBRARY_PATH
19650   case $host_os in
19651   freebsd2*)
19652     shlibpath_overrides_runpath=yes
19653     ;;
19654   freebsd3.[01]* | freebsdelf3.[01]*)
19655     shlibpath_overrides_runpath=yes
19656     hardcode_into_libs=yes
19657     ;;
19658   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19659   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19660     shlibpath_overrides_runpath=no
19661     hardcode_into_libs=yes
19662     ;;
19663   *) # from 4.6 on, and DragonFly
19664     shlibpath_overrides_runpath=yes
19665     hardcode_into_libs=yes
19666     ;;
19667   esac
19668   ;;
19669
19670 gnu*)
19671   version_type=linux
19672   need_lib_prefix=no
19673   need_version=no
19674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19675   soname_spec='${libname}${release}${shared_ext}$major'
19676   shlibpath_var=LD_LIBRARY_PATH
19677   hardcode_into_libs=yes
19678   ;;
19679
19680 hpux9* | hpux10* | hpux11*)
19681   # Give a soname corresponding to the major version so that dld.sl refuses to
19682   # link against other versions.
19683   version_type=sunos
19684   need_lib_prefix=no
19685   need_version=no
19686   case $host_cpu in
19687   ia64*)
19688     shrext_cmds='.so'
19689     hardcode_into_libs=yes
19690     dynamic_linker="$host_os dld.so"
19691     shlibpath_var=LD_LIBRARY_PATH
19692     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19693     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19694     soname_spec='${libname}${release}${shared_ext}$major'
19695     if test "X$HPUX_IA64_MODE" = X32; then
19696       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19697     else
19698       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19699     fi
19700     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19701     ;;
19702   hppa*64*)
19703     shrext_cmds='.sl'
19704     hardcode_into_libs=yes
19705     dynamic_linker="$host_os dld.sl"
19706     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19707     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19708     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19709     soname_spec='${libname}${release}${shared_ext}$major'
19710     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19711     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19712     ;;
19713   *)
19714     shrext_cmds='.sl'
19715     dynamic_linker="$host_os dld.sl"
19716     shlibpath_var=SHLIB_PATH
19717     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19718     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19719     soname_spec='${libname}${release}${shared_ext}$major'
19720     ;;
19721   esac
19722   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19723   postinstall_cmds='chmod 555 $lib'
19724   ;;
19725
19726 interix[3-9]*)
19727   version_type=linux
19728   need_lib_prefix=no
19729   need_version=no
19730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19731   soname_spec='${libname}${release}${shared_ext}$major'
19732   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19733   shlibpath_var=LD_LIBRARY_PATH
19734   shlibpath_overrides_runpath=no
19735   hardcode_into_libs=yes
19736   ;;
19737
19738 irix5* | irix6* | nonstopux*)
19739   case $host_os in
19740     nonstopux*) version_type=nonstopux ;;
19741     *)
19742         if test "$lt_cv_prog_gnu_ld" = yes; then
19743                 version_type=linux
19744         else
19745                 version_type=irix
19746         fi ;;
19747   esac
19748   need_lib_prefix=no
19749   need_version=no
19750   soname_spec='${libname}${release}${shared_ext}$major'
19751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19752   case $host_os in
19753   irix5* | nonstopux*)
19754     libsuff= shlibsuff=
19755     ;;
19756   *)
19757     case $LD in # libtool.m4 will add one of these switches to LD
19758     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19759       libsuff= shlibsuff= libmagic=32-bit;;
19760     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19761       libsuff=32 shlibsuff=N32 libmagic=N32;;
19762     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19763       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19764     *) libsuff= shlibsuff= libmagic=never-match;;
19765     esac
19766     ;;
19767   esac
19768   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19769   shlibpath_overrides_runpath=no
19770   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19771   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19772   hardcode_into_libs=yes
19773   ;;
19774
19775 # No shared lib support for Linux oldld, aout, or coff.
19776 linux*oldld* | linux*aout* | linux*coff*)
19777   dynamic_linker=no
19778   ;;
19779
19780 # This must be Linux ELF.
19781 linux* | k*bsd*-gnu)
19782   version_type=linux
19783   need_lib_prefix=no
19784   need_version=no
19785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19786   soname_spec='${libname}${release}${shared_ext}$major'
19787   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19788   shlibpath_var=LD_LIBRARY_PATH
19789   shlibpath_overrides_runpath=no
19790   # Some binutils ld are patched to set DT_RUNPATH
19791   save_LDFLAGS=$LDFLAGS
19792   save_libdir=$libdir
19793   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
19794        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
19795   cat > conftest.$ac_ext <<_ACEOF
19796       program main
19797
19798       end
19799 _ACEOF
19800 if ac_fn_f77_try_link "$LINENO"; then :
19801   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19802   shlibpath_overrides_runpath=yes
19803 fi
19804 fi
19805 rm -f core conftest.err conftest.$ac_objext \
19806     conftest$ac_exeext conftest.$ac_ext
19807   LDFLAGS=$save_LDFLAGS
19808   libdir=$save_libdir
19809
19810   # This implies no fast_install, which is unacceptable.
19811   # Some rework will be needed to allow for fast_install
19812   # before this can be enabled.
19813   hardcode_into_libs=yes
19814
19815   # Append ld.so.conf contents to the search path
19816   if test -f /etc/ld.so.conf; then
19817     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19818     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19819   fi
19820
19821   # We used to test for /lib/ld.so.1 and disable shared libraries on
19822   # powerpc, because MkLinux only supported shared libraries with the
19823   # GNU dynamic linker.  Since this was broken with cross compilers,
19824   # most powerpc-linux boxes support dynamic linking these days and
19825   # people can always --disable-shared, the test was removed, and we
19826   # assume the GNU/Linux dynamic linker is in use.
19827   dynamic_linker='GNU/Linux ld.so'
19828   ;;
19829
19830 netbsdelf*-gnu)
19831   version_type=linux
19832   need_lib_prefix=no
19833   need_version=no
19834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19835   soname_spec='${libname}${release}${shared_ext}$major'
19836   shlibpath_var=LD_LIBRARY_PATH
19837   shlibpath_overrides_runpath=no
19838   hardcode_into_libs=yes
19839   dynamic_linker='NetBSD ld.elf_so'
19840   ;;
19841
19842 netbsd*)
19843   version_type=sunos
19844   need_lib_prefix=no
19845   need_version=no
19846   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19848     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19849     dynamic_linker='NetBSD (a.out) ld.so'
19850   else
19851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19852     soname_spec='${libname}${release}${shared_ext}$major'
19853     dynamic_linker='NetBSD ld.elf_so'
19854   fi
19855   shlibpath_var=LD_LIBRARY_PATH
19856   shlibpath_overrides_runpath=yes
19857   hardcode_into_libs=yes
19858   ;;
19859
19860 newsos6)
19861   version_type=linux
19862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19863   shlibpath_var=LD_LIBRARY_PATH
19864   shlibpath_overrides_runpath=yes
19865   ;;
19866
19867 *nto* | *qnx*)
19868   version_type=qnx
19869   need_lib_prefix=no
19870   need_version=no
19871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19872   soname_spec='${libname}${release}${shared_ext}$major'
19873   shlibpath_var=LD_LIBRARY_PATH
19874   shlibpath_overrides_runpath=no
19875   hardcode_into_libs=yes
19876   dynamic_linker='ldqnx.so'
19877   ;;
19878
19879 openbsd*)
19880   version_type=sunos
19881   sys_lib_dlsearch_path_spec="/usr/lib"
19882   need_lib_prefix=no
19883   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19884   case $host_os in
19885     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19886     *)                          need_version=no  ;;
19887   esac
19888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19889   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19890   shlibpath_var=LD_LIBRARY_PATH
19891   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19892     case $host_os in
19893       openbsd2.[89] | openbsd2.[89].*)
19894         shlibpath_overrides_runpath=no
19895         ;;
19896       *)
19897         shlibpath_overrides_runpath=yes
19898         ;;
19899       esac
19900   else
19901     shlibpath_overrides_runpath=yes
19902   fi
19903   ;;
19904
19905 os2*)
19906   libname_spec='$name'
19907   shrext_cmds=".dll"
19908   need_lib_prefix=no
19909   library_names_spec='$libname${shared_ext} $libname.a'
19910   dynamic_linker='OS/2 ld.exe'
19911   shlibpath_var=LIBPATH
19912   ;;
19913
19914 osf3* | osf4* | osf5*)
19915   version_type=osf
19916   need_lib_prefix=no
19917   need_version=no
19918   soname_spec='${libname}${release}${shared_ext}$major'
19919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19920   shlibpath_var=LD_LIBRARY_PATH
19921   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19922   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19923   ;;
19924
19925 rdos*)
19926   dynamic_linker=no
19927   ;;
19928
19929 solaris*)
19930   version_type=linux
19931   need_lib_prefix=no
19932   need_version=no
19933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19934   soname_spec='${libname}${release}${shared_ext}$major'
19935   shlibpath_var=LD_LIBRARY_PATH
19936   shlibpath_overrides_runpath=yes
19937   hardcode_into_libs=yes
19938   # ldd complains unless libraries are executable
19939   postinstall_cmds='chmod +x $lib'
19940   ;;
19941
19942 sunos4*)
19943   version_type=sunos
19944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19945   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19946   shlibpath_var=LD_LIBRARY_PATH
19947   shlibpath_overrides_runpath=yes
19948   if test "$with_gnu_ld" = yes; then
19949     need_lib_prefix=no
19950   fi
19951   need_version=yes
19952   ;;
19953
19954 sysv4 | sysv4.3*)
19955   version_type=linux
19956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19957   soname_spec='${libname}${release}${shared_ext}$major'
19958   shlibpath_var=LD_LIBRARY_PATH
19959   case $host_vendor in
19960     sni)
19961       shlibpath_overrides_runpath=no
19962       need_lib_prefix=no
19963       runpath_var=LD_RUN_PATH
19964       ;;
19965     siemens)
19966       need_lib_prefix=no
19967       ;;
19968     motorola)
19969       need_lib_prefix=no
19970       need_version=no
19971       shlibpath_overrides_runpath=no
19972       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19973       ;;
19974   esac
19975   ;;
19976
19977 sysv4*MP*)
19978   if test -d /usr/nec ;then
19979     version_type=linux
19980     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19981     soname_spec='$libname${shared_ext}.$major'
19982     shlibpath_var=LD_LIBRARY_PATH
19983   fi
19984   ;;
19985
19986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19987   version_type=freebsd-elf
19988   need_lib_prefix=no
19989   need_version=no
19990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19991   soname_spec='${libname}${release}${shared_ext}$major'
19992   shlibpath_var=LD_LIBRARY_PATH
19993   shlibpath_overrides_runpath=yes
19994   hardcode_into_libs=yes
19995   if test "$with_gnu_ld" = yes; then
19996     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19997   else
19998     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19999     case $host_os in
20000       sco3.2v5*)
20001         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20002         ;;
20003     esac
20004   fi
20005   sys_lib_dlsearch_path_spec='/usr/lib'
20006   ;;
20007
20008 tpf*)
20009   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20010   version_type=linux
20011   need_lib_prefix=no
20012   need_version=no
20013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20014   shlibpath_var=LD_LIBRARY_PATH
20015   shlibpath_overrides_runpath=no
20016   hardcode_into_libs=yes
20017   ;;
20018
20019 uts4*)
20020   version_type=linux
20021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022   soname_spec='${libname}${release}${shared_ext}$major'
20023   shlibpath_var=LD_LIBRARY_PATH
20024   ;;
20025
20026 *)
20027   dynamic_linker=no
20028   ;;
20029 esac
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20031 $as_echo "$dynamic_linker" >&6; }
20032 test "$dynamic_linker" = no && can_build_shared=no
20033
20034 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20035 if test "$GCC" = yes; then
20036   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20037 fi
20038
20039 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20040   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20041 fi
20042 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20043   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20044 fi
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20082 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20083 hardcode_action_F77=
20084 if test -n "$hardcode_libdir_flag_spec_F77" ||
20085    test -n "$runpath_var_F77" ||
20086    test "X$hardcode_automatic_F77" = "Xyes" ; then
20087
20088   # We can hardcode non-existent directories.
20089   if test "$hardcode_direct_F77" != no &&
20090      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20091      # have to relink, otherwise we might link with an installed library
20092      # when we should be linking with a yet-to-be-installed one
20093      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20094      test "$hardcode_minus_L_F77" != no; then
20095     # Linking always hardcodes the temporary library directory.
20096     hardcode_action_F77=relink
20097   else
20098     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20099     hardcode_action_F77=immediate
20100   fi
20101 else
20102   # We cannot hardcode anything, or else we can only hardcode existing
20103   # directories.
20104   hardcode_action_F77=unsupported
20105 fi
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
20107 $as_echo "$hardcode_action_F77" >&6; }
20108
20109 if test "$hardcode_action_F77" = relink ||
20110    test "$inherit_rpath_F77" = yes; then
20111   # Fast installation is not supported
20112   enable_fast_install=no
20113 elif test "$shlibpath_overrides_runpath" = yes ||
20114      test "$enable_shared" = no; then
20115   # Fast installation is not necessary
20116   enable_fast_install=needless
20117 fi
20118
20119
20120
20121
20122
20123
20124
20125   fi # test -n "$compiler"
20126
20127   GCC=$lt_save_GCC
20128   CC="$lt_save_CC"
20129 fi # test "$_lt_disable_F77" != yes
20130
20131 ac_ext=c
20132 ac_cpp='$CPP $CPPFLAGS'
20133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147         ac_config_commands="$ac_config_commands libtool"
20148
20149
20150
20151
20152 # Only expand once:
20153
20154
20155
20156
20157
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
20159 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
20160 if test "${gmp_cv_c_attribute_mode+set}" = set; then :
20161   $as_echo_n "(cached) " >&6
20162 else
20163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h.  */
20165 typedef int SItype __attribute__ ((mode (SI)));
20166 int
20167 main ()
20168 {
20169
20170   ;
20171   return 0;
20172 }
20173 _ACEOF
20174 if ac_fn_c_try_compile "$LINENO"; then :
20175   gmp_cv_c_attribute_mode=yes
20176 else
20177   gmp_cv_c_attribute_mode=no
20178 fi
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180
20181 fi
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
20183 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
20184 if test $gmp_cv_c_attribute_mode = yes; then
20185
20186 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
20187
20188 fi
20189
20190
20191
20192
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
20194 $as_echo_n "checking for recent GMP... " >&6; }
20195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20196 /* end confdefs.h.  */
20197
20198 #include "gmp.h"
20199 #if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 410)
20200 # error "min GMP version is 4.1.0"
20201 error
20202 #endif
20203
20204 _ACEOF
20205 if ac_fn_c_try_compile "$LINENO"; then :
20206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20207 $as_echo "yes" >&6; }
20208 else
20209
20210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20211 $as_echo "no" >&6; }
20212  as_fn_error "GMP 4.1.0 min required" "$LINENO" 5
20213
20214 fi
20215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20216
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5
20218 $as_echo_n "checking for gmp internal files... " >&6; }
20219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20220 /* end confdefs.h.  */
20221
20222 #include "gmp.h"
20223 #include "gmp-impl.h"
20224 #include "longlong.h"
20225
20226 _ACEOF
20227 if ac_fn_c_try_compile "$LINENO"; then :
20228
20229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20230 $as_echo "yes" >&6; }
20231
20232 $as_echo "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h
20233
20234   gmp_internal_file_check=yes
20235
20236 else
20237
20238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20239 $as_echo "no" >&6; }
20240   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20241 # for constant arguments.  Useless!
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20243 $as_echo_n "checking for working alloca.h... " >&6; }
20244 if test "${ac_cv_working_alloca_h+set}" = set; then :
20245   $as_echo_n "(cached) " >&6
20246 else
20247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h.  */
20249 #include <alloca.h>
20250 int
20251 main ()
20252 {
20253 char *p = (char *) alloca (2 * sizeof (int));
20254                           if (p) return 0;
20255   ;
20256   return 0;
20257 }
20258 _ACEOF
20259 if ac_fn_c_try_link "$LINENO"; then :
20260   ac_cv_working_alloca_h=yes
20261 else
20262   ac_cv_working_alloca_h=no
20263 fi
20264 rm -f core conftest.err conftest.$ac_objext \
20265     conftest$ac_exeext conftest.$ac_ext
20266 fi
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20268 $as_echo "$ac_cv_working_alloca_h" >&6; }
20269 if test $ac_cv_working_alloca_h = yes; then
20270
20271 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
20272
20273 fi
20274
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20276 $as_echo_n "checking for alloca... " >&6; }
20277 if test "${ac_cv_func_alloca_works+set}" = set; then :
20278   $as_echo_n "(cached) " >&6
20279 else
20280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281 /* end confdefs.h.  */
20282 #ifdef __GNUC__
20283 # define alloca __builtin_alloca
20284 #else
20285 # ifdef _MSC_VER
20286 #  include <malloc.h>
20287 #  define alloca _alloca
20288 # else
20289 #  ifdef HAVE_ALLOCA_H
20290 #   include <alloca.h>
20291 #  else
20292 #   ifdef _AIX
20293  #pragma alloca
20294 #   else
20295 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20296 char *alloca ();
20297 #    endif
20298 #   endif
20299 #  endif
20300 # endif
20301 #endif
20302
20303 int
20304 main ()
20305 {
20306 char *p = (char *) alloca (1);
20307                                     if (p) return 0;
20308   ;
20309   return 0;
20310 }
20311 _ACEOF
20312 if ac_fn_c_try_link "$LINENO"; then :
20313   ac_cv_func_alloca_works=yes
20314 else
20315   ac_cv_func_alloca_works=no
20316 fi
20317 rm -f core conftest.err conftest.$ac_objext \
20318     conftest$ac_exeext conftest.$ac_ext
20319 fi
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20321 $as_echo "$ac_cv_func_alloca_works" >&6; }
20322
20323 if test $ac_cv_func_alloca_works = yes; then
20324
20325 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20326
20327 else
20328   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20329 # that cause trouble.  Some versions do not even contain alloca or
20330 # contain a buggy version.  If you still want to use their alloca,
20331 # use ar to extract alloca.o from them instead of compiling alloca.c.
20332
20333 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20334
20335 $as_echo "#define C_ALLOCA 1" >>confdefs.h
20336
20337
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20339 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20340 if test "${ac_cv_os_cray+set}" = set; then :
20341   $as_echo_n "(cached) " >&6
20342 else
20343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h.  */
20345 #if defined CRAY && ! defined CRAY2
20346 webecray
20347 #else
20348 wenotbecray
20349 #endif
20350
20351 _ACEOF
20352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20353   $EGREP "webecray" >/dev/null 2>&1; then :
20354   ac_cv_os_cray=yes
20355 else
20356   ac_cv_os_cray=no
20357 fi
20358 rm -f conftest*
20359
20360 fi
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20362 $as_echo "$ac_cv_os_cray" >&6; }
20363 if test $ac_cv_os_cray = yes; then
20364   for ac_func in _getb67 GETB67 getb67; do
20365     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20366 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20367 eval as_val=\$$as_ac_var
20368    if test "x$as_val" = x""yes; then :
20369
20370 cat >>confdefs.h <<_ACEOF
20371 #define CRAY_STACKSEG_END $ac_func
20372 _ACEOF
20373
20374     break
20375 fi
20376
20377   done
20378 fi
20379
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20381 $as_echo_n "checking stack direction for C alloca... " >&6; }
20382 if test "${ac_cv_c_stack_direction+set}" = set; then :
20383   $as_echo_n "(cached) " >&6
20384 else
20385   if test "$cross_compiling" = yes; then :
20386   ac_cv_c_stack_direction=0
20387 else
20388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20389 /* end confdefs.h.  */
20390 $ac_includes_default
20391 int
20392 find_stack_direction ()
20393 {
20394   static char *addr = 0;
20395   auto char dummy;
20396   if (addr == 0)
20397     {
20398       addr = &dummy;
20399       return find_stack_direction ();
20400     }
20401   else
20402     return (&dummy > addr) ? 1 : -1;
20403 }
20404
20405 int
20406 main ()
20407 {
20408   return find_stack_direction () < 0;
20409 }
20410 _ACEOF
20411 if ac_fn_c_try_run "$LINENO"; then :
20412   ac_cv_c_stack_direction=1
20413 else
20414   ac_cv_c_stack_direction=-1
20415 fi
20416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20417   conftest.$ac_objext conftest.beam conftest.$ac_ext
20418 fi
20419
20420 fi
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20422 $as_echo "$ac_cv_c_stack_direction" >&6; }
20423 cat >>confdefs.h <<_ACEOF
20424 #define STACK_DIRECTION $ac_cv_c_stack_direction
20425 _ACEOF
20426
20427
20428 fi
20429
20430
20431 fi
20432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20433
20434 if test -n "$gmp_internal_file_check" ; then
20435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid BITS_PER_MP_LIMB and BYTES_PER_MP_LIMB" >&5
20436 $as_echo_n "checking for valid BITS_PER_MP_LIMB and BYTES_PER_MP_LIMB... " >&6; }
20437   if test "$cross_compiling" = yes; then :
20438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't test" >&5
20439 $as_echo "can't test" >&6; }
20440 else
20441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20442 /* end confdefs.h.  */
20443
20444 #include <limits.h>
20445 #include "gmp.h"
20446 #include "gmp-impl.h"
20447
20448 int
20449 main ()
20450 {
20451
20452 #ifndef BITS_PER_MP_LIMB
20453 #define BITS_PER_MP_LIMB GMP_LIMB_BITS
20454 #endif
20455   return BITS_PER_MP_LIMB == BYTES_PER_MP_LIMB * CHAR_BIT
20456          && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
20457
20458   ;
20459   return 0;
20460 }
20461 _ACEOF
20462 if ac_fn_c_try_run "$LINENO"; then :
20463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20464 $as_echo "yes" >&6; }
20465 else
20466
20467        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20468 $as_echo "no" >&6; }
20469        as_fn_error "BITS_PER_MP_LIMB or BYTES_PER_MP_LIMB are incorrect.
20470 You probably need to change some of the GMP or MPFR compile options." "$LINENO" 5
20471 fi
20472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20473   conftest.$ac_objext conftest.beam conftest.$ac_ext
20474 fi
20475
20476 fi
20477
20478
20479 if test "$dont_link_with_gmp" = yes ; then
20480 LIBS="-lgmp $LIBS"
20481 else
20482
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
20484 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
20485 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then :
20486   $as_echo_n "(cached) " >&6
20487 else
20488   ac_check_lib_save_LIBS=$LIBS
20489 LIBS="-lgmp  $LIBS"
20490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20491 /* end confdefs.h.  */
20492
20493 /* Override any GCC internal prototype to avoid an error.
20494    Use char because int might match the return type of a GCC
20495    builtin and then its argument prototype would still apply.  */
20496 #ifdef __cplusplus
20497 extern "C"
20498 #endif
20499 char __gmpz_init ();
20500 int
20501 main ()
20502 {
20503 return __gmpz_init ();
20504   ;
20505   return 0;
20506 }
20507 _ACEOF
20508 if ac_fn_c_try_link "$LINENO"; then :
20509   ac_cv_lib_gmp___gmpz_init=yes
20510 else
20511   ac_cv_lib_gmp___gmpz_init=no
20512 fi
20513 rm -f core conftest.err conftest.$ac_objext \
20514     conftest$ac_exeext conftest.$ac_ext
20515 LIBS=$ac_check_lib_save_LIBS
20516 fi
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
20518 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
20519 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then :
20520   LIBS="-lgmp $LIBS"
20521 else
20522   as_fn_error "libgmp not found or uses a different ABI.
20523 Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5
20524 fi
20525
20526
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5
20528 $as_echo_n "checking if gmp.h version and libgmp version are the same... " >&6; }
20529 saved_LD_RUN_PATH="$LD_RUN_PATH"
20530 LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path"
20531 export LD_RUN_PATH
20532 if test "$cross_compiling" = yes; then :
20533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not test" >&5
20534 $as_echo "can not test" >&6; }
20535
20536 else
20537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20538 /* end confdefs.h.  */
20539
20540 #include <stdio.h>
20541 #include <string.h>
20542 #include "gmp.h"
20543
20544 int
20545 main ()
20546 {
20547
20548   char buffer[100];
20549   sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
20550            __GNU_MP_VERSION_PATCHLEVEL);
20551   printf ("(%s/%s) ", buffer, gmp_version);
20552   if (strcmp (buffer, gmp_version) == 0)
20553     return 0;
20554   if (__GNU_MP_VERSION_PATCHLEVEL != 0)
20555     return 1;
20556   sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
20557   return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
20558
20559   ;
20560   return 0;
20561 }
20562 _ACEOF
20563 if ac_fn_c_try_run "$LINENO"; then :
20564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20565 $as_echo "yes" >&6; }
20566
20567 if test "$ac_cv_type_intmax_t" = yes; then
20568
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5
20570 $as_echo_n "checking if gmp_printf supports \"%jd\"... " >&6; }
20571 if test "$cross_compiling" = yes; then :
20572   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20574 as_fn_error "cannot run test program while cross compiling
20575 See \`config.log' for more details." "$LINENO" 5; }
20576 else
20577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20578 /* end confdefs.h.  */
20579
20580 #include <stdio.h>
20581
20582 #ifdef HAVE_STDINT_H
20583 # include <stdint.h>
20584 #endif
20585 #ifdef HAVE_INTTYPES_H
20586 # include <inttypes.h>
20587 #endif
20588
20589 #include <gmp.h>
20590
20591 int
20592 main ()
20593 {
20594
20595   char s[256];
20596   intmax_t a = 17;
20597
20598   if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1) return 1;
20599   return (strcmp (s, "(17)(42)") != 0);
20600
20601   ;
20602   return 0;
20603 }
20604 _ACEOF
20605 if ac_fn_c_try_run "$LINENO"; then :
20606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20607 $as_echo "yes" >&6; }
20608
20609 else
20610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20611 $as_echo "no" >&6; }
20612
20613 $as_echo "#define NPRINTF_J 1" >>confdefs.h
20614
20615 fi
20616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20617   conftest.$ac_objext conftest.beam conftest.$ac_ext
20618 fi
20619
20620
20621 fi
20622
20623
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5
20625 $as_echo_n "checking if gmp_printf supports \"%hhd\"... " >&6; }
20626 if test "$cross_compiling" = yes; then :
20627   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20629 as_fn_error "cannot run test program while cross compiling
20630 See \`config.log' for more details." "$LINENO" 5; }
20631 else
20632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20633 /* end confdefs.h.  */
20634
20635 #include <stdio.h>
20636
20637 #include <gmp.h>
20638
20639 #include <gmp.h>
20640
20641 int
20642 main ()
20643 {
20644
20645   char s[256];
20646   char a = 17;
20647
20648   if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1) return 1;
20649   return (strcmp (s, "(17)(42)") != 0);
20650
20651   ;
20652   return 0;
20653 }
20654 _ACEOF
20655 if ac_fn_c_try_run "$LINENO"; then :
20656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20657 $as_echo "yes" >&6; }
20658
20659 else
20660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20661 $as_echo "no" >&6; }
20662
20663 $as_echo "#define NPRINTF_HH 1" >>confdefs.h
20664
20665 fi
20666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20667   conftest.$ac_objext conftest.beam conftest.$ac_ext
20668 fi
20669
20670
20671
20672
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5
20674 $as_echo_n "checking if gmp_printf supports \"%lld\"... " >&6; }
20675 if test "$cross_compiling" = yes; then :
20676   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20678 as_fn_error "cannot run test program while cross compiling
20679 See \`config.log' for more details." "$LINENO" 5; }
20680 else
20681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682 /* end confdefs.h.  */
20683
20684 #include <stdio.h>
20685
20686 #include <gmp.h>
20687
20688 #include <gmp.h>
20689
20690 int
20691 main ()
20692 {
20693
20694   char s[256];
20695   long long int a = 17;
20696
20697   if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1) return 1;
20698   return (strcmp (s, "(17)(42)") != 0);
20699
20700   ;
20701   return 0;
20702 }
20703 _ACEOF
20704 if ac_fn_c_try_run "$LINENO"; then :
20705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20706 $as_echo "yes" >&6; }
20707
20708 else
20709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20710 $as_echo "no" >&6; }
20711
20712 $as_echo "#define NPRINTF_LL 1" >>confdefs.h
20713
20714 fi
20715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20716   conftest.$ac_objext conftest.beam conftest.$ac_ext
20717 fi
20718
20719
20720
20721
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5
20723 $as_echo_n "checking if gmp_printf supports \"%Lf\"... " >&6; }
20724 if test "$cross_compiling" = yes; then :
20725   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20727 as_fn_error "cannot run test program while cross compiling
20728 See \`config.log' for more details." "$LINENO" 5; }
20729 else
20730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20731 /* end confdefs.h.  */
20732
20733 #include <stdio.h>
20734
20735 #include <gmp.h>
20736
20737 #include <gmp.h>
20738
20739 int
20740 main ()
20741 {
20742
20743   char s[256];
20744   long double a = 17;
20745
20746   if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1) return 1;
20747   return (strcmp (s, "(17)(42)") != 0);
20748
20749   ;
20750   return 0;
20751 }
20752 _ACEOF
20753 if ac_fn_c_try_run "$LINENO"; then :
20754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20755 $as_echo "yes" >&6; }
20756
20757 else
20758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20759 $as_echo "no" >&6; }
20760
20761 $as_echo "#define NPRINTF_L 1" >>confdefs.h
20762
20763 fi
20764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20765   conftest.$ac_objext conftest.beam conftest.$ac_ext
20766 fi
20767
20768
20769
20770
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5
20772 $as_echo_n "checking if gmp_printf supports \"%td\"... " >&6; }
20773 if test "$cross_compiling" = yes; then :
20774   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20776 as_fn_error "cannot run test program while cross compiling
20777 See \`config.log' for more details." "$LINENO" 5; }
20778 else
20779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20780 /* end confdefs.h.  */
20781
20782 #include <stdio.h>
20783
20784 #if defined (__cplusplus)
20785 #include <cstddef>
20786 #else
20787 #include <stddef.h>
20788 #endif
20789 #include "gmp.h"
20790
20791 #include <gmp.h>
20792
20793 int
20794 main ()
20795 {
20796
20797   char s[256];
20798   ptrdiff_t a = 17;
20799
20800   if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1) return 1;
20801   return (strcmp (s, "(17)(42)") != 0);
20802
20803   ;
20804   return 0;
20805 }
20806 _ACEOF
20807 if ac_fn_c_try_run "$LINENO"; then :
20808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20809 $as_echo "yes" >&6; }
20810
20811 else
20812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20813 $as_echo "no" >&6; }
20814
20815 $as_echo "#define NPRINTF_T 1" >>confdefs.h
20816
20817 fi
20818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20819   conftest.$ac_objext conftest.beam conftest.$ac_ext
20820 fi
20821
20822
20823
20824 else
20825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20826 $as_echo "no" >&6; }
20827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seems to have different versions or" >&5
20828 $as_echo "$as_me: WARNING: 'gmp.h' and 'libgmp' seems to have different versions or" >&2;}
20829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
20830 $as_echo "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
20831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above)." >&5
20832 $as_echo "$as_me: WARNING: see the version numbers above)." >&2;}
20833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: However since we can't use 'libtool' inside the configure," >&5
20834 $as_echo "$as_me: WARNING: However since we can't use 'libtool' inside the configure," >&2;}
20835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5
20836 $as_echo "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;}
20837
20838 fi
20839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20840   conftest.$ac_objext conftest.beam conftest.$ac_ext
20841 fi
20842
20843 LD_RUN_PATH="$saved_LD_RUN_PATH"
20844
20845 fi
20846
20847 if test -f confdefs.h; then
20848   sed '/#define PACKAGE_/d' <confdefs.h >confdefs.tmp
20849   sed '/#define HAVE_STRING/d' <confdefs.tmp >confdefs.h
20850   sed '/#define HAVE_ALLOCA /d' <confdefs.h >confdefs.tmp
20851   sed '/#define HAVE_DLFCN_H/d' <confdefs.tmp >confdefs.h
20852   sed '/#define HAVE_MEM/d' <confdefs.h >confdefs.tmp
20853   sed '/#define STDC_HEADERS/d' <confdefs.tmp >confdefs.h
20854   sed '/#define HAVE_STRTOL/d' <confdefs.h >confdefs.tmp
20855   sed '/#define HAVE_STDLIB_H/d' <confdefs.tmp >confdefs.h
20856   sed '/#define HAVE_UNISTD_H/d' <confdefs.h >confdefs.tmp
20857   sed '/#define HAVE_STDC_HEADERS/d' <confdefs.tmp >confdefs.h
20858   sed '/#define HAVE_LONG_DOUBLE/d' <confdefs.h >confdefs.tmp
20859   sed '/#define HAVE_SYS_STAT_H/d' <confdefs.tmp >confdefs.h
20860   sed '/#define HAVE_SYS_TYPES_H/d' <confdefs.h >confdefs.tmp
20861   sed '/#define PROTOTYPES/d' <confdefs.tmp >confdefs.h
20862   sed '/#define __PROTOTYPES/d' <confdefs.h >confdefs.tmp
20863
20864   mv confdefs.tmp confdefs.h
20865 fi
20866
20867 ac_config_files="$ac_config_files Makefile tests/Makefile mparam.h:mparam_h.in"
20868
20869 cat >confcache <<\_ACEOF
20870 # This file is a shell script that caches the results of configure
20871 # tests run on this system so they can be shared between configure
20872 # scripts and configure runs, see configure's option --config-cache.
20873 # It is not useful on other systems.  If it contains results you don't
20874 # want to keep, you may remove or edit it.
20875 #
20876 # config.status only pays attention to the cache file if you give it
20877 # the --recheck option to rerun configure.
20878 #
20879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20881 # following values.
20882
20883 _ACEOF
20884
20885 # The following way of writing the cache mishandles newlines in values,
20886 # but we know of no workaround that is simple, portable, and efficient.
20887 # So, we kill variables containing newlines.
20888 # Ultrix sh set writes to stderr and can't be redirected directly,
20889 # and sets the high bit in the cache file unless we assign to the vars.
20890 (
20891   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20892     eval ac_val=\$$ac_var
20893     case $ac_val in #(
20894     *${as_nl}*)
20895       case $ac_var in #(
20896       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20898       esac
20899       case $ac_var in #(
20900       _ | IFS | as_nl) ;; #(
20901       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20902       *) { eval $ac_var=; unset $ac_var;} ;;
20903       esac ;;
20904     esac
20905   done
20906
20907   (set) 2>&1 |
20908     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20909     *${as_nl}ac_space=\ *)
20910       # `set' does not quote correctly, so add quotes: double-quote
20911       # substitution turns \\\\ into \\, and sed turns \\ into \.
20912       sed -n \
20913         "s/'/'\\\\''/g;
20914           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20915       ;; #(
20916     *)
20917       # `set' quotes correctly as required by POSIX, so do not add quotes.
20918       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20919       ;;
20920     esac |
20921     sort
20922 ) |
20923   sed '
20924      /^ac_cv_env_/b end
20925      t clear
20926      :clear
20927      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20928      t end
20929      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20930      :end' >>confcache
20931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20932   if test -w "$cache_file"; then
20933     test "x$cache_file" != "x/dev/null" &&
20934       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20935 $as_echo "$as_me: updating cache $cache_file" >&6;}
20936     cat confcache >$cache_file
20937   else
20938     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20939 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20940   fi
20941 fi
20942 rm -f confcache
20943
20944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20945 # Let make expand exec_prefix.
20946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20947
20948 # Transform confdefs.h into DEFS.
20949 # Protect against shell expansion while executing Makefile rules.
20950 # Protect against Makefile macro expansion.
20951 #
20952 # If the first sed substitution is executed (which looks for macros that
20953 # take arguments), then branch to the quote section.  Otherwise,
20954 # look for a macro that doesn't take arguments.
20955 ac_script='
20956 :mline
20957 /\\$/{
20958  N
20959  s,\\\n,,
20960  b mline
20961 }
20962 t clear
20963 :clear
20964 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
20965 t quote
20966 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
20967 t quote
20968 b any
20969 :quote
20970 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20971 s/\[/\\&/g
20972 s/\]/\\&/g
20973 s/\$/$$/g
20974 H
20975 :any
20976 ${
20977         g
20978         s/^\n//
20979         s/\n/ /g
20980         p
20981 }
20982 '
20983 DEFS=`sed -n "$ac_script" confdefs.h`
20984
20985
20986 ac_libobjs=
20987 ac_ltlibobjs=
20988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20989   # 1. Remove the extension, and $U if already installed.
20990   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20991   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20992   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20993   #    will be set to the directory where LIBOBJS objects are built.
20994   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20995   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20996 done
20997 LIBOBJS=$ac_libobjs
20998
20999 LTLIBOBJS=$ac_ltlibobjs
21000
21001
21002  if test -n "$EXEEXT"; then
21003   am__EXEEXT_TRUE=
21004   am__EXEEXT_FALSE='#'
21005 else
21006   am__EXEEXT_TRUE='#'
21007   am__EXEEXT_FALSE=
21008 fi
21009
21010 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21011   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
21012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21013 fi
21014 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21015   as_fn_error "conditional \"AMDEP\" was never defined.
21016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21017 fi
21018 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21019   as_fn_error "conditional \"am__fastdepCC\" was never defined.
21020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21021 fi
21022 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21023   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
21024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21025 fi
21026 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21027   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
21028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21029 fi
21030
21031 : ${CONFIG_STATUS=./config.status}
21032 ac_write_fail=0
21033 ac_clean_files_save=$ac_clean_files
21034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21036 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21037 as_write_fail=0
21038 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21039 #! $SHELL
21040 # Generated by $as_me.
21041 # Run this file to recreate the current configuration.
21042 # Compiler output produced by configure, useful for debugging
21043 # configure, is in config.log if it exists.
21044
21045 debug=false
21046 ac_cs_recheck=false
21047 ac_cs_silent=false
21048
21049 SHELL=\${CONFIG_SHELL-$SHELL}
21050 export SHELL
21051 _ASEOF
21052 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21053 ## -------------------- ##
21054 ## M4sh Initialization. ##
21055 ## -------------------- ##
21056
21057 # Be more Bourne compatible
21058 DUALCASE=1; export DUALCASE # for MKS sh
21059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21060   emulate sh
21061   NULLCMD=:
21062   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21063   # is contrary to our usage.  Disable this feature.
21064   alias -g '${1+"$@"}'='"$@"'
21065   setopt NO_GLOB_SUBST
21066 else
21067   case `(set -o) 2>/dev/null` in #(
21068   *posix*) :
21069     set -o posix ;; #(
21070   *) :
21071      ;;
21072 esac
21073 fi
21074
21075
21076 as_nl='
21077 '
21078 export as_nl
21079 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21080 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21081 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21082 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21083 # Prefer a ksh shell builtin over an external printf program on Solaris,
21084 # but without wasting forks for bash or zsh.
21085 if test -z "$BASH_VERSION$ZSH_VERSION" \
21086     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21087   as_echo='print -r --'
21088   as_echo_n='print -rn --'
21089 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21090   as_echo='printf %s\n'
21091   as_echo_n='printf %s'
21092 else
21093   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21094     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21095     as_echo_n='/usr/ucb/echo -n'
21096   else
21097     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21098     as_echo_n_body='eval
21099       arg=$1;
21100       case $arg in #(
21101       *"$as_nl"*)
21102         expr "X$arg" : "X\\(.*\\)$as_nl";
21103         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21104       esac;
21105       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21106     '
21107     export as_echo_n_body
21108     as_echo_n='sh -c $as_echo_n_body as_echo'
21109   fi
21110   export as_echo_body
21111   as_echo='sh -c $as_echo_body as_echo'
21112 fi
21113
21114 # The user is always right.
21115 if test "${PATH_SEPARATOR+set}" != set; then
21116   PATH_SEPARATOR=:
21117   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21118     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21119       PATH_SEPARATOR=';'
21120   }
21121 fi
21122
21123
21124 # IFS
21125 # We need space, tab and new line, in precisely that order.  Quoting is
21126 # there to prevent editors from complaining about space-tab.
21127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21128 # splitting by setting IFS to empty value.)
21129 IFS=" ""        $as_nl"
21130
21131 # Find who we are.  Look in the path if we contain no directory separator.
21132 case $0 in #((
21133   *[\\/]* ) as_myself=$0 ;;
21134   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21135 for as_dir in $PATH
21136 do
21137   IFS=$as_save_IFS
21138   test -z "$as_dir" && as_dir=.
21139     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21140   done
21141 IFS=$as_save_IFS
21142
21143      ;;
21144 esac
21145 # We did not find ourselves, most probably we were run as `sh COMMAND'
21146 # in which case we are not to be found in the path.
21147 if test "x$as_myself" = x; then
21148   as_myself=$0
21149 fi
21150 if test ! -f "$as_myself"; then
21151   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21152   exit 1
21153 fi
21154
21155 # Unset variables that we do not need and which cause bugs (e.g. in
21156 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21157 # suppresses any "Segmentation fault" message there.  '((' could
21158 # trigger a bug in pdksh 5.2.14.
21159 for as_var in BASH_ENV ENV MAIL MAILPATH
21160 do eval test x\${$as_var+set} = xset \
21161   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21162 done
21163 PS1='$ '
21164 PS2='> '
21165 PS4='+ '
21166
21167 # NLS nuisances.
21168 LC_ALL=C
21169 export LC_ALL
21170 LANGUAGE=C
21171 export LANGUAGE
21172
21173 # CDPATH.
21174 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21175
21176
21177 # as_fn_error ERROR [LINENO LOG_FD]
21178 # ---------------------------------
21179 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21180 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21181 # script with status $?, using 1 if that was 0.
21182 as_fn_error ()
21183 {
21184   as_status=$?; test $as_status -eq 0 && as_status=1
21185   if test "$3"; then
21186     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21187     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21188   fi
21189   $as_echo "$as_me: error: $1" >&2
21190   as_fn_exit $as_status
21191 } # as_fn_error
21192
21193
21194 # as_fn_set_status STATUS
21195 # -----------------------
21196 # Set $? to STATUS, without forking.
21197 as_fn_set_status ()
21198 {
21199   return $1
21200 } # as_fn_set_status
21201
21202 # as_fn_exit STATUS
21203 # -----------------
21204 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21205 as_fn_exit ()
21206 {
21207   set +e
21208   as_fn_set_status $1
21209   exit $1
21210 } # as_fn_exit
21211
21212 # as_fn_unset VAR
21213 # ---------------
21214 # Portably unset VAR.
21215 as_fn_unset ()
21216 {
21217   { eval $1=; unset $1;}
21218 }
21219 as_unset=as_fn_unset
21220 # as_fn_append VAR VALUE
21221 # ----------------------
21222 # Append the text in VALUE to the end of the definition contained in VAR. Take
21223 # advantage of any shell optimizations that allow amortized linear growth over
21224 # repeated appends, instead of the typical quadratic growth present in naive
21225 # implementations.
21226 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21227   eval 'as_fn_append ()
21228   {
21229     eval $1+=\$2
21230   }'
21231 else
21232   as_fn_append ()
21233   {
21234     eval $1=\$$1\$2
21235   }
21236 fi # as_fn_append
21237
21238 # as_fn_arith ARG...
21239 # ------------------
21240 # Perform arithmetic evaluation on the ARGs, and store the result in the
21241 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21242 # must be portable across $(()) and expr.
21243 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21244   eval 'as_fn_arith ()
21245   {
21246     as_val=$(( $* ))
21247   }'
21248 else
21249   as_fn_arith ()
21250   {
21251     as_val=`expr "$@" || test $? -eq 1`
21252   }
21253 fi # as_fn_arith
21254
21255
21256 if expr a : '\(a\)' >/dev/null 2>&1 &&
21257    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21258   as_expr=expr
21259 else
21260   as_expr=false
21261 fi
21262
21263 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21264   as_basename=basename
21265 else
21266   as_basename=false
21267 fi
21268
21269 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21270   as_dirname=dirname
21271 else
21272   as_dirname=false
21273 fi
21274
21275 as_me=`$as_basename -- "$0" ||
21276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21277          X"$0" : 'X\(//\)$' \| \
21278          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21279 $as_echo X/"$0" |
21280     sed '/^.*\/\([^/][^/]*\)\/*$/{
21281             s//\1/
21282             q
21283           }
21284           /^X\/\(\/\/\)$/{
21285             s//\1/
21286             q
21287           }
21288           /^X\/\(\/\).*/{
21289             s//\1/
21290             q
21291           }
21292           s/.*/./; q'`
21293
21294 # Avoid depending upon Character Ranges.
21295 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21296 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21297 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21298 as_cr_digits='0123456789'
21299 as_cr_alnum=$as_cr_Letters$as_cr_digits
21300
21301 ECHO_C= ECHO_N= ECHO_T=
21302 case `echo -n x` in #(((((
21303 -n*)
21304   case `echo 'xy\c'` in
21305   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21306   xy)  ECHO_C='\c';;
21307   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21308        ECHO_T=' ';;
21309   esac;;
21310 *)
21311   ECHO_N='-n';;
21312 esac
21313
21314 rm -f conf$$ conf$$.exe conf$$.file
21315 if test -d conf$$.dir; then
21316   rm -f conf$$.dir/conf$$.file
21317 else
21318   rm -f conf$$.dir
21319   mkdir conf$$.dir 2>/dev/null
21320 fi
21321 if (echo >conf$$.file) 2>/dev/null; then
21322   if ln -s conf$$.file conf$$ 2>/dev/null; then
21323     as_ln_s='ln -s'
21324     # ... but there are two gotchas:
21325     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21326     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21327     # In both cases, we have to default to `cp -p'.
21328     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21329       as_ln_s='cp -p'
21330   elif ln conf$$.file conf$$ 2>/dev/null; then
21331     as_ln_s=ln
21332   else
21333     as_ln_s='cp -p'
21334   fi
21335 else
21336   as_ln_s='cp -p'
21337 fi
21338 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21339 rmdir conf$$.dir 2>/dev/null
21340
21341
21342 # as_fn_mkdir_p
21343 # -------------
21344 # Create "$as_dir" as a directory, including parents if necessary.
21345 as_fn_mkdir_p ()
21346 {
21347
21348   case $as_dir in #(
21349   -*) as_dir=./$as_dir;;
21350   esac
21351   test -d "$as_dir" || eval $as_mkdir_p || {
21352     as_dirs=
21353     while :; do
21354       case $as_dir in #(
21355       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21356       *) as_qdir=$as_dir;;
21357       esac
21358       as_dirs="'$as_qdir' $as_dirs"
21359       as_dir=`$as_dirname -- "$as_dir" ||
21360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21361          X"$as_dir" : 'X\(//\)[^/]' \| \
21362          X"$as_dir" : 'X\(//\)$' \| \
21363          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21364 $as_echo X"$as_dir" |
21365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21366             s//\1/
21367             q
21368           }
21369           /^X\(\/\/\)[^/].*/{
21370             s//\1/
21371             q
21372           }
21373           /^X\(\/\/\)$/{
21374             s//\1/
21375             q
21376           }
21377           /^X\(\/\).*/{
21378             s//\1/
21379             q
21380           }
21381           s/.*/./; q'`
21382       test -d "$as_dir" && break
21383     done
21384     test -z "$as_dirs" || eval "mkdir $as_dirs"
21385   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
21386
21387
21388 } # as_fn_mkdir_p
21389 if mkdir -p . 2>/dev/null; then
21390   as_mkdir_p='mkdir -p "$as_dir"'
21391 else
21392   test -d ./-p && rmdir ./-p
21393   as_mkdir_p=false
21394 fi
21395
21396 if test -x / >/dev/null 2>&1; then
21397   as_test_x='test -x'
21398 else
21399   if ls -dL / >/dev/null 2>&1; then
21400     as_ls_L_option=L
21401   else
21402     as_ls_L_option=
21403   fi
21404   as_test_x='
21405     eval sh -c '\''
21406       if test -d "$1"; then
21407         test -d "$1/.";
21408       else
21409         case $1 in #(
21410         -*)set "./$1";;
21411         esac;
21412         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21413         ???[sx]*):;;*)false;;esac;fi
21414     '\'' sh
21415   '
21416 fi
21417 as_executable_p=$as_test_x
21418
21419 # Sed expression to map a string onto a valid CPP name.
21420 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21421
21422 # Sed expression to map a string onto a valid variable name.
21423 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21424
21425
21426 exec 6>&1
21427 ## ----------------------------------- ##
21428 ## Main body of $CONFIG_STATUS script. ##
21429 ## ----------------------------------- ##
21430 _ASEOF
21431 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21432
21433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21434 # Save the log message, to keep $0 and so on meaningful, and to
21435 # report actual input values of CONFIG_FILES etc. instead of their
21436 # values after options handling.
21437 ac_log="
21438 This file was extended by MPFR $as_me 2.4.2, which was
21439 generated by GNU Autoconf 2.64.  Invocation command line was
21440
21441   CONFIG_FILES    = $CONFIG_FILES
21442   CONFIG_HEADERS  = $CONFIG_HEADERS
21443   CONFIG_LINKS    = $CONFIG_LINKS
21444   CONFIG_COMMANDS = $CONFIG_COMMANDS
21445   $ $0 $@
21446
21447 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21448 "
21449
21450 _ACEOF
21451
21452 case $ac_config_files in *"
21453 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21454 esac
21455
21456
21457
21458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21459 # Files that config.status was made for.
21460 config_files="$ac_config_files"
21461 config_commands="$ac_config_commands"
21462
21463 _ACEOF
21464
21465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21466 ac_cs_usage="\
21467 \`$as_me' instantiates files and other configuration actions
21468 from templates according to the current configuration.  Unless the files
21469 and actions are specified as TAGs, all are instantiated by default.
21470
21471 Usage: $0 [OPTION]... [TAG]...
21472
21473   -h, --help       print this help, then exit
21474   -V, --version    print version number and configuration settings, then exit
21475   -q, --quiet, --silent
21476                    do not print progress messages
21477   -d, --debug      don't remove temporary files
21478       --recheck    update $as_me by reconfiguring in the same conditions
21479       --file=FILE[:TEMPLATE]
21480                    instantiate the configuration file FILE
21481
21482 Configuration files:
21483 $config_files
21484
21485 Configuration commands:
21486 $config_commands
21487
21488 Report bugs to the package provider."
21489
21490 _ACEOF
21491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21492 ac_cs_version="\\
21493 MPFR config.status 2.4.2
21494 configured by $0, generated by GNU Autoconf 2.64,
21495   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21496
21497 Copyright (C) 2009 Free Software Foundation, Inc.
21498 This config.status script is free software; the Free Software Foundation
21499 gives unlimited permission to copy, distribute and modify it."
21500
21501 ac_pwd='$ac_pwd'
21502 srcdir='$srcdir'
21503 INSTALL='$INSTALL'
21504 MKDIR_P='$MKDIR_P'
21505 AWK='$AWK'
21506 test -n "\$AWK" || AWK=awk
21507 _ACEOF
21508
21509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21510 # The default lists apply if the user does not specify any file.
21511 ac_need_defaults=:
21512 while test $# != 0
21513 do
21514   case $1 in
21515   --*=*)
21516     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21517     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21518     ac_shift=:
21519     ;;
21520   *)
21521     ac_option=$1
21522     ac_optarg=$2
21523     ac_shift=shift
21524     ;;
21525   esac
21526
21527   case $ac_option in
21528   # Handling of the options.
21529   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21530     ac_cs_recheck=: ;;
21531   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21532     $as_echo "$ac_cs_version"; exit ;;
21533   --debug | --debu | --deb | --de | --d | -d )
21534     debug=: ;;
21535   --file | --fil | --fi | --f )
21536     $ac_shift
21537     case $ac_optarg in
21538     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21539     esac
21540     as_fn_append CONFIG_FILES " '$ac_optarg'"
21541     ac_need_defaults=false;;
21542   --he | --h |  --help | --hel | -h )
21543     $as_echo "$ac_cs_usage"; exit ;;
21544   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21545   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21546     ac_cs_silent=: ;;
21547
21548   # This is an error.
21549   -*) as_fn_error "unrecognized option: \`$1'
21550 Try \`$0 --help' for more information." ;;
21551
21552   *) as_fn_append ac_config_targets " $1"
21553      ac_need_defaults=false ;;
21554
21555   esac
21556   shift
21557 done
21558
21559 ac_configure_extra_args=
21560
21561 if $ac_cs_silent; then
21562   exec 6>/dev/null
21563   ac_configure_extra_args="$ac_configure_extra_args --silent"
21564 fi
21565
21566 _ACEOF
21567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21568 if \$ac_cs_recheck; then
21569   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21570   shift
21571   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21572   CONFIG_SHELL='$SHELL'
21573   export CONFIG_SHELL
21574   exec "\$@"
21575 fi
21576
21577 _ACEOF
21578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21579 exec 5>>config.log
21580 {
21581   echo
21582   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21583 ## Running $as_me. ##
21584 _ASBOX
21585   $as_echo "$ac_log"
21586 } >&5
21587
21588 _ACEOF
21589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21590 #
21591 # INIT-COMMANDS
21592 #
21593 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21594
21595
21596 # The HP-UX ksh and POSIX shell print the target directory to stdout
21597 # if CDPATH is set.
21598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21599
21600 sed_quote_subst='$sed_quote_subst'
21601 double_quote_subst='$double_quote_subst'
21602 delay_variable_subst='$delay_variable_subst'
21603 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
21604 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21605 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21606 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21607 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21608 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21609 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21610 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21611 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21612 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21613 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21614 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21615 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21616 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21617 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21618 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21619 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21620 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21621 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21622 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21623 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21624 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21625 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21626 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21627 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21628 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21629 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21630 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21631 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21632 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21633 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21634 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21635 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21636 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21637 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21638 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21639 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21640 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21641 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21642 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21643 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21644 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21645 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21646 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21647 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21648 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21649 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
21650 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21651 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21652 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21653 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21654 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21655 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21656 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21657 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21658 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21659 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21660 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21661 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21662 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21663 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21664 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21665 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21666 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21667 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21668 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21669 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21670 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21671 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21672 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21673 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21674 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21675 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21676 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21677 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21678 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21679 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21680 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21681 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21682 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21683 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21684 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21685 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21686 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21687 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21688 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21689 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21690 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21691 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21692 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21693 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21694 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21695 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21696 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21697 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21698 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21699 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21700 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21701 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21702 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21703 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21704 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21705 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21706 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21707 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21708 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21709 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21710 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21711 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21712 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21713 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21714 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21715 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21716 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21717 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21718 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21719 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21720 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21721 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21722 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21723 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
21724 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21725 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21726 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21727 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21728 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21729 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21730 LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
21731 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21732 old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21733 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21734 compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
21735 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21736 GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
21737 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21738 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
21739 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21740 lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
21741 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21742 lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
21743 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21744 lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
21745 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21746 lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
21747 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21748 archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
21749 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21750 enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
21751 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21752 export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
21753 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21754 whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
21755 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21756 compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
21757 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21758 old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21759 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21760 old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21761 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21762 archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21763 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21764 archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21765 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21766 module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21767 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21768 module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21769 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21770 with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
21771 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21772 allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
21773 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21774 no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
21775 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21776 hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
21777 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21778 hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
21779 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21780 hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
21781 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21782 hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
21783 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21784 hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
21785 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21786 hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
21787 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21788 hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
21789 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21790 hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
21791 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21792 inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
21793 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21794 link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
21795 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21796 fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
21797 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21798 always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
21799 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21800 export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21801 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21802 exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
21803 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21804 include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
21805 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21806 prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21807 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21808 file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
21809 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21810 hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
21811 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21812 compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
21813 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21814 predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
21815 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21816 postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
21817 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21818 predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
21819 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21820 postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
21821 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21822 compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
21823
21824 LTCC='$LTCC'
21825 LTCFLAGS='$LTCFLAGS'
21826 compiler='$compiler_DEFAULT'
21827
21828 # Quote evaled strings.
21829 for var in SED \
21830 GREP \
21831 EGREP \
21832 FGREP \
21833 LD \
21834 NM \
21835 LN_S \
21836 lt_SP2NL \
21837 lt_NL2SP \
21838 reload_flag \
21839 deplibs_check_method \
21840 file_magic_cmd \
21841 AR \
21842 AR_FLAGS \
21843 STRIP \
21844 RANLIB \
21845 CC \
21846 CFLAGS \
21847 compiler \
21848 lt_cv_sys_global_symbol_pipe \
21849 lt_cv_sys_global_symbol_to_cdecl \
21850 lt_cv_sys_global_symbol_to_c_name_address \
21851 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21852 SHELL \
21853 ECHO \
21854 lt_prog_compiler_no_builtin_flag \
21855 lt_prog_compiler_wl \
21856 lt_prog_compiler_pic \
21857 lt_prog_compiler_static \
21858 lt_cv_prog_compiler_c_o \
21859 need_locks \
21860 DSYMUTIL \
21861 NMEDIT \
21862 LIPO \
21863 OTOOL \
21864 OTOOL64 \
21865 shrext_cmds \
21866 export_dynamic_flag_spec \
21867 whole_archive_flag_spec \
21868 compiler_needs_object \
21869 with_gnu_ld \
21870 allow_undefined_flag \
21871 no_undefined_flag \
21872 hardcode_libdir_flag_spec \
21873 hardcode_libdir_flag_spec_ld \
21874 hardcode_libdir_separator \
21875 fix_srcfile_path \
21876 exclude_expsyms \
21877 include_expsyms \
21878 file_list_spec \
21879 variables_saved_for_relink \
21880 libname_spec \
21881 library_names_spec \
21882 soname_spec \
21883 finish_eval \
21884 old_striplib \
21885 striplib \
21886 compiler_lib_search_dirs \
21887 predep_objects \
21888 postdep_objects \
21889 predeps \
21890 postdeps \
21891 compiler_lib_search_path \
21892 LD_CXX \
21893 LD_F77 \
21894 compiler_CXX \
21895 compiler_F77 \
21896 lt_prog_compiler_no_builtin_flag_CXX \
21897 lt_prog_compiler_no_builtin_flag_F77 \
21898 lt_prog_compiler_wl_CXX \
21899 lt_prog_compiler_wl_F77 \
21900 lt_prog_compiler_pic_CXX \
21901 lt_prog_compiler_pic_F77 \
21902 lt_prog_compiler_static_CXX \
21903 lt_prog_compiler_static_F77 \
21904 lt_cv_prog_compiler_c_o_CXX \
21905 lt_cv_prog_compiler_c_o_F77 \
21906 export_dynamic_flag_spec_CXX \
21907 export_dynamic_flag_spec_F77 \
21908 whole_archive_flag_spec_CXX \
21909 whole_archive_flag_spec_F77 \
21910 compiler_needs_object_CXX \
21911 compiler_needs_object_F77 \
21912 with_gnu_ld_CXX \
21913 with_gnu_ld_F77 \
21914 allow_undefined_flag_CXX \
21915 allow_undefined_flag_F77 \
21916 no_undefined_flag_CXX \
21917 no_undefined_flag_F77 \
21918 hardcode_libdir_flag_spec_CXX \
21919 hardcode_libdir_flag_spec_F77 \
21920 hardcode_libdir_flag_spec_ld_CXX \
21921 hardcode_libdir_flag_spec_ld_F77 \
21922 hardcode_libdir_separator_CXX \
21923 hardcode_libdir_separator_F77 \
21924 fix_srcfile_path_CXX \
21925 fix_srcfile_path_F77 \
21926 exclude_expsyms_CXX \
21927 exclude_expsyms_F77 \
21928 include_expsyms_CXX \
21929 include_expsyms_F77 \
21930 file_list_spec_CXX \
21931 file_list_spec_F77 \
21932 compiler_lib_search_dirs_CXX \
21933 compiler_lib_search_dirs_F77 \
21934 predep_objects_CXX \
21935 predep_objects_F77 \
21936 postdep_objects_CXX \
21937 postdep_objects_F77 \
21938 predeps_CXX \
21939 predeps_F77 \
21940 postdeps_CXX \
21941 postdeps_F77 \
21942 compiler_lib_search_path_CXX \
21943 compiler_lib_search_path_F77; do
21944     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21945     *[\\\\\\\`\\"\\\$]*)
21946       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21947       ;;
21948     *)
21949       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21950       ;;
21951     esac
21952 done
21953
21954 # Double-quote double-evaled strings.
21955 for var in reload_cmds \
21956 old_postinstall_cmds \
21957 old_postuninstall_cmds \
21958 old_archive_cmds \
21959 extract_expsyms_cmds \
21960 old_archive_from_new_cmds \
21961 old_archive_from_expsyms_cmds \
21962 archive_cmds \
21963 archive_expsym_cmds \
21964 module_cmds \
21965 module_expsym_cmds \
21966 export_symbols_cmds \
21967 prelink_cmds \
21968 postinstall_cmds \
21969 postuninstall_cmds \
21970 finish_cmds \
21971 sys_lib_search_path_spec \
21972 sys_lib_dlsearch_path_spec \
21973 old_archive_cmds_CXX \
21974 old_archive_cmds_F77 \
21975 old_archive_from_new_cmds_CXX \
21976 old_archive_from_new_cmds_F77 \
21977 old_archive_from_expsyms_cmds_CXX \
21978 old_archive_from_expsyms_cmds_F77 \
21979 archive_cmds_CXX \
21980 archive_cmds_F77 \
21981 archive_expsym_cmds_CXX \
21982 archive_expsym_cmds_F77 \
21983 module_cmds_CXX \
21984 module_cmds_F77 \
21985 module_expsym_cmds_CXX \
21986 module_expsym_cmds_F77 \
21987 export_symbols_cmds_CXX \
21988 export_symbols_cmds_F77 \
21989 prelink_cmds_CXX \
21990 prelink_cmds_F77; do
21991     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21992     *[\\\\\\\`\\"\\\$]*)
21993       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21994       ;;
21995     *)
21996       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21997       ;;
21998     esac
21999 done
22000
22001 # Fix-up fallback echo if it was mangled by the above quoting rules.
22002 case \$lt_ECHO in
22003 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22004   ;;
22005 esac
22006
22007 ac_aux_dir='$ac_aux_dir'
22008 xsi_shell='$xsi_shell'
22009 lt_shell_append='$lt_shell_append'
22010
22011 # See if we are running on zsh, and set the options which allow our
22012 # commands through without removal of \ escapes INIT.
22013 if test -n "\${ZSH_VERSION+set}" ; then
22014    setopt NO_GLOB_SUBST
22015 fi
22016
22017
22018     PACKAGE='$PACKAGE'
22019     VERSION='$VERSION'
22020     TIMESTAMP='$TIMESTAMP'
22021     RM='$RM'
22022     ofile='$ofile'
22023
22024
22025
22026
22027
22028
22029
22030
22031 _ACEOF
22032
22033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22034
22035 # Handling of arguments.
22036 for ac_config_target in $ac_config_targets
22037 do
22038   case $ac_config_target in
22039     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22040     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22041     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22042     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22043     "mparam.h") CONFIG_FILES="$CONFIG_FILES mparam.h:mparam_h.in" ;;
22044
22045   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22046   esac
22047 done
22048
22049
22050 # If the user did not use the arguments to specify the items to instantiate,
22051 # then the envvar interface is used.  Set only those that are not.
22052 # We use the long form for the default assignment because of an extremely
22053 # bizarre bug on SunOS 4.1.3.
22054 if $ac_need_defaults; then
22055   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22056   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22057 fi
22058
22059 # Have a temporary directory for convenience.  Make it in the build tree
22060 # simply because there is no reason against having it here, and in addition,
22061 # creating and moving files from /tmp can sometimes cause problems.
22062 # Hook for its removal unless debugging.
22063 # Note that there is a small window in which the directory will not be cleaned:
22064 # after its creation but before its name has been assigned to `$tmp'.
22065 $debug ||
22066 {
22067   tmp=
22068   trap 'exit_status=$?
22069   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22070 ' 0
22071   trap 'as_fn_exit 1' 1 2 13 15
22072 }
22073 # Create a (secure) tmp directory for tmp files.
22074
22075 {
22076   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22077   test -n "$tmp" && test -d "$tmp"
22078 }  ||
22079 {
22080   tmp=./conf$$-$RANDOM
22081   (umask 077 && mkdir "$tmp")
22082 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22083
22084 # Set up the scripts for CONFIG_FILES section.
22085 # No need to generate them if there are no CONFIG_FILES.
22086 # This happens for instance with `./config.status config.h'.
22087 if test -n "$CONFIG_FILES"; then
22088
22089
22090 ac_cr=`echo X | tr X '\015'`
22091 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22092 # But we know of no other shell where ac_cr would be empty at this
22093 # point, so we can use a bashism as a fallback.
22094 if test "x$ac_cr" = x; then
22095   eval ac_cr=\$\'\\r\'
22096 fi
22097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22099   ac_cs_awk_cr='\r'
22100 else
22101   ac_cs_awk_cr=$ac_cr
22102 fi
22103
22104 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22105 _ACEOF
22106
22107
22108 {
22109   echo "cat >conf$$subs.awk <<_ACEOF" &&
22110   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22111   echo "_ACEOF"
22112 } >conf$$subs.sh ||
22113   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22114 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22115 ac_delim='%!_!# '
22116 for ac_last_try in false false false false false :; do
22117   . ./conf$$subs.sh ||
22118     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22119
22120   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22121   if test $ac_delim_n = $ac_delim_num; then
22122     break
22123   elif $ac_last_try; then
22124     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22125   else
22126     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22127   fi
22128 done
22129 rm -f conf$$subs.sh
22130
22131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22132 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22133 _ACEOF
22134 sed -n '
22135 h
22136 s/^/S["/; s/!.*/"]=/
22137 p
22138 g
22139 s/^[^!]*!//
22140 :repl
22141 t repl
22142 s/'"$ac_delim"'$//
22143 t delim
22144 :nl
22145 h
22146 s/\(.\{148\}\).*/\1/
22147 t more1
22148 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22149 p
22150 n
22151 b repl
22152 :more1
22153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22154 p
22155 g
22156 s/.\{148\}//
22157 t nl
22158 :delim
22159 h
22160 s/\(.\{148\}\).*/\1/
22161 t more2
22162 s/["\\]/\\&/g; s/^/"/; s/$/"/
22163 p
22164 b
22165 :more2
22166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22167 p
22168 g
22169 s/.\{148\}//
22170 t delim
22171 ' <conf$$subs.awk | sed '
22172 /^[^""]/{
22173   N
22174   s/\n//
22175 }
22176 ' >>$CONFIG_STATUS || ac_write_fail=1
22177 rm -f conf$$subs.awk
22178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22179 _ACAWK
22180 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22181   for (key in S) S_is_set[key] = 1
22182   FS = "\a"
22183
22184 }
22185 {
22186   line = $ 0
22187   nfields = split(line, field, "@")
22188   substed = 0
22189   len = length(field[1])
22190   for (i = 2; i < nfields; i++) {
22191     key = field[i]
22192     keylen = length(key)
22193     if (S_is_set[key]) {
22194       value = S[key]
22195       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22196       len += length(value) + length(field[++i])
22197       substed = 1
22198     } else
22199       len += 1 + keylen
22200   }
22201
22202   print line
22203 }
22204
22205 _ACAWK
22206 _ACEOF
22207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22208 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22209   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22210 else
22211   cat
22212 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22213   || as_fn_error "could not setup config files machinery" "$LINENO" 5
22214 _ACEOF
22215
22216 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22217 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22218 # trailing colons and then remove the whole line if VPATH becomes empty
22219 # (actually we leave an empty line to preserve line numbers).
22220 if test "x$srcdir" = x.; then
22221   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22222 s/:*\$(srcdir):*/:/
22223 s/:*\${srcdir}:*/:/
22224 s/:*@srcdir@:*/:/
22225 s/^\([^=]*=[     ]*\):*/\1/
22226 s/:*$//
22227 s/^[^=]*=[       ]*$//
22228 }'
22229 fi
22230
22231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22232 fi # test -n "$CONFIG_FILES"
22233
22234
22235 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
22236 shift
22237 for ac_tag
22238 do
22239   case $ac_tag in
22240   :[FHLC]) ac_mode=$ac_tag; continue;;
22241   esac
22242   case $ac_mode$ac_tag in
22243   :[FHL]*:*);;
22244   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22245   :[FH]-) ac_tag=-:-;;
22246   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22247   esac
22248   ac_save_IFS=$IFS
22249   IFS=:
22250   set x $ac_tag
22251   IFS=$ac_save_IFS
22252   shift
22253   ac_file=$1
22254   shift
22255
22256   case $ac_mode in
22257   :L) ac_source=$1;;
22258   :[FH])
22259     ac_file_inputs=
22260     for ac_f
22261     do
22262       case $ac_f in
22263       -) ac_f="$tmp/stdin";;
22264       *) # Look for the file first in the build tree, then in the source tree
22265          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22266          # because $ac_f cannot contain `:'.
22267          test -f "$ac_f" ||
22268            case $ac_f in
22269            [\\/$]*) false;;
22270            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22271            esac ||
22272            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22273       esac
22274       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22275       as_fn_append ac_file_inputs " '$ac_f'"
22276     done
22277
22278     # Let's still pretend it is `configure' which instantiates (i.e., don't
22279     # use $as_me), people would be surprised to read:
22280     #    /* config.h.  Generated by config.status.  */
22281     configure_input='Generated from '`
22282           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22283         `' by configure.'
22284     if test x"$ac_file" != x-; then
22285       configure_input="$ac_file.  $configure_input"
22286       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22287 $as_echo "$as_me: creating $ac_file" >&6;}
22288     fi
22289     # Neutralize special characters interpreted by sed in replacement strings.
22290     case $configure_input in #(
22291     *\&* | *\|* | *\\* )
22292        ac_sed_conf_input=`$as_echo "$configure_input" |
22293        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22294     *) ac_sed_conf_input=$configure_input;;
22295     esac
22296
22297     case $ac_tag in
22298     *:-:* | *:-) cat >"$tmp/stdin" \
22299       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22300     esac
22301     ;;
22302   esac
22303
22304   ac_dir=`$as_dirname -- "$ac_file" ||
22305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22306          X"$ac_file" : 'X\(//\)[^/]' \| \
22307          X"$ac_file" : 'X\(//\)$' \| \
22308          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22309 $as_echo X"$ac_file" |
22310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22311             s//\1/
22312             q
22313           }
22314           /^X\(\/\/\)[^/].*/{
22315             s//\1/
22316             q
22317           }
22318           /^X\(\/\/\)$/{
22319             s//\1/
22320             q
22321           }
22322           /^X\(\/\).*/{
22323             s//\1/
22324             q
22325           }
22326           s/.*/./; q'`
22327   as_dir="$ac_dir"; as_fn_mkdir_p
22328   ac_builddir=.
22329
22330 case "$ac_dir" in
22331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22332 *)
22333   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22334   # A ".." for each directory in $ac_dir_suffix.
22335   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22336   case $ac_top_builddir_sub in
22337   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22338   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22339   esac ;;
22340 esac
22341 ac_abs_top_builddir=$ac_pwd
22342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22343 # for backward compatibility:
22344 ac_top_builddir=$ac_top_build_prefix
22345
22346 case $srcdir in
22347   .)  # We are building in place.
22348     ac_srcdir=.
22349     ac_top_srcdir=$ac_top_builddir_sub
22350     ac_abs_top_srcdir=$ac_pwd ;;
22351   [\\/]* | ?:[\\/]* )  # Absolute name.
22352     ac_srcdir=$srcdir$ac_dir_suffix;
22353     ac_top_srcdir=$srcdir
22354     ac_abs_top_srcdir=$srcdir ;;
22355   *) # Relative name.
22356     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22357     ac_top_srcdir=$ac_top_build_prefix$srcdir
22358     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22359 esac
22360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22361
22362
22363   case $ac_mode in
22364   :F)
22365   #
22366   # CONFIG_FILE
22367   #
22368
22369   case $INSTALL in
22370   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22371   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22372   esac
22373   ac_MKDIR_P=$MKDIR_P
22374   case $MKDIR_P in
22375   [\\/$]* | ?:[\\/]* ) ;;
22376   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22377   esac
22378 _ACEOF
22379
22380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22381 # If the template does not know about datarootdir, expand it.
22382 # FIXME: This hack should be removed a few years after 2.60.
22383 ac_datarootdir_hack=; ac_datarootdir_seen=
22384 ac_sed_dataroot='
22385 /datarootdir/ {
22386   p
22387   q
22388 }
22389 /@datadir@/p
22390 /@docdir@/p
22391 /@infodir@/p
22392 /@localedir@/p
22393 /@mandir@/p'
22394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22395 *datarootdir*) ac_datarootdir_seen=yes;;
22396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22397   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22399 _ACEOF
22400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22401   ac_datarootdir_hack='
22402   s&@datadir@&$datadir&g
22403   s&@docdir@&$docdir&g
22404   s&@infodir@&$infodir&g
22405   s&@localedir@&$localedir&g
22406   s&@mandir@&$mandir&g
22407   s&\\\${datarootdir}&$datarootdir&g' ;;
22408 esac
22409 _ACEOF
22410
22411 # Neutralize VPATH when `$srcdir' = `.'.
22412 # Shell code in configure.ac might set extrasub.
22413 # FIXME: do we really want to maintain this feature?
22414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22415 ac_sed_extra="$ac_vpsub
22416 $extrasub
22417 _ACEOF
22418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22419 :t
22420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22421 s|@configure_input@|$ac_sed_conf_input|;t t
22422 s&@top_builddir@&$ac_top_builddir_sub&;t t
22423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22424 s&@srcdir@&$ac_srcdir&;t t
22425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22426 s&@top_srcdir@&$ac_top_srcdir&;t t
22427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22428 s&@builddir@&$ac_builddir&;t t
22429 s&@abs_builddir@&$ac_abs_builddir&;t t
22430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22431 s&@INSTALL@&$ac_INSTALL&;t t
22432 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22433 $ac_datarootdir_hack
22434 "
22435 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22436   || as_fn_error "could not create $ac_file" "$LINENO" 5
22437
22438 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22439   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22440   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22441   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22442 which seems to be undefined.  Please make sure it is defined." >&5
22443 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22444 which seems to be undefined.  Please make sure it is defined." >&2;}
22445
22446   rm -f "$tmp/stdin"
22447   case $ac_file in
22448   -) cat "$tmp/out" && rm -f "$tmp/out";;
22449   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22450   esac \
22451   || as_fn_error "could not create $ac_file" "$LINENO" 5
22452  ;;
22453
22454
22455   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22456 $as_echo "$as_me: executing $ac_file commands" >&6;}
22457  ;;
22458   esac
22459
22460
22461   case $ac_file$ac_mode in
22462     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22463   # Autoconf 2.62 quotes --file arguments for eval, but not when files
22464   # are listed without --file.  Let's play safe and only enable the eval
22465   # if we detect the quoting.
22466   case $CONFIG_FILES in
22467   *\'*) eval set x "$CONFIG_FILES" ;;
22468   *)   set x $CONFIG_FILES ;;
22469   esac
22470   shift
22471   for mf
22472   do
22473     # Strip MF so we end up with the name of the file.
22474     mf=`echo "$mf" | sed -e 's/:.*$//'`
22475     # Check whether this is an Automake generated Makefile or not.
22476     # We used to match only the files named `Makefile.in', but
22477     # some people rename them; so instead we look at the file content.
22478     # Grep'ing the first line is not enough: some people post-process
22479     # each Makefile.in and add a new line on top of each file to say so.
22480     # Grep'ing the whole file is not good either: AIX grep has a line
22481     # limit of 2048, but all sed's we know have understand at least 4000.
22482     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22483       dirpart=`$as_dirname -- "$mf" ||
22484 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22485          X"$mf" : 'X\(//\)[^/]' \| \
22486          X"$mf" : 'X\(//\)$' \| \
22487          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22488 $as_echo X"$mf" |
22489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22490             s//\1/
22491             q
22492           }
22493           /^X\(\/\/\)[^/].*/{
22494             s//\1/
22495             q
22496           }
22497           /^X\(\/\/\)$/{
22498             s//\1/
22499             q
22500           }
22501           /^X\(\/\).*/{
22502             s//\1/
22503             q
22504           }
22505           s/.*/./; q'`
22506     else
22507       continue
22508     fi
22509     # Extract the definition of DEPDIR, am__include, and am__quote
22510     # from the Makefile without running `make'.
22511     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22512     test -z "$DEPDIR" && continue
22513     am__include=`sed -n 's/^am__include = //p' < "$mf"`
22514     test -z "am__include" && continue
22515     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22516     # When using ansi2knr, U may be empty or an underscore; expand it
22517     U=`sed -n 's/^U = //p' < "$mf"`
22518     # Find all dependency output files, they are included files with
22519     # $(DEPDIR) in their names.  We invoke sed twice because it is the
22520     # simplest approach to changing $(DEPDIR) to its actual value in the
22521     # expansion.
22522     for file in `sed -n "
22523       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22524          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22525       # Make sure the directory exists.
22526       test -f "$dirpart/$file" && continue
22527       fdir=`$as_dirname -- "$file" ||
22528 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22529          X"$file" : 'X\(//\)[^/]' \| \
22530          X"$file" : 'X\(//\)$' \| \
22531          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22532 $as_echo X"$file" |
22533     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22534             s//\1/
22535             q
22536           }
22537           /^X\(\/\/\)[^/].*/{
22538             s//\1/
22539             q
22540           }
22541           /^X\(\/\/\)$/{
22542             s//\1/
22543             q
22544           }
22545           /^X\(\/\).*/{
22546             s//\1/
22547             q
22548           }
22549           s/.*/./; q'`
22550       as_dir=$dirpart/$fdir; as_fn_mkdir_p
22551       # echo "creating $dirpart/$file"
22552       echo '# dummy' > "$dirpart/$file"
22553     done
22554   done
22555 }
22556  ;;
22557     "libtool":C)
22558
22559     # See if we are running on zsh, and set the options which allow our
22560     # commands through without removal of \ escapes.
22561     if test -n "${ZSH_VERSION+set}" ; then
22562       setopt NO_GLOB_SUBST
22563     fi
22564
22565     cfgfile="${ofile}T"
22566     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22567     $RM "$cfgfile"
22568
22569     cat <<_LT_EOF >> "$cfgfile"
22570 #! $SHELL
22571
22572 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22573 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22575 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22576 #
22577 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22578 #                 2006, 2007, 2008 Free Software Foundation, Inc.
22579 #   Written by Gordon Matzigkeit, 1996
22580 #
22581 #   This file is part of GNU Libtool.
22582 #
22583 # GNU Libtool is free software; you can redistribute it and/or
22584 # modify it under the terms of the GNU General Public License as
22585 # published by the Free Software Foundation; either version 2 of
22586 # the License, or (at your option) any later version.
22587 #
22588 # As a special exception to the GNU General Public License,
22589 # if you distribute this file as part of a program or library that
22590 # is built using GNU Libtool, you may include this file under the
22591 # same distribution terms that you use for the rest of that program.
22592 #
22593 # GNU Libtool is distributed in the hope that it will be useful,
22594 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22595 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22596 # GNU General Public License for more details.
22597 #
22598 # You should have received a copy of the GNU General Public License
22599 # along with GNU Libtool; see the file COPYING.  If not, a copy
22600 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22601 # obtained by writing to the Free Software Foundation, Inc.,
22602 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22603
22604
22605 # The names of the tagged configurations supported by this script.
22606 available_tags="CXX F77 "
22607
22608 # ### BEGIN LIBTOOL CONFIG
22609
22610 # Assembler program.
22611 AS=$AS
22612
22613 # DLL creation program.
22614 DLLTOOL=$DLLTOOL
22615
22616 # Object dumper program.
22617 OBJDUMP=$OBJDUMP
22618
22619 # Which release of libtool.m4 was used?
22620 macro_version=$macro_version
22621 macro_revision=$macro_revision
22622
22623 # Whether or not to build shared libraries.
22624 build_libtool_libs=$enable_shared
22625
22626 # Whether or not to build static libraries.
22627 build_old_libs=$enable_static
22628
22629 # What type of objects to build.
22630 pic_mode=$pic_mode
22631
22632 # Whether or not to optimize for fast installation.
22633 fast_install=$enable_fast_install
22634
22635 # The host system.
22636 host_alias=$host_alias
22637 host=$host
22638 host_os=$host_os
22639
22640 # The build system.
22641 build_alias=$build_alias
22642 build=$build
22643 build_os=$build_os
22644
22645 # A sed program that does not truncate output.
22646 SED=$lt_SED
22647
22648 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22649 Xsed="\$SED -e 1s/^X//"
22650
22651 # A grep program that handles long lines.
22652 GREP=$lt_GREP
22653
22654 # An ERE matcher.
22655 EGREP=$lt_EGREP
22656
22657 # A literal string matcher.
22658 FGREP=$lt_FGREP
22659
22660 # A BSD- or MS-compatible name lister.
22661 NM=$lt_NM
22662
22663 # Whether we need soft or hard links.
22664 LN_S=$lt_LN_S
22665
22666 # What is the maximum length of a command?
22667 max_cmd_len=$max_cmd_len
22668
22669 # Object file suffix (normally "o").
22670 objext=$ac_objext
22671
22672 # Executable file suffix (normally "").
22673 exeext=$exeext
22674
22675 # whether the shell understands "unset".
22676 lt_unset=$lt_unset
22677
22678 # turn spaces into newlines.
22679 SP2NL=$lt_lt_SP2NL
22680
22681 # turn newlines into spaces.
22682 NL2SP=$lt_lt_NL2SP
22683
22684 # How to create reloadable object files.
22685 reload_flag=$lt_reload_flag
22686 reload_cmds=$lt_reload_cmds
22687
22688 # Method to check whether dependent libraries are shared objects.
22689 deplibs_check_method=$lt_deplibs_check_method
22690
22691 # Command to use when deplibs_check_method == "file_magic".
22692 file_magic_cmd=$lt_file_magic_cmd
22693
22694 # The archiver.
22695 AR=$lt_AR
22696 AR_FLAGS=$lt_AR_FLAGS
22697
22698 # A symbol stripping program.
22699 STRIP=$lt_STRIP
22700
22701 # Commands used to install an old-style archive.
22702 RANLIB=$lt_RANLIB
22703 old_postinstall_cmds=$lt_old_postinstall_cmds
22704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22705
22706 # A C compiler.
22707 LTCC=$lt_CC
22708
22709 # LTCC compiler flags.
22710 LTCFLAGS=$lt_CFLAGS
22711
22712 # Take the output of nm and produce a listing of raw symbols and C names.
22713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22714
22715 # Transform the output of nm in a proper C declaration.
22716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22717
22718 # Transform the output of nm in a C name address pair.
22719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22720
22721 # Transform the output of nm in a C name address pair when lib prefix is needed.
22722 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22723
22724 # The name of the directory that contains temporary libtool files.
22725 objdir=$objdir
22726
22727 # Shell to use when invoking shell scripts.
22728 SHELL=$lt_SHELL
22729
22730 # An echo program that does not interpret backslashes.
22731 ECHO=$lt_ECHO
22732
22733 # Used to examine libraries when file_magic_cmd begins with "file".
22734 MAGIC_CMD=$MAGIC_CMD
22735
22736 # Must we lock files when doing compilation?
22737 need_locks=$lt_need_locks
22738
22739 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22740 DSYMUTIL=$lt_DSYMUTIL
22741
22742 # Tool to change global to local symbols on Mac OS X.
22743 NMEDIT=$lt_NMEDIT
22744
22745 # Tool to manipulate fat objects and archives on Mac OS X.
22746 LIPO=$lt_LIPO
22747
22748 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22749 OTOOL=$lt_OTOOL
22750
22751 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22752 OTOOL64=$lt_OTOOL64
22753
22754 # Old archive suffix (normally "a").
22755 libext=$libext
22756
22757 # Shared library suffix (normally ".so").
22758 shrext_cmds=$lt_shrext_cmds
22759
22760 # The commands to extract the exported symbol list from a shared archive.
22761 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22762
22763 # Variables whose values should be saved in libtool wrapper scripts and
22764 # restored at link time.
22765 variables_saved_for_relink=$lt_variables_saved_for_relink
22766
22767 # Do we need the "lib" prefix for modules?
22768 need_lib_prefix=$need_lib_prefix
22769
22770 # Do we need a version for libraries?
22771 need_version=$need_version
22772
22773 # Library versioning type.
22774 version_type=$version_type
22775
22776 # Shared library runtime path variable.
22777 runpath_var=$runpath_var
22778
22779 # Shared library path variable.
22780 shlibpath_var=$shlibpath_var
22781
22782 # Is shlibpath searched before the hard-coded library search path?
22783 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22784
22785 # Format of library name prefix.
22786 libname_spec=$lt_libname_spec
22787
22788 # List of archive names.  First name is the real one, the rest are links.
22789 # The last name is the one that the linker finds with -lNAME
22790 library_names_spec=$lt_library_names_spec
22791
22792 # The coded name of the library, if different from the real name.
22793 soname_spec=$lt_soname_spec
22794
22795 # Command to use after installation of a shared archive.
22796 postinstall_cmds=$lt_postinstall_cmds
22797
22798 # Command to use after uninstallation of a shared archive.
22799 postuninstall_cmds=$lt_postuninstall_cmds
22800
22801 # Commands used to finish a libtool library installation in a directory.
22802 finish_cmds=$lt_finish_cmds
22803
22804 # As "finish_cmds", except a single script fragment to be evaled but
22805 # not shown.
22806 finish_eval=$lt_finish_eval
22807
22808 # Whether we should hardcode library paths into libraries.
22809 hardcode_into_libs=$hardcode_into_libs
22810
22811 # Compile-time system search path for libraries.
22812 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22813
22814 # Run-time system search path for libraries.
22815 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22816
22817 # Whether dlopen is supported.
22818 dlopen_support=$enable_dlopen
22819
22820 # Whether dlopen of programs is supported.
22821 dlopen_self=$enable_dlopen_self
22822
22823 # Whether dlopen of statically linked programs is supported.
22824 dlopen_self_static=$enable_dlopen_self_static
22825
22826 # Commands to strip libraries.
22827 old_striplib=$lt_old_striplib
22828 striplib=$lt_striplib
22829
22830
22831 # The linker used to build libraries.
22832 LD=$lt_LD
22833
22834 # Commands used to build an old-style archive.
22835 old_archive_cmds=$lt_old_archive_cmds
22836
22837 # A language specific compiler.
22838 CC=$lt_compiler
22839
22840 # Is the compiler the GNU compiler?
22841 with_gcc=$GCC
22842
22843 # Compiler flag to turn off builtin functions.
22844 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22845
22846 # How to pass a linker flag through the compiler.
22847 wl=$lt_lt_prog_compiler_wl
22848
22849 # Additional compiler flags for building library objects.
22850 pic_flag=$lt_lt_prog_compiler_pic
22851
22852 # Compiler flag to prevent dynamic linking.
22853 link_static_flag=$lt_lt_prog_compiler_static
22854
22855 # Does compiler simultaneously support -c and -o options?
22856 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22857
22858 # Whether or not to add -lc for building shared libraries.
22859 build_libtool_need_lc=$archive_cmds_need_lc
22860
22861 # Whether or not to disallow shared libs when runtime libs are static.
22862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22863
22864 # Compiler flag to allow reflexive dlopens.
22865 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22866
22867 # Compiler flag to generate shared objects directly from archives.
22868 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22869
22870 # Whether the compiler copes with passing no objects directly.
22871 compiler_needs_object=$lt_compiler_needs_object
22872
22873 # Create an old-style archive from a shared archive.
22874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22875
22876 # Create a temporary old-style archive to link instead of a shared archive.
22877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22878
22879 # Commands used to build a shared archive.
22880 archive_cmds=$lt_archive_cmds
22881 archive_expsym_cmds=$lt_archive_expsym_cmds
22882
22883 # Commands used to build a loadable module if different from building
22884 # a shared archive.
22885 module_cmds=$lt_module_cmds
22886 module_expsym_cmds=$lt_module_expsym_cmds
22887
22888 # Whether we are building with GNU ld or not.
22889 with_gnu_ld=$lt_with_gnu_ld
22890
22891 # Flag that allows shared libraries with undefined symbols to be built.
22892 allow_undefined_flag=$lt_allow_undefined_flag
22893
22894 # Flag that enforces no undefined symbols.
22895 no_undefined_flag=$lt_no_undefined_flag
22896
22897 # Flag to hardcode \$libdir into a binary during linking.
22898 # This must work even if \$libdir does not exist
22899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22900
22901 # If ld is used when linking, flag to hardcode \$libdir into a binary
22902 # during linking.  This must work even if \$libdir does not exist.
22903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22904
22905 # Whether we need a single "-rpath" flag with a separated argument.
22906 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22907
22908 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22909 # DIR into the resulting binary.
22910 hardcode_direct=$hardcode_direct
22911
22912 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22913 # DIR into the resulting binary and the resulting library dependency is
22914 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22915 # library is relocated.
22916 hardcode_direct_absolute=$hardcode_direct_absolute
22917
22918 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22919 # into the resulting binary.
22920 hardcode_minus_L=$hardcode_minus_L
22921
22922 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22923 # into the resulting binary.
22924 hardcode_shlibpath_var=$hardcode_shlibpath_var
22925
22926 # Set to "yes" if building a shared library automatically hardcodes DIR
22927 # into the library and all subsequent libraries and executables linked
22928 # against it.
22929 hardcode_automatic=$hardcode_automatic
22930
22931 # Set to yes if linker adds runtime paths of dependent libraries
22932 # to runtime path list.
22933 inherit_rpath=$inherit_rpath
22934
22935 # Whether libtool must link a program against all its dependency libraries.
22936 link_all_deplibs=$link_all_deplibs
22937
22938 # Fix the shell variable \$srcfile for the compiler.
22939 fix_srcfile_path=$lt_fix_srcfile_path
22940
22941 # Set to "yes" if exported symbols are required.
22942 always_export_symbols=$always_export_symbols
22943
22944 # The commands to list exported symbols.
22945 export_symbols_cmds=$lt_export_symbols_cmds
22946
22947 # Symbols that should not be listed in the preloaded symbols.
22948 exclude_expsyms=$lt_exclude_expsyms
22949
22950 # Symbols that must always be exported.
22951 include_expsyms=$lt_include_expsyms
22952
22953 # Commands necessary for linking programs (against libraries) with templates.
22954 prelink_cmds=$lt_prelink_cmds
22955
22956 # Specify filename containing input files.
22957 file_list_spec=$lt_file_list_spec
22958
22959 # How to hardcode a shared library path into an executable.
22960 hardcode_action=$hardcode_action
22961
22962 # The directories searched by this compiler when creating a shared library.
22963 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22964
22965 # Dependencies to place before and after the objects being linked to
22966 # create a shared library.
22967 predep_objects=$lt_predep_objects
22968 postdep_objects=$lt_postdep_objects
22969 predeps=$lt_predeps
22970 postdeps=$lt_postdeps
22971
22972 # The library search path used internally by the compiler when linking
22973 # a shared library.
22974 compiler_lib_search_path=$lt_compiler_lib_search_path
22975
22976 # ### END LIBTOOL CONFIG
22977
22978 _LT_EOF
22979
22980   case $host_os in
22981   aix3*)
22982     cat <<\_LT_EOF >> "$cfgfile"
22983 # AIX sometimes has problems with the GCC collect2 program.  For some
22984 # reason, if we set the COLLECT_NAMES environment variable, the problems
22985 # vanish in a puff of smoke.
22986 if test "X${COLLECT_NAMES+set}" != Xset; then
22987   COLLECT_NAMES=
22988   export COLLECT_NAMES
22989 fi
22990 _LT_EOF
22991     ;;
22992   esac
22993
22994
22995 ltmain="$ac_aux_dir/ltmain.sh"
22996
22997
22998   # We use sed instead of cat because bash on DJGPP gets confused if
22999   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23000   # text mode, it properly converts lines to CR/LF.  This bash problem
23001   # is reportedly fixed, but why not run on old versions too?
23002   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23003     || (rm -f "$cfgfile"; exit 1)
23004
23005   case $xsi_shell in
23006   yes)
23007     cat << \_LT_EOF >> "$cfgfile"
23008
23009 # func_dirname file append nondir_replacement
23010 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23011 # otherwise set result to NONDIR_REPLACEMENT.
23012 func_dirname ()
23013 {
23014   case ${1} in
23015     */*) func_dirname_result="${1%/*}${2}" ;;
23016     *  ) func_dirname_result="${3}" ;;
23017   esac
23018 }
23019
23020 # func_basename file
23021 func_basename ()
23022 {
23023   func_basename_result="${1##*/}"
23024 }
23025
23026 # func_dirname_and_basename file append nondir_replacement
23027 # perform func_basename and func_dirname in a single function
23028 # call:
23029 #   dirname:  Compute the dirname of FILE.  If nonempty,
23030 #             add APPEND to the result, otherwise set result
23031 #             to NONDIR_REPLACEMENT.
23032 #             value returned in "$func_dirname_result"
23033 #   basename: Compute filename of FILE.
23034 #             value retuned in "$func_basename_result"
23035 # Implementation must be kept synchronized with func_dirname
23036 # and func_basename. For efficiency, we do not delegate to
23037 # those functions but instead duplicate the functionality here.
23038 func_dirname_and_basename ()
23039 {
23040   case ${1} in
23041     */*) func_dirname_result="${1%/*}${2}" ;;
23042     *  ) func_dirname_result="${3}" ;;
23043   esac
23044   func_basename_result="${1##*/}"
23045 }
23046
23047 # func_stripname prefix suffix name
23048 # strip PREFIX and SUFFIX off of NAME.
23049 # PREFIX and SUFFIX must not contain globbing or regex special
23050 # characters, hashes, percent signs, but SUFFIX may contain a leading
23051 # dot (in which case that matches only a dot).
23052 func_stripname ()
23053 {
23054   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23055   # positional parameters, so assign one to ordinary parameter first.
23056   func_stripname_result=${3}
23057   func_stripname_result=${func_stripname_result#"${1}"}
23058   func_stripname_result=${func_stripname_result%"${2}"}
23059 }
23060
23061 # func_opt_split
23062 func_opt_split ()
23063 {
23064   func_opt_split_opt=${1%%=*}
23065   func_opt_split_arg=${1#*=}
23066 }
23067
23068 # func_lo2o object
23069 func_lo2o ()
23070 {
23071   case ${1} in
23072     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23073     *)    func_lo2o_result=${1} ;;
23074   esac
23075 }
23076
23077 # func_xform libobj-or-source
23078 func_xform ()
23079 {
23080   func_xform_result=${1%.*}.lo
23081 }
23082
23083 # func_arith arithmetic-term...
23084 func_arith ()
23085 {
23086   func_arith_result=$(( $* ))
23087 }
23088
23089 # func_len string
23090 # STRING may not start with a hyphen.
23091 func_len ()
23092 {
23093   func_len_result=${#1}
23094 }
23095
23096 _LT_EOF
23097     ;;
23098   *) # Bourne compatible functions.
23099     cat << \_LT_EOF >> "$cfgfile"
23100
23101 # func_dirname file append nondir_replacement
23102 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23103 # otherwise set result to NONDIR_REPLACEMENT.
23104 func_dirname ()
23105 {
23106   # Extract subdirectory from the argument.
23107   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23108   if test "X$func_dirname_result" = "X${1}"; then
23109     func_dirname_result="${3}"
23110   else
23111     func_dirname_result="$func_dirname_result${2}"
23112   fi
23113 }
23114
23115 # func_basename file
23116 func_basename ()
23117 {
23118   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23119 }
23120
23121
23122 # func_stripname prefix suffix name
23123 # strip PREFIX and SUFFIX off of NAME.
23124 # PREFIX and SUFFIX must not contain globbing or regex special
23125 # characters, hashes, percent signs, but SUFFIX may contain a leading
23126 # dot (in which case that matches only a dot).
23127 # func_strip_suffix prefix name
23128 func_stripname ()
23129 {
23130   case ${2} in
23131     .*) func_stripname_result=`$ECHO "X${3}" \
23132            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23133     *)  func_stripname_result=`$ECHO "X${3}" \
23134            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23135   esac
23136 }
23137
23138 # sed scripts:
23139 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23140 my_sed_long_arg='1s/^-[^=]*=//'
23141
23142 # func_opt_split
23143 func_opt_split ()
23144 {
23145   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23146   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23147 }
23148
23149 # func_lo2o object
23150 func_lo2o ()
23151 {
23152   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23153 }
23154
23155 # func_xform libobj-or-source
23156 func_xform ()
23157 {
23158   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23159 }
23160
23161 # func_arith arithmetic-term...
23162 func_arith ()
23163 {
23164   func_arith_result=`expr "$@"`
23165 }
23166
23167 # func_len string
23168 # STRING may not start with a hyphen.
23169 func_len ()
23170 {
23171   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23172 }
23173
23174 _LT_EOF
23175 esac
23176
23177 case $lt_shell_append in
23178   yes)
23179     cat << \_LT_EOF >> "$cfgfile"
23180
23181 # func_append var value
23182 # Append VALUE to the end of shell variable VAR.
23183 func_append ()
23184 {
23185   eval "$1+=\$2"
23186 }
23187 _LT_EOF
23188     ;;
23189   *)
23190     cat << \_LT_EOF >> "$cfgfile"
23191
23192 # func_append var value
23193 # Append VALUE to the end of shell variable VAR.
23194 func_append ()
23195 {
23196   eval "$1=\$$1\$2"
23197 }
23198
23199 _LT_EOF
23200     ;;
23201   esac
23202
23203
23204   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23205     || (rm -f "$cfgfile"; exit 1)
23206
23207   mv -f "$cfgfile" "$ofile" ||
23208     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23209   chmod +x "$ofile"
23210
23211
23212     cat <<_LT_EOF >> "$ofile"
23213
23214 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23215
23216 # The linker used to build libraries.
23217 LD=$lt_LD_CXX
23218
23219 # Commands used to build an old-style archive.
23220 old_archive_cmds=$lt_old_archive_cmds_CXX
23221
23222 # A language specific compiler.
23223 CC=$lt_compiler_CXX
23224
23225 # Is the compiler the GNU compiler?
23226 with_gcc=$GCC_CXX
23227
23228 # Compiler flag to turn off builtin functions.
23229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23230
23231 # How to pass a linker flag through the compiler.
23232 wl=$lt_lt_prog_compiler_wl_CXX
23233
23234 # Additional compiler flags for building library objects.
23235 pic_flag=$lt_lt_prog_compiler_pic_CXX
23236
23237 # Compiler flag to prevent dynamic linking.
23238 link_static_flag=$lt_lt_prog_compiler_static_CXX
23239
23240 # Does compiler simultaneously support -c and -o options?
23241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23242
23243 # Whether or not to add -lc for building shared libraries.
23244 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23245
23246 # Whether or not to disallow shared libs when runtime libs are static.
23247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23248
23249 # Compiler flag to allow reflexive dlopens.
23250 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23251
23252 # Compiler flag to generate shared objects directly from archives.
23253 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23254
23255 # Whether the compiler copes with passing no objects directly.
23256 compiler_needs_object=$lt_compiler_needs_object_CXX
23257
23258 # Create an old-style archive from a shared archive.
23259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23260
23261 # Create a temporary old-style archive to link instead of a shared archive.
23262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23263
23264 # Commands used to build a shared archive.
23265 archive_cmds=$lt_archive_cmds_CXX
23266 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23267
23268 # Commands used to build a loadable module if different from building
23269 # a shared archive.
23270 module_cmds=$lt_module_cmds_CXX
23271 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23272
23273 # Whether we are building with GNU ld or not.
23274 with_gnu_ld=$lt_with_gnu_ld_CXX
23275
23276 # Flag that allows shared libraries with undefined symbols to be built.
23277 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23278
23279 # Flag that enforces no undefined symbols.
23280 no_undefined_flag=$lt_no_undefined_flag_CXX
23281
23282 # Flag to hardcode \$libdir into a binary during linking.
23283 # This must work even if \$libdir does not exist
23284 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23285
23286 # If ld is used when linking, flag to hardcode \$libdir into a binary
23287 # during linking.  This must work even if \$libdir does not exist.
23288 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23289
23290 # Whether we need a single "-rpath" flag with a separated argument.
23291 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23292
23293 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23294 # DIR into the resulting binary.
23295 hardcode_direct=$hardcode_direct_CXX
23296
23297 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23298 # DIR into the resulting binary and the resulting library dependency is
23299 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23300 # library is relocated.
23301 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23302
23303 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23304 # into the resulting binary.
23305 hardcode_minus_L=$hardcode_minus_L_CXX
23306
23307 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23308 # into the resulting binary.
23309 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23310
23311 # Set to "yes" if building a shared library automatically hardcodes DIR
23312 # into the library and all subsequent libraries and executables linked
23313 # against it.
23314 hardcode_automatic=$hardcode_automatic_CXX
23315
23316 # Set to yes if linker adds runtime paths of dependent libraries
23317 # to runtime path list.
23318 inherit_rpath=$inherit_rpath_CXX
23319
23320 # Whether libtool must link a program against all its dependency libraries.
23321 link_all_deplibs=$link_all_deplibs_CXX
23322
23323 # Fix the shell variable \$srcfile for the compiler.
23324 fix_srcfile_path=$lt_fix_srcfile_path_CXX
23325
23326 # Set to "yes" if exported symbols are required.
23327 always_export_symbols=$always_export_symbols_CXX
23328
23329 # The commands to list exported symbols.
23330 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23331
23332 # Symbols that should not be listed in the preloaded symbols.
23333 exclude_expsyms=$lt_exclude_expsyms_CXX
23334
23335 # Symbols that must always be exported.
23336 include_expsyms=$lt_include_expsyms_CXX
23337
23338 # Commands necessary for linking programs (against libraries) with templates.
23339 prelink_cmds=$lt_prelink_cmds_CXX
23340
23341 # Specify filename containing input files.
23342 file_list_spec=$lt_file_list_spec_CXX
23343
23344 # How to hardcode a shared library path into an executable.
23345 hardcode_action=$hardcode_action_CXX
23346
23347 # The directories searched by this compiler when creating a shared library.
23348 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23349
23350 # Dependencies to place before and after the objects being linked to
23351 # create a shared library.
23352 predep_objects=$lt_predep_objects_CXX
23353 postdep_objects=$lt_postdep_objects_CXX
23354 predeps=$lt_predeps_CXX
23355 postdeps=$lt_postdeps_CXX
23356
23357 # The library search path used internally by the compiler when linking
23358 # a shared library.
23359 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23360
23361 # ### END LIBTOOL TAG CONFIG: CXX
23362 _LT_EOF
23363
23364
23365     cat <<_LT_EOF >> "$ofile"
23366
23367 # ### BEGIN LIBTOOL TAG CONFIG: F77
23368
23369 # The linker used to build libraries.
23370 LD=$lt_LD_F77
23371
23372 # Commands used to build an old-style archive.
23373 old_archive_cmds=$lt_old_archive_cmds_F77
23374
23375 # A language specific compiler.
23376 CC=$lt_compiler_F77
23377
23378 # Is the compiler the GNU compiler?
23379 with_gcc=$GCC_F77
23380
23381 # Compiler flag to turn off builtin functions.
23382 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23383
23384 # How to pass a linker flag through the compiler.
23385 wl=$lt_lt_prog_compiler_wl_F77
23386
23387 # Additional compiler flags for building library objects.
23388 pic_flag=$lt_lt_prog_compiler_pic_F77
23389
23390 # Compiler flag to prevent dynamic linking.
23391 link_static_flag=$lt_lt_prog_compiler_static_F77
23392
23393 # Does compiler simultaneously support -c and -o options?
23394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23395
23396 # Whether or not to add -lc for building shared libraries.
23397 build_libtool_need_lc=$archive_cmds_need_lc_F77
23398
23399 # Whether or not to disallow shared libs when runtime libs are static.
23400 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23401
23402 # Compiler flag to allow reflexive dlopens.
23403 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23404
23405 # Compiler flag to generate shared objects directly from archives.
23406 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23407
23408 # Whether the compiler copes with passing no objects directly.
23409 compiler_needs_object=$lt_compiler_needs_object_F77
23410
23411 # Create an old-style archive from a shared archive.
23412 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23413
23414 # Create a temporary old-style archive to link instead of a shared archive.
23415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23416
23417 # Commands used to build a shared archive.
23418 archive_cmds=$lt_archive_cmds_F77
23419 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23420
23421 # Commands used to build a loadable module if different from building
23422 # a shared archive.
23423 module_cmds=$lt_module_cmds_F77
23424 module_expsym_cmds=$lt_module_expsym_cmds_F77
23425
23426 # Whether we are building with GNU ld or not.
23427 with_gnu_ld=$lt_with_gnu_ld_F77
23428
23429 # Flag that allows shared libraries with undefined symbols to be built.
23430 allow_undefined_flag=$lt_allow_undefined_flag_F77
23431
23432 # Flag that enforces no undefined symbols.
23433 no_undefined_flag=$lt_no_undefined_flag_F77
23434
23435 # Flag to hardcode \$libdir into a binary during linking.
23436 # This must work even if \$libdir does not exist
23437 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23438
23439 # If ld is used when linking, flag to hardcode \$libdir into a binary
23440 # during linking.  This must work even if \$libdir does not exist.
23441 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23442
23443 # Whether we need a single "-rpath" flag with a separated argument.
23444 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23445
23446 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23447 # DIR into the resulting binary.
23448 hardcode_direct=$hardcode_direct_F77
23449
23450 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23451 # DIR into the resulting binary and the resulting library dependency is
23452 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23453 # library is relocated.
23454 hardcode_direct_absolute=$hardcode_direct_absolute_F77
23455
23456 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23457 # into the resulting binary.
23458 hardcode_minus_L=$hardcode_minus_L_F77
23459
23460 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23461 # into the resulting binary.
23462 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23463
23464 # Set to "yes" if building a shared library automatically hardcodes DIR
23465 # into the library and all subsequent libraries and executables linked
23466 # against it.
23467 hardcode_automatic=$hardcode_automatic_F77
23468
23469 # Set to yes if linker adds runtime paths of dependent libraries
23470 # to runtime path list.
23471 inherit_rpath=$inherit_rpath_F77
23472
23473 # Whether libtool must link a program against all its dependency libraries.
23474 link_all_deplibs=$link_all_deplibs_F77
23475
23476 # Fix the shell variable \$srcfile for the compiler.
23477 fix_srcfile_path=$lt_fix_srcfile_path_F77
23478
23479 # Set to "yes" if exported symbols are required.
23480 always_export_symbols=$always_export_symbols_F77
23481
23482 # The commands to list exported symbols.
23483 export_symbols_cmds=$lt_export_symbols_cmds_F77
23484
23485 # Symbols that should not be listed in the preloaded symbols.
23486 exclude_expsyms=$lt_exclude_expsyms_F77
23487
23488 # Symbols that must always be exported.
23489 include_expsyms=$lt_include_expsyms_F77
23490
23491 # Commands necessary for linking programs (against libraries) with templates.
23492 prelink_cmds=$lt_prelink_cmds_F77
23493
23494 # Specify filename containing input files.
23495 file_list_spec=$lt_file_list_spec_F77
23496
23497 # How to hardcode a shared library path into an executable.
23498 hardcode_action=$hardcode_action_F77
23499
23500 # The directories searched by this compiler when creating a shared library.
23501 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
23502
23503 # Dependencies to place before and after the objects being linked to
23504 # create a shared library.
23505 predep_objects=$lt_predep_objects_F77
23506 postdep_objects=$lt_postdep_objects_F77
23507 predeps=$lt_predeps_F77
23508 postdeps=$lt_postdeps_F77
23509
23510 # The library search path used internally by the compiler when linking
23511 # a shared library.
23512 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23513
23514 # ### END LIBTOOL TAG CONFIG: F77
23515 _LT_EOF
23516
23517  ;;
23518
23519   esac
23520 done # for ac_tag
23521
23522
23523 as_fn_exit 0
23524 _ACEOF
23525 ac_clean_files=$ac_clean_files_save
23526
23527 test $ac_write_fail = 0 ||
23528   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23529
23530
23531 # configure is writing to config.log, and then calls config.status.
23532 # config.status does its own redirection, appending to config.log.
23533 # Unfortunately, on DOS this fails, as config.log is still kept open
23534 # by configure, so config.status won't be able to write to it; its
23535 # output is simply discarded.  So we exec the FD to /dev/null,
23536 # effectively closing config.log, so it can be properly (re)opened and
23537 # appended to by config.status.  When coming back to configure, we
23538 # need to make the FD available again.
23539 if test "$no_create" != yes; then
23540   ac_cs_success=:
23541   ac_config_status_args=
23542   test "$silent" = yes &&
23543     ac_config_status_args="$ac_config_status_args --quiet"
23544   exec 5>/dev/null
23545   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23546   exec 5>>config.log
23547   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23548   # would make configure fail if this is the last instruction.
23549   $ac_cs_success || as_fn_exit $?
23550 fi
23551 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23552   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23553 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23554 fi
23555
23556