Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / f77demo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for f77demo 1.0.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='f77demo'
572 PACKAGE_TARNAME='f77demo'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='f77demo 1.0'
575 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
576 PACKAGE_URL=''
577
578 ac_unique_file="foof.f"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 LIBTOOL_DEPS
620 CPP
621 OTOOL64
622 OTOOL
623 LIPO
624 NMEDIT
625 DSYMUTIL
626 MANIFEST_TOOL
627 RANLIB
628 ac_ct_AR
629 AR
630 DLLTOOL
631 OBJDUMP
632 LN_S
633 NM
634 ac_ct_DUMPBIN
635 DUMPBIN
636 LD
637 FGREP
638 EGREP
639 GREP
640 SED
641 host_os
642 host_vendor
643 host_cpu
644 host
645 build_os
646 build_vendor
647 build_cpu
648 build
649 LIBTOOL
650 FLIBS
651 ac_ct_F77
652 FFLAGS
653 F77
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__quote
661 am__include
662 DEPDIR
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
669 CC
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files=''
732 ac_user_opts='
733 enable_option_checking
734 with_dist
735 enable_dependency_tracking
736 enable_shared
737 enable_static
738 with_pic
739 enable_fast_install
740 with_gnu_ld
741 with_sysroot
742 enable_libtool_lock
743 '
744       ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CC
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
752 F77
753 FFLAGS
754 CPP'
755
756
757 # Initialize some variables set by options.
758 ac_init_help=
759 ac_init_version=false
760 ac_unrecognized_opts=
761 ac_unrecognized_sep=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
778
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
804
805 ac_prev=
806 ac_dashdash=
807 for ac_option
808 do
809   # If the previous option needs an argument, assign it.
810   if test -n "$ac_prev"; then
811     eval $ac_prev=\$ac_option
812     ac_prev=
813     continue
814   fi
815
816   case $ac_option in
817   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818   *=)   ac_optarg= ;;
819   *)    ac_optarg=yes ;;
820   esac
821
822   # Accept the important Cygnus configure options, so we can diagnose typos.
823
824   case $ac_dashdash$ac_option in
825   --)
826     ac_dashdash=yes ;;
827
828   -bindir | --bindir | --bindi | --bind | --bin | --bi)
829     ac_prev=bindir ;;
830   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831     bindir=$ac_optarg ;;
832
833   -build | --build | --buil | --bui | --bu)
834     ac_prev=build_alias ;;
835   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836     build_alias=$ac_optarg ;;
837
838   -cache-file | --cache-file | --cache-fil | --cache-fi \
839   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840     ac_prev=cache_file ;;
841   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843     cache_file=$ac_optarg ;;
844
845   --config-cache | -C)
846     cache_file=config.cache ;;
847
848   -datadir | --datadir | --datadi | --datad)
849     ac_prev=datadir ;;
850   -datadir=* | --datadir=* | --datadi=* | --datad=*)
851     datadir=$ac_optarg ;;
852
853   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854   | --dataroo | --dataro | --datar)
855     ac_prev=datarootdir ;;
856   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858     datarootdir=$ac_optarg ;;
859
860   -disable-* | --disable-*)
861     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862     # Reject names that are not valid shell variable names.
863     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864       as_fn_error $? "invalid feature name: $ac_useropt"
865     ac_useropt_orig=$ac_useropt
866     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867     case $ac_user_opts in
868       *"
869 "enable_$ac_useropt"
870 "*) ;;
871       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872          ac_unrecognized_sep=', ';;
873     esac
874     eval enable_$ac_useropt=no ;;
875
876   -docdir | --docdir | --docdi | --doc | --do)
877     ac_prev=docdir ;;
878   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879     docdir=$ac_optarg ;;
880
881   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882     ac_prev=dvidir ;;
883   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884     dvidir=$ac_optarg ;;
885
886   -enable-* | --enable-*)
887     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888     # Reject names that are not valid shell variable names.
889     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890       as_fn_error $? "invalid feature name: $ac_useropt"
891     ac_useropt_orig=$ac_useropt
892     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893     case $ac_user_opts in
894       *"
895 "enable_$ac_useropt"
896 "*) ;;
897       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898          ac_unrecognized_sep=', ';;
899     esac
900     eval enable_$ac_useropt=\$ac_optarg ;;
901
902   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904   | --exec | --exe | --ex)
905     ac_prev=exec_prefix ;;
906   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908   | --exec=* | --exe=* | --ex=*)
909     exec_prefix=$ac_optarg ;;
910
911   -gas | --gas | --ga | --g)
912     # Obsolete; use --with-gas.
913     with_gas=yes ;;
914
915   -help | --help | --hel | --he | -h)
916     ac_init_help=long ;;
917   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918     ac_init_help=recursive ;;
919   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920     ac_init_help=short ;;
921
922   -host | --host | --hos | --ho)
923     ac_prev=host_alias ;;
924   -host=* | --host=* | --hos=* | --ho=*)
925     host_alias=$ac_optarg ;;
926
927   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928     ac_prev=htmldir ;;
929   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930   | --ht=*)
931     htmldir=$ac_optarg ;;
932
933   -includedir | --includedir | --includedi | --included | --include \
934   | --includ | --inclu | --incl | --inc)
935     ac_prev=includedir ;;
936   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937   | --includ=* | --inclu=* | --incl=* | --inc=*)
938     includedir=$ac_optarg ;;
939
940   -infodir | --infodir | --infodi | --infod | --info | --inf)
941     ac_prev=infodir ;;
942   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943     infodir=$ac_optarg ;;
944
945   -libdir | --libdir | --libdi | --libd)
946     ac_prev=libdir ;;
947   -libdir=* | --libdir=* | --libdi=* | --libd=*)
948     libdir=$ac_optarg ;;
949
950   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951   | --libexe | --libex | --libe)
952     ac_prev=libexecdir ;;
953   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954   | --libexe=* | --libex=* | --libe=*)
955     libexecdir=$ac_optarg ;;
956
957   -localedir | --localedir | --localedi | --localed | --locale)
958     ac_prev=localedir ;;
959   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960     localedir=$ac_optarg ;;
961
962   -localstatedir | --localstatedir | --localstatedi | --localstated \
963   | --localstate | --localstat | --localsta | --localst | --locals)
964     ac_prev=localstatedir ;;
965   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967     localstatedir=$ac_optarg ;;
968
969   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970     ac_prev=mandir ;;
971   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972     mandir=$ac_optarg ;;
973
974   -nfp | --nfp | --nf)
975     # Obsolete; use --without-fp.
976     with_fp=no ;;
977
978   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979   | --no-cr | --no-c | -n)
980     no_create=yes ;;
981
982   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984     no_recursion=yes ;;
985
986   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988   | --oldin | --oldi | --old | --ol | --o)
989     ac_prev=oldincludedir ;;
990   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993     oldincludedir=$ac_optarg ;;
994
995   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996     ac_prev=prefix ;;
997   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998     prefix=$ac_optarg ;;
999
1000   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001   | --program-pre | --program-pr | --program-p)
1002     ac_prev=program_prefix ;;
1003   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005     program_prefix=$ac_optarg ;;
1006
1007   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008   | --program-suf | --program-su | --program-s)
1009     ac_prev=program_suffix ;;
1010   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012     program_suffix=$ac_optarg ;;
1013
1014   -program-transform-name | --program-transform-name \
1015   | --program-transform-nam | --program-transform-na \
1016   | --program-transform-n | --program-transform- \
1017   | --program-transform | --program-transfor \
1018   | --program-transfo | --program-transf \
1019   | --program-trans | --program-tran \
1020   | --progr-tra | --program-tr | --program-t)
1021     ac_prev=program_transform_name ;;
1022   -program-transform-name=* | --program-transform-name=* \
1023   | --program-transform-nam=* | --program-transform-na=* \
1024   | --program-transform-n=* | --program-transform-=* \
1025   | --program-transform=* | --program-transfor=* \
1026   | --program-transfo=* | --program-transf=* \
1027   | --program-trans=* | --program-tran=* \
1028   | --progr-tra=* | --program-tr=* | --program-t=*)
1029     program_transform_name=$ac_optarg ;;
1030
1031   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032     ac_prev=pdfdir ;;
1033   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034     pdfdir=$ac_optarg ;;
1035
1036   -psdir | --psdir | --psdi | --psd | --ps)
1037     ac_prev=psdir ;;
1038   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039     psdir=$ac_optarg ;;
1040
1041   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042   | -silent | --silent | --silen | --sile | --sil)
1043     silent=yes ;;
1044
1045   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046     ac_prev=sbindir ;;
1047   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048   | --sbi=* | --sb=*)
1049     sbindir=$ac_optarg ;;
1050
1051   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053   | --sharedst | --shareds | --shared | --share | --shar \
1054   | --sha | --sh)
1055     ac_prev=sharedstatedir ;;
1056   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059   | --sha=* | --sh=*)
1060     sharedstatedir=$ac_optarg ;;
1061
1062   -site | --site | --sit)
1063     ac_prev=site ;;
1064   -site=* | --site=* | --sit=*)
1065     site=$ac_optarg ;;
1066
1067   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068     ac_prev=srcdir ;;
1069   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070     srcdir=$ac_optarg ;;
1071
1072   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073   | --syscon | --sysco | --sysc | --sys | --sy)
1074     ac_prev=sysconfdir ;;
1075   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077     sysconfdir=$ac_optarg ;;
1078
1079   -target | --target | --targe | --targ | --tar | --ta | --t)
1080     ac_prev=target_alias ;;
1081   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082     target_alias=$ac_optarg ;;
1083
1084   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085     verbose=yes ;;
1086
1087   -version | --version | --versio | --versi | --vers | -V)
1088     ac_init_version=: ;;
1089
1090   -with-* | --with-*)
1091     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094       as_fn_error $? "invalid package name: $ac_useropt"
1095     ac_useropt_orig=$ac_useropt
1096     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097     case $ac_user_opts in
1098       *"
1099 "with_$ac_useropt"
1100 "*) ;;
1101       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102          ac_unrecognized_sep=', ';;
1103     esac
1104     eval with_$ac_useropt=\$ac_optarg ;;
1105
1106   -without-* | --without-*)
1107     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108     # Reject names that are not valid shell variable names.
1109     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110       as_fn_error $? "invalid package name: $ac_useropt"
1111     ac_useropt_orig=$ac_useropt
1112     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113     case $ac_user_opts in
1114       *"
1115 "with_$ac_useropt"
1116 "*) ;;
1117       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118          ac_unrecognized_sep=', ';;
1119     esac
1120     eval with_$ac_useropt=no ;;
1121
1122   --x)
1123     # Obsolete; use --with-x.
1124     with_x=yes ;;
1125
1126   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127   | --x-incl | --x-inc | --x-in | --x-i)
1128     ac_prev=x_includes ;;
1129   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131     x_includes=$ac_optarg ;;
1132
1133   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135     ac_prev=x_libraries ;;
1136   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138     x_libraries=$ac_optarg ;;
1139
1140   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information"
1142     ;;
1143
1144   *=*)
1145     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146     # Reject names that are not valid shell variable names.
1147     case $ac_envvar in #(
1148       '' | [0-9]* | *[!_$as_cr_alnum]* )
1149       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150     esac
1151     eval $ac_envvar=\$ac_optarg
1152     export $ac_envvar ;;
1153
1154   *)
1155     # FIXME: should be removed in autoconf 3.0.
1156     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1160     ;;
1161
1162   esac
1163 done
1164
1165 if test -n "$ac_prev"; then
1166   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167   as_fn_error $? "missing argument to $ac_option"
1168 fi
1169
1170 if test -n "$ac_unrecognized_opts"; then
1171   case $enable_option_checking in
1172     no) ;;
1173     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175   esac
1176 fi
1177
1178 # Check all directory arguments for consistency.
1179 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180                 datadir sysconfdir sharedstatedir localstatedir includedir \
1181                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182                 libdir localedir mandir
1183 do
1184   eval ac_val=\$$ac_var
1185   # Remove trailing slashes.
1186   case $ac_val in
1187     */ )
1188       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189       eval $ac_var=\$ac_val;;
1190   esac
1191   # Be sure to have absolute directory names.
1192   case $ac_val in
1193     [\\/$]* | ?:[\\/]* )  continue;;
1194     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195   esac
1196   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197 done
1198
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1202 build=$build_alias
1203 host=$host_alias
1204 target=$target_alias
1205
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208   if test "x$build_alias" = x; then
1209     cross_compiling=maybe
1210     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1211     If a cross compiler is detected then cross compile mode will be used" >&2
1212   elif test "x$build_alias" != "x$host_alias"; then
1213     cross_compiling=yes
1214   fi
1215 fi
1216
1217 ac_tool_prefix=
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219
1220 test "$silent" = yes && exec 6>/dev/null
1221
1222
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226   as_fn_error $? "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228   as_fn_error $? "pwd does not report name of working directory"
1229
1230
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233   ac_srcdir_defaulted=yes
1234   # Try the directory containing this script, then the parent directory.
1235   ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237          X"$as_myself" : 'X\(//\)[^/]' \| \
1238          X"$as_myself" : 'X\(//\)$' \| \
1239          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242             s//\1/
1243             q
1244           }
1245           /^X\(\/\/\)[^/].*/{
1246             s//\1/
1247             q
1248           }
1249           /^X\(\/\/\)$/{
1250             s//\1/
1251             q
1252           }
1253           /^X\(\/\).*/{
1254             s//\1/
1255             q
1256           }
1257           s/.*/./; q'`
1258   srcdir=$ac_confdir
1259   if test ! -r "$srcdir/$ac_unique_file"; then
1260     srcdir=..
1261   fi
1262 else
1263   ac_srcdir_defaulted=no
1264 fi
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1268 fi
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 ac_abs_confdir=`(
1271         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1272         pwd)`
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275   srcdir=.
1276 fi
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1280 case $srcdir in
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 esac
1283 for ac_var in $ac_precious_vars; do
1284   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285   eval ac_env_${ac_var}_value=\$${ac_var}
1286   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 done
1289
1290 #
1291 # Report the --help message.
1292 #
1293 if test "$ac_init_help" = "long"; then
1294   # Omit some internal or obsolete options to make the list less imposing.
1295   # This message is too long to be a string in the A/UX 3.1 sh.
1296   cat <<_ACEOF
1297 \`configure' configures f77demo 1.0 to adapt to many kinds of systems.
1298
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1300
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE.  See below for descriptions of some of the useful variables.
1303
1304 Defaults for the options are specified in brackets.
1305
1306 Configuration:
1307   -h, --help              display this help and exit
1308       --help=short        display options specific to this package
1309       --help=recursive    display the short help of all the included packages
1310   -V, --version           display version information and exit
1311   -q, --quiet, --silent   do not print \`checking ...' messages
1312       --cache-file=FILE   cache test results in FILE [disabled]
1313   -C, --config-cache      alias for \`--cache-file=config.cache'
1314   -n, --no-create         do not create output files
1315       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1316
1317 Installation directories:
1318   --prefix=PREFIX         install architecture-independent files in PREFIX
1319                           [$ac_default_prefix]
1320   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1321                           [PREFIX]
1322
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1327
1328 For better control, use the options below.
1329
1330 Fine tuning of the installation directories:
1331   --bindir=DIR            user executables [EPREFIX/bin]
1332   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1333   --libexecdir=DIR        program executables [EPREFIX/libexec]
1334   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1335   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1336   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1337   --libdir=DIR            object code libraries [EPREFIX/lib]
1338   --includedir=DIR        C header files [PREFIX/include]
1339   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1340   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1341   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1342   --infodir=DIR           info documentation [DATAROOTDIR/info]
1343   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1344   --mandir=DIR            man documentation [DATAROOTDIR/man]
1345   --docdir=DIR            documentation root [DATAROOTDIR/doc/f77demo]
1346   --htmldir=DIR           html documentation [DOCDIR]
1347   --dvidir=DIR            dvi documentation [DOCDIR]
1348   --pdfdir=DIR            pdf documentation [DOCDIR]
1349   --psdir=DIR             ps documentation [DOCDIR]
1350 _ACEOF
1351
1352   cat <<\_ACEOF
1353
1354 Program names:
1355   --program-prefix=PREFIX            prepend PREFIX to installed program names
1356   --program-suffix=SUFFIX            append SUFFIX to installed program names
1357   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1358
1359 System types:
1360   --build=BUILD     configure for building on BUILD [guessed]
1361   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1362 _ACEOF
1363 fi
1364
1365 if test -n "$ac_init_help"; then
1366   case $ac_init_help in
1367      short | recursive ) echo "Configuration of f77demo 1.0:";;
1368    esac
1369   cat <<\_ACEOF
1370
1371 Optional Features:
1372   --disable-option-checking  ignore unrecognized --enable/--with options
1373   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1374   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1375   --disable-dependency-tracking  speeds up one-time build
1376   --enable-dependency-tracking   do not reject slow dependency extractors
1377   --enable-shared[=PKGS]  build shared libraries [default=yes]
1378   --enable-static[=PKGS]  build static libraries [default=yes]
1379   --enable-fast-install[=PKGS]
1380                           optimize for fast installation [default=yes]
1381   --disable-libtool-lock  avoid locking (might break parallel builds)
1382
1383 Optional Packages:
1384   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1385   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1386   --with-dist             ignore errors not affecting `make dist'
1387   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1388                           both]
1389   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1390   --with-sysroot=DIR Search for dependent libraries within DIR
1391                         (or the compiler's sysroot if not specified).
1392
1393 Some influential environment variables:
1394   CC          C compiler command
1395   CFLAGS      C compiler flags
1396   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1397               nonstandard directory <lib dir>
1398   LIBS        libraries to pass to the linker, e.g. -l<library>
1399   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1400               you have headers in a nonstandard directory <include dir>
1401   F77         Fortran 77 compiler command
1402   FFLAGS      Fortran 77 compiler flags
1403   CPP         C preprocessor
1404
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1407
1408 Report bugs to <bug-libtool@gnu.org>.
1409 _ACEOF
1410 ac_status=$?
1411 fi
1412
1413 if test "$ac_init_help" = "recursive"; then
1414   # If there are subdirs, report their specific --help.
1415   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416     test -d "$ac_dir" ||
1417       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1418       continue
1419     ac_builddir=.
1420
1421 case "$ac_dir" in
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *)
1424   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425   # A ".." for each directory in $ac_dir_suffix.
1426   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427   case $ac_top_builddir_sub in
1428   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430   esac ;;
1431 esac
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1436
1437 case $srcdir in
1438   .)  # We are building in place.
1439     ac_srcdir=.
1440     ac_top_srcdir=$ac_top_builddir_sub
1441     ac_abs_top_srcdir=$ac_pwd ;;
1442   [\\/]* | ?:[\\/]* )  # Absolute name.
1443     ac_srcdir=$srcdir$ac_dir_suffix;
1444     ac_top_srcdir=$srcdir
1445     ac_abs_top_srcdir=$srcdir ;;
1446   *) # Relative name.
1447     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448     ac_top_srcdir=$ac_top_build_prefix$srcdir
1449     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 esac
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452
1453     cd "$ac_dir" || { ac_status=$?; continue; }
1454     # Check for guested configure.
1455     if test -f "$ac_srcdir/configure.gnu"; then
1456       echo &&
1457       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458     elif test -f "$ac_srcdir/configure"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure" --help=recursive
1461     else
1462       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463     fi || ac_status=$?
1464     cd "$ac_pwd" || { ac_status=$?; break; }
1465   done
1466 fi
1467
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1470   cat <<\_ACEOF
1471 f77demo configure 1.0
1472 generated by GNU Autoconf 2.68
1473
1474 Copyright (C) 2010 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1477 _ACEOF
1478   exit
1479 fi
1480
1481 ## ------------------------ ##
1482 ## Autoconf initialization. ##
1483 ## ------------------------ ##
1484
1485 # ac_fn_c_try_compile LINENO
1486 # --------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_compile ()
1489 {
1490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491   rm -f conftest.$ac_objext
1492   if { { ac_try="$ac_compile"
1493 case "(($ac_try" in
1494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495   *) ac_try_echo=$ac_try;;
1496 esac
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499   (eval "$ac_compile") 2>conftest.err
1500   ac_status=$?
1501   if test -s conftest.err; then
1502     grep -v '^ *+' conftest.err >conftest.er1
1503     cat conftest.er1 >&5
1504     mv -f conftest.er1 conftest.err
1505   fi
1506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507   test $ac_status = 0; } && {
1508          test -z "$ac_c_werror_flag" ||
1509          test ! -s conftest.err
1510        } && test -s conftest.$ac_objext; then :
1511   ac_retval=0
1512 else
1513   $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1515
1516         ac_retval=1
1517 fi
1518   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519   as_fn_set_status $ac_retval
1520
1521 } # ac_fn_c_try_compile
1522
1523 # ac_fn_f77_try_compile LINENO
1524 # ----------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_f77_try_compile ()
1527 {
1528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529   rm -f conftest.$ac_objext
1530   if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533   *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537   (eval "$ac_compile") 2>conftest.err
1538   ac_status=$?
1539   if test -s conftest.err; then
1540     grep -v '^ *+' conftest.err >conftest.er1
1541     cat conftest.er1 >&5
1542     mv -f conftest.er1 conftest.err
1543   fi
1544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545   test $ac_status = 0; } && {
1546          test -z "$ac_f77_werror_flag" ||
1547          test ! -s conftest.err
1548        } && test -s conftest.$ac_objext; then :
1549   ac_retval=0
1550 else
1551   $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554         ac_retval=1
1555 fi
1556   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557   as_fn_set_status $ac_retval
1558
1559 } # ac_fn_f77_try_compile
1560
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_link ()
1565 {
1566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567   rm -f conftest.$ac_objext conftest$ac_exeext
1568   if { { ac_try="$ac_link"
1569 case "(($ac_try" in
1570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571   *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575   (eval "$ac_link") 2>conftest.err
1576   ac_status=$?
1577   if test -s conftest.err; then
1578     grep -v '^ *+' conftest.err >conftest.er1
1579     cat conftest.er1 >&5
1580     mv -f conftest.er1 conftest.err
1581   fi
1582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583   test $ac_status = 0; } && {
1584          test -z "$ac_c_werror_flag" ||
1585          test ! -s conftest.err
1586        } && test -s conftest$ac_exeext && {
1587          test "$cross_compiling" = yes ||
1588          $as_test_x conftest$ac_exeext
1589        }; then :
1590   ac_retval=0
1591 else
1592   $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595         ac_retval=1
1596 fi
1597   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599   # interfere with the next link command; also delete a directory that is
1600   # left behind by Apple's compiler.  We do this before executing the actions.
1601   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603   as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_link
1606
1607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists and can be compiled using the include files in
1610 # INCLUDES, setting the cache variable VAR accordingly.
1611 ac_fn_c_check_header_compile ()
1612 {
1613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617   $as_echo_n "(cached) " >&6
1618 else
1619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h.  */
1621 $4
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625   eval "$3=yes"
1626 else
1627   eval "$3=no"
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 fi
1631 eval ac_res=\$$3
1632                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636 } # ac_fn_c_check_header_compile
1637
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_cpp ()
1642 {
1643   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644   if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 case "(($ac_try" in
1646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647   *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652   ac_status=$?
1653   if test -s conftest.err; then
1654     grep -v '^ *+' conftest.err >conftest.er1
1655     cat conftest.er1 >&5
1656     mv -f conftest.er1 conftest.err
1657   fi
1658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659   test $ac_status = 0; } > conftest.i && {
1660          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661          test ! -s conftest.err
1662        }; then :
1663   ac_retval=0
1664 else
1665   $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668     ac_retval=1
1669 fi
1670   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671   as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_cpp
1674
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1679 ac_fn_c_try_run ()
1680 {
1681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682   if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685   *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689   (eval "$ac_link") 2>&5
1690   ac_status=$?
1691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693   { { case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_try") 2>&5
1700   ac_status=$?
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; }; }; then :
1703   ac_retval=0
1704 else
1705   $as_echo "$as_me: program exited with status $ac_status" >&5
1706        $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709        ac_retval=$ac_status
1710 fi
1711   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713   as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_run
1716
1717 # ac_fn_c_check_func LINENO FUNC VAR
1718 # ----------------------------------
1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1720 ac_fn_c_check_func ()
1721 {
1722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726   $as_echo_n "(cached) " >&6
1727 else
1728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h.  */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1732 #define $2 innocuous_$2
1733
1734 /* System header to define __stub macros and hopefully few prototypes,
1735     which can conflict with char $2 (); below.
1736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737     <limits.h> exists even on freestanding compilers.  */
1738
1739 #ifdef __STDC__
1740 # include <limits.h>
1741 #else
1742 # include <assert.h>
1743 #endif
1744
1745 #undef $2
1746
1747 /* Override any GCC internal prototype to avoid an error.
1748    Use char because int might match the return type of a GCC
1749    builtin and then its argument prototype would still apply.  */
1750 #ifdef __cplusplus
1751 extern "C"
1752 #endif
1753 char $2 ();
1754 /* The GNU C library defines this for functions which it implements
1755     to always fail with ENOSYS.  Some functions are actually named
1756     something starting with __ and the normal name is an alias.  */
1757 #if defined __stub_$2 || defined __stub___$2
1758 choke me
1759 #endif
1760
1761 #ifdef F77_DUMMY_MAIN
1762
1763 #  ifdef __cplusplus
1764      extern "C"
1765 #  endif
1766    int F77_DUMMY_MAIN() { return 1; }
1767
1768 #endif
1769 int
1770 main ()
1771 {
1772 return $2 ();
1773   ;
1774   return 0;
1775 }
1776 _ACEOF
1777 if ac_fn_c_try_link "$LINENO"; then :
1778   eval "$3=yes"
1779 else
1780   eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext \
1783     conftest$ac_exeext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_func
1791
1792 # ac_fn_f77_try_link LINENO
1793 # -------------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_f77_try_link ()
1796 {
1797   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798   rm -f conftest.$ac_objext conftest$ac_exeext
1799   if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_link") 2>conftest.err
1807   ac_status=$?
1808   if test -s conftest.err; then
1809     grep -v '^ *+' conftest.err >conftest.er1
1810     cat conftest.er1 >&5
1811     mv -f conftest.er1 conftest.err
1812   fi
1813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814   test $ac_status = 0; } && {
1815          test -z "$ac_f77_werror_flag" ||
1816          test ! -s conftest.err
1817        } && test -s conftest$ac_exeext && {
1818          test "$cross_compiling" = yes ||
1819          $as_test_x conftest$ac_exeext
1820        }; then :
1821   ac_retval=0
1822 else
1823   $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826         ac_retval=1
1827 fi
1828   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830   # interfere with the next link command; also delete a directory that is
1831   # left behind by Apple's compiler.  We do this before executing the actions.
1832   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834   as_fn_set_status $ac_retval
1835
1836 } # ac_fn_f77_try_link
1837 cat >config.log <<_ACEOF
1838 This file contains any messages produced by compilers while
1839 running configure, to aid debugging if configure makes a mistake.
1840
1841 It was created by f77demo $as_me 1.0, which was
1842 generated by GNU Autoconf 2.68.  Invocation command line was
1843
1844   $ $0 $@
1845
1846 _ACEOF
1847 exec 5>>config.log
1848 {
1849 cat <<_ASUNAME
1850 ## --------- ##
1851 ## Platform. ##
1852 ## --------- ##
1853
1854 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1855 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1856 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1857 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1858 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1859
1860 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1861 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1862
1863 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1864 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1865 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1866 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1867 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1868 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1869 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1870
1871 _ASUNAME
1872
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876   IFS=$as_save_IFS
1877   test -z "$as_dir" && as_dir=.
1878     $as_echo "PATH: $as_dir"
1879   done
1880 IFS=$as_save_IFS
1881
1882 } >&5
1883
1884 cat >&5 <<_ACEOF
1885
1886
1887 ## ----------- ##
1888 ## Core tests. ##
1889 ## ----------- ##
1890
1891 _ACEOF
1892
1893
1894 # Keep a trace of the command line.
1895 # Strip out --no-create and --no-recursion so they do not pile up.
1896 # Strip out --silent because we don't want to record it for future runs.
1897 # Also quote any args containing shell meta-characters.
1898 # Make two passes to allow for proper duplicate-argument suppression.
1899 ac_configure_args=
1900 ac_configure_args0=
1901 ac_configure_args1=
1902 ac_must_keep_next=false
1903 for ac_pass in 1 2
1904 do
1905   for ac_arg
1906   do
1907     case $ac_arg in
1908     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1909     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1910     | -silent | --silent | --silen | --sile | --sil)
1911       continue ;;
1912     *\'*)
1913       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1914     esac
1915     case $ac_pass in
1916     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1917     2)
1918       as_fn_append ac_configure_args1 " '$ac_arg'"
1919       if test $ac_must_keep_next = true; then
1920         ac_must_keep_next=false # Got value, back to normal.
1921       else
1922         case $ac_arg in
1923           *=* | --config-cache | -C | -disable-* | --disable-* \
1924           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1925           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1926           | -with-* | --with-* | -without-* | --without-* | --x)
1927             case "$ac_configure_args0 " in
1928               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1929             esac
1930             ;;
1931           -* ) ac_must_keep_next=true ;;
1932         esac
1933       fi
1934       as_fn_append ac_configure_args " '$ac_arg'"
1935       ;;
1936     esac
1937   done
1938 done
1939 { ac_configure_args0=; unset ac_configure_args0;}
1940 { ac_configure_args1=; unset ac_configure_args1;}
1941
1942 # When interrupted or exit'd, cleanup temporary files, and complete
1943 # config.log.  We remove comments because anyway the quotes in there
1944 # would cause problems or look ugly.
1945 # WARNING: Use '\'' to represent an apostrophe within the trap.
1946 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1947 trap 'exit_status=$?
1948   # Save into config.log some information that might help in debugging.
1949   {
1950     echo
1951
1952     $as_echo "## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##"
1955     echo
1956     # The following way of writing the cache mishandles newlines in values,
1957 (
1958   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1959     eval ac_val=\$$ac_var
1960     case $ac_val in #(
1961     *${as_nl}*)
1962       case $ac_var in #(
1963       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1965       esac
1966       case $ac_var in #(
1967       _ | IFS | as_nl) ;; #(
1968       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1969       *) { eval $ac_var=; unset $ac_var;} ;;
1970       esac ;;
1971     esac
1972   done
1973   (set) 2>&1 |
1974     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975     *${as_nl}ac_space=\ *)
1976       sed -n \
1977         "s/'\''/'\''\\\\'\'''\''/g;
1978           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1979       ;; #(
1980     *)
1981       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1982       ;;
1983     esac |
1984     sort
1985 )
1986     echo
1987
1988     $as_echo "## ----------------- ##
1989 ## Output variables. ##
1990 ## ----------------- ##"
1991     echo
1992     for ac_var in $ac_subst_vars
1993     do
1994       eval ac_val=\$$ac_var
1995       case $ac_val in
1996       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997       esac
1998       $as_echo "$ac_var='\''$ac_val'\''"
1999     done | sort
2000     echo
2001
2002     if test -n "$ac_subst_files"; then
2003       $as_echo "## ------------------- ##
2004 ## File substitutions. ##
2005 ## ------------------- ##"
2006       echo
2007       for ac_var in $ac_subst_files
2008       do
2009         eval ac_val=\$$ac_var
2010         case $ac_val in
2011         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2012         esac
2013         $as_echo "$ac_var='\''$ac_val'\''"
2014       done | sort
2015       echo
2016     fi
2017
2018     if test -s confdefs.h; then
2019       $as_echo "## ----------- ##
2020 ## confdefs.h. ##
2021 ## ----------- ##"
2022       echo
2023       cat confdefs.h
2024       echo
2025     fi
2026     test "$ac_signal" != 0 &&
2027       $as_echo "$as_me: caught signal $ac_signal"
2028     $as_echo "$as_me: exit $exit_status"
2029   } >&5
2030   rm -f core *.core core.conftest.* &&
2031     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2032     exit $exit_status
2033 ' 0
2034 for ac_signal in 1 2 13 15; do
2035   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2036 done
2037 ac_signal=0
2038
2039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2040 rm -f -r conftest* confdefs.h
2041
2042 $as_echo "/* confdefs.h */" > confdefs.h
2043
2044 # Predefined preprocessor variables.
2045
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_NAME "$PACKAGE_NAME"
2048 _ACEOF
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2052 _ACEOF
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2056 _ACEOF
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_STRING "$PACKAGE_STRING"
2060 _ACEOF
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2064 _ACEOF
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_URL "$PACKAGE_URL"
2068 _ACEOF
2069
2070
2071 # Let the site file select an alternate cache file if it wants to.
2072 # Prefer an explicitly selected file to automatically selected ones.
2073 ac_site_file1=NONE
2074 ac_site_file2=NONE
2075 if test -n "$CONFIG_SITE"; then
2076   # We do not want a PATH search for config.site.
2077   case $CONFIG_SITE in #((
2078     -*)  ac_site_file1=./$CONFIG_SITE;;
2079     */*) ac_site_file1=$CONFIG_SITE;;
2080     *)   ac_site_file1=./$CONFIG_SITE;;
2081   esac
2082 elif test "x$prefix" != xNONE; then
2083   ac_site_file1=$prefix/share/config.site
2084   ac_site_file2=$prefix/etc/config.site
2085 else
2086   ac_site_file1=$ac_default_prefix/share/config.site
2087   ac_site_file2=$ac_default_prefix/etc/config.site
2088 fi
2089 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2090 do
2091   test "x$ac_site_file" = xNONE && continue
2092   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2093     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2095     sed 's/^/| /' "$ac_site_file" >&5
2096     . "$ac_site_file" \
2097       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2099 as_fn_error $? "failed to load site script $ac_site_file
2100 See \`config.log' for more details" "$LINENO" 5; }
2101   fi
2102 done
2103
2104 if test -r "$cache_file"; then
2105   # Some versions of bash will fail to source /dev/null (special files
2106   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2107   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2108     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109 $as_echo "$as_me: loading cache $cache_file" >&6;}
2110     case $cache_file in
2111       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112       *)                      . "./$cache_file";;
2113     esac
2114   fi
2115 else
2116   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117 $as_echo "$as_me: creating cache $cache_file" >&6;}
2118   >$cache_file
2119 fi
2120
2121 # Check that the precious variables saved in the cache have kept the same
2122 # value.
2123 ac_cache_corrupted=false
2124 for ac_var in $ac_precious_vars; do
2125   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2126   eval ac_new_set=\$ac_env_${ac_var}_set
2127   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2128   eval ac_new_val=\$ac_env_${ac_var}_value
2129   case $ac_old_set,$ac_new_set in
2130     set,)
2131       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2132 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2133       ac_cache_corrupted=: ;;
2134     ,set)
2135       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2136 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2137       ac_cache_corrupted=: ;;
2138     ,);;
2139     *)
2140       if test "x$ac_old_val" != "x$ac_new_val"; then
2141         # differences in whitespace do not lead to failure.
2142         ac_old_val_w=`echo x $ac_old_val`
2143         ac_new_val_w=`echo x $ac_new_val`
2144         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2145           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2146 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2147           ac_cache_corrupted=:
2148         else
2149           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2150 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2151           eval $ac_var=\$ac_old_val
2152         fi
2153         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2154 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2155         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2156 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2157       fi;;
2158   esac
2159   # Pass precious variables to config.status.
2160   if test "$ac_new_set" = set; then
2161     case $ac_new_val in
2162     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2163     *) ac_arg=$ac_var=$ac_new_val ;;
2164     esac
2165     case " $ac_configure_args " in
2166       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2167       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2168     esac
2169   fi
2170 done
2171 if $ac_cache_corrupted; then
2172   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2175 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2176   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2177 fi
2178 ## -------------------- ##
2179 ## Main body of script. ##
2180 ## -------------------- ##
2181
2182 ac_ext=c
2183 ac_cpp='$CPP $CPPFLAGS'
2184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2187
2188
2189 ac_config_headers="$ac_config_headers config.h:config-h.in"
2190
2191
2192 ac_aux_dir=
2193 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2194   if test -f "$ac_dir/install-sh"; then
2195     ac_aux_dir=$ac_dir
2196     ac_install_sh="$ac_aux_dir/install-sh -c"
2197     break
2198   elif test -f "$ac_dir/install.sh"; then
2199     ac_aux_dir=$ac_dir
2200     ac_install_sh="$ac_aux_dir/install.sh -c"
2201     break
2202   elif test -f "$ac_dir/shtool"; then
2203     ac_aux_dir=$ac_dir
2204     ac_install_sh="$ac_aux_dir/shtool install -c"
2205     break
2206   fi
2207 done
2208 if test -z "$ac_aux_dir"; then
2209   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2210 fi
2211
2212 # These three variables are undocumented and unsupported,
2213 # and are intended to be withdrawn in a future Autoconf release.
2214 # They can cause serious problems if a builder's source tree is in a directory
2215 # whose full name contains unusual characters.
2216 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2217 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2218 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2219
2220
2221
2222
2223 # Check whether --with-dist was given.
2224 if test "${with_dist+set}" = set; then :
2225   withval=$with_dist;
2226 fi
2227
2228
2229 ## ------------------------ ##
2230 ## Automake Initialisation. ##
2231 ## ------------------------ ##
2232 am__api_version='1.11'
2233
2234 # Find a good install program.  We prefer a C program (faster),
2235 # so one script is as good as another.  But avoid the broken or
2236 # incompatible versions:
2237 # SysV /etc/install, /usr/sbin/install
2238 # SunOS /usr/etc/install
2239 # IRIX /sbin/install
2240 # AIX /bin/install
2241 # AmigaOS /C/install, which installs bootblocks on floppy discs
2242 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2245 # OS/2's system install, which has a completely different semantic
2246 # ./install, which can be erroneously created by make from ./install.sh.
2247 # Reject install programs that cannot install multiple files.
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2249 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2250 if test -z "$INSTALL"; then
2251 if ${ac_cv_path_install+:} false; then :
2252   $as_echo_n "(cached) " >&6
2253 else
2254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257   IFS=$as_save_IFS
2258   test -z "$as_dir" && as_dir=.
2259     # Account for people who put trailing slashes in PATH elements.
2260 case $as_dir/ in #((
2261   ./ | .// | /[cC]/* | \
2262   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2263   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2264   /usr/ucb/* ) ;;
2265   *)
2266     # OSF1 and SCO ODT 3.0 have their own names for install.
2267     # Don't use installbsd from OSF since it installs stuff as root
2268     # by default.
2269     for ac_prog in ginstall scoinst install; do
2270       for ac_exec_ext in '' $ac_executable_extensions; do
2271         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2272           if test $ac_prog = install &&
2273             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274             # AIX install.  It has an incompatible calling convention.
2275             :
2276           elif test $ac_prog = install &&
2277             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278             # program-specific install script used by HP pwplus--don't use.
2279             :
2280           else
2281             rm -rf conftest.one conftest.two conftest.dir
2282             echo one > conftest.one
2283             echo two > conftest.two
2284             mkdir conftest.dir
2285             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2286               test -s conftest.one && test -s conftest.two &&
2287               test -s conftest.dir/conftest.one &&
2288               test -s conftest.dir/conftest.two
2289             then
2290               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2291               break 3
2292             fi
2293           fi
2294         fi
2295       done
2296     done
2297     ;;
2298 esac
2299
2300   done
2301 IFS=$as_save_IFS
2302
2303 rm -rf conftest.one conftest.two conftest.dir
2304
2305 fi
2306   if test "${ac_cv_path_install+set}" = set; then
2307     INSTALL=$ac_cv_path_install
2308   else
2309     # As a last resort, use the slow shell script.  Don't cache a
2310     # value for INSTALL within a source directory, because that will
2311     # break other packages using the cache if that directory is
2312     # removed, or if the value is a relative name.
2313     INSTALL=$ac_install_sh
2314   fi
2315 fi
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2317 $as_echo "$INSTALL" >&6; }
2318
2319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2320 # It thinks the first close brace ends the variable substitution.
2321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2322
2323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2324
2325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2326
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2328 $as_echo_n "checking whether build environment is sane... " >&6; }
2329 # Just in case
2330 sleep 1
2331 echo timestamp > conftest.file
2332 # Reject unsafe characters in $srcdir or the absolute working directory
2333 # name.  Accept space and tab only in the latter.
2334 am_lf='
2335 '
2336 case `pwd` in
2337   *[\\\"\#\$\&\'\`$am_lf]*)
2338     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2339 esac
2340 case $srcdir in
2341   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2342     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2343 esac
2344
2345 # Do `set' in a subshell so we don't clobber the current shell's
2346 # arguments.  Must try -L first in case configure is actually a
2347 # symlink; some systems play weird games with the mod time of symlinks
2348 # (eg FreeBSD returns the mod time of the symlink's containing
2349 # directory).
2350 if (
2351    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2352    if test "$*" = "X"; then
2353       # -L didn't work.
2354       set X `ls -t "$srcdir/configure" conftest.file`
2355    fi
2356    rm -f conftest.file
2357    if test "$*" != "X $srcdir/configure conftest.file" \
2358       && test "$*" != "X conftest.file $srcdir/configure"; then
2359
2360       # If neither matched, then we have a broken ls.  This can happen
2361       # if, for instance, CONFIG_SHELL is bash and it inherits a
2362       # broken ls alias from the environment.  This has actually
2363       # happened.  Such a system could not be considered "sane".
2364       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2365 alias in your environment" "$LINENO" 5
2366    fi
2367
2368    test "$2" = conftest.file
2369    )
2370 then
2371    # Ok.
2372    :
2373 else
2374    as_fn_error $? "newly created file is older than distributed files!
2375 Check your system clock" "$LINENO" 5
2376 fi
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2378 $as_echo "yes" >&6; }
2379 test "$program_prefix" != NONE &&
2380   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2381 # Use a double $ so make ignores it.
2382 test "$program_suffix" != NONE &&
2383   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2384 # Double any \ or $.
2385 # By default was `s,x,x', remove it if useless.
2386 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2387 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2388
2389 # expand $ac_aux_dir to an absolute path
2390 am_aux_dir=`cd $ac_aux_dir && pwd`
2391
2392 if test x"${MISSING+set}" != xset; then
2393   case $am_aux_dir in
2394   *\ * | *\     *)
2395     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2396   *)
2397     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2398   esac
2399 fi
2400 # Use eval to expand $SHELL
2401 if eval "$MISSING --run true"; then
2402   am_missing_run="$MISSING --run "
2403 else
2404   am_missing_run=
2405   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2406 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2407 fi
2408
2409 if test x"${install_sh}" != xset; then
2410   case $am_aux_dir in
2411   *\ * | *\     *)
2412     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2413   *)
2414     install_sh="\${SHELL} $am_aux_dir/install-sh"
2415   esac
2416 fi
2417
2418 # Installed binaries are usually stripped using `strip' when the user
2419 # run `make install-strip'.  However `strip' might not be the right
2420 # tool to use in cross-compilation environments, therefore Automake
2421 # will honor the `STRIP' environment variable to overrule this program.
2422 if test "$cross_compiling" != no; then
2423   if test -n "$ac_tool_prefix"; then
2424   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2425 set dummy ${ac_tool_prefix}strip; ac_word=$2
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427 $as_echo_n "checking for $ac_word... " >&6; }
2428 if ${ac_cv_prog_STRIP+:} false; then :
2429   $as_echo_n "(cached) " >&6
2430 else
2431   if test -n "$STRIP"; then
2432   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2436 do
2437   IFS=$as_save_IFS
2438   test -z "$as_dir" && as_dir=.
2439     for ac_exec_ext in '' $ac_executable_extensions; do
2440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2443     break 2
2444   fi
2445 done
2446   done
2447 IFS=$as_save_IFS
2448
2449 fi
2450 fi
2451 STRIP=$ac_cv_prog_STRIP
2452 if test -n "$STRIP"; then
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2454 $as_echo "$STRIP" >&6; }
2455 else
2456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2457 $as_echo "no" >&6; }
2458 fi
2459
2460
2461 fi
2462 if test -z "$ac_cv_prog_STRIP"; then
2463   ac_ct_STRIP=$STRIP
2464   # Extract the first word of "strip", so it can be a program name with args.
2465 set dummy strip; ac_word=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2469   $as_echo_n "(cached) " >&6
2470 else
2471   if test -n "$ac_ct_STRIP"; then
2472   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479     for ac_exec_ext in '' $ac_executable_extensions; do
2480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481     ac_cv_prog_ac_ct_STRIP="strip"
2482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486   done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2492 if test -n "$ac_ct_STRIP"; then
2493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2494 $as_echo "$ac_ct_STRIP" >&6; }
2495 else
2496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2498 fi
2499
2500   if test "x$ac_ct_STRIP" = x; then
2501     STRIP=":"
2502   else
2503     case $cross_compiling:$ac_tool_warned in
2504 yes:)
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2507 ac_tool_warned=yes ;;
2508 esac
2509     STRIP=$ac_ct_STRIP
2510   fi
2511 else
2512   STRIP="$ac_cv_prog_STRIP"
2513 fi
2514
2515 fi
2516 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2517
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2519 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2520 if test -z "$MKDIR_P"; then
2521   if ${ac_cv_path_mkdir+:} false; then :
2522   $as_echo_n "(cached) " >&6
2523 else
2524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529     for ac_prog in mkdir gmkdir; do
2530          for ac_exec_ext in '' $ac_executable_extensions; do
2531            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2532            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2533              'mkdir (GNU coreutils) '* | \
2534              'mkdir (coreutils) '* | \
2535              'mkdir (fileutils) '4.1*)
2536                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2537                break 3;;
2538            esac
2539          done
2540        done
2541   done
2542 IFS=$as_save_IFS
2543
2544 fi
2545
2546   test -d ./--version && rmdir ./--version
2547   if test "${ac_cv_path_mkdir+set}" = set; then
2548     MKDIR_P="$ac_cv_path_mkdir -p"
2549   else
2550     # As a last resort, use the slow shell script.  Don't cache a
2551     # value for MKDIR_P within a source directory, because that will
2552     # break other packages using the cache if that directory is
2553     # removed, or if the value is a relative name.
2554     MKDIR_P="$ac_install_sh -d"
2555   fi
2556 fi
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2558 $as_echo "$MKDIR_P" >&6; }
2559
2560 mkdir_p="$MKDIR_P"
2561 case $mkdir_p in
2562   [\\/$]* | ?:[\\/]*) ;;
2563   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2564 esac
2565
2566 for ac_prog in gawk mawk nawk awk
2567 do
2568   # Extract the first word of "$ac_prog", so it can be a program name with args.
2569 set dummy $ac_prog; ac_word=$2
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if ${ac_cv_prog_AWK+:} false; then :
2573   $as_echo_n "(cached) " >&6
2574 else
2575   if test -n "$AWK"; then
2576   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581   IFS=$as_save_IFS
2582   test -z "$as_dir" && as_dir=.
2583     for ac_exec_ext in '' $ac_executable_extensions; do
2584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585     ac_cv_prog_AWK="$ac_prog"
2586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587     break 2
2588   fi
2589 done
2590   done
2591 IFS=$as_save_IFS
2592
2593 fi
2594 fi
2595 AWK=$ac_cv_prog_AWK
2596 if test -n "$AWK"; then
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2598 $as_echo "$AWK" >&6; }
2599 else
2600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2602 fi
2603
2604
2605   test -n "$AWK" && break
2606 done
2607
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2609 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2610 set x ${MAKE-make}
2611 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2612 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2613   $as_echo_n "(cached) " >&6
2614 else
2615   cat >conftest.make <<\_ACEOF
2616 SHELL = /bin/sh
2617 all:
2618         @echo '@@@%%%=$(MAKE)=@@@%%%'
2619 _ACEOF
2620 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2621 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2622   *@@@%%%=?*=@@@%%%*)
2623     eval ac_cv_prog_make_${ac_make}_set=yes;;
2624   *)
2625     eval ac_cv_prog_make_${ac_make}_set=no;;
2626 esac
2627 rm -f conftest.make
2628 fi
2629 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2631 $as_echo "yes" >&6; }
2632   SET_MAKE=
2633 else
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636   SET_MAKE="MAKE=${MAKE-make}"
2637 fi
2638
2639 rm -rf .tst 2>/dev/null
2640 mkdir .tst 2>/dev/null
2641 if test -d .tst; then
2642   am__leading_dot=.
2643 else
2644   am__leading_dot=_
2645 fi
2646 rmdir .tst 2>/dev/null
2647
2648 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2649   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2650   # is not polluted with repeated "-I."
2651   am__isrc=' -I$(srcdir)'
2652   # test to see if srcdir already configured
2653   if test -f $srcdir/config.status; then
2654     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2655   fi
2656 fi
2657
2658 # test whether we have cygpath
2659 if test -z "$CYGPATH_W"; then
2660   if (cygpath --version) >/dev/null 2>/dev/null; then
2661     CYGPATH_W='cygpath -w'
2662   else
2663     CYGPATH_W=echo
2664   fi
2665 fi
2666
2667
2668 # Define the identity of the package.
2669  PACKAGE='f77demo'
2670  VERSION='1.0'
2671
2672
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE "$PACKAGE"
2675 _ACEOF
2676
2677
2678 cat >>confdefs.h <<_ACEOF
2679 #define VERSION "$VERSION"
2680 _ACEOF
2681
2682 # Some tools Automake needs.
2683
2684 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2685
2686
2687 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2688
2689
2690 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2691
2692
2693 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2694
2695
2696 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2697
2698 # We need awk for the "check" target.  The system "awk" is bad on
2699 # some platforms.
2700 # Always define AMTAR for backward compatibility.
2701
2702 AMTAR=${AMTAR-"${am_missing_run}tar"}
2703
2704 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2705
2706
2707
2708
2709
2710
2711
2712 ## ------------------ ##
2713 ## C compiler checks. ##
2714 ## ------------------ ##
2715 ac_ext=c
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720 if test -n "$ac_tool_prefix"; then
2721   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2722 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if ${ac_cv_prog_CC+:} false; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   if test -n "$CC"; then
2729   ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734   IFS=$as_save_IFS
2735   test -z "$as_dir" && as_dir=.
2736     for ac_exec_ext in '' $ac_executable_extensions; do
2737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740     break 2
2741   fi
2742 done
2743   done
2744 IFS=$as_save_IFS
2745
2746 fi
2747 fi
2748 CC=$ac_cv_prog_CC
2749 if test -n "$CC"; then
2750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2752 else
2753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2755 fi
2756
2757
2758 fi
2759 if test -z "$ac_cv_prog_CC"; then
2760   ac_ct_CC=$CC
2761   # Extract the first word of "gcc", so it can be a program name with args.
2762 set dummy gcc; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2766   $as_echo_n "(cached) " >&6
2767 else
2768   if test -n "$ac_ct_CC"; then
2769   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776     for ac_exec_ext in '' $ac_executable_extensions; do
2777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778     ac_cv_prog_ac_ct_CC="gcc"
2779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783   done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2791 $as_echo "$ac_ct_CC" >&6; }
2792 else
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797   if test "x$ac_ct_CC" = x; then
2798     CC=""
2799   else
2800     case $cross_compiling:$ac_tool_warned in
2801 yes:)
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2804 ac_tool_warned=yes ;;
2805 esac
2806     CC=$ac_ct_CC
2807   fi
2808 else
2809   CC="$ac_cv_prog_CC"
2810 fi
2811
2812 if test -z "$CC"; then
2813           if test -n "$ac_tool_prefix"; then
2814     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2815 set dummy ${ac_tool_prefix}cc; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_CC+:} false; then :
2819   $as_echo_n "(cached) " >&6
2820 else
2821   if test -n "$CC"; then
2822   ac_cv_prog_CC="$CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829     for ac_exec_ext in '' $ac_executable_extensions; do
2830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831     ac_cv_prog_CC="${ac_tool_prefix}cc"
2832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836   done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 CC=$ac_cv_prog_CC
2842 if test -n "$CC"; then
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2845 else
2846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850
2851   fi
2852 fi
2853 if test -z "$CC"; then
2854   # Extract the first word of "cc", so it can be a program name with args.
2855 set dummy cc; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_CC+:} false; then :
2859   $as_echo_n "(cached) " >&6
2860 else
2861   if test -n "$CC"; then
2862   ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864   ac_prog_rejected=no
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870     for ac_exec_ext in '' $ac_executable_extensions; do
2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2873        ac_prog_rejected=yes
2874        continue
2875      fi
2876     ac_cv_prog_CC="cc"
2877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878     break 2
2879   fi
2880 done
2881   done
2882 IFS=$as_save_IFS
2883
2884 if test $ac_prog_rejected = yes; then
2885   # We found a bogon in the path, so make sure we never use it.
2886   set dummy $ac_cv_prog_CC
2887   shift
2888   if test $# != 0; then
2889     # We chose a different compiler from the bogus one.
2890     # However, it has the same basename, so the bogon will be chosen
2891     # first if we set CC to just the basename; use the full file name.
2892     shift
2893     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894   fi
2895 fi
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2902 else
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908 fi
2909 if test -z "$CC"; then
2910   if test -n "$ac_tool_prefix"; then
2911   for ac_prog in cl.exe
2912   do
2913     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_CC+:} false; then :
2918   $as_echo_n "(cached) " >&6
2919 else
2920   if test -n "$CC"; then
2921   ac_cv_prog_CC="$CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926   IFS=$as_save_IFS
2927   test -z "$as_dir" && as_dir=.
2928     for ac_exec_ext in '' $ac_executable_extensions; do
2929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932     break 2
2933   fi
2934 done
2935   done
2936 IFS=$as_save_IFS
2937
2938 fi
2939 fi
2940 CC=$ac_cv_prog_CC
2941 if test -n "$CC"; then
2942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2943 $as_echo "$CC" >&6; }
2944 else
2945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2947 fi
2948
2949
2950     test -n "$CC" && break
2951   done
2952 fi
2953 if test -z "$CC"; then
2954   ac_ct_CC=$CC
2955   for ac_prog in cl.exe
2956 do
2957   # Extract the first word of "$ac_prog", so it can be a program name with args.
2958 set dummy $ac_prog; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2962   $as_echo_n "(cached) " >&6
2963 else
2964   if test -n "$ac_ct_CC"; then
2965   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970   IFS=$as_save_IFS
2971   test -z "$as_dir" && as_dir=.
2972     for ac_exec_ext in '' $ac_executable_extensions; do
2973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974     ac_cv_prog_ac_ct_CC="$ac_prog"
2975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976     break 2
2977   fi
2978 done
2979   done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2985 if test -n "$ac_ct_CC"; then
2986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2987 $as_echo "$ac_ct_CC" >&6; }
2988 else
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993
2994   test -n "$ac_ct_CC" && break
2995 done
2996
2997   if test "x$ac_ct_CC" = x; then
2998     CC=""
2999   else
3000     case $cross_compiling:$ac_tool_warned in
3001 yes:)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006     CC=$ac_ct_CC
3007   fi
3008 fi
3009
3010 fi
3011
3012
3013 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error $? "no acceptable C compiler found in \$PATH
3016 See \`config.log' for more details" "$LINENO" 5; }
3017
3018 # Provide some information about the compiler.
3019 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3020 set X $ac_compile
3021 ac_compiler=$2
3022 for ac_option in --version -v -V -qversion; do
3023   { { ac_try="$ac_compiler $ac_option >&5"
3024 case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3031   ac_status=$?
3032   if test -s conftest.err; then
3033     sed '10a\
3034 ... rest of stderr output deleted ...
3035          10q' conftest.err >conftest.er1
3036     cat conftest.er1 >&5
3037   fi
3038   rm -f conftest.er1 conftest.err
3039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040   test $ac_status = 0; }
3041 done
3042
3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044 /* end confdefs.h.  */
3045
3046 int
3047 main ()
3048 {
3049
3050   ;
3051   return 0;
3052 }
3053 _ACEOF
3054 ac_clean_files_save=$ac_clean_files
3055 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3056 # Try to create an executable without -o first, disregard a.out.
3057 # It will help us diagnose broken compilers, and finding out an intuition
3058 # of exeext.
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3060 $as_echo_n "checking whether the C compiler works... " >&6; }
3061 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3062
3063 # The possible output files:
3064 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3065
3066 ac_rmfiles=
3067 for ac_file in $ac_files
3068 do
3069   case $ac_file in
3070     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3071     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3072   esac
3073 done
3074 rm -f $ac_rmfiles
3075
3076 if { { ac_try="$ac_link_default"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083   (eval "$ac_link_default") 2>&5
3084   ac_status=$?
3085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086   test $ac_status = 0; }; then :
3087   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3088 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3089 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3090 # so that the user can short-circuit this test for compilers unknown to
3091 # Autoconf.
3092 for ac_file in $ac_files ''
3093 do
3094   test -f "$ac_file" || continue
3095   case $ac_file in
3096     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3097         ;;
3098     [ab].out )
3099         # We found the default executable, but exeext='' is most
3100         # certainly right.
3101         break;;
3102     *.* )
3103         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3104         then :; else
3105            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106         fi
3107         # We set ac_cv_exeext here because the later test for it is not
3108         # safe: cross compilers may not add the suffix if given an `-o'
3109         # argument, so we may need to know it at that point already.
3110         # Even if this section looks crufty: it has the advantage of
3111         # actually working.
3112         break;;
3113     * )
3114         break;;
3115   esac
3116 done
3117 test "$ac_cv_exeext" = no && ac_cv_exeext=
3118
3119 else
3120   ac_file=''
3121 fi
3122 if test -z "$ac_file"; then :
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error 77 "C compiler cannot create executables
3131 See \`config.log' for more details" "$LINENO" 5; }
3132 else
3133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3135 fi
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3137 $as_echo_n "checking for C compiler default output file name... " >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3139 $as_echo "$ac_file" >&6; }
3140 ac_exeext=$ac_cv_exeext
3141
3142 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3143 ac_clean_files=$ac_clean_files_save
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3145 $as_echo_n "checking for suffix of executables... " >&6; }
3146 if { { ac_try="$ac_link"
3147 case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153   (eval "$ac_link") 2>&5
3154   ac_status=$?
3155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156   test $ac_status = 0; }; then :
3157   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3158 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3159 # work properly (i.e., refer to `conftest.exe'), while it won't with
3160 # `rm'.
3161 for ac_file in conftest.exe conftest conftest.*; do
3162   test -f "$ac_file" || continue
3163   case $ac_file in
3164     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3165     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166           break;;
3167     * ) break;;
3168   esac
3169 done
3170 else
3171   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3174 See \`config.log' for more details" "$LINENO" 5; }
3175 fi
3176 rm -f conftest conftest$ac_cv_exeext
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3178 $as_echo "$ac_cv_exeext" >&6; }
3179
3180 rm -f conftest.$ac_ext
3181 EXEEXT=$ac_cv_exeext
3182 ac_exeext=$EXEEXT
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h.  */
3185 #include <stdio.h>
3186 int
3187 main ()
3188 {
3189 FILE *f = fopen ("conftest.out", "w");
3190  return ferror (f) || fclose (f) != 0;
3191
3192   ;
3193   return 0;
3194 }
3195 _ACEOF
3196 ac_clean_files="$ac_clean_files conftest.out"
3197 # Check that the compiler produces executables we can run.  If not, either
3198 # the compiler is broken, or we cross compile.
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3200 $as_echo_n "checking whether we are cross compiling... " >&6; }
3201 if test "$cross_compiling" != yes; then
3202   { { ac_try="$ac_link"
3203 case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209   (eval "$ac_link") 2>&5
3210   ac_status=$?
3211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212   test $ac_status = 0; }
3213   if { ac_try='./conftest$ac_cv_exeext'
3214   { { case "(($ac_try" in
3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216   *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220   (eval "$ac_try") 2>&5
3221   ac_status=$?
3222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223   test $ac_status = 0; }; }; then
3224     cross_compiling=no
3225   else
3226     if test "$cross_compiling" = maybe; then
3227         cross_compiling=yes
3228     else
3229         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error $? "cannot run C compiled programs.
3232 If you meant to cross compile, use \`--host'.
3233 See \`config.log' for more details" "$LINENO" 5; }
3234     fi
3235   fi
3236 fi
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3238 $as_echo "$cross_compiling" >&6; }
3239
3240 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3241 ac_clean_files=$ac_clean_files_save
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3243 $as_echo_n "checking for suffix of object files... " >&6; }
3244 if ${ac_cv_objext+:} false; then :
3245   $as_echo_n "(cached) " >&6
3246 else
3247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h.  */
3249
3250 int
3251 main ()
3252 {
3253
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 rm -f conftest.o conftest.obj
3259 if { { ac_try="$ac_compile"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266   (eval "$ac_compile") 2>&5
3267   ac_status=$?
3268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269   test $ac_status = 0; }; then :
3270   for ac_file in conftest.o conftest.obj conftest.*; do
3271   test -f "$ac_file" || continue;
3272   case $ac_file in
3273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3274     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3275        break;;
3276   esac
3277 done
3278 else
3279   $as_echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 as_fn_error $? "cannot compute suffix of object files: cannot compile
3285 See \`config.log' for more details" "$LINENO" 5; }
3286 fi
3287 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3290 $as_echo "$ac_cv_objext" >&6; }
3291 OBJEXT=$ac_cv_objext
3292 ac_objext=$OBJEXT
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3294 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3295 if ${ac_cv_c_compiler_gnu+:} false; then :
3296   $as_echo_n "(cached) " >&6
3297 else
3298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h.  */
3300
3301 int
3302 main ()
3303 {
3304 #ifndef __GNUC__
3305        choke me
3306 #endif
3307
3308   ;
3309   return 0;
3310 }
3311 _ACEOF
3312 if ac_fn_c_try_compile "$LINENO"; then :
3313   ac_compiler_gnu=yes
3314 else
3315   ac_compiler_gnu=no
3316 fi
3317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3319
3320 fi
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3322 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3323 if test $ac_compiler_gnu = yes; then
3324   GCC=yes
3325 else
3326   GCC=
3327 fi
3328 ac_test_CFLAGS=${CFLAGS+set}
3329 ac_save_CFLAGS=$CFLAGS
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3331 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3332 if ${ac_cv_prog_cc_g+:} false; then :
3333   $as_echo_n "(cached) " >&6
3334 else
3335   ac_save_c_werror_flag=$ac_c_werror_flag
3336    ac_c_werror_flag=yes
3337    ac_cv_prog_cc_g=no
3338    CFLAGS="-g"
3339    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h.  */
3341
3342 int
3343 main ()
3344 {
3345
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 if ac_fn_c_try_compile "$LINENO"; then :
3351   ac_cv_prog_cc_g=yes
3352 else
3353   CFLAGS=""
3354       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h.  */
3356
3357 int
3358 main ()
3359 {
3360
3361   ;
3362   return 0;
3363 }
3364 _ACEOF
3365 if ac_fn_c_try_compile "$LINENO"; then :
3366
3367 else
3368   ac_c_werror_flag=$ac_save_c_werror_flag
3369          CFLAGS="-g"
3370          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 if ac_fn_c_try_compile "$LINENO"; then :
3382   ac_cv_prog_cc_g=yes
3383 fi
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 fi
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 fi
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389    ac_c_werror_flag=$ac_save_c_werror_flag
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3392 $as_echo "$ac_cv_prog_cc_g" >&6; }
3393 if test "$ac_test_CFLAGS" = set; then
3394   CFLAGS=$ac_save_CFLAGS
3395 elif test $ac_cv_prog_cc_g = yes; then
3396   if test "$GCC" = yes; then
3397     CFLAGS="-g -O2"
3398   else
3399     CFLAGS="-g"
3400   fi
3401 else
3402   if test "$GCC" = yes; then
3403     CFLAGS="-O2"
3404   else
3405     CFLAGS=
3406   fi
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3409 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3410 if ${ac_cv_prog_cc_c89+:} false; then :
3411   $as_echo_n "(cached) " >&6
3412 else
3413   ac_cv_prog_cc_c89=no
3414 ac_save_CC=$CC
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h.  */
3417 #include <stdarg.h>
3418 #include <stdio.h>
3419 #include <sys/types.h>
3420 #include <sys/stat.h>
3421 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3422 struct buf { int x; };
3423 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3424 static char *e (p, i)
3425      char **p;
3426      int i;
3427 {
3428   return p[i];
3429 }
3430 static char *f (char * (*g) (char **, int), char **p, ...)
3431 {
3432   char *s;
3433   va_list v;
3434   va_start (v,p);
3435   s = g (p, va_arg (v,int));
3436   va_end (v);
3437   return s;
3438 }
3439
3440 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3441    function prototypes and stuff, but not '\xHH' hex character constants.
3442    These don't provoke an error unfortunately, instead are silently treated
3443    as 'x'.  The following induces an error, until -std is added to get
3444    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3445    array size at least.  It's necessary to write '\x00'==0 to get something
3446    that's true only with -std.  */
3447 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3448
3449 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3450    inside strings and character constants.  */
3451 #define FOO(x) 'x'
3452 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3453
3454 int test (int i, double x);
3455 struct s1 {int (*f) (int a);};
3456 struct s2 {int (*f) (double a);};
3457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3458 int argc;
3459 char **argv;
3460 int
3461 main ()
3462 {
3463 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3464   ;
3465   return 0;
3466 }
3467 _ACEOF
3468 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3469         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3470 do
3471   CC="$ac_save_CC $ac_arg"
3472   if ac_fn_c_try_compile "$LINENO"; then :
3473   ac_cv_prog_cc_c89=$ac_arg
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext
3476   test "x$ac_cv_prog_cc_c89" != "xno" && break
3477 done
3478 rm -f conftest.$ac_ext
3479 CC=$ac_save_CC
3480
3481 fi
3482 # AC_CACHE_VAL
3483 case "x$ac_cv_prog_cc_c89" in
3484   x)
3485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3486 $as_echo "none needed" >&6; } ;;
3487   xno)
3488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3489 $as_echo "unsupported" >&6; } ;;
3490   *)
3491     CC="$CC $ac_cv_prog_cc_c89"
3492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3493 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3494 esac
3495 if test "x$ac_cv_prog_cc_c89" != xno; then :
3496
3497 fi
3498
3499 ac_ext=c
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 DEPDIR="${am__leading_dot}deps"
3505
3506 ac_config_commands="$ac_config_commands depfiles"
3507
3508
3509 am_make=${MAKE-make}
3510 cat > confinc << 'END'
3511 am__doit:
3512         @echo this is the am__doit target
3513 .PHONY: am__doit
3514 END
3515 # If we don't find an include directive, just comment out the code.
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3517 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3518 am__include="#"
3519 am__quote=
3520 _am_result=none
3521 # First try GNU make style include.
3522 echo "include confinc" > confmf
3523 # Ignore all kinds of additional output from `make'.
3524 case `$am_make -s -f confmf 2> /dev/null` in #(
3525 *the\ am__doit\ target*)
3526   am__include=include
3527   am__quote=
3528   _am_result=GNU
3529   ;;
3530 esac
3531 # Now try BSD make style include.
3532 if test "$am__include" = "#"; then
3533    echo '.include "confinc"' > confmf
3534    case `$am_make -s -f confmf 2> /dev/null` in #(
3535    *the\ am__doit\ target*)
3536      am__include=.include
3537      am__quote="\""
3538      _am_result=BSD
3539      ;;
3540    esac
3541 fi
3542
3543
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3545 $as_echo "$_am_result" >&6; }
3546 rm -f confinc confmf
3547
3548 # Check whether --enable-dependency-tracking was given.
3549 if test "${enable_dependency_tracking+set}" = set; then :
3550   enableval=$enable_dependency_tracking;
3551 fi
3552
3553 if test "x$enable_dependency_tracking" != xno; then
3554   am_depcomp="$ac_aux_dir/depcomp"
3555   AMDEPBACKSLASH='\'
3556 fi
3557  if test "x$enable_dependency_tracking" != xno; then
3558   AMDEP_TRUE=
3559   AMDEP_FALSE='#'
3560 else
3561   AMDEP_TRUE='#'
3562   AMDEP_FALSE=
3563 fi
3564
3565
3566
3567 depcc="$CC"   am_compiler_list=
3568
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3570 $as_echo_n "checking dependency style of $depcc... " >&6; }
3571 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3572   $as_echo_n "(cached) " >&6
3573 else
3574   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3575   # We make a subdir and do the tests there.  Otherwise we can end up
3576   # making bogus files that we don't know about and never remove.  For
3577   # instance it was reported that on HP-UX the gcc test will end up
3578   # making a dummy file named `D' -- because `-MD' means `put the output
3579   # in D'.
3580   mkdir conftest.dir
3581   # Copy depcomp to subdir because otherwise we won't find it if we're
3582   # using a relative directory.
3583   cp "$am_depcomp" conftest.dir
3584   cd conftest.dir
3585   # We will build objects and dependencies in a subdirectory because
3586   # it helps to detect inapplicable dependency modes.  For instance
3587   # both Tru64's cc and ICC support -MD to output dependencies as a
3588   # side effect of compilation, but ICC will put the dependencies in
3589   # the current directory while Tru64 will put them in the object
3590   # directory.
3591   mkdir sub
3592
3593   am_cv_CC_dependencies_compiler_type=none
3594   if test "$am_compiler_list" = ""; then
3595      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3596   fi
3597   am__universal=false
3598   case " $depcc " in #(
3599      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3600      esac
3601
3602   for depmode in $am_compiler_list; do
3603     # Setup a source with many dependencies, because some compilers
3604     # like to wrap large dependency lists on column 80 (with \), and
3605     # we should not choose a depcomp mode which is confused by this.
3606     #
3607     # We need to recreate these files for each test, as the compiler may
3608     # overwrite some of them when testing with obscure command lines.
3609     # This happens at least with the AIX C compiler.
3610     : > sub/conftest.c
3611     for i in 1 2 3 4 5 6; do
3612       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3613       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3614       # Solaris 8's {/usr,}/bin/sh.
3615       touch sub/conftst$i.h
3616     done
3617     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3618
3619     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3620     # mode.  It turns out that the SunPro C++ compiler does not properly
3621     # handle `-M -o', and we need to detect this.  Also, some Intel
3622     # versions had trouble with output in subdirs
3623     am__obj=sub/conftest.${OBJEXT-o}
3624     am__minus_obj="-o $am__obj"
3625     case $depmode in
3626     gcc)
3627       # This depmode causes a compiler race in universal mode.
3628       test "$am__universal" = false || continue
3629       ;;
3630     nosideeffect)
3631       # after this tag, mechanisms are not by side-effect, so they'll
3632       # only be used when explicitly requested
3633       if test "x$enable_dependency_tracking" = xyes; then
3634         continue
3635       else
3636         break
3637       fi
3638       ;;
3639     msvisualcpp | msvcmsys)
3640       # This compiler won't grok `-c -o', but also, the minuso test has
3641       # not run yet.  These depmodes are late enough in the game, and
3642       # so weak that their functioning should not be impacted.
3643       am__obj=conftest.${OBJEXT-o}
3644       am__minus_obj=
3645       ;;
3646     none) break ;;
3647     esac
3648     if depmode=$depmode \
3649        source=sub/conftest.c object=$am__obj \
3650        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3651        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3652          >/dev/null 2>conftest.err &&
3653        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3654        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3655        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3656        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3657       # icc doesn't choke on unknown options, it will just issue warnings
3658       # or remarks (even with -Werror).  So we grep stderr for any message
3659       # that says an option was ignored or not supported.
3660       # When given -MP, icc 7.0 and 7.1 complain thusly:
3661       #   icc: Command line warning: ignoring option '-M'; no argument required
3662       # The diagnosis changed in icc 8.0:
3663       #   icc: Command line remark: option '-MP' not supported
3664       if (grep 'ignoring option' conftest.err ||
3665           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3666         am_cv_CC_dependencies_compiler_type=$depmode
3667         break
3668       fi
3669     fi
3670   done
3671
3672   cd ..
3673   rm -rf conftest.dir
3674 else
3675   am_cv_CC_dependencies_compiler_type=none
3676 fi
3677
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3680 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3681 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3682
3683  if
3684   test "x$enable_dependency_tracking" != xno \
3685   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3686   am__fastdepCC_TRUE=
3687   am__fastdepCC_FALSE='#'
3688 else
3689   am__fastdepCC_TRUE='#'
3690   am__fastdepCC_FALSE=
3691 fi
3692
3693
3694
3695 ## ------------------------ ##
3696 ## Fortran compiler checks. ##
3697 ## ------------------------ ##
3698 ac_ext=f
3699 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3700 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3702 if test -n "$ac_tool_prefix"; then
3703   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
3704   do
3705     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if ${ac_cv_prog_F77+:} false; then :
3710   $as_echo_n "(cached) " >&6
3711 else
3712   if test -n "$F77"; then
3713   ac_cv_prog_F77="$F77" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3717 do
3718   IFS=$as_save_IFS
3719   test -z "$as_dir" && as_dir=.
3720     for ac_exec_ext in '' $ac_executable_extensions; do
3721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724     break 2
3725   fi
3726 done
3727   done
3728 IFS=$as_save_IFS
3729
3730 fi
3731 fi
3732 F77=$ac_cv_prog_F77
3733 if test -n "$F77"; then
3734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
3735 $as_echo "$F77" >&6; }
3736 else
3737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3739 fi
3740
3741
3742     test -n "$F77" && break
3743   done
3744 fi
3745 if test -z "$F77"; then
3746   ac_ct_F77=$F77
3747   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
3748 do
3749   # Extract the first word of "$ac_prog", so it can be a program name with args.
3750 set dummy $ac_prog; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_ac_ct_F77+:} false; then :
3754   $as_echo_n "(cached) " >&6
3755 else
3756   if test -n "$ac_ct_F77"; then
3757   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762   IFS=$as_save_IFS
3763   test -z "$as_dir" && as_dir=.
3764     for ac_exec_ext in '' $ac_executable_extensions; do
3765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766     ac_cv_prog_ac_ct_F77="$ac_prog"
3767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768     break 2
3769   fi
3770 done
3771   done
3772 IFS=$as_save_IFS
3773
3774 fi
3775 fi
3776 ac_ct_F77=$ac_cv_prog_ac_ct_F77
3777 if test -n "$ac_ct_F77"; then
3778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
3779 $as_echo "$ac_ct_F77" >&6; }
3780 else
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3783 fi
3784
3785
3786   test -n "$ac_ct_F77" && break
3787 done
3788
3789   if test "x$ac_ct_F77" = x; then
3790     F77=""
3791   else
3792     case $cross_compiling:$ac_tool_warned in
3793 yes:)
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796 ac_tool_warned=yes ;;
3797 esac
3798     F77=$ac_ct_F77
3799   fi
3800 fi
3801
3802
3803 # Provide some information about the compiler.
3804 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
3805 set X $ac_compile
3806 ac_compiler=$2
3807 for ac_option in --version -v -V -qversion; do
3808   { { ac_try="$ac_compiler $ac_option >&5"
3809 case "(($ac_try" in
3810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811   *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3816   ac_status=$?
3817   if test -s conftest.err; then
3818     sed '10a\
3819 ... rest of stderr output deleted ...
3820          10q' conftest.err >conftest.er1
3821     cat conftest.er1 >&5
3822   fi
3823   rm -f conftest.er1 conftest.err
3824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825   test $ac_status = 0; }
3826 done
3827 rm -f a.out
3828
3829 # If we don't use `.F' as extension, the preprocessor is not run on the
3830 # input file.  (Note that this only needs to work for GNU compilers.)
3831 ac_save_ext=$ac_ext
3832 ac_ext=F
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
3834 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
3835 if ${ac_cv_f77_compiler_gnu+:} false; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   cat > conftest.$ac_ext <<_ACEOF
3839       program main
3840 #ifndef __GNUC__
3841        choke me
3842 #endif
3843
3844       end
3845 _ACEOF
3846 if ac_fn_f77_try_compile "$LINENO"; then :
3847   ac_compiler_gnu=yes
3848 else
3849   ac_compiler_gnu=no
3850 fi
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3853
3854 fi
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
3856 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
3857 ac_ext=$ac_save_ext
3858 ac_test_FFLAGS=${FFLAGS+set}
3859 ac_save_FFLAGS=$FFLAGS
3860 FFLAGS=
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
3862 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
3863 if ${ac_cv_prog_f77_g+:} false; then :
3864   $as_echo_n "(cached) " >&6
3865 else
3866   FFLAGS=-g
3867 cat > conftest.$ac_ext <<_ACEOF
3868       program main
3869
3870       end
3871 _ACEOF
3872 if ac_fn_f77_try_compile "$LINENO"; then :
3873   ac_cv_prog_f77_g=yes
3874 else
3875   ac_cv_prog_f77_g=no
3876 fi
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
3881 $as_echo "$ac_cv_prog_f77_g" >&6; }
3882 if test "$ac_test_FFLAGS" = set; then
3883   FFLAGS=$ac_save_FFLAGS
3884 elif test $ac_cv_prog_f77_g = yes; then
3885   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3886     FFLAGS="-g -O2"
3887   else
3888     FFLAGS="-g"
3889   fi
3890 else
3891   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3892     FFLAGS="-O2"
3893   else
3894     FFLAGS=
3895   fi
3896 fi
3897
3898 if test $ac_compiler_gnu = yes; then
3899   G77=yes
3900 else
3901   G77=
3902 fi
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
3909 if test -z "$with_dist"; then
3910
3911 ac_ext=f
3912 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3913 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
3916 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
3917 if ${ac_cv_prog_f77_v+:} false; then :
3918   $as_echo_n "(cached) " >&6
3919 else
3920   cat > conftest.$ac_ext <<_ACEOF
3921       program main
3922
3923       end
3924 _ACEOF
3925 if ac_fn_f77_try_compile "$LINENO"; then :
3926   ac_cv_prog_f77_v=
3927 # Try some options frequently used verbose output
3928 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3929   cat > conftest.$ac_ext <<_ACEOF
3930       program main
3931
3932       end
3933 _ACEOF
3934
3935 # Compile and link our simple test program by passing a flag (argument
3936 # 1 to this macro) to the Fortran compiler in order to get
3937 # "verbose" output that we can then parse for the Fortran linker
3938 # flags.
3939 ac_save_FFLAGS=$FFLAGS
3940 FFLAGS="$FFLAGS $ac_verb"
3941 eval "set x $ac_link"
3942 shift
3943 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
3944 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
3945 # LIBRARY_PATH; skip all such settings.
3946 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
3947   sed '/^Driving:/d; /^Configured with:/d;
3948       '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
3949 $as_echo "$ac_f77_v_output" >&5
3950 FFLAGS=$ac_save_FFLAGS
3951
3952 rm -rf conftest*
3953
3954 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3955 # /foo, /bar, and /baz are search directories for the Fortran linker.
3956 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3957 ac_f77_v_output="`echo $ac_f77_v_output |
3958         grep 'LPATH is:' |
3959         sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
3960
3961 # FIXME: we keep getting bitten by quoted arguments; a more general fix
3962 #        that detects unbalanced quotes in FLIBS should be implemented
3963 #        and (ugh) tested at some point.
3964 case $ac_f77_v_output in
3965   # If we are using xlf then replace all the commas with spaces.
3966   *xlfentry*)
3967     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3968
3969   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3970   # $LIBS confuse us, and the libraries appear later in the output anyway).
3971   *mGLOB_options_string*)
3972     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
3973
3974   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
3975   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
3976   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
3977   *-cmdline\ * | *-ignore\ * | *-def\ *)
3978     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
3979         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
3980         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
3981         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
3982
3983   # If we are using Cray Fortran then delete quotes.
3984   *cft90*)
3985     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
3986 esac
3987
3988
3989   # look for -l* and *.a constructs in the output
3990   for ac_arg in $ac_f77_v_output; do
3991      case $ac_arg in
3992         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3993           ac_cv_prog_f77_v=$ac_verb
3994           break 2 ;;
3995      esac
3996   done
3997 done
3998 if test -z "$ac_cv_prog_f77_v"; then
3999    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
4000 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4001 fi
4002 else
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
4004 $as_echo "$as_me: WARNING: compilation failed" >&2;}
4005 fi
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
4010 $as_echo "$ac_cv_prog_f77_v" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
4012 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
4013 if ${ac_cv_f77_libs+:} false; then :
4014   $as_echo_n "(cached) " >&6
4015 else
4016   if test "x$FLIBS" != "x"; then
4017   ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4018 else
4019
4020 cat > conftest.$ac_ext <<_ACEOF
4021       program main
4022
4023       end
4024 _ACEOF
4025
4026 # Compile and link our simple test program by passing a flag (argument
4027 # 1 to this macro) to the Fortran compiler in order to get
4028 # "verbose" output that we can then parse for the Fortran linker
4029 # flags.
4030 ac_save_FFLAGS=$FFLAGS
4031 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4032 eval "set x $ac_link"
4033 shift
4034 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
4035 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
4036 # LIBRARY_PATH; skip all such settings.
4037 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
4038   sed '/^Driving:/d; /^Configured with:/d;
4039       '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
4040 $as_echo "$ac_f77_v_output" >&5
4041 FFLAGS=$ac_save_FFLAGS
4042
4043 rm -rf conftest*
4044
4045 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4046 # /foo, /bar, and /baz are search directories for the Fortran linker.
4047 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4048 ac_f77_v_output="`echo $ac_f77_v_output |
4049         grep 'LPATH is:' |
4050         sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
4051
4052 # FIXME: we keep getting bitten by quoted arguments; a more general fix
4053 #        that detects unbalanced quotes in FLIBS should be implemented
4054 #        and (ugh) tested at some point.
4055 case $ac_f77_v_output in
4056   # If we are using xlf then replace all the commas with spaces.
4057   *xlfentry*)
4058     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4059
4060   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4061   # $LIBS confuse us, and the libraries appear later in the output anyway).
4062   *mGLOB_options_string*)
4063     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
4064
4065   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
4066   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
4067   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
4068   *-cmdline\ * | *-ignore\ * | *-def\ *)
4069     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
4070         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
4071         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
4072         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
4073
4074   # If we are using Cray Fortran then delete quotes.
4075   *cft90*)
4076     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
4077 esac
4078
4079
4080
4081 ac_cv_f77_libs=
4082
4083 # Save positional arguments (if any)
4084 ac_save_positional="$@"
4085
4086 set X $ac_f77_v_output
4087 while test $# != 1; do
4088   shift
4089   ac_arg=$1
4090   case $ac_arg in
4091         [\\/]*.a | ?:[\\/]*.a)
4092             ac_exists=false
4093   for ac_i in $ac_cv_f77_libs; do
4094     if test x"$ac_arg" = x"$ac_i"; then
4095       ac_exists=true
4096       break
4097     fi
4098   done
4099
4100   if test x"$ac_exists" = xtrue; then :
4101
4102 else
4103   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4104 fi
4105           ;;
4106         -bI:*)
4107             ac_exists=false
4108   for ac_i in $ac_cv_f77_libs; do
4109     if test x"$ac_arg" = x"$ac_i"; then
4110       ac_exists=true
4111       break
4112     fi
4113   done
4114
4115   if test x"$ac_exists" = xtrue; then :
4116
4117 else
4118   if test "$ac_compiler_gnu" = yes; then
4119   for ac_link_opt in $ac_arg; do
4120     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4121   done
4122 else
4123   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4124 fi
4125 fi
4126           ;;
4127           # Ignore these flags.
4128         -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
4129           |-LANG:=* | -LIST:* | -LNO:* | -link)
4130           ;;
4131         -lkernel32)
4132           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4133           ;;
4134         -[LRuYz])
4135           # These flags, when seen by themselves, take an argument.
4136           # We remove the space between option and argument and re-iterate
4137           # unless we find an empty arg or a new option (starting with -)
4138           case $2 in
4139              "" | -*);;
4140              *)
4141                 ac_arg="$ac_arg$2"
4142                 shift; shift
4143                 set X $ac_arg "$@"
4144                 ;;
4145           esac
4146           ;;
4147         -YP,*)
4148           for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4149               ac_exists=false
4150   for ac_i in $ac_cv_f77_libs; do
4151     if test x"$ac_j" = x"$ac_i"; then
4152       ac_exists=true
4153       break
4154     fi
4155   done
4156
4157   if test x"$ac_exists" = xtrue; then :
4158
4159 else
4160   ac_arg="$ac_arg $ac_j"
4161                                ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4162 fi
4163           done
4164           ;;
4165         -[lLR]*)
4166             ac_exists=false
4167   for ac_i in $ac_cv_f77_libs; do
4168     if test x"$ac_arg" = x"$ac_i"; then
4169       ac_exists=true
4170       break
4171     fi
4172   done
4173
4174   if test x"$ac_exists" = xtrue; then :
4175
4176 else
4177   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4178 fi
4179           ;;
4180         -zallextract*| -zdefaultextract)
4181           ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4182           ;;
4183           # Ignore everything else.
4184   esac
4185 done
4186 # restore positional arguments
4187 set X $ac_save_positional; shift
4188
4189 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4190 # then we insist that the "run path" must be an absolute path (i.e. it
4191 # must begin with a "/").
4192 case `(uname -sr) 2>/dev/null` in
4193    "SunOS 5"*)
4194       ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
4195                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4196       test "x$ac_ld_run_path" != x &&
4197         if test "$ac_compiler_gnu" = yes; then
4198   for ac_link_opt in $ac_ld_run_path; do
4199     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4200   done
4201 else
4202   ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4203 fi
4204       ;;
4205 esac
4206 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4207
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
4210 $as_echo "$ac_cv_f77_libs" >&6; }
4211 FLIBS="$ac_cv_f77_libs"
4212
4213
4214 ac_ext=c
4215 ac_cpp='$CPP $CPPFLAGS'
4216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219
4220
4221 ac_ext=f
4222 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4223 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
4227 $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
4228 if ${ac_cv_f77_dummy_main+:} false; then :
4229   $as_echo_n "(cached) " >&6
4230 else
4231   ac_f77_dm_save_LIBS=$LIBS
4232  LIBS="$LIBS $FLIBS"
4233  ac_fortran_dm_var=F77_DUMMY_MAIN
4234  ac_ext=c
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240  # First, try linking without a dummy main:
4241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h.  */
4243
4244 #ifdef F77_DUMMY_MAIN
4245
4246 #  ifdef __cplusplus
4247      extern "C"
4248 #  endif
4249    int F77_DUMMY_MAIN() { return 1; }
4250
4251 #endif
4252 int
4253 main ()
4254 {
4255
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 if ac_fn_c_try_link "$LINENO"; then :
4261   ac_cv_fortran_dummy_main=none
4262 else
4263   ac_cv_fortran_dummy_main=unknown
4264 fi
4265 rm -f core conftest.err conftest.$ac_objext \
4266     conftest$ac_exeext conftest.$ac_ext
4267
4268  if test $ac_cv_fortran_dummy_main = unknown; then
4269    for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4270      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h.  */
4272 #define $ac_fortran_dm_var $ac_func
4273 #ifdef F77_DUMMY_MAIN
4274
4275 #  ifdef __cplusplus
4276      extern "C"
4277 #  endif
4278    int F77_DUMMY_MAIN() { return 1; }
4279
4280 #endif
4281 int
4282 main ()
4283 {
4284
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_c_try_link "$LINENO"; then :
4290   ac_cv_fortran_dummy_main=$ac_func; break
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext \
4293     conftest$ac_exeext conftest.$ac_ext
4294    done
4295  fi
4296  ac_ext=f
4297 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4298 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4300  ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4301  rm -rf conftest*
4302  LIBS=$ac_f77_dm_save_LIBS
4303
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
4306 $as_echo "$ac_cv_f77_dummy_main" >&6; }
4307 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4308 if test "$F77_DUMMY_MAIN" != unknown; then :
4309   if test $F77_DUMMY_MAIN != none; then
4310
4311 cat >>confdefs.h <<_ACEOF
4312 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4313 _ACEOF
4314
4315   if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4316
4317 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
4318
4319   fi
4320 fi
4321 else
4322   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4324 as_fn_error $? "linking to Fortran libraries from C fails
4325 See \`config.log' for more details" "$LINENO" 5; }
4326 fi
4327
4328 ac_ext=c
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333
4334 ac_ext=f
4335 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4336 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
4339 $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
4340 if ${ac_cv_f77_mangling+:} false; then :
4341   $as_echo_n "(cached) " >&6
4342 else
4343   cat > conftest.$ac_ext <<_ACEOF
4344       subroutine foobar()
4345       return
4346       end
4347       subroutine foo_bar()
4348       return
4349       end
4350 _ACEOF
4351 if ac_fn_f77_try_compile "$LINENO"; then :
4352   mv conftest.$ac_objext cfortran_test.$ac_objext
4353
4354   ac_save_LIBS=$LIBS
4355   LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4356
4357   ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362   ac_success=no
4363   for ac_foobar in foobar FOOBAR; do
4364     for ac_underscore in "" "_"; do
4365       ac_func="$ac_foobar$ac_underscore"
4366       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h.  */
4368
4369 /* Override any GCC internal prototype to avoid an error.
4370    Use char because int might match the return type of a GCC
4371    builtin and then its argument prototype would still apply.  */
4372 #ifdef __cplusplus
4373 extern "C"
4374 #endif
4375 char $ac_func ();
4376 #ifdef F77_DUMMY_MAIN
4377
4378 #  ifdef __cplusplus
4379      extern "C"
4380 #  endif
4381    int F77_DUMMY_MAIN() { return 1; }
4382
4383 #endif
4384 int
4385 main ()
4386 {
4387 return $ac_func ();
4388   ;
4389   return 0;
4390 }
4391 _ACEOF
4392 if ac_fn_c_try_link "$LINENO"; then :
4393   ac_success=yes; break 2
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext \
4396     conftest$ac_exeext conftest.$ac_ext
4397     done
4398   done
4399   ac_ext=f
4400 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4401 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4403
4404   if test "$ac_success" = "yes"; then
4405      case $ac_foobar in
4406         foobar)
4407            ac_case=lower
4408            ac_foo_bar=foo_bar
4409            ;;
4410         FOOBAR)
4411            ac_case=upper
4412            ac_foo_bar=FOO_BAR
4413            ;;
4414      esac
4415
4416      ac_ext=c
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421      ac_success_extra=no
4422      for ac_extra in "" "_"; do
4423         ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4424         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h.  */
4426
4427 /* Override any GCC internal prototype to avoid an error.
4428    Use char because int might match the return type of a GCC
4429    builtin and then its argument prototype would still apply.  */
4430 #ifdef __cplusplus
4431 extern "C"
4432 #endif
4433 char $ac_func ();
4434 #ifdef F77_DUMMY_MAIN
4435
4436 #  ifdef __cplusplus
4437      extern "C"
4438 #  endif
4439    int F77_DUMMY_MAIN() { return 1; }
4440
4441 #endif
4442 int
4443 main ()
4444 {
4445 return $ac_func ();
4446   ;
4447   return 0;
4448 }
4449 _ACEOF
4450 if ac_fn_c_try_link "$LINENO"; then :
4451   ac_success_extra=yes; break
4452 fi
4453 rm -f core conftest.err conftest.$ac_objext \
4454     conftest$ac_exeext conftest.$ac_ext
4455      done
4456      ac_ext=f
4457 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4458 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4460
4461      if test "$ac_success_extra" = "yes"; then
4462         ac_cv_f77_mangling="$ac_case case"
4463         if test -z "$ac_underscore"; then
4464            ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4465         else
4466            ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4467         fi
4468         if test -z "$ac_extra"; then
4469            ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4470         else
4471            ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4472         fi
4473       else
4474         ac_cv_f77_mangling="unknown"
4475       fi
4476   else
4477      ac_cv_f77_mangling="unknown"
4478   fi
4479
4480   LIBS=$ac_save_LIBS
4481   rm -rf conftest*
4482   rm -f cfortran_test*
4483 else
4484   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4486 as_fn_error $? "cannot compile a simple Fortran program
4487 See \`config.log' for more details" "$LINENO" 5; }
4488 fi
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
4493 $as_echo "$ac_cv_f77_mangling" >&6; }
4494
4495 ac_ext=c
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500
4501 ac_ext=f
4502 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4503 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4505 case $ac_cv_f77_mangling in
4506   "lower case, no underscore, no extra underscore")
4507           $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
4508
4509           $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
4510  ;;
4511   "lower case, no underscore, extra underscore")
4512           $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
4513
4514           $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
4515  ;;
4516   "lower case, underscore, no extra underscore")
4517           $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
4518
4519           $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
4520  ;;
4521   "lower case, underscore, extra underscore")
4522           $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
4523
4524           $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
4525  ;;
4526   "upper case, no underscore, no extra underscore")
4527           $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
4528
4529           $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
4530  ;;
4531   "upper case, no underscore, extra underscore")
4532           $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
4533
4534           $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
4535  ;;
4536   "upper case, underscore, no extra underscore")
4537           $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
4538
4539           $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
4540  ;;
4541   "upper case, underscore, extra underscore")
4542           $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
4543
4544           $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
4545  ;;
4546   *)
4547           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
4548 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4549           ;;
4550 esac
4551
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557
4558 fi
4559
4560 ## ----------------------- ##
4561 ## Libtool initialisation. ##
4562 ## ----------------------- ##
4563 case `pwd` in
4564   *\ * | *\     *)
4565     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4566 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4567 esac
4568
4569
4570
4571 macro_version='2.4.2'
4572 macro_revision='1.3337'
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586 ltmain="$ac_aux_dir/ltmain.sh"
4587
4588 # Make sure we can run config.sub.
4589 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4590   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4593 $as_echo_n "checking build system type... " >&6; }
4594 if ${ac_cv_build+:} false; then :
4595   $as_echo_n "(cached) " >&6
4596 else
4597   ac_build_alias=$build_alias
4598 test "x$ac_build_alias" = x &&
4599   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4600 test "x$ac_build_alias" = x &&
4601   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4602 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4603   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4604
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4607 $as_echo "$ac_cv_build" >&6; }
4608 case $ac_cv_build in
4609 *-*-*) ;;
4610 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4611 esac
4612 build=$ac_cv_build
4613 ac_save_IFS=$IFS; IFS='-'
4614 set x $ac_cv_build
4615 shift
4616 build_cpu=$1
4617 build_vendor=$2
4618 shift; shift
4619 # Remember, the first character of IFS is used to create $*,
4620 # except with old shells:
4621 build_os=$*
4622 IFS=$ac_save_IFS
4623 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4624
4625
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4627 $as_echo_n "checking host system type... " >&6; }
4628 if ${ac_cv_host+:} false; then :
4629   $as_echo_n "(cached) " >&6
4630 else
4631   if test "x$host_alias" = x; then
4632   ac_cv_host=$ac_cv_build
4633 else
4634   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4635     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4636 fi
4637
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4640 $as_echo "$ac_cv_host" >&6; }
4641 case $ac_cv_host in
4642 *-*-*) ;;
4643 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4644 esac
4645 host=$ac_cv_host
4646 ac_save_IFS=$IFS; IFS='-'
4647 set x $ac_cv_host
4648 shift
4649 host_cpu=$1
4650 host_vendor=$2
4651 shift; shift
4652 # Remember, the first character of IFS is used to create $*,
4653 # except with old shells:
4654 host_os=$*
4655 IFS=$ac_save_IFS
4656 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4657
4658
4659 # Backslashify metacharacters that are still active within
4660 # double-quoted strings.
4661 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4662
4663 # Same as above, but do not quote variable references.
4664 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4665
4666 # Sed substitution to delay expansion of an escaped shell variable in a
4667 # double_quote_subst'ed string.
4668 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4669
4670 # Sed substitution to delay expansion of an escaped single quote.
4671 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4672
4673 # Sed substitution to avoid accidental globbing in evaled expressions
4674 no_glob_subst='s/\*/\\\*/g'
4675
4676 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4677 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4678 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4681 $as_echo_n "checking how to print strings... " >&6; }
4682 # Test print first, because it will be a builtin if present.
4683 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4684    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4685   ECHO='print -r --'
4686 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4687   ECHO='printf %s\n'
4688 else
4689   # Use this function as a fallback that always works.
4690   func_fallback_echo ()
4691   {
4692     eval 'cat <<_LTECHO_EOF
4693 $1
4694 _LTECHO_EOF'
4695   }
4696   ECHO='func_fallback_echo'
4697 fi
4698
4699 # func_echo_all arg...
4700 # Invoke $ECHO with all args, space-separated.
4701 func_echo_all ()
4702 {
4703     $ECHO ""
4704 }
4705
4706 case "$ECHO" in
4707   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4708 $as_echo "printf" >&6; } ;;
4709   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4710 $as_echo "print -r" >&6; } ;;
4711   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4712 $as_echo "cat" >&6; } ;;
4713 esac
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4729 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4730 if ${ac_cv_path_SED+:} false; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4734      for ac_i in 1 2 3 4 5 6 7; do
4735        ac_script="$ac_script$as_nl$ac_script"
4736      done
4737      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4738      { ac_script=; unset ac_script;}
4739      if test -z "$SED"; then
4740   ac_path_SED_found=false
4741   # Loop through the user's path and test for each of PROGNAME-LIST
4742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745   IFS=$as_save_IFS
4746   test -z "$as_dir" && as_dir=.
4747     for ac_prog in sed gsed; do
4748     for ac_exec_ext in '' $ac_executable_extensions; do
4749       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4750       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4751 # Check for GNU ac_path_SED and select it if it is found.
4752   # Check for GNU $ac_path_SED
4753 case `"$ac_path_SED" --version 2>&1` in
4754 *GNU*)
4755   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4756 *)
4757   ac_count=0
4758   $as_echo_n 0123456789 >"conftest.in"
4759   while :
4760   do
4761     cat "conftest.in" "conftest.in" >"conftest.tmp"
4762     mv "conftest.tmp" "conftest.in"
4763     cp "conftest.in" "conftest.nl"
4764     $as_echo '' >> "conftest.nl"
4765     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4766     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4767     as_fn_arith $ac_count + 1 && ac_count=$as_val
4768     if test $ac_count -gt ${ac_path_SED_max-0}; then
4769       # Best one so far, save it but keep looking for a better one
4770       ac_cv_path_SED="$ac_path_SED"
4771       ac_path_SED_max=$ac_count
4772     fi
4773     # 10*(2^10) chars as input seems more than enough
4774     test $ac_count -gt 10 && break
4775   done
4776   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4777 esac
4778
4779       $ac_path_SED_found && break 3
4780     done
4781   done
4782   done
4783 IFS=$as_save_IFS
4784   if test -z "$ac_cv_path_SED"; then
4785     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4786   fi
4787 else
4788   ac_cv_path_SED=$SED
4789 fi
4790
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4793 $as_echo "$ac_cv_path_SED" >&6; }
4794  SED="$ac_cv_path_SED"
4795   rm -f conftest.sed
4796
4797 test -z "$SED" && SED=sed
4798 Xsed="$SED -e 1s/^X//"
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4811 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4812 if ${ac_cv_path_GREP+:} false; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   if test -z "$GREP"; then
4816   ac_path_GREP_found=false
4817   # Loop through the user's path and test for each of PROGNAME-LIST
4818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4820 do
4821   IFS=$as_save_IFS
4822   test -z "$as_dir" && as_dir=.
4823     for ac_prog in grep ggrep; do
4824     for ac_exec_ext in '' $ac_executable_extensions; do
4825       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4826       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4827 # Check for GNU ac_path_GREP and select it if it is found.
4828   # Check for GNU $ac_path_GREP
4829 case `"$ac_path_GREP" --version 2>&1` in
4830 *GNU*)
4831   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4832 *)
4833   ac_count=0
4834   $as_echo_n 0123456789 >"conftest.in"
4835   while :
4836   do
4837     cat "conftest.in" "conftest.in" >"conftest.tmp"
4838     mv "conftest.tmp" "conftest.in"
4839     cp "conftest.in" "conftest.nl"
4840     $as_echo 'GREP' >> "conftest.nl"
4841     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843     as_fn_arith $ac_count + 1 && ac_count=$as_val
4844     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4845       # Best one so far, save it but keep looking for a better one
4846       ac_cv_path_GREP="$ac_path_GREP"
4847       ac_path_GREP_max=$ac_count
4848     fi
4849     # 10*(2^10) chars as input seems more than enough
4850     test $ac_count -gt 10 && break
4851   done
4852   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4853 esac
4854
4855       $ac_path_GREP_found && break 3
4856     done
4857   done
4858   done
4859 IFS=$as_save_IFS
4860   if test -z "$ac_cv_path_GREP"; then
4861     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4862   fi
4863 else
4864   ac_cv_path_GREP=$GREP
4865 fi
4866
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4869 $as_echo "$ac_cv_path_GREP" >&6; }
4870  GREP="$ac_cv_path_GREP"
4871
4872
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4874 $as_echo_n "checking for egrep... " >&6; }
4875 if ${ac_cv_path_EGREP+:} false; then :
4876   $as_echo_n "(cached) " >&6
4877 else
4878   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4879    then ac_cv_path_EGREP="$GREP -E"
4880    else
4881      if test -z "$EGREP"; then
4882   ac_path_EGREP_found=false
4883   # Loop through the user's path and test for each of PROGNAME-LIST
4884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4886 do
4887   IFS=$as_save_IFS
4888   test -z "$as_dir" && as_dir=.
4889     for ac_prog in egrep; do
4890     for ac_exec_ext in '' $ac_executable_extensions; do
4891       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4892       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4893 # Check for GNU ac_path_EGREP and select it if it is found.
4894   # Check for GNU $ac_path_EGREP
4895 case `"$ac_path_EGREP" --version 2>&1` in
4896 *GNU*)
4897   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4898 *)
4899   ac_count=0
4900   $as_echo_n 0123456789 >"conftest.in"
4901   while :
4902   do
4903     cat "conftest.in" "conftest.in" >"conftest.tmp"
4904     mv "conftest.tmp" "conftest.in"
4905     cp "conftest.in" "conftest.nl"
4906     $as_echo 'EGREP' >> "conftest.nl"
4907     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4908     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4909     as_fn_arith $ac_count + 1 && ac_count=$as_val
4910     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4911       # Best one so far, save it but keep looking for a better one
4912       ac_cv_path_EGREP="$ac_path_EGREP"
4913       ac_path_EGREP_max=$ac_count
4914     fi
4915     # 10*(2^10) chars as input seems more than enough
4916     test $ac_count -gt 10 && break
4917   done
4918   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4919 esac
4920
4921       $ac_path_EGREP_found && break 3
4922     done
4923   done
4924   done
4925 IFS=$as_save_IFS
4926   if test -z "$ac_cv_path_EGREP"; then
4927     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4928   fi
4929 else
4930   ac_cv_path_EGREP=$EGREP
4931 fi
4932
4933    fi
4934 fi
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4936 $as_echo "$ac_cv_path_EGREP" >&6; }
4937  EGREP="$ac_cv_path_EGREP"
4938
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4941 $as_echo_n "checking for fgrep... " >&6; }
4942 if ${ac_cv_path_FGREP+:} false; then :
4943   $as_echo_n "(cached) " >&6
4944 else
4945   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4946    then ac_cv_path_FGREP="$GREP -F"
4947    else
4948      if test -z "$FGREP"; then
4949   ac_path_FGREP_found=false
4950   # Loop through the user's path and test for each of PROGNAME-LIST
4951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956     for ac_prog in fgrep; do
4957     for ac_exec_ext in '' $ac_executable_extensions; do
4958       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4959       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4960 # Check for GNU ac_path_FGREP and select it if it is found.
4961   # Check for GNU $ac_path_FGREP
4962 case `"$ac_path_FGREP" --version 2>&1` in
4963 *GNU*)
4964   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4965 *)
4966   ac_count=0
4967   $as_echo_n 0123456789 >"conftest.in"
4968   while :
4969   do
4970     cat "conftest.in" "conftest.in" >"conftest.tmp"
4971     mv "conftest.tmp" "conftest.in"
4972     cp "conftest.in" "conftest.nl"
4973     $as_echo 'FGREP' >> "conftest.nl"
4974     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4975     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4976     as_fn_arith $ac_count + 1 && ac_count=$as_val
4977     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4978       # Best one so far, save it but keep looking for a better one
4979       ac_cv_path_FGREP="$ac_path_FGREP"
4980       ac_path_FGREP_max=$ac_count
4981     fi
4982     # 10*(2^10) chars as input seems more than enough
4983     test $ac_count -gt 10 && break
4984   done
4985   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4986 esac
4987
4988       $ac_path_FGREP_found && break 3
4989     done
4990   done
4991   done
4992 IFS=$as_save_IFS
4993   if test -z "$ac_cv_path_FGREP"; then
4994     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4995   fi
4996 else
4997   ac_cv_path_FGREP=$FGREP
4998 fi
4999
5000    fi
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5003 $as_echo "$ac_cv_path_FGREP" >&6; }
5004  FGREP="$ac_cv_path_FGREP"
5005
5006
5007 test -z "$GREP" && GREP=grep
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027 # Check whether --with-gnu-ld was given.
5028 if test "${with_gnu_ld+set}" = set; then :
5029   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5030 else
5031   with_gnu_ld=no
5032 fi
5033
5034 ac_prog=ld
5035 if test "$GCC" = yes; then
5036   # Check if gcc -print-prog-name=ld gives a path.
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5038 $as_echo_n "checking for ld used by $CC... " >&6; }
5039   case $host in
5040   *-*-mingw*)
5041     # gcc leaves a trailing carriage return which upsets mingw
5042     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5043   *)
5044     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5045   esac
5046   case $ac_prog in
5047     # Accept absolute paths.
5048     [\\/]* | ?:[\\/]*)
5049       re_direlt='/[^/][^/]*/\.\./'
5050       # Canonicalize the pathname of ld
5051       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5052       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5053         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5054       done
5055       test -z "$LD" && LD="$ac_prog"
5056       ;;
5057   "")
5058     # If it fails, then pretend we aren't using GCC.
5059     ac_prog=ld
5060     ;;
5061   *)
5062     # If it is relative, then search for the first ld in PATH.
5063     with_gnu_ld=unknown
5064     ;;
5065   esac
5066 elif test "$with_gnu_ld" = yes; then
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5068 $as_echo_n "checking for GNU ld... " >&6; }
5069 else
5070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5071 $as_echo_n "checking for non-GNU ld... " >&6; }
5072 fi
5073 if ${lt_cv_path_LD+:} false; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076   if test -z "$LD"; then
5077   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5078   for ac_dir in $PATH; do
5079     IFS="$lt_save_ifs"
5080     test -z "$ac_dir" && ac_dir=.
5081     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5082       lt_cv_path_LD="$ac_dir/$ac_prog"
5083       # Check to see if the program is GNU ld.  I'd rather use --version,
5084       # but apparently some variants of GNU ld only accept -v.
5085       # Break only if it was the GNU/non-GNU ld that we prefer.
5086       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5087       *GNU* | *'with BFD'*)
5088         test "$with_gnu_ld" != no && break
5089         ;;
5090       *)
5091         test "$with_gnu_ld" != yes && break
5092         ;;
5093       esac
5094     fi
5095   done
5096   IFS="$lt_save_ifs"
5097 else
5098   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5099 fi
5100 fi
5101
5102 LD="$lt_cv_path_LD"
5103 if test -n "$LD"; then
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5105 $as_echo "$LD" >&6; }
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5112 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5113 if ${lt_cv_prog_gnu_ld+:} false; then :
5114   $as_echo_n "(cached) " >&6
5115 else
5116   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5117 case `$LD -v 2>&1 </dev/null` in
5118 *GNU* | *'with BFD'*)
5119   lt_cv_prog_gnu_ld=yes
5120   ;;
5121 *)
5122   lt_cv_prog_gnu_ld=no
5123   ;;
5124 esac
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5127 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5128 with_gnu_ld=$lt_cv_prog_gnu_ld
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5139 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5140 if ${lt_cv_path_NM+:} false; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143   if test -n "$NM"; then
5144   # Let the user override the test.
5145   lt_cv_path_NM="$NM"
5146 else
5147   lt_nm_to_check="${ac_tool_prefix}nm"
5148   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5149     lt_nm_to_check="$lt_nm_to_check nm"
5150   fi
5151   for lt_tmp_nm in $lt_nm_to_check; do
5152     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5153     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5154       IFS="$lt_save_ifs"
5155       test -z "$ac_dir" && ac_dir=.
5156       tmp_nm="$ac_dir/$lt_tmp_nm"
5157       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5158         # Check to see if the nm accepts a BSD-compat flag.
5159         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5160         #   nm: unknown option "B" ignored
5161         # Tru64's nm complains that /dev/null is an invalid object file
5162         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5163         */dev/null* | *'Invalid file or object type'*)
5164           lt_cv_path_NM="$tmp_nm -B"
5165           break
5166           ;;
5167         *)
5168           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5169           */dev/null*)
5170             lt_cv_path_NM="$tmp_nm -p"
5171             break
5172             ;;
5173           *)
5174             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5175             continue # so that we can try to find one that supports BSD flags
5176             ;;
5177           esac
5178           ;;
5179         esac
5180       fi
5181     done
5182     IFS="$lt_save_ifs"
5183   done
5184   : ${lt_cv_path_NM=no}
5185 fi
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5188 $as_echo "$lt_cv_path_NM" >&6; }
5189 if test "$lt_cv_path_NM" != "no"; then
5190   NM="$lt_cv_path_NM"
5191 else
5192   # Didn't find any BSD compatible name lister, look for dumpbin.
5193   if test -n "$DUMPBIN"; then :
5194     # Let the user override the test.
5195   else
5196     if test -n "$ac_tool_prefix"; then
5197   for ac_prog in dumpbin "link -dump"
5198   do
5199     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if ${ac_cv_prog_DUMPBIN+:} false; then :
5204   $as_echo_n "(cached) " >&6
5205 else
5206   if test -n "$DUMPBIN"; then
5207   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212   IFS=$as_save_IFS
5213   test -z "$as_dir" && as_dir=.
5214     for ac_exec_ext in '' $ac_executable_extensions; do
5215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218     break 2
5219   fi
5220 done
5221   done
5222 IFS=$as_save_IFS
5223
5224 fi
5225 fi
5226 DUMPBIN=$ac_cv_prog_DUMPBIN
5227 if test -n "$DUMPBIN"; then
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5229 $as_echo "$DUMPBIN" >&6; }
5230 else
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 fi
5234
5235
5236     test -n "$DUMPBIN" && break
5237   done
5238 fi
5239 if test -z "$DUMPBIN"; then
5240   ac_ct_DUMPBIN=$DUMPBIN
5241   for ac_prog in dumpbin "link -dump"
5242 do
5243   # Extract the first word of "$ac_prog", so it can be a program name with args.
5244 set dummy $ac_prog; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250   if test -n "$ac_ct_DUMPBIN"; then
5251   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256   IFS=$as_save_IFS
5257   test -z "$as_dir" && as_dir=.
5258     for ac_exec_ext in '' $ac_executable_extensions; do
5259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262     break 2
5263   fi
5264 done
5265   done
5266 IFS=$as_save_IFS
5267
5268 fi
5269 fi
5270 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5271 if test -n "$ac_ct_DUMPBIN"; then
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5273 $as_echo "$ac_ct_DUMPBIN" >&6; }
5274 else
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5277 fi
5278
5279
5280   test -n "$ac_ct_DUMPBIN" && break
5281 done
5282
5283   if test "x$ac_ct_DUMPBIN" = x; then
5284     DUMPBIN=":"
5285   else
5286     case $cross_compiling:$ac_tool_warned in
5287 yes:)
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5290 ac_tool_warned=yes ;;
5291 esac
5292     DUMPBIN=$ac_ct_DUMPBIN
5293   fi
5294 fi
5295
5296     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5297     *COFF*)
5298       DUMPBIN="$DUMPBIN -symbols"
5299       ;;
5300     *)
5301       DUMPBIN=:
5302       ;;
5303     esac
5304   fi
5305
5306   if test "$DUMPBIN" != ":"; then
5307     NM="$DUMPBIN"
5308   fi
5309 fi
5310 test -z "$NM" && NM=nm
5311
5312
5313
5314
5315
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5318 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5319 if ${lt_cv_nm_interface+:} false; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322   lt_cv_nm_interface="BSD nm"
5323   echo "int some_variable = 0;" > conftest.$ac_ext
5324   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5325   (eval "$ac_compile" 2>conftest.err)
5326   cat conftest.err >&5
5327   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5328   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5329   cat conftest.err >&5
5330   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5331   cat conftest.out >&5
5332   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5333     lt_cv_nm_interface="MS dumpbin"
5334   fi
5335   rm -f conftest*
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5338 $as_echo "$lt_cv_nm_interface" >&6; }
5339
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5341 $as_echo_n "checking whether ln -s works... " >&6; }
5342 LN_S=$as_ln_s
5343 if test "$LN_S" = "ln -s"; then
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5345 $as_echo "yes" >&6; }
5346 else
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5348 $as_echo "no, using $LN_S" >&6; }
5349 fi
5350
5351 # find the maximum length of command line arguments
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5353 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5354 if ${lt_cv_sys_max_cmd_len+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357     i=0
5358   teststring="ABCD"
5359
5360   case $build_os in
5361   msdosdjgpp*)
5362     # On DJGPP, this test can blow up pretty badly due to problems in libc
5363     # (any single argument exceeding 2000 bytes causes a buffer overrun
5364     # during glob expansion).  Even if it were fixed, the result of this
5365     # check would be larger than it should be.
5366     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5367     ;;
5368
5369   gnu*)
5370     # Under GNU Hurd, this test is not required because there is
5371     # no limit to the length of command line arguments.
5372     # Libtool will interpret -1 as no limit whatsoever
5373     lt_cv_sys_max_cmd_len=-1;
5374     ;;
5375
5376   cygwin* | mingw* | cegcc*)
5377     # On Win9x/ME, this test blows up -- it succeeds, but takes
5378     # about 5 minutes as the teststring grows exponentially.
5379     # Worse, since 9x/ME are not pre-emptively multitasking,
5380     # you end up with a "frozen" computer, even though with patience
5381     # the test eventually succeeds (with a max line length of 256k).
5382     # Instead, let's just punt: use the minimum linelength reported by
5383     # all of the supported platforms: 8192 (on NT/2K/XP).
5384     lt_cv_sys_max_cmd_len=8192;
5385     ;;
5386
5387   mint*)
5388     # On MiNT this can take a long time and run out of memory.
5389     lt_cv_sys_max_cmd_len=8192;
5390     ;;
5391
5392   amigaos*)
5393     # On AmigaOS with pdksh, this test takes hours, literally.
5394     # So we just punt and use a minimum line length of 8192.
5395     lt_cv_sys_max_cmd_len=8192;
5396     ;;
5397
5398   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5399     # This has been around since 386BSD, at least.  Likely further.
5400     if test -x /sbin/sysctl; then
5401       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5402     elif test -x /usr/sbin/sysctl; then
5403       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5404     else
5405       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5406     fi
5407     # And add a safety zone
5408     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5409     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5410     ;;
5411
5412   interix*)
5413     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5414     lt_cv_sys_max_cmd_len=196608
5415     ;;
5416
5417   os2*)
5418     # The test takes a long time on OS/2.
5419     lt_cv_sys_max_cmd_len=8192
5420     ;;
5421
5422   osf*)
5423     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5424     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5425     # nice to cause kernel panics so lets avoid the loop below.
5426     # First set a reasonable default.
5427     lt_cv_sys_max_cmd_len=16384
5428     #
5429     if test -x /sbin/sysconfig; then
5430       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5431         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5432       esac
5433     fi
5434     ;;
5435   sco3.2v5*)
5436     lt_cv_sys_max_cmd_len=102400
5437     ;;
5438   sysv5* | sco5v6* | sysv4.2uw2*)
5439     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5440     if test -n "$kargmax"; then
5441       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5442     else
5443       lt_cv_sys_max_cmd_len=32768
5444     fi
5445     ;;
5446   *)
5447     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5448     if test -n "$lt_cv_sys_max_cmd_len"; then
5449       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5450       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5451     else
5452       # Make teststring a little bigger before we do anything with it.
5453       # a 1K string should be a reasonable start.
5454       for i in 1 2 3 4 5 6 7 8 ; do
5455         teststring=$teststring$teststring
5456       done
5457       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5458       # If test is not a shell built-in, we'll probably end up computing a
5459       # maximum length that is only half of the actual maximum length, but
5460       # we can't tell.
5461       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5462                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5463               test $i != 17 # 1/2 MB should be enough
5464       do
5465         i=`expr $i + 1`
5466         teststring=$teststring$teststring
5467       done
5468       # Only check the string length outside the loop.
5469       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5470       teststring=
5471       # Add a significant safety factor because C++ compilers can tack on
5472       # massive amounts of additional arguments before passing them to the
5473       # linker.  It appears as though 1/2 is a usable value.
5474       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5475     fi
5476     ;;
5477   esac
5478
5479 fi
5480
5481 if test -n $lt_cv_sys_max_cmd_len ; then
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5483 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5484 else
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5486 $as_echo "none" >&6; }
5487 fi
5488 max_cmd_len=$lt_cv_sys_max_cmd_len
5489
5490
5491
5492
5493
5494
5495 : ${CP="cp -f"}
5496 : ${MV="mv -f"}
5497 : ${RM="rm -f"}
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5500 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5501 # Try some XSI features
5502 xsi_shell=no
5503 ( _lt_dummy="a/b/c"
5504   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5505       = c,a/b,b/c, \
5506     && eval 'test $(( 1 + 1 )) -eq 2 \
5507     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5508   && xsi_shell=yes
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5510 $as_echo "$xsi_shell" >&6; }
5511
5512
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5514 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5515 lt_shell_append=no
5516 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5517     >/dev/null 2>&1 \
5518   && lt_shell_append=yes
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5520 $as_echo "$lt_shell_append" >&6; }
5521
5522
5523 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5524   lt_unset=unset
5525 else
5526   lt_unset=false
5527 fi
5528
5529
5530
5531
5532
5533 # test EBCDIC or ASCII
5534 case `echo X|tr X '\101'` in
5535  A) # ASCII based system
5536     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5537   lt_SP2NL='tr \040 \012'
5538   lt_NL2SP='tr \015\012 \040\040'
5539   ;;
5540  *) # EBCDIC based system
5541   lt_SP2NL='tr \100 \n'
5542   lt_NL2SP='tr \r\n \100\100'
5543   ;;
5544 esac
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5555 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5556 if ${lt_cv_to_host_file_cmd+:} false; then :
5557   $as_echo_n "(cached) " >&6
5558 else
5559   case $host in
5560   *-*-mingw* )
5561     case $build in
5562       *-*-mingw* ) # actually msys
5563         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5564         ;;
5565       *-*-cygwin* )
5566         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5567         ;;
5568       * ) # otherwise, assume *nix
5569         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5570         ;;
5571     esac
5572     ;;
5573   *-*-cygwin* )
5574     case $build in
5575       *-*-mingw* ) # actually msys
5576         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5577         ;;
5578       *-*-cygwin* )
5579         lt_cv_to_host_file_cmd=func_convert_file_noop
5580         ;;
5581       * ) # otherwise, assume *nix
5582         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5583         ;;
5584     esac
5585     ;;
5586   * ) # unhandled hosts (and "normal" native builds)
5587     lt_cv_to_host_file_cmd=func_convert_file_noop
5588     ;;
5589 esac
5590
5591 fi
5592
5593 to_host_file_cmd=$lt_cv_to_host_file_cmd
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5595 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5596
5597
5598
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5602 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5603 if ${lt_cv_to_tool_file_cmd+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   #assume ordinary cross tools, or native build.
5607 lt_cv_to_tool_file_cmd=func_convert_file_noop
5608 case $host in
5609   *-*-mingw* )
5610     case $build in
5611       *-*-mingw* ) # actually msys
5612         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5613         ;;
5614     esac
5615     ;;
5616 esac
5617
5618 fi
5619
5620 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5622 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5623
5624
5625
5626
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5629 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5630 if ${lt_cv_ld_reload_flag+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   lt_cv_ld_reload_flag='-r'
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5636 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5637 reload_flag=$lt_cv_ld_reload_flag
5638 case $reload_flag in
5639 "" | " "*) ;;
5640 *) reload_flag=" $reload_flag" ;;
5641 esac
5642 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5643 case $host_os in
5644   cygwin* | mingw* | pw32* | cegcc*)
5645     if test "$GCC" != yes; then
5646       reload_cmds=false
5647     fi
5648     ;;
5649   darwin*)
5650     if test "$GCC" = yes; then
5651       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5652     else
5653       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5654     fi
5655     ;;
5656 esac
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666 if test -n "$ac_tool_prefix"; then
5667   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5668 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if ${ac_cv_prog_OBJDUMP+:} false; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   if test -n "$OBJDUMP"; then
5675   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680   IFS=$as_save_IFS
5681   test -z "$as_dir" && as_dir=.
5682     for ac_exec_ext in '' $ac_executable_extensions; do
5683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686     break 2
5687   fi
5688 done
5689   done
5690 IFS=$as_save_IFS
5691
5692 fi
5693 fi
5694 OBJDUMP=$ac_cv_prog_OBJDUMP
5695 if test -n "$OBJDUMP"; then
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5697 $as_echo "$OBJDUMP" >&6; }
5698 else
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702
5703
5704 fi
5705 if test -z "$ac_cv_prog_OBJDUMP"; then
5706   ac_ct_OBJDUMP=$OBJDUMP
5707   # Extract the first word of "objdump", so it can be a program name with args.
5708 set dummy objdump; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5712   $as_echo_n "(cached) " >&6
5713 else
5714   if test -n "$ac_ct_OBJDUMP"; then
5715   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722     for ac_exec_ext in '' $ac_executable_extensions; do
5723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729   done
5730 IFS=$as_save_IFS
5731
5732 fi
5733 fi
5734 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5735 if test -n "$ac_ct_OBJDUMP"; then
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5737 $as_echo "$ac_ct_OBJDUMP" >&6; }
5738 else
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742
5743   if test "x$ac_ct_OBJDUMP" = x; then
5744     OBJDUMP="false"
5745   else
5746     case $cross_compiling:$ac_tool_warned in
5747 yes:)
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750 ac_tool_warned=yes ;;
5751 esac
5752     OBJDUMP=$ac_ct_OBJDUMP
5753   fi
5754 else
5755   OBJDUMP="$ac_cv_prog_OBJDUMP"
5756 fi
5757
5758 test -z "$OBJDUMP" && OBJDUMP=objdump
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5769 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5770 if ${lt_cv_deplibs_check_method+:} false; then :
5771   $as_echo_n "(cached) " >&6
5772 else
5773   lt_cv_file_magic_cmd='$MAGIC_CMD'
5774 lt_cv_file_magic_test_file=
5775 lt_cv_deplibs_check_method='unknown'
5776 # Need to set the preceding variable on all platforms that support
5777 # interlibrary dependencies.
5778 # 'none' -- dependencies not supported.
5779 # `unknown' -- same as none, but documents that we really don't know.
5780 # 'pass_all' -- all dependencies passed with no checks.
5781 # 'test_compile' -- check by making test program.
5782 # 'file_magic [[regex]]' -- check by looking for files in library path
5783 # which responds to the $file_magic_cmd with a given extended regex.
5784 # If you have `file' or equivalent on your system and you're not sure
5785 # whether `pass_all' will *always* work, you probably want this one.
5786
5787 case $host_os in
5788 aix[4-9]*)
5789   lt_cv_deplibs_check_method=pass_all
5790   ;;
5791
5792 beos*)
5793   lt_cv_deplibs_check_method=pass_all
5794   ;;
5795
5796 bsdi[45]*)
5797   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5798   lt_cv_file_magic_cmd='/usr/bin/file -L'
5799   lt_cv_file_magic_test_file=/shlib/libc.so
5800   ;;
5801
5802 cygwin*)
5803   # func_win32_libid is a shell function defined in ltmain.sh
5804   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5805   lt_cv_file_magic_cmd='func_win32_libid'
5806   ;;
5807
5808 mingw* | pw32*)
5809   # Base MSYS/MinGW do not provide the 'file' command needed by
5810   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5811   # unless we find 'file', for example because we are cross-compiling.
5812   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5813   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5814     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5815     lt_cv_file_magic_cmd='func_win32_libid'
5816   else
5817     # Keep this pattern in sync with the one in func_win32_libid.
5818     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5819     lt_cv_file_magic_cmd='$OBJDUMP -f'
5820   fi
5821   ;;
5822
5823 cegcc*)
5824   # use the weaker test based on 'objdump'. See mingw*.
5825   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5826   lt_cv_file_magic_cmd='$OBJDUMP -f'
5827   ;;
5828
5829 darwin* | rhapsody*)
5830   lt_cv_deplibs_check_method=pass_all
5831   ;;
5832
5833 freebsd* | dragonfly*)
5834   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5835     case $host_cpu in
5836     i*86 )
5837       # Not sure whether the presence of OpenBSD here was a mistake.
5838       # Let's accept both of them until this is cleared up.
5839       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5840       lt_cv_file_magic_cmd=/usr/bin/file
5841       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5842       ;;
5843     esac
5844   else
5845     lt_cv_deplibs_check_method=pass_all
5846   fi
5847   ;;
5848
5849 gnu*)
5850   lt_cv_deplibs_check_method=pass_all
5851   ;;
5852
5853 haiku*)
5854   lt_cv_deplibs_check_method=pass_all
5855   ;;
5856
5857 hpux10.20* | hpux11*)
5858   lt_cv_file_magic_cmd=/usr/bin/file
5859   case $host_cpu in
5860   ia64*)
5861     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5862     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5863     ;;
5864   hppa*64*)
5865     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5866     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5867     ;;
5868   *)
5869     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5870     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5871     ;;
5872   esac
5873   ;;
5874
5875 interix[3-9]*)
5876   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5877   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5878   ;;
5879
5880 irix5* | irix6* | nonstopux*)
5881   case $LD in
5882   *-32|*"-32 ") libmagic=32-bit;;
5883   *-n32|*"-n32 ") libmagic=N32;;
5884   *-64|*"-64 ") libmagic=64-bit;;
5885   *) libmagic=never-match;;
5886   esac
5887   lt_cv_deplibs_check_method=pass_all
5888   ;;
5889
5890 # This must be glibc/ELF.
5891 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5892   lt_cv_deplibs_check_method=pass_all
5893   ;;
5894
5895 netbsd*)
5896   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5897     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5898   else
5899     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5900   fi
5901   ;;
5902
5903 newos6*)
5904   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5905   lt_cv_file_magic_cmd=/usr/bin/file
5906   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5907   ;;
5908
5909 *nto* | *qnx*)
5910   lt_cv_deplibs_check_method=pass_all
5911   ;;
5912
5913 openbsd*)
5914   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5915     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5916   else
5917     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5918   fi
5919   ;;
5920
5921 osf3* | osf4* | osf5*)
5922   lt_cv_deplibs_check_method=pass_all
5923   ;;
5924
5925 rdos*)
5926   lt_cv_deplibs_check_method=pass_all
5927   ;;
5928
5929 solaris*)
5930   lt_cv_deplibs_check_method=pass_all
5931   ;;
5932
5933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5934   lt_cv_deplibs_check_method=pass_all
5935   ;;
5936
5937 sysv4 | sysv4.3*)
5938   case $host_vendor in
5939   motorola)
5940     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]'
5941     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5942     ;;
5943   ncr)
5944     lt_cv_deplibs_check_method=pass_all
5945     ;;
5946   sequent)
5947     lt_cv_file_magic_cmd='/bin/file'
5948     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5949     ;;
5950   sni)
5951     lt_cv_file_magic_cmd='/bin/file'
5952     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5953     lt_cv_file_magic_test_file=/lib/libc.so
5954     ;;
5955   siemens)
5956     lt_cv_deplibs_check_method=pass_all
5957     ;;
5958   pc)
5959     lt_cv_deplibs_check_method=pass_all
5960     ;;
5961   esac
5962   ;;
5963
5964 tpf*)
5965   lt_cv_deplibs_check_method=pass_all
5966   ;;
5967 esac
5968
5969 fi
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5971 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5972
5973 file_magic_glob=
5974 want_nocaseglob=no
5975 if test "$build" = "$host"; then
5976   case $host_os in
5977   mingw* | pw32*)
5978     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5979       want_nocaseglob=yes
5980     else
5981       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5982     fi
5983     ;;
5984   esac
5985 fi
5986
5987 file_magic_cmd=$lt_cv_file_magic_cmd
5988 deplibs_check_method=$lt_cv_deplibs_check_method
5989 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012 if test -n "$ac_tool_prefix"; then
6013   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6014 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_DLLTOOL+:} false; then :
6018   $as_echo_n "(cached) " >&6
6019 else
6020   if test -n "$DLLTOOL"; then
6021   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026   IFS=$as_save_IFS
6027   test -z "$as_dir" && as_dir=.
6028     for ac_exec_ext in '' $ac_executable_extensions; do
6029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032     break 2
6033   fi
6034 done
6035   done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 DLLTOOL=$ac_cv_prog_DLLTOOL
6041 if test -n "$DLLTOOL"; then
6042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6043 $as_echo "$DLLTOOL" >&6; }
6044 else
6045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049
6050 fi
6051 if test -z "$ac_cv_prog_DLLTOOL"; then
6052   ac_ct_DLLTOOL=$DLLTOOL
6053   # Extract the first word of "dlltool", so it can be a program name with args.
6054 set dummy dlltool; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6058   $as_echo_n "(cached) " >&6
6059 else
6060   if test -n "$ac_ct_DLLTOOL"; then
6061   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066   IFS=$as_save_IFS
6067   test -z "$as_dir" && as_dir=.
6068     for ac_exec_ext in '' $ac_executable_extensions; do
6069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072     break 2
6073   fi
6074 done
6075   done
6076 IFS=$as_save_IFS
6077
6078 fi
6079 fi
6080 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6081 if test -n "$ac_ct_DLLTOOL"; then
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6083 $as_echo "$ac_ct_DLLTOOL" >&6; }
6084 else
6085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6087 fi
6088
6089   if test "x$ac_ct_DLLTOOL" = x; then
6090     DLLTOOL="false"
6091   else
6092     case $cross_compiling:$ac_tool_warned in
6093 yes:)
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6097 esac
6098     DLLTOOL=$ac_ct_DLLTOOL
6099   fi
6100 else
6101   DLLTOOL="$ac_cv_prog_DLLTOOL"
6102 fi
6103
6104 test -z "$DLLTOOL" && DLLTOOL=dlltool
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6116 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6117 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6118   $as_echo_n "(cached) " >&6
6119 else
6120   lt_cv_sharedlib_from_linklib_cmd='unknown'
6121
6122 case $host_os in
6123 cygwin* | mingw* | pw32* | cegcc*)
6124   # two different shell functions defined in ltmain.sh
6125   # decide which to use based on capabilities of $DLLTOOL
6126   case `$DLLTOOL --help 2>&1` in
6127   *--identify-strict*)
6128     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6129     ;;
6130   *)
6131     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6132     ;;
6133   esac
6134   ;;
6135 *)
6136   # fallback: assume linklib IS sharedlib
6137   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6138   ;;
6139 esac
6140
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6143 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6144 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6145 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6146
6147
6148
6149
6150
6151
6152
6153 if test -n "$ac_tool_prefix"; then
6154   for ac_prog in ar
6155   do
6156     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if ${ac_cv_prog_AR+:} false; then :
6161   $as_echo_n "(cached) " >&6
6162 else
6163   if test -n "$AR"; then
6164   ac_cv_prog_AR="$AR" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6168 do
6169   IFS=$as_save_IFS
6170   test -z "$as_dir" && as_dir=.
6171     for ac_exec_ext in '' $ac_executable_extensions; do
6172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175     break 2
6176   fi
6177 done
6178   done
6179 IFS=$as_save_IFS
6180
6181 fi
6182 fi
6183 AR=$ac_cv_prog_AR
6184 if test -n "$AR"; then
6185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6186 $as_echo "$AR" >&6; }
6187 else
6188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6190 fi
6191
6192
6193     test -n "$AR" && break
6194   done
6195 fi
6196 if test -z "$AR"; then
6197   ac_ct_AR=$AR
6198   for ac_prog in ar
6199 do
6200   # Extract the first word of "$ac_prog", so it can be a program name with args.
6201 set dummy $ac_prog; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6205   $as_echo_n "(cached) " >&6
6206 else
6207   if test -n "$ac_ct_AR"; then
6208   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215     for ac_exec_ext in '' $ac_executable_extensions; do
6216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217     ac_cv_prog_ac_ct_AR="$ac_prog"
6218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219     break 2
6220   fi
6221 done
6222   done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6228 if test -n "$ac_ct_AR"; then
6229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6230 $as_echo "$ac_ct_AR" >&6; }
6231 else
6232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6234 fi
6235
6236
6237   test -n "$ac_ct_AR" && break
6238 done
6239
6240   if test "x$ac_ct_AR" = x; then
6241     AR="false"
6242   else
6243     case $cross_compiling:$ac_tool_warned in
6244 yes:)
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6247 ac_tool_warned=yes ;;
6248 esac
6249     AR=$ac_ct_AR
6250   fi
6251 fi
6252
6253 : ${AR=ar}
6254 : ${AR_FLAGS=cru}
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6267 $as_echo_n "checking for archiver @FILE support... " >&6; }
6268 if ${lt_cv_ar_at_file+:} false; then :
6269   $as_echo_n "(cached) " >&6
6270 else
6271   lt_cv_ar_at_file=no
6272    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h.  */
6274
6275 #ifdef F77_DUMMY_MAIN
6276
6277 #  ifdef __cplusplus
6278      extern "C"
6279 #  endif
6280    int F77_DUMMY_MAIN() { return 1; }
6281
6282 #endif
6283 int
6284 main ()
6285 {
6286
6287   ;
6288   return 0;
6289 }
6290 _ACEOF
6291 if ac_fn_c_try_compile "$LINENO"; then :
6292   echo conftest.$ac_objext > conftest.lst
6293       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6294       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6295   (eval $lt_ar_try) 2>&5
6296   ac_status=$?
6297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6298   test $ac_status = 0; }
6299       if test "$ac_status" -eq 0; then
6300         # Ensure the archiver fails upon bogus file names.
6301         rm -f conftest.$ac_objext libconftest.a
6302         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6303   (eval $lt_ar_try) 2>&5
6304   ac_status=$?
6305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306   test $ac_status = 0; }
6307         if test "$ac_status" -ne 0; then
6308           lt_cv_ar_at_file=@
6309         fi
6310       fi
6311       rm -f conftest.* libconftest.a
6312
6313 fi
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315
6316 fi
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6318 $as_echo "$lt_cv_ar_at_file" >&6; }
6319
6320 if test "x$lt_cv_ar_at_file" = xno; then
6321   archiver_list_spec=
6322 else
6323   archiver_list_spec=$lt_cv_ar_at_file
6324 fi
6325
6326
6327
6328
6329
6330
6331
6332 if test -n "$ac_tool_prefix"; then
6333   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6334 set dummy ${ac_tool_prefix}strip; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_prog_STRIP+:} false; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   if test -n "$STRIP"; then
6341   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346   IFS=$as_save_IFS
6347   test -z "$as_dir" && as_dir=.
6348     for ac_exec_ext in '' $ac_executable_extensions; do
6349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352     break 2
6353   fi
6354 done
6355   done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 STRIP=$ac_cv_prog_STRIP
6361 if test -n "$STRIP"; then
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6363 $as_echo "$STRIP" >&6; }
6364 else
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6367 fi
6368
6369
6370 fi
6371 if test -z "$ac_cv_prog_STRIP"; then
6372   ac_ct_STRIP=$STRIP
6373   # Extract the first word of "strip", so it can be a program name with args.
6374 set dummy strip; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6378   $as_echo_n "(cached) " >&6
6379 else
6380   if test -n "$ac_ct_STRIP"; then
6381   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386   IFS=$as_save_IFS
6387   test -z "$as_dir" && as_dir=.
6388     for ac_exec_ext in '' $ac_executable_extensions; do
6389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390     ac_cv_prog_ac_ct_STRIP="strip"
6391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392     break 2
6393   fi
6394 done
6395   done
6396 IFS=$as_save_IFS
6397
6398 fi
6399 fi
6400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6401 if test -n "$ac_ct_STRIP"; then
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6403 $as_echo "$ac_ct_STRIP" >&6; }
6404 else
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6407 fi
6408
6409   if test "x$ac_ct_STRIP" = x; then
6410     STRIP=":"
6411   else
6412     case $cross_compiling:$ac_tool_warned in
6413 yes:)
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6416 ac_tool_warned=yes ;;
6417 esac
6418     STRIP=$ac_ct_STRIP
6419   fi
6420 else
6421   STRIP="$ac_cv_prog_STRIP"
6422 fi
6423
6424 test -z "$STRIP" && STRIP=:
6425
6426
6427
6428
6429
6430
6431 if test -n "$ac_tool_prefix"; then
6432   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if ${ac_cv_prog_RANLIB+:} false; then :
6437   $as_echo_n "(cached) " >&6
6438 else
6439   if test -n "$RANLIB"; then
6440   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445   IFS=$as_save_IFS
6446   test -z "$as_dir" && as_dir=.
6447     for ac_exec_ext in '' $ac_executable_extensions; do
6448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451     break 2
6452   fi
6453 done
6454   done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 RANLIB=$ac_cv_prog_RANLIB
6460 if test -n "$RANLIB"; then
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6462 $as_echo "$RANLIB" >&6; }
6463 else
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468
6469 fi
6470 if test -z "$ac_cv_prog_RANLIB"; then
6471   ac_ct_RANLIB=$RANLIB
6472   # Extract the first word of "ranlib", so it can be a program name with args.
6473 set dummy ranlib; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   if test -n "$ac_ct_RANLIB"; then
6480   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6484 do
6485   IFS=$as_save_IFS
6486   test -z "$as_dir" && as_dir=.
6487     for ac_exec_ext in '' $ac_executable_extensions; do
6488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489     ac_cv_prog_ac_ct_RANLIB="ranlib"
6490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491     break 2
6492   fi
6493 done
6494   done
6495 IFS=$as_save_IFS
6496
6497 fi
6498 fi
6499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6500 if test -n "$ac_ct_RANLIB"; then
6501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6502 $as_echo "$ac_ct_RANLIB" >&6; }
6503 else
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6506 fi
6507
6508   if test "x$ac_ct_RANLIB" = x; then
6509     RANLIB=":"
6510   else
6511     case $cross_compiling:$ac_tool_warned in
6512 yes:)
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517     RANLIB=$ac_ct_RANLIB
6518   fi
6519 else
6520   RANLIB="$ac_cv_prog_RANLIB"
6521 fi
6522
6523 test -z "$RANLIB" && RANLIB=:
6524
6525
6526
6527
6528
6529
6530 # Determine commands to create old-style static archives.
6531 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6532 old_postinstall_cmds='chmod 644 $oldlib'
6533 old_postuninstall_cmds=
6534
6535 if test -n "$RANLIB"; then
6536   case $host_os in
6537   openbsd*)
6538     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6539     ;;
6540   *)
6541     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6542     ;;
6543   esac
6544   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6545 fi
6546
6547 case $host_os in
6548   darwin*)
6549     lock_old_archive_extraction=yes ;;
6550   *)
6551     lock_old_archive_extraction=no ;;
6552 esac
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592 # If no C compiler was specified, use CC.
6593 LTCC=${LTCC-"$CC"}
6594
6595 # If no C compiler flags were specified, use CFLAGS.
6596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6597
6598 # Allow CC to be a program name with arguments.
6599 compiler=$CC
6600
6601
6602 # Check for command to grab the raw symbol name followed by C symbol from nm.
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6604 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6605 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608
6609 # These are sane defaults that work on at least a few old systems.
6610 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6611
6612 # Character class describing NM global symbol codes.
6613 symcode='[BCDEGRST]'
6614
6615 # Regexp to match symbols that can be accessed directly from C.
6616 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6617
6618 # Define system-specific variables.
6619 case $host_os in
6620 aix*)
6621   symcode='[BCDT]'
6622   ;;
6623 cygwin* | mingw* | pw32* | cegcc*)
6624   symcode='[ABCDGISTW]'
6625   ;;
6626 hpux*)
6627   if test "$host_cpu" = ia64; then
6628     symcode='[ABCDEGRST]'
6629   fi
6630   ;;
6631 irix* | nonstopux*)
6632   symcode='[BCDEGRST]'
6633   ;;
6634 osf*)
6635   symcode='[BCDEGQRST]'
6636   ;;
6637 solaris*)
6638   symcode='[BDRT]'
6639   ;;
6640 sco3.2v5*)
6641   symcode='[DT]'
6642   ;;
6643 sysv4.2uw2*)
6644   symcode='[DT]'
6645   ;;
6646 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6647   symcode='[ABDT]'
6648   ;;
6649 sysv4)
6650   symcode='[DFNSTU]'
6651   ;;
6652 esac
6653
6654 # If we're using GNU nm, then use its standard symbol codes.
6655 case `$NM -V 2>&1` in
6656 *GNU* | *'with BFD'*)
6657   symcode='[ABCDGIRSTW]' ;;
6658 esac
6659
6660 # Transform an extracted symbol line into a proper C declaration.
6661 # Some systems (esp. on ia64) link data and code symbols differently,
6662 # so use this general approach.
6663 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6664
6665 # Transform an extracted symbol line into symbol name and symbol address
6666 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6667 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'"
6668
6669 # Handle CRLF in mingw tool chain
6670 opt_cr=
6671 case $build_os in
6672 mingw*)
6673   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6674   ;;
6675 esac
6676
6677 # Try without a prefix underscore, then with it.
6678 for ac_symprfx in "" "_"; do
6679
6680   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6681   symxfrm="\\1 $ac_symprfx\\2 \\2"
6682
6683   # Write the raw and C identifiers.
6684   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6685     # Fake it for dumpbin and say T for any non-static function
6686     # and D for any global variable.
6687     # Also find C++ and __fastcall symbols from MSVC++,
6688     # which start with @ or ?.
6689     lt_cv_sys_global_symbol_pipe="$AWK '"\
6690 "     {last_section=section; section=\$ 3};"\
6691 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6692 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6693 "     \$ 0!~/External *\|/{next};"\
6694 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6695 "     {if(hide[section]) next};"\
6696 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6697 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6698 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6699 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6700 "     ' prfx=^$ac_symprfx"
6701   else
6702     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6703   fi
6704   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6705
6706   # Check to see that the pipe works correctly.
6707   pipe_works=no
6708
6709   rm -f conftest*
6710   cat > conftest.$ac_ext <<_LT_EOF
6711 #ifdef __cplusplus
6712 extern "C" {
6713 #endif
6714 char nm_test_var;
6715 void nm_test_func(void);
6716 void nm_test_func(void){}
6717 #ifdef __cplusplus
6718 }
6719 #endif
6720 int main(){nm_test_var='a';nm_test_func();return(0);}
6721 _LT_EOF
6722
6723   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6724   (eval $ac_compile) 2>&5
6725   ac_status=$?
6726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6727   test $ac_status = 0; }; then
6728     # Now try to grab the symbols.
6729     nlist=conftest.nm
6730     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6731   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6732   ac_status=$?
6733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734   test $ac_status = 0; } && test -s "$nlist"; then
6735       # Try sorting and uniquifying the output.
6736       if sort "$nlist" | uniq > "$nlist"T; then
6737         mv -f "$nlist"T "$nlist"
6738       else
6739         rm -f "$nlist"T
6740       fi
6741
6742       # Make sure that we snagged all the symbols we need.
6743       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6744         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6745           cat <<_LT_EOF > conftest.$ac_ext
6746 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6747 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6748 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6749    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6750 # define LT_DLSYM_CONST
6751 #elif defined(__osf__)
6752 /* This system does not cope well with relocations in const data.  */
6753 # define LT_DLSYM_CONST
6754 #else
6755 # define LT_DLSYM_CONST const
6756 #endif
6757
6758 #ifdef __cplusplus
6759 extern "C" {
6760 #endif
6761
6762 _LT_EOF
6763           # Now generate the symbol file.
6764           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6765
6766           cat <<_LT_EOF >> conftest.$ac_ext
6767
6768 /* The mapping between symbol names and symbols.  */
6769 LT_DLSYM_CONST struct {
6770   const char *name;
6771   void       *address;
6772 }
6773 lt__PROGRAM__LTX_preloaded_symbols[] =
6774 {
6775   { "@PROGRAM@", (void *) 0 },
6776 _LT_EOF
6777           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6778           cat <<\_LT_EOF >> conftest.$ac_ext
6779   {0, (void *) 0}
6780 };
6781
6782 /* This works around a problem in FreeBSD linker */
6783 #ifdef FREEBSD_WORKAROUND
6784 static const void *lt_preloaded_setup() {
6785   return lt__PROGRAM__LTX_preloaded_symbols;
6786 }
6787 #endif
6788
6789 #ifdef __cplusplus
6790 }
6791 #endif
6792 _LT_EOF
6793           # Now try linking the two files.
6794           mv conftest.$ac_objext conftstm.$ac_objext
6795           lt_globsym_save_LIBS=$LIBS
6796           lt_globsym_save_CFLAGS=$CFLAGS
6797           LIBS="conftstm.$ac_objext"
6798           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6799           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6800   (eval $ac_link) 2>&5
6801   ac_status=$?
6802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6804             pipe_works=yes
6805           fi
6806           LIBS=$lt_globsym_save_LIBS
6807           CFLAGS=$lt_globsym_save_CFLAGS
6808         else
6809           echo "cannot find nm_test_func in $nlist" >&5
6810         fi
6811       else
6812         echo "cannot find nm_test_var in $nlist" >&5
6813       fi
6814     else
6815       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6816     fi
6817   else
6818     echo "$progname: failed program was:" >&5
6819     cat conftest.$ac_ext >&5
6820   fi
6821   rm -rf conftest* conftst*
6822
6823   # Do not use the global_symbol_pipe unless it works.
6824   if test "$pipe_works" = yes; then
6825     break
6826   else
6827     lt_cv_sys_global_symbol_pipe=
6828   fi
6829 done
6830
6831 fi
6832
6833 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6834   lt_cv_sys_global_symbol_to_cdecl=
6835 fi
6836 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6838 $as_echo "failed" >&6; }
6839 else
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6841 $as_echo "ok" >&6; }
6842 fi
6843
6844 # Response file support.
6845 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6846   nm_file_list_spec='@'
6847 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6848   nm_file_list_spec='@'
6849 fi
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6878 $as_echo_n "checking for sysroot... " >&6; }
6879
6880 # Check whether --with-sysroot was given.
6881 if test "${with_sysroot+set}" = set; then :
6882   withval=$with_sysroot;
6883 else
6884   with_sysroot=no
6885 fi
6886
6887
6888 lt_sysroot=
6889 case ${with_sysroot} in #(
6890  yes)
6891    if test "$GCC" = yes; then
6892      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6893    fi
6894    ;; #(
6895  /*)
6896    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6897    ;; #(
6898  no|'')
6899    ;; #(
6900  *)
6901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6902 $as_echo "${with_sysroot}" >&6; }
6903    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6904    ;;
6905 esac
6906
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6908 $as_echo "${lt_sysroot:-no}" >&6; }
6909
6910
6911
6912
6913
6914 # Check whether --enable-libtool-lock was given.
6915 if test "${enable_libtool_lock+set}" = set; then :
6916   enableval=$enable_libtool_lock;
6917 fi
6918
6919 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6920
6921 # Some flags need to be propagated to the compiler or linker for good
6922 # libtool support.
6923 case $host in
6924 ia64-*-hpux*)
6925   # Find out which ABI we are using.
6926   echo 'int i;' > conftest.$ac_ext
6927   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6928   (eval $ac_compile) 2>&5
6929   ac_status=$?
6930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931   test $ac_status = 0; }; then
6932     case `/usr/bin/file conftest.$ac_objext` in
6933       *ELF-32*)
6934         HPUX_IA64_MODE="32"
6935         ;;
6936       *ELF-64*)
6937         HPUX_IA64_MODE="64"
6938         ;;
6939     esac
6940   fi
6941   rm -rf conftest*
6942   ;;
6943 *-*-irix6*)
6944   # Find out which ABI we are using.
6945   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6946   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6947   (eval $ac_compile) 2>&5
6948   ac_status=$?
6949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6950   test $ac_status = 0; }; then
6951     if test "$lt_cv_prog_gnu_ld" = yes; then
6952       case `/usr/bin/file conftest.$ac_objext` in
6953         *32-bit*)
6954           LD="${LD-ld} -melf32bsmip"
6955           ;;
6956         *N32*)
6957           LD="${LD-ld} -melf32bmipn32"
6958           ;;
6959         *64-bit*)
6960           LD="${LD-ld} -melf64bmip"
6961         ;;
6962       esac
6963     else
6964       case `/usr/bin/file conftest.$ac_objext` in
6965         *32-bit*)
6966           LD="${LD-ld} -32"
6967           ;;
6968         *N32*)
6969           LD="${LD-ld} -n32"
6970           ;;
6971         *64-bit*)
6972           LD="${LD-ld} -64"
6973           ;;
6974       esac
6975     fi
6976   fi
6977   rm -rf conftest*
6978   ;;
6979
6980 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6981 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6982   # Find out which ABI we are using.
6983   echo 'int i;' > conftest.$ac_ext
6984   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6985   (eval $ac_compile) 2>&5
6986   ac_status=$?
6987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6988   test $ac_status = 0; }; then
6989     case `/usr/bin/file conftest.o` in
6990       *32-bit*)
6991         case $host in
6992           x86_64-*kfreebsd*-gnu)
6993             LD="${LD-ld} -m elf_i386_fbsd"
6994             ;;
6995           x86_64-*linux*)
6996             LD="${LD-ld} -m elf_i386"
6997             ;;
6998           ppc64-*linux*|powerpc64-*linux*)
6999             LD="${LD-ld} -m elf32ppclinux"
7000             ;;
7001           s390x-*linux*)
7002             LD="${LD-ld} -m elf_s390"
7003             ;;
7004           sparc64-*linux*)
7005             LD="${LD-ld} -m elf32_sparc"
7006             ;;
7007         esac
7008         ;;
7009       *64-bit*)
7010         case $host in
7011           x86_64-*kfreebsd*-gnu)
7012             LD="${LD-ld} -m elf_x86_64_fbsd"
7013             ;;
7014           x86_64-*linux*)
7015             LD="${LD-ld} -m elf_x86_64"
7016             ;;
7017           ppc*-*linux*|powerpc*-*linux*)
7018             LD="${LD-ld} -m elf64ppc"
7019             ;;
7020           s390*-*linux*|s390*-*tpf*)
7021             LD="${LD-ld} -m elf64_s390"
7022             ;;
7023           sparc*-*linux*)
7024             LD="${LD-ld} -m elf64_sparc"
7025             ;;
7026         esac
7027         ;;
7028     esac
7029   fi
7030   rm -rf conftest*
7031   ;;
7032
7033 *-*-sco3.2v5*)
7034   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7035   SAVE_CFLAGS="$CFLAGS"
7036   CFLAGS="$CFLAGS -belf"
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7038 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7039 if ${lt_cv_cc_needs_belf+:} false; then :
7040   $as_echo_n "(cached) " >&6
7041 else
7042   ac_ext=c
7043 ac_cpp='$CPP $CPPFLAGS'
7044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7047
7048      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050
7051 #ifdef F77_DUMMY_MAIN
7052
7053 #  ifdef __cplusplus
7054      extern "C"
7055 #  endif
7056    int F77_DUMMY_MAIN() { return 1; }
7057
7058 #endif
7059 int
7060 main ()
7061 {
7062
7063   ;
7064   return 0;
7065 }
7066 _ACEOF
7067 if ac_fn_c_try_link "$LINENO"; then :
7068   lt_cv_cc_needs_belf=yes
7069 else
7070   lt_cv_cc_needs_belf=no
7071 fi
7072 rm -f core conftest.err conftest.$ac_objext \
7073     conftest$ac_exeext conftest.$ac_ext
7074      ac_ext=c
7075 ac_cpp='$CPP $CPPFLAGS'
7076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7082 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7083   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7084     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7085     CFLAGS="$SAVE_CFLAGS"
7086   fi
7087   ;;
7088 *-*solaris*)
7089   # Find out which ABI we are using.
7090   echo 'int i;' > conftest.$ac_ext
7091   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7092   (eval $ac_compile) 2>&5
7093   ac_status=$?
7094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095   test $ac_status = 0; }; then
7096     case `/usr/bin/file conftest.o` in
7097     *64-bit*)
7098       case $lt_cv_prog_gnu_ld in
7099       yes*)
7100         case $host in
7101         i?86-*-solaris*)
7102           LD="${LD-ld} -m elf_x86_64"
7103           ;;
7104         sparc*-*-solaris*)
7105           LD="${LD-ld} -m elf64_sparc"
7106           ;;
7107         esac
7108         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7109         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7110           LD="${LD-ld}_sol2"
7111         fi
7112         ;;
7113       *)
7114         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7115           LD="${LD-ld} -64"
7116         fi
7117         ;;
7118       esac
7119       ;;
7120     esac
7121   fi
7122   rm -rf conftest*
7123   ;;
7124 esac
7125
7126 need_locks="$enable_libtool_lock"
7127
7128 if test -n "$ac_tool_prefix"; then
7129   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}mt; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7134   $as_echo_n "(cached) " >&6
7135 else
7136   if test -n "$MANIFEST_TOOL"; then
7137   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144     for ac_exec_ext in '' $ac_executable_extensions; do
7145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151   done
7152 IFS=$as_save_IFS
7153
7154 fi
7155 fi
7156 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7157 if test -n "$MANIFEST_TOOL"; then
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7159 $as_echo "$MANIFEST_TOOL" >&6; }
7160 else
7161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164
7165
7166 fi
7167 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7168   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7169   # Extract the first word of "mt", so it can be a program name with args.
7170 set dummy mt; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7174   $as_echo_n "(cached) " >&6
7175 else
7176   if test -n "$ac_ct_MANIFEST_TOOL"; then
7177   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182   IFS=$as_save_IFS
7183   test -z "$as_dir" && as_dir=.
7184     for ac_exec_ext in '' $ac_executable_extensions; do
7185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188     break 2
7189   fi
7190 done
7191   done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7197 if test -n "$ac_ct_MANIFEST_TOOL"; then
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7199 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7200 else
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7206     MANIFEST_TOOL=":"
7207   else
7208     case $cross_compiling:$ac_tool_warned in
7209 yes:)
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7215   fi
7216 else
7217   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7218 fi
7219
7220 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7222 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7223 if ${lt_cv_path_mainfest_tool+:} false; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   lt_cv_path_mainfest_tool=no
7227   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7228   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7229   cat conftest.err >&5
7230   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7231     lt_cv_path_mainfest_tool=yes
7232   fi
7233   rm -f conftest*
7234 fi
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7236 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7237 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7238   MANIFEST_TOOL=:
7239 fi
7240
7241
7242
7243
7244
7245
7246   case $host_os in
7247     rhapsody* | darwin*)
7248     if test -n "$ac_tool_prefix"; then
7249   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   if test -n "$DSYMUTIL"; then
7257   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264     for ac_exec_ext in '' $ac_executable_extensions; do
7265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271   done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7277 if test -n "$DSYMUTIL"; then
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7279 $as_echo "$DSYMUTIL" >&6; }
7280 else
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285
7286 fi
7287 if test -z "$ac_cv_prog_DSYMUTIL"; then
7288   ac_ct_DSYMUTIL=$DSYMUTIL
7289   # Extract the first word of "dsymutil", so it can be a program name with args.
7290 set dummy dsymutil; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296   if test -n "$ac_ct_DSYMUTIL"; then
7297   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304     for ac_exec_ext in '' $ac_executable_extensions; do
7305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311   done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7317 if test -n "$ac_ct_DSYMUTIL"; then
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7319 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7320 else
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325   if test "x$ac_ct_DSYMUTIL" = x; then
7326     DSYMUTIL=":"
7327   else
7328     case $cross_compiling:$ac_tool_warned in
7329 yes:)
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7333 esac
7334     DSYMUTIL=$ac_ct_DSYMUTIL
7335   fi
7336 else
7337   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7338 fi
7339
7340     if test -n "$ac_tool_prefix"; then
7341   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if ${ac_cv_prog_NMEDIT+:} false; then :
7346   $as_echo_n "(cached) " >&6
7347 else
7348   if test -n "$NMEDIT"; then
7349   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356     for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363   done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 NMEDIT=$ac_cv_prog_NMEDIT
7369 if test -n "$NMEDIT"; then
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7371 $as_echo "$NMEDIT" >&6; }
7372 else
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377
7378 fi
7379 if test -z "$ac_cv_prog_NMEDIT"; then
7380   ac_ct_NMEDIT=$NMEDIT
7381   # Extract the first word of "nmedit", so it can be a program name with args.
7382 set dummy nmedit; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388   if test -n "$ac_ct_NMEDIT"; then
7389   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396     for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403   done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7409 if test -n "$ac_ct_NMEDIT"; then
7410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7411 $as_echo "$ac_ct_NMEDIT" >&6; }
7412 else
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7415 fi
7416
7417   if test "x$ac_ct_NMEDIT" = x; then
7418     NMEDIT=":"
7419   else
7420     case $cross_compiling:$ac_tool_warned in
7421 yes:)
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426     NMEDIT=$ac_ct_NMEDIT
7427   fi
7428 else
7429   NMEDIT="$ac_cv_prog_NMEDIT"
7430 fi
7431
7432     if test -n "$ac_tool_prefix"; then
7433   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_LIPO+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   if test -n "$LIPO"; then
7441   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448     for ac_exec_ext in '' $ac_executable_extensions; do
7449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455   done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 LIPO=$ac_cv_prog_LIPO
7461 if test -n "$LIPO"; then
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7463 $as_echo "$LIPO" >&6; }
7464 else
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468
7469
7470 fi
7471 if test -z "$ac_cv_prog_LIPO"; then
7472   ac_ct_LIPO=$LIPO
7473   # Extract the first word of "lipo", so it can be a program name with args.
7474 set dummy lipo; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7478   $as_echo_n "(cached) " >&6
7479 else
7480   if test -n "$ac_ct_LIPO"; then
7481   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486   IFS=$as_save_IFS
7487   test -z "$as_dir" && as_dir=.
7488     for ac_exec_ext in '' $ac_executable_extensions; do
7489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490     ac_cv_prog_ac_ct_LIPO="lipo"
7491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492     break 2
7493   fi
7494 done
7495   done
7496 IFS=$as_save_IFS
7497
7498 fi
7499 fi
7500 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7501 if test -n "$ac_ct_LIPO"; then
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7503 $as_echo "$ac_ct_LIPO" >&6; }
7504 else
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508
7509   if test "x$ac_ct_LIPO" = x; then
7510     LIPO=":"
7511   else
7512     case $cross_compiling:$ac_tool_warned in
7513 yes:)
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7517 esac
7518     LIPO=$ac_ct_LIPO
7519   fi
7520 else
7521   LIPO="$ac_cv_prog_LIPO"
7522 fi
7523
7524     if test -n "$ac_tool_prefix"; then
7525   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}otool; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_OTOOL+:} false; then :
7530   $as_echo_n "(cached) " >&6
7531 else
7532   if test -n "$OTOOL"; then
7533   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538   IFS=$as_save_IFS
7539   test -z "$as_dir" && as_dir=.
7540     for ac_exec_ext in '' $ac_executable_extensions; do
7541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7542     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544     break 2
7545   fi
7546 done
7547   done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 OTOOL=$ac_cv_prog_OTOOL
7553 if test -n "$OTOOL"; then
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7555 $as_echo "$OTOOL" >&6; }
7556 else
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561
7562 fi
7563 if test -z "$ac_cv_prog_OTOOL"; then
7564   ac_ct_OTOOL=$OTOOL
7565   # Extract the first word of "otool", so it can be a program name with args.
7566 set dummy otool; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7570   $as_echo_n "(cached) " >&6
7571 else
7572   if test -n "$ac_ct_OTOOL"; then
7573   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580     for ac_exec_ext in '' $ac_executable_extensions; do
7581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582     ac_cv_prog_ac_ct_OTOOL="otool"
7583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584     break 2
7585   fi
7586 done
7587   done
7588 IFS=$as_save_IFS
7589
7590 fi
7591 fi
7592 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7593 if test -n "$ac_ct_OTOOL"; then
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7595 $as_echo "$ac_ct_OTOOL" >&6; }
7596 else
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600
7601   if test "x$ac_ct_OTOOL" = x; then
7602     OTOOL=":"
7603   else
7604     case $cross_compiling:$ac_tool_warned in
7605 yes:)
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7609 esac
7610     OTOOL=$ac_ct_OTOOL
7611   fi
7612 else
7613   OTOOL="$ac_cv_prog_OTOOL"
7614 fi
7615
7616     if test -n "$ac_tool_prefix"; then
7617   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_OTOOL64+:} false; then :
7622   $as_echo_n "(cached) " >&6
7623 else
7624   if test -n "$OTOOL64"; then
7625   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630   IFS=$as_save_IFS
7631   test -z "$as_dir" && as_dir=.
7632     for ac_exec_ext in '' $ac_executable_extensions; do
7633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636     break 2
7637   fi
7638 done
7639   done
7640 IFS=$as_save_IFS
7641
7642 fi
7643 fi
7644 OTOOL64=$ac_cv_prog_OTOOL64
7645 if test -n "$OTOOL64"; then
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7647 $as_echo "$OTOOL64" >&6; }
7648 else
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652
7653
7654 fi
7655 if test -z "$ac_cv_prog_OTOOL64"; then
7656   ac_ct_OTOOL64=$OTOOL64
7657   # Extract the first word of "otool64", so it can be a program name with args.
7658 set dummy otool64; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7662   $as_echo_n "(cached) " >&6
7663 else
7664   if test -n "$ac_ct_OTOOL64"; then
7665   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670   IFS=$as_save_IFS
7671   test -z "$as_dir" && as_dir=.
7672     for ac_exec_ext in '' $ac_executable_extensions; do
7673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674     ac_cv_prog_ac_ct_OTOOL64="otool64"
7675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676     break 2
7677   fi
7678 done
7679   done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7685 if test -n "$ac_ct_OTOOL64"; then
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7687 $as_echo "$ac_ct_OTOOL64" >&6; }
7688 else
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693   if test "x$ac_ct_OTOOL64" = x; then
7694     OTOOL64=":"
7695   else
7696     case $cross_compiling:$ac_tool_warned in
7697 yes:)
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7701 esac
7702     OTOOL64=$ac_ct_OTOOL64
7703   fi
7704 else
7705   OTOOL64="$ac_cv_prog_OTOOL64"
7706 fi
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7735 $as_echo_n "checking for -single_module linker flag... " >&6; }
7736 if ${lt_cv_apple_cc_single_mod+:} false; then :
7737   $as_echo_n "(cached) " >&6
7738 else
7739   lt_cv_apple_cc_single_mod=no
7740       if test -z "${LT_MULTI_MODULE}"; then
7741         # By default we will add the -single_module flag. You can override
7742         # by either setting the environment variable LT_MULTI_MODULE
7743         # non-empty at configure time, or by adding -multi_module to the
7744         # link flags.
7745         rm -rf libconftest.dylib*
7746         echo "int foo(void){return 1;}" > conftest.c
7747         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7748 -dynamiclib -Wl,-single_module conftest.c" >&5
7749         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7750           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7751         _lt_result=$?
7752         # If there is a non-empty error log, and "single_module"
7753         # appears in it, assume the flag caused a linker warning
7754         if test -s conftest.err && $GREP single_module conftest.err; then
7755           cat conftest.err >&5
7756         # Otherwise, if the output was created with a 0 exit code from
7757         # the compiler, it worked.
7758         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7759           lt_cv_apple_cc_single_mod=yes
7760         else
7761           cat conftest.err >&5
7762         fi
7763         rm -rf libconftest.dylib*
7764         rm -f conftest.*
7765       fi
7766 fi
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7768 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7769
7770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7771 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7772 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7773   $as_echo_n "(cached) " >&6
7774 else
7775   lt_cv_ld_exported_symbols_list=no
7776       save_LDFLAGS=$LDFLAGS
7777       echo "_main" > conftest.sym
7778       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7779       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h.  */
7781
7782 #ifdef F77_DUMMY_MAIN
7783
7784 #  ifdef __cplusplus
7785      extern "C"
7786 #  endif
7787    int F77_DUMMY_MAIN() { return 1; }
7788
7789 #endif
7790 int
7791 main ()
7792 {
7793
7794   ;
7795   return 0;
7796 }
7797 _ACEOF
7798 if ac_fn_c_try_link "$LINENO"; then :
7799   lt_cv_ld_exported_symbols_list=yes
7800 else
7801   lt_cv_ld_exported_symbols_list=no
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext \
7804     conftest$ac_exeext conftest.$ac_ext
7805         LDFLAGS="$save_LDFLAGS"
7806
7807 fi
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7809 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7810
7811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7812 $as_echo_n "checking for -force_load linker flag... " >&6; }
7813 if ${lt_cv_ld_force_load+:} false; then :
7814   $as_echo_n "(cached) " >&6
7815 else
7816   lt_cv_ld_force_load=no
7817       cat > conftest.c << _LT_EOF
7818 int forced_loaded() { return 2;}
7819 _LT_EOF
7820       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7821       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7822       echo "$AR cru libconftest.a conftest.o" >&5
7823       $AR cru libconftest.a conftest.o 2>&5
7824       echo "$RANLIB libconftest.a" >&5
7825       $RANLIB libconftest.a 2>&5
7826       cat > conftest.c << _LT_EOF
7827 int main() { return 0;}
7828 _LT_EOF
7829       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7830       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7831       _lt_result=$?
7832       if test -s conftest.err && $GREP force_load conftest.err; then
7833         cat conftest.err >&5
7834       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7835         lt_cv_ld_force_load=yes
7836       else
7837         cat conftest.err >&5
7838       fi
7839         rm -f conftest.err libconftest.a conftest conftest.c
7840         rm -rf conftest.dSYM
7841
7842 fi
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7844 $as_echo "$lt_cv_ld_force_load" >&6; }
7845     case $host_os in
7846     rhapsody* | darwin1.[012])
7847       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7848     darwin1.*)
7849       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7850     darwin*) # darwin 5.x on
7851       # if running on 10.5 or later, the deployment target defaults
7852       # to the OS version, if on x86, and 10.4, the deployment
7853       # target defaults to 10.4. Don't you love it?
7854       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7855         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7856           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7857         10.[012]*)
7858           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7859         10.*)
7860           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7861       esac
7862     ;;
7863   esac
7864     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7865       _lt_dar_single_mod='$single_module'
7866     fi
7867     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7868       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7869     else
7870       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7871     fi
7872     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7873       _lt_dsymutil='~$DSYMUTIL $lib || :'
7874     else
7875       _lt_dsymutil=
7876     fi
7877     ;;
7878   esac
7879
7880 ac_ext=c
7881 ac_cpp='$CPP $CPPFLAGS'
7882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7886 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7887 # On Suns, sometimes $CPP names a directory.
7888 if test -n "$CPP" && test -d "$CPP"; then
7889   CPP=
7890 fi
7891 if test -z "$CPP"; then
7892   if ${ac_cv_prog_CPP+:} false; then :
7893   $as_echo_n "(cached) " >&6
7894 else
7895       # Double quotes because CPP needs to be expanded
7896     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7897     do
7898       ac_preproc_ok=false
7899 for ac_c_preproc_warn_flag in '' yes
7900 do
7901   # Use a header file that comes with gcc, so configuring glibc
7902   # with a fresh cross-compiler works.
7903   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7904   # <limits.h> exists even on freestanding compilers.
7905   # On the NeXT, cc -E runs the code through the compiler's parser,
7906   # not just through cpp. "Syntax error" is here to catch this case.
7907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h.  */
7909 #ifdef __STDC__
7910 # include <limits.h>
7911 #else
7912 # include <assert.h>
7913 #endif
7914                      Syntax error
7915 _ACEOF
7916 if ac_fn_c_try_cpp "$LINENO"; then :
7917
7918 else
7919   # Broken: fails on valid input.
7920 continue
7921 fi
7922 rm -f conftest.err conftest.i conftest.$ac_ext
7923
7924   # OK, works on sane cases.  Now check whether nonexistent headers
7925   # can be detected and how.
7926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h.  */
7928 #include <ac_nonexistent.h>
7929 _ACEOF
7930 if ac_fn_c_try_cpp "$LINENO"; then :
7931   # Broken: success on invalid input.
7932 continue
7933 else
7934   # Passes both tests.
7935 ac_preproc_ok=:
7936 break
7937 fi
7938 rm -f conftest.err conftest.i conftest.$ac_ext
7939
7940 done
7941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7942 rm -f conftest.i conftest.err conftest.$ac_ext
7943 if $ac_preproc_ok; then :
7944   break
7945 fi
7946
7947     done
7948     ac_cv_prog_CPP=$CPP
7949
7950 fi
7951   CPP=$ac_cv_prog_CPP
7952 else
7953   ac_cv_prog_CPP=$CPP
7954 fi
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7956 $as_echo "$CPP" >&6; }
7957 ac_preproc_ok=false
7958 for ac_c_preproc_warn_flag in '' yes
7959 do
7960   # Use a header file that comes with gcc, so configuring glibc
7961   # with a fresh cross-compiler works.
7962   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7963   # <limits.h> exists even on freestanding compilers.
7964   # On the NeXT, cc -E runs the code through the compiler's parser,
7965   # not just through cpp. "Syntax error" is here to catch this case.
7966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h.  */
7968 #ifdef __STDC__
7969 # include <limits.h>
7970 #else
7971 # include <assert.h>
7972 #endif
7973                      Syntax error
7974 _ACEOF
7975 if ac_fn_c_try_cpp "$LINENO"; then :
7976
7977 else
7978   # Broken: fails on valid input.
7979 continue
7980 fi
7981 rm -f conftest.err conftest.i conftest.$ac_ext
7982
7983   # OK, works on sane cases.  Now check whether nonexistent headers
7984   # can be detected and how.
7985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h.  */
7987 #include <ac_nonexistent.h>
7988 _ACEOF
7989 if ac_fn_c_try_cpp "$LINENO"; then :
7990   # Broken: success on invalid input.
7991 continue
7992 else
7993   # Passes both tests.
7994 ac_preproc_ok=:
7995 break
7996 fi
7997 rm -f conftest.err conftest.i conftest.$ac_ext
7998
7999 done
8000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8001 rm -f conftest.i conftest.err conftest.$ac_ext
8002 if $ac_preproc_ok; then :
8003
8004 else
8005   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8007 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8008 See \`config.log' for more details" "$LINENO" 5; }
8009 fi
8010
8011 ac_ext=c
8012 ac_cpp='$CPP $CPPFLAGS'
8013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016
8017
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8019 $as_echo_n "checking for ANSI C header files... " >&6; }
8020 if ${ac_cv_header_stdc+:} false; then :
8021   $as_echo_n "(cached) " >&6
8022 else
8023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h.  */
8025 #include <stdlib.h>
8026 #include <stdarg.h>
8027 #include <string.h>
8028 #include <float.h>
8029
8030 #ifdef F77_DUMMY_MAIN
8031
8032 #  ifdef __cplusplus
8033      extern "C"
8034 #  endif
8035    int F77_DUMMY_MAIN() { return 1; }
8036
8037 #endif
8038 int
8039 main ()
8040 {
8041
8042   ;
8043   return 0;
8044 }
8045 _ACEOF
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047   ac_cv_header_stdc=yes
8048 else
8049   ac_cv_header_stdc=no
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052
8053 if test $ac_cv_header_stdc = yes; then
8054   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h.  */
8057 #include <string.h>
8058
8059 _ACEOF
8060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061   $EGREP "memchr" >/dev/null 2>&1; then :
8062
8063 else
8064   ac_cv_header_stdc=no
8065 fi
8066 rm -f conftest*
8067
8068 fi
8069
8070 if test $ac_cv_header_stdc = yes; then
8071   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h.  */
8074 #include <stdlib.h>
8075
8076 _ACEOF
8077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8078   $EGREP "free" >/dev/null 2>&1; then :
8079
8080 else
8081   ac_cv_header_stdc=no
8082 fi
8083 rm -f conftest*
8084
8085 fi
8086
8087 if test $ac_cv_header_stdc = yes; then
8088   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8089   if test "$cross_compiling" = yes; then :
8090   :
8091 else
8092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h.  */
8094 #include <ctype.h>
8095 #include <stdlib.h>
8096 #if ((' ' & 0x0FF) == 0x020)
8097 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8098 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8099 #else
8100 # define ISLOWER(c) \
8101                    (('a' <= (c) && (c) <= 'i') \
8102                      || ('j' <= (c) && (c) <= 'r') \
8103                      || ('s' <= (c) && (c) <= 'z'))
8104 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8105 #endif
8106
8107 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8108 int
8109 main ()
8110 {
8111   int i;
8112   for (i = 0; i < 256; i++)
8113     if (XOR (islower (i), ISLOWER (i))
8114         || toupper (i) != TOUPPER (i))
8115       return 2;
8116   return 0;
8117 }
8118 _ACEOF
8119 if ac_fn_c_try_run "$LINENO"; then :
8120
8121 else
8122   ac_cv_header_stdc=no
8123 fi
8124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8125   conftest.$ac_objext conftest.beam conftest.$ac_ext
8126 fi
8127
8128 fi
8129 fi
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8131 $as_echo "$ac_cv_header_stdc" >&6; }
8132 if test $ac_cv_header_stdc = yes; then
8133
8134 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8135
8136 fi
8137
8138 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8139 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8140                   inttypes.h stdint.h unistd.h
8141 do :
8142   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8143 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8144 "
8145 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8146   cat >>confdefs.h <<_ACEOF
8147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8148 _ACEOF
8149
8150 fi
8151
8152 done
8153
8154
8155 for ac_header in dlfcn.h
8156 do :
8157   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8158 "
8159 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8160   cat >>confdefs.h <<_ACEOF
8161 #define HAVE_DLFCN_H 1
8162 _ACEOF
8163
8164 fi
8165
8166 done
8167
8168
8169
8170
8171
8172 # Set options
8173
8174
8175
8176         enable_dlopen=no
8177
8178
8179   enable_win32_dll=no
8180
8181
8182             # Check whether --enable-shared was given.
8183 if test "${enable_shared+set}" = set; then :
8184   enableval=$enable_shared; p=${PACKAGE-default}
8185     case $enableval in
8186     yes) enable_shared=yes ;;
8187     no) enable_shared=no ;;
8188     *)
8189       enable_shared=no
8190       # Look at the argument we got.  We use all the common list separators.
8191       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8192       for pkg in $enableval; do
8193         IFS="$lt_save_ifs"
8194         if test "X$pkg" = "X$p"; then
8195           enable_shared=yes
8196         fi
8197       done
8198       IFS="$lt_save_ifs"
8199       ;;
8200     esac
8201 else
8202   enable_shared=yes
8203 fi
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213   # Check whether --enable-static was given.
8214 if test "${enable_static+set}" = set; then :
8215   enableval=$enable_static; p=${PACKAGE-default}
8216     case $enableval in
8217     yes) enable_static=yes ;;
8218     no) enable_static=no ;;
8219     *)
8220      enable_static=no
8221       # Look at the argument we got.  We use all the common list separators.
8222       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8223       for pkg in $enableval; do
8224         IFS="$lt_save_ifs"
8225         if test "X$pkg" = "X$p"; then
8226           enable_static=yes
8227         fi
8228       done
8229       IFS="$lt_save_ifs"
8230       ;;
8231     esac
8232 else
8233   enable_static=yes
8234 fi
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245 # Check whether --with-pic was given.
8246 if test "${with_pic+set}" = set; then :
8247   withval=$with_pic; lt_p=${PACKAGE-default}
8248     case $withval in
8249     yes|no) pic_mode=$withval ;;
8250     *)
8251       pic_mode=default
8252       # Look at the argument we got.  We use all the common list separators.
8253       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8254       for lt_pkg in $withval; do
8255         IFS="$lt_save_ifs"
8256         if test "X$lt_pkg" = "X$lt_p"; then
8257           pic_mode=yes
8258         fi
8259       done
8260       IFS="$lt_save_ifs"
8261       ;;
8262     esac
8263 else
8264   pic_mode=default
8265 fi
8266
8267
8268 test -z "$pic_mode" && pic_mode=default
8269
8270
8271
8272
8273
8274
8275
8276   # Check whether --enable-fast-install was given.
8277 if test "${enable_fast_install+set}" = set; then :
8278   enableval=$enable_fast_install; p=${PACKAGE-default}
8279     case $enableval in
8280     yes) enable_fast_install=yes ;;
8281     no) enable_fast_install=no ;;
8282     *)
8283       enable_fast_install=no
8284       # Look at the argument we got.  We use all the common list separators.
8285       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8286       for pkg in $enableval; do
8287         IFS="$lt_save_ifs"
8288         if test "X$pkg" = "X$p"; then
8289           enable_fast_install=yes
8290         fi
8291       done
8292       IFS="$lt_save_ifs"
8293       ;;
8294     esac
8295 else
8296   enable_fast_install=yes
8297 fi
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309 # This can be used to rebuild libtool when needed
8310 LIBTOOL_DEPS="$ltmain"
8311
8312 # Always use our own libtool.
8313 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344 test -z "$LN_S" && LN_S="ln -s"
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359 if test -n "${ZSH_VERSION+set}" ; then
8360    setopt NO_GLOB_SUBST
8361 fi
8362
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8364 $as_echo_n "checking for objdir... " >&6; }
8365 if ${lt_cv_objdir+:} false; then :
8366   $as_echo_n "(cached) " >&6
8367 else
8368   rm -f .libs 2>/dev/null
8369 mkdir .libs 2>/dev/null
8370 if test -d .libs; then
8371   lt_cv_objdir=.libs
8372 else
8373   # MS-DOS does not allow filenames that begin with a dot.
8374   lt_cv_objdir=_libs
8375 fi
8376 rmdir .libs 2>/dev/null
8377 fi
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8379 $as_echo "$lt_cv_objdir" >&6; }
8380 objdir=$lt_cv_objdir
8381
8382
8383
8384
8385
8386 cat >>confdefs.h <<_ACEOF
8387 #define LT_OBJDIR "$lt_cv_objdir/"
8388 _ACEOF
8389
8390
8391
8392
8393 case $host_os in
8394 aix3*)
8395   # AIX sometimes has problems with the GCC collect2 program.  For some
8396   # reason, if we set the COLLECT_NAMES environment variable, the problems
8397   # vanish in a puff of smoke.
8398   if test "X${COLLECT_NAMES+set}" != Xset; then
8399     COLLECT_NAMES=
8400     export COLLECT_NAMES
8401   fi
8402   ;;
8403 esac
8404
8405 # Global variables:
8406 ofile=libtool
8407 can_build_shared=yes
8408
8409 # All known linkers require a `.a' archive for static linking (except MSVC,
8410 # which needs '.lib').
8411 libext=a
8412
8413 with_gnu_ld="$lt_cv_prog_gnu_ld"
8414
8415 old_CC="$CC"
8416 old_CFLAGS="$CFLAGS"
8417
8418 # Set sane defaults for various variables
8419 test -z "$CC" && CC=cc
8420 test -z "$LTCC" && LTCC=$CC
8421 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8422 test -z "$LD" && LD=ld
8423 test -z "$ac_objext" && ac_objext=o
8424
8425 for cc_temp in $compiler""; do
8426   case $cc_temp in
8427     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8428     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8429     \-*) ;;
8430     *) break;;
8431   esac
8432 done
8433 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8434
8435
8436 # Only perform the check for file, if the check method requires it
8437 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8438 case $deplibs_check_method in
8439 file_magic*)
8440   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8442 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8443 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446   case $MAGIC_CMD in
8447 [\\/*] |  ?:[\\/]*)
8448   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8449   ;;
8450 *)
8451   lt_save_MAGIC_CMD="$MAGIC_CMD"
8452   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8453   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8454   for ac_dir in $ac_dummy; do
8455     IFS="$lt_save_ifs"
8456     test -z "$ac_dir" && ac_dir=.
8457     if test -f $ac_dir/${ac_tool_prefix}file; then
8458       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8459       if test -n "$file_magic_test_file"; then
8460         case $deplibs_check_method in
8461         "file_magic "*)
8462           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8463           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8464           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8465             $EGREP "$file_magic_regex" > /dev/null; then
8466             :
8467           else
8468             cat <<_LT_EOF 1>&2
8469
8470 *** Warning: the command libtool uses to detect shared libraries,
8471 *** $file_magic_cmd, produces output that libtool cannot recognize.
8472 *** The result is that libtool may fail to recognize shared libraries
8473 *** as such.  This will affect the creation of libtool libraries that
8474 *** depend on shared libraries, but programs linked with such libtool
8475 *** libraries will work regardless of this problem.  Nevertheless, you
8476 *** may want to report the problem to your system manager and/or to
8477 *** bug-libtool@gnu.org
8478
8479 _LT_EOF
8480           fi ;;
8481         esac
8482       fi
8483       break
8484     fi
8485   done
8486   IFS="$lt_save_ifs"
8487   MAGIC_CMD="$lt_save_MAGIC_CMD"
8488   ;;
8489 esac
8490 fi
8491
8492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8493 if test -n "$MAGIC_CMD"; then
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8495 $as_echo "$MAGIC_CMD" >&6; }
8496 else
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8499 fi
8500
8501
8502
8503
8504
8505 if test -z "$lt_cv_path_MAGIC_CMD"; then
8506   if test -n "$ac_tool_prefix"; then
8507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8508 $as_echo_n "checking for file... " >&6; }
8509 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8510   $as_echo_n "(cached) " >&6
8511 else
8512   case $MAGIC_CMD in
8513 [\\/*] |  ?:[\\/]*)
8514   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8515   ;;
8516 *)
8517   lt_save_MAGIC_CMD="$MAGIC_CMD"
8518   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8519   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8520   for ac_dir in $ac_dummy; do
8521     IFS="$lt_save_ifs"
8522     test -z "$ac_dir" && ac_dir=.
8523     if test -f $ac_dir/file; then
8524       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8525       if test -n "$file_magic_test_file"; then
8526         case $deplibs_check_method in
8527         "file_magic "*)
8528           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8529           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8530           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8531             $EGREP "$file_magic_regex" > /dev/null; then
8532             :
8533           else
8534             cat <<_LT_EOF 1>&2
8535
8536 *** Warning: the command libtool uses to detect shared libraries,
8537 *** $file_magic_cmd, produces output that libtool cannot recognize.
8538 *** The result is that libtool may fail to recognize shared libraries
8539 *** as such.  This will affect the creation of libtool libraries that
8540 *** depend on shared libraries, but programs linked with such libtool
8541 *** libraries will work regardless of this problem.  Nevertheless, you
8542 *** may want to report the problem to your system manager and/or to
8543 *** bug-libtool@gnu.org
8544
8545 _LT_EOF
8546           fi ;;
8547         esac
8548       fi
8549       break
8550     fi
8551   done
8552   IFS="$lt_save_ifs"
8553   MAGIC_CMD="$lt_save_MAGIC_CMD"
8554   ;;
8555 esac
8556 fi
8557
8558 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8559 if test -n "$MAGIC_CMD"; then
8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8561 $as_echo "$MAGIC_CMD" >&6; }
8562 else
8563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8565 fi
8566
8567
8568   else
8569     MAGIC_CMD=:
8570   fi
8571 fi
8572
8573   fi
8574   ;;
8575 esac
8576
8577 # Use C for the default configuration in the libtool script
8578
8579 lt_save_CC="$CC"
8580 ac_ext=c
8581 ac_cpp='$CPP $CPPFLAGS'
8582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8585
8586
8587 # Source file extension for C test sources.
8588 ac_ext=c
8589
8590 # Object file extension for compiled C test sources.
8591 objext=o
8592 objext=$objext
8593
8594 # Code to be used in simple compile tests
8595 lt_simple_compile_test_code="int some_variable = 0;"
8596
8597 # Code to be used in simple link tests
8598 lt_simple_link_test_code='int main(){return(0);}'
8599
8600
8601
8602
8603
8604
8605
8606 # If no C compiler was specified, use CC.
8607 LTCC=${LTCC-"$CC"}
8608
8609 # If no C compiler flags were specified, use CFLAGS.
8610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8611
8612 # Allow CC to be a program name with arguments.
8613 compiler=$CC
8614
8615 # Save the default compiler, since it gets overwritten when the other
8616 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8617 compiler_DEFAULT=$CC
8618
8619 # save warnings/boilerplate of simple test code
8620 ac_outfile=conftest.$ac_objext
8621 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8622 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8623 _lt_compiler_boilerplate=`cat conftest.err`
8624 $RM conftest*
8625
8626 ac_outfile=conftest.$ac_objext
8627 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8628 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8629 _lt_linker_boilerplate=`cat conftest.err`
8630 $RM -r conftest*
8631
8632
8633 ## CAVEAT EMPTOR:
8634 ## There is no encapsulation within the following macros, do not change
8635 ## the running order or otherwise move them around unless you know exactly
8636 ## what you are doing...
8637 if test -n "$compiler"; then
8638
8639 lt_prog_compiler_no_builtin_flag=
8640
8641 if test "$GCC" = yes; then
8642   case $cc_basename in
8643   nvcc*)
8644     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8645   *)
8646     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8647   esac
8648
8649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8650 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8651 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8652   $as_echo_n "(cached) " >&6
8653 else
8654   lt_cv_prog_compiler_rtti_exceptions=no
8655    ac_outfile=conftest.$ac_objext
8656    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8657    lt_compiler_flag="-fno-rtti -fno-exceptions"
8658    # Insert the option either (1) after the last *FLAGS variable, or
8659    # (2) before a word containing "conftest.", or (3) at the end.
8660    # Note that $ac_compile itself does not contain backslashes and begins
8661    # with a dollar sign (not a hyphen), so the echo should work correctly.
8662    # The option is referenced via a variable to avoid confusing sed.
8663    lt_compile=`echo "$ac_compile" | $SED \
8664    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8665    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8666    -e 's:$: $lt_compiler_flag:'`
8667    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8668    (eval "$lt_compile" 2>conftest.err)
8669    ac_status=$?
8670    cat conftest.err >&5
8671    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672    if (exit $ac_status) && test -s "$ac_outfile"; then
8673      # The compiler can only warn and ignore the option if not recognized
8674      # So say no if there are warnings other than the usual output.
8675      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8676      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8677      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8678        lt_cv_prog_compiler_rtti_exceptions=yes
8679      fi
8680    fi
8681    $RM conftest*
8682
8683 fi
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8685 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8686
8687 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8688     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8689 else
8690     :
8691 fi
8692
8693 fi
8694
8695
8696
8697
8698
8699
8700   lt_prog_compiler_wl=
8701 lt_prog_compiler_pic=
8702 lt_prog_compiler_static=
8703
8704
8705   if test "$GCC" = yes; then
8706     lt_prog_compiler_wl='-Wl,'
8707     lt_prog_compiler_static='-static'
8708
8709     case $host_os in
8710       aix*)
8711       # All AIX code is PIC.
8712       if test "$host_cpu" = ia64; then
8713         # AIX 5 now supports IA64 processor
8714         lt_prog_compiler_static='-Bstatic'
8715       fi
8716       ;;
8717
8718     amigaos*)
8719       case $host_cpu in
8720       powerpc)
8721             # see comment about AmigaOS4 .so support
8722             lt_prog_compiler_pic='-fPIC'
8723         ;;
8724       m68k)
8725             # FIXME: we need at least 68020 code to build shared libraries, but
8726             # adding the `-m68020' flag to GCC prevents building anything better,
8727             # like `-m68040'.
8728             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8729         ;;
8730       esac
8731       ;;
8732
8733     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8734       # PIC is the default for these OSes.
8735       ;;
8736
8737     mingw* | cygwin* | pw32* | os2* | cegcc*)
8738       # This hack is so that the source file can tell whether it is being
8739       # built for inclusion in a dll (and should export symbols for example).
8740       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8741       # (--disable-auto-import) libraries
8742       lt_prog_compiler_pic='-DDLL_EXPORT'
8743       ;;
8744
8745     darwin* | rhapsody*)
8746       # PIC is the default on this platform
8747       # Common symbols not allowed in MH_DYLIB files
8748       lt_prog_compiler_pic='-fno-common'
8749       ;;
8750
8751     haiku*)
8752       # PIC is the default for Haiku.
8753       # The "-static" flag exists, but is broken.
8754       lt_prog_compiler_static=
8755       ;;
8756
8757     hpux*)
8758       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8759       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8760       # sets the default TLS model and affects inlining.
8761       case $host_cpu in
8762       hppa*64*)
8763         # +Z the default
8764         ;;
8765       *)
8766         lt_prog_compiler_pic='-fPIC'
8767         ;;
8768       esac
8769       ;;
8770
8771     interix[3-9]*)
8772       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8773       # Instead, we relocate shared libraries at runtime.
8774       ;;
8775
8776     msdosdjgpp*)
8777       # Just because we use GCC doesn't mean we suddenly get shared libraries
8778       # on systems that don't support them.
8779       lt_prog_compiler_can_build_shared=no
8780       enable_shared=no
8781       ;;
8782
8783     *nto* | *qnx*)
8784       # QNX uses GNU C++, but need to define -shared option too, otherwise
8785       # it will coredump.
8786       lt_prog_compiler_pic='-fPIC -shared'
8787       ;;
8788
8789     sysv4*MP*)
8790       if test -d /usr/nec; then
8791         lt_prog_compiler_pic=-Kconform_pic
8792       fi
8793       ;;
8794
8795     *)
8796       lt_prog_compiler_pic='-fPIC'
8797       ;;
8798     esac
8799
8800     case $cc_basename in
8801     nvcc*) # Cuda Compiler Driver 2.2
8802       lt_prog_compiler_wl='-Xlinker '
8803       if test -n "$lt_prog_compiler_pic"; then
8804         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8805       fi
8806       ;;
8807     esac
8808   else
8809     # PORTME Check for flag to pass linker flags through the system compiler.
8810     case $host_os in
8811     aix*)
8812       lt_prog_compiler_wl='-Wl,'
8813       if test "$host_cpu" = ia64; then
8814         # AIX 5 now supports IA64 processor
8815         lt_prog_compiler_static='-Bstatic'
8816       else
8817         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8818       fi
8819       ;;
8820
8821     mingw* | cygwin* | pw32* | os2* | cegcc*)
8822       # This hack is so that the source file can tell whether it is being
8823       # built for inclusion in a dll (and should export symbols for example).
8824       lt_prog_compiler_pic='-DDLL_EXPORT'
8825       ;;
8826
8827     hpux9* | hpux10* | hpux11*)
8828       lt_prog_compiler_wl='-Wl,'
8829       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8830       # not for PA HP-UX.
8831       case $host_cpu in
8832       hppa*64*|ia64*)
8833         # +Z the default
8834         ;;
8835       *)
8836         lt_prog_compiler_pic='+Z'
8837         ;;
8838       esac
8839       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8840       lt_prog_compiler_static='${wl}-a ${wl}archive'
8841       ;;
8842
8843     irix5* | irix6* | nonstopux*)
8844       lt_prog_compiler_wl='-Wl,'
8845       # PIC (with -KPIC) is the default.
8846       lt_prog_compiler_static='-non_shared'
8847       ;;
8848
8849     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8850       case $cc_basename in
8851       # old Intel for x86_64 which still supported -KPIC.
8852       ecc*)
8853         lt_prog_compiler_wl='-Wl,'
8854         lt_prog_compiler_pic='-KPIC'
8855         lt_prog_compiler_static='-static'
8856         ;;
8857       # icc used to be incompatible with GCC.
8858       # ICC 10 doesn't accept -KPIC any more.
8859       icc* | ifort*)
8860         lt_prog_compiler_wl='-Wl,'
8861         lt_prog_compiler_pic='-fPIC'
8862         lt_prog_compiler_static='-static'
8863         ;;
8864       # Lahey Fortran 8.1.
8865       lf95*)
8866         lt_prog_compiler_wl='-Wl,'
8867         lt_prog_compiler_pic='--shared'
8868         lt_prog_compiler_static='--static'
8869         ;;
8870       nagfor*)
8871         # NAG Fortran compiler
8872         lt_prog_compiler_wl='-Wl,-Wl,,'
8873         lt_prog_compiler_pic='-PIC'
8874         lt_prog_compiler_static='-Bstatic'
8875         ;;
8876       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8877         # Portland Group compilers (*not* the Pentium gcc compiler,
8878         # which looks to be a dead project)
8879         lt_prog_compiler_wl='-Wl,'
8880         lt_prog_compiler_pic='-fpic'
8881         lt_prog_compiler_static='-Bstatic'
8882         ;;
8883       ccc*)
8884         lt_prog_compiler_wl='-Wl,'
8885         # All Alpha code is PIC.
8886         lt_prog_compiler_static='-non_shared'
8887         ;;
8888       xl* | bgxl* | bgf* | mpixl*)
8889         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8890         lt_prog_compiler_wl='-Wl,'
8891         lt_prog_compiler_pic='-qpic'
8892         lt_prog_compiler_static='-qstaticlink'
8893         ;;
8894       *)
8895         case `$CC -V 2>&1 | sed 5q` in
8896         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8897           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8898           lt_prog_compiler_pic='-KPIC'
8899           lt_prog_compiler_static='-Bstatic'
8900           lt_prog_compiler_wl=''
8901           ;;
8902         *Sun\ F* | *Sun*Fortran*)
8903           lt_prog_compiler_pic='-KPIC'
8904           lt_prog_compiler_static='-Bstatic'
8905           lt_prog_compiler_wl='-Qoption ld '
8906           ;;
8907         *Sun\ C*)
8908           # Sun C 5.9
8909           lt_prog_compiler_pic='-KPIC'
8910           lt_prog_compiler_static='-Bstatic'
8911           lt_prog_compiler_wl='-Wl,'
8912           ;;
8913         *Intel*\ [CF]*Compiler*)
8914           lt_prog_compiler_wl='-Wl,'
8915           lt_prog_compiler_pic='-fPIC'
8916           lt_prog_compiler_static='-static'
8917           ;;
8918         *Portland\ Group*)
8919           lt_prog_compiler_wl='-Wl,'
8920           lt_prog_compiler_pic='-fpic'
8921           lt_prog_compiler_static='-Bstatic'
8922           ;;
8923         esac
8924         ;;
8925       esac
8926       ;;
8927
8928     newsos6)
8929       lt_prog_compiler_pic='-KPIC'
8930       lt_prog_compiler_static='-Bstatic'
8931       ;;
8932
8933     *nto* | *qnx*)
8934       # QNX uses GNU C++, but need to define -shared option too, otherwise
8935       # it will coredump.
8936       lt_prog_compiler_pic='-fPIC -shared'
8937       ;;
8938
8939     osf3* | osf4* | osf5*)
8940       lt_prog_compiler_wl='-Wl,'
8941       # All OSF/1 code is PIC.
8942       lt_prog_compiler_static='-non_shared'
8943       ;;
8944
8945     rdos*)
8946       lt_prog_compiler_static='-non_shared'
8947       ;;
8948
8949     solaris*)
8950       lt_prog_compiler_pic='-KPIC'
8951       lt_prog_compiler_static='-Bstatic'
8952       case $cc_basename in
8953       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8954         lt_prog_compiler_wl='-Qoption ld ';;
8955       *)
8956         lt_prog_compiler_wl='-Wl,';;
8957       esac
8958       ;;
8959
8960     sunos4*)
8961       lt_prog_compiler_wl='-Qoption ld '
8962       lt_prog_compiler_pic='-PIC'
8963       lt_prog_compiler_static='-Bstatic'
8964       ;;
8965
8966     sysv4 | sysv4.2uw2* | sysv4.3*)
8967       lt_prog_compiler_wl='-Wl,'
8968       lt_prog_compiler_pic='-KPIC'
8969       lt_prog_compiler_static='-Bstatic'
8970       ;;
8971
8972     sysv4*MP*)
8973       if test -d /usr/nec ;then
8974         lt_prog_compiler_pic='-Kconform_pic'
8975         lt_prog_compiler_static='-Bstatic'
8976       fi
8977       ;;
8978
8979     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8980       lt_prog_compiler_wl='-Wl,'
8981       lt_prog_compiler_pic='-KPIC'
8982       lt_prog_compiler_static='-Bstatic'
8983       ;;
8984
8985     unicos*)
8986       lt_prog_compiler_wl='-Wl,'
8987       lt_prog_compiler_can_build_shared=no
8988       ;;
8989
8990     uts4*)
8991       lt_prog_compiler_pic='-pic'
8992       lt_prog_compiler_static='-Bstatic'
8993       ;;
8994
8995     *)
8996       lt_prog_compiler_can_build_shared=no
8997       ;;
8998     esac
8999   fi
9000
9001 case $host_os in
9002   # For platforms which do not support PIC, -DPIC is meaningless:
9003   *djgpp*)
9004     lt_prog_compiler_pic=
9005     ;;
9006   *)
9007     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9008     ;;
9009 esac
9010
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9012 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9013 if ${lt_cv_prog_compiler_pic+:} false; then :
9014   $as_echo_n "(cached) " >&6
9015 else
9016   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9017 fi
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9019 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9020 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9021
9022 #
9023 # Check to make sure the PIC flag actually works.
9024 #
9025 if test -n "$lt_prog_compiler_pic"; then
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9027 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9028 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9029   $as_echo_n "(cached) " >&6
9030 else
9031   lt_cv_prog_compiler_pic_works=no
9032    ac_outfile=conftest.$ac_objext
9033    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9034    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9035    # Insert the option either (1) after the last *FLAGS variable, or
9036    # (2) before a word containing "conftest.", or (3) at the end.
9037    # Note that $ac_compile itself does not contain backslashes and begins
9038    # with a dollar sign (not a hyphen), so the echo should work correctly.
9039    # The option is referenced via a variable to avoid confusing sed.
9040    lt_compile=`echo "$ac_compile" | $SED \
9041    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9042    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9043    -e 's:$: $lt_compiler_flag:'`
9044    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9045    (eval "$lt_compile" 2>conftest.err)
9046    ac_status=$?
9047    cat conftest.err >&5
9048    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049    if (exit $ac_status) && test -s "$ac_outfile"; then
9050      # The compiler can only warn and ignore the option if not recognized
9051      # So say no if there are warnings other than the usual output.
9052      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9053      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9054      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9055        lt_cv_prog_compiler_pic_works=yes
9056      fi
9057    fi
9058    $RM conftest*
9059
9060 fi
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9062 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9063
9064 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9065     case $lt_prog_compiler_pic in
9066      "" | " "*) ;;
9067      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9068      esac
9069 else
9070     lt_prog_compiler_pic=
9071      lt_prog_compiler_can_build_shared=no
9072 fi
9073
9074 fi
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086 #
9087 # Check to make sure the static flag actually works.
9088 #
9089 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9091 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9092 if ${lt_cv_prog_compiler_static_works+:} false; then :
9093   $as_echo_n "(cached) " >&6
9094 else
9095   lt_cv_prog_compiler_static_works=no
9096    save_LDFLAGS="$LDFLAGS"
9097    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9098    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9099    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9100      # The linker can only warn and ignore the option if not recognized
9101      # So say no if there are warnings
9102      if test -s conftest.err; then
9103        # Append any errors to the config.log.
9104        cat conftest.err 1>&5
9105        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9106        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9107        if diff conftest.exp conftest.er2 >/dev/null; then
9108          lt_cv_prog_compiler_static_works=yes
9109        fi
9110      else
9111        lt_cv_prog_compiler_static_works=yes
9112      fi
9113    fi
9114    $RM -r conftest*
9115    LDFLAGS="$save_LDFLAGS"
9116
9117 fi
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9119 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9120
9121 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9122     :
9123 else
9124     lt_prog_compiler_static=
9125 fi
9126
9127
9128
9129
9130
9131
9132
9133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9135 if ${lt_cv_prog_compiler_c_o+:} false; then :
9136   $as_echo_n "(cached) " >&6
9137 else
9138   lt_cv_prog_compiler_c_o=no
9139    $RM -r conftest 2>/dev/null
9140    mkdir conftest
9141    cd conftest
9142    mkdir out
9143    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144
9145    lt_compiler_flag="-o out/conftest2.$ac_objext"
9146    # Insert the option either (1) after the last *FLAGS variable, or
9147    # (2) before a word containing "conftest.", or (3) at the end.
9148    # Note that $ac_compile itself does not contain backslashes and begins
9149    # with a dollar sign (not a hyphen), so the echo should work correctly.
9150    lt_compile=`echo "$ac_compile" | $SED \
9151    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153    -e 's:$: $lt_compiler_flag:'`
9154    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9155    (eval "$lt_compile" 2>out/conftest.err)
9156    ac_status=$?
9157    cat out/conftest.err >&5
9158    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9160    then
9161      # The compiler can only warn and ignore the option if not recognized
9162      # So say no if there are warnings
9163      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9164      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9165      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9166        lt_cv_prog_compiler_c_o=yes
9167      fi
9168    fi
9169    chmod u+w . 2>&5
9170    $RM conftest*
9171    # SGI C++ compiler will create directory out/ii_files/ for
9172    # template instantiation
9173    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9174    $RM out/* && rmdir out
9175    cd ..
9176    $RM -r conftest
9177    $RM conftest*
9178
9179 fi
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9181 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9182
9183
9184
9185
9186
9187
9188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9189 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9190 if ${lt_cv_prog_compiler_c_o+:} false; then :
9191   $as_echo_n "(cached) " >&6
9192 else
9193   lt_cv_prog_compiler_c_o=no
9194    $RM -r conftest 2>/dev/null
9195    mkdir conftest
9196    cd conftest
9197    mkdir out
9198    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9199
9200    lt_compiler_flag="-o out/conftest2.$ac_objext"
9201    # Insert the option either (1) after the last *FLAGS variable, or
9202    # (2) before a word containing "conftest.", or (3) at the end.
9203    # Note that $ac_compile itself does not contain backslashes and begins
9204    # with a dollar sign (not a hyphen), so the echo should work correctly.
9205    lt_compile=`echo "$ac_compile" | $SED \
9206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9208    -e 's:$: $lt_compiler_flag:'`
9209    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9210    (eval "$lt_compile" 2>out/conftest.err)
9211    ac_status=$?
9212    cat out/conftest.err >&5
9213    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9215    then
9216      # The compiler can only warn and ignore the option if not recognized
9217      # So say no if there are warnings
9218      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9219      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9220      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9221        lt_cv_prog_compiler_c_o=yes
9222      fi
9223    fi
9224    chmod u+w . 2>&5
9225    $RM conftest*
9226    # SGI C++ compiler will create directory out/ii_files/ for
9227    # template instantiation
9228    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9229    $RM out/* && rmdir out
9230    cd ..
9231    $RM -r conftest
9232    $RM conftest*
9233
9234 fi
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9236 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9237
9238
9239
9240
9241 hard_links="nottested"
9242 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9243   # do not overwrite the value of need_locks provided by the user
9244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9245 $as_echo_n "checking if we can lock with hard links... " >&6; }
9246   hard_links=yes
9247   $RM conftest*
9248   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9249   touch conftest.a
9250   ln conftest.a conftest.b 2>&5 || hard_links=no
9251   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9253 $as_echo "$hard_links" >&6; }
9254   if test "$hard_links" = no; then
9255     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9256 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9257     need_locks=warn
9258   fi
9259 else
9260   need_locks=no
9261 fi
9262
9263
9264
9265
9266
9267
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9269 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9270
9271   runpath_var=
9272   allow_undefined_flag=
9273   always_export_symbols=no
9274   archive_cmds=
9275   archive_expsym_cmds=
9276   compiler_needs_object=no
9277   enable_shared_with_static_runtimes=no
9278   export_dynamic_flag_spec=
9279   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9280   hardcode_automatic=no
9281   hardcode_direct=no
9282   hardcode_direct_absolute=no
9283   hardcode_libdir_flag_spec=
9284   hardcode_libdir_separator=
9285   hardcode_minus_L=no
9286   hardcode_shlibpath_var=unsupported
9287   inherit_rpath=no
9288   link_all_deplibs=unknown
9289   module_cmds=
9290   module_expsym_cmds=
9291   old_archive_from_new_cmds=
9292   old_archive_from_expsyms_cmds=
9293   thread_safe_flag_spec=
9294   whole_archive_flag_spec=
9295   # include_expsyms should be a list of space-separated symbols to be *always*
9296   # included in the symbol list
9297   include_expsyms=
9298   # exclude_expsyms can be an extended regexp of symbols to exclude
9299   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9300   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9301   # as well as any symbol that contains `d'.
9302   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9303   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9304   # platforms (ab)use it in PIC code, but their linkers get confused if
9305   # the symbol is explicitly referenced.  Since portable code cannot
9306   # rely on this symbol name, it's probably fine to never include it in
9307   # preloaded symbol tables.
9308   # Exclude shared library initialization/finalization symbols.
9309   extract_expsyms_cmds=
9310
9311   case $host_os in
9312   cygwin* | mingw* | pw32* | cegcc*)
9313     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9314     # When not using gcc, we currently assume that we are using
9315     # Microsoft Visual C++.
9316     if test "$GCC" != yes; then
9317       with_gnu_ld=no
9318     fi
9319     ;;
9320   interix*)
9321     # we just hope/assume this is gcc and not c89 (= MSVC++)
9322     with_gnu_ld=yes
9323     ;;
9324   openbsd*)
9325     with_gnu_ld=no
9326     ;;
9327   esac
9328
9329   ld_shlibs=yes
9330
9331   # On some targets, GNU ld is compatible enough with the native linker
9332   # that we're better off using the native interface for both.
9333   lt_use_gnu_ld_interface=no
9334   if test "$with_gnu_ld" = yes; then
9335     case $host_os in
9336       aix*)
9337         # The AIX port of GNU ld has always aspired to compatibility
9338         # with the native linker.  However, as the warning in the GNU ld
9339         # block says, versions before 2.19.5* couldn't really create working
9340         # shared libraries, regardless of the interface used.
9341         case `$LD -v 2>&1` in
9342           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9343           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9344           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9345           *)
9346             lt_use_gnu_ld_interface=yes
9347             ;;
9348         esac
9349         ;;
9350       *)
9351         lt_use_gnu_ld_interface=yes
9352         ;;
9353     esac
9354   fi
9355
9356   if test "$lt_use_gnu_ld_interface" = yes; then
9357     # If archive_cmds runs LD, not CC, wlarc should be empty
9358     wlarc='${wl}'
9359
9360     # Set some defaults for GNU ld with shared library support. These
9361     # are reset later if shared libraries are not supported. Putting them
9362     # here allows them to be overridden if necessary.
9363     runpath_var=LD_RUN_PATH
9364     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9365     export_dynamic_flag_spec='${wl}--export-dynamic'
9366     # ancient GNU ld didn't support --whole-archive et. al.
9367     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9368       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9369     else
9370       whole_archive_flag_spec=
9371     fi
9372     supports_anon_versioning=no
9373     case `$LD -v 2>&1` in
9374       *GNU\ gold*) supports_anon_versioning=yes ;;
9375       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9376       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9377       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9378       *\ 2.11.*) ;; # other 2.11 versions
9379       *) supports_anon_versioning=yes ;;
9380     esac
9381
9382     # See if GNU ld supports shared libraries.
9383     case $host_os in
9384     aix[3-9]*)
9385       # On AIX/PPC, the GNU linker is very broken
9386       if test "$host_cpu" != ia64; then
9387         ld_shlibs=no
9388         cat <<_LT_EOF 1>&2
9389
9390 *** Warning: the GNU linker, at least up to release 2.19, is reported
9391 *** to be unable to reliably create shared libraries on AIX.
9392 *** Therefore, libtool is disabling shared libraries support.  If you
9393 *** really care for shared libraries, you may want to install binutils
9394 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9395 *** You will then need to restart the configuration process.
9396
9397 _LT_EOF
9398       fi
9399       ;;
9400
9401     amigaos*)
9402       case $host_cpu in
9403       powerpc)
9404             # see comment about AmigaOS4 .so support
9405             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9406             archive_expsym_cmds=''
9407         ;;
9408       m68k)
9409             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)'
9410             hardcode_libdir_flag_spec='-L$libdir'
9411             hardcode_minus_L=yes
9412         ;;
9413       esac
9414       ;;
9415
9416     beos*)
9417       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9418         allow_undefined_flag=unsupported
9419         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9420         # support --undefined.  This deserves some investigation.  FIXME
9421         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422       else
9423         ld_shlibs=no
9424       fi
9425       ;;
9426
9427     cygwin* | mingw* | pw32* | cegcc*)
9428       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9429       # as there is no search path for DLLs.
9430       hardcode_libdir_flag_spec='-L$libdir'
9431       export_dynamic_flag_spec='${wl}--export-all-symbols'
9432       allow_undefined_flag=unsupported
9433       always_export_symbols=no
9434       enable_shared_with_static_runtimes=yes
9435       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9436       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9437
9438       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9439         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9440         # If the export-symbols file already is a .def file (1st line
9441         # is EXPORTS), use it as is; otherwise, prepend...
9442         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9443           cp $export_symbols $output_objdir/$soname.def;
9444         else
9445           echo EXPORTS > $output_objdir/$soname.def;
9446           cat $export_symbols >> $output_objdir/$soname.def;
9447         fi~
9448         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9449       else
9450         ld_shlibs=no
9451       fi
9452       ;;
9453
9454     haiku*)
9455       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9456       link_all_deplibs=yes
9457       ;;
9458
9459     interix[3-9]*)
9460       hardcode_direct=no
9461       hardcode_shlibpath_var=no
9462       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9463       export_dynamic_flag_spec='${wl}-E'
9464       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9465       # Instead, shared libraries are loaded at an image base (0x10000000 by
9466       # default) and relocated if they conflict, which is a slow very memory
9467       # consuming and fragmenting process.  To avoid this, we pick a random,
9468       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9469       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9470       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9471       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'
9472       ;;
9473
9474     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9475       tmp_diet=no
9476       if test "$host_os" = linux-dietlibc; then
9477         case $cc_basename in
9478           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9479         esac
9480       fi
9481       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9482          && test "$tmp_diet" = no
9483       then
9484         tmp_addflag=' $pic_flag'
9485         tmp_sharedflag='-shared'
9486         case $cc_basename,$host_cpu in
9487         pgcc*)                          # Portland Group C compiler
9488           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9489           tmp_addflag=' $pic_flag'
9490           ;;
9491         pgf77* | pgf90* | pgf95* | pgfortran*)
9492                                         # Portland Group f77 and f90 compilers
9493           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9494           tmp_addflag=' $pic_flag -Mnomain' ;;
9495         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9496           tmp_addflag=' -i_dynamic' ;;
9497         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9498           tmp_addflag=' -i_dynamic -nofor_main' ;;
9499         ifc* | ifort*)                  # Intel Fortran compiler
9500           tmp_addflag=' -nofor_main' ;;
9501         lf95*)                          # Lahey Fortran 8.1
9502           whole_archive_flag_spec=
9503           tmp_sharedflag='--shared' ;;
9504         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9505           tmp_sharedflag='-qmkshrobj'
9506           tmp_addflag= ;;
9507         nvcc*)  # Cuda Compiler Driver 2.2
9508           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9509           compiler_needs_object=yes
9510           ;;
9511         esac
9512         case `$CC -V 2>&1 | sed 5q` in
9513         *Sun\ C*)                       # Sun C 5.9
9514           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9515           compiler_needs_object=yes
9516           tmp_sharedflag='-G' ;;
9517         *Sun\ F*)                       # Sun Fortran 8.3
9518           tmp_sharedflag='-G' ;;
9519         esac
9520         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9521
9522         if test "x$supports_anon_versioning" = xyes; then
9523           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9524             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9525             echo "local: *; };" >> $output_objdir/$libname.ver~
9526             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9527         fi
9528
9529         case $cc_basename in
9530         xlf* | bgf* | bgxlf* | mpixlf*)
9531           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9532           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9533           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9535           if test "x$supports_anon_versioning" = xyes; then
9536             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9537               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9538               echo "local: *; };" >> $output_objdir/$libname.ver~
9539               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9540           fi
9541           ;;
9542         esac
9543       else
9544         ld_shlibs=no
9545       fi
9546       ;;
9547
9548     netbsd*)
9549       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9550         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9551         wlarc=
9552       else
9553         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9555       fi
9556       ;;
9557
9558     solaris*)
9559       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9560         ld_shlibs=no
9561         cat <<_LT_EOF 1>&2
9562
9563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9564 *** create shared libraries on Solaris systems.  Therefore, libtool
9565 *** is disabling shared libraries support.  We urge you to upgrade GNU
9566 *** binutils to release 2.9.1 or newer.  Another option is to modify
9567 *** your PATH or compiler configuration so that the native linker is
9568 *** used, and then restart.
9569
9570 _LT_EOF
9571       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9572         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9574       else
9575         ld_shlibs=no
9576       fi
9577       ;;
9578
9579     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9580       case `$LD -v 2>&1` in
9581         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9582         ld_shlibs=no
9583         cat <<_LT_EOF 1>&2
9584
9585 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9586 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9587 *** is disabling shared libraries support.  We urge you to upgrade GNU
9588 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9589 *** your PATH or compiler configuration so that the native linker is
9590 *** used, and then restart.
9591
9592 _LT_EOF
9593         ;;
9594         *)
9595           # For security reasons, it is highly recommended that you always
9596           # use absolute paths for naming shared libraries, and exclude the
9597           # DT_RUNPATH tag from executables and libraries.  But doing so
9598           # requires that you compile everything twice, which is a pain.
9599           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9600             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9602             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9603           else
9604             ld_shlibs=no
9605           fi
9606         ;;
9607       esac
9608       ;;
9609
9610     sunos4*)
9611       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9612       wlarc=
9613       hardcode_direct=yes
9614       hardcode_shlibpath_var=no
9615       ;;
9616
9617     *)
9618       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9619         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9620         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9621       else
9622         ld_shlibs=no
9623       fi
9624       ;;
9625     esac
9626
9627     if test "$ld_shlibs" = no; then
9628       runpath_var=
9629       hardcode_libdir_flag_spec=
9630       export_dynamic_flag_spec=
9631       whole_archive_flag_spec=
9632     fi
9633   else
9634     # PORTME fill in a description of your system's linker (not GNU ld)
9635     case $host_os in
9636     aix3*)
9637       allow_undefined_flag=unsupported
9638       always_export_symbols=yes
9639       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'
9640       # Note: this linker hardcodes the directories in LIBPATH if there
9641       # are no directories specified by -L.
9642       hardcode_minus_L=yes
9643       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9644         # Neither direct hardcoding nor static linking is supported with a
9645         # broken collect2.
9646         hardcode_direct=unsupported
9647       fi
9648       ;;
9649
9650     aix[4-9]*)
9651       if test "$host_cpu" = ia64; then
9652         # On IA64, the linker does run time linking by default, so we don't
9653         # have to do anything special.
9654         aix_use_runtimelinking=no
9655         exp_sym_flag='-Bexport'
9656         no_entry_flag=""
9657       else
9658         # If we're using GNU nm, then we don't want the "-C" option.
9659         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9660         # Also, AIX nm treats weak defined symbols like other global
9661         # defined symbols, whereas GNU nm marks them as "W".
9662         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9663           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9664         else
9665           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'
9666         fi
9667         aix_use_runtimelinking=no
9668
9669         # Test if we are trying to use run time linking or normal
9670         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9671         # need to do runtime linking.
9672         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9673           for ld_flag in $LDFLAGS; do
9674           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9675             aix_use_runtimelinking=yes
9676             break
9677           fi
9678           done
9679           ;;
9680         esac
9681
9682         exp_sym_flag='-bexport'
9683         no_entry_flag='-bnoentry'
9684       fi
9685
9686       # When large executables or shared objects are built, AIX ld can
9687       # have problems creating the table of contents.  If linking a library
9688       # or program results in "error TOC overflow" add -mminimal-toc to
9689       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9690       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9691
9692       archive_cmds=''
9693       hardcode_direct=yes
9694       hardcode_direct_absolute=yes
9695       hardcode_libdir_separator=':'
9696       link_all_deplibs=yes
9697       file_list_spec='${wl}-f,'
9698
9699       if test "$GCC" = yes; then
9700         case $host_os in aix4.[012]|aix4.[012].*)
9701         # We only want to do this on AIX 4.2 and lower, the check
9702         # below for broken collect2 doesn't work under 4.3+
9703           collect2name=`${CC} -print-prog-name=collect2`
9704           if test -f "$collect2name" &&
9705            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9706           then
9707           # We have reworked collect2
9708           :
9709           else
9710           # We have old collect2
9711           hardcode_direct=unsupported
9712           # It fails to find uninstalled libraries when the uninstalled
9713           # path is not listed in the libpath.  Setting hardcode_minus_L
9714           # to unsupported forces relinking
9715           hardcode_minus_L=yes
9716           hardcode_libdir_flag_spec='-L$libdir'
9717           hardcode_libdir_separator=
9718           fi
9719           ;;
9720         esac
9721         shared_flag='-shared'
9722         if test "$aix_use_runtimelinking" = yes; then
9723           shared_flag="$shared_flag "'${wl}-G'
9724         fi
9725       else
9726         # not using gcc
9727         if test "$host_cpu" = ia64; then
9728         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9729         # chokes on -Wl,-G. The following line is correct:
9730           shared_flag='-G'
9731         else
9732           if test "$aix_use_runtimelinking" = yes; then
9733             shared_flag='${wl}-G'
9734           else
9735             shared_flag='${wl}-bM:SRE'
9736           fi
9737         fi
9738       fi
9739
9740       export_dynamic_flag_spec='${wl}-bexpall'
9741       # It seems that -bexpall does not export symbols beginning with
9742       # underscore (_), so it is better to generate a list of symbols to export.
9743       always_export_symbols=yes
9744       if test "$aix_use_runtimelinking" = yes; then
9745         # Warning - without using the other runtime loading flags (-brtl),
9746         # -berok will link without error, but may produce a broken library.
9747         allow_undefined_flag='-berok'
9748         # Determine the default libpath from the value encoded in an
9749         # empty executable.
9750         if test "${lt_cv_aix_libpath+set}" = set; then
9751   aix_libpath=$lt_cv_aix_libpath
9752 else
9753   if ${lt_cv_aix_libpath_+:} false; then :
9754   $as_echo_n "(cached) " >&6
9755 else
9756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h.  */
9758
9759 #ifdef F77_DUMMY_MAIN
9760
9761 #  ifdef __cplusplus
9762      extern "C"
9763 #  endif
9764    int F77_DUMMY_MAIN() { return 1; }
9765
9766 #endif
9767 int
9768 main ()
9769 {
9770
9771   ;
9772   return 0;
9773 }
9774 _ACEOF
9775 if ac_fn_c_try_link "$LINENO"; then :
9776
9777   lt_aix_libpath_sed='
9778       /Import File Strings/,/^$/ {
9779           /^0/ {
9780               s/^0  *\([^ ]*\) *$/\1/
9781               p
9782           }
9783       }'
9784   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9785   # Check for a 64-bit object if we didn't find anything.
9786   if test -z "$lt_cv_aix_libpath_"; then
9787     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9788   fi
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext \
9791     conftest$ac_exeext conftest.$ac_ext
9792   if test -z "$lt_cv_aix_libpath_"; then
9793     lt_cv_aix_libpath_="/usr/lib:/lib"
9794   fi
9795
9796 fi
9797
9798   aix_libpath=$lt_cv_aix_libpath_
9799 fi
9800
9801         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9802         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9803       else
9804         if test "$host_cpu" = ia64; then
9805           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9806           allow_undefined_flag="-z nodefs"
9807           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"
9808         else
9809          # Determine the default libpath from the value encoded in an
9810          # empty executable.
9811          if test "${lt_cv_aix_libpath+set}" = set; then
9812   aix_libpath=$lt_cv_aix_libpath
9813 else
9814   if ${lt_cv_aix_libpath_+:} false; then :
9815   $as_echo_n "(cached) " >&6
9816 else
9817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h.  */
9819
9820 #ifdef F77_DUMMY_MAIN
9821
9822 #  ifdef __cplusplus
9823      extern "C"
9824 #  endif
9825    int F77_DUMMY_MAIN() { return 1; }
9826
9827 #endif
9828 int
9829 main ()
9830 {
9831
9832   ;
9833   return 0;
9834 }
9835 _ACEOF
9836 if ac_fn_c_try_link "$LINENO"; then :
9837
9838   lt_aix_libpath_sed='
9839       /Import File Strings/,/^$/ {
9840           /^0/ {
9841               s/^0  *\([^ ]*\) *$/\1/
9842               p
9843           }
9844       }'
9845   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9846   # Check for a 64-bit object if we didn't find anything.
9847   if test -z "$lt_cv_aix_libpath_"; then
9848     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9849   fi
9850 fi
9851 rm -f core conftest.err conftest.$ac_objext \
9852     conftest$ac_exeext conftest.$ac_ext
9853   if test -z "$lt_cv_aix_libpath_"; then
9854     lt_cv_aix_libpath_="/usr/lib:/lib"
9855   fi
9856
9857 fi
9858
9859   aix_libpath=$lt_cv_aix_libpath_
9860 fi
9861
9862          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9863           # Warning - without using the other run time loading flags,
9864           # -berok will link without error, but may produce a broken library.
9865           no_undefined_flag=' ${wl}-bernotok'
9866           allow_undefined_flag=' ${wl}-berok'
9867           if test "$with_gnu_ld" = yes; then
9868             # We only use this code for GNU lds that support --whole-archive.
9869             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9870           else
9871             # Exported symbols can be pulled into shared objects from archives
9872             whole_archive_flag_spec='$convenience'
9873           fi
9874           archive_cmds_need_lc=yes
9875           # This is similar to how AIX traditionally builds its shared libraries.
9876           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'
9877         fi
9878       fi
9879       ;;
9880
9881     amigaos*)
9882       case $host_cpu in
9883       powerpc)
9884             # see comment about AmigaOS4 .so support
9885             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886             archive_expsym_cmds=''
9887         ;;
9888       m68k)
9889             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)'
9890             hardcode_libdir_flag_spec='-L$libdir'
9891             hardcode_minus_L=yes
9892         ;;
9893       esac
9894       ;;
9895
9896     bsdi[45]*)
9897       export_dynamic_flag_spec=-rdynamic
9898       ;;
9899
9900     cygwin* | mingw* | pw32* | cegcc*)
9901       # When not using gcc, we currently assume that we are using
9902       # Microsoft Visual C++.
9903       # hardcode_libdir_flag_spec is actually meaningless, as there is
9904       # no search path for DLLs.
9905       case $cc_basename in
9906       cl*)
9907         # Native MSVC
9908         hardcode_libdir_flag_spec=' '
9909         allow_undefined_flag=unsupported
9910         always_export_symbols=yes
9911         file_list_spec='@'
9912         # Tell ltmain to make .lib files, not .a files.
9913         libext=lib
9914         # Tell ltmain to make .dll files, not .so files.
9915         shrext_cmds=".dll"
9916         # FIXME: Setting linknames here is a bad hack.
9917         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9918         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9919             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9920           else
9921             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9922           fi~
9923           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9924           linknames='
9925         # The linker will not automatically build a static lib if we build a DLL.
9926         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9927         enable_shared_with_static_runtimes=yes
9928         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9929         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9930         # Don't use ranlib
9931         old_postinstall_cmds='chmod 644 $oldlib'
9932         postlink_cmds='lt_outputfile="@OUTPUT@"~
9933           lt_tool_outputfile="@TOOL_OUTPUT@"~
9934           case $lt_outputfile in
9935             *.exe|*.EXE) ;;
9936             *)
9937               lt_outputfile="$lt_outputfile.exe"
9938               lt_tool_outputfile="$lt_tool_outputfile.exe"
9939               ;;
9940           esac~
9941           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9942             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9943             $RM "$lt_outputfile.manifest";
9944           fi'
9945         ;;
9946       *)
9947         # Assume MSVC wrapper
9948         hardcode_libdir_flag_spec=' '
9949         allow_undefined_flag=unsupported
9950         # Tell ltmain to make .lib files, not .a files.
9951         libext=lib
9952         # Tell ltmain to make .dll files, not .so files.
9953         shrext_cmds=".dll"
9954         # FIXME: Setting linknames here is a bad hack.
9955         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9956         # The linker will automatically build a .lib file if we build a DLL.
9957         old_archive_from_new_cmds='true'
9958         # FIXME: Should let the user specify the lib program.
9959         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9960         enable_shared_with_static_runtimes=yes
9961         ;;
9962       esac
9963       ;;
9964
9965     darwin* | rhapsody*)
9966
9967
9968   archive_cmds_need_lc=no
9969   hardcode_direct=no
9970   hardcode_automatic=yes
9971   hardcode_shlibpath_var=unsupported
9972   if test "$lt_cv_ld_force_load" = "yes"; then
9973     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9974
9975   else
9976     whole_archive_flag_spec=''
9977   fi
9978   link_all_deplibs=yes
9979   allow_undefined_flag="$_lt_dar_allow_undefined"
9980   case $cc_basename in
9981      ifort*) _lt_dar_can_shared=yes ;;
9982      *) _lt_dar_can_shared=$GCC ;;
9983   esac
9984   if test "$_lt_dar_can_shared" = "yes"; then
9985     output_verbose_link_cmd=func_echo_all
9986     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9987     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9988     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}"
9989     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}"
9990
9991   else
9992   ld_shlibs=no
9993   fi
9994
9995       ;;
9996
9997     dgux*)
9998       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999       hardcode_libdir_flag_spec='-L$libdir'
10000       hardcode_shlibpath_var=no
10001       ;;
10002
10003     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10004     # support.  Future versions do this automatically, but an explicit c++rt0.o
10005     # does not break anything, and helps significantly (at the cost of a little
10006     # extra space).
10007     freebsd2.2*)
10008       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10009       hardcode_libdir_flag_spec='-R$libdir'
10010       hardcode_direct=yes
10011       hardcode_shlibpath_var=no
10012       ;;
10013
10014     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10015     freebsd2.*)
10016       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10017       hardcode_direct=yes
10018       hardcode_minus_L=yes
10019       hardcode_shlibpath_var=no
10020       ;;
10021
10022     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10023     freebsd* | dragonfly*)
10024       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10025       hardcode_libdir_flag_spec='-R$libdir'
10026       hardcode_direct=yes
10027       hardcode_shlibpath_var=no
10028       ;;
10029
10030     hpux9*)
10031       if test "$GCC" = yes; then
10032         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10033       else
10034         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'
10035       fi
10036       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10037       hardcode_libdir_separator=:
10038       hardcode_direct=yes
10039
10040       # hardcode_minus_L: Not really in the search PATH,
10041       # but as the default location of the library.
10042       hardcode_minus_L=yes
10043       export_dynamic_flag_spec='${wl}-E'
10044       ;;
10045
10046     hpux10*)
10047       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10048         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10049       else
10050         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10051       fi
10052       if test "$with_gnu_ld" = no; then
10053         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10054         hardcode_libdir_separator=:
10055         hardcode_direct=yes
10056         hardcode_direct_absolute=yes
10057         export_dynamic_flag_spec='${wl}-E'
10058         # hardcode_minus_L: Not really in the search PATH,
10059         # but as the default location of the library.
10060         hardcode_minus_L=yes
10061       fi
10062       ;;
10063
10064     hpux11*)
10065       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10066         case $host_cpu in
10067         hppa*64*)
10068           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10069           ;;
10070         ia64*)
10071           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10072           ;;
10073         *)
10074           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10075           ;;
10076         esac
10077       else
10078         case $host_cpu in
10079         hppa*64*)
10080           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10081           ;;
10082         ia64*)
10083           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10084           ;;
10085         *)
10086
10087           # Older versions of the 11.00 compiler do not understand -b yet
10088           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10089           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10090 $as_echo_n "checking if $CC understands -b... " >&6; }
10091 if ${lt_cv_prog_compiler__b+:} false; then :
10092   $as_echo_n "(cached) " >&6
10093 else
10094   lt_cv_prog_compiler__b=no
10095    save_LDFLAGS="$LDFLAGS"
10096    LDFLAGS="$LDFLAGS -b"
10097    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10098    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10099      # The linker can only warn and ignore the option if not recognized
10100      # So say no if there are warnings
10101      if test -s conftest.err; then
10102        # Append any errors to the config.log.
10103        cat conftest.err 1>&5
10104        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10105        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10106        if diff conftest.exp conftest.er2 >/dev/null; then
10107          lt_cv_prog_compiler__b=yes
10108        fi
10109      else
10110        lt_cv_prog_compiler__b=yes
10111      fi
10112    fi
10113    $RM -r conftest*
10114    LDFLAGS="$save_LDFLAGS"
10115
10116 fi
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10118 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10119
10120 if test x"$lt_cv_prog_compiler__b" = xyes; then
10121     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10122 else
10123     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10124 fi
10125
10126           ;;
10127         esac
10128       fi
10129       if test "$with_gnu_ld" = no; then
10130         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10131         hardcode_libdir_separator=:
10132
10133         case $host_cpu in
10134         hppa*64*|ia64*)
10135           hardcode_direct=no
10136           hardcode_shlibpath_var=no
10137           ;;
10138         *)
10139           hardcode_direct=yes
10140           hardcode_direct_absolute=yes
10141           export_dynamic_flag_spec='${wl}-E'
10142
10143           # hardcode_minus_L: Not really in the search PATH,
10144           # but as the default location of the library.
10145           hardcode_minus_L=yes
10146           ;;
10147         esac
10148       fi
10149       ;;
10150
10151     irix5* | irix6* | nonstopux*)
10152       if test "$GCC" = yes; then
10153         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10154         # Try to use the -exported_symbol ld option, if it does not
10155         # work, assume that -exports_file does not work either and
10156         # implicitly export all symbols.
10157         # This should be the same for all languages, so no per-tag cache variable.
10158         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10159 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10160 if ${lt_cv_irix_exported_symbol+:} false; then :
10161   $as_echo_n "(cached) " >&6
10162 else
10163   save_LDFLAGS="$LDFLAGS"
10164            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10165            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h.  */
10167 int foo (void) { return 0; }
10168 _ACEOF
10169 if ac_fn_c_try_link "$LINENO"; then :
10170   lt_cv_irix_exported_symbol=yes
10171 else
10172   lt_cv_irix_exported_symbol=no
10173 fi
10174 rm -f core conftest.err conftest.$ac_objext \
10175     conftest$ac_exeext conftest.$ac_ext
10176            LDFLAGS="$save_LDFLAGS"
10177 fi
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10179 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10180         if test "$lt_cv_irix_exported_symbol" = yes; then
10181           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10182         fi
10183       else
10184         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10185         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10186       fi
10187       archive_cmds_need_lc='no'
10188       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10189       hardcode_libdir_separator=:
10190       inherit_rpath=yes
10191       link_all_deplibs=yes
10192       ;;
10193
10194     netbsd*)
10195       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10196         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10197       else
10198         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10199       fi
10200       hardcode_libdir_flag_spec='-R$libdir'
10201       hardcode_direct=yes
10202       hardcode_shlibpath_var=no
10203       ;;
10204
10205     newsos6)
10206       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207       hardcode_direct=yes
10208       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10209       hardcode_libdir_separator=:
10210       hardcode_shlibpath_var=no
10211       ;;
10212
10213     *nto* | *qnx*)
10214       ;;
10215
10216     openbsd*)
10217       if test -f /usr/libexec/ld.so; then
10218         hardcode_direct=yes
10219         hardcode_shlibpath_var=no
10220         hardcode_direct_absolute=yes
10221         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10222           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10223           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10224           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10225           export_dynamic_flag_spec='${wl}-E'
10226         else
10227           case $host_os in
10228            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10229              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10230              hardcode_libdir_flag_spec='-R$libdir'
10231              ;;
10232            *)
10233              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10234              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10235              ;;
10236           esac
10237         fi
10238       else
10239         ld_shlibs=no
10240       fi
10241       ;;
10242
10243     os2*)
10244       hardcode_libdir_flag_spec='-L$libdir'
10245       hardcode_minus_L=yes
10246       allow_undefined_flag=unsupported
10247       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'
10248       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10249       ;;
10250
10251     osf3*)
10252       if test "$GCC" = yes; then
10253         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10254         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10255       else
10256         allow_undefined_flag=' -expect_unresolved \*'
10257         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10258       fi
10259       archive_cmds_need_lc='no'
10260       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10261       hardcode_libdir_separator=:
10262       ;;
10263
10264     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10265       if test "$GCC" = yes; then
10266         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10267         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10268         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269       else
10270         allow_undefined_flag=' -expect_unresolved \*'
10271         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10272         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~
10273         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10274
10275         # Both c and cxx compiler support -rpath directly
10276         hardcode_libdir_flag_spec='-rpath $libdir'
10277       fi
10278       archive_cmds_need_lc='no'
10279       hardcode_libdir_separator=:
10280       ;;
10281
10282     solaris*)
10283       no_undefined_flag=' -z defs'
10284       if test "$GCC" = yes; then
10285         wlarc='${wl}'
10286         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10287         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10288           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10289       else
10290         case `$CC -V 2>&1` in
10291         *"Compilers 5.0"*)
10292           wlarc=''
10293           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10294           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10295           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10296           ;;
10297         *)
10298           wlarc='${wl}'
10299           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10300           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10301           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10302           ;;
10303         esac
10304       fi
10305       hardcode_libdir_flag_spec='-R$libdir'
10306       hardcode_shlibpath_var=no
10307       case $host_os in
10308       solaris2.[0-5] | solaris2.[0-5].*) ;;
10309       *)
10310         # The compiler driver will combine and reorder linker options,
10311         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10312         # but is careful enough not to reorder.
10313         # Supported since Solaris 2.6 (maybe 2.5.1?)
10314         if test "$GCC" = yes; then
10315           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10316         else
10317           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10318         fi
10319         ;;
10320       esac
10321       link_all_deplibs=yes
10322       ;;
10323
10324     sunos4*)
10325       if test "x$host_vendor" = xsequent; then
10326         # Use $CC to link under sequent, because it throws in some extra .o
10327         # files that make .init and .fini sections work.
10328         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10329       else
10330         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10331       fi
10332       hardcode_libdir_flag_spec='-L$libdir'
10333       hardcode_direct=yes
10334       hardcode_minus_L=yes
10335       hardcode_shlibpath_var=no
10336       ;;
10337
10338     sysv4)
10339       case $host_vendor in
10340         sni)
10341           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342           hardcode_direct=yes # is this really true???
10343         ;;
10344         siemens)
10345           ## LD is ld it makes a PLAMLIB
10346           ## CC just makes a GrossModule.
10347           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10348           reload_cmds='$CC -r -o $output$reload_objs'
10349           hardcode_direct=no
10350         ;;
10351         motorola)
10352           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10354         ;;
10355       esac
10356       runpath_var='LD_RUN_PATH'
10357       hardcode_shlibpath_var=no
10358       ;;
10359
10360     sysv4.3*)
10361       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362       hardcode_shlibpath_var=no
10363       export_dynamic_flag_spec='-Bexport'
10364       ;;
10365
10366     sysv4*MP*)
10367       if test -d /usr/nec; then
10368         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369         hardcode_shlibpath_var=no
10370         runpath_var=LD_RUN_PATH
10371         hardcode_runpath_var=yes
10372         ld_shlibs=yes
10373       fi
10374       ;;
10375
10376     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10377       no_undefined_flag='${wl}-z,text'
10378       archive_cmds_need_lc=no
10379       hardcode_shlibpath_var=no
10380       runpath_var='LD_RUN_PATH'
10381
10382       if test "$GCC" = yes; then
10383         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10384         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10385       else
10386         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388       fi
10389       ;;
10390
10391     sysv5* | sco3.2v5* | sco5v6*)
10392       # Note: We can NOT use -z defs as we might desire, because we do not
10393       # link with -lc, and that would cause any symbols used from libc to
10394       # always be unresolved, which means just about no library would
10395       # ever link correctly.  If we're not using GNU ld we use -z text
10396       # though, which does catch some bad symbols but isn't as heavy-handed
10397       # as -z defs.
10398       no_undefined_flag='${wl}-z,text'
10399       allow_undefined_flag='${wl}-z,nodefs'
10400       archive_cmds_need_lc=no
10401       hardcode_shlibpath_var=no
10402       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10403       hardcode_libdir_separator=':'
10404       link_all_deplibs=yes
10405       export_dynamic_flag_spec='${wl}-Bexport'
10406       runpath_var='LD_RUN_PATH'
10407
10408       if test "$GCC" = yes; then
10409         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10410         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10411       else
10412         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10413         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10414       fi
10415       ;;
10416
10417     uts4*)
10418       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10419       hardcode_libdir_flag_spec='-L$libdir'
10420       hardcode_shlibpath_var=no
10421       ;;
10422
10423     *)
10424       ld_shlibs=no
10425       ;;
10426     esac
10427
10428     if test x$host_vendor = xsni; then
10429       case $host in
10430       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10431         export_dynamic_flag_spec='${wl}-Blargedynsym'
10432         ;;
10433       esac
10434     fi
10435   fi
10436
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10438 $as_echo "$ld_shlibs" >&6; }
10439 test "$ld_shlibs" = no && can_build_shared=no
10440
10441 with_gnu_ld=$with_gnu_ld
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457 #
10458 # Do we need to explicitly link libc?
10459 #
10460 case "x$archive_cmds_need_lc" in
10461 x|xyes)
10462   # Assume -lc should be added
10463   archive_cmds_need_lc=yes
10464
10465   if test "$enable_shared" = yes && test "$GCC" = yes; then
10466     case $archive_cmds in
10467     *'~'*)
10468       # FIXME: we may have to deal with multi-command sequences.
10469       ;;
10470     '$CC '*)
10471       # Test whether the compiler implicitly links with -lc since on some
10472       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10473       # to ld, don't add -lc before -lgcc.
10474       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10475 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10476 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10477   $as_echo_n "(cached) " >&6
10478 else
10479   $RM conftest*
10480         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10481
10482         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10483   (eval $ac_compile) 2>&5
10484   ac_status=$?
10485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10486   test $ac_status = 0; } 2>conftest.err; then
10487           soname=conftest
10488           lib=conftest
10489           libobjs=conftest.$ac_objext
10490           deplibs=
10491           wl=$lt_prog_compiler_wl
10492           pic_flag=$lt_prog_compiler_pic
10493           compiler_flags=-v
10494           linker_flags=-v
10495           verstring=
10496           output_objdir=.
10497           libname=conftest
10498           lt_save_allow_undefined_flag=$allow_undefined_flag
10499           allow_undefined_flag=
10500           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10501   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10502   ac_status=$?
10503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10504   test $ac_status = 0; }
10505           then
10506             lt_cv_archive_cmds_need_lc=no
10507           else
10508             lt_cv_archive_cmds_need_lc=yes
10509           fi
10510           allow_undefined_flag=$lt_save_allow_undefined_flag
10511         else
10512           cat conftest.err 1>&5
10513         fi
10514         $RM conftest*
10515
10516 fi
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10518 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10519       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10520       ;;
10521     esac
10522   fi
10523   ;;
10524 esac
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10679
10680 if test "$GCC" = yes; then
10681   case $host_os in
10682     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10683     *) lt_awk_arg="/^libraries:/" ;;
10684   esac
10685   case $host_os in
10686     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10687     *) lt_sed_strip_eq="s,=/,/,g" ;;
10688   esac
10689   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10690   case $lt_search_path_spec in
10691   *\;*)
10692     # if the path contains ";" then we assume it to be the separator
10693     # otherwise default to the standard path separator (i.e. ":") - it is
10694     # assumed that no part of a normal pathname contains ";" but that should
10695     # okay in the real world where ";" in dirpaths is itself problematic.
10696     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10697     ;;
10698   *)
10699     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10700     ;;
10701   esac
10702   # Ok, now we have the path, separated by spaces, we can step through it
10703   # and add multilib dir if necessary.
10704   lt_tmp_lt_search_path_spec=
10705   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10706   for lt_sys_path in $lt_search_path_spec; do
10707     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10708       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10709     else
10710       test -d "$lt_sys_path" && \
10711         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10712     fi
10713   done
10714   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10715 BEGIN {RS=" "; FS="/|\n";} {
10716   lt_foo="";
10717   lt_count=0;
10718   for (lt_i = NF; lt_i > 0; lt_i--) {
10719     if ($lt_i != "" && $lt_i != ".") {
10720       if ($lt_i == "..") {
10721         lt_count++;
10722       } else {
10723         if (lt_count == 0) {
10724           lt_foo="/" $lt_i lt_foo;
10725         } else {
10726           lt_count--;
10727         }
10728       }
10729     }
10730   }
10731   if (lt_foo != "") { lt_freq[lt_foo]++; }
10732   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10733 }'`
10734   # AWK program above erroneously prepends '/' to C:/dos/paths
10735   # for these hosts.
10736   case $host_os in
10737     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10738       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10739   esac
10740   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10741 else
10742   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10743 fi
10744 library_names_spec=
10745 libname_spec='lib$name'
10746 soname_spec=
10747 shrext_cmds=".so"
10748 postinstall_cmds=
10749 postuninstall_cmds=
10750 finish_cmds=
10751 finish_eval=
10752 shlibpath_var=
10753 shlibpath_overrides_runpath=unknown
10754 version_type=none
10755 dynamic_linker="$host_os ld.so"
10756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10757 need_lib_prefix=unknown
10758 hardcode_into_libs=no
10759
10760 # when you set need_version to no, make sure it does not cause -set_version
10761 # flags to be left without arguments
10762 need_version=unknown
10763
10764 case $host_os in
10765 aix3*)
10766   version_type=linux # correct to gnu/linux during the next big refactor
10767   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10768   shlibpath_var=LIBPATH
10769
10770   # AIX 3 has no versioning support, so we append a major version to the name.
10771   soname_spec='${libname}${release}${shared_ext}$major'
10772   ;;
10773
10774 aix[4-9]*)
10775   version_type=linux # correct to gnu/linux during the next big refactor
10776   need_lib_prefix=no
10777   need_version=no
10778   hardcode_into_libs=yes
10779   if test "$host_cpu" = ia64; then
10780     # AIX 5 supports IA64
10781     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10782     shlibpath_var=LD_LIBRARY_PATH
10783   else
10784     # With GCC up to 2.95.x, collect2 would create an import file
10785     # for dependence libraries.  The import file would start with
10786     # the line `#! .'.  This would cause the generated library to
10787     # depend on `.', always an invalid library.  This was fixed in
10788     # development snapshots of GCC prior to 3.0.
10789     case $host_os in
10790       aix4 | aix4.[01] | aix4.[01].*)
10791       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10792            echo ' yes '
10793            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10794         :
10795       else
10796         can_build_shared=no
10797       fi
10798       ;;
10799     esac
10800     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10801     # soname into executable. Probably we can add versioning support to
10802     # collect2, so additional links can be useful in future.
10803     if test "$aix_use_runtimelinking" = yes; then
10804       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10805       # instead of lib<name>.a to let people know that these are not
10806       # typical AIX shared libraries.
10807       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808     else
10809       # We preserve .a as extension for shared libraries through AIX4.2
10810       # and later when we are not doing run time linking.
10811       library_names_spec='${libname}${release}.a $libname.a'
10812       soname_spec='${libname}${release}${shared_ext}$major'
10813     fi
10814     shlibpath_var=LIBPATH
10815   fi
10816   ;;
10817
10818 amigaos*)
10819   case $host_cpu in
10820   powerpc)
10821     # Since July 2007 AmigaOS4 officially supports .so libraries.
10822     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824     ;;
10825   m68k)
10826     library_names_spec='$libname.ixlibrary $libname.a'
10827     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10828     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10829     ;;
10830   esac
10831   ;;
10832
10833 beos*)
10834   library_names_spec='${libname}${shared_ext}'
10835   dynamic_linker="$host_os ld.so"
10836   shlibpath_var=LIBRARY_PATH
10837   ;;
10838
10839 bsdi[45]*)
10840   version_type=linux # correct to gnu/linux during the next big refactor
10841   need_version=no
10842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843   soname_spec='${libname}${release}${shared_ext}$major'
10844   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10845   shlibpath_var=LD_LIBRARY_PATH
10846   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10847   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10848   # the default ld.so.conf also contains /usr/contrib/lib and
10849   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10850   # libtool to hard-code these into programs
10851   ;;
10852
10853 cygwin* | mingw* | pw32* | cegcc*)
10854   version_type=windows
10855   shrext_cmds=".dll"
10856   need_version=no
10857   need_lib_prefix=no
10858
10859   case $GCC,$cc_basename in
10860   yes,*)
10861     # gcc
10862     library_names_spec='$libname.dll.a'
10863     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10864     postinstall_cmds='base_file=`basename \${file}`~
10865       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10866       dldir=$destdir/`dirname \$dlpath`~
10867       test -d \$dldir || mkdir -p \$dldir~
10868       $install_prog $dir/$dlname \$dldir/$dlname~
10869       chmod a+x \$dldir/$dlname~
10870       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10871         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10872       fi'
10873     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10874       dlpath=$dir/\$dldll~
10875        $RM \$dlpath'
10876     shlibpath_overrides_runpath=yes
10877
10878     case $host_os in
10879     cygwin*)
10880       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10881       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10882
10883       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10884       ;;
10885     mingw* | cegcc*)
10886       # MinGW DLLs use traditional 'lib' prefix
10887       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10888       ;;
10889     pw32*)
10890       # pw32 DLLs use 'pw' prefix rather than 'lib'
10891       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10892       ;;
10893     esac
10894     dynamic_linker='Win32 ld.exe'
10895     ;;
10896
10897   *,cl*)
10898     # Native MSVC
10899     libname_spec='$name'
10900     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10901     library_names_spec='${libname}.dll.lib'
10902
10903     case $build_os in
10904     mingw*)
10905       sys_lib_search_path_spec=
10906       lt_save_ifs=$IFS
10907       IFS=';'
10908       for lt_path in $LIB
10909       do
10910         IFS=$lt_save_ifs
10911         # Let DOS variable expansion print the short 8.3 style file name.
10912         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10913         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10914       done
10915       IFS=$lt_save_ifs
10916       # Convert to MSYS style.
10917       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10918       ;;
10919     cygwin*)
10920       # Convert to unix form, then to dos form, then back to unix form
10921       # but this time dos style (no spaces!) so that the unix form looks
10922       # like /cygdrive/c/PROGRA~1:/cygdr...
10923       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10924       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10925       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10926       ;;
10927     *)
10928       sys_lib_search_path_spec="$LIB"
10929       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10930         # It is most probably a Windows format PATH.
10931         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10932       else
10933         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10934       fi
10935       # FIXME: find the short name or the path components, as spaces are
10936       # common. (e.g. "Program Files" -> "PROGRA~1")
10937       ;;
10938     esac
10939
10940     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10941     postinstall_cmds='base_file=`basename \${file}`~
10942       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10943       dldir=$destdir/`dirname \$dlpath`~
10944       test -d \$dldir || mkdir -p \$dldir~
10945       $install_prog $dir/$dlname \$dldir/$dlname'
10946     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10947       dlpath=$dir/\$dldll~
10948        $RM \$dlpath'
10949     shlibpath_overrides_runpath=yes
10950     dynamic_linker='Win32 link.exe'
10951     ;;
10952
10953   *)
10954     # Assume MSVC wrapper
10955     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10956     dynamic_linker='Win32 ld.exe'
10957     ;;
10958   esac
10959   # FIXME: first we should search . and the directory the executable is in
10960   shlibpath_var=PATH
10961   ;;
10962
10963 darwin* | rhapsody*)
10964   dynamic_linker="$host_os dyld"
10965   version_type=darwin
10966   need_lib_prefix=no
10967   need_version=no
10968   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10969   soname_spec='${libname}${release}${major}$shared_ext'
10970   shlibpath_overrides_runpath=yes
10971   shlibpath_var=DYLD_LIBRARY_PATH
10972   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10973
10974   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10975   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10976   ;;
10977
10978 dgux*)
10979   version_type=linux # correct to gnu/linux during the next big refactor
10980   need_lib_prefix=no
10981   need_version=no
10982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10983   soname_spec='${libname}${release}${shared_ext}$major'
10984   shlibpath_var=LD_LIBRARY_PATH
10985   ;;
10986
10987 freebsd* | dragonfly*)
10988   # DragonFly does not have aout.  When/if they implement a new
10989   # versioning mechanism, adjust this.
10990   if test -x /usr/bin/objformat; then
10991     objformat=`/usr/bin/objformat`
10992   else
10993     case $host_os in
10994     freebsd[23].*) objformat=aout ;;
10995     *) objformat=elf ;;
10996     esac
10997   fi
10998   version_type=freebsd-$objformat
10999   case $version_type in
11000     freebsd-elf*)
11001       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11002       need_version=no
11003       need_lib_prefix=no
11004       ;;
11005     freebsd-*)
11006       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11007       need_version=yes
11008       ;;
11009   esac
11010   shlibpath_var=LD_LIBRARY_PATH
11011   case $host_os in
11012   freebsd2.*)
11013     shlibpath_overrides_runpath=yes
11014     ;;
11015   freebsd3.[01]* | freebsdelf3.[01]*)
11016     shlibpath_overrides_runpath=yes
11017     hardcode_into_libs=yes
11018     ;;
11019   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11020   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11021     shlibpath_overrides_runpath=no
11022     hardcode_into_libs=yes
11023     ;;
11024   *) # from 4.6 on, and DragonFly
11025     shlibpath_overrides_runpath=yes
11026     hardcode_into_libs=yes
11027     ;;
11028   esac
11029   ;;
11030
11031 gnu*)
11032   version_type=linux # correct to gnu/linux during the next big refactor
11033   need_lib_prefix=no
11034   need_version=no
11035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11036   soname_spec='${libname}${release}${shared_ext}$major'
11037   shlibpath_var=LD_LIBRARY_PATH
11038   shlibpath_overrides_runpath=no
11039   hardcode_into_libs=yes
11040   ;;
11041
11042 haiku*)
11043   version_type=linux # correct to gnu/linux during the next big refactor
11044   need_lib_prefix=no
11045   need_version=no
11046   dynamic_linker="$host_os runtime_loader"
11047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11048   soname_spec='${libname}${release}${shared_ext}$major'
11049   shlibpath_var=LIBRARY_PATH
11050   shlibpath_overrides_runpath=yes
11051   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11052   hardcode_into_libs=yes
11053   ;;
11054
11055 hpux9* | hpux10* | hpux11*)
11056   # Give a soname corresponding to the major version so that dld.sl refuses to
11057   # link against other versions.
11058   version_type=sunos
11059   need_lib_prefix=no
11060   need_version=no
11061   case $host_cpu in
11062   ia64*)
11063     shrext_cmds='.so'
11064     hardcode_into_libs=yes
11065     dynamic_linker="$host_os dld.so"
11066     shlibpath_var=LD_LIBRARY_PATH
11067     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069     soname_spec='${libname}${release}${shared_ext}$major'
11070     if test "X$HPUX_IA64_MODE" = X32; then
11071       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11072     else
11073       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11074     fi
11075     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11076     ;;
11077   hppa*64*)
11078     shrext_cmds='.sl'
11079     hardcode_into_libs=yes
11080     dynamic_linker="$host_os dld.sl"
11081     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11082     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084     soname_spec='${libname}${release}${shared_ext}$major'
11085     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11086     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11087     ;;
11088   *)
11089     shrext_cmds='.sl'
11090     dynamic_linker="$host_os dld.sl"
11091     shlibpath_var=SHLIB_PATH
11092     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094     soname_spec='${libname}${release}${shared_ext}$major'
11095     ;;
11096   esac
11097   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11098   postinstall_cmds='chmod 555 $lib'
11099   # or fails outright, so override atomically:
11100   install_override_mode=555
11101   ;;
11102
11103 interix[3-9]*)
11104   version_type=linux # correct to gnu/linux during the next big refactor
11105   need_lib_prefix=no
11106   need_version=no
11107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11108   soname_spec='${libname}${release}${shared_ext}$major'
11109   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11110   shlibpath_var=LD_LIBRARY_PATH
11111   shlibpath_overrides_runpath=no
11112   hardcode_into_libs=yes
11113   ;;
11114
11115 irix5* | irix6* | nonstopux*)
11116   case $host_os in
11117     nonstopux*) version_type=nonstopux ;;
11118     *)
11119         if test "$lt_cv_prog_gnu_ld" = yes; then
11120                 version_type=linux # correct to gnu/linux during the next big refactor
11121         else
11122                 version_type=irix
11123         fi ;;
11124   esac
11125   need_lib_prefix=no
11126   need_version=no
11127   soname_spec='${libname}${release}${shared_ext}$major'
11128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11129   case $host_os in
11130   irix5* | nonstopux*)
11131     libsuff= shlibsuff=
11132     ;;
11133   *)
11134     case $LD in # libtool.m4 will add one of these switches to LD
11135     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11136       libsuff= shlibsuff= libmagic=32-bit;;
11137     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11138       libsuff=32 shlibsuff=N32 libmagic=N32;;
11139     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11140       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11141     *) libsuff= shlibsuff= libmagic=never-match;;
11142     esac
11143     ;;
11144   esac
11145   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11146   shlibpath_overrides_runpath=no
11147   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11148   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11149   hardcode_into_libs=yes
11150   ;;
11151
11152 # No shared lib support for Linux oldld, aout, or coff.
11153 linux*oldld* | linux*aout* | linux*coff*)
11154   dynamic_linker=no
11155   ;;
11156
11157 # This must be glibc/ELF.
11158 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11159   version_type=linux # correct to gnu/linux during the next big refactor
11160   need_lib_prefix=no
11161   need_version=no
11162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163   soname_spec='${libname}${release}${shared_ext}$major'
11164   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   shlibpath_overrides_runpath=no
11167
11168   # Some binutils ld are patched to set DT_RUNPATH
11169   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11170   $as_echo_n "(cached) " >&6
11171 else
11172   lt_cv_shlibpath_overrides_runpath=no
11173     save_LDFLAGS=$LDFLAGS
11174     save_libdir=$libdir
11175     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11176          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h.  */
11179
11180 #ifdef F77_DUMMY_MAIN
11181
11182 #  ifdef __cplusplus
11183      extern "C"
11184 #  endif
11185    int F77_DUMMY_MAIN() { return 1; }
11186
11187 #endif
11188 int
11189 main ()
11190 {
11191
11192   ;
11193   return 0;
11194 }
11195 _ACEOF
11196 if ac_fn_c_try_link "$LINENO"; then :
11197   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11198   lt_cv_shlibpath_overrides_runpath=yes
11199 fi
11200 fi
11201 rm -f core conftest.err conftest.$ac_objext \
11202     conftest$ac_exeext conftest.$ac_ext
11203     LDFLAGS=$save_LDFLAGS
11204     libdir=$save_libdir
11205
11206 fi
11207
11208   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11209
11210   # This implies no fast_install, which is unacceptable.
11211   # Some rework will be needed to allow for fast_install
11212   # before this can be enabled.
11213   hardcode_into_libs=yes
11214
11215   # Append ld.so.conf contents to the search path
11216   if test -f /etc/ld.so.conf; then
11217     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;s/"//g;/^$/d' | tr '\n' ' '`
11218     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11219   fi
11220
11221   # We used to test for /lib/ld.so.1 and disable shared libraries on
11222   # powerpc, because MkLinux only supported shared libraries with the
11223   # GNU dynamic linker.  Since this was broken with cross compilers,
11224   # most powerpc-linux boxes support dynamic linking these days and
11225   # people can always --disable-shared, the test was removed, and we
11226   # assume the GNU/Linux dynamic linker is in use.
11227   dynamic_linker='GNU/Linux ld.so'
11228   ;;
11229
11230 netbsd*)
11231   version_type=sunos
11232   need_lib_prefix=no
11233   need_version=no
11234   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11236     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11237     dynamic_linker='NetBSD (a.out) ld.so'
11238   else
11239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11240     soname_spec='${libname}${release}${shared_ext}$major'
11241     dynamic_linker='NetBSD ld.elf_so'
11242   fi
11243   shlibpath_var=LD_LIBRARY_PATH
11244   shlibpath_overrides_runpath=yes
11245   hardcode_into_libs=yes
11246   ;;
11247
11248 newsos6)
11249   version_type=linux # correct to gnu/linux during the next big refactor
11250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251   shlibpath_var=LD_LIBRARY_PATH
11252   shlibpath_overrides_runpath=yes
11253   ;;
11254
11255 *nto* | *qnx*)
11256   version_type=qnx
11257   need_lib_prefix=no
11258   need_version=no
11259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260   soname_spec='${libname}${release}${shared_ext}$major'
11261   shlibpath_var=LD_LIBRARY_PATH
11262   shlibpath_overrides_runpath=no
11263   hardcode_into_libs=yes
11264   dynamic_linker='ldqnx.so'
11265   ;;
11266
11267 openbsd*)
11268   version_type=sunos
11269   sys_lib_dlsearch_path_spec="/usr/lib"
11270   need_lib_prefix=no
11271   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11272   case $host_os in
11273     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11274     *)                          need_version=no  ;;
11275   esac
11276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11277   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11278   shlibpath_var=LD_LIBRARY_PATH
11279   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11280     case $host_os in
11281       openbsd2.[89] | openbsd2.[89].*)
11282         shlibpath_overrides_runpath=no
11283         ;;
11284       *)
11285         shlibpath_overrides_runpath=yes
11286         ;;
11287       esac
11288   else
11289     shlibpath_overrides_runpath=yes
11290   fi
11291   ;;
11292
11293 os2*)
11294   libname_spec='$name'
11295   shrext_cmds=".dll"
11296   need_lib_prefix=no
11297   library_names_spec='$libname${shared_ext} $libname.a'
11298   dynamic_linker='OS/2 ld.exe'
11299   shlibpath_var=LIBPATH
11300   ;;
11301
11302 osf3* | osf4* | osf5*)
11303   version_type=osf
11304   need_lib_prefix=no
11305   need_version=no
11306   soname_spec='${libname}${release}${shared_ext}$major'
11307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308   shlibpath_var=LD_LIBRARY_PATH
11309   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11310   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11311   ;;
11312
11313 rdos*)
11314   dynamic_linker=no
11315   ;;
11316
11317 solaris*)
11318   version_type=linux # correct to gnu/linux during the next big refactor
11319   need_lib_prefix=no
11320   need_version=no
11321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322   soname_spec='${libname}${release}${shared_ext}$major'
11323   shlibpath_var=LD_LIBRARY_PATH
11324   shlibpath_overrides_runpath=yes
11325   hardcode_into_libs=yes
11326   # ldd complains unless libraries are executable
11327   postinstall_cmds='chmod +x $lib'
11328   ;;
11329
11330 sunos4*)
11331   version_type=sunos
11332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11333   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11334   shlibpath_var=LD_LIBRARY_PATH
11335   shlibpath_overrides_runpath=yes
11336   if test "$with_gnu_ld" = yes; then
11337     need_lib_prefix=no
11338   fi
11339   need_version=yes
11340   ;;
11341
11342 sysv4 | sysv4.3*)
11343   version_type=linux # correct to gnu/linux during the next big refactor
11344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345   soname_spec='${libname}${release}${shared_ext}$major'
11346   shlibpath_var=LD_LIBRARY_PATH
11347   case $host_vendor in
11348     sni)
11349       shlibpath_overrides_runpath=no
11350       need_lib_prefix=no
11351       runpath_var=LD_RUN_PATH
11352       ;;
11353     siemens)
11354       need_lib_prefix=no
11355       ;;
11356     motorola)
11357       need_lib_prefix=no
11358       need_version=no
11359       shlibpath_overrides_runpath=no
11360       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11361       ;;
11362   esac
11363   ;;
11364
11365 sysv4*MP*)
11366   if test -d /usr/nec ;then
11367     version_type=linux # correct to gnu/linux during the next big refactor
11368     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11369     soname_spec='$libname${shared_ext}.$major'
11370     shlibpath_var=LD_LIBRARY_PATH
11371   fi
11372   ;;
11373
11374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11375   version_type=freebsd-elf
11376   need_lib_prefix=no
11377   need_version=no
11378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11379   soname_spec='${libname}${release}${shared_ext}$major'
11380   shlibpath_var=LD_LIBRARY_PATH
11381   shlibpath_overrides_runpath=yes
11382   hardcode_into_libs=yes
11383   if test "$with_gnu_ld" = yes; then
11384     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11385   else
11386     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11387     case $host_os in
11388       sco3.2v5*)
11389         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11390         ;;
11391     esac
11392   fi
11393   sys_lib_dlsearch_path_spec='/usr/lib'
11394   ;;
11395
11396 tpf*)
11397   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11398   version_type=linux # correct to gnu/linux during the next big refactor
11399   need_lib_prefix=no
11400   need_version=no
11401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402   shlibpath_var=LD_LIBRARY_PATH
11403   shlibpath_overrides_runpath=no
11404   hardcode_into_libs=yes
11405   ;;
11406
11407 uts4*)
11408   version_type=linux # correct to gnu/linux during the next big refactor
11409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410   soname_spec='${libname}${release}${shared_ext}$major'
11411   shlibpath_var=LD_LIBRARY_PATH
11412   ;;
11413
11414 *)
11415   dynamic_linker=no
11416   ;;
11417 esac
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11419 $as_echo "$dynamic_linker" >&6; }
11420 test "$dynamic_linker" = no && can_build_shared=no
11421
11422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11423 if test "$GCC" = yes; then
11424   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11425 fi
11426
11427 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11428   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11429 fi
11430 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11431   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11432 fi
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11526 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11527 hardcode_action=
11528 if test -n "$hardcode_libdir_flag_spec" ||
11529    test -n "$runpath_var" ||
11530    test "X$hardcode_automatic" = "Xyes" ; then
11531
11532   # We can hardcode non-existent directories.
11533   if test "$hardcode_direct" != no &&
11534      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11535      # have to relink, otherwise we might link with an installed library
11536      # when we should be linking with a yet-to-be-installed one
11537      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11538      test "$hardcode_minus_L" != no; then
11539     # Linking always hardcodes the temporary library directory.
11540     hardcode_action=relink
11541   else
11542     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11543     hardcode_action=immediate
11544   fi
11545 else
11546   # We cannot hardcode anything, or else we can only hardcode existing
11547   # directories.
11548   hardcode_action=unsupported
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11551 $as_echo "$hardcode_action" >&6; }
11552
11553 if test "$hardcode_action" = relink ||
11554    test "$inherit_rpath" = yes; then
11555   # Fast installation is not supported
11556   enable_fast_install=no
11557 elif test "$shlibpath_overrides_runpath" = yes ||
11558      test "$enable_shared" = no; then
11559   # Fast installation is not necessary
11560   enable_fast_install=needless
11561 fi
11562
11563
11564
11565
11566
11567
11568   if test "x$enable_dlopen" != xyes; then
11569   enable_dlopen=unknown
11570   enable_dlopen_self=unknown
11571   enable_dlopen_self_static=unknown
11572 else
11573   lt_cv_dlopen=no
11574   lt_cv_dlopen_libs=
11575
11576   case $host_os in
11577   beos*)
11578     lt_cv_dlopen="load_add_on"
11579     lt_cv_dlopen_libs=
11580     lt_cv_dlopen_self=yes
11581     ;;
11582
11583   mingw* | pw32* | cegcc*)
11584     lt_cv_dlopen="LoadLibrary"
11585     lt_cv_dlopen_libs=
11586     ;;
11587
11588   cygwin*)
11589     lt_cv_dlopen="dlopen"
11590     lt_cv_dlopen_libs=
11591     ;;
11592
11593   darwin*)
11594   # if libdl is installed we need to link against it
11595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11597 if ${ac_cv_lib_dl_dlopen+:} false; then :
11598   $as_echo_n "(cached) " >&6
11599 else
11600   ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-ldl  $LIBS"
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h.  */
11604
11605 /* Override any GCC internal prototype to avoid an error.
11606    Use char because int might match the return type of a GCC
11607    builtin and then its argument prototype would still apply.  */
11608 #ifdef __cplusplus
11609 extern "C"
11610 #endif
11611 char dlopen ();
11612 #ifdef F77_DUMMY_MAIN
11613
11614 #  ifdef __cplusplus
11615      extern "C"
11616 #  endif
11617    int F77_DUMMY_MAIN() { return 1; }
11618
11619 #endif
11620 int
11621 main ()
11622 {
11623 return dlopen ();
11624   ;
11625   return 0;
11626 }
11627 _ACEOF
11628 if ac_fn_c_try_link "$LINENO"; then :
11629   ac_cv_lib_dl_dlopen=yes
11630 else
11631   ac_cv_lib_dl_dlopen=no
11632 fi
11633 rm -f core conftest.err conftest.$ac_objext \
11634     conftest$ac_exeext conftest.$ac_ext
11635 LIBS=$ac_check_lib_save_LIBS
11636 fi
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11638 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11639 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11640   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11641 else
11642
11643     lt_cv_dlopen="dyld"
11644     lt_cv_dlopen_libs=
11645     lt_cv_dlopen_self=yes
11646
11647 fi
11648
11649     ;;
11650
11651   *)
11652     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11653 if test "x$ac_cv_func_shl_load" = xyes; then :
11654   lt_cv_dlopen="shl_load"
11655 else
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11657 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11658 if ${ac_cv_lib_dld_shl_load+:} false; then :
11659   $as_echo_n "(cached) " >&6
11660 else
11661   ac_check_lib_save_LIBS=$LIBS
11662 LIBS="-ldld  $LIBS"
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h.  */
11665
11666 /* Override any GCC internal prototype to avoid an error.
11667    Use char because int might match the return type of a GCC
11668    builtin and then its argument prototype would still apply.  */
11669 #ifdef __cplusplus
11670 extern "C"
11671 #endif
11672 char shl_load ();
11673 #ifdef F77_DUMMY_MAIN
11674
11675 #  ifdef __cplusplus
11676      extern "C"
11677 #  endif
11678    int F77_DUMMY_MAIN() { return 1; }
11679
11680 #endif
11681 int
11682 main ()
11683 {
11684 return shl_load ();
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 if ac_fn_c_try_link "$LINENO"; then :
11690   ac_cv_lib_dld_shl_load=yes
11691 else
11692   ac_cv_lib_dld_shl_load=no
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext \
11695     conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11699 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11700 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11701   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11702 else
11703   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11704 if test "x$ac_cv_func_dlopen" = xyes; then :
11705   lt_cv_dlopen="dlopen"
11706 else
11707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11708 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11709 if ${ac_cv_lib_dl_dlopen+:} false; then :
11710   $as_echo_n "(cached) " >&6
11711 else
11712   ac_check_lib_save_LIBS=$LIBS
11713 LIBS="-ldl  $LIBS"
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h.  */
11716
11717 /* Override any GCC internal prototype to avoid an error.
11718    Use char because int might match the return type of a GCC
11719    builtin and then its argument prototype would still apply.  */
11720 #ifdef __cplusplus
11721 extern "C"
11722 #endif
11723 char dlopen ();
11724 #ifdef F77_DUMMY_MAIN
11725
11726 #  ifdef __cplusplus
11727      extern "C"
11728 #  endif
11729    int F77_DUMMY_MAIN() { return 1; }
11730
11731 #endif
11732 int
11733 main ()
11734 {
11735 return dlopen ();
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_c_try_link "$LINENO"; then :
11741   ac_cv_lib_dl_dlopen=yes
11742 else
11743   ac_cv_lib_dl_dlopen=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext \
11746     conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11750 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11751 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11752   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11753 else
11754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11755 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11756 if ${ac_cv_lib_svld_dlopen+:} false; then :
11757   $as_echo_n "(cached) " >&6
11758 else
11759   ac_check_lib_save_LIBS=$LIBS
11760 LIBS="-lsvld  $LIBS"
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h.  */
11763
11764 /* Override any GCC internal prototype to avoid an error.
11765    Use char because int might match the return type of a GCC
11766    builtin and then its argument prototype would still apply.  */
11767 #ifdef __cplusplus
11768 extern "C"
11769 #endif
11770 char dlopen ();
11771 #ifdef F77_DUMMY_MAIN
11772
11773 #  ifdef __cplusplus
11774      extern "C"
11775 #  endif
11776    int F77_DUMMY_MAIN() { return 1; }
11777
11778 #endif
11779 int
11780 main ()
11781 {
11782 return dlopen ();
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 if ac_fn_c_try_link "$LINENO"; then :
11788   ac_cv_lib_svld_dlopen=yes
11789 else
11790   ac_cv_lib_svld_dlopen=no
11791 fi
11792 rm -f core conftest.err conftest.$ac_objext \
11793     conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_lib_save_LIBS
11795 fi
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11797 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11798 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11799   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11800 else
11801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11802 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11803 if ${ac_cv_lib_dld_dld_link+:} false; then :
11804   $as_echo_n "(cached) " >&6
11805 else
11806   ac_check_lib_save_LIBS=$LIBS
11807 LIBS="-ldld  $LIBS"
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h.  */
11810
11811 /* Override any GCC internal prototype to avoid an error.
11812    Use char because int might match the return type of a GCC
11813    builtin and then its argument prototype would still apply.  */
11814 #ifdef __cplusplus
11815 extern "C"
11816 #endif
11817 char dld_link ();
11818 #ifdef F77_DUMMY_MAIN
11819
11820 #  ifdef __cplusplus
11821      extern "C"
11822 #  endif
11823    int F77_DUMMY_MAIN() { return 1; }
11824
11825 #endif
11826 int
11827 main ()
11828 {
11829 return dld_link ();
11830   ;
11831   return 0;
11832 }
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"; then :
11835   ac_cv_lib_dld_dld_link=yes
11836 else
11837   ac_cv_lib_dld_dld_link=no
11838 fi
11839 rm -f core conftest.err conftest.$ac_objext \
11840     conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11844 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11845 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11846   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11847 fi
11848
11849
11850 fi
11851
11852
11853 fi
11854
11855
11856 fi
11857
11858
11859 fi
11860
11861
11862 fi
11863
11864     ;;
11865   esac
11866
11867   if test "x$lt_cv_dlopen" != xno; then
11868     enable_dlopen=yes
11869   else
11870     enable_dlopen=no
11871   fi
11872
11873   case $lt_cv_dlopen in
11874   dlopen)
11875     save_CPPFLAGS="$CPPFLAGS"
11876     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11877
11878     save_LDFLAGS="$LDFLAGS"
11879     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11880
11881     save_LIBS="$LIBS"
11882     LIBS="$lt_cv_dlopen_libs $LIBS"
11883
11884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11885 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11886 if ${lt_cv_dlopen_self+:} false; then :
11887   $as_echo_n "(cached) " >&6
11888 else
11889           if test "$cross_compiling" = yes; then :
11890   lt_cv_dlopen_self=cross
11891 else
11892   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11893   lt_status=$lt_dlunknown
11894   cat > conftest.$ac_ext <<_LT_EOF
11895 #line $LINENO "configure"
11896 #include "confdefs.h"
11897
11898 #if HAVE_DLFCN_H
11899 #include <dlfcn.h>
11900 #endif
11901
11902 #include <stdio.h>
11903
11904 #ifdef RTLD_GLOBAL
11905 #  define LT_DLGLOBAL           RTLD_GLOBAL
11906 #else
11907 #  ifdef DL_GLOBAL
11908 #    define LT_DLGLOBAL         DL_GLOBAL
11909 #  else
11910 #    define LT_DLGLOBAL         0
11911 #  endif
11912 #endif
11913
11914 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11915    find out it does not work in some platform. */
11916 #ifndef LT_DLLAZY_OR_NOW
11917 #  ifdef RTLD_LAZY
11918 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11919 #  else
11920 #    ifdef DL_LAZY
11921 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11922 #    else
11923 #      ifdef RTLD_NOW
11924 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11925 #      else
11926 #        ifdef DL_NOW
11927 #          define LT_DLLAZY_OR_NOW      DL_NOW
11928 #        else
11929 #          define LT_DLLAZY_OR_NOW      0
11930 #        endif
11931 #      endif
11932 #    endif
11933 #  endif
11934 #endif
11935
11936 /* When -fvisbility=hidden is used, assume the code has been annotated
11937    correspondingly for the symbols needed.  */
11938 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11939 int fnord () __attribute__((visibility("default")));
11940 #endif
11941
11942 int fnord () { return 42; }
11943 int main ()
11944 {
11945   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11946   int status = $lt_dlunknown;
11947
11948   if (self)
11949     {
11950       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11951       else
11952         {
11953           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11954           else puts (dlerror ());
11955         }
11956       /* dlclose (self); */
11957     }
11958   else
11959     puts (dlerror ());
11960
11961   return status;
11962 }
11963 _LT_EOF
11964   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11965   (eval $ac_link) 2>&5
11966   ac_status=$?
11967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11968   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11969     (./conftest; exit; ) >&5 2>/dev/null
11970     lt_status=$?
11971     case x$lt_status in
11972       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11973       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11974       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11975     esac
11976   else :
11977     # compilation failed
11978     lt_cv_dlopen_self=no
11979   fi
11980 fi
11981 rm -fr conftest*
11982
11983
11984 fi
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11986 $as_echo "$lt_cv_dlopen_self" >&6; }
11987
11988     if test "x$lt_cv_dlopen_self" = xyes; then
11989       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11990       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11991 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11992 if ${lt_cv_dlopen_self_static+:} false; then :
11993   $as_echo_n "(cached) " >&6
11994 else
11995           if test "$cross_compiling" = yes; then :
11996   lt_cv_dlopen_self_static=cross
11997 else
11998   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11999   lt_status=$lt_dlunknown
12000   cat > conftest.$ac_ext <<_LT_EOF
12001 #line $LINENO "configure"
12002 #include "confdefs.h"
12003
12004 #if HAVE_DLFCN_H
12005 #include <dlfcn.h>
12006 #endif
12007
12008 #include <stdio.h>
12009
12010 #ifdef RTLD_GLOBAL
12011 #  define LT_DLGLOBAL           RTLD_GLOBAL
12012 #else
12013 #  ifdef DL_GLOBAL
12014 #    define LT_DLGLOBAL         DL_GLOBAL
12015 #  else
12016 #    define LT_DLGLOBAL         0
12017 #  endif
12018 #endif
12019
12020 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12021    find out it does not work in some platform. */
12022 #ifndef LT_DLLAZY_OR_NOW
12023 #  ifdef RTLD_LAZY
12024 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12025 #  else
12026 #    ifdef DL_LAZY
12027 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12028 #    else
12029 #      ifdef RTLD_NOW
12030 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12031 #      else
12032 #        ifdef DL_NOW
12033 #          define LT_DLLAZY_OR_NOW      DL_NOW
12034 #        else
12035 #          define LT_DLLAZY_OR_NOW      0
12036 #        endif
12037 #      endif
12038 #    endif
12039 #  endif
12040 #endif
12041
12042 /* When -fvisbility=hidden is used, assume the code has been annotated
12043    correspondingly for the symbols needed.  */
12044 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12045 int fnord () __attribute__((visibility("default")));
12046 #endif
12047
12048 int fnord () { return 42; }
12049 int main ()
12050 {
12051   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12052   int status = $lt_dlunknown;
12053
12054   if (self)
12055     {
12056       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12057       else
12058         {
12059           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12060           else puts (dlerror ());
12061         }
12062       /* dlclose (self); */
12063     }
12064   else
12065     puts (dlerror ());
12066
12067   return status;
12068 }
12069 _LT_EOF
12070   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12071   (eval $ac_link) 2>&5
12072   ac_status=$?
12073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12074   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12075     (./conftest; exit; ) >&5 2>/dev/null
12076     lt_status=$?
12077     case x$lt_status in
12078       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12079       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12080       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12081     esac
12082   else :
12083     # compilation failed
12084     lt_cv_dlopen_self_static=no
12085   fi
12086 fi
12087 rm -fr conftest*
12088
12089
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12092 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12093     fi
12094
12095     CPPFLAGS="$save_CPPFLAGS"
12096     LDFLAGS="$save_LDFLAGS"
12097     LIBS="$save_LIBS"
12098     ;;
12099   esac
12100
12101   case $lt_cv_dlopen_self in
12102   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12103   *) enable_dlopen_self=unknown ;;
12104   esac
12105
12106   case $lt_cv_dlopen_self_static in
12107   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12108   *) enable_dlopen_self_static=unknown ;;
12109   esac
12110 fi
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128 striplib=
12129 old_striplib=
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12131 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12132 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12133   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12134   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12136 $as_echo "yes" >&6; }
12137 else
12138 # FIXME - insert some real tests, host_os isn't really good enough
12139   case $host_os in
12140   darwin*)
12141     if test -n "$STRIP" ; then
12142       striplib="$STRIP -x"
12143       old_striplib="$STRIP -S"
12144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12145 $as_echo "yes" >&6; }
12146     else
12147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148 $as_echo "no" >&6; }
12149     fi
12150     ;;
12151   *)
12152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154     ;;
12155   esac
12156 fi
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169   # Report which library types will actually be built
12170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12171 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12173 $as_echo "$can_build_shared" >&6; }
12174
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12176 $as_echo_n "checking whether to build shared libraries... " >&6; }
12177   test "$can_build_shared" = "no" && enable_shared=no
12178
12179   # On AIX, shared libraries and static libraries use the same namespace, and
12180   # are all built from PIC.
12181   case $host_os in
12182   aix3*)
12183     test "$enable_shared" = yes && enable_static=no
12184     if test -n "$RANLIB"; then
12185       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12186       postinstall_cmds='$RANLIB $lib'
12187     fi
12188     ;;
12189
12190   aix[4-9]*)
12191     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12192       test "$enable_shared" = yes && enable_static=no
12193     fi
12194     ;;
12195   esac
12196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12197 $as_echo "$enable_shared" >&6; }
12198
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12200 $as_echo_n "checking whether to build static libraries... " >&6; }
12201   # Make sure either enable_shared or enable_static is yes.
12202   test "$enable_shared" = yes || enable_static=yes
12203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12204 $as_echo "$enable_static" >&6; }
12205
12206
12207
12208
12209 fi
12210 ac_ext=c
12211 ac_cpp='$CPP $CPPFLAGS'
12212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12215
12216 CC="$lt_save_CC"
12217
12218
12219
12220       ac_ext=f
12221 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12222 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12223 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12224
12225 if test -z "$F77" || test "X$F77" = "Xno"; then
12226   _lt_disable_F77=yes
12227 fi
12228
12229 archive_cmds_need_lc_F77=no
12230 allow_undefined_flag_F77=
12231 always_export_symbols_F77=no
12232 archive_expsym_cmds_F77=
12233 export_dynamic_flag_spec_F77=
12234 hardcode_direct_F77=no
12235 hardcode_direct_absolute_F77=no
12236 hardcode_libdir_flag_spec_F77=
12237 hardcode_libdir_separator_F77=
12238 hardcode_minus_L_F77=no
12239 hardcode_automatic_F77=no
12240 inherit_rpath_F77=no
12241 module_cmds_F77=
12242 module_expsym_cmds_F77=
12243 link_all_deplibs_F77=unknown
12244 old_archive_cmds_F77=$old_archive_cmds
12245 reload_flag_F77=$reload_flag
12246 reload_cmds_F77=$reload_cmds
12247 no_undefined_flag_F77=
12248 whole_archive_flag_spec_F77=
12249 enable_shared_with_static_runtimes_F77=no
12250
12251 # Source file extension for f77 test sources.
12252 ac_ext=f
12253
12254 # Object file extension for compiled f77 test sources.
12255 objext=o
12256 objext_F77=$objext
12257
12258 # No sense in running all these tests if we already determined that
12259 # the F77 compiler isn't working.  Some variables (like enable_shared)
12260 # are currently assumed to apply to all compilers on this platform,
12261 # and will be corrupted by setting them based on a non-working compiler.
12262 if test "$_lt_disable_F77" != yes; then
12263   # Code to be used in simple compile tests
12264   lt_simple_compile_test_code="\
12265       subroutine t
12266       return
12267       end
12268 "
12269
12270   # Code to be used in simple link tests
12271   lt_simple_link_test_code="\
12272       program t
12273       end
12274 "
12275
12276   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12277
12278
12279
12280
12281
12282
12283 # If no C compiler was specified, use CC.
12284 LTCC=${LTCC-"$CC"}
12285
12286 # If no C compiler flags were specified, use CFLAGS.
12287 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12288
12289 # Allow CC to be a program name with arguments.
12290 compiler=$CC
12291
12292
12293   # save warnings/boilerplate of simple test code
12294   ac_outfile=conftest.$ac_objext
12295 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12296 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12297 _lt_compiler_boilerplate=`cat conftest.err`
12298 $RM conftest*
12299
12300   ac_outfile=conftest.$ac_objext
12301 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12302 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12303 _lt_linker_boilerplate=`cat conftest.err`
12304 $RM -r conftest*
12305
12306
12307   # Allow CC to be a program name with arguments.
12308   lt_save_CC="$CC"
12309   lt_save_GCC=$GCC
12310   lt_save_CFLAGS=$CFLAGS
12311   CC=${F77-"f77"}
12312   CFLAGS=$FFLAGS
12313   compiler=$CC
12314   compiler_F77=$CC
12315   for cc_temp in $compiler""; do
12316   case $cc_temp in
12317     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12318     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12319     \-*) ;;
12320     *) break;;
12321   esac
12322 done
12323 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12324
12325   GCC=$G77
12326   if test -n "$compiler"; then
12327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12328 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12330 $as_echo "$can_build_shared" >&6; }
12331
12332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12333 $as_echo_n "checking whether to build shared libraries... " >&6; }
12334     test "$can_build_shared" = "no" && enable_shared=no
12335
12336     # On AIX, shared libraries and static libraries use the same namespace, and
12337     # are all built from PIC.
12338     case $host_os in
12339       aix3*)
12340         test "$enable_shared" = yes && enable_static=no
12341         if test -n "$RANLIB"; then
12342           archive_cmds="$archive_cmds~\$RANLIB \$lib"
12343           postinstall_cmds='$RANLIB $lib'
12344         fi
12345         ;;
12346       aix[4-9]*)
12347         if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12348           test "$enable_shared" = yes && enable_static=no
12349         fi
12350         ;;
12351     esac
12352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12353 $as_echo "$enable_shared" >&6; }
12354
12355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12356 $as_echo_n "checking whether to build static libraries... " >&6; }
12357     # Make sure either enable_shared or enable_static is yes.
12358     test "$enable_shared" = yes || enable_static=yes
12359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12360 $as_echo "$enable_static" >&6; }
12361
12362     GCC_F77="$G77"
12363     LD_F77="$LD"
12364
12365     ## CAVEAT EMPTOR:
12366     ## There is no encapsulation within the following macros, do not change
12367     ## the running order or otherwise move them around unless you know exactly
12368     ## what you are doing...
12369     lt_prog_compiler_wl_F77=
12370 lt_prog_compiler_pic_F77=
12371 lt_prog_compiler_static_F77=
12372
12373
12374   if test "$GCC" = yes; then
12375     lt_prog_compiler_wl_F77='-Wl,'
12376     lt_prog_compiler_static_F77='-static'
12377
12378     case $host_os in
12379       aix*)
12380       # All AIX code is PIC.
12381       if test "$host_cpu" = ia64; then
12382         # AIX 5 now supports IA64 processor
12383         lt_prog_compiler_static_F77='-Bstatic'
12384       fi
12385       ;;
12386
12387     amigaos*)
12388       case $host_cpu in
12389       powerpc)
12390             # see comment about AmigaOS4 .so support
12391             lt_prog_compiler_pic_F77='-fPIC'
12392         ;;
12393       m68k)
12394             # FIXME: we need at least 68020 code to build shared libraries, but
12395             # adding the `-m68020' flag to GCC prevents building anything better,
12396             # like `-m68040'.
12397             lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12398         ;;
12399       esac
12400       ;;
12401
12402     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12403       # PIC is the default for these OSes.
12404       ;;
12405
12406     mingw* | cygwin* | pw32* | os2* | cegcc*)
12407       # This hack is so that the source file can tell whether it is being
12408       # built for inclusion in a dll (and should export symbols for example).
12409       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12410       # (--disable-auto-import) libraries
12411       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12412       ;;
12413
12414     darwin* | rhapsody*)
12415       # PIC is the default on this platform
12416       # Common symbols not allowed in MH_DYLIB files
12417       lt_prog_compiler_pic_F77='-fno-common'
12418       ;;
12419
12420     haiku*)
12421       # PIC is the default for Haiku.
12422       # The "-static" flag exists, but is broken.
12423       lt_prog_compiler_static_F77=
12424       ;;
12425
12426     hpux*)
12427       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12428       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12429       # sets the default TLS model and affects inlining.
12430       case $host_cpu in
12431       hppa*64*)
12432         # +Z the default
12433         ;;
12434       *)
12435         lt_prog_compiler_pic_F77='-fPIC'
12436         ;;
12437       esac
12438       ;;
12439
12440     interix[3-9]*)
12441       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12442       # Instead, we relocate shared libraries at runtime.
12443       ;;
12444
12445     msdosdjgpp*)
12446       # Just because we use GCC doesn't mean we suddenly get shared libraries
12447       # on systems that don't support them.
12448       lt_prog_compiler_can_build_shared_F77=no
12449       enable_shared=no
12450       ;;
12451
12452     *nto* | *qnx*)
12453       # QNX uses GNU C++, but need to define -shared option too, otherwise
12454       # it will coredump.
12455       lt_prog_compiler_pic_F77='-fPIC -shared'
12456       ;;
12457
12458     sysv4*MP*)
12459       if test -d /usr/nec; then
12460         lt_prog_compiler_pic_F77=-Kconform_pic
12461       fi
12462       ;;
12463
12464     *)
12465       lt_prog_compiler_pic_F77='-fPIC'
12466       ;;
12467     esac
12468
12469     case $cc_basename in
12470     nvcc*) # Cuda Compiler Driver 2.2
12471       lt_prog_compiler_wl_F77='-Xlinker '
12472       if test -n "$lt_prog_compiler_pic_F77"; then
12473         lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
12474       fi
12475       ;;
12476     esac
12477   else
12478     # PORTME Check for flag to pass linker flags through the system compiler.
12479     case $host_os in
12480     aix*)
12481       lt_prog_compiler_wl_F77='-Wl,'
12482       if test "$host_cpu" = ia64; then
12483         # AIX 5 now supports IA64 processor
12484         lt_prog_compiler_static_F77='-Bstatic'
12485       else
12486         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12487       fi
12488       ;;
12489
12490     mingw* | cygwin* | pw32* | os2* | cegcc*)
12491       # This hack is so that the source file can tell whether it is being
12492       # built for inclusion in a dll (and should export symbols for example).
12493       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12494       ;;
12495
12496     hpux9* | hpux10* | hpux11*)
12497       lt_prog_compiler_wl_F77='-Wl,'
12498       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12499       # not for PA HP-UX.
12500       case $host_cpu in
12501       hppa*64*|ia64*)
12502         # +Z the default
12503         ;;
12504       *)
12505         lt_prog_compiler_pic_F77='+Z'
12506         ;;
12507       esac
12508       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12509       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12510       ;;
12511
12512     irix5* | irix6* | nonstopux*)
12513       lt_prog_compiler_wl_F77='-Wl,'
12514       # PIC (with -KPIC) is the default.
12515       lt_prog_compiler_static_F77='-non_shared'
12516       ;;
12517
12518     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12519       case $cc_basename in
12520       # old Intel for x86_64 which still supported -KPIC.
12521       ecc*)
12522         lt_prog_compiler_wl_F77='-Wl,'
12523         lt_prog_compiler_pic_F77='-KPIC'
12524         lt_prog_compiler_static_F77='-static'
12525         ;;
12526       # icc used to be incompatible with GCC.
12527       # ICC 10 doesn't accept -KPIC any more.
12528       icc* | ifort*)
12529         lt_prog_compiler_wl_F77='-Wl,'
12530         lt_prog_compiler_pic_F77='-fPIC'
12531         lt_prog_compiler_static_F77='-static'
12532         ;;
12533       # Lahey Fortran 8.1.
12534       lf95*)
12535         lt_prog_compiler_wl_F77='-Wl,'
12536         lt_prog_compiler_pic_F77='--shared'
12537         lt_prog_compiler_static_F77='--static'
12538         ;;
12539       nagfor*)
12540         # NAG Fortran compiler
12541         lt_prog_compiler_wl_F77='-Wl,-Wl,,'
12542         lt_prog_compiler_pic_F77='-PIC'
12543         lt_prog_compiler_static_F77='-Bstatic'
12544         ;;
12545       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12546         # Portland Group compilers (*not* the Pentium gcc compiler,
12547         # which looks to be a dead project)
12548         lt_prog_compiler_wl_F77='-Wl,'
12549         lt_prog_compiler_pic_F77='-fpic'
12550         lt_prog_compiler_static_F77='-Bstatic'
12551         ;;
12552       ccc*)
12553         lt_prog_compiler_wl_F77='-Wl,'
12554         # All Alpha code is PIC.
12555         lt_prog_compiler_static_F77='-non_shared'
12556         ;;
12557       xl* | bgxl* | bgf* | mpixl*)
12558         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12559         lt_prog_compiler_wl_F77='-Wl,'
12560         lt_prog_compiler_pic_F77='-qpic'
12561         lt_prog_compiler_static_F77='-qstaticlink'
12562         ;;
12563       *)
12564         case `$CC -V 2>&1 | sed 5q` in
12565         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12566           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12567           lt_prog_compiler_pic_F77='-KPIC'
12568           lt_prog_compiler_static_F77='-Bstatic'
12569           lt_prog_compiler_wl_F77=''
12570           ;;
12571         *Sun\ F* | *Sun*Fortran*)
12572           lt_prog_compiler_pic_F77='-KPIC'
12573           lt_prog_compiler_static_F77='-Bstatic'
12574           lt_prog_compiler_wl_F77='-Qoption ld '
12575           ;;
12576         *Sun\ C*)
12577           # Sun C 5.9
12578           lt_prog_compiler_pic_F77='-KPIC'
12579           lt_prog_compiler_static_F77='-Bstatic'
12580           lt_prog_compiler_wl_F77='-Wl,'
12581           ;;
12582         *Intel*\ [CF]*Compiler*)
12583           lt_prog_compiler_wl_F77='-Wl,'
12584           lt_prog_compiler_pic_F77='-fPIC'
12585           lt_prog_compiler_static_F77='-static'
12586           ;;
12587         *Portland\ Group*)
12588           lt_prog_compiler_wl_F77='-Wl,'
12589           lt_prog_compiler_pic_F77='-fpic'
12590           lt_prog_compiler_static_F77='-Bstatic'
12591           ;;
12592         esac
12593         ;;
12594       esac
12595       ;;
12596
12597     newsos6)
12598       lt_prog_compiler_pic_F77='-KPIC'
12599       lt_prog_compiler_static_F77='-Bstatic'
12600       ;;
12601
12602     *nto* | *qnx*)
12603       # QNX uses GNU C++, but need to define -shared option too, otherwise
12604       # it will coredump.
12605       lt_prog_compiler_pic_F77='-fPIC -shared'
12606       ;;
12607
12608     osf3* | osf4* | osf5*)
12609       lt_prog_compiler_wl_F77='-Wl,'
12610       # All OSF/1 code is PIC.
12611       lt_prog_compiler_static_F77='-non_shared'
12612       ;;
12613
12614     rdos*)
12615       lt_prog_compiler_static_F77='-non_shared'
12616       ;;
12617
12618     solaris*)
12619       lt_prog_compiler_pic_F77='-KPIC'
12620       lt_prog_compiler_static_F77='-Bstatic'
12621       case $cc_basename in
12622       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12623         lt_prog_compiler_wl_F77='-Qoption ld ';;
12624       *)
12625         lt_prog_compiler_wl_F77='-Wl,';;
12626       esac
12627       ;;
12628
12629     sunos4*)
12630       lt_prog_compiler_wl_F77='-Qoption ld '
12631       lt_prog_compiler_pic_F77='-PIC'
12632       lt_prog_compiler_static_F77='-Bstatic'
12633       ;;
12634
12635     sysv4 | sysv4.2uw2* | sysv4.3*)
12636       lt_prog_compiler_wl_F77='-Wl,'
12637       lt_prog_compiler_pic_F77='-KPIC'
12638       lt_prog_compiler_static_F77='-Bstatic'
12639       ;;
12640
12641     sysv4*MP*)
12642       if test -d /usr/nec ;then
12643         lt_prog_compiler_pic_F77='-Kconform_pic'
12644         lt_prog_compiler_static_F77='-Bstatic'
12645       fi
12646       ;;
12647
12648     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12649       lt_prog_compiler_wl_F77='-Wl,'
12650       lt_prog_compiler_pic_F77='-KPIC'
12651       lt_prog_compiler_static_F77='-Bstatic'
12652       ;;
12653
12654     unicos*)
12655       lt_prog_compiler_wl_F77='-Wl,'
12656       lt_prog_compiler_can_build_shared_F77=no
12657       ;;
12658
12659     uts4*)
12660       lt_prog_compiler_pic_F77='-pic'
12661       lt_prog_compiler_static_F77='-Bstatic'
12662       ;;
12663
12664     *)
12665       lt_prog_compiler_can_build_shared_F77=no
12666       ;;
12667     esac
12668   fi
12669
12670 case $host_os in
12671   # For platforms which do not support PIC, -DPIC is meaningless:
12672   *djgpp*)
12673     lt_prog_compiler_pic_F77=
12674     ;;
12675   *)
12676     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12677     ;;
12678 esac
12679
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12681 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12682 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
12683   $as_echo_n "(cached) " >&6
12684 else
12685   lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
12686 fi
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
12688 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
12689 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
12690
12691 #
12692 # Check to make sure the PIC flag actually works.
12693 #
12694 if test -n "$lt_prog_compiler_pic_F77"; then
12695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12696 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
12697 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
12698   $as_echo_n "(cached) " >&6
12699 else
12700   lt_cv_prog_compiler_pic_works_F77=no
12701    ac_outfile=conftest.$ac_objext
12702    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12703    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12704    # Insert the option either (1) after the last *FLAGS variable, or
12705    # (2) before a word containing "conftest.", or (3) at the end.
12706    # Note that $ac_compile itself does not contain backslashes and begins
12707    # with a dollar sign (not a hyphen), so the echo should work correctly.
12708    # The option is referenced via a variable to avoid confusing sed.
12709    lt_compile=`echo "$ac_compile" | $SED \
12710    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12711    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12712    -e 's:$: $lt_compiler_flag:'`
12713    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12714    (eval "$lt_compile" 2>conftest.err)
12715    ac_status=$?
12716    cat conftest.err >&5
12717    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718    if (exit $ac_status) && test -s "$ac_outfile"; then
12719      # The compiler can only warn and ignore the option if not recognized
12720      # So say no if there are warnings other than the usual output.
12721      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12722      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12723      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12724        lt_cv_prog_compiler_pic_works_F77=yes
12725      fi
12726    fi
12727    $RM conftest*
12728
12729 fi
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
12731 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
12732
12733 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
12734     case $lt_prog_compiler_pic_F77 in
12735      "" | " "*) ;;
12736      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12737      esac
12738 else
12739     lt_prog_compiler_pic_F77=
12740      lt_prog_compiler_can_build_shared_F77=no
12741 fi
12742
12743 fi
12744
12745
12746
12747
12748
12749 #
12750 # Check to make sure the static flag actually works.
12751 #
12752 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12754 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12755 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   lt_cv_prog_compiler_static_works_F77=no
12759    save_LDFLAGS="$LDFLAGS"
12760    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12761    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12762    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12763      # The linker can only warn and ignore the option if not recognized
12764      # So say no if there are warnings
12765      if test -s conftest.err; then
12766        # Append any errors to the config.log.
12767        cat conftest.err 1>&5
12768        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12769        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12770        if diff conftest.exp conftest.er2 >/dev/null; then
12771          lt_cv_prog_compiler_static_works_F77=yes
12772        fi
12773      else
12774        lt_cv_prog_compiler_static_works_F77=yes
12775      fi
12776    fi
12777    $RM -r conftest*
12778    LDFLAGS="$save_LDFLAGS"
12779
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
12782 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
12783
12784 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
12785     :
12786 else
12787     lt_prog_compiler_static_F77=
12788 fi
12789
12790
12791
12792
12793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12794 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12795 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
12796   $as_echo_n "(cached) " >&6
12797 else
12798   lt_cv_prog_compiler_c_o_F77=no
12799    $RM -r conftest 2>/dev/null
12800    mkdir conftest
12801    cd conftest
12802    mkdir out
12803    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12804
12805    lt_compiler_flag="-o out/conftest2.$ac_objext"
12806    # Insert the option either (1) after the last *FLAGS variable, or
12807    # (2) before a word containing "conftest.", or (3) at the end.
12808    # Note that $ac_compile itself does not contain backslashes and begins
12809    # with a dollar sign (not a hyphen), so the echo should work correctly.
12810    lt_compile=`echo "$ac_compile" | $SED \
12811    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12813    -e 's:$: $lt_compiler_flag:'`
12814    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12815    (eval "$lt_compile" 2>out/conftest.err)
12816    ac_status=$?
12817    cat out/conftest.err >&5
12818    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12820    then
12821      # The compiler can only warn and ignore the option if not recognized
12822      # So say no if there are warnings
12823      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12824      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12825      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12826        lt_cv_prog_compiler_c_o_F77=yes
12827      fi
12828    fi
12829    chmod u+w . 2>&5
12830    $RM conftest*
12831    # SGI C++ compiler will create directory out/ii_files/ for
12832    # template instantiation
12833    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12834    $RM out/* && rmdir out
12835    cd ..
12836    $RM -r conftest
12837    $RM conftest*
12838
12839 fi
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12841 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12842
12843
12844
12845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12846 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12847 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
12848   $as_echo_n "(cached) " >&6
12849 else
12850   lt_cv_prog_compiler_c_o_F77=no
12851    $RM -r conftest 2>/dev/null
12852    mkdir conftest
12853    cd conftest
12854    mkdir out
12855    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12856
12857    lt_compiler_flag="-o out/conftest2.$ac_objext"
12858    # Insert the option either (1) after the last *FLAGS variable, or
12859    # (2) before a word containing "conftest.", or (3) at the end.
12860    # Note that $ac_compile itself does not contain backslashes and begins
12861    # with a dollar sign (not a hyphen), so the echo should work correctly.
12862    lt_compile=`echo "$ac_compile" | $SED \
12863    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12864    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12865    -e 's:$: $lt_compiler_flag:'`
12866    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12867    (eval "$lt_compile" 2>out/conftest.err)
12868    ac_status=$?
12869    cat out/conftest.err >&5
12870    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12872    then
12873      # The compiler can only warn and ignore the option if not recognized
12874      # So say no if there are warnings
12875      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12876      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12877      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12878        lt_cv_prog_compiler_c_o_F77=yes
12879      fi
12880    fi
12881    chmod u+w . 2>&5
12882    $RM conftest*
12883    # SGI C++ compiler will create directory out/ii_files/ for
12884    # template instantiation
12885    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12886    $RM out/* && rmdir out
12887    cd ..
12888    $RM -r conftest
12889    $RM conftest*
12890
12891 fi
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12893 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12894
12895
12896
12897
12898 hard_links="nottested"
12899 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12900   # do not overwrite the value of need_locks provided by the user
12901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12902 $as_echo_n "checking if we can lock with hard links... " >&6; }
12903   hard_links=yes
12904   $RM conftest*
12905   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12906   touch conftest.a
12907   ln conftest.a conftest.b 2>&5 || hard_links=no
12908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12910 $as_echo "$hard_links" >&6; }
12911   if test "$hard_links" = no; then
12912     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12913 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12914     need_locks=warn
12915   fi
12916 else
12917   need_locks=no
12918 fi
12919
12920
12921
12922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12923 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12924
12925   runpath_var=
12926   allow_undefined_flag_F77=
12927   always_export_symbols_F77=no
12928   archive_cmds_F77=
12929   archive_expsym_cmds_F77=
12930   compiler_needs_object_F77=no
12931   enable_shared_with_static_runtimes_F77=no
12932   export_dynamic_flag_spec_F77=
12933   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12934   hardcode_automatic_F77=no
12935   hardcode_direct_F77=no
12936   hardcode_direct_absolute_F77=no
12937   hardcode_libdir_flag_spec_F77=
12938   hardcode_libdir_separator_F77=
12939   hardcode_minus_L_F77=no
12940   hardcode_shlibpath_var_F77=unsupported
12941   inherit_rpath_F77=no
12942   link_all_deplibs_F77=unknown
12943   module_cmds_F77=
12944   module_expsym_cmds_F77=
12945   old_archive_from_new_cmds_F77=
12946   old_archive_from_expsyms_cmds_F77=
12947   thread_safe_flag_spec_F77=
12948   whole_archive_flag_spec_F77=
12949   # include_expsyms should be a list of space-separated symbols to be *always*
12950   # included in the symbol list
12951   include_expsyms_F77=
12952   # exclude_expsyms can be an extended regexp of symbols to exclude
12953   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12954   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12955   # as well as any symbol that contains `d'.
12956   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12957   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12958   # platforms (ab)use it in PIC code, but their linkers get confused if
12959   # the symbol is explicitly referenced.  Since portable code cannot
12960   # rely on this symbol name, it's probably fine to never include it in
12961   # preloaded symbol tables.
12962   # Exclude shared library initialization/finalization symbols.
12963   extract_expsyms_cmds=
12964
12965   case $host_os in
12966   cygwin* | mingw* | pw32* | cegcc*)
12967     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12968     # When not using gcc, we currently assume that we are using
12969     # Microsoft Visual C++.
12970     if test "$GCC" != yes; then
12971       with_gnu_ld=no
12972     fi
12973     ;;
12974   interix*)
12975     # we just hope/assume this is gcc and not c89 (= MSVC++)
12976     with_gnu_ld=yes
12977     ;;
12978   openbsd*)
12979     with_gnu_ld=no
12980     ;;
12981   esac
12982
12983   ld_shlibs_F77=yes
12984
12985   # On some targets, GNU ld is compatible enough with the native linker
12986   # that we're better off using the native interface for both.
12987   lt_use_gnu_ld_interface=no
12988   if test "$with_gnu_ld" = yes; then
12989     case $host_os in
12990       aix*)
12991         # The AIX port of GNU ld has always aspired to compatibility
12992         # with the native linker.  However, as the warning in the GNU ld
12993         # block says, versions before 2.19.5* couldn't really create working
12994         # shared libraries, regardless of the interface used.
12995         case `$LD -v 2>&1` in
12996           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12997           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12998           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12999           *)
13000             lt_use_gnu_ld_interface=yes
13001             ;;
13002         esac
13003         ;;
13004       *)
13005         lt_use_gnu_ld_interface=yes
13006         ;;
13007     esac
13008   fi
13009
13010   if test "$lt_use_gnu_ld_interface" = yes; then
13011     # If archive_cmds runs LD, not CC, wlarc should be empty
13012     wlarc='${wl}'
13013
13014     # Set some defaults for GNU ld with shared library support. These
13015     # are reset later if shared libraries are not supported. Putting them
13016     # here allows them to be overridden if necessary.
13017     runpath_var=LD_RUN_PATH
13018     hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13019     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13020     # ancient GNU ld didn't support --whole-archive et. al.
13021     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13022       whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13023     else
13024       whole_archive_flag_spec_F77=
13025     fi
13026     supports_anon_versioning=no
13027     case `$LD -v 2>&1` in
13028       *GNU\ gold*) supports_anon_versioning=yes ;;
13029       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13030       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13031       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13032       *\ 2.11.*) ;; # other 2.11 versions
13033       *) supports_anon_versioning=yes ;;
13034     esac
13035
13036     # See if GNU ld supports shared libraries.
13037     case $host_os in
13038     aix[3-9]*)
13039       # On AIX/PPC, the GNU linker is very broken
13040       if test "$host_cpu" != ia64; then
13041         ld_shlibs_F77=no
13042         cat <<_LT_EOF 1>&2
13043
13044 *** Warning: the GNU linker, at least up to release 2.19, is reported
13045 *** to be unable to reliably create shared libraries on AIX.
13046 *** Therefore, libtool is disabling shared libraries support.  If you
13047 *** really care for shared libraries, you may want to install binutils
13048 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13049 *** You will then need to restart the configuration process.
13050
13051 _LT_EOF
13052       fi
13053       ;;
13054
13055     amigaos*)
13056       case $host_cpu in
13057       powerpc)
13058             # see comment about AmigaOS4 .so support
13059             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13060             archive_expsym_cmds_F77=''
13061         ;;
13062       m68k)
13063             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)'
13064             hardcode_libdir_flag_spec_F77='-L$libdir'
13065             hardcode_minus_L_F77=yes
13066         ;;
13067       esac
13068       ;;
13069
13070     beos*)
13071       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13072         allow_undefined_flag_F77=unsupported
13073         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13074         # support --undefined.  This deserves some investigation.  FIXME
13075         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13076       else
13077         ld_shlibs_F77=no
13078       fi
13079       ;;
13080
13081     cygwin* | mingw* | pw32* | cegcc*)
13082       # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13083       # as there is no search path for DLLs.
13084       hardcode_libdir_flag_spec_F77='-L$libdir'
13085       export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
13086       allow_undefined_flag_F77=unsupported
13087       always_export_symbols_F77=no
13088       enable_shared_with_static_runtimes_F77=yes
13089       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13090       exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13091
13092       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13093         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13094         # If the export-symbols file already is a .def file (1st line
13095         # is EXPORTS), use it as is; otherwise, prepend...
13096         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13097           cp $export_symbols $output_objdir/$soname.def;
13098         else
13099           echo EXPORTS > $output_objdir/$soname.def;
13100           cat $export_symbols >> $output_objdir/$soname.def;
13101         fi~
13102         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13103       else
13104         ld_shlibs_F77=no
13105       fi
13106       ;;
13107
13108     haiku*)
13109       archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110       link_all_deplibs_F77=yes
13111       ;;
13112
13113     interix[3-9]*)
13114       hardcode_direct_F77=no
13115       hardcode_shlibpath_var_F77=no
13116       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13117       export_dynamic_flag_spec_F77='${wl}-E'
13118       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13119       # Instead, shared libraries are loaded at an image base (0x10000000 by
13120       # default) and relocated if they conflict, which is a slow very memory
13121       # consuming and fragmenting process.  To avoid this, we pick a random,
13122       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13123       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13124       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'
13125       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'
13126       ;;
13127
13128     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13129       tmp_diet=no
13130       if test "$host_os" = linux-dietlibc; then
13131         case $cc_basename in
13132           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13133         esac
13134       fi
13135       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13136          && test "$tmp_diet" = no
13137       then
13138         tmp_addflag=' $pic_flag'
13139         tmp_sharedflag='-shared'
13140         case $cc_basename,$host_cpu in
13141         pgcc*)                          # Portland Group C compiler
13142           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13143           tmp_addflag=' $pic_flag'
13144           ;;
13145         pgf77* | pgf90* | pgf95* | pgfortran*)
13146                                         # Portland Group f77 and f90 compilers
13147           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13148           tmp_addflag=' $pic_flag -Mnomain' ;;
13149         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13150           tmp_addflag=' -i_dynamic' ;;
13151         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13152           tmp_addflag=' -i_dynamic -nofor_main' ;;
13153         ifc* | ifort*)                  # Intel Fortran compiler
13154           tmp_addflag=' -nofor_main' ;;
13155         lf95*)                          # Lahey Fortran 8.1
13156           whole_archive_flag_spec_F77=
13157           tmp_sharedflag='--shared' ;;
13158         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13159           tmp_sharedflag='-qmkshrobj'
13160           tmp_addflag= ;;
13161         nvcc*)  # Cuda Compiler Driver 2.2
13162           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13163           compiler_needs_object_F77=yes
13164           ;;
13165         esac
13166         case `$CC -V 2>&1 | sed 5q` in
13167         *Sun\ C*)                       # Sun C 5.9
13168           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13169           compiler_needs_object_F77=yes
13170           tmp_sharedflag='-G' ;;
13171         *Sun\ F*)                       # Sun Fortran 8.3
13172           tmp_sharedflag='-G' ;;
13173         esac
13174         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13175
13176         if test "x$supports_anon_versioning" = xyes; then
13177           archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
13178             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13179             echo "local: *; };" >> $output_objdir/$libname.ver~
13180             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13181         fi
13182
13183         case $cc_basename in
13184         xlf* | bgf* | bgxlf* | mpixlf*)
13185           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13186           whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
13187           hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13188           archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13189           if test "x$supports_anon_versioning" = xyes; then
13190             archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
13191               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13192               echo "local: *; };" >> $output_objdir/$libname.ver~
13193               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13194           fi
13195           ;;
13196         esac
13197       else
13198         ld_shlibs_F77=no
13199       fi
13200       ;;
13201
13202     netbsd*)
13203       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13204         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13205         wlarc=
13206       else
13207         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208         archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13209       fi
13210       ;;
13211
13212     solaris*)
13213       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13214         ld_shlibs_F77=no
13215         cat <<_LT_EOF 1>&2
13216
13217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13218 *** create shared libraries on Solaris systems.  Therefore, libtool
13219 *** is disabling shared libraries support.  We urge you to upgrade GNU
13220 *** binutils to release 2.9.1 or newer.  Another option is to modify
13221 *** your PATH or compiler configuration so that the native linker is
13222 *** used, and then restart.
13223
13224 _LT_EOF
13225       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13226         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13227         archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13228       else
13229         ld_shlibs_F77=no
13230       fi
13231       ;;
13232
13233     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13234       case `$LD -v 2>&1` in
13235         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13236         ld_shlibs_F77=no
13237         cat <<_LT_EOF 1>&2
13238
13239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13240 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13241 *** is disabling shared libraries support.  We urge you to upgrade GNU
13242 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13243 *** your PATH or compiler configuration so that the native linker is
13244 *** used, and then restart.
13245
13246 _LT_EOF
13247         ;;
13248         *)
13249           # For security reasons, it is highly recommended that you always
13250           # use absolute paths for naming shared libraries, and exclude the
13251           # DT_RUNPATH tag from executables and libraries.  But doing so
13252           # requires that you compile everything twice, which is a pain.
13253           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13254             hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13255             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13256             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13257           else
13258             ld_shlibs_F77=no
13259           fi
13260         ;;
13261       esac
13262       ;;
13263
13264     sunos4*)
13265       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13266       wlarc=
13267       hardcode_direct_F77=yes
13268       hardcode_shlibpath_var_F77=no
13269       ;;
13270
13271     *)
13272       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13273         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13274         archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13275       else
13276         ld_shlibs_F77=no
13277       fi
13278       ;;
13279     esac
13280
13281     if test "$ld_shlibs_F77" = no; then
13282       runpath_var=
13283       hardcode_libdir_flag_spec_F77=
13284       export_dynamic_flag_spec_F77=
13285       whole_archive_flag_spec_F77=
13286     fi
13287   else
13288     # PORTME fill in a description of your system's linker (not GNU ld)
13289     case $host_os in
13290     aix3*)
13291       allow_undefined_flag_F77=unsupported
13292       always_export_symbols_F77=yes
13293       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'
13294       # Note: this linker hardcodes the directories in LIBPATH if there
13295       # are no directories specified by -L.
13296       hardcode_minus_L_F77=yes
13297       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13298         # Neither direct hardcoding nor static linking is supported with a
13299         # broken collect2.
13300         hardcode_direct_F77=unsupported
13301       fi
13302       ;;
13303
13304     aix[4-9]*)
13305       if test "$host_cpu" = ia64; then
13306         # On IA64, the linker does run time linking by default, so we don't
13307         # have to do anything special.
13308         aix_use_runtimelinking=no
13309         exp_sym_flag='-Bexport'
13310         no_entry_flag=""
13311       else
13312         # If we're using GNU nm, then we don't want the "-C" option.
13313         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13314         # Also, AIX nm treats weak defined symbols like other global
13315         # defined symbols, whereas GNU nm marks them as "W".
13316         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13317           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13318         else
13319           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'
13320         fi
13321         aix_use_runtimelinking=no
13322
13323         # Test if we are trying to use run time linking or normal
13324         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13325         # need to do runtime linking.
13326         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13327           for ld_flag in $LDFLAGS; do
13328           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13329             aix_use_runtimelinking=yes
13330             break
13331           fi
13332           done
13333           ;;
13334         esac
13335
13336         exp_sym_flag='-bexport'
13337         no_entry_flag='-bnoentry'
13338       fi
13339
13340       # When large executables or shared objects are built, AIX ld can
13341       # have problems creating the table of contents.  If linking a library
13342       # or program results in "error TOC overflow" add -mminimal-toc to
13343       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13344       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13345
13346       archive_cmds_F77=''
13347       hardcode_direct_F77=yes
13348       hardcode_direct_absolute_F77=yes
13349       hardcode_libdir_separator_F77=':'
13350       link_all_deplibs_F77=yes
13351       file_list_spec_F77='${wl}-f,'
13352
13353       if test "$GCC" = yes; then
13354         case $host_os in aix4.[012]|aix4.[012].*)
13355         # We only want to do this on AIX 4.2 and lower, the check
13356         # below for broken collect2 doesn't work under 4.3+
13357           collect2name=`${CC} -print-prog-name=collect2`
13358           if test -f "$collect2name" &&
13359            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13360           then
13361           # We have reworked collect2
13362           :
13363           else
13364           # We have old collect2
13365           hardcode_direct_F77=unsupported
13366           # It fails to find uninstalled libraries when the uninstalled
13367           # path is not listed in the libpath.  Setting hardcode_minus_L
13368           # to unsupported forces relinking
13369           hardcode_minus_L_F77=yes
13370           hardcode_libdir_flag_spec_F77='-L$libdir'
13371           hardcode_libdir_separator_F77=
13372           fi
13373           ;;
13374         esac
13375         shared_flag='-shared'
13376         if test "$aix_use_runtimelinking" = yes; then
13377           shared_flag="$shared_flag "'${wl}-G'
13378         fi
13379       else
13380         # not using gcc
13381         if test "$host_cpu" = ia64; then
13382         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13383         # chokes on -Wl,-G. The following line is correct:
13384           shared_flag='-G'
13385         else
13386           if test "$aix_use_runtimelinking" = yes; then
13387             shared_flag='${wl}-G'
13388           else
13389             shared_flag='${wl}-bM:SRE'
13390           fi
13391         fi
13392       fi
13393
13394       export_dynamic_flag_spec_F77='${wl}-bexpall'
13395       # It seems that -bexpall does not export symbols beginning with
13396       # underscore (_), so it is better to generate a list of symbols to export.
13397       always_export_symbols_F77=yes
13398       if test "$aix_use_runtimelinking" = yes; then
13399         # Warning - without using the other runtime loading flags (-brtl),
13400         # -berok will link without error, but may produce a broken library.
13401         allow_undefined_flag_F77='-berok'
13402         # Determine the default libpath from the value encoded in an
13403         # empty executable.
13404         if test "${lt_cv_aix_libpath+set}" = set; then
13405   aix_libpath=$lt_cv_aix_libpath
13406 else
13407   if ${lt_cv_aix_libpath__F77+:} false; then :
13408   $as_echo_n "(cached) " >&6
13409 else
13410   cat > conftest.$ac_ext <<_ACEOF
13411       program main
13412
13413       end
13414 _ACEOF
13415 if ac_fn_f77_try_link "$LINENO"; then :
13416
13417   lt_aix_libpath_sed='
13418       /Import File Strings/,/^$/ {
13419           /^0/ {
13420               s/^0  *\([^ ]*\) *$/\1/
13421               p
13422           }
13423       }'
13424   lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13425   # Check for a 64-bit object if we didn't find anything.
13426   if test -z "$lt_cv_aix_libpath__F77"; then
13427     lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13428   fi
13429 fi
13430 rm -f core conftest.err conftest.$ac_objext \
13431     conftest$ac_exeext conftest.$ac_ext
13432   if test -z "$lt_cv_aix_libpath__F77"; then
13433     lt_cv_aix_libpath__F77="/usr/lib:/lib"
13434   fi
13435
13436 fi
13437
13438   aix_libpath=$lt_cv_aix_libpath__F77
13439 fi
13440
13441         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13442         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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13443       else
13444         if test "$host_cpu" = ia64; then
13445           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13446           allow_undefined_flag_F77="-z nodefs"
13447           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"
13448         else
13449          # Determine the default libpath from the value encoded in an
13450          # empty executable.
13451          if test "${lt_cv_aix_libpath+set}" = set; then
13452   aix_libpath=$lt_cv_aix_libpath
13453 else
13454   if ${lt_cv_aix_libpath__F77+:} false; then :
13455   $as_echo_n "(cached) " >&6
13456 else
13457   cat > conftest.$ac_ext <<_ACEOF
13458       program main
13459
13460       end
13461 _ACEOF
13462 if ac_fn_f77_try_link "$LINENO"; then :
13463
13464   lt_aix_libpath_sed='
13465       /Import File Strings/,/^$/ {
13466           /^0/ {
13467               s/^0  *\([^ ]*\) *$/\1/
13468               p
13469           }
13470       }'
13471   lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13472   # Check for a 64-bit object if we didn't find anything.
13473   if test -z "$lt_cv_aix_libpath__F77"; then
13474     lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13475   fi
13476 fi
13477 rm -f core conftest.err conftest.$ac_objext \
13478     conftest$ac_exeext conftest.$ac_ext
13479   if test -z "$lt_cv_aix_libpath__F77"; then
13480     lt_cv_aix_libpath__F77="/usr/lib:/lib"
13481   fi
13482
13483 fi
13484
13485   aix_libpath=$lt_cv_aix_libpath__F77
13486 fi
13487
13488          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13489           # Warning - without using the other run time loading flags,
13490           # -berok will link without error, but may produce a broken library.
13491           no_undefined_flag_F77=' ${wl}-bernotok'
13492           allow_undefined_flag_F77=' ${wl}-berok'
13493           if test "$with_gnu_ld" = yes; then
13494             # We only use this code for GNU lds that support --whole-archive.
13495             whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13496           else
13497             # Exported symbols can be pulled into shared objects from archives
13498             whole_archive_flag_spec_F77='$convenience'
13499           fi
13500           archive_cmds_need_lc_F77=yes
13501           # This is similar to how AIX traditionally builds its shared libraries.
13502           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'
13503         fi
13504       fi
13505       ;;
13506
13507     amigaos*)
13508       case $host_cpu in
13509       powerpc)
13510             # see comment about AmigaOS4 .so support
13511             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13512             archive_expsym_cmds_F77=''
13513         ;;
13514       m68k)
13515             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)'
13516             hardcode_libdir_flag_spec_F77='-L$libdir'
13517             hardcode_minus_L_F77=yes
13518         ;;
13519       esac
13520       ;;
13521
13522     bsdi[45]*)
13523       export_dynamic_flag_spec_F77=-rdynamic
13524       ;;
13525
13526     cygwin* | mingw* | pw32* | cegcc*)
13527       # When not using gcc, we currently assume that we are using
13528       # Microsoft Visual C++.
13529       # hardcode_libdir_flag_spec is actually meaningless, as there is
13530       # no search path for DLLs.
13531       case $cc_basename in
13532       cl*)
13533         # Native MSVC
13534         hardcode_libdir_flag_spec_F77=' '
13535         allow_undefined_flag_F77=unsupported
13536         always_export_symbols_F77=yes
13537         file_list_spec_F77='@'
13538         # Tell ltmain to make .lib files, not .a files.
13539         libext=lib
13540         # Tell ltmain to make .dll files, not .so files.
13541         shrext_cmds=".dll"
13542         # FIXME: Setting linknames here is a bad hack.
13543         archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13544         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13545             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13546           else
13547             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13548           fi~
13549           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13550           linknames='
13551         # The linker will not automatically build a static lib if we build a DLL.
13552         # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
13553         enable_shared_with_static_runtimes_F77=yes
13554         exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13555         export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13556         # Don't use ranlib
13557         old_postinstall_cmds_F77='chmod 644 $oldlib'
13558         postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
13559           lt_tool_outputfile="@TOOL_OUTPUT@"~
13560           case $lt_outputfile in
13561             *.exe|*.EXE) ;;
13562             *)
13563               lt_outputfile="$lt_outputfile.exe"
13564               lt_tool_outputfile="$lt_tool_outputfile.exe"
13565               ;;
13566           esac~
13567           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13568             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13569             $RM "$lt_outputfile.manifest";
13570           fi'
13571         ;;
13572       *)
13573         # Assume MSVC wrapper
13574         hardcode_libdir_flag_spec_F77=' '
13575         allow_undefined_flag_F77=unsupported
13576         # Tell ltmain to make .lib files, not .a files.
13577         libext=lib
13578         # Tell ltmain to make .dll files, not .so files.
13579         shrext_cmds=".dll"
13580         # FIXME: Setting linknames here is a bad hack.
13581         archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13582         # The linker will automatically build a .lib file if we build a DLL.
13583         old_archive_from_new_cmds_F77='true'
13584         # FIXME: Should let the user specify the lib program.
13585         old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
13586         enable_shared_with_static_runtimes_F77=yes
13587         ;;
13588       esac
13589       ;;
13590
13591     darwin* | rhapsody*)
13592
13593
13594   archive_cmds_need_lc_F77=no
13595   hardcode_direct_F77=no
13596   hardcode_automatic_F77=yes
13597   hardcode_shlibpath_var_F77=unsupported
13598   if test "$lt_cv_ld_force_load" = "yes"; then
13599     whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13600     compiler_needs_object_F77=yes
13601   else
13602     whole_archive_flag_spec_F77=''
13603   fi
13604   link_all_deplibs_F77=yes
13605   allow_undefined_flag_F77="$_lt_dar_allow_undefined"
13606   case $cc_basename in
13607      ifort*) _lt_dar_can_shared=yes ;;
13608      *) _lt_dar_can_shared=$GCC ;;
13609   esac
13610   if test "$_lt_dar_can_shared" = "yes"; then
13611     output_verbose_link_cmd=func_echo_all
13612     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}"
13613     module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13614     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}"
13615     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}"
13616
13617   else
13618   ld_shlibs_F77=no
13619   fi
13620
13621       ;;
13622
13623     dgux*)
13624       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625       hardcode_libdir_flag_spec_F77='-L$libdir'
13626       hardcode_shlibpath_var_F77=no
13627       ;;
13628
13629     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13630     # support.  Future versions do this automatically, but an explicit c++rt0.o
13631     # does not break anything, and helps significantly (at the cost of a little
13632     # extra space).
13633     freebsd2.2*)
13634       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13635       hardcode_libdir_flag_spec_F77='-R$libdir'
13636       hardcode_direct_F77=yes
13637       hardcode_shlibpath_var_F77=no
13638       ;;
13639
13640     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13641     freebsd2.*)
13642       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13643       hardcode_direct_F77=yes
13644       hardcode_minus_L_F77=yes
13645       hardcode_shlibpath_var_F77=no
13646       ;;
13647
13648     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13649     freebsd* | dragonfly*)
13650       archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13651       hardcode_libdir_flag_spec_F77='-R$libdir'
13652       hardcode_direct_F77=yes
13653       hardcode_shlibpath_var_F77=no
13654       ;;
13655
13656     hpux9*)
13657       if test "$GCC" = yes; then
13658         archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13659       else
13660         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'
13661       fi
13662       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13663       hardcode_libdir_separator_F77=:
13664       hardcode_direct_F77=yes
13665
13666       # hardcode_minus_L: Not really in the search PATH,
13667       # but as the default location of the library.
13668       hardcode_minus_L_F77=yes
13669       export_dynamic_flag_spec_F77='${wl}-E'
13670       ;;
13671
13672     hpux10*)
13673       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13674         archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13675       else
13676         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13677       fi
13678       if test "$with_gnu_ld" = no; then
13679         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13680         hardcode_libdir_separator_F77=:
13681         hardcode_direct_F77=yes
13682         hardcode_direct_absolute_F77=yes
13683         export_dynamic_flag_spec_F77='${wl}-E'
13684         # hardcode_minus_L: Not really in the search PATH,
13685         # but as the default location of the library.
13686         hardcode_minus_L_F77=yes
13687       fi
13688       ;;
13689
13690     hpux11*)
13691       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13692         case $host_cpu in
13693         hppa*64*)
13694           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13695           ;;
13696         ia64*)
13697           archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13698           ;;
13699         *)
13700           archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13701           ;;
13702         esac
13703       else
13704         case $host_cpu in
13705         hppa*64*)
13706           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13707           ;;
13708         ia64*)
13709           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13710           ;;
13711         *)
13712         archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13713           ;;
13714         esac
13715       fi
13716       if test "$with_gnu_ld" = no; then
13717         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13718         hardcode_libdir_separator_F77=:
13719
13720         case $host_cpu in
13721         hppa*64*|ia64*)
13722           hardcode_direct_F77=no
13723           hardcode_shlibpath_var_F77=no
13724           ;;
13725         *)
13726           hardcode_direct_F77=yes
13727           hardcode_direct_absolute_F77=yes
13728           export_dynamic_flag_spec_F77='${wl}-E'
13729
13730           # hardcode_minus_L: Not really in the search PATH,
13731           # but as the default location of the library.
13732           hardcode_minus_L_F77=yes
13733           ;;
13734         esac
13735       fi
13736       ;;
13737
13738     irix5* | irix6* | nonstopux*)
13739       if test "$GCC" = yes; then
13740         archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13741         # Try to use the -exported_symbol ld option, if it does not
13742         # work, assume that -exports_file does not work either and
13743         # implicitly export all symbols.
13744         # This should be the same for all languages, so no per-tag cache variable.
13745         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13746 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13747 if ${lt_cv_irix_exported_symbol+:} false; then :
13748   $as_echo_n "(cached) " >&6
13749 else
13750   save_LDFLAGS="$LDFLAGS"
13751            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13752            cat > conftest.$ac_ext <<_ACEOF
13753
13754       subroutine foo
13755       end
13756 _ACEOF
13757 if ac_fn_f77_try_link "$LINENO"; then :
13758   lt_cv_irix_exported_symbol=yes
13759 else
13760   lt_cv_irix_exported_symbol=no
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext \
13763     conftest$ac_exeext conftest.$ac_ext
13764            LDFLAGS="$save_LDFLAGS"
13765 fi
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13767 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13768         if test "$lt_cv_irix_exported_symbol" = yes; then
13769           archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13770         fi
13771       else
13772         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13773         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13774       fi
13775       archive_cmds_need_lc_F77='no'
13776       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13777       hardcode_libdir_separator_F77=:
13778       inherit_rpath_F77=yes
13779       link_all_deplibs_F77=yes
13780       ;;
13781
13782     netbsd*)
13783       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13784         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13785       else
13786         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13787       fi
13788       hardcode_libdir_flag_spec_F77='-R$libdir'
13789       hardcode_direct_F77=yes
13790       hardcode_shlibpath_var_F77=no
13791       ;;
13792
13793     newsos6)
13794       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13795       hardcode_direct_F77=yes
13796       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13797       hardcode_libdir_separator_F77=:
13798       hardcode_shlibpath_var_F77=no
13799       ;;
13800
13801     *nto* | *qnx*)
13802       ;;
13803
13804     openbsd*)
13805       if test -f /usr/libexec/ld.so; then
13806         hardcode_direct_F77=yes
13807         hardcode_shlibpath_var_F77=no
13808         hardcode_direct_absolute_F77=yes
13809         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13810           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13811           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13812           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13813           export_dynamic_flag_spec_F77='${wl}-E'
13814         else
13815           case $host_os in
13816            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13817              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13818              hardcode_libdir_flag_spec_F77='-R$libdir'
13819              ;;
13820            *)
13821              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13822              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13823              ;;
13824           esac
13825         fi
13826       else
13827         ld_shlibs_F77=no
13828       fi
13829       ;;
13830
13831     os2*)
13832       hardcode_libdir_flag_spec_F77='-L$libdir'
13833       hardcode_minus_L_F77=yes
13834       allow_undefined_flag_F77=unsupported
13835       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'
13836       old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13837       ;;
13838
13839     osf3*)
13840       if test "$GCC" = yes; then
13841         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13842         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13843       else
13844         allow_undefined_flag_F77=' -expect_unresolved \*'
13845         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13846       fi
13847       archive_cmds_need_lc_F77='no'
13848       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13849       hardcode_libdir_separator_F77=:
13850       ;;
13851
13852     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13853       if test "$GCC" = yes; then
13854         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13855         archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13856         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13857       else
13858         allow_undefined_flag_F77=' -expect_unresolved \*'
13859         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13860         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~
13861         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13862
13863         # Both c and cxx compiler support -rpath directly
13864         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13865       fi
13866       archive_cmds_need_lc_F77='no'
13867       hardcode_libdir_separator_F77=:
13868       ;;
13869
13870     solaris*)
13871       no_undefined_flag_F77=' -z defs'
13872       if test "$GCC" = yes; then
13873         wlarc='${wl}'
13874         archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13875         archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13876           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13877       else
13878         case `$CC -V 2>&1` in
13879         *"Compilers 5.0"*)
13880           wlarc=''
13881           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13882           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13883           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13884           ;;
13885         *)
13886           wlarc='${wl}'
13887           archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13888           archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13889           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13890           ;;
13891         esac
13892       fi
13893       hardcode_libdir_flag_spec_F77='-R$libdir'
13894       hardcode_shlibpath_var_F77=no
13895       case $host_os in
13896       solaris2.[0-5] | solaris2.[0-5].*) ;;
13897       *)
13898         # The compiler driver will combine and reorder linker options,
13899         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13900         # but is careful enough not to reorder.
13901         # Supported since Solaris 2.6 (maybe 2.5.1?)
13902         if test "$GCC" = yes; then
13903           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13904         else
13905           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
13906         fi
13907         ;;
13908       esac
13909       link_all_deplibs_F77=yes
13910       ;;
13911
13912     sunos4*)
13913       if test "x$host_vendor" = xsequent; then
13914         # Use $CC to link under sequent, because it throws in some extra .o
13915         # files that make .init and .fini sections work.
13916         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13917       else
13918         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13919       fi
13920       hardcode_libdir_flag_spec_F77='-L$libdir'
13921       hardcode_direct_F77=yes
13922       hardcode_minus_L_F77=yes
13923       hardcode_shlibpath_var_F77=no
13924       ;;
13925
13926     sysv4)
13927       case $host_vendor in
13928         sni)
13929           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13930           hardcode_direct_F77=yes # is this really true???
13931         ;;
13932         siemens)
13933           ## LD is ld it makes a PLAMLIB
13934           ## CC just makes a GrossModule.
13935           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13936           reload_cmds_F77='$CC -r -o $output$reload_objs'
13937           hardcode_direct_F77=no
13938         ;;
13939         motorola)
13940           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13941           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13942         ;;
13943       esac
13944       runpath_var='LD_RUN_PATH'
13945       hardcode_shlibpath_var_F77=no
13946       ;;
13947
13948     sysv4.3*)
13949       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13950       hardcode_shlibpath_var_F77=no
13951       export_dynamic_flag_spec_F77='-Bexport'
13952       ;;
13953
13954     sysv4*MP*)
13955       if test -d /usr/nec; then
13956         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13957         hardcode_shlibpath_var_F77=no
13958         runpath_var=LD_RUN_PATH
13959         hardcode_runpath_var=yes
13960         ld_shlibs_F77=yes
13961       fi
13962       ;;
13963
13964     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13965       no_undefined_flag_F77='${wl}-z,text'
13966       archive_cmds_need_lc_F77=no
13967       hardcode_shlibpath_var_F77=no
13968       runpath_var='LD_RUN_PATH'
13969
13970       if test "$GCC" = yes; then
13971         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13972         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13973       else
13974         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13975         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13976       fi
13977       ;;
13978
13979     sysv5* | sco3.2v5* | sco5v6*)
13980       # Note: We can NOT use -z defs as we might desire, because we do not
13981       # link with -lc, and that would cause any symbols used from libc to
13982       # always be unresolved, which means just about no library would
13983       # ever link correctly.  If we're not using GNU ld we use -z text
13984       # though, which does catch some bad symbols but isn't as heavy-handed
13985       # as -z defs.
13986       no_undefined_flag_F77='${wl}-z,text'
13987       allow_undefined_flag_F77='${wl}-z,nodefs'
13988       archive_cmds_need_lc_F77=no
13989       hardcode_shlibpath_var_F77=no
13990       hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
13991       hardcode_libdir_separator_F77=':'
13992       link_all_deplibs_F77=yes
13993       export_dynamic_flag_spec_F77='${wl}-Bexport'
13994       runpath_var='LD_RUN_PATH'
13995
13996       if test "$GCC" = yes; then
13997         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13998         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13999       else
14000         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14001         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14002       fi
14003       ;;
14004
14005     uts4*)
14006       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14007       hardcode_libdir_flag_spec_F77='-L$libdir'
14008       hardcode_shlibpath_var_F77=no
14009       ;;
14010
14011     *)
14012       ld_shlibs_F77=no
14013       ;;
14014     esac
14015
14016     if test x$host_vendor = xsni; then
14017       case $host in
14018       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14019         export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
14020         ;;
14021       esac
14022     fi
14023   fi
14024
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14026 $as_echo "$ld_shlibs_F77" >&6; }
14027 test "$ld_shlibs_F77" = no && can_build_shared=no
14028
14029 with_gnu_ld_F77=$with_gnu_ld
14030
14031
14032
14033
14034
14035
14036 #
14037 # Do we need to explicitly link libc?
14038 #
14039 case "x$archive_cmds_need_lc_F77" in
14040 x|xyes)
14041   # Assume -lc should be added
14042   archive_cmds_need_lc_F77=yes
14043
14044   if test "$enable_shared" = yes && test "$GCC" = yes; then
14045     case $archive_cmds_F77 in
14046     *'~'*)
14047       # FIXME: we may have to deal with multi-command sequences.
14048       ;;
14049     '$CC '*)
14050       # Test whether the compiler implicitly links with -lc since on some
14051       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14052       # to ld, don't add -lc before -lgcc.
14053       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14054 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14055 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
14056   $as_echo_n "(cached) " >&6
14057 else
14058   $RM conftest*
14059         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14060
14061         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14062   (eval $ac_compile) 2>&5
14063   ac_status=$?
14064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14065   test $ac_status = 0; } 2>conftest.err; then
14066           soname=conftest
14067           lib=conftest
14068           libobjs=conftest.$ac_objext
14069           deplibs=
14070           wl=$lt_prog_compiler_wl_F77
14071           pic_flag=$lt_prog_compiler_pic_F77
14072           compiler_flags=-v
14073           linker_flags=-v
14074           verstring=
14075           output_objdir=.
14076           libname=conftest
14077           lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14078           allow_undefined_flag_F77=
14079           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14080   (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14081   ac_status=$?
14082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14083   test $ac_status = 0; }
14084           then
14085             lt_cv_archive_cmds_need_lc_F77=no
14086           else
14087             lt_cv_archive_cmds_need_lc_F77=yes
14088           fi
14089           allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14090         else
14091           cat conftest.err 1>&5
14092         fi
14093         $RM conftest*
14094
14095 fi
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
14097 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
14098       archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
14099       ;;
14100     esac
14101   fi
14102   ;;
14103 esac
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14167 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14168
14169 library_names_spec=
14170 libname_spec='lib$name'
14171 soname_spec=
14172 shrext_cmds=".so"
14173 postinstall_cmds=
14174 postuninstall_cmds=
14175 finish_cmds=
14176 finish_eval=
14177 shlibpath_var=
14178 shlibpath_overrides_runpath=unknown
14179 version_type=none
14180 dynamic_linker="$host_os ld.so"
14181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14182 need_lib_prefix=unknown
14183 hardcode_into_libs=no
14184
14185 # when you set need_version to no, make sure it does not cause -set_version
14186 # flags to be left without arguments
14187 need_version=unknown
14188
14189 case $host_os in
14190 aix3*)
14191   version_type=linux # correct to gnu/linux during the next big refactor
14192   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14193   shlibpath_var=LIBPATH
14194
14195   # AIX 3 has no versioning support, so we append a major version to the name.
14196   soname_spec='${libname}${release}${shared_ext}$major'
14197   ;;
14198
14199 aix[4-9]*)
14200   version_type=linux # correct to gnu/linux during the next big refactor
14201   need_lib_prefix=no
14202   need_version=no
14203   hardcode_into_libs=yes
14204   if test "$host_cpu" = ia64; then
14205     # AIX 5 supports IA64
14206     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14207     shlibpath_var=LD_LIBRARY_PATH
14208   else
14209     # With GCC up to 2.95.x, collect2 would create an import file
14210     # for dependence libraries.  The import file would start with
14211     # the line `#! .'.  This would cause the generated library to
14212     # depend on `.', always an invalid library.  This was fixed in
14213     # development snapshots of GCC prior to 3.0.
14214     case $host_os in
14215       aix4 | aix4.[01] | aix4.[01].*)
14216       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14217            echo ' yes '
14218            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14219         :
14220       else
14221         can_build_shared=no
14222       fi
14223       ;;
14224     esac
14225     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14226     # soname into executable. Probably we can add versioning support to
14227     # collect2, so additional links can be useful in future.
14228     if test "$aix_use_runtimelinking" = yes; then
14229       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14230       # instead of lib<name>.a to let people know that these are not
14231       # typical AIX shared libraries.
14232       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14233     else
14234       # We preserve .a as extension for shared libraries through AIX4.2
14235       # and later when we are not doing run time linking.
14236       library_names_spec='${libname}${release}.a $libname.a'
14237       soname_spec='${libname}${release}${shared_ext}$major'
14238     fi
14239     shlibpath_var=LIBPATH
14240   fi
14241   ;;
14242
14243 amigaos*)
14244   case $host_cpu in
14245   powerpc)
14246     # Since July 2007 AmigaOS4 officially supports .so libraries.
14247     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14249     ;;
14250   m68k)
14251     library_names_spec='$libname.ixlibrary $libname.a'
14252     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14253     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14254     ;;
14255   esac
14256   ;;
14257
14258 beos*)
14259   library_names_spec='${libname}${shared_ext}'
14260   dynamic_linker="$host_os ld.so"
14261   shlibpath_var=LIBRARY_PATH
14262   ;;
14263
14264 bsdi[45]*)
14265   version_type=linux # correct to gnu/linux during the next big refactor
14266   need_version=no
14267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268   soname_spec='${libname}${release}${shared_ext}$major'
14269   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14270   shlibpath_var=LD_LIBRARY_PATH
14271   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14272   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14273   # the default ld.so.conf also contains /usr/contrib/lib and
14274   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14275   # libtool to hard-code these into programs
14276   ;;
14277
14278 cygwin* | mingw* | pw32* | cegcc*)
14279   version_type=windows
14280   shrext_cmds=".dll"
14281   need_version=no
14282   need_lib_prefix=no
14283
14284   case $GCC,$cc_basename in
14285   yes,*)
14286     # gcc
14287     library_names_spec='$libname.dll.a'
14288     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14289     postinstall_cmds='base_file=`basename \${file}`~
14290       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14291       dldir=$destdir/`dirname \$dlpath`~
14292       test -d \$dldir || mkdir -p \$dldir~
14293       $install_prog $dir/$dlname \$dldir/$dlname~
14294       chmod a+x \$dldir/$dlname~
14295       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14296         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14297       fi'
14298     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14299       dlpath=$dir/\$dldll~
14300        $RM \$dlpath'
14301     shlibpath_overrides_runpath=yes
14302
14303     case $host_os in
14304     cygwin*)
14305       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14306       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14307
14308       ;;
14309     mingw* | cegcc*)
14310       # MinGW DLLs use traditional 'lib' prefix
14311       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14312       ;;
14313     pw32*)
14314       # pw32 DLLs use 'pw' prefix rather than 'lib'
14315       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14316       ;;
14317     esac
14318     dynamic_linker='Win32 ld.exe'
14319     ;;
14320
14321   *,cl*)
14322     # Native MSVC
14323     libname_spec='$name'
14324     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14325     library_names_spec='${libname}.dll.lib'
14326
14327     case $build_os in
14328     mingw*)
14329       sys_lib_search_path_spec=
14330       lt_save_ifs=$IFS
14331       IFS=';'
14332       for lt_path in $LIB
14333       do
14334         IFS=$lt_save_ifs
14335         # Let DOS variable expansion print the short 8.3 style file name.
14336         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14337         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14338       done
14339       IFS=$lt_save_ifs
14340       # Convert to MSYS style.
14341       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14342       ;;
14343     cygwin*)
14344       # Convert to unix form, then to dos form, then back to unix form
14345       # but this time dos style (no spaces!) so that the unix form looks
14346       # like /cygdrive/c/PROGRA~1:/cygdr...
14347       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14348       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14349       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14350       ;;
14351     *)
14352       sys_lib_search_path_spec="$LIB"
14353       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14354         # It is most probably a Windows format PATH.
14355         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14356       else
14357         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14358       fi
14359       # FIXME: find the short name or the path components, as spaces are
14360       # common. (e.g. "Program Files" -> "PROGRA~1")
14361       ;;
14362     esac
14363
14364     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14365     postinstall_cmds='base_file=`basename \${file}`~
14366       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14367       dldir=$destdir/`dirname \$dlpath`~
14368       test -d \$dldir || mkdir -p \$dldir~
14369       $install_prog $dir/$dlname \$dldir/$dlname'
14370     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14371       dlpath=$dir/\$dldll~
14372        $RM \$dlpath'
14373     shlibpath_overrides_runpath=yes
14374     dynamic_linker='Win32 link.exe'
14375     ;;
14376
14377   *)
14378     # Assume MSVC wrapper
14379     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14380     dynamic_linker='Win32 ld.exe'
14381     ;;
14382   esac
14383   # FIXME: first we should search . and the directory the executable is in
14384   shlibpath_var=PATH
14385   ;;
14386
14387 darwin* | rhapsody*)
14388   dynamic_linker="$host_os dyld"
14389   version_type=darwin
14390   need_lib_prefix=no
14391   need_version=no
14392   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14393   soname_spec='${libname}${release}${major}$shared_ext'
14394   shlibpath_overrides_runpath=yes
14395   shlibpath_var=DYLD_LIBRARY_PATH
14396   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14397
14398   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14399   ;;
14400
14401 dgux*)
14402   version_type=linux # correct to gnu/linux during the next big refactor
14403   need_lib_prefix=no
14404   need_version=no
14405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14406   soname_spec='${libname}${release}${shared_ext}$major'
14407   shlibpath_var=LD_LIBRARY_PATH
14408   ;;
14409
14410 freebsd* | dragonfly*)
14411   # DragonFly does not have aout.  When/if they implement a new
14412   # versioning mechanism, adjust this.
14413   if test -x /usr/bin/objformat; then
14414     objformat=`/usr/bin/objformat`
14415   else
14416     case $host_os in
14417     freebsd[23].*) objformat=aout ;;
14418     *) objformat=elf ;;
14419     esac
14420   fi
14421   version_type=freebsd-$objformat
14422   case $version_type in
14423     freebsd-elf*)
14424       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14425       need_version=no
14426       need_lib_prefix=no
14427       ;;
14428     freebsd-*)
14429       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14430       need_version=yes
14431       ;;
14432   esac
14433   shlibpath_var=LD_LIBRARY_PATH
14434   case $host_os in
14435   freebsd2.*)
14436     shlibpath_overrides_runpath=yes
14437     ;;
14438   freebsd3.[01]* | freebsdelf3.[01]*)
14439     shlibpath_overrides_runpath=yes
14440     hardcode_into_libs=yes
14441     ;;
14442   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14443   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14444     shlibpath_overrides_runpath=no
14445     hardcode_into_libs=yes
14446     ;;
14447   *) # from 4.6 on, and DragonFly
14448     shlibpath_overrides_runpath=yes
14449     hardcode_into_libs=yes
14450     ;;
14451   esac
14452   ;;
14453
14454 gnu*)
14455   version_type=linux # correct to gnu/linux during the next big refactor
14456   need_lib_prefix=no
14457   need_version=no
14458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14459   soname_spec='${libname}${release}${shared_ext}$major'
14460   shlibpath_var=LD_LIBRARY_PATH
14461   shlibpath_overrides_runpath=no
14462   hardcode_into_libs=yes
14463   ;;
14464
14465 haiku*)
14466   version_type=linux # correct to gnu/linux during the next big refactor
14467   need_lib_prefix=no
14468   need_version=no
14469   dynamic_linker="$host_os runtime_loader"
14470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14471   soname_spec='${libname}${release}${shared_ext}$major'
14472   shlibpath_var=LIBRARY_PATH
14473   shlibpath_overrides_runpath=yes
14474   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14475   hardcode_into_libs=yes
14476   ;;
14477
14478 hpux9* | hpux10* | hpux11*)
14479   # Give a soname corresponding to the major version so that dld.sl refuses to
14480   # link against other versions.
14481   version_type=sunos
14482   need_lib_prefix=no
14483   need_version=no
14484   case $host_cpu in
14485   ia64*)
14486     shrext_cmds='.so'
14487     hardcode_into_libs=yes
14488     dynamic_linker="$host_os dld.so"
14489     shlibpath_var=LD_LIBRARY_PATH
14490     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14491     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492     soname_spec='${libname}${release}${shared_ext}$major'
14493     if test "X$HPUX_IA64_MODE" = X32; then
14494       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14495     else
14496       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14497     fi
14498     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14499     ;;
14500   hppa*64*)
14501     shrext_cmds='.sl'
14502     hardcode_into_libs=yes
14503     dynamic_linker="$host_os dld.sl"
14504     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14505     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14506     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507     soname_spec='${libname}${release}${shared_ext}$major'
14508     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14509     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14510     ;;
14511   *)
14512     shrext_cmds='.sl'
14513     dynamic_linker="$host_os dld.sl"
14514     shlibpath_var=SHLIB_PATH
14515     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14516     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14517     soname_spec='${libname}${release}${shared_ext}$major'
14518     ;;
14519   esac
14520   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14521   postinstall_cmds='chmod 555 $lib'
14522   # or fails outright, so override atomically:
14523   install_override_mode=555
14524   ;;
14525
14526 interix[3-9]*)
14527   version_type=linux # correct to gnu/linux during the next big refactor
14528   need_lib_prefix=no
14529   need_version=no
14530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14531   soname_spec='${libname}${release}${shared_ext}$major'
14532   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14533   shlibpath_var=LD_LIBRARY_PATH
14534   shlibpath_overrides_runpath=no
14535   hardcode_into_libs=yes
14536   ;;
14537
14538 irix5* | irix6* | nonstopux*)
14539   case $host_os in
14540     nonstopux*) version_type=nonstopux ;;
14541     *)
14542         if test "$lt_cv_prog_gnu_ld" = yes; then
14543                 version_type=linux # correct to gnu/linux during the next big refactor
14544         else
14545                 version_type=irix
14546         fi ;;
14547   esac
14548   need_lib_prefix=no
14549   need_version=no
14550   soname_spec='${libname}${release}${shared_ext}$major'
14551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14552   case $host_os in
14553   irix5* | nonstopux*)
14554     libsuff= shlibsuff=
14555     ;;
14556   *)
14557     case $LD in # libtool.m4 will add one of these switches to LD
14558     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14559       libsuff= shlibsuff= libmagic=32-bit;;
14560     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14561       libsuff=32 shlibsuff=N32 libmagic=N32;;
14562     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14563       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14564     *) libsuff= shlibsuff= libmagic=never-match;;
14565     esac
14566     ;;
14567   esac
14568   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14569   shlibpath_overrides_runpath=no
14570   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14571   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14572   hardcode_into_libs=yes
14573   ;;
14574
14575 # No shared lib support for Linux oldld, aout, or coff.
14576 linux*oldld* | linux*aout* | linux*coff*)
14577   dynamic_linker=no
14578   ;;
14579
14580 # This must be glibc/ELF.
14581 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14582   version_type=linux # correct to gnu/linux during the next big refactor
14583   need_lib_prefix=no
14584   need_version=no
14585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586   soname_spec='${libname}${release}${shared_ext}$major'
14587   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14588   shlibpath_var=LD_LIBRARY_PATH
14589   shlibpath_overrides_runpath=no
14590
14591   # Some binutils ld are patched to set DT_RUNPATH
14592   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14593   $as_echo_n "(cached) " >&6
14594 else
14595   lt_cv_shlibpath_overrides_runpath=no
14596     save_LDFLAGS=$LDFLAGS
14597     save_libdir=$libdir
14598     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
14599          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
14600     cat > conftest.$ac_ext <<_ACEOF
14601       program main
14602
14603       end
14604 _ACEOF
14605 if ac_fn_f77_try_link "$LINENO"; then :
14606   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14607   lt_cv_shlibpath_overrides_runpath=yes
14608 fi
14609 fi
14610 rm -f core conftest.err conftest.$ac_objext \
14611     conftest$ac_exeext conftest.$ac_ext
14612     LDFLAGS=$save_LDFLAGS
14613     libdir=$save_libdir
14614
14615 fi
14616
14617   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14618
14619   # This implies no fast_install, which is unacceptable.
14620   # Some rework will be needed to allow for fast_install
14621   # before this can be enabled.
14622   hardcode_into_libs=yes
14623
14624   # Append ld.so.conf contents to the search path
14625   if test -f /etc/ld.so.conf; then
14626     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;s/"//g;/^$/d' | tr '\n' ' '`
14627     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14628   fi
14629
14630   # We used to test for /lib/ld.so.1 and disable shared libraries on
14631   # powerpc, because MkLinux only supported shared libraries with the
14632   # GNU dynamic linker.  Since this was broken with cross compilers,
14633   # most powerpc-linux boxes support dynamic linking these days and
14634   # people can always --disable-shared, the test was removed, and we
14635   # assume the GNU/Linux dynamic linker is in use.
14636   dynamic_linker='GNU/Linux ld.so'
14637   ;;
14638
14639 netbsd*)
14640   version_type=sunos
14641   need_lib_prefix=no
14642   need_version=no
14643   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14645     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14646     dynamic_linker='NetBSD (a.out) ld.so'
14647   else
14648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14649     soname_spec='${libname}${release}${shared_ext}$major'
14650     dynamic_linker='NetBSD ld.elf_so'
14651   fi
14652   shlibpath_var=LD_LIBRARY_PATH
14653   shlibpath_overrides_runpath=yes
14654   hardcode_into_libs=yes
14655   ;;
14656
14657 newsos6)
14658   version_type=linux # correct to gnu/linux during the next big refactor
14659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660   shlibpath_var=LD_LIBRARY_PATH
14661   shlibpath_overrides_runpath=yes
14662   ;;
14663
14664 *nto* | *qnx*)
14665   version_type=qnx
14666   need_lib_prefix=no
14667   need_version=no
14668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669   soname_spec='${libname}${release}${shared_ext}$major'
14670   shlibpath_var=LD_LIBRARY_PATH
14671   shlibpath_overrides_runpath=no
14672   hardcode_into_libs=yes
14673   dynamic_linker='ldqnx.so'
14674   ;;
14675
14676 openbsd*)
14677   version_type=sunos
14678   sys_lib_dlsearch_path_spec="/usr/lib"
14679   need_lib_prefix=no
14680   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14681   case $host_os in
14682     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14683     *)                          need_version=no  ;;
14684   esac
14685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14686   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14687   shlibpath_var=LD_LIBRARY_PATH
14688   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14689     case $host_os in
14690       openbsd2.[89] | openbsd2.[89].*)
14691         shlibpath_overrides_runpath=no
14692         ;;
14693       *)
14694         shlibpath_overrides_runpath=yes
14695         ;;
14696       esac
14697   else
14698     shlibpath_overrides_runpath=yes
14699   fi
14700   ;;
14701
14702 os2*)
14703   libname_spec='$name'
14704   shrext_cmds=".dll"
14705   need_lib_prefix=no
14706   library_names_spec='$libname${shared_ext} $libname.a'
14707   dynamic_linker='OS/2 ld.exe'
14708   shlibpath_var=LIBPATH
14709   ;;
14710
14711 osf3* | osf4* | osf5*)
14712   version_type=osf
14713   need_lib_prefix=no
14714   need_version=no
14715   soname_spec='${libname}${release}${shared_ext}$major'
14716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717   shlibpath_var=LD_LIBRARY_PATH
14718   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14719   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14720   ;;
14721
14722 rdos*)
14723   dynamic_linker=no
14724   ;;
14725
14726 solaris*)
14727   version_type=linux # correct to gnu/linux during the next big refactor
14728   need_lib_prefix=no
14729   need_version=no
14730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731   soname_spec='${libname}${release}${shared_ext}$major'
14732   shlibpath_var=LD_LIBRARY_PATH
14733   shlibpath_overrides_runpath=yes
14734   hardcode_into_libs=yes
14735   # ldd complains unless libraries are executable
14736   postinstall_cmds='chmod +x $lib'
14737   ;;
14738
14739 sunos4*)
14740   version_type=sunos
14741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14742   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14743   shlibpath_var=LD_LIBRARY_PATH
14744   shlibpath_overrides_runpath=yes
14745   if test "$with_gnu_ld" = yes; then
14746     need_lib_prefix=no
14747   fi
14748   need_version=yes
14749   ;;
14750
14751 sysv4 | sysv4.3*)
14752   version_type=linux # correct to gnu/linux during the next big refactor
14753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754   soname_spec='${libname}${release}${shared_ext}$major'
14755   shlibpath_var=LD_LIBRARY_PATH
14756   case $host_vendor in
14757     sni)
14758       shlibpath_overrides_runpath=no
14759       need_lib_prefix=no
14760       runpath_var=LD_RUN_PATH
14761       ;;
14762     siemens)
14763       need_lib_prefix=no
14764       ;;
14765     motorola)
14766       need_lib_prefix=no
14767       need_version=no
14768       shlibpath_overrides_runpath=no
14769       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14770       ;;
14771   esac
14772   ;;
14773
14774 sysv4*MP*)
14775   if test -d /usr/nec ;then
14776     version_type=linux # correct to gnu/linux during the next big refactor
14777     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14778     soname_spec='$libname${shared_ext}.$major'
14779     shlibpath_var=LD_LIBRARY_PATH
14780   fi
14781   ;;
14782
14783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14784   version_type=freebsd-elf
14785   need_lib_prefix=no
14786   need_version=no
14787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14788   soname_spec='${libname}${release}${shared_ext}$major'
14789   shlibpath_var=LD_LIBRARY_PATH
14790   shlibpath_overrides_runpath=yes
14791   hardcode_into_libs=yes
14792   if test "$with_gnu_ld" = yes; then
14793     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14794   else
14795     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14796     case $host_os in
14797       sco3.2v5*)
14798         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14799         ;;
14800     esac
14801   fi
14802   sys_lib_dlsearch_path_spec='/usr/lib'
14803   ;;
14804
14805 tpf*)
14806   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14807   version_type=linux # correct to gnu/linux during the next big refactor
14808   need_lib_prefix=no
14809   need_version=no
14810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811   shlibpath_var=LD_LIBRARY_PATH
14812   shlibpath_overrides_runpath=no
14813   hardcode_into_libs=yes
14814   ;;
14815
14816 uts4*)
14817   version_type=linux # correct to gnu/linux during the next big refactor
14818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819   soname_spec='${libname}${release}${shared_ext}$major'
14820   shlibpath_var=LD_LIBRARY_PATH
14821   ;;
14822
14823 *)
14824   dynamic_linker=no
14825   ;;
14826 esac
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14828 $as_echo "$dynamic_linker" >&6; }
14829 test "$dynamic_linker" = no && can_build_shared=no
14830
14831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14832 if test "$GCC" = yes; then
14833   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14834 fi
14835
14836 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14837   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14838 fi
14839 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14840   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14841 fi
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14881 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14882 hardcode_action_F77=
14883 if test -n "$hardcode_libdir_flag_spec_F77" ||
14884    test -n "$runpath_var_F77" ||
14885    test "X$hardcode_automatic_F77" = "Xyes" ; then
14886
14887   # We can hardcode non-existent directories.
14888   if test "$hardcode_direct_F77" != no &&
14889      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14890      # have to relink, otherwise we might link with an installed library
14891      # when we should be linking with a yet-to-be-installed one
14892      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14893      test "$hardcode_minus_L_F77" != no; then
14894     # Linking always hardcodes the temporary library directory.
14895     hardcode_action_F77=relink
14896   else
14897     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14898     hardcode_action_F77=immediate
14899   fi
14900 else
14901   # We cannot hardcode anything, or else we can only hardcode existing
14902   # directories.
14903   hardcode_action_F77=unsupported
14904 fi
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14906 $as_echo "$hardcode_action_F77" >&6; }
14907
14908 if test "$hardcode_action_F77" = relink ||
14909    test "$inherit_rpath_F77" = yes; then
14910   # Fast installation is not supported
14911   enable_fast_install=no
14912 elif test "$shlibpath_overrides_runpath" = yes ||
14913      test "$enable_shared" = no; then
14914   # Fast installation is not necessary
14915   enable_fast_install=needless
14916 fi
14917
14918
14919
14920
14921
14922
14923
14924   fi # test -n "$compiler"
14925
14926   GCC=$lt_save_GCC
14927   CC="$lt_save_CC"
14928   CFLAGS="$lt_save_CFLAGS"
14929 fi # test "$_lt_disable_F77" != yes
14930
14931 ac_ext=c
14932 ac_cpp='$CPP $CPPFLAGS'
14933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949         ac_config_commands="$ac_config_commands libtool"
14950
14951
14952
14953
14954 # Only expand once:
14955
14956
14957
14958
14959 ## -------- ##
14960 ## Outputs. ##
14961 ## -------- ##
14962 ac_config_files="$ac_config_files Makefile"
14963
14964 cat >confcache <<\_ACEOF
14965 # This file is a shell script that caches the results of configure
14966 # tests run on this system so they can be shared between configure
14967 # scripts and configure runs, see configure's option --config-cache.
14968 # It is not useful on other systems.  If it contains results you don't
14969 # want to keep, you may remove or edit it.
14970 #
14971 # config.status only pays attention to the cache file if you give it
14972 # the --recheck option to rerun configure.
14973 #
14974 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14975 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14976 # following values.
14977
14978 _ACEOF
14979
14980 # The following way of writing the cache mishandles newlines in values,
14981 # but we know of no workaround that is simple, portable, and efficient.
14982 # So, we kill variables containing newlines.
14983 # Ultrix sh set writes to stderr and can't be redirected directly,
14984 # and sets the high bit in the cache file unless we assign to the vars.
14985 (
14986   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14987     eval ac_val=\$$ac_var
14988     case $ac_val in #(
14989     *${as_nl}*)
14990       case $ac_var in #(
14991       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14993       esac
14994       case $ac_var in #(
14995       _ | IFS | as_nl) ;; #(
14996       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14997       *) { eval $ac_var=; unset $ac_var;} ;;
14998       esac ;;
14999     esac
15000   done
15001
15002   (set) 2>&1 |
15003     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15004     *${as_nl}ac_space=\ *)
15005       # `set' does not quote correctly, so add quotes: double-quote
15006       # substitution turns \\\\ into \\, and sed turns \\ into \.
15007       sed -n \
15008         "s/'/'\\\\''/g;
15009           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15010       ;; #(
15011     *)
15012       # `set' quotes correctly as required by POSIX, so do not add quotes.
15013       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15014       ;;
15015     esac |
15016     sort
15017 ) |
15018   sed '
15019      /^ac_cv_env_/b end
15020      t clear
15021      :clear
15022      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15023      t end
15024      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15025      :end' >>confcache
15026 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15027   if test -w "$cache_file"; then
15028     if test "x$cache_file" != "x/dev/null"; then
15029       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15030 $as_echo "$as_me: updating cache $cache_file" >&6;}
15031       if test ! -f "$cache_file" || test -h "$cache_file"; then
15032         cat confcache >"$cache_file"
15033       else
15034         case $cache_file in #(
15035         */* | ?:*)
15036           mv -f confcache "$cache_file"$$ &&
15037           mv -f "$cache_file"$$ "$cache_file" ;; #(
15038         *)
15039           mv -f confcache "$cache_file" ;;
15040         esac
15041       fi
15042     fi
15043   else
15044     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15045 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15046   fi
15047 fi
15048 rm -f confcache
15049
15050 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15051 # Let make expand exec_prefix.
15052 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15053
15054 DEFS=-DHAVE_CONFIG_H
15055
15056 ac_libobjs=
15057 ac_ltlibobjs=
15058 U=
15059 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15060   # 1. Remove the extension, and $U if already installed.
15061   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15062   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15063   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15064   #    will be set to the directory where LIBOBJS objects are built.
15065   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15066   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15067 done
15068 LIBOBJS=$ac_libobjs
15069
15070 LTLIBOBJS=$ac_ltlibobjs
15071
15072
15073  if test -n "$EXEEXT"; then
15074   am__EXEEXT_TRUE=
15075   am__EXEEXT_FALSE='#'
15076 else
15077   am__EXEEXT_TRUE='#'
15078   am__EXEEXT_FALSE=
15079 fi
15080
15081 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15082   as_fn_error $? "conditional \"AMDEP\" was never defined.
15083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15084 fi
15085 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15086   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15088 fi
15089
15090 : "${CONFIG_STATUS=./config.status}"
15091 ac_write_fail=0
15092 ac_clean_files_save=$ac_clean_files
15093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15095 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15096 as_write_fail=0
15097 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15098 #! $SHELL
15099 # Generated by $as_me.
15100 # Run this file to recreate the current configuration.
15101 # Compiler output produced by configure, useful for debugging
15102 # configure, is in config.log if it exists.
15103
15104 debug=false
15105 ac_cs_recheck=false
15106 ac_cs_silent=false
15107
15108 SHELL=\${CONFIG_SHELL-$SHELL}
15109 export SHELL
15110 _ASEOF
15111 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15112 ## -------------------- ##
15113 ## M4sh Initialization. ##
15114 ## -------------------- ##
15115
15116 # Be more Bourne compatible
15117 DUALCASE=1; export DUALCASE # for MKS sh
15118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15119   emulate sh
15120   NULLCMD=:
15121   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15122   # is contrary to our usage.  Disable this feature.
15123   alias -g '${1+"$@"}'='"$@"'
15124   setopt NO_GLOB_SUBST
15125 else
15126   case `(set -o) 2>/dev/null` in #(
15127   *posix*) :
15128     set -o posix ;; #(
15129   *) :
15130      ;;
15131 esac
15132 fi
15133
15134
15135 as_nl='
15136 '
15137 export as_nl
15138 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15139 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15142 # Prefer a ksh shell builtin over an external printf program on Solaris,
15143 # but without wasting forks for bash or zsh.
15144 if test -z "$BASH_VERSION$ZSH_VERSION" \
15145     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15146   as_echo='print -r --'
15147   as_echo_n='print -rn --'
15148 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15149   as_echo='printf %s\n'
15150   as_echo_n='printf %s'
15151 else
15152   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15153     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15154     as_echo_n='/usr/ucb/echo -n'
15155   else
15156     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15157     as_echo_n_body='eval
15158       arg=$1;
15159       case $arg in #(
15160       *"$as_nl"*)
15161         expr "X$arg" : "X\\(.*\\)$as_nl";
15162         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15163       esac;
15164       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15165     '
15166     export as_echo_n_body
15167     as_echo_n='sh -c $as_echo_n_body as_echo'
15168   fi
15169   export as_echo_body
15170   as_echo='sh -c $as_echo_body as_echo'
15171 fi
15172
15173 # The user is always right.
15174 if test "${PATH_SEPARATOR+set}" != set; then
15175   PATH_SEPARATOR=:
15176   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15177     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15178       PATH_SEPARATOR=';'
15179   }
15180 fi
15181
15182
15183 # IFS
15184 # We need space, tab and new line, in precisely that order.  Quoting is
15185 # there to prevent editors from complaining about space-tab.
15186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15187 # splitting by setting IFS to empty value.)
15188 IFS=" ""        $as_nl"
15189
15190 # Find who we are.  Look in the path if we contain no directory separator.
15191 as_myself=
15192 case $0 in #((
15193   *[\\/]* ) as_myself=$0 ;;
15194   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195 for as_dir in $PATH
15196 do
15197   IFS=$as_save_IFS
15198   test -z "$as_dir" && as_dir=.
15199     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15200   done
15201 IFS=$as_save_IFS
15202
15203      ;;
15204 esac
15205 # We did not find ourselves, most probably we were run as `sh COMMAND'
15206 # in which case we are not to be found in the path.
15207 if test "x$as_myself" = x; then
15208   as_myself=$0
15209 fi
15210 if test ! -f "$as_myself"; then
15211   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15212   exit 1
15213 fi
15214
15215 # Unset variables that we do not need and which cause bugs (e.g. in
15216 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15217 # suppresses any "Segmentation fault" message there.  '((' could
15218 # trigger a bug in pdksh 5.2.14.
15219 for as_var in BASH_ENV ENV MAIL MAILPATH
15220 do eval test x\${$as_var+set} = xset \
15221   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15222 done
15223 PS1='$ '
15224 PS2='> '
15225 PS4='+ '
15226
15227 # NLS nuisances.
15228 LC_ALL=C
15229 export LC_ALL
15230 LANGUAGE=C
15231 export LANGUAGE
15232
15233 # CDPATH.
15234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15235
15236
15237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15238 # ----------------------------------------
15239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15241 # script with STATUS, using 1 if that was 0.
15242 as_fn_error ()
15243 {
15244   as_status=$1; test $as_status -eq 0 && as_status=1
15245   if test "$4"; then
15246     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15247     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15248   fi
15249   $as_echo "$as_me: error: $2" >&2
15250   as_fn_exit $as_status
15251 } # as_fn_error
15252
15253
15254 # as_fn_set_status STATUS
15255 # -----------------------
15256 # Set $? to STATUS, without forking.
15257 as_fn_set_status ()
15258 {
15259   return $1
15260 } # as_fn_set_status
15261
15262 # as_fn_exit STATUS
15263 # -----------------
15264 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15265 as_fn_exit ()
15266 {
15267   set +e
15268   as_fn_set_status $1
15269   exit $1
15270 } # as_fn_exit
15271
15272 # as_fn_unset VAR
15273 # ---------------
15274 # Portably unset VAR.
15275 as_fn_unset ()
15276 {
15277   { eval $1=; unset $1;}
15278 }
15279 as_unset=as_fn_unset
15280 # as_fn_append VAR VALUE
15281 # ----------------------
15282 # Append the text in VALUE to the end of the definition contained in VAR. Take
15283 # advantage of any shell optimizations that allow amortized linear growth over
15284 # repeated appends, instead of the typical quadratic growth present in naive
15285 # implementations.
15286 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15287   eval 'as_fn_append ()
15288   {
15289     eval $1+=\$2
15290   }'
15291 else
15292   as_fn_append ()
15293   {
15294     eval $1=\$$1\$2
15295   }
15296 fi # as_fn_append
15297
15298 # as_fn_arith ARG...
15299 # ------------------
15300 # Perform arithmetic evaluation on the ARGs, and store the result in the
15301 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15302 # must be portable across $(()) and expr.
15303 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15304   eval 'as_fn_arith ()
15305   {
15306     as_val=$(( $* ))
15307   }'
15308 else
15309   as_fn_arith ()
15310   {
15311     as_val=`expr "$@" || test $? -eq 1`
15312   }
15313 fi # as_fn_arith
15314
15315
15316 if expr a : '\(a\)' >/dev/null 2>&1 &&
15317    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15318   as_expr=expr
15319 else
15320   as_expr=false
15321 fi
15322
15323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15324   as_basename=basename
15325 else
15326   as_basename=false
15327 fi
15328
15329 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15330   as_dirname=dirname
15331 else
15332   as_dirname=false
15333 fi
15334
15335 as_me=`$as_basename -- "$0" ||
15336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15337          X"$0" : 'X\(//\)$' \| \
15338          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15339 $as_echo X/"$0" |
15340     sed '/^.*\/\([^/][^/]*\)\/*$/{
15341             s//\1/
15342             q
15343           }
15344           /^X\/\(\/\/\)$/{
15345             s//\1/
15346             q
15347           }
15348           /^X\/\(\/\).*/{
15349             s//\1/
15350             q
15351           }
15352           s/.*/./; q'`
15353
15354 # Avoid depending upon Character Ranges.
15355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15358 as_cr_digits='0123456789'
15359 as_cr_alnum=$as_cr_Letters$as_cr_digits
15360
15361 ECHO_C= ECHO_N= ECHO_T=
15362 case `echo -n x` in #(((((
15363 -n*)
15364   case `echo 'xy\c'` in
15365   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15366   xy)  ECHO_C='\c';;
15367   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15368        ECHO_T=' ';;
15369   esac;;
15370 *)
15371   ECHO_N='-n';;
15372 esac
15373
15374 rm -f conf$$ conf$$.exe conf$$.file
15375 if test -d conf$$.dir; then
15376   rm -f conf$$.dir/conf$$.file
15377 else
15378   rm -f conf$$.dir
15379   mkdir conf$$.dir 2>/dev/null
15380 fi
15381 if (echo >conf$$.file) 2>/dev/null; then
15382   if ln -s conf$$.file conf$$ 2>/dev/null; then
15383     as_ln_s='ln -s'
15384     # ... but there are two gotchas:
15385     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15386     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15387     # In both cases, we have to default to `cp -p'.
15388     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15389       as_ln_s='cp -p'
15390   elif ln conf$$.file conf$$ 2>/dev/null; then
15391     as_ln_s=ln
15392   else
15393     as_ln_s='cp -p'
15394   fi
15395 else
15396   as_ln_s='cp -p'
15397 fi
15398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15399 rmdir conf$$.dir 2>/dev/null
15400
15401
15402 # as_fn_mkdir_p
15403 # -------------
15404 # Create "$as_dir" as a directory, including parents if necessary.
15405 as_fn_mkdir_p ()
15406 {
15407
15408   case $as_dir in #(
15409   -*) as_dir=./$as_dir;;
15410   esac
15411   test -d "$as_dir" || eval $as_mkdir_p || {
15412     as_dirs=
15413     while :; do
15414       case $as_dir in #(
15415       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15416       *) as_qdir=$as_dir;;
15417       esac
15418       as_dirs="'$as_qdir' $as_dirs"
15419       as_dir=`$as_dirname -- "$as_dir" ||
15420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15421          X"$as_dir" : 'X\(//\)[^/]' \| \
15422          X"$as_dir" : 'X\(//\)$' \| \
15423          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15424 $as_echo X"$as_dir" |
15425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15426             s//\1/
15427             q
15428           }
15429           /^X\(\/\/\)[^/].*/{
15430             s//\1/
15431             q
15432           }
15433           /^X\(\/\/\)$/{
15434             s//\1/
15435             q
15436           }
15437           /^X\(\/\).*/{
15438             s//\1/
15439             q
15440           }
15441           s/.*/./; q'`
15442       test -d "$as_dir" && break
15443     done
15444     test -z "$as_dirs" || eval "mkdir $as_dirs"
15445   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15446
15447
15448 } # as_fn_mkdir_p
15449 if mkdir -p . 2>/dev/null; then
15450   as_mkdir_p='mkdir -p "$as_dir"'
15451 else
15452   test -d ./-p && rmdir ./-p
15453   as_mkdir_p=false
15454 fi
15455
15456 if test -x / >/dev/null 2>&1; then
15457   as_test_x='test -x'
15458 else
15459   if ls -dL / >/dev/null 2>&1; then
15460     as_ls_L_option=L
15461   else
15462     as_ls_L_option=
15463   fi
15464   as_test_x='
15465     eval sh -c '\''
15466       if test -d "$1"; then
15467         test -d "$1/.";
15468       else
15469         case $1 in #(
15470         -*)set "./$1";;
15471         esac;
15472         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15473         ???[sx]*):;;*)false;;esac;fi
15474     '\'' sh
15475   '
15476 fi
15477 as_executable_p=$as_test_x
15478
15479 # Sed expression to map a string onto a valid CPP name.
15480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15481
15482 # Sed expression to map a string onto a valid variable name.
15483 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15484
15485
15486 exec 6>&1
15487 ## ----------------------------------- ##
15488 ## Main body of $CONFIG_STATUS script. ##
15489 ## ----------------------------------- ##
15490 _ASEOF
15491 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15492
15493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15494 # Save the log message, to keep $0 and so on meaningful, and to
15495 # report actual input values of CONFIG_FILES etc. instead of their
15496 # values after options handling.
15497 ac_log="
15498 This file was extended by f77demo $as_me 1.0, which was
15499 generated by GNU Autoconf 2.68.  Invocation command line was
15500
15501   CONFIG_FILES    = $CONFIG_FILES
15502   CONFIG_HEADERS  = $CONFIG_HEADERS
15503   CONFIG_LINKS    = $CONFIG_LINKS
15504   CONFIG_COMMANDS = $CONFIG_COMMANDS
15505   $ $0 $@
15506
15507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15508 "
15509
15510 _ACEOF
15511
15512 case $ac_config_files in *"
15513 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15514 esac
15515
15516 case $ac_config_headers in *"
15517 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15518 esac
15519
15520
15521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15522 # Files that config.status was made for.
15523 config_files="$ac_config_files"
15524 config_headers="$ac_config_headers"
15525 config_commands="$ac_config_commands"
15526
15527 _ACEOF
15528
15529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15530 ac_cs_usage="\
15531 \`$as_me' instantiates files and other configuration actions
15532 from templates according to the current configuration.  Unless the files
15533 and actions are specified as TAGs, all are instantiated by default.
15534
15535 Usage: $0 [OPTION]... [TAG]...
15536
15537   -h, --help       print this help, then exit
15538   -V, --version    print version number and configuration settings, then exit
15539       --config     print configuration, then exit
15540   -q, --quiet, --silent
15541                    do not print progress messages
15542   -d, --debug      don't remove temporary files
15543       --recheck    update $as_me by reconfiguring in the same conditions
15544       --file=FILE[:TEMPLATE]
15545                    instantiate the configuration file FILE
15546       --header=FILE[:TEMPLATE]
15547                    instantiate the configuration header FILE
15548
15549 Configuration files:
15550 $config_files
15551
15552 Configuration headers:
15553 $config_headers
15554
15555 Configuration commands:
15556 $config_commands
15557
15558 Report bugs to <bug-libtool@gnu.org>."
15559
15560 _ACEOF
15561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15562 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15563 ac_cs_version="\\
15564 f77demo config.status 1.0
15565 configured by $0, generated by GNU Autoconf 2.68,
15566   with options \\"\$ac_cs_config\\"
15567
15568 Copyright (C) 2010 Free Software Foundation, Inc.
15569 This config.status script is free software; the Free Software Foundation
15570 gives unlimited permission to copy, distribute and modify it."
15571
15572 ac_pwd='$ac_pwd'
15573 srcdir='$srcdir'
15574 INSTALL='$INSTALL'
15575 MKDIR_P='$MKDIR_P'
15576 AWK='$AWK'
15577 test -n "\$AWK" || AWK=awk
15578 _ACEOF
15579
15580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15581 # The default lists apply if the user does not specify any file.
15582 ac_need_defaults=:
15583 while test $# != 0
15584 do
15585   case $1 in
15586   --*=?*)
15587     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15588     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15589     ac_shift=:
15590     ;;
15591   --*=)
15592     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15593     ac_optarg=
15594     ac_shift=:
15595     ;;
15596   *)
15597     ac_option=$1
15598     ac_optarg=$2
15599     ac_shift=shift
15600     ;;
15601   esac
15602
15603   case $ac_option in
15604   # Handling of the options.
15605   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15606     ac_cs_recheck=: ;;
15607   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15608     $as_echo "$ac_cs_version"; exit ;;
15609   --config | --confi | --conf | --con | --co | --c )
15610     $as_echo "$ac_cs_config"; exit ;;
15611   --debug | --debu | --deb | --de | --d | -d )
15612     debug=: ;;
15613   --file | --fil | --fi | --f )
15614     $ac_shift
15615     case $ac_optarg in
15616     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15617     '') as_fn_error $? "missing file argument" ;;
15618     esac
15619     as_fn_append CONFIG_FILES " '$ac_optarg'"
15620     ac_need_defaults=false;;
15621   --header | --heade | --head | --hea )
15622     $ac_shift
15623     case $ac_optarg in
15624     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15625     esac
15626     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15627     ac_need_defaults=false;;
15628   --he | --h)
15629     # Conflict between --help and --header
15630     as_fn_error $? "ambiguous option: \`$1'
15631 Try \`$0 --help' for more information.";;
15632   --help | --hel | -h )
15633     $as_echo "$ac_cs_usage"; exit ;;
15634   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15635   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15636     ac_cs_silent=: ;;
15637
15638   # This is an error.
15639   -*) as_fn_error $? "unrecognized option: \`$1'
15640 Try \`$0 --help' for more information." ;;
15641
15642   *) as_fn_append ac_config_targets " $1"
15643      ac_need_defaults=false ;;
15644
15645   esac
15646   shift
15647 done
15648
15649 ac_configure_extra_args=
15650
15651 if $ac_cs_silent; then
15652   exec 6>/dev/null
15653   ac_configure_extra_args="$ac_configure_extra_args --silent"
15654 fi
15655
15656 _ACEOF
15657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15658 if \$ac_cs_recheck; then
15659   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15660   shift
15661   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15662   CONFIG_SHELL='$SHELL'
15663   export CONFIG_SHELL
15664   exec "\$@"
15665 fi
15666
15667 _ACEOF
15668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15669 exec 5>>config.log
15670 {
15671   echo
15672   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15673 ## Running $as_me. ##
15674 _ASBOX
15675   $as_echo "$ac_log"
15676 } >&5
15677
15678 _ACEOF
15679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15680 #
15681 # INIT-COMMANDS
15682 #
15683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15684
15685
15686 # The HP-UX ksh and POSIX shell print the target directory to stdout
15687 # if CDPATH is set.
15688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15689
15690 sed_quote_subst='$sed_quote_subst'
15691 double_quote_subst='$double_quote_subst'
15692 delay_variable_subst='$delay_variable_subst'
15693 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15694 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15695 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15696 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15697 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15698 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15699 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15700 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15701 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15702 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15703 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15704 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15705 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15706 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15707 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15708 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15709 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15710 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15711 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15712 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15713 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15714 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15715 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15716 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15717 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15718 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15719 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15720 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15721 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15722 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15723 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15724 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15725 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15726 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15727 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15728 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15729 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15730 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15731 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15732 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15733 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15734 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15735 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15736 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15737 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15738 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15739 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15740 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15741 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15742 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15743 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15744 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15745 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15746 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15747 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15748 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15749 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15750 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15751 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15752 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15753 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15754 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15755 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15756 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15757 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15758 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15759 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15760 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15761 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15762 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15763 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15764 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15765 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15766 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15767 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15768 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15769 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15770 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15771 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15772 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15773 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15774 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15775 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15776 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15777 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15778 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15779 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15780 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15781 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15782 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15783 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15784 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15785 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15786 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15787 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15788 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15789 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15790 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15791 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15792 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15793 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15794 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15795 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15796 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15797 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15798 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15799 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15800 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15801 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15802 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15803 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15804 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15805 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15806 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15807 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15808 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15809 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15810 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15811 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15812 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15813 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15814 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15815 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15816 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15817 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15818 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15819 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15820 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15821 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15822 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15823 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
15824 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
15825 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
15826 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
15827 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
15828 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
15829 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
15830 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
15831 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
15832 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
15833 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
15834 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
15835 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
15836 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
15837 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
15838 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
15839 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
15840 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
15841 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
15842 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
15843 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
15844 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
15845 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
15846 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
15847 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
15848 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
15849 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
15850 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
15851 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
15852 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
15853 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
15854 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
15855 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
15856 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
15857 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
15858 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
15859 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
15860 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
15861 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
15862 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
15863 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
15864 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
15865
15866 LTCC='$LTCC'
15867 LTCFLAGS='$LTCFLAGS'
15868 compiler='$compiler_DEFAULT'
15869
15870 # A function that is used when there is no print builtin or printf.
15871 func_fallback_echo ()
15872 {
15873   eval 'cat <<_LTECHO_EOF
15874 \$1
15875 _LTECHO_EOF'
15876 }
15877
15878 # Quote evaled strings.
15879 for var in SHELL \
15880 ECHO \
15881 PATH_SEPARATOR \
15882 SED \
15883 GREP \
15884 EGREP \
15885 FGREP \
15886 LD \
15887 NM \
15888 LN_S \
15889 lt_SP2NL \
15890 lt_NL2SP \
15891 reload_flag \
15892 OBJDUMP \
15893 deplibs_check_method \
15894 file_magic_cmd \
15895 file_magic_glob \
15896 want_nocaseglob \
15897 DLLTOOL \
15898 sharedlib_from_linklib_cmd \
15899 AR \
15900 AR_FLAGS \
15901 archiver_list_spec \
15902 STRIP \
15903 RANLIB \
15904 CC \
15905 CFLAGS \
15906 compiler \
15907 lt_cv_sys_global_symbol_pipe \
15908 lt_cv_sys_global_symbol_to_cdecl \
15909 lt_cv_sys_global_symbol_to_c_name_address \
15910 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15911 nm_file_list_spec \
15912 lt_prog_compiler_no_builtin_flag \
15913 lt_prog_compiler_pic \
15914 lt_prog_compiler_wl \
15915 lt_prog_compiler_static \
15916 lt_cv_prog_compiler_c_o \
15917 need_locks \
15918 MANIFEST_TOOL \
15919 DSYMUTIL \
15920 NMEDIT \
15921 LIPO \
15922 OTOOL \
15923 OTOOL64 \
15924 shrext_cmds \
15925 export_dynamic_flag_spec \
15926 whole_archive_flag_spec \
15927 compiler_needs_object \
15928 with_gnu_ld \
15929 allow_undefined_flag \
15930 no_undefined_flag \
15931 hardcode_libdir_flag_spec \
15932 hardcode_libdir_separator \
15933 exclude_expsyms \
15934 include_expsyms \
15935 file_list_spec \
15936 variables_saved_for_relink \
15937 libname_spec \
15938 library_names_spec \
15939 soname_spec \
15940 install_override_mode \
15941 finish_eval \
15942 old_striplib \
15943 striplib \
15944 LD_F77 \
15945 reload_flag_F77 \
15946 compiler_F77 \
15947 lt_prog_compiler_no_builtin_flag_F77 \
15948 lt_prog_compiler_pic_F77 \
15949 lt_prog_compiler_wl_F77 \
15950 lt_prog_compiler_static_F77 \
15951 lt_cv_prog_compiler_c_o_F77 \
15952 export_dynamic_flag_spec_F77 \
15953 whole_archive_flag_spec_F77 \
15954 compiler_needs_object_F77 \
15955 with_gnu_ld_F77 \
15956 allow_undefined_flag_F77 \
15957 no_undefined_flag_F77 \
15958 hardcode_libdir_flag_spec_F77 \
15959 hardcode_libdir_separator_F77 \
15960 exclude_expsyms_F77 \
15961 include_expsyms_F77 \
15962 file_list_spec_F77; do
15963     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15964     *[\\\\\\\`\\"\\\$]*)
15965       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15966       ;;
15967     *)
15968       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15969       ;;
15970     esac
15971 done
15972
15973 # Double-quote double-evaled strings.
15974 for var in reload_cmds \
15975 old_postinstall_cmds \
15976 old_postuninstall_cmds \
15977 old_archive_cmds \
15978 extract_expsyms_cmds \
15979 old_archive_from_new_cmds \
15980 old_archive_from_expsyms_cmds \
15981 archive_cmds \
15982 archive_expsym_cmds \
15983 module_cmds \
15984 module_expsym_cmds \
15985 export_symbols_cmds \
15986 prelink_cmds \
15987 postlink_cmds \
15988 postinstall_cmds \
15989 postuninstall_cmds \
15990 finish_cmds \
15991 sys_lib_search_path_spec \
15992 sys_lib_dlsearch_path_spec \
15993 reload_cmds_F77 \
15994 old_archive_cmds_F77 \
15995 old_archive_from_new_cmds_F77 \
15996 old_archive_from_expsyms_cmds_F77 \
15997 archive_cmds_F77 \
15998 archive_expsym_cmds_F77 \
15999 module_cmds_F77 \
16000 module_expsym_cmds_F77 \
16001 export_symbols_cmds_F77 \
16002 prelink_cmds_F77 \
16003 postlink_cmds_F77; do
16004     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16005     *[\\\\\\\`\\"\\\$]*)
16006       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16007       ;;
16008     *)
16009       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16010       ;;
16011     esac
16012 done
16013
16014 ac_aux_dir='$ac_aux_dir'
16015 xsi_shell='$xsi_shell'
16016 lt_shell_append='$lt_shell_append'
16017
16018 # See if we are running on zsh, and set the options which allow our
16019 # commands through without removal of \ escapes INIT.
16020 if test -n "\${ZSH_VERSION+set}" ; then
16021    setopt NO_GLOB_SUBST
16022 fi
16023
16024
16025     PACKAGE='$PACKAGE'
16026     VERSION='$VERSION'
16027     TIMESTAMP='$TIMESTAMP'
16028     RM='$RM'
16029     ofile='$ofile'
16030
16031
16032
16033
16034
16035
16036 _ACEOF
16037
16038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16039
16040 # Handling of arguments.
16041 for ac_config_target in $ac_config_targets
16042 do
16043   case $ac_config_target in
16044     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
16045     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16046     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16047     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16048
16049   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16050   esac
16051 done
16052
16053
16054 # If the user did not use the arguments to specify the items to instantiate,
16055 # then the envvar interface is used.  Set only those that are not.
16056 # We use the long form for the default assignment because of an extremely
16057 # bizarre bug on SunOS 4.1.3.
16058 if $ac_need_defaults; then
16059   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16060   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16061   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16062 fi
16063
16064 # Have a temporary directory for convenience.  Make it in the build tree
16065 # simply because there is no reason against having it here, and in addition,
16066 # creating and moving files from /tmp can sometimes cause problems.
16067 # Hook for its removal unless debugging.
16068 # Note that there is a small window in which the directory will not be cleaned:
16069 # after its creation but before its name has been assigned to `$tmp'.
16070 $debug ||
16071 {
16072   tmp= ac_tmp=
16073   trap 'exit_status=$?
16074   : "${ac_tmp:=$tmp}"
16075   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16076 ' 0
16077   trap 'as_fn_exit 1' 1 2 13 15
16078 }
16079 # Create a (secure) tmp directory for tmp files.
16080
16081 {
16082   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16083   test -d "$tmp"
16084 }  ||
16085 {
16086   tmp=./conf$$-$RANDOM
16087   (umask 077 && mkdir "$tmp")
16088 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16089 ac_tmp=$tmp
16090
16091 # Set up the scripts for CONFIG_FILES section.
16092 # No need to generate them if there are no CONFIG_FILES.
16093 # This happens for instance with `./config.status config.h'.
16094 if test -n "$CONFIG_FILES"; then
16095
16096
16097 ac_cr=`echo X | tr X '\015'`
16098 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16099 # But we know of no other shell where ac_cr would be empty at this
16100 # point, so we can use a bashism as a fallback.
16101 if test "x$ac_cr" = x; then
16102   eval ac_cr=\$\'\\r\'
16103 fi
16104 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16105 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16106   ac_cs_awk_cr='\\r'
16107 else
16108   ac_cs_awk_cr=$ac_cr
16109 fi
16110
16111 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16112 _ACEOF
16113
16114
16115 {
16116   echo "cat >conf$$subs.awk <<_ACEOF" &&
16117   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16118   echo "_ACEOF"
16119 } >conf$$subs.sh ||
16120   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16121 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16122 ac_delim='%!_!# '
16123 for ac_last_try in false false false false false :; do
16124   . ./conf$$subs.sh ||
16125     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16126
16127   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16128   if test $ac_delim_n = $ac_delim_num; then
16129     break
16130   elif $ac_last_try; then
16131     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16132   else
16133     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16134   fi
16135 done
16136 rm -f conf$$subs.sh
16137
16138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16139 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16140 _ACEOF
16141 sed -n '
16142 h
16143 s/^/S["/; s/!.*/"]=/
16144 p
16145 g
16146 s/^[^!]*!//
16147 :repl
16148 t repl
16149 s/'"$ac_delim"'$//
16150 t delim
16151 :nl
16152 h
16153 s/\(.\{148\}\)..*/\1/
16154 t more1
16155 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16156 p
16157 n
16158 b repl
16159 :more1
16160 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16161 p
16162 g
16163 s/.\{148\}//
16164 t nl
16165 :delim
16166 h
16167 s/\(.\{148\}\)..*/\1/
16168 t more2
16169 s/["\\]/\\&/g; s/^/"/; s/$/"/
16170 p
16171 b
16172 :more2
16173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16174 p
16175 g
16176 s/.\{148\}//
16177 t delim
16178 ' <conf$$subs.awk | sed '
16179 /^[^""]/{
16180   N
16181   s/\n//
16182 }
16183 ' >>$CONFIG_STATUS || ac_write_fail=1
16184 rm -f conf$$subs.awk
16185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16186 _ACAWK
16187 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16188   for (key in S) S_is_set[key] = 1
16189   FS = "\a"
16190
16191 }
16192 {
16193   line = $ 0
16194   nfields = split(line, field, "@")
16195   substed = 0
16196   len = length(field[1])
16197   for (i = 2; i < nfields; i++) {
16198     key = field[i]
16199     keylen = length(key)
16200     if (S_is_set[key]) {
16201       value = S[key]
16202       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16203       len += length(value) + length(field[++i])
16204       substed = 1
16205     } else
16206       len += 1 + keylen
16207   }
16208
16209   print line
16210 }
16211
16212 _ACAWK
16213 _ACEOF
16214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16215 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16216   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16217 else
16218   cat
16219 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16220   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16221 _ACEOF
16222
16223 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16224 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16225 # trailing colons and then remove the whole line if VPATH becomes empty
16226 # (actually we leave an empty line to preserve line numbers).
16227 if test "x$srcdir" = x.; then
16228   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16229 h
16230 s///
16231 s/^/:/
16232 s/[      ]*$/:/
16233 s/:\$(srcdir):/:/g
16234 s/:\${srcdir}:/:/g
16235 s/:@srcdir@:/:/g
16236 s/^:*//
16237 s/:*$//
16238 x
16239 s/\(=[   ]*\).*/\1/
16240 G
16241 s/\n//
16242 s/^[^=]*=[       ]*$//
16243 }'
16244 fi
16245
16246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16247 fi # test -n "$CONFIG_FILES"
16248
16249 # Set up the scripts for CONFIG_HEADERS section.
16250 # No need to generate them if there are no CONFIG_HEADERS.
16251 # This happens for instance with `./config.status Makefile'.
16252 if test -n "$CONFIG_HEADERS"; then
16253 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16254 BEGIN {
16255 _ACEOF
16256
16257 # Transform confdefs.h into an awk script `defines.awk', embedded as
16258 # here-document in config.status, that substitutes the proper values into
16259 # config.h.in to produce config.h.
16260
16261 # Create a delimiter string that does not exist in confdefs.h, to ease
16262 # handling of long lines.
16263 ac_delim='%!_!# '
16264 for ac_last_try in false false :; do
16265   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16266   if test -z "$ac_tt"; then
16267     break
16268   elif $ac_last_try; then
16269     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16270   else
16271     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16272   fi
16273 done
16274
16275 # For the awk script, D is an array of macro values keyed by name,
16276 # likewise P contains macro parameters if any.  Preserve backslash
16277 # newline sequences.
16278
16279 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16280 sed -n '
16281 s/.\{148\}/&'"$ac_delim"'/g
16282 t rset
16283 :rset
16284 s/^[     ]*#[    ]*define[       ][      ]*/ /
16285 t def
16286 d
16287 :def
16288 s/\\$//
16289 t bsnl
16290 s/["\\]/\\&/g
16291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16292 D["\1"]=" \3"/p
16293 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16294 d
16295 :bsnl
16296 s/["\\]/\\&/g
16297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16298 D["\1"]=" \3\\\\\\n"\\/p
16299 t cont
16300 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16301 t cont
16302 d
16303 :cont
16304 n
16305 s/.\{148\}/&'"$ac_delim"'/g
16306 t clear
16307 :clear
16308 s/\\$//
16309 t bsnlc
16310 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16311 d
16312 :bsnlc
16313 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16314 b cont
16315 ' <confdefs.h | sed '
16316 s/'"$ac_delim"'/"\\\
16317 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16318
16319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16320   for (key in D) D_is_set[key] = 1
16321   FS = "\a"
16322 }
16323 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16324   line = \$ 0
16325   split(line, arg, " ")
16326   if (arg[1] == "#") {
16327     defundef = arg[2]
16328     mac1 = arg[3]
16329   } else {
16330     defundef = substr(arg[1], 2)
16331     mac1 = arg[2]
16332   }
16333   split(mac1, mac2, "(") #)
16334   macro = mac2[1]
16335   prefix = substr(line, 1, index(line, defundef) - 1)
16336   if (D_is_set[macro]) {
16337     # Preserve the white space surrounding the "#".
16338     print prefix "define", macro P[macro] D[macro]
16339     next
16340   } else {
16341     # Replace #undef with comments.  This is necessary, for example,
16342     # in the case of _POSIX_SOURCE, which is predefined and required
16343     # on some systems where configure will not decide to define it.
16344     if (defundef == "undef") {
16345       print "/*", prefix defundef, macro, "*/"
16346       next
16347     }
16348   }
16349 }
16350 { print }
16351 _ACAWK
16352 _ACEOF
16353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16354   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16355 fi # test -n "$CONFIG_HEADERS"
16356
16357
16358 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16359 shift
16360 for ac_tag
16361 do
16362   case $ac_tag in
16363   :[FHLC]) ac_mode=$ac_tag; continue;;
16364   esac
16365   case $ac_mode$ac_tag in
16366   :[FHL]*:*);;
16367   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16368   :[FH]-) ac_tag=-:-;;
16369   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16370   esac
16371   ac_save_IFS=$IFS
16372   IFS=:
16373   set x $ac_tag
16374   IFS=$ac_save_IFS
16375   shift
16376   ac_file=$1
16377   shift
16378
16379   case $ac_mode in
16380   :L) ac_source=$1;;
16381   :[FH])
16382     ac_file_inputs=
16383     for ac_f
16384     do
16385       case $ac_f in
16386       -) ac_f="$ac_tmp/stdin";;
16387       *) # Look for the file first in the build tree, then in the source tree
16388          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16389          # because $ac_f cannot contain `:'.
16390          test -f "$ac_f" ||
16391            case $ac_f in
16392            [\\/$]*) false;;
16393            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16394            esac ||
16395            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16396       esac
16397       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16398       as_fn_append ac_file_inputs " '$ac_f'"
16399     done
16400
16401     # Let's still pretend it is `configure' which instantiates (i.e., don't
16402     # use $as_me), people would be surprised to read:
16403     #    /* config.h.  Generated by config.status.  */
16404     configure_input='Generated from '`
16405           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16406         `' by configure.'
16407     if test x"$ac_file" != x-; then
16408       configure_input="$ac_file.  $configure_input"
16409       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16410 $as_echo "$as_me: creating $ac_file" >&6;}
16411     fi
16412     # Neutralize special characters interpreted by sed in replacement strings.
16413     case $configure_input in #(
16414     *\&* | *\|* | *\\* )
16415        ac_sed_conf_input=`$as_echo "$configure_input" |
16416        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16417     *) ac_sed_conf_input=$configure_input;;
16418     esac
16419
16420     case $ac_tag in
16421     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16422       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16423     esac
16424     ;;
16425   esac
16426
16427   ac_dir=`$as_dirname -- "$ac_file" ||
16428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16429          X"$ac_file" : 'X\(//\)[^/]' \| \
16430          X"$ac_file" : 'X\(//\)$' \| \
16431          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16432 $as_echo X"$ac_file" |
16433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16434             s//\1/
16435             q
16436           }
16437           /^X\(\/\/\)[^/].*/{
16438             s//\1/
16439             q
16440           }
16441           /^X\(\/\/\)$/{
16442             s//\1/
16443             q
16444           }
16445           /^X\(\/\).*/{
16446             s//\1/
16447             q
16448           }
16449           s/.*/./; q'`
16450   as_dir="$ac_dir"; as_fn_mkdir_p
16451   ac_builddir=.
16452
16453 case "$ac_dir" in
16454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16455 *)
16456   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16457   # A ".." for each directory in $ac_dir_suffix.
16458   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16459   case $ac_top_builddir_sub in
16460   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16461   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16462   esac ;;
16463 esac
16464 ac_abs_top_builddir=$ac_pwd
16465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16466 # for backward compatibility:
16467 ac_top_builddir=$ac_top_build_prefix
16468
16469 case $srcdir in
16470   .)  # We are building in place.
16471     ac_srcdir=.
16472     ac_top_srcdir=$ac_top_builddir_sub
16473     ac_abs_top_srcdir=$ac_pwd ;;
16474   [\\/]* | ?:[\\/]* )  # Absolute name.
16475     ac_srcdir=$srcdir$ac_dir_suffix;
16476     ac_top_srcdir=$srcdir
16477     ac_abs_top_srcdir=$srcdir ;;
16478   *) # Relative name.
16479     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16480     ac_top_srcdir=$ac_top_build_prefix$srcdir
16481     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16482 esac
16483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16484
16485
16486   case $ac_mode in
16487   :F)
16488   #
16489   # CONFIG_FILE
16490   #
16491
16492   case $INSTALL in
16493   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16494   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16495   esac
16496   ac_MKDIR_P=$MKDIR_P
16497   case $MKDIR_P in
16498   [\\/$]* | ?:[\\/]* ) ;;
16499   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16500   esac
16501 _ACEOF
16502
16503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 # If the template does not know about datarootdir, expand it.
16505 # FIXME: This hack should be removed a few years after 2.60.
16506 ac_datarootdir_hack=; ac_datarootdir_seen=
16507 ac_sed_dataroot='
16508 /datarootdir/ {
16509   p
16510   q
16511 }
16512 /@datadir@/p
16513 /@docdir@/p
16514 /@infodir@/p
16515 /@localedir@/p
16516 /@mandir@/p'
16517 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16518 *datarootdir*) ac_datarootdir_seen=yes;;
16519 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16520   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16521 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16522 _ACEOF
16523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16524   ac_datarootdir_hack='
16525   s&@datadir@&$datadir&g
16526   s&@docdir@&$docdir&g
16527   s&@infodir@&$infodir&g
16528   s&@localedir@&$localedir&g
16529   s&@mandir@&$mandir&g
16530   s&\\\${datarootdir}&$datarootdir&g' ;;
16531 esac
16532 _ACEOF
16533
16534 # Neutralize VPATH when `$srcdir' = `.'.
16535 # Shell code in configure.ac might set extrasub.
16536 # FIXME: do we really want to maintain this feature?
16537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16538 ac_sed_extra="$ac_vpsub
16539 $extrasub
16540 _ACEOF
16541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16542 :t
16543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16544 s|@configure_input@|$ac_sed_conf_input|;t t
16545 s&@top_builddir@&$ac_top_builddir_sub&;t t
16546 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16547 s&@srcdir@&$ac_srcdir&;t t
16548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16549 s&@top_srcdir@&$ac_top_srcdir&;t t
16550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16551 s&@builddir@&$ac_builddir&;t t
16552 s&@abs_builddir@&$ac_abs_builddir&;t t
16553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16554 s&@INSTALL@&$ac_INSTALL&;t t
16555 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16556 $ac_datarootdir_hack
16557 "
16558 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16559   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16560
16561 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16562   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16563   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16564       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16565   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16566 which seems to be undefined.  Please make sure it is defined" >&5
16567 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16568 which seems to be undefined.  Please make sure it is defined" >&2;}
16569
16570   rm -f "$ac_tmp/stdin"
16571   case $ac_file in
16572   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16573   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16574   esac \
16575   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16576  ;;
16577   :H)
16578   #
16579   # CONFIG_HEADER
16580   #
16581   if test x"$ac_file" != x-; then
16582     {
16583       $as_echo "/* $configure_input  */" \
16584       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16585     } >"$ac_tmp/config.h" \
16586       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16587     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16588       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16589 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16590     else
16591       rm -f "$ac_file"
16592       mv "$ac_tmp/config.h" "$ac_file" \
16593         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16594     fi
16595   else
16596     $as_echo "/* $configure_input  */" \
16597       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16598       || as_fn_error $? "could not create -" "$LINENO" 5
16599   fi
16600 # Compute "$ac_file"'s index in $config_headers.
16601 _am_arg="$ac_file"
16602 _am_stamp_count=1
16603 for _am_header in $config_headers :; do
16604   case $_am_header in
16605     $_am_arg | $_am_arg:* )
16606       break ;;
16607     * )
16608       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16609   esac
16610 done
16611 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16612 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16613          X"$_am_arg" : 'X\(//\)[^/]' \| \
16614          X"$_am_arg" : 'X\(//\)$' \| \
16615          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16616 $as_echo X"$_am_arg" |
16617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16618             s//\1/
16619             q
16620           }
16621           /^X\(\/\/\)[^/].*/{
16622             s//\1/
16623             q
16624           }
16625           /^X\(\/\/\)$/{
16626             s//\1/
16627             q
16628           }
16629           /^X\(\/\).*/{
16630             s//\1/
16631             q
16632           }
16633           s/.*/./; q'`/stamp-h$_am_stamp_count
16634  ;;
16635
16636   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16637 $as_echo "$as_me: executing $ac_file commands" >&6;}
16638  ;;
16639   esac
16640
16641
16642   case $ac_file$ac_mode in
16643     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16644   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16645   # are listed without --file.  Let's play safe and only enable the eval
16646   # if we detect the quoting.
16647   case $CONFIG_FILES in
16648   *\'*) eval set x "$CONFIG_FILES" ;;
16649   *)   set x $CONFIG_FILES ;;
16650   esac
16651   shift
16652   for mf
16653   do
16654     # Strip MF so we end up with the name of the file.
16655     mf=`echo "$mf" | sed -e 's/:.*$//'`
16656     # Check whether this is an Automake generated Makefile or not.
16657     # We used to match only the files named `Makefile.in', but
16658     # some people rename them; so instead we look at the file content.
16659     # Grep'ing the first line is not enough: some people post-process
16660     # each Makefile.in and add a new line on top of each file to say so.
16661     # Grep'ing the whole file is not good either: AIX grep has a line
16662     # limit of 2048, but all sed's we know have understand at least 4000.
16663     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16664       dirpart=`$as_dirname -- "$mf" ||
16665 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16666          X"$mf" : 'X\(//\)[^/]' \| \
16667          X"$mf" : 'X\(//\)$' \| \
16668          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16669 $as_echo X"$mf" |
16670     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16671             s//\1/
16672             q
16673           }
16674           /^X\(\/\/\)[^/].*/{
16675             s//\1/
16676             q
16677           }
16678           /^X\(\/\/\)$/{
16679             s//\1/
16680             q
16681           }
16682           /^X\(\/\).*/{
16683             s//\1/
16684             q
16685           }
16686           s/.*/./; q'`
16687     else
16688       continue
16689     fi
16690     # Extract the definition of DEPDIR, am__include, and am__quote
16691     # from the Makefile without running `make'.
16692     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16693     test -z "$DEPDIR" && continue
16694     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16695     test -z "am__include" && continue
16696     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16697     # When using ansi2knr, U may be empty or an underscore; expand it
16698     U=`sed -n 's/^U = //p' < "$mf"`
16699     # Find all dependency output files, they are included files with
16700     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16701     # simplest approach to changing $(DEPDIR) to its actual value in the
16702     # expansion.
16703     for file in `sed -n "
16704       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16705          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16706       # Make sure the directory exists.
16707       test -f "$dirpart/$file" && continue
16708       fdir=`$as_dirname -- "$file" ||
16709 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16710          X"$file" : 'X\(//\)[^/]' \| \
16711          X"$file" : 'X\(//\)$' \| \
16712          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16713 $as_echo X"$file" |
16714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16715             s//\1/
16716             q
16717           }
16718           /^X\(\/\/\)[^/].*/{
16719             s//\1/
16720             q
16721           }
16722           /^X\(\/\/\)$/{
16723             s//\1/
16724             q
16725           }
16726           /^X\(\/\).*/{
16727             s//\1/
16728             q
16729           }
16730           s/.*/./; q'`
16731       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16732       # echo "creating $dirpart/$file"
16733       echo '# dummy' > "$dirpart/$file"
16734     done
16735   done
16736 }
16737  ;;
16738     "libtool":C)
16739
16740     # See if we are running on zsh, and set the options which allow our
16741     # commands through without removal of \ escapes.
16742     if test -n "${ZSH_VERSION+set}" ; then
16743       setopt NO_GLOB_SUBST
16744     fi
16745
16746     cfgfile="${ofile}T"
16747     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16748     $RM "$cfgfile"
16749
16750     cat <<_LT_EOF >> "$cfgfile"
16751 #! $SHELL
16752
16753 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16754 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16755 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16756 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16757 #
16758 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16759 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16760 #                 Foundation, Inc.
16761 #   Written by Gordon Matzigkeit, 1996
16762 #
16763 #   This file is part of GNU Libtool.
16764 #
16765 # GNU Libtool is free software; you can redistribute it and/or
16766 # modify it under the terms of the GNU General Public License as
16767 # published by the Free Software Foundation; either version 2 of
16768 # the License, or (at your option) any later version.
16769 #
16770 # As a special exception to the GNU General Public License,
16771 # if you distribute this file as part of a program or library that
16772 # is built using GNU Libtool, you may include this file under the
16773 # same distribution terms that you use for the rest of that program.
16774 #
16775 # GNU Libtool is distributed in the hope that it will be useful,
16776 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16777 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16778 # GNU General Public License for more details.
16779 #
16780 # You should have received a copy of the GNU General Public License
16781 # along with GNU Libtool; see the file COPYING.  If not, a copy
16782 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16783 # obtained by writing to the Free Software Foundation, Inc.,
16784 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16785
16786
16787 # The names of the tagged configurations supported by this script.
16788 available_tags="F77 "
16789
16790 # ### BEGIN LIBTOOL CONFIG
16791
16792 # Which release of libtool.m4 was used?
16793 macro_version=$macro_version
16794 macro_revision=$macro_revision
16795
16796 # Whether or not to build shared libraries.
16797 build_libtool_libs=$enable_shared
16798
16799 # Whether or not to build static libraries.
16800 build_old_libs=$enable_static
16801
16802 # What type of objects to build.
16803 pic_mode=$pic_mode
16804
16805 # Whether or not to optimize for fast installation.
16806 fast_install=$enable_fast_install
16807
16808 # Shell to use when invoking shell scripts.
16809 SHELL=$lt_SHELL
16810
16811 # An echo program that protects backslashes.
16812 ECHO=$lt_ECHO
16813
16814 # The PATH separator for the build system.
16815 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16816
16817 # The host system.
16818 host_alias=$host_alias
16819 host=$host
16820 host_os=$host_os
16821
16822 # The build system.
16823 build_alias=$build_alias
16824 build=$build
16825 build_os=$build_os
16826
16827 # A sed program that does not truncate output.
16828 SED=$lt_SED
16829
16830 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16831 Xsed="\$SED -e 1s/^X//"
16832
16833 # A grep program that handles long lines.
16834 GREP=$lt_GREP
16835
16836 # An ERE matcher.
16837 EGREP=$lt_EGREP
16838
16839 # A literal string matcher.
16840 FGREP=$lt_FGREP
16841
16842 # A BSD- or MS-compatible name lister.
16843 NM=$lt_NM
16844
16845 # Whether we need soft or hard links.
16846 LN_S=$lt_LN_S
16847
16848 # What is the maximum length of a command?
16849 max_cmd_len=$max_cmd_len
16850
16851 # Object file suffix (normally "o").
16852 objext=$ac_objext
16853
16854 # Executable file suffix (normally "").
16855 exeext=$exeext
16856
16857 # whether the shell understands "unset".
16858 lt_unset=$lt_unset
16859
16860 # turn spaces into newlines.
16861 SP2NL=$lt_lt_SP2NL
16862
16863 # turn newlines into spaces.
16864 NL2SP=$lt_lt_NL2SP
16865
16866 # convert \$build file names to \$host format.
16867 to_host_file_cmd=$lt_cv_to_host_file_cmd
16868
16869 # convert \$build files to toolchain format.
16870 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16871
16872 # An object symbol dumper.
16873 OBJDUMP=$lt_OBJDUMP
16874
16875 # Method to check whether dependent libraries are shared objects.
16876 deplibs_check_method=$lt_deplibs_check_method
16877
16878 # Command to use when deplibs_check_method = "file_magic".
16879 file_magic_cmd=$lt_file_magic_cmd
16880
16881 # How to find potential files when deplibs_check_method = "file_magic".
16882 file_magic_glob=$lt_file_magic_glob
16883
16884 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16885 want_nocaseglob=$lt_want_nocaseglob
16886
16887 # DLL creation program.
16888 DLLTOOL=$lt_DLLTOOL
16889
16890 # Command to associate shared and link libraries.
16891 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16892
16893 # The archiver.
16894 AR=$lt_AR
16895
16896 # Flags to create an archive.
16897 AR_FLAGS=$lt_AR_FLAGS
16898
16899 # How to feed a file listing to the archiver.
16900 archiver_list_spec=$lt_archiver_list_spec
16901
16902 # A symbol stripping program.
16903 STRIP=$lt_STRIP
16904
16905 # Commands used to install an old-style archive.
16906 RANLIB=$lt_RANLIB
16907 old_postinstall_cmds=$lt_old_postinstall_cmds
16908 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16909
16910 # Whether to use a lock for old archive extraction.
16911 lock_old_archive_extraction=$lock_old_archive_extraction
16912
16913 # A C compiler.
16914 LTCC=$lt_CC
16915
16916 # LTCC compiler flags.
16917 LTCFLAGS=$lt_CFLAGS
16918
16919 # Take the output of nm and produce a listing of raw symbols and C names.
16920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16921
16922 # Transform the output of nm in a proper C declaration.
16923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16924
16925 # Transform the output of nm in a C name address pair.
16926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16927
16928 # Transform the output of nm in a C name address pair when lib prefix is needed.
16929 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16930
16931 # Specify filename containing input files for \$NM.
16932 nm_file_list_spec=$lt_nm_file_list_spec
16933
16934 # The root where to search for dependent libraries,and in which our libraries should be installed.
16935 lt_sysroot=$lt_sysroot
16936
16937 # The name of the directory that contains temporary libtool files.
16938 objdir=$objdir
16939
16940 # Used to examine libraries when file_magic_cmd begins with "file".
16941 MAGIC_CMD=$MAGIC_CMD
16942
16943 # Must we lock files when doing compilation?
16944 need_locks=$lt_need_locks
16945
16946 # Manifest tool.
16947 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16948
16949 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16950 DSYMUTIL=$lt_DSYMUTIL
16951
16952 # Tool to change global to local symbols on Mac OS X.
16953 NMEDIT=$lt_NMEDIT
16954
16955 # Tool to manipulate fat objects and archives on Mac OS X.
16956 LIPO=$lt_LIPO
16957
16958 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16959 OTOOL=$lt_OTOOL
16960
16961 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16962 OTOOL64=$lt_OTOOL64
16963
16964 # Old archive suffix (normally "a").
16965 libext=$libext
16966
16967 # Shared library suffix (normally ".so").
16968 shrext_cmds=$lt_shrext_cmds
16969
16970 # The commands to extract the exported symbol list from a shared archive.
16971 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16972
16973 # Variables whose values should be saved in libtool wrapper scripts and
16974 # restored at link time.
16975 variables_saved_for_relink=$lt_variables_saved_for_relink
16976
16977 # Do we need the "lib" prefix for modules?
16978 need_lib_prefix=$need_lib_prefix
16979
16980 # Do we need a version for libraries?
16981 need_version=$need_version
16982
16983 # Library versioning type.
16984 version_type=$version_type
16985
16986 # Shared library runtime path variable.
16987 runpath_var=$runpath_var
16988
16989 # Shared library path variable.
16990 shlibpath_var=$shlibpath_var
16991
16992 # Is shlibpath searched before the hard-coded library search path?
16993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16994
16995 # Format of library name prefix.
16996 libname_spec=$lt_libname_spec
16997
16998 # List of archive names.  First name is the real one, the rest are links.
16999 # The last name is the one that the linker finds with -lNAME
17000 library_names_spec=$lt_library_names_spec
17001
17002 # The coded name of the library, if different from the real name.
17003 soname_spec=$lt_soname_spec
17004
17005 # Permission mode override for installation of shared libraries.
17006 install_override_mode=$lt_install_override_mode
17007
17008 # Command to use after installation of a shared archive.
17009 postinstall_cmds=$lt_postinstall_cmds
17010
17011 # Command to use after uninstallation of a shared archive.
17012 postuninstall_cmds=$lt_postuninstall_cmds
17013
17014 # Commands used to finish a libtool library installation in a directory.
17015 finish_cmds=$lt_finish_cmds
17016
17017 # As "finish_cmds", except a single script fragment to be evaled but
17018 # not shown.
17019 finish_eval=$lt_finish_eval
17020
17021 # Whether we should hardcode library paths into libraries.
17022 hardcode_into_libs=$hardcode_into_libs
17023
17024 # Compile-time system search path for libraries.
17025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17026
17027 # Run-time system search path for libraries.
17028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17029
17030 # Whether dlopen is supported.
17031 dlopen_support=$enable_dlopen
17032
17033 # Whether dlopen of programs is supported.
17034 dlopen_self=$enable_dlopen_self
17035
17036 # Whether dlopen of statically linked programs is supported.
17037 dlopen_self_static=$enable_dlopen_self_static
17038
17039 # Commands to strip libraries.
17040 old_striplib=$lt_old_striplib
17041 striplib=$lt_striplib
17042
17043
17044 # The linker used to build libraries.
17045 LD=$lt_LD
17046
17047 # How to create reloadable object files.
17048 reload_flag=$lt_reload_flag
17049 reload_cmds=$lt_reload_cmds
17050
17051 # Commands used to build an old-style archive.
17052 old_archive_cmds=$lt_old_archive_cmds
17053
17054 # A language specific compiler.
17055 CC=$lt_compiler
17056
17057 # Is the compiler the GNU compiler?
17058 with_gcc=$GCC
17059
17060 # Compiler flag to turn off builtin functions.
17061 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17062
17063 # Additional compiler flags for building library objects.
17064 pic_flag=$lt_lt_prog_compiler_pic
17065
17066 # How to pass a linker flag through the compiler.
17067 wl=$lt_lt_prog_compiler_wl
17068
17069 # Compiler flag to prevent dynamic linking.
17070 link_static_flag=$lt_lt_prog_compiler_static
17071
17072 # Does compiler simultaneously support -c and -o options?
17073 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17074
17075 # Whether or not to add -lc for building shared libraries.
17076 build_libtool_need_lc=$archive_cmds_need_lc
17077
17078 # Whether or not to disallow shared libs when runtime libs are static.
17079 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17080
17081 # Compiler flag to allow reflexive dlopens.
17082 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17083
17084 # Compiler flag to generate shared objects directly from archives.
17085 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17086
17087 # Whether the compiler copes with passing no objects directly.
17088 compiler_needs_object=$lt_compiler_needs_object
17089
17090 # Create an old-style archive from a shared archive.
17091 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17092
17093 # Create a temporary old-style archive to link instead of a shared archive.
17094 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17095
17096 # Commands used to build a shared archive.
17097 archive_cmds=$lt_archive_cmds
17098 archive_expsym_cmds=$lt_archive_expsym_cmds
17099
17100 # Commands used to build a loadable module if different from building
17101 # a shared archive.
17102 module_cmds=$lt_module_cmds
17103 module_expsym_cmds=$lt_module_expsym_cmds
17104
17105 # Whether we are building with GNU ld or not.
17106 with_gnu_ld=$lt_with_gnu_ld
17107
17108 # Flag that allows shared libraries with undefined symbols to be built.
17109 allow_undefined_flag=$lt_allow_undefined_flag
17110
17111 # Flag that enforces no undefined symbols.
17112 no_undefined_flag=$lt_no_undefined_flag
17113
17114 # Flag to hardcode \$libdir into a binary during linking.
17115 # This must work even if \$libdir does not exist
17116 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17117
17118 # Whether we need a single "-rpath" flag with a separated argument.
17119 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17120
17121 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17122 # DIR into the resulting binary.
17123 hardcode_direct=$hardcode_direct
17124
17125 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17126 # DIR into the resulting binary and the resulting library dependency is
17127 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17128 # library is relocated.
17129 hardcode_direct_absolute=$hardcode_direct_absolute
17130
17131 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17132 # into the resulting binary.
17133 hardcode_minus_L=$hardcode_minus_L
17134
17135 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17136 # into the resulting binary.
17137 hardcode_shlibpath_var=$hardcode_shlibpath_var
17138
17139 # Set to "yes" if building a shared library automatically hardcodes DIR
17140 # into the library and all subsequent libraries and executables linked
17141 # against it.
17142 hardcode_automatic=$hardcode_automatic
17143
17144 # Set to yes if linker adds runtime paths of dependent libraries
17145 # to runtime path list.
17146 inherit_rpath=$inherit_rpath
17147
17148 # Whether libtool must link a program against all its dependency libraries.
17149 link_all_deplibs=$link_all_deplibs
17150
17151 # Set to "yes" if exported symbols are required.
17152 always_export_symbols=$always_export_symbols
17153
17154 # The commands to list exported symbols.
17155 export_symbols_cmds=$lt_export_symbols_cmds
17156
17157 # Symbols that should not be listed in the preloaded symbols.
17158 exclude_expsyms=$lt_exclude_expsyms
17159
17160 # Symbols that must always be exported.
17161 include_expsyms=$lt_include_expsyms
17162
17163 # Commands necessary for linking programs (against libraries) with templates.
17164 prelink_cmds=$lt_prelink_cmds
17165
17166 # Commands necessary for finishing linking programs.
17167 postlink_cmds=$lt_postlink_cmds
17168
17169 # Specify filename containing input files.
17170 file_list_spec=$lt_file_list_spec
17171
17172 # How to hardcode a shared library path into an executable.
17173 hardcode_action=$hardcode_action
17174
17175 # ### END LIBTOOL CONFIG
17176
17177 _LT_EOF
17178
17179   case $host_os in
17180   aix3*)
17181     cat <<\_LT_EOF >> "$cfgfile"
17182 # AIX sometimes has problems with the GCC collect2 program.  For some
17183 # reason, if we set the COLLECT_NAMES environment variable, the problems
17184 # vanish in a puff of smoke.
17185 if test "X${COLLECT_NAMES+set}" != Xset; then
17186   COLLECT_NAMES=
17187   export COLLECT_NAMES
17188 fi
17189 _LT_EOF
17190     ;;
17191   esac
17192
17193
17194 ltmain="$ac_aux_dir/ltmain.sh"
17195
17196
17197   # We use sed instead of cat because bash on DJGPP gets confused if
17198   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17199   # text mode, it properly converts lines to CR/LF.  This bash problem
17200   # is reportedly fixed, but why not run on old versions too?
17201   sed '$q' "$ltmain" >> "$cfgfile" \
17202      || (rm -f "$cfgfile"; exit 1)
17203
17204   if test x"$xsi_shell" = xyes; then
17205   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17206 func_dirname ()\
17207 {\
17208 \    case ${1} in\
17209 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17210 \      *  ) func_dirname_result="${3}" ;;\
17211 \    esac\
17212 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17213   && mv -f "$cfgfile.tmp" "$cfgfile" \
17214     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17215 test 0 -eq $? || _lt_function_replace_fail=:
17216
17217
17218   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17219 func_basename ()\
17220 {\
17221 \    func_basename_result="${1##*/}"\
17222 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17223   && mv -f "$cfgfile.tmp" "$cfgfile" \
17224     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17225 test 0 -eq $? || _lt_function_replace_fail=:
17226
17227
17228   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17229 func_dirname_and_basename ()\
17230 {\
17231 \    case ${1} in\
17232 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17233 \      *  ) func_dirname_result="${3}" ;;\
17234 \    esac\
17235 \    func_basename_result="${1##*/}"\
17236 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17237   && mv -f "$cfgfile.tmp" "$cfgfile" \
17238     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17239 test 0 -eq $? || _lt_function_replace_fail=:
17240
17241
17242   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17243 func_stripname ()\
17244 {\
17245 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17246 \    # positional parameters, so assign one to ordinary parameter first.\
17247 \    func_stripname_result=${3}\
17248 \    func_stripname_result=${func_stripname_result#"${1}"}\
17249 \    func_stripname_result=${func_stripname_result%"${2}"}\
17250 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17251   && mv -f "$cfgfile.tmp" "$cfgfile" \
17252     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17253 test 0 -eq $? || _lt_function_replace_fail=:
17254
17255
17256   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17257 func_split_long_opt ()\
17258 {\
17259 \    func_split_long_opt_name=${1%%=*}\
17260 \    func_split_long_opt_arg=${1#*=}\
17261 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17262   && mv -f "$cfgfile.tmp" "$cfgfile" \
17263     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17264 test 0 -eq $? || _lt_function_replace_fail=:
17265
17266
17267   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17268 func_split_short_opt ()\
17269 {\
17270 \    func_split_short_opt_arg=${1#??}\
17271 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17272 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17273   && mv -f "$cfgfile.tmp" "$cfgfile" \
17274     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17275 test 0 -eq $? || _lt_function_replace_fail=:
17276
17277
17278   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17279 func_lo2o ()\
17280 {\
17281 \    case ${1} in\
17282 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17283 \      *)    func_lo2o_result=${1} ;;\
17284 \    esac\
17285 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17286   && mv -f "$cfgfile.tmp" "$cfgfile" \
17287     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17288 test 0 -eq $? || _lt_function_replace_fail=:
17289
17290
17291   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17292 func_xform ()\
17293 {\
17294     func_xform_result=${1%.*}.lo\
17295 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17296   && mv -f "$cfgfile.tmp" "$cfgfile" \
17297     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17298 test 0 -eq $? || _lt_function_replace_fail=:
17299
17300
17301   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17302 func_arith ()\
17303 {\
17304     func_arith_result=$(( $* ))\
17305 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17306   && mv -f "$cfgfile.tmp" "$cfgfile" \
17307     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17308 test 0 -eq $? || _lt_function_replace_fail=:
17309
17310
17311   sed -e '/^func_len ()$/,/^} # func_len /c\
17312 func_len ()\
17313 {\
17314     func_len_result=${#1}\
17315 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17316   && mv -f "$cfgfile.tmp" "$cfgfile" \
17317     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17318 test 0 -eq $? || _lt_function_replace_fail=:
17319
17320 fi
17321
17322 if test x"$lt_shell_append" = xyes; then
17323   sed -e '/^func_append ()$/,/^} # func_append /c\
17324 func_append ()\
17325 {\
17326     eval "${1}+=\\${2}"\
17327 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17328   && mv -f "$cfgfile.tmp" "$cfgfile" \
17329     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17330 test 0 -eq $? || _lt_function_replace_fail=:
17331
17332
17333   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17334 func_append_quoted ()\
17335 {\
17336 \    func_quote_for_eval "${2}"\
17337 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17338 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17339   && mv -f "$cfgfile.tmp" "$cfgfile" \
17340     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17341 test 0 -eq $? || _lt_function_replace_fail=:
17342
17343
17344   # Save a `func_append' function call where possible by direct use of '+='
17345   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17346     && mv -f "$cfgfile.tmp" "$cfgfile" \
17347       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17348   test 0 -eq $? || _lt_function_replace_fail=:
17349 else
17350   # Save a `func_append' function call even when '+=' is not available
17351   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17352     && mv -f "$cfgfile.tmp" "$cfgfile" \
17353       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17354   test 0 -eq $? || _lt_function_replace_fail=:
17355 fi
17356
17357 if test x"$_lt_function_replace_fail" = x":"; then
17358   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17359 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17360 fi
17361
17362
17363    mv -f "$cfgfile" "$ofile" ||
17364     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17365   chmod +x "$ofile"
17366
17367
17368     cat <<_LT_EOF >> "$ofile"
17369
17370 # ### BEGIN LIBTOOL TAG CONFIG: F77
17371
17372 # The linker used to build libraries.
17373 LD=$lt_LD_F77
17374
17375 # How to create reloadable object files.
17376 reload_flag=$lt_reload_flag_F77
17377 reload_cmds=$lt_reload_cmds_F77
17378
17379 # Commands used to build an old-style archive.
17380 old_archive_cmds=$lt_old_archive_cmds_F77
17381
17382 # A language specific compiler.
17383 CC=$lt_compiler_F77
17384
17385 # Is the compiler the GNU compiler?
17386 with_gcc=$GCC_F77
17387
17388 # Compiler flag to turn off builtin functions.
17389 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17390
17391 # Additional compiler flags for building library objects.
17392 pic_flag=$lt_lt_prog_compiler_pic_F77
17393
17394 # How to pass a linker flag through the compiler.
17395 wl=$lt_lt_prog_compiler_wl_F77
17396
17397 # Compiler flag to prevent dynamic linking.
17398 link_static_flag=$lt_lt_prog_compiler_static_F77
17399
17400 # Does compiler simultaneously support -c and -o options?
17401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17402
17403 # Whether or not to add -lc for building shared libraries.
17404 build_libtool_need_lc=$archive_cmds_need_lc_F77
17405
17406 # Whether or not to disallow shared libs when runtime libs are static.
17407 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17408
17409 # Compiler flag to allow reflexive dlopens.
17410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17411
17412 # Compiler flag to generate shared objects directly from archives.
17413 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17414
17415 # Whether the compiler copes with passing no objects directly.
17416 compiler_needs_object=$lt_compiler_needs_object_F77
17417
17418 # Create an old-style archive from a shared archive.
17419 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17420
17421 # Create a temporary old-style archive to link instead of a shared archive.
17422 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17423
17424 # Commands used to build a shared archive.
17425 archive_cmds=$lt_archive_cmds_F77
17426 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17427
17428 # Commands used to build a loadable module if different from building
17429 # a shared archive.
17430 module_cmds=$lt_module_cmds_F77
17431 module_expsym_cmds=$lt_module_expsym_cmds_F77
17432
17433 # Whether we are building with GNU ld or not.
17434 with_gnu_ld=$lt_with_gnu_ld_F77
17435
17436 # Flag that allows shared libraries with undefined symbols to be built.
17437 allow_undefined_flag=$lt_allow_undefined_flag_F77
17438
17439 # Flag that enforces no undefined symbols.
17440 no_undefined_flag=$lt_no_undefined_flag_F77
17441
17442 # Flag to hardcode \$libdir into a binary during linking.
17443 # This must work even if \$libdir does not exist
17444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17445
17446 # Whether we need a single "-rpath" flag with a separated argument.
17447 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17448
17449 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17450 # DIR into the resulting binary.
17451 hardcode_direct=$hardcode_direct_F77
17452
17453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17454 # DIR into the resulting binary and the resulting library dependency is
17455 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17456 # library is relocated.
17457 hardcode_direct_absolute=$hardcode_direct_absolute_F77
17458
17459 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17460 # into the resulting binary.
17461 hardcode_minus_L=$hardcode_minus_L_F77
17462
17463 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17464 # into the resulting binary.
17465 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17466
17467 # Set to "yes" if building a shared library automatically hardcodes DIR
17468 # into the library and all subsequent libraries and executables linked
17469 # against it.
17470 hardcode_automatic=$hardcode_automatic_F77
17471
17472 # Set to yes if linker adds runtime paths of dependent libraries
17473 # to runtime path list.
17474 inherit_rpath=$inherit_rpath_F77
17475
17476 # Whether libtool must link a program against all its dependency libraries.
17477 link_all_deplibs=$link_all_deplibs_F77
17478
17479 # Set to "yes" if exported symbols are required.
17480 always_export_symbols=$always_export_symbols_F77
17481
17482 # The commands to list exported symbols.
17483 export_symbols_cmds=$lt_export_symbols_cmds_F77
17484
17485 # Symbols that should not be listed in the preloaded symbols.
17486 exclude_expsyms=$lt_exclude_expsyms_F77
17487
17488 # Symbols that must always be exported.
17489 include_expsyms=$lt_include_expsyms_F77
17490
17491 # Commands necessary for linking programs (against libraries) with templates.
17492 prelink_cmds=$lt_prelink_cmds_F77
17493
17494 # Commands necessary for finishing linking programs.
17495 postlink_cmds=$lt_postlink_cmds_F77
17496
17497 # Specify filename containing input files.
17498 file_list_spec=$lt_file_list_spec_F77
17499
17500 # How to hardcode a shared library path into an executable.
17501 hardcode_action=$hardcode_action_F77
17502
17503 # ### END LIBTOOL TAG CONFIG: F77
17504 _LT_EOF
17505
17506  ;;
17507
17508   esac
17509 done # for ac_tag
17510
17511
17512 as_fn_exit 0
17513 _ACEOF
17514 ac_clean_files=$ac_clean_files_save
17515
17516 test $ac_write_fail = 0 ||
17517   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17518
17519
17520 # configure is writing to config.log, and then calls config.status.
17521 # config.status does its own redirection, appending to config.log.
17522 # Unfortunately, on DOS this fails, as config.log is still kept open
17523 # by configure, so config.status won't be able to write to it; its
17524 # output is simply discarded.  So we exec the FD to /dev/null,
17525 # effectively closing config.log, so it can be properly (re)opened and
17526 # appended to by config.status.  When coming back to configure, we
17527 # need to make the FD available again.
17528 if test "$no_create" != yes; then
17529   ac_cs_success=:
17530   ac_config_status_args=
17531   test "$silent" = yes &&
17532     ac_config_status_args="$ac_config_status_args --quiet"
17533   exec 5>/dev/null
17534   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17535   exec 5>>config.log
17536   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17537   # would make configure fail if this is the last instruction.
17538   $ac_cs_success || as_fn_exit 1
17539 fi
17540 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17541   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17542 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17543 fi
17544