OSDN Git Service

Fix the building issues on Android 5.0
[android-x86/external-alsa-lib.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         # Preserve -v and -x to the replacement shell.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         case $- in # ((((
224           *v*x* | *x*v* ) as_opts=-vx ;;
225           *v* ) as_opts=-v ;;
226           *x* ) as_opts=-x ;;
227           * ) as_opts= ;;
228         esac
229         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$1; test $as_status -eq 0 && as_status=1
375   if test "$4"; then
376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378   fi
379   $as_echo "$as_me: error: $2" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 echo=${ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $echo works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<EOF
567 $*
568 EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582        echo_test_string=`eval $cmd` &&
583        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584     then
585       break
586     fi
587   done
588 fi
589
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592    test "X$echo_testing_string" = "X$echo_test_string"; then
593   :
594 else
595   # The Solaris, AIX, and Digital Unix default echo programs unquote
596   # backslashes.  This makes it impossible to quote backslashes using
597   #   echo "$something" | sed 's/\\/\\\\/g'
598   #
599   # So, first we look for a working echo in the user's PATH.
600
601   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602   for dir in $PATH /usr/ucb; do
603     IFS="$lt_save_ifs"
604     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607        test "X$echo_testing_string" = "X$echo_test_string"; then
608       echo="$dir/echo"
609       break
610     fi
611   done
612   IFS="$lt_save_ifs"
613
614   if test "X$echo" = Xecho; then
615     # We didn't find a better echo, so look for alternatives.
616     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618        test "X$echo_testing_string" = "X$echo_test_string"; then
619       # This shell has a builtin print -r that does the trick.
620       echo='print -r'
621     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622          test "X$CONFIG_SHELL" != X/bin/ksh; then
623       # If we have ksh, try running configure again with it.
624       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625       export ORIGINAL_CONFIG_SHELL
626       CONFIG_SHELL=/bin/ksh
627       export CONFIG_SHELL
628       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629     else
630       # Try using printf.
631       echo='printf %s\n'
632       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634          test "X$echo_testing_string" = "X$echo_test_string"; then
635         # Cool, printf works
636         :
637       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638            test "X$echo_testing_string" = 'X\t' &&
639            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640            test "X$echo_testing_string" = "X$echo_test_string"; then
641         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642         export CONFIG_SHELL
643         SHELL="$CONFIG_SHELL"
644         export SHELL
645         echo="$CONFIG_SHELL $0 --fallback-echo"
646       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647            test "X$echo_testing_string" = 'X\t' &&
648            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649            test "X$echo_testing_string" = "X$echo_test_string"; then
650         echo="$CONFIG_SHELL $0 --fallback-echo"
651       else
652         # maybe with a smaller string...
653         prev=:
654
655         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657           then
658             break
659           fi
660           prev="$cmd"
661         done
662
663         if test "$prev" != 'sed 50q "$0"'; then
664           echo_test_string=`eval $prev`
665           export echo_test_string
666           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667         else
668           # Oops.  We lost completely, so just stick with echo.
669           echo=echo
670         fi
671       fi
672     fi
673   fi
674 fi
675 fi
676
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
679 ECHO=$echo
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 fi
683
684
685
686
687 tagnames=${tagnames+${tagnames},}CXX
688
689 tagnames=${tagnames+${tagnames},}F77
690
691 test -n "$DJDIR" || exec 7<&0 </dev/null
692 exec 6>&1
693
694 # Name of the host.
695 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
698
699 #
700 # Initializations.
701 #
702 ac_default_prefix=/usr/local
703 ac_clean_files=
704 ac_config_libobj_dir=.
705 LIBOBJS=
706 cross_compiling=no
707 subdirs=
708 MFLAGS=
709 MAKEFLAGS=
710
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
717 PACKAGE_URL=
718
719 ac_unique_file="src/control/control.c"
720 ac_default_prefix=/usr
721 # Factoring default headers for most tests.
722 ac_includes_default="\
723 #include <stdio.h>
724 #ifdef HAVE_SYS_TYPES_H
725 # include <sys/types.h>
726 #endif
727 #ifdef HAVE_SYS_STAT_H
728 # include <sys/stat.h>
729 #endif
730 #ifdef STDC_HEADERS
731 # include <stdlib.h>
732 # include <stddef.h>
733 #else
734 # ifdef HAVE_STDLIB_H
735 #  include <stdlib.h>
736 # endif
737 #endif
738 #ifdef HAVE_STRING_H
739 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
740 #  include <memory.h>
741 # endif
742 # include <string.h>
743 #endif
744 #ifdef HAVE_STRINGS_H
745 # include <strings.h>
746 #endif
747 #ifdef HAVE_INTTYPES_H
748 # include <inttypes.h>
749 #endif
750 #ifdef HAVE_STDINT_H
751 # include <stdint.h>
752 #endif
753 #ifdef HAVE_UNISTD_H
754 # include <unistd.h>
755 #endif"
756
757 ac_subst_vars='am__EXEEXT_FALSE
758 am__EXEEXT_TRUE
759 LTLIBOBJS
760 LIBOBJS
761 BUILD_CTL_PLUGIN_EXT_FALSE
762 BUILD_CTL_PLUGIN_EXT_TRUE
763 BUILD_CTL_PLUGIN_SHM_FALSE
764 BUILD_CTL_PLUGIN_SHM_TRUE
765 BUILD_CTL_PLUGIN_FALSE
766 BUILD_CTL_PLUGIN_TRUE
767 BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE
768 BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE
769 BUILD_PCM_PLUGIN_IOPLUG_FALSE
770 BUILD_PCM_PLUGIN_IOPLUG_TRUE
771 BUILD_PCM_PLUGIN_EXTPLUG_FALSE
772 BUILD_PCM_PLUGIN_EXTPLUG_TRUE
773 BUILD_PCM_PLUGIN_SOFTVOL_FALSE
774 BUILD_PCM_PLUGIN_SOFTVOL_TRUE
775 BUILD_PCM_PLUGIN_IEC958_FALSE
776 BUILD_PCM_PLUGIN_IEC958_TRUE
777 BUILD_PCM_PLUGIN_ASYM_FALSE
778 BUILD_PCM_PLUGIN_ASYM_TRUE
779 BUILD_PCM_PLUGIN_DSNOOP_FALSE
780 BUILD_PCM_PLUGIN_DSNOOP_TRUE
781 BUILD_PCM_PLUGIN_DSHARE_FALSE
782 BUILD_PCM_PLUGIN_DSHARE_TRUE
783 BUILD_PCM_PLUGIN_DMIX_FALSE
784 BUILD_PCM_PLUGIN_DMIX_TRUE
785 BUILD_PCM_PLUGIN_LADSPA_FALSE
786 BUILD_PCM_PLUGIN_LADSPA_TRUE
787 BUILD_PCM_PLUGIN_LFLOAT_FALSE
788 BUILD_PCM_PLUGIN_LFLOAT_TRUE
789 BUILD_PCM_PLUGIN_HOOKS_FALSE
790 BUILD_PCM_PLUGIN_HOOKS_TRUE
791 BUILD_PCM_PLUGIN_METER_FALSE
792 BUILD_PCM_PLUGIN_METER_TRUE
793 BUILD_PCM_PLUGIN_SHARE_FALSE
794 BUILD_PCM_PLUGIN_SHARE_TRUE
795 BUILD_PCM_PLUGIN_EMPTY_FALSE
796 BUILD_PCM_PLUGIN_EMPTY_TRUE
797 BUILD_PCM_PLUGIN_NULL_FALSE
798 BUILD_PCM_PLUGIN_NULL_TRUE
799 BUILD_PCM_PLUGIN_FILE_FALSE
800 BUILD_PCM_PLUGIN_FILE_TRUE
801 BUILD_PCM_PLUGIN_SHM_FALSE
802 BUILD_PCM_PLUGIN_SHM_TRUE
803 BUILD_PCM_PLUGIN_MULTI_FALSE
804 BUILD_PCM_PLUGIN_MULTI_TRUE
805 BUILD_PCM_PLUGIN_PLUG_FALSE
806 BUILD_PCM_PLUGIN_PLUG_TRUE
807 BUILD_PCM_PLUGIN_RATE_FALSE
808 BUILD_PCM_PLUGIN_RATE_TRUE
809 BUILD_PCM_PLUGIN_ADPCM_FALSE
810 BUILD_PCM_PLUGIN_ADPCM_TRUE
811 BUILD_PCM_PLUGIN_ALAW_FALSE
812 BUILD_PCM_PLUGIN_ALAW_TRUE
813 BUILD_PCM_PLUGIN_MULAW_FALSE
814 BUILD_PCM_PLUGIN_MULAW_TRUE
815 BUILD_PCM_PLUGIN_ROUTE_FALSE
816 BUILD_PCM_PLUGIN_ROUTE_TRUE
817 BUILD_PCM_PLUGIN_LINEAR_FALSE
818 BUILD_PCM_PLUGIN_LINEAR_TRUE
819 BUILD_PCM_PLUGIN_COPY_FALSE
820 BUILD_PCM_PLUGIN_COPY_TRUE
821 BUILD_PCM_PLUGIN_FALSE
822 BUILD_PCM_PLUGIN_TRUE
823 BUILD_PYTHON_FALSE
824 BUILD_PYTHON_TRUE
825 BUILD_ALISP_FALSE
826 BUILD_ALISP_TRUE
827 BUILD_UCM_FALSE
828 BUILD_UCM_TRUE
829 BUILD_SEQ_FALSE
830 BUILD_SEQ_TRUE
831 BUILD_HWDEP_FALSE
832 BUILD_HWDEP_TRUE
833 BUILD_RAWMIDI_FALSE
834 BUILD_RAWMIDI_TRUE
835 BUILD_PCM_FALSE
836 BUILD_PCM_TRUE
837 BUILD_MIXER_FALSE
838 BUILD_MIXER_TRUE
839 PYTHON_INCLUDES
840 PYTHON_LIBS
841 KEEP_OLD_SYMBOLS_FALSE
842 KEEP_OLD_SYMBOLS_TRUE
843 ALSA_DEPLIBS
844 BUILD_MODULES_FALSE
845 BUILD_MODULES_TRUE
846 SYMBOL_PREFIX
847 SYMBOLIC_FUNCTIONS_FALSE
848 SYMBOLIC_FUNCTIONS_TRUE
849 VERSIONED_SYMBOLS_FALSE
850 VERSIONED_SYMBOLS_TRUE
851 ALSA_PLUGIN_DIR
852 ALSA_CONFIG_DIR
853 LIBTOOL_VERSION_INFO
854 SND_LIB_EXTRAVER
855 SND_LIB_SUBMINOR
856 SND_LIB_MINOR
857 SND_LIB_MAJOR
858 SND_LIB_VERSION
859 ALSA_HSEARCH_R_FALSE
860 ALSA_HSEARCH_R_TRUE
861 LIBTOOL
862 ac_ct_F77
863 FFLAGS
864 F77
865 CXXCPP
866 am__fastdepCXX_FALSE
867 am__fastdepCXX_TRUE
868 CXXDEPMODE
869 ac_ct_CXX
870 CXXFLAGS
871 CXX
872 RANLIB
873 AR
874 ECHO
875 EGREP
876 GREP
877 LN_S
878 CPP
879 am__fastdepCC_FALSE
880 am__fastdepCC_TRUE
881 CCDEPMODE
882 AMDEPBACKSLASH
883 AMDEP_FALSE
884 AMDEP_TRUE
885 am__quote
886 am__include
887 DEPDIR
888 OBJEXT
889 EXEEXT
890 ac_ct_CC
891 CPPFLAGS
892 LDFLAGS
893 CFLAGS
894 CC
895 AM_BACKSLASH
896 AM_DEFAULT_VERBOSITY
897 INSTALL_M4_FALSE
898 INSTALL_M4_TRUE
899 am__untar
900 am__tar
901 AMTAR
902 am__leading_dot
903 SET_MAKE
904 AWK
905 mkdir_p
906 MKDIR_P
907 INSTALL_STRIP_PROGRAM
908 STRIP
909 install_sh
910 MAKEINFO
911 AUTOHEADER
912 AUTOMAKE
913 AUTOCONF
914 ACLOCAL
915 VERSION
916 PACKAGE
917 CYGPATH_W
918 am__isrc
919 INSTALL_DATA
920 INSTALL_SCRIPT
921 INSTALL_PROGRAM
922 host_os
923 host_vendor
924 host_cpu
925 host
926 build_os
927 build_vendor
928 build_cpu
929 build
930 target_alias
931 host_alias
932 build_alias
933 LIBS
934 ECHO_T
935 ECHO_N
936 ECHO_C
937 DEFS
938 mandir
939 localedir
940 libdir
941 psdir
942 pdfdir
943 dvidir
944 htmldir
945 infodir
946 docdir
947 oldincludedir
948 includedir
949 localstatedir
950 sharedstatedir
951 sysconfdir
952 datadir
953 datarootdir
954 libexecdir
955 sbindir
956 bindir
957 program_transform_name
958 prefix
959 exec_prefix
960 PACKAGE_URL
961 PACKAGE_BUGREPORT
962 PACKAGE_STRING
963 PACKAGE_VERSION
964 PACKAGE_TARNAME
965 PACKAGE_NAME
966 PATH_SEPARATOR
967 SHELL'
968 ac_subst_files=''
969 ac_user_opts='
970 enable_option_checking
971 enable_silent_rules
972 enable_dependency_tracking
973 enable_static
974 enable_shared
975 enable_fast_install
976 with_gnu_ld
977 enable_libtool_lock
978 with_pic
979 with_tags
980 with_configdir
981 with_plugindir
982 with_versioned
983 enable_symbolic_functions
984 with_debug
985 enable_debug_assert
986 with_tmpdir
987 with_softfloat
988 with_libdl
989 with_pthread
990 with_librt
991 enable_resmgr
992 enable_aload
993 with_alsa_devdir
994 with_aload_devdir
995 enable_mixer
996 enable_pcm
997 enable_rawmidi
998 enable_hwdep
999 enable_seq
1000 enable_ucm
1001 enable_alisp
1002 enable_old_symbols
1003 enable_python
1004 with_pythonlibs
1005 with_pythonincludes
1006 with_pcm_plugins
1007 with_ctl_plugins
1008 '
1009       ac_precious_vars='build_alias
1010 host_alias
1011 target_alias
1012 CC
1013 CFLAGS
1014 LDFLAGS
1015 LIBS
1016 CPPFLAGS
1017 CPP
1018 CXX
1019 CXXFLAGS
1020 CCC
1021 CXXCPP
1022 F77
1023 FFLAGS'
1024
1025
1026 # Initialize some variables set by options.
1027 ac_init_help=
1028 ac_init_version=false
1029 ac_unrecognized_opts=
1030 ac_unrecognized_sep=
1031 # The variables have the same names as the options, with
1032 # dashes changed to underlines.
1033 cache_file=/dev/null
1034 exec_prefix=NONE
1035 no_create=
1036 no_recursion=
1037 prefix=NONE
1038 program_prefix=NONE
1039 program_suffix=NONE
1040 program_transform_name=s,x,x,
1041 silent=
1042 site=
1043 srcdir=
1044 verbose=
1045 x_includes=NONE
1046 x_libraries=NONE
1047
1048 # Installation directory options.
1049 # These are left unexpanded so users can "make install exec_prefix=/foo"
1050 # and all the variables that are supposed to be based on exec_prefix
1051 # by default will actually change.
1052 # Use braces instead of parens because sh, perl, etc. also accept them.
1053 # (The list follows the same order as the GNU Coding Standards.)
1054 bindir='${exec_prefix}/bin'
1055 sbindir='${exec_prefix}/sbin'
1056 libexecdir='${exec_prefix}/libexec'
1057 datarootdir='${prefix}/share'
1058 datadir='${datarootdir}'
1059 sysconfdir='${prefix}/etc'
1060 sharedstatedir='${prefix}/com'
1061 localstatedir='${prefix}/var'
1062 includedir='${prefix}/include'
1063 oldincludedir='/usr/include'
1064 docdir='${datarootdir}/doc/${PACKAGE}'
1065 infodir='${datarootdir}/info'
1066 htmldir='${docdir}'
1067 dvidir='${docdir}'
1068 pdfdir='${docdir}'
1069 psdir='${docdir}'
1070 libdir='${exec_prefix}/lib'
1071 localedir='${datarootdir}/locale'
1072 mandir='${datarootdir}/man'
1073
1074 ac_prev=
1075 ac_dashdash=
1076 for ac_option
1077 do
1078   # If the previous option needs an argument, assign it.
1079   if test -n "$ac_prev"; then
1080     eval $ac_prev=\$ac_option
1081     ac_prev=
1082     continue
1083   fi
1084
1085   case $ac_option in
1086   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1087   *=)   ac_optarg= ;;
1088   *)    ac_optarg=yes ;;
1089   esac
1090
1091   # Accept the important Cygnus configure options, so we can diagnose typos.
1092
1093   case $ac_dashdash$ac_option in
1094   --)
1095     ac_dashdash=yes ;;
1096
1097   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1098     ac_prev=bindir ;;
1099   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1100     bindir=$ac_optarg ;;
1101
1102   -build | --build | --buil | --bui | --bu)
1103     ac_prev=build_alias ;;
1104   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1105     build_alias=$ac_optarg ;;
1106
1107   -cache-file | --cache-file | --cache-fil | --cache-fi \
1108   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1109     ac_prev=cache_file ;;
1110   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1111   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1112     cache_file=$ac_optarg ;;
1113
1114   --config-cache | -C)
1115     cache_file=config.cache ;;
1116
1117   -datadir | --datadir | --datadi | --datad)
1118     ac_prev=datadir ;;
1119   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1120     datadir=$ac_optarg ;;
1121
1122   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1123   | --dataroo | --dataro | --datar)
1124     ac_prev=datarootdir ;;
1125   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1126   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1127     datarootdir=$ac_optarg ;;
1128
1129   -disable-* | --disable-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       as_fn_error $? "invalid feature name: $ac_useropt"
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "enable_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval enable_$ac_useropt=no ;;
1144
1145   -docdir | --docdir | --docdi | --doc | --do)
1146     ac_prev=docdir ;;
1147   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1148     docdir=$ac_optarg ;;
1149
1150   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1151     ac_prev=dvidir ;;
1152   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1153     dvidir=$ac_optarg ;;
1154
1155   -enable-* | --enable-*)
1156     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159       as_fn_error $? "invalid feature name: $ac_useropt"
1160     ac_useropt_orig=$ac_useropt
1161     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162     case $ac_user_opts in
1163       *"
1164 "enable_$ac_useropt"
1165 "*) ;;
1166       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1167          ac_unrecognized_sep=', ';;
1168     esac
1169     eval enable_$ac_useropt=\$ac_optarg ;;
1170
1171   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1172   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1173   | --exec | --exe | --ex)
1174     ac_prev=exec_prefix ;;
1175   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1176   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1177   | --exec=* | --exe=* | --ex=*)
1178     exec_prefix=$ac_optarg ;;
1179
1180   -gas | --gas | --ga | --g)
1181     # Obsolete; use --with-gas.
1182     with_gas=yes ;;
1183
1184   -help | --help | --hel | --he | -h)
1185     ac_init_help=long ;;
1186   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1187     ac_init_help=recursive ;;
1188   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1189     ac_init_help=short ;;
1190
1191   -host | --host | --hos | --ho)
1192     ac_prev=host_alias ;;
1193   -host=* | --host=* | --hos=* | --ho=*)
1194     host_alias=$ac_optarg ;;
1195
1196   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1197     ac_prev=htmldir ;;
1198   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1199   | --ht=*)
1200     htmldir=$ac_optarg ;;
1201
1202   -includedir | --includedir | --includedi | --included | --include \
1203   | --includ | --inclu | --incl | --inc)
1204     ac_prev=includedir ;;
1205   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1206   | --includ=* | --inclu=* | --incl=* | --inc=*)
1207     includedir=$ac_optarg ;;
1208
1209   -infodir | --infodir | --infodi | --infod | --info | --inf)
1210     ac_prev=infodir ;;
1211   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1212     infodir=$ac_optarg ;;
1213
1214   -libdir | --libdir | --libdi | --libd)
1215     ac_prev=libdir ;;
1216   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1217     libdir=$ac_optarg ;;
1218
1219   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1220   | --libexe | --libex | --libe)
1221     ac_prev=libexecdir ;;
1222   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1223   | --libexe=* | --libex=* | --libe=*)
1224     libexecdir=$ac_optarg ;;
1225
1226   -localedir | --localedir | --localedi | --localed | --locale)
1227     ac_prev=localedir ;;
1228   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1229     localedir=$ac_optarg ;;
1230
1231   -localstatedir | --localstatedir | --localstatedi | --localstated \
1232   | --localstate | --localstat | --localsta | --localst | --locals)
1233     ac_prev=localstatedir ;;
1234   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1235   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1236     localstatedir=$ac_optarg ;;
1237
1238   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1239     ac_prev=mandir ;;
1240   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1241     mandir=$ac_optarg ;;
1242
1243   -nfp | --nfp | --nf)
1244     # Obsolete; use --without-fp.
1245     with_fp=no ;;
1246
1247   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1248   | --no-cr | --no-c | -n)
1249     no_create=yes ;;
1250
1251   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1252   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1253     no_recursion=yes ;;
1254
1255   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1256   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1257   | --oldin | --oldi | --old | --ol | --o)
1258     ac_prev=oldincludedir ;;
1259   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1260   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1261   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1262     oldincludedir=$ac_optarg ;;
1263
1264   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1265     ac_prev=prefix ;;
1266   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1267     prefix=$ac_optarg ;;
1268
1269   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1270   | --program-pre | --program-pr | --program-p)
1271     ac_prev=program_prefix ;;
1272   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1273   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1274     program_prefix=$ac_optarg ;;
1275
1276   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1277   | --program-suf | --program-su | --program-s)
1278     ac_prev=program_suffix ;;
1279   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1280   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1281     program_suffix=$ac_optarg ;;
1282
1283   -program-transform-name | --program-transform-name \
1284   | --program-transform-nam | --program-transform-na \
1285   | --program-transform-n | --program-transform- \
1286   | --program-transform | --program-transfor \
1287   | --program-transfo | --program-transf \
1288   | --program-trans | --program-tran \
1289   | --progr-tra | --program-tr | --program-t)
1290     ac_prev=program_transform_name ;;
1291   -program-transform-name=* | --program-transform-name=* \
1292   | --program-transform-nam=* | --program-transform-na=* \
1293   | --program-transform-n=* | --program-transform-=* \
1294   | --program-transform=* | --program-transfor=* \
1295   | --program-transfo=* | --program-transf=* \
1296   | --program-trans=* | --program-tran=* \
1297   | --progr-tra=* | --program-tr=* | --program-t=*)
1298     program_transform_name=$ac_optarg ;;
1299
1300   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1301     ac_prev=pdfdir ;;
1302   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1303     pdfdir=$ac_optarg ;;
1304
1305   -psdir | --psdir | --psdi | --psd | --ps)
1306     ac_prev=psdir ;;
1307   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1308     psdir=$ac_optarg ;;
1309
1310   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1311   | -silent | --silent | --silen | --sile | --sil)
1312     silent=yes ;;
1313
1314   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1315     ac_prev=sbindir ;;
1316   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1317   | --sbi=* | --sb=*)
1318     sbindir=$ac_optarg ;;
1319
1320   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1321   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1322   | --sharedst | --shareds | --shared | --share | --shar \
1323   | --sha | --sh)
1324     ac_prev=sharedstatedir ;;
1325   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1326   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1327   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1328   | --sha=* | --sh=*)
1329     sharedstatedir=$ac_optarg ;;
1330
1331   -site | --site | --sit)
1332     ac_prev=site ;;
1333   -site=* | --site=* | --sit=*)
1334     site=$ac_optarg ;;
1335
1336   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1337     ac_prev=srcdir ;;
1338   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1339     srcdir=$ac_optarg ;;
1340
1341   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1342   | --syscon | --sysco | --sysc | --sys | --sy)
1343     ac_prev=sysconfdir ;;
1344   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1345   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1346     sysconfdir=$ac_optarg ;;
1347
1348   -target | --target | --targe | --targ | --tar | --ta | --t)
1349     ac_prev=target_alias ;;
1350   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1351     target_alias=$ac_optarg ;;
1352
1353   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1354     verbose=yes ;;
1355
1356   -version | --version | --versio | --versi | --vers | -V)
1357     ac_init_version=: ;;
1358
1359   -with-* | --with-*)
1360     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1361     # Reject names that are not valid shell variable names.
1362     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363       as_fn_error $? "invalid package name: $ac_useropt"
1364     ac_useropt_orig=$ac_useropt
1365     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1366     case $ac_user_opts in
1367       *"
1368 "with_$ac_useropt"
1369 "*) ;;
1370       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1371          ac_unrecognized_sep=', ';;
1372     esac
1373     eval with_$ac_useropt=\$ac_optarg ;;
1374
1375   -without-* | --without-*)
1376     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1377     # Reject names that are not valid shell variable names.
1378     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1379       as_fn_error $? "invalid package name: $ac_useropt"
1380     ac_useropt_orig=$ac_useropt
1381     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1382     case $ac_user_opts in
1383       *"
1384 "with_$ac_useropt"
1385 "*) ;;
1386       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1387          ac_unrecognized_sep=', ';;
1388     esac
1389     eval with_$ac_useropt=no ;;
1390
1391   --x)
1392     # Obsolete; use --with-x.
1393     with_x=yes ;;
1394
1395   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1396   | --x-incl | --x-inc | --x-in | --x-i)
1397     ac_prev=x_includes ;;
1398   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1399   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1400     x_includes=$ac_optarg ;;
1401
1402   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1403   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1404     ac_prev=x_libraries ;;
1405   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1406   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1407     x_libraries=$ac_optarg ;;
1408
1409   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1410 Try \`$0 --help' for more information"
1411     ;;
1412
1413   *=*)
1414     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1415     # Reject names that are not valid shell variable names.
1416     case $ac_envvar in #(
1417       '' | [0-9]* | *[!_$as_cr_alnum]* )
1418       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1419     esac
1420     eval $ac_envvar=\$ac_optarg
1421     export $ac_envvar ;;
1422
1423   *)
1424     # FIXME: should be removed in autoconf 3.0.
1425     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1426     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1427       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1428     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1429     ;;
1430
1431   esac
1432 done
1433
1434 if test -n "$ac_prev"; then
1435   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1436   as_fn_error $? "missing argument to $ac_option"
1437 fi
1438
1439 if test -n "$ac_unrecognized_opts"; then
1440   case $enable_option_checking in
1441     no) ;;
1442     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1443     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1444   esac
1445 fi
1446
1447 # Check all directory arguments for consistency.
1448 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449                 datadir sysconfdir sharedstatedir localstatedir includedir \
1450                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451                 libdir localedir mandir
1452 do
1453   eval ac_val=\$$ac_var
1454   # Remove trailing slashes.
1455   case $ac_val in
1456     */ )
1457       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1458       eval $ac_var=\$ac_val;;
1459   esac
1460   # Be sure to have absolute directory names.
1461   case $ac_val in
1462     [\\/$]* | ?:[\\/]* )  continue;;
1463     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1464   esac
1465   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1466 done
1467
1468 # There might be people who depend on the old broken behavior: `$host'
1469 # used to hold the argument of --host etc.
1470 # FIXME: To remove some day.
1471 build=$build_alias
1472 host=$host_alias
1473 target=$target_alias
1474
1475 # FIXME: To remove some day.
1476 if test "x$host_alias" != x; then
1477   if test "x$build_alias" = x; then
1478     cross_compiling=maybe
1479     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1480     If a cross compiler is detected then cross compile mode will be used" >&2
1481   elif test "x$build_alias" != "x$host_alias"; then
1482     cross_compiling=yes
1483   fi
1484 fi
1485
1486 ac_tool_prefix=
1487 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1488
1489 test "$silent" = yes && exec 6>/dev/null
1490
1491
1492 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1493 ac_ls_di=`ls -di .` &&
1494 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1495   as_fn_error $? "working directory cannot be determined"
1496 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1497   as_fn_error $? "pwd does not report name of working directory"
1498
1499
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502   ac_srcdir_defaulted=yes
1503   # Try the directory containing this script, then the parent directory.
1504   ac_confdir=`$as_dirname -- "$as_myself" ||
1505 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506          X"$as_myself" : 'X\(//\)[^/]' \| \
1507          X"$as_myself" : 'X\(//\)$' \| \
1508          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1509 $as_echo X"$as_myself" |
1510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)[^/].*/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\/\)$/{
1519             s//\1/
1520             q
1521           }
1522           /^X\(\/\).*/{
1523             s//\1/
1524             q
1525           }
1526           s/.*/./; q'`
1527   srcdir=$ac_confdir
1528   if test ! -r "$srcdir/$ac_unique_file"; then
1529     srcdir=..
1530   fi
1531 else
1532   ac_srcdir_defaulted=no
1533 fi
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1537 fi
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1539 ac_abs_confdir=`(
1540         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1541         pwd)`
1542 # When building in place, set srcdir=.
1543 if test "$ac_abs_confdir" = "$ac_pwd"; then
1544   srcdir=.
1545 fi
1546 # Remove unnecessary trailing slashes from srcdir.
1547 # Double slashes in file names in object file debugging info
1548 # mess up M-x gdb in Emacs.
1549 case $srcdir in
1550 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1551 esac
1552 for ac_var in $ac_precious_vars; do
1553   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1554   eval ac_env_${ac_var}_value=\$${ac_var}
1555   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1556   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1557 done
1558
1559 #
1560 # Report the --help message.
1561 #
1562 if test "$ac_init_help" = "long"; then
1563   # Omit some internal or obsolete options to make the list less imposing.
1564   # This message is too long to be a string in the A/UX 3.1 sh.
1565   cat <<_ACEOF
1566 \`configure' configures this package to adapt to many kinds of systems.
1567
1568 Usage: $0 [OPTION]... [VAR=VALUE]...
1569
1570 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1571 VAR=VALUE.  See below for descriptions of some of the useful variables.
1572
1573 Defaults for the options are specified in brackets.
1574
1575 Configuration:
1576   -h, --help              display this help and exit
1577       --help=short        display options specific to this package
1578       --help=recursive    display the short help of all the included packages
1579   -V, --version           display version information and exit
1580   -q, --quiet, --silent   do not print \`checking ...' messages
1581       --cache-file=FILE   cache test results in FILE [disabled]
1582   -C, --config-cache      alias for \`--cache-file=config.cache'
1583   -n, --no-create         do not create output files
1584       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1585
1586 Installation directories:
1587   --prefix=PREFIX         install architecture-independent files in PREFIX
1588                           [$ac_default_prefix]
1589   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1590                           [PREFIX]
1591
1592 By default, \`make install' will install all the files in
1593 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1594 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1595 for instance \`--prefix=\$HOME'.
1596
1597 For better control, use the options below.
1598
1599 Fine tuning of the installation directories:
1600   --bindir=DIR            user executables [EPREFIX/bin]
1601   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1602   --libexecdir=DIR        program executables [EPREFIX/libexec]
1603   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1604   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1605   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1606   --libdir=DIR            object code libraries [EPREFIX/lib]
1607   --includedir=DIR        C header files [PREFIX/include]
1608   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1609   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1610   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1611   --infodir=DIR           info documentation [DATAROOTDIR/info]
1612   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1613   --mandir=DIR            man documentation [DATAROOTDIR/man]
1614   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1615   --htmldir=DIR           html documentation [DOCDIR]
1616   --dvidir=DIR            dvi documentation [DOCDIR]
1617   --pdfdir=DIR            pdf documentation [DOCDIR]
1618   --psdir=DIR             ps documentation [DOCDIR]
1619 _ACEOF
1620
1621   cat <<\_ACEOF
1622
1623 Program names:
1624   --program-prefix=PREFIX            prepend PREFIX to installed program names
1625   --program-suffix=SUFFIX            append SUFFIX to installed program names
1626   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1627
1628 System types:
1629   --build=BUILD     configure for building on BUILD [guessed]
1630   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1631 _ACEOF
1632 fi
1633
1634 if test -n "$ac_init_help"; then
1635
1636   cat <<\_ACEOF
1637
1638 Optional Features:
1639   --disable-option-checking  ignore unrecognized --enable/--with options
1640   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1641   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1642   --enable-silent-rules          less verbose build output (undo: `make V=1')
1643   --disable-silent-rules         verbose build output (undo: `make V=0')
1644   --disable-dependency-tracking  speeds up one-time build
1645   --enable-dependency-tracking   do not reject slow dependency extractors
1646   --enable-static[=PKGS]  build static libraries [default=no]
1647   --enable-shared[=PKGS]  build shared libraries [default=yes]
1648   --enable-fast-install[=PKGS]
1649                           optimize for fast installation [default=yes]
1650   --disable-libtool-lock  avoid locking (might break parallel builds)
1651   --enable-symbolic-functions
1652                           use -Bsymbolic-functions option if available
1653                           (optmization for size and speed)
1654   --enable-debug          enable assert call at the default error message
1655                           handler
1656   --enable-resmgr         support resmgr (optional)
1657   --disable-aload         disable reading /dev/aload*
1658   --disable-mixer         disable the mixer component
1659   --disable-pcm           disable the PCM component
1660   --disable-rawmidi       disable the raw MIDI component
1661   --disable-hwdep         disable the hwdep component
1662   --disable-seq           disable the sequencer component
1663   --disable-ucm           disable the use-case-manager component
1664   --disable-alisp         disable the alisp component
1665   --disable-old-symbols   disable old obsoleted symbols
1666   --disable-python        disable the python components
1667
1668 Optional Packages:
1669   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1670   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1671   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1672   --with-pic              try to use only PIC/non-PIC objects [default=use
1673                           both]
1674   --with-tags[=TAGS]      include additional configurations [automatic]
1675   --with-configdir=dir    path where ALSA config files are stored
1676   --with-plugindir=dir    path where ALSA plugin files are stored
1677   --with-versioned        shared library will be compiled with versioned
1678                           symbols (default = yes)
1679   --with-debug            library will be compiled with asserts (default =
1680                           yes)
1681   --with-tmpdir=directory directory to put tmp socket files (/tmp)
1682   --with-softfloat        do you have floating point unit on this machine?
1683                           (optional)
1684   --with-libdl            Use libdl for plugins (default = yes)
1685   --with-pthread          Use pthread (default = yes)
1686   --with-librt            Use librt for monotonic clock (default = yes)
1687   --with-alsa-devdir=dir  directory with ALSA device files (default /dev/snd)
1688   --with-aload-devdir=dir directory with aload* device files (default /dev)
1689   --with-pythonlibs=ldflags
1690                           specify python libraries (-lpthread -lm -ldl
1691                           -lpython2.4)
1692   --with-pythonincludes=Cflags
1693                           specify python C header files
1694                           (-I/usr/include/python)
1695   --with-pcm-plugins=<list>
1696                           build PCM plugins (default = all)
1697   --with-ctl-plugins=<list>
1698                           build control plugins (default = all)
1699
1700 Some influential environment variables:
1701   CC          C compiler command
1702   CFLAGS      C compiler flags
1703   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1704               nonstandard directory <lib dir>
1705   LIBS        libraries to pass to the linker, e.g. -l<library>
1706   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1707               you have headers in a nonstandard directory <include dir>
1708   CPP         C preprocessor
1709   CXX         C++ compiler command
1710   CXXFLAGS    C++ compiler flags
1711   CXXCPP      C++ preprocessor
1712   F77         Fortran 77 compiler command
1713   FFLAGS      Fortran 77 compiler flags
1714
1715 Use these variables to override the choices made by `configure' or to help
1716 it to find libraries and programs with nonstandard names/locations.
1717
1718 Report bugs to the package provider.
1719 _ACEOF
1720 ac_status=$?
1721 fi
1722
1723 if test "$ac_init_help" = "recursive"; then
1724   # If there are subdirs, report their specific --help.
1725   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726     test -d "$ac_dir" ||
1727       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728       continue
1729     ac_builddir=.
1730
1731 case "$ac_dir" in
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *)
1734   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735   # A ".." for each directory in $ac_dir_suffix.
1736   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737   case $ac_top_builddir_sub in
1738   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740   esac ;;
1741 esac
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1746
1747 case $srcdir in
1748   .)  # We are building in place.
1749     ac_srcdir=.
1750     ac_top_srcdir=$ac_top_builddir_sub
1751     ac_abs_top_srcdir=$ac_pwd ;;
1752   [\\/]* | ?:[\\/]* )  # Absolute name.
1753     ac_srcdir=$srcdir$ac_dir_suffix;
1754     ac_top_srcdir=$srcdir
1755     ac_abs_top_srcdir=$srcdir ;;
1756   *) # Relative name.
1757     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758     ac_top_srcdir=$ac_top_build_prefix$srcdir
1759     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1760 esac
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1762
1763     cd "$ac_dir" || { ac_status=$?; continue; }
1764     # Check for guested configure.
1765     if test -f "$ac_srcdir/configure.gnu"; then
1766       echo &&
1767       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768     elif test -f "$ac_srcdir/configure"; then
1769       echo &&
1770       $SHELL "$ac_srcdir/configure" --help=recursive
1771     else
1772       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773     fi || ac_status=$?
1774     cd "$ac_pwd" || { ac_status=$?; break; }
1775   done
1776 fi
1777
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1780   cat <<\_ACEOF
1781 configure
1782 generated by GNU Autoconf 2.68
1783
1784 Copyright (C) 2010 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1787 _ACEOF
1788   exit
1789 fi
1790
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1794
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   rm -f conftest.$ac_objext
1802   if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805   *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809   (eval "$ac_compile") 2>conftest.err
1810   ac_status=$?
1811   if test -s conftest.err; then
1812     grep -v '^ *+' conftest.err >conftest.er1
1813     cat conftest.er1 >&5
1814     mv -f conftest.er1 conftest.err
1815   fi
1816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817   test $ac_status = 0; } && {
1818          test -z "$ac_c_werror_flag" ||
1819          test ! -s conftest.err
1820        } && test -s conftest.$ac_objext; 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   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829   as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_compile
1832
1833 # ac_fn_c_try_cpp LINENO
1834 # ----------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_cpp ()
1837 {
1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839   if { { ac_try="$ac_cpp conftest.$ac_ext"
1840 case "(($ac_try" in
1841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842   *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847   ac_status=$?
1848   if test -s conftest.err; then
1849     grep -v '^ *+' conftest.err >conftest.er1
1850     cat conftest.er1 >&5
1851     mv -f conftest.er1 conftest.err
1852   fi
1853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854   test $ac_status = 0; } > conftest.i && {
1855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856          test ! -s conftest.err
1857        }; then :
1858   ac_retval=0
1859 else
1860   $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863     ac_retval=1
1864 fi
1865   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866   as_fn_set_status $ac_retval
1867
1868 } # ac_fn_c_try_cpp
1869
1870 # ac_fn_c_try_link LINENO
1871 # -----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_link ()
1874 {
1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876   rm -f conftest.$ac_objext conftest$ac_exeext
1877   if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880   *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884   (eval "$ac_link") 2>conftest.err
1885   ac_status=$?
1886   if test -s conftest.err; then
1887     grep -v '^ *+' conftest.err >conftest.er1
1888     cat conftest.er1 >&5
1889     mv -f conftest.er1 conftest.err
1890   fi
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } && {
1893          test -z "$ac_c_werror_flag" ||
1894          test ! -s conftest.err
1895        } && test -s conftest$ac_exeext && {
1896          test "$cross_compiling" = yes ||
1897          $as_test_x conftest$ac_exeext
1898        }; then :
1899   ac_retval=0
1900 else
1901   $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1903
1904         ac_retval=1
1905 fi
1906   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908   # interfere with the next link command; also delete a directory that is
1909   # left behind by Apple's compiler.  We do this before executing the actions.
1910   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912   as_fn_set_status $ac_retval
1913
1914 } # ac_fn_c_try_link
1915
1916 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1919 # the include files in INCLUDES and setting the cache variable VAR
1920 # accordingly.
1921 ac_fn_c_check_header_mongrel ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   if eval \${$3+:} false; then :
1925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928   $as_echo_n "(cached) " >&6
1929 fi
1930 eval ac_res=\$$3
1931                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 else
1934   # Is the header compilable?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1936 $as_echo_n "checking $2 usability... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h.  */
1939 $4
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   ac_header_compiler=yes
1944 else
1945   ac_header_compiler=no
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1949 $as_echo "$ac_header_compiler" >&6; }
1950
1951 # Is the header present?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1953 $as_echo_n "checking $2 presence... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h.  */
1956 #include <$2>
1957 _ACEOF
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959   ac_header_preproc=yes
1960 else
1961   ac_header_preproc=no
1962 fi
1963 rm -f conftest.err conftest.i conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1965 $as_echo "$ac_header_preproc" >&6; }
1966
1967 # So?  What about this header?
1968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1969   yes:no: )
1970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1971 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974     ;;
1975   no:yes:* )
1976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1977 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1978     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1979 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1981 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1983 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1984     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986     ;;
1987 esac
1988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991   $as_echo_n "(cached) " >&6
1992 else
1993   eval "$3=\$ac_header_compiler"
1994 fi
1995 eval ac_res=\$$3
1996                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 fi
1999   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_header_mongrel
2002
2003 # ac_fn_c_try_run LINENO
2004 # ----------------------
2005 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2006 # that executables *can* be run.
2007 ac_fn_c_try_run ()
2008 {
2009   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010   if { { ac_try="$ac_link"
2011 case "(($ac_try" in
2012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013   *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017   (eval "$ac_link") 2>&5
2018   ac_status=$?
2019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2021   { { case "(($ac_try" in
2022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023   *) ac_try_echo=$ac_try;;
2024 esac
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027   (eval "$ac_try") 2>&5
2028   ac_status=$?
2029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030   test $ac_status = 0; }; }; then :
2031   ac_retval=0
2032 else
2033   $as_echo "$as_me: program exited with status $ac_status" >&5
2034        $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2036
2037        ac_retval=$ac_status
2038 fi
2039   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041   as_fn_set_status $ac_retval
2042
2043 } # ac_fn_c_try_run
2044
2045 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2046 # -------------------------------------------------------
2047 # Tests whether HEADER exists and can be compiled using the include files in
2048 # INCLUDES, setting the cache variable VAR accordingly.
2049 ac_fn_c_check_header_compile ()
2050 {
2051   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055   $as_echo_n "(cached) " >&6
2056 else
2057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h.  */
2059 $4
2060 #include <$2>
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063   eval "$3=yes"
2064 else
2065   eval "$3=no"
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$3
2070                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_c_check_header_compile
2075
2076 # ac_fn_c_check_func LINENO FUNC VAR
2077 # ----------------------------------
2078 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2079 ac_fn_c_check_func ()
2080 {
2081   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085   $as_echo_n "(cached) " >&6
2086 else
2087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h.  */
2089 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2091 #define $2 innocuous_$2
2092
2093 /* System header to define __stub macros and hopefully few prototypes,
2094     which can conflict with char $2 (); below.
2095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2096     <limits.h> exists even on freestanding compilers.  */
2097
2098 #ifdef __STDC__
2099 # include <limits.h>
2100 #else
2101 # include <assert.h>
2102 #endif
2103
2104 #undef $2
2105
2106 /* Override any GCC internal prototype to avoid an error.
2107    Use char because int might match the return type of a GCC
2108    builtin and then its argument prototype would still apply.  */
2109 #ifdef __cplusplus
2110 extern "C"
2111 #endif
2112 char $2 ();
2113 /* The GNU C library defines this for functions which it implements
2114     to always fail with ENOSYS.  Some functions are actually named
2115     something starting with __ and the normal name is an alias.  */
2116 #if defined __stub_$2 || defined __stub___$2
2117 choke me
2118 #endif
2119
2120 int
2121 main ()
2122 {
2123 return $2 ();
2124   ;
2125   return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_link "$LINENO"; then :
2129   eval "$3=yes"
2130 else
2131   eval "$3=no"
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext \
2134     conftest$ac_exeext conftest.$ac_ext
2135 fi
2136 eval ac_res=\$$3
2137                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140
2141 } # ac_fn_c_check_func
2142
2143 # ac_fn_cxx_try_compile LINENO
2144 # ----------------------------
2145 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2146 ac_fn_cxx_try_compile ()
2147 {
2148   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149   rm -f conftest.$ac_objext
2150   if { { ac_try="$ac_compile"
2151 case "(($ac_try" in
2152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153   *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157   (eval "$ac_compile") 2>conftest.err
2158   ac_status=$?
2159   if test -s conftest.err; then
2160     grep -v '^ *+' conftest.err >conftest.er1
2161     cat conftest.er1 >&5
2162     mv -f conftest.er1 conftest.err
2163   fi
2164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165   test $ac_status = 0; } && {
2166          test -z "$ac_cxx_werror_flag" ||
2167          test ! -s conftest.err
2168        } && test -s conftest.$ac_objext; then :
2169   ac_retval=0
2170 else
2171   $as_echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2173
2174         ac_retval=1
2175 fi
2176   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177   as_fn_set_status $ac_retval
2178
2179 } # ac_fn_cxx_try_compile
2180
2181 # ac_fn_cxx_try_cpp LINENO
2182 # ------------------------
2183 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2184 ac_fn_cxx_try_cpp ()
2185 {
2186   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187   if { { ac_try="$ac_cpp conftest.$ac_ext"
2188 case "(($ac_try" in
2189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190   *) ac_try_echo=$ac_try;;
2191 esac
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2195   ac_status=$?
2196   if test -s conftest.err; then
2197     grep -v '^ *+' conftest.err >conftest.er1
2198     cat conftest.er1 >&5
2199     mv -f conftest.er1 conftest.err
2200   fi
2201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202   test $ac_status = 0; } > conftest.i && {
2203          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2204          test ! -s conftest.err
2205        }; then :
2206   ac_retval=0
2207 else
2208   $as_echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2210
2211     ac_retval=1
2212 fi
2213   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214   as_fn_set_status $ac_retval
2215
2216 } # ac_fn_cxx_try_cpp
2217
2218 # ac_fn_cxx_try_link LINENO
2219 # -------------------------
2220 # Try to link conftest.$ac_ext, and return whether this succeeded.
2221 ac_fn_cxx_try_link ()
2222 {
2223   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224   rm -f conftest.$ac_objext conftest$ac_exeext
2225   if { { ac_try="$ac_link"
2226 case "(($ac_try" in
2227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228   *) ac_try_echo=$ac_try;;
2229 esac
2230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2231 $as_echo "$ac_try_echo"; } >&5
2232   (eval "$ac_link") 2>conftest.err
2233   ac_status=$?
2234   if test -s conftest.err; then
2235     grep -v '^ *+' conftest.err >conftest.er1
2236     cat conftest.er1 >&5
2237     mv -f conftest.er1 conftest.err
2238   fi
2239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240   test $ac_status = 0; } && {
2241          test -z "$ac_cxx_werror_flag" ||
2242          test ! -s conftest.err
2243        } && test -s conftest$ac_exeext && {
2244          test "$cross_compiling" = yes ||
2245          $as_test_x conftest$ac_exeext
2246        }; then :
2247   ac_retval=0
2248 else
2249   $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252         ac_retval=1
2253 fi
2254   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2255   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2256   # interfere with the next link command; also delete a directory that is
2257   # left behind by Apple's compiler.  We do this before executing the actions.
2258   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2259   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260   as_fn_set_status $ac_retval
2261
2262 } # ac_fn_cxx_try_link
2263
2264 # ac_fn_f77_try_compile LINENO
2265 # ----------------------------
2266 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2267 ac_fn_f77_try_compile ()
2268 {
2269   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270   rm -f conftest.$ac_objext
2271   if { { ac_try="$ac_compile"
2272 case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277 $as_echo "$ac_try_echo"; } >&5
2278   (eval "$ac_compile") 2>conftest.err
2279   ac_status=$?
2280   if test -s conftest.err; then
2281     grep -v '^ *+' conftest.err >conftest.er1
2282     cat conftest.er1 >&5
2283     mv -f conftest.er1 conftest.err
2284   fi
2285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286   test $ac_status = 0; } && {
2287          test -z "$ac_f77_werror_flag" ||
2288          test ! -s conftest.err
2289        } && test -s conftest.$ac_objext; then :
2290   ac_retval=0
2291 else
2292   $as_echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295         ac_retval=1
2296 fi
2297   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298   as_fn_set_status $ac_retval
2299
2300 } # ac_fn_f77_try_compile
2301
2302 # ac_fn_f77_try_link LINENO
2303 # -------------------------
2304 # Try to link conftest.$ac_ext, and return whether this succeeded.
2305 ac_fn_f77_try_link ()
2306 {
2307   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308   rm -f conftest.$ac_objext conftest$ac_exeext
2309   if { { ac_try="$ac_link"
2310 case "(($ac_try" in
2311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312   *) ac_try_echo=$ac_try;;
2313 esac
2314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315 $as_echo "$ac_try_echo"; } >&5
2316   (eval "$ac_link") 2>conftest.err
2317   ac_status=$?
2318   if test -s conftest.err; then
2319     grep -v '^ *+' conftest.err >conftest.er1
2320     cat conftest.er1 >&5
2321     mv -f conftest.er1 conftest.err
2322   fi
2323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2324   test $ac_status = 0; } && {
2325          test -z "$ac_f77_werror_flag" ||
2326          test ! -s conftest.err
2327        } && test -s conftest$ac_exeext && {
2328          test "$cross_compiling" = yes ||
2329          $as_test_x conftest$ac_exeext
2330        }; then :
2331   ac_retval=0
2332 else
2333   $as_echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2335
2336         ac_retval=1
2337 fi
2338   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2339   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2340   # interfere with the next link command; also delete a directory that is
2341   # left behind by Apple's compiler.  We do this before executing the actions.
2342   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2343   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2344   as_fn_set_status $ac_retval
2345
2346 } # ac_fn_f77_try_link
2347 cat >config.log <<_ACEOF
2348 This file contains any messages produced by compilers while
2349 running configure, to aid debugging if configure makes a mistake.
2350
2351 It was created by $as_me, which was
2352 generated by GNU Autoconf 2.68.  Invocation command line was
2353
2354   $ $0 $@
2355
2356 _ACEOF
2357 exec 5>>config.log
2358 {
2359 cat <<_ASUNAME
2360 ## --------- ##
2361 ## Platform. ##
2362 ## --------- ##
2363
2364 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2369
2370 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2371 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2372
2373 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2374 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2375 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2376 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2377 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2378 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2379 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2380
2381 _ASUNAME
2382
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386   IFS=$as_save_IFS
2387   test -z "$as_dir" && as_dir=.
2388     $as_echo "PATH: $as_dir"
2389   done
2390 IFS=$as_save_IFS
2391
2392 } >&5
2393
2394 cat >&5 <<_ACEOF
2395
2396
2397 ## ----------- ##
2398 ## Core tests. ##
2399 ## ----------- ##
2400
2401 _ACEOF
2402
2403
2404 # Keep a trace of the command line.
2405 # Strip out --no-create and --no-recursion so they do not pile up.
2406 # Strip out --silent because we don't want to record it for future runs.
2407 # Also quote any args containing shell meta-characters.
2408 # Make two passes to allow for proper duplicate-argument suppression.
2409 ac_configure_args=
2410 ac_configure_args0=
2411 ac_configure_args1=
2412 ac_must_keep_next=false
2413 for ac_pass in 1 2
2414 do
2415   for ac_arg
2416   do
2417     case $ac_arg in
2418     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2419     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2420     | -silent | --silent | --silen | --sile | --sil)
2421       continue ;;
2422     *\'*)
2423       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2424     esac
2425     case $ac_pass in
2426     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2427     2)
2428       as_fn_append ac_configure_args1 " '$ac_arg'"
2429       if test $ac_must_keep_next = true; then
2430         ac_must_keep_next=false # Got value, back to normal.
2431       else
2432         case $ac_arg in
2433           *=* | --config-cache | -C | -disable-* | --disable-* \
2434           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2435           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2436           | -with-* | --with-* | -without-* | --without-* | --x)
2437             case "$ac_configure_args0 " in
2438               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2439             esac
2440             ;;
2441           -* ) ac_must_keep_next=true ;;
2442         esac
2443       fi
2444       as_fn_append ac_configure_args " '$ac_arg'"
2445       ;;
2446     esac
2447   done
2448 done
2449 { ac_configure_args0=; unset ac_configure_args0;}
2450 { ac_configure_args1=; unset ac_configure_args1;}
2451
2452 # When interrupted or exit'd, cleanup temporary files, and complete
2453 # config.log.  We remove comments because anyway the quotes in there
2454 # would cause problems or look ugly.
2455 # WARNING: Use '\'' to represent an apostrophe within the trap.
2456 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2457 trap 'exit_status=$?
2458   # Save into config.log some information that might help in debugging.
2459   {
2460     echo
2461
2462     $as_echo "## ---------------- ##
2463 ## Cache variables. ##
2464 ## ---------------- ##"
2465     echo
2466     # The following way of writing the cache mishandles newlines in values,
2467 (
2468   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469     eval ac_val=\$$ac_var
2470     case $ac_val in #(
2471     *${as_nl}*)
2472       case $ac_var in #(
2473       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2475       esac
2476       case $ac_var in #(
2477       _ | IFS | as_nl) ;; #(
2478       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2479       *) { eval $ac_var=; unset $ac_var;} ;;
2480       esac ;;
2481     esac
2482   done
2483   (set) 2>&1 |
2484     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485     *${as_nl}ac_space=\ *)
2486       sed -n \
2487         "s/'\''/'\''\\\\'\'''\''/g;
2488           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2489       ;; #(
2490     *)
2491       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2492       ;;
2493     esac |
2494     sort
2495 )
2496     echo
2497
2498     $as_echo "## ----------------- ##
2499 ## Output variables. ##
2500 ## ----------------- ##"
2501     echo
2502     for ac_var in $ac_subst_vars
2503     do
2504       eval ac_val=\$$ac_var
2505       case $ac_val in
2506       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507       esac
2508       $as_echo "$ac_var='\''$ac_val'\''"
2509     done | sort
2510     echo
2511
2512     if test -n "$ac_subst_files"; then
2513       $as_echo "## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##"
2516       echo
2517       for ac_var in $ac_subst_files
2518       do
2519         eval ac_val=\$$ac_var
2520         case $ac_val in
2521         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522         esac
2523         $as_echo "$ac_var='\''$ac_val'\''"
2524       done | sort
2525       echo
2526     fi
2527
2528     if test -s confdefs.h; then
2529       $as_echo "## ----------- ##
2530 ## confdefs.h. ##
2531 ## ----------- ##"
2532       echo
2533       cat confdefs.h
2534       echo
2535     fi
2536     test "$ac_signal" != 0 &&
2537       $as_echo "$as_me: caught signal $ac_signal"
2538     $as_echo "$as_me: exit $exit_status"
2539   } >&5
2540   rm -f core *.core core.conftest.* &&
2541     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2542     exit $exit_status
2543 ' 0
2544 for ac_signal in 1 2 13 15; do
2545   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2546 done
2547 ac_signal=0
2548
2549 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2550 rm -f -r conftest* confdefs.h
2551
2552 $as_echo "/* confdefs.h */" > confdefs.h
2553
2554 # Predefined preprocessor variables.
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_NAME "$PACKAGE_NAME"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2566 _ACEOF
2567
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_STRING "$PACKAGE_STRING"
2570 _ACEOF
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2574 _ACEOF
2575
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_URL "$PACKAGE_URL"
2578 _ACEOF
2579
2580
2581 # Let the site file select an alternate cache file if it wants to.
2582 # Prefer an explicitly selected file to automatically selected ones.
2583 ac_site_file1=NONE
2584 ac_site_file2=NONE
2585 if test -n "$CONFIG_SITE"; then
2586   # We do not want a PATH search for config.site.
2587   case $CONFIG_SITE in #((
2588     -*)  ac_site_file1=./$CONFIG_SITE;;
2589     */*) ac_site_file1=$CONFIG_SITE;;
2590     *)   ac_site_file1=./$CONFIG_SITE;;
2591   esac
2592 elif test "x$prefix" != xNONE; then
2593   ac_site_file1=$prefix/share/config.site
2594   ac_site_file2=$prefix/etc/config.site
2595 else
2596   ac_site_file1=$ac_default_prefix/share/config.site
2597   ac_site_file2=$ac_default_prefix/etc/config.site
2598 fi
2599 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2600 do
2601   test "x$ac_site_file" = xNONE && continue
2602   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2603     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2605     sed 's/^/| /' "$ac_site_file" >&5
2606     . "$ac_site_file" \
2607       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 as_fn_error $? "failed to load site script $ac_site_file
2610 See \`config.log' for more details" "$LINENO" 5; }
2611   fi
2612 done
2613
2614 if test -r "$cache_file"; then
2615   # Some versions of bash will fail to source /dev/null (special files
2616   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2617   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619 $as_echo "$as_me: loading cache $cache_file" >&6;}
2620     case $cache_file in
2621       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622       *)                      . "./$cache_file";;
2623     esac
2624   fi
2625 else
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627 $as_echo "$as_me: creating cache $cache_file" >&6;}
2628   >$cache_file
2629 fi
2630
2631 # Check that the precious variables saved in the cache have kept the same
2632 # value.
2633 ac_cache_corrupted=false
2634 for ac_var in $ac_precious_vars; do
2635   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2636   eval ac_new_set=\$ac_env_${ac_var}_set
2637   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2638   eval ac_new_val=\$ac_env_${ac_var}_value
2639   case $ac_old_set,$ac_new_set in
2640     set,)
2641       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2643       ac_cache_corrupted=: ;;
2644     ,set)
2645       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2646 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2647       ac_cache_corrupted=: ;;
2648     ,);;
2649     *)
2650       if test "x$ac_old_val" != "x$ac_new_val"; then
2651         # differences in whitespace do not lead to failure.
2652         ac_old_val_w=`echo x $ac_old_val`
2653         ac_new_val_w=`echo x $ac_new_val`
2654         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2655           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2656 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2657           ac_cache_corrupted=:
2658         else
2659           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2660 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2661           eval $ac_var=\$ac_old_val
2662         fi
2663         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2664 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2665         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2666 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2667       fi;;
2668   esac
2669   # Pass precious variables to config.status.
2670   if test "$ac_new_set" = set; then
2671     case $ac_new_val in
2672     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2673     *) ac_arg=$ac_var=$ac_new_val ;;
2674     esac
2675     case " $ac_configure_args " in
2676       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2677       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2678     esac
2679   fi
2680 done
2681 if $ac_cache_corrupted; then
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2685 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2686   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2687 fi
2688 ## -------------------- ##
2689 ## Main body of script. ##
2690 ## -------------------- ##
2691
2692 ac_ext=c
2693 ac_cpp='$CPP $CPPFLAGS'
2694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2697
2698
2699
2700
2701
2702 ac_aux_dir=
2703 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2704   if test -f "$ac_dir/install-sh"; then
2705     ac_aux_dir=$ac_dir
2706     ac_install_sh="$ac_aux_dir/install-sh -c"
2707     break
2708   elif test -f "$ac_dir/install.sh"; then
2709     ac_aux_dir=$ac_dir
2710     ac_install_sh="$ac_aux_dir/install.sh -c"
2711     break
2712   elif test -f "$ac_dir/shtool"; then
2713     ac_aux_dir=$ac_dir
2714     ac_install_sh="$ac_aux_dir/shtool install -c"
2715     break
2716   fi
2717 done
2718 if test -z "$ac_aux_dir"; then
2719   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2720 fi
2721
2722 # These three variables are undocumented and unsupported,
2723 # and are intended to be withdrawn in a future Autoconf release.
2724 # They can cause serious problems if a builder's source tree is in a directory
2725 # whose full name contains unusual characters.
2726 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2727 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2728 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2729
2730
2731 # Make sure we can run config.sub.
2732 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2733   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2734
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2736 $as_echo_n "checking build system type... " >&6; }
2737 if ${ac_cv_build+:} false; then :
2738   $as_echo_n "(cached) " >&6
2739 else
2740   ac_build_alias=$build_alias
2741 test "x$ac_build_alias" = x &&
2742   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2743 test "x$ac_build_alias" = x &&
2744   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2745 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2746   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2747
2748 fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2750 $as_echo "$ac_cv_build" >&6; }
2751 case $ac_cv_build in
2752 *-*-*) ;;
2753 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2754 esac
2755 build=$ac_cv_build
2756 ac_save_IFS=$IFS; IFS='-'
2757 set x $ac_cv_build
2758 shift
2759 build_cpu=$1
2760 build_vendor=$2
2761 shift; shift
2762 # Remember, the first character of IFS is used to create $*,
2763 # except with old shells:
2764 build_os=$*
2765 IFS=$ac_save_IFS
2766 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2767
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2770 $as_echo_n "checking host system type... " >&6; }
2771 if ${ac_cv_host+:} false; then :
2772   $as_echo_n "(cached) " >&6
2773 else
2774   if test "x$host_alias" = x; then
2775   ac_cv_host=$ac_cv_build
2776 else
2777   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2778     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2779 fi
2780
2781 fi
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2783 $as_echo "$ac_cv_host" >&6; }
2784 case $ac_cv_host in
2785 *-*-*) ;;
2786 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2787 esac
2788 host=$ac_cv_host
2789 ac_save_IFS=$IFS; IFS='-'
2790 set x $ac_cv_host
2791 shift
2792 host_cpu=$1
2793 host_vendor=$2
2794 shift; shift
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2797 host_os=$*
2798 IFS=$ac_save_IFS
2799 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2800
2801
2802 am__api_version='1.11'
2803
2804 # Find a good install program.  We prefer a C program (faster),
2805 # so one script is as good as another.  But avoid the broken or
2806 # incompatible versions:
2807 # SysV /etc/install, /usr/sbin/install
2808 # SunOS /usr/etc/install
2809 # IRIX /sbin/install
2810 # AIX /bin/install
2811 # AmigaOS /C/install, which installs bootblocks on floppy discs
2812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2815 # OS/2's system install, which has a completely different semantic
2816 # ./install, which can be erroneously created by make from ./install.sh.
2817 # Reject install programs that cannot install multiple files.
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2819 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2820 if test -z "$INSTALL"; then
2821 if ${ac_cv_path_install+:} false; then :
2822   $as_echo_n "(cached) " >&6
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     # Account for people who put trailing slashes in PATH elements.
2830 case $as_dir/ in #((
2831   ./ | .// | /[cC]/* | \
2832   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2833   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2834   /usr/ucb/* ) ;;
2835   *)
2836     # OSF1 and SCO ODT 3.0 have their own names for install.
2837     # Don't use installbsd from OSF since it installs stuff as root
2838     # by default.
2839     for ac_prog in ginstall scoinst install; do
2840       for ac_exec_ext in '' $ac_executable_extensions; do
2841         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2842           if test $ac_prog = install &&
2843             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844             # AIX install.  It has an incompatible calling convention.
2845             :
2846           elif test $ac_prog = install &&
2847             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848             # program-specific install script used by HP pwplus--don't use.
2849             :
2850           else
2851             rm -rf conftest.one conftest.two conftest.dir
2852             echo one > conftest.one
2853             echo two > conftest.two
2854             mkdir conftest.dir
2855             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2856               test -s conftest.one && test -s conftest.two &&
2857               test -s conftest.dir/conftest.one &&
2858               test -s conftest.dir/conftest.two
2859             then
2860               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2861               break 3
2862             fi
2863           fi
2864         fi
2865       done
2866     done
2867     ;;
2868 esac
2869
2870   done
2871 IFS=$as_save_IFS
2872
2873 rm -rf conftest.one conftest.two conftest.dir
2874
2875 fi
2876   if test "${ac_cv_path_install+set}" = set; then
2877     INSTALL=$ac_cv_path_install
2878   else
2879     # As a last resort, use the slow shell script.  Don't cache a
2880     # value for INSTALL within a source directory, because that will
2881     # break other packages using the cache if that directory is
2882     # removed, or if the value is a relative name.
2883     INSTALL=$ac_install_sh
2884   fi
2885 fi
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2887 $as_echo "$INSTALL" >&6; }
2888
2889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2890 # It thinks the first close brace ends the variable substitution.
2891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2892
2893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2894
2895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2896
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2898 $as_echo_n "checking whether build environment is sane... " >&6; }
2899 # Just in case
2900 sleep 1
2901 echo timestamp > conftest.file
2902 # Reject unsafe characters in $srcdir or the absolute working directory
2903 # name.  Accept space and tab only in the latter.
2904 am_lf='
2905 '
2906 case `pwd` in
2907   *[\\\"\#\$\&\'\`$am_lf]*)
2908     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2909 esac
2910 case $srcdir in
2911   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2912     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2913 esac
2914
2915 # Do `set' in a subshell so we don't clobber the current shell's
2916 # arguments.  Must try -L first in case configure is actually a
2917 # symlink; some systems play weird games with the mod time of symlinks
2918 # (eg FreeBSD returns the mod time of the symlink's containing
2919 # directory).
2920 if (
2921    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2922    if test "$*" = "X"; then
2923       # -L didn't work.
2924       set X `ls -t "$srcdir/configure" conftest.file`
2925    fi
2926    rm -f conftest.file
2927    if test "$*" != "X $srcdir/configure conftest.file" \
2928       && test "$*" != "X conftest.file $srcdir/configure"; then
2929
2930       # If neither matched, then we have a broken ls.  This can happen
2931       # if, for instance, CONFIG_SHELL is bash and it inherits a
2932       # broken ls alias from the environment.  This has actually
2933       # happened.  Such a system could not be considered "sane".
2934       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2935 alias in your environment" "$LINENO" 5
2936    fi
2937
2938    test "$2" = conftest.file
2939    )
2940 then
2941    # Ok.
2942    :
2943 else
2944    as_fn_error $? "newly created file is older than distributed files!
2945 Check your system clock" "$LINENO" 5
2946 fi
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2949 test "$program_prefix" != NONE &&
2950   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2951 # Use a double $ so make ignores it.
2952 test "$program_suffix" != NONE &&
2953   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2954 # Double any \ or $.
2955 # By default was `s,x,x', remove it if useless.
2956 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2957 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2958
2959 # expand $ac_aux_dir to an absolute path
2960 am_aux_dir=`cd $ac_aux_dir && pwd`
2961
2962 if test x"${MISSING+set}" != xset; then
2963   case $am_aux_dir in
2964   *\ * | *\     *)
2965     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2966   *)
2967     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2968   esac
2969 fi
2970 # Use eval to expand $SHELL
2971 if eval "$MISSING --run true"; then
2972   am_missing_run="$MISSING --run "
2973 else
2974   am_missing_run=
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2976 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2977 fi
2978
2979 if test x"${install_sh}" != xset; then
2980   case $am_aux_dir in
2981   *\ * | *\     *)
2982     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2983   *)
2984     install_sh="\${SHELL} $am_aux_dir/install-sh"
2985   esac
2986 fi
2987
2988 # Installed binaries are usually stripped using `strip' when the user
2989 # run `make install-strip'.  However `strip' might not be the right
2990 # tool to use in cross-compilation environments, therefore Automake
2991 # will honor the `STRIP' environment variable to overrule this program.
2992 if test "$cross_compiling" != no; then
2993   if test -n "$ac_tool_prefix"; then
2994   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}strip; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_STRIP+:} false; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   if test -n "$STRIP"; then
3002   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
3008   test -z "$as_dir" && as_dir=.
3009     for ac_exec_ext in '' $ac_executable_extensions; do
3010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013     break 2
3014   fi
3015 done
3016   done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 STRIP=$ac_cv_prog_STRIP
3022 if test -n "$STRIP"; then
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3024 $as_echo "$STRIP" >&6; }
3025 else
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031 fi
3032 if test -z "$ac_cv_prog_STRIP"; then
3033   ac_ct_STRIP=$STRIP
3034   # Extract the first word of "strip", so it can be a program name with args.
3035 set dummy strip; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3039   $as_echo_n "(cached) " >&6
3040 else
3041   if test -n "$ac_ct_STRIP"; then
3042   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049     for ac_exec_ext in '' $ac_executable_extensions; do
3050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051     ac_cv_prog_ac_ct_STRIP="strip"
3052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056   done
3057 IFS=$as_save_IFS
3058
3059 fi
3060 fi
3061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3062 if test -n "$ac_ct_STRIP"; then
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3064 $as_echo "$ac_ct_STRIP" >&6; }
3065 else
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070   if test "x$ac_ct_STRIP" = x; then
3071     STRIP=":"
3072   else
3073     case $cross_compiling:$ac_tool_warned in
3074 yes:)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned=yes ;;
3078 esac
3079     STRIP=$ac_ct_STRIP
3080   fi
3081 else
3082   STRIP="$ac_cv_prog_STRIP"
3083 fi
3084
3085 fi
3086 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3089 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3090 if test -z "$MKDIR_P"; then
3091   if ${ac_cv_path_mkdir+:} false; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_prog in mkdir gmkdir; do
3100          for ac_exec_ext in '' $ac_executable_extensions; do
3101            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3102            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3103              'mkdir (GNU coreutils) '* | \
3104              'mkdir (coreutils) '* | \
3105              'mkdir (fileutils) '4.1*)
3106                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3107                break 3;;
3108            esac
3109          done
3110        done
3111   done
3112 IFS=$as_save_IFS
3113
3114 fi
3115
3116   test -d ./--version && rmdir ./--version
3117   if test "${ac_cv_path_mkdir+set}" = set; then
3118     MKDIR_P="$ac_cv_path_mkdir -p"
3119   else
3120     # As a last resort, use the slow shell script.  Don't cache a
3121     # value for MKDIR_P within a source directory, because that will
3122     # break other packages using the cache if that directory is
3123     # removed, or if the value is a relative name.
3124     MKDIR_P="$ac_install_sh -d"
3125   fi
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3128 $as_echo "$MKDIR_P" >&6; }
3129
3130 mkdir_p="$MKDIR_P"
3131 case $mkdir_p in
3132   [\\/$]* | ?:[\\/]*) ;;
3133   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3134 esac
3135
3136 for ac_prog in gawk mawk nawk awk
3137 do
3138   # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_AWK+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if test -n "$AWK"; then
3146   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153     for ac_exec_ext in '' $ac_executable_extensions; do
3154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155     ac_cv_prog_AWK="$ac_prog"
3156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160   done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 AWK=$ac_cv_prog_AWK
3166 if test -n "$AWK"; then
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3168 $as_echo "$AWK" >&6; }
3169 else
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175   test -n "$AWK" && break
3176 done
3177
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3180 set x ${MAKE-make}
3181 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3182 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   cat >conftest.make <<\_ACEOF
3186 SHELL = /bin/sh
3187 all:
3188         @echo '@@@%%%=$(MAKE)=@@@%%%'
3189 _ACEOF
3190 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3191 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3192   *@@@%%%=?*=@@@%%%*)
3193     eval ac_cv_prog_make_${ac_make}_set=yes;;
3194   *)
3195     eval ac_cv_prog_make_${ac_make}_set=no;;
3196 esac
3197 rm -f conftest.make
3198 fi
3199 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3202   SET_MAKE=
3203 else
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206   SET_MAKE="MAKE=${MAKE-make}"
3207 fi
3208
3209 rm -rf .tst 2>/dev/null
3210 mkdir .tst 2>/dev/null
3211 if test -d .tst; then
3212   am__leading_dot=.
3213 else
3214   am__leading_dot=_
3215 fi
3216 rmdir .tst 2>/dev/null
3217
3218 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3219   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3220   # is not polluted with repeated "-I."
3221   am__isrc=' -I$(srcdir)'
3222   # test to see if srcdir already configured
3223   if test -f $srcdir/config.status; then
3224     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3225   fi
3226 fi
3227
3228 # test whether we have cygpath
3229 if test -z "$CYGPATH_W"; then
3230   if (cygpath --version) >/dev/null 2>/dev/null; then
3231     CYGPATH_W='cygpath -w'
3232   else
3233     CYGPATH_W=echo
3234   fi
3235 fi
3236
3237
3238 # Define the identity of the package.
3239  PACKAGE=alsa-lib
3240  VERSION=1.0.24.1
3241
3242
3243 cat >>confdefs.h <<_ACEOF
3244 #define PACKAGE "$PACKAGE"
3245 _ACEOF
3246
3247
3248 cat >>confdefs.h <<_ACEOF
3249 #define VERSION "$VERSION"
3250 _ACEOF
3251
3252 # Some tools Automake needs.
3253
3254 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3255
3256
3257 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3258
3259
3260 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3261
3262
3263 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3264
3265
3266 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3267
3268 # We need awk for the "check" target.  The system "awk" is bad on
3269 # some platforms.
3270 # Always define AMTAR for backward compatibility.
3271
3272 AMTAR=${AMTAR-"${am_missing_run}tar"}
3273
3274 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3275
3276
3277
3278
3279
3280 eval LIBTOOL_VERSION_INFO="2:0:0"
3281  if test -n "${ACLOCAL}"; then
3282   INSTALL_M4_TRUE=
3283   INSTALL_M4_FALSE='#'
3284 else
3285   INSTALL_M4_TRUE='#'
3286   INSTALL_M4_FALSE=
3287 fi
3288
3289
3290 # Test for new silent rules and enable only if they are available
3291 # Check whether --enable-silent-rules was given.
3292 if test "${enable_silent_rules+set}" = set; then :
3293   enableval=$enable_silent_rules;
3294 fi
3295
3296 case $enable_silent_rules in
3297 yes) AM_DEFAULT_VERBOSITY=0;;
3298 no)  AM_DEFAULT_VERBOSITY=1;;
3299 *)   AM_DEFAULT_VERBOSITY=0;;
3300 esac
3301 AM_BACKSLASH='\'
3302
3303
3304
3305
3306
3307 if test "x$host" != "x$build" -a -z "`echo $CC | grep -e '-gcc'`";
3308 then
3309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compiler" >&5
3310 $as_echo_n "checking for cross-compiler... " >&6; }
3311
3312   which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
3313   which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \
3314   && CC=${host_cpu}-${host-os}-gcc
3315   which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \
3316   && CC=${host_cpu}-${host_vendor}-${host_os}-gcc
3317
3318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319 $as_echo "$CC" >&6; }
3320 fi
3321
3322 CFLAGS="$CFLAGS -D_GNU_SOURCE"
3323
3324
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330 if test -n "$ac_tool_prefix"; then
3331   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3332 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_CC+:} false; then :
3336   $as_echo_n "(cached) " >&6
3337 else
3338   if test -n "$CC"; then
3339   ac_cv_prog_CC="$CC" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344   IFS=$as_save_IFS
3345   test -z "$as_dir" && as_dir=.
3346     for ac_exec_ext in '' $ac_executable_extensions; do
3347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350     break 2
3351   fi
3352 done
3353   done
3354 IFS=$as_save_IFS
3355
3356 fi
3357 fi
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3362 else
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 fi
3366
3367
3368 fi
3369 if test -z "$ac_cv_prog_CC"; then
3370   ac_ct_CC=$CC
3371   # Extract the first word of "gcc", so it can be a program name with args.
3372 set dummy gcc; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3376   $as_echo_n "(cached) " >&6
3377 else
3378   if test -n "$ac_ct_CC"; then
3379   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384   IFS=$as_save_IFS
3385   test -z "$as_dir" && as_dir=.
3386     for ac_exec_ext in '' $ac_executable_extensions; do
3387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388     ac_cv_prog_ac_ct_CC="gcc"
3389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390     break 2
3391   fi
3392 done
3393   done
3394 IFS=$as_save_IFS
3395
3396 fi
3397 fi
3398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3399 if test -n "$ac_ct_CC"; then
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3401 $as_echo "$ac_ct_CC" >&6; }
3402 else
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 fi
3406
3407   if test "x$ac_ct_CC" = x; then
3408     CC=""
3409   else
3410     case $cross_compiling:$ac_tool_warned in
3411 yes:)
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3414 ac_tool_warned=yes ;;
3415 esac
3416     CC=$ac_ct_CC
3417   fi
3418 else
3419   CC="$ac_cv_prog_CC"
3420 fi
3421
3422 if test -z "$CC"; then
3423           if test -n "$ac_tool_prefix"; then
3424     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3425 set dummy ${ac_tool_prefix}cc; ac_word=$2
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 $as_echo_n "checking for $ac_word... " >&6; }
3428 if ${ac_cv_prog_CC+:} false; then :
3429   $as_echo_n "(cached) " >&6
3430 else
3431   if test -n "$CC"; then
3432   ac_cv_prog_CC="$CC" # Let the user override the test.
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3436 do
3437   IFS=$as_save_IFS
3438   test -z "$as_dir" && as_dir=.
3439     for ac_exec_ext in '' $ac_executable_extensions; do
3440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3441     ac_cv_prog_CC="${ac_tool_prefix}cc"
3442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443     break 2
3444   fi
3445 done
3446   done
3447 IFS=$as_save_IFS
3448
3449 fi
3450 fi
3451 CC=$ac_cv_prog_CC
3452 if test -n "$CC"; then
3453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3454 $as_echo "$CC" >&6; }
3455 else
3456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3458 fi
3459
3460
3461   fi
3462 fi
3463 if test -z "$CC"; then
3464   # Extract the first word of "cc", so it can be a program name with args.
3465 set dummy cc; ac_word=$2
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 $as_echo_n "checking for $ac_word... " >&6; }
3468 if ${ac_cv_prog_CC+:} false; then :
3469   $as_echo_n "(cached) " >&6
3470 else
3471   if test -n "$CC"; then
3472   ac_cv_prog_CC="$CC" # Let the user override the test.
3473 else
3474   ac_prog_rejected=no
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478   IFS=$as_save_IFS
3479   test -z "$as_dir" && as_dir=.
3480     for ac_exec_ext in '' $ac_executable_extensions; do
3481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3482     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3483        ac_prog_rejected=yes
3484        continue
3485      fi
3486     ac_cv_prog_CC="cc"
3487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488     break 2
3489   fi
3490 done
3491   done
3492 IFS=$as_save_IFS
3493
3494 if test $ac_prog_rejected = yes; then
3495   # We found a bogon in the path, so make sure we never use it.
3496   set dummy $ac_cv_prog_CC
3497   shift
3498   if test $# != 0; then
3499     # We chose a different compiler from the bogus one.
3500     # However, it has the same basename, so the bogon will be chosen
3501     # first if we set CC to just the basename; use the full file name.
3502     shift
3503     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3504   fi
3505 fi
3506 fi
3507 fi
3508 CC=$ac_cv_prog_CC
3509 if test -n "$CC"; then
3510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511 $as_echo "$CC" >&6; }
3512 else
3513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3515 fi
3516
3517
3518 fi
3519 if test -z "$CC"; then
3520   if test -n "$ac_tool_prefix"; then
3521   for ac_prog in cl.exe
3522   do
3523     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if ${ac_cv_prog_CC+:} false; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   if test -n "$CC"; then
3531   ac_cv_prog_CC="$CC" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538     for ac_exec_ext in '' $ac_executable_extensions; do
3539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545   done
3546 IFS=$as_save_IFS
3547
3548 fi
3549 fi
3550 CC=$ac_cv_prog_CC
3551 if test -n "$CC"; then
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3553 $as_echo "$CC" >&6; }
3554 else
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557 fi
3558
3559
3560     test -n "$CC" && break
3561   done
3562 fi
3563 if test -z "$CC"; then
3564   ac_ct_CC=$CC
3565   for ac_prog in cl.exe
3566 do
3567   # Extract the first word of "$ac_prog", so it can be a program name with args.
3568 set dummy $ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3572   $as_echo_n "(cached) " >&6
3573 else
3574   if test -n "$ac_ct_CC"; then
3575   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580   IFS=$as_save_IFS
3581   test -z "$as_dir" && as_dir=.
3582     for ac_exec_ext in '' $ac_executable_extensions; do
3583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584     ac_cv_prog_ac_ct_CC="$ac_prog"
3585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586     break 2
3587   fi
3588 done
3589   done
3590 IFS=$as_save_IFS
3591
3592 fi
3593 fi
3594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3595 if test -n "$ac_ct_CC"; then
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3597 $as_echo "$ac_ct_CC" >&6; }
3598 else
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3601 fi
3602
3603
3604   test -n "$ac_ct_CC" && break
3605 done
3606
3607   if test "x$ac_ct_CC" = x; then
3608     CC=""
3609   else
3610     case $cross_compiling:$ac_tool_warned in
3611 yes:)
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3614 ac_tool_warned=yes ;;
3615 esac
3616     CC=$ac_ct_CC
3617   fi
3618 fi
3619
3620 fi
3621
3622
3623 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error $? "no acceptable C compiler found in \$PATH
3626 See \`config.log' for more details" "$LINENO" 5; }
3627
3628 # Provide some information about the compiler.
3629 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3630 set X $ac_compile
3631 ac_compiler=$2
3632 for ac_option in --version -v -V -qversion; do
3633   { { ac_try="$ac_compiler $ac_option >&5"
3634 case "(($ac_try" in
3635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636   *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3641   ac_status=$?
3642   if test -s conftest.err; then
3643     sed '10a\
3644 ... rest of stderr output deleted ...
3645          10q' conftest.err >conftest.er1
3646     cat conftest.er1 >&5
3647   fi
3648   rm -f conftest.er1 conftest.err
3649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650   test $ac_status = 0; }
3651 done
3652
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h.  */
3655
3656 int
3657 main ()
3658 {
3659
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 ac_clean_files_save=$ac_clean_files
3665 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3666 # Try to create an executable without -o first, disregard a.out.
3667 # It will help us diagnose broken compilers, and finding out an intuition
3668 # of exeext.
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3670 $as_echo_n "checking whether the C compiler works... " >&6; }
3671 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3672
3673 # The possible output files:
3674 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3675
3676 ac_rmfiles=
3677 for ac_file in $ac_files
3678 do
3679   case $ac_file in
3680     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3682   esac
3683 done
3684 rm -f $ac_rmfiles
3685
3686 if { { ac_try="$ac_link_default"
3687 case "(($ac_try" in
3688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689   *) ac_try_echo=$ac_try;;
3690 esac
3691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692 $as_echo "$ac_try_echo"; } >&5
3693   (eval "$ac_link_default") 2>&5
3694   ac_status=$?
3695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696   test $ac_status = 0; }; then :
3697   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3698 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3699 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3700 # so that the user can short-circuit this test for compilers unknown to
3701 # Autoconf.
3702 for ac_file in $ac_files ''
3703 do
3704   test -f "$ac_file" || continue
3705   case $ac_file in
3706     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3707         ;;
3708     [ab].out )
3709         # We found the default executable, but exeext='' is most
3710         # certainly right.
3711         break;;
3712     *.* )
3713         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3714         then :; else
3715            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3716         fi
3717         # We set ac_cv_exeext here because the later test for it is not
3718         # safe: cross compilers may not add the suffix if given an `-o'
3719         # argument, so we may need to know it at that point already.
3720         # Even if this section looks crufty: it has the advantage of
3721         # actually working.
3722         break;;
3723     * )
3724         break;;
3725   esac
3726 done
3727 test "$ac_cv_exeext" = no && ac_cv_exeext=
3728
3729 else
3730   ac_file=''
3731 fi
3732 if test -z "$ac_file"; then :
3733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 $as_echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3740 as_fn_error 77 "C compiler cannot create executables
3741 See \`config.log' for more details" "$LINENO" 5; }
3742 else
3743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3744 $as_echo "yes" >&6; }
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3747 $as_echo_n "checking for C compiler default output file name... " >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3749 $as_echo "$ac_file" >&6; }
3750 ac_exeext=$ac_cv_exeext
3751
3752 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3753 ac_clean_files=$ac_clean_files_save
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3755 $as_echo_n "checking for suffix of executables... " >&6; }
3756 if { { ac_try="$ac_link"
3757 case "(($ac_try" in
3758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759   *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763   (eval "$ac_link") 2>&5
3764   ac_status=$?
3765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766   test $ac_status = 0; }; then :
3767   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3768 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3769 # work properly (i.e., refer to `conftest.exe'), while it won't with
3770 # `rm'.
3771 for ac_file in conftest.exe conftest conftest.*; do
3772   test -f "$ac_file" || continue
3773   case $ac_file in
3774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3775     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776           break;;
3777     * ) break;;
3778   esac
3779 done
3780 else
3781   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3784 See \`config.log' for more details" "$LINENO" 5; }
3785 fi
3786 rm -f conftest conftest$ac_cv_exeext
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3788 $as_echo "$ac_cv_exeext" >&6; }
3789
3790 rm -f conftest.$ac_ext
3791 EXEEXT=$ac_cv_exeext
3792 ac_exeext=$EXEEXT
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h.  */
3795 #include <stdio.h>
3796 int
3797 main ()
3798 {
3799 FILE *f = fopen ("conftest.out", "w");
3800  return ferror (f) || fclose (f) != 0;
3801
3802   ;
3803   return 0;
3804 }
3805 _ACEOF
3806 ac_clean_files="$ac_clean_files conftest.out"
3807 # Check that the compiler produces executables we can run.  If not, either
3808 # the compiler is broken, or we cross compile.
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3810 $as_echo_n "checking whether we are cross compiling... " >&6; }
3811 if test "$cross_compiling" != yes; then
3812   { { ac_try="$ac_link"
3813 case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819   (eval "$ac_link") 2>&5
3820   ac_status=$?
3821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822   test $ac_status = 0; }
3823   if { ac_try='./conftest$ac_cv_exeext'
3824   { { case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830   (eval "$ac_try") 2>&5
3831   ac_status=$?
3832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833   test $ac_status = 0; }; }; then
3834     cross_compiling=no
3835   else
3836     if test "$cross_compiling" = maybe; then
3837         cross_compiling=yes
3838     else
3839         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error $? "cannot run C compiled programs.
3842 If you meant to cross compile, use \`--host'.
3843 See \`config.log' for more details" "$LINENO" 5; }
3844     fi
3845   fi
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3848 $as_echo "$cross_compiling" >&6; }
3849
3850 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3851 ac_clean_files=$ac_clean_files_save
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3853 $as_echo_n "checking for suffix of object files... " >&6; }
3854 if ${ac_cv_objext+:} false; then :
3855   $as_echo_n "(cached) " >&6
3856 else
3857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h.  */
3859
3860 int
3861 main ()
3862 {
3863
3864   ;
3865   return 0;
3866 }
3867 _ACEOF
3868 rm -f conftest.o conftest.obj
3869 if { { ac_try="$ac_compile"
3870 case "(($ac_try" in
3871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872   *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876   (eval "$ac_compile") 2>&5
3877   ac_status=$?
3878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879   test $ac_status = 0; }; then :
3880   for ac_file in conftest.o conftest.obj conftest.*; do
3881   test -f "$ac_file" || continue;
3882   case $ac_file in
3883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3884     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3885        break;;
3886   esac
3887 done
3888 else
3889   $as_echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error $? "cannot compute suffix of object files: cannot compile
3895 See \`config.log' for more details" "$LINENO" 5; }
3896 fi
3897 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3900 $as_echo "$ac_cv_objext" >&6; }
3901 OBJEXT=$ac_cv_objext
3902 ac_objext=$OBJEXT
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3904 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3905 if ${ac_cv_c_compiler_gnu+:} false; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914 #ifndef __GNUC__
3915        choke me
3916 #endif
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923   ac_compiler_gnu=yes
3924 else
3925   ac_compiler_gnu=no
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3929
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3932 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3933 if test $ac_compiler_gnu = yes; then
3934   GCC=yes
3935 else
3936   GCC=
3937 fi
3938 ac_test_CFLAGS=${CFLAGS+set}
3939 ac_save_CFLAGS=$CFLAGS
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3942 if ${ac_cv_prog_cc_g+:} false; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   ac_save_c_werror_flag=$ac_c_werror_flag
3946    ac_c_werror_flag=yes
3947    ac_cv_prog_cc_g=no
3948    CFLAGS="-g"
3949    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h.  */
3951
3952 int
3953 main ()
3954 {
3955
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 if ac_fn_c_try_compile "$LINENO"; then :
3961   ac_cv_prog_cc_g=yes
3962 else
3963   CFLAGS=""
3964       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h.  */
3966
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976
3977 else
3978   ac_c_werror_flag=$ac_save_c_werror_flag
3979          CFLAGS="-g"
3980          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h.  */
3982
3983 int
3984 main ()
3985 {
3986
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992   ac_cv_prog_cc_g=yes
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 fi
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 fi
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999    ac_c_werror_flag=$ac_save_c_werror_flag
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4002 $as_echo "$ac_cv_prog_cc_g" >&6; }
4003 if test "$ac_test_CFLAGS" = set; then
4004   CFLAGS=$ac_save_CFLAGS
4005 elif test $ac_cv_prog_cc_g = yes; then
4006   if test "$GCC" = yes; then
4007     CFLAGS="-g -O2"
4008   else
4009     CFLAGS="-g"
4010   fi
4011 else
4012   if test "$GCC" = yes; then
4013     CFLAGS="-O2"
4014   else
4015     CFLAGS=
4016   fi
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4019 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4020 if ${ac_cv_prog_cc_c89+:} false; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023   ac_cv_prog_cc_c89=no
4024 ac_save_CC=$CC
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h.  */
4027 #include <stdarg.h>
4028 #include <stdio.h>
4029 #include <sys/types.h>
4030 #include <sys/stat.h>
4031 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4032 struct buf { int x; };
4033 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4034 static char *e (p, i)
4035      char **p;
4036      int i;
4037 {
4038   return p[i];
4039 }
4040 static char *f (char * (*g) (char **, int), char **p, ...)
4041 {
4042   char *s;
4043   va_list v;
4044   va_start (v,p);
4045   s = g (p, va_arg (v,int));
4046   va_end (v);
4047   return s;
4048 }
4049
4050 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4051    function prototypes and stuff, but not '\xHH' hex character constants.
4052    These don't provoke an error unfortunately, instead are silently treated
4053    as 'x'.  The following induces an error, until -std is added to get
4054    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4055    array size at least.  It's necessary to write '\x00'==0 to get something
4056    that's true only with -std.  */
4057 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4058
4059 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4060    inside strings and character constants.  */
4061 #define FOO(x) 'x'
4062 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4063
4064 int test (int i, double x);
4065 struct s1 {int (*f) (int a);};
4066 struct s2 {int (*f) (double a);};
4067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4068 int argc;
4069 char **argv;
4070 int
4071 main ()
4072 {
4073 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4079         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4080 do
4081   CC="$ac_save_CC $ac_arg"
4082   if ac_fn_c_try_compile "$LINENO"; then :
4083   ac_cv_prog_cc_c89=$ac_arg
4084 fi
4085 rm -f core conftest.err conftest.$ac_objext
4086   test "x$ac_cv_prog_cc_c89" != "xno" && break
4087 done
4088 rm -f conftest.$ac_ext
4089 CC=$ac_save_CC
4090
4091 fi
4092 # AC_CACHE_VAL
4093 case "x$ac_cv_prog_cc_c89" in
4094   x)
4095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4096 $as_echo "none needed" >&6; } ;;
4097   xno)
4098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4099 $as_echo "unsupported" >&6; } ;;
4100   *)
4101     CC="$CC $ac_cv_prog_cc_c89"
4102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4103 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4104 esac
4105 if test "x$ac_cv_prog_cc_c89" != xno; then :
4106
4107 fi
4108
4109 ac_ext=c
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114 DEPDIR="${am__leading_dot}deps"
4115
4116 ac_config_commands="$ac_config_commands depfiles"
4117
4118
4119 am_make=${MAKE-make}
4120 cat > confinc << 'END'
4121 am__doit:
4122         @echo this is the am__doit target
4123 .PHONY: am__doit
4124 END
4125 # If we don't find an include directive, just comment out the code.
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4127 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4128 am__include="#"
4129 am__quote=
4130 _am_result=none
4131 # First try GNU make style include.
4132 echo "include confinc" > confmf
4133 # Ignore all kinds of additional output from `make'.
4134 case `$am_make -s -f confmf 2> /dev/null` in #(
4135 *the\ am__doit\ target*)
4136   am__include=include
4137   am__quote=
4138   _am_result=GNU
4139   ;;
4140 esac
4141 # Now try BSD make style include.
4142 if test "$am__include" = "#"; then
4143    echo '.include "confinc"' > confmf
4144    case `$am_make -s -f confmf 2> /dev/null` in #(
4145    *the\ am__doit\ target*)
4146      am__include=.include
4147      am__quote="\""
4148      _am_result=BSD
4149      ;;
4150    esac
4151 fi
4152
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4155 $as_echo "$_am_result" >&6; }
4156 rm -f confinc confmf
4157
4158 # Check whether --enable-dependency-tracking was given.
4159 if test "${enable_dependency_tracking+set}" = set; then :
4160   enableval=$enable_dependency_tracking;
4161 fi
4162
4163 if test "x$enable_dependency_tracking" != xno; then
4164   am_depcomp="$ac_aux_dir/depcomp"
4165   AMDEPBACKSLASH='\'
4166 fi
4167  if test "x$enable_dependency_tracking" != xno; then
4168   AMDEP_TRUE=
4169   AMDEP_FALSE='#'
4170 else
4171   AMDEP_TRUE='#'
4172   AMDEP_FALSE=
4173 fi
4174
4175
4176
4177 depcc="$CC"   am_compiler_list=
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4180 $as_echo_n "checking dependency style of $depcc... " >&6; }
4181 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4185   # We make a subdir and do the tests there.  Otherwise we can end up
4186   # making bogus files that we don't know about and never remove.  For
4187   # instance it was reported that on HP-UX the gcc test will end up
4188   # making a dummy file named `D' -- because `-MD' means `put the output
4189   # in D'.
4190   mkdir conftest.dir
4191   # Copy depcomp to subdir because otherwise we won't find it if we're
4192   # using a relative directory.
4193   cp "$am_depcomp" conftest.dir
4194   cd conftest.dir
4195   # We will build objects and dependencies in a subdirectory because
4196   # it helps to detect inapplicable dependency modes.  For instance
4197   # both Tru64's cc and ICC support -MD to output dependencies as a
4198   # side effect of compilation, but ICC will put the dependencies in
4199   # the current directory while Tru64 will put them in the object
4200   # directory.
4201   mkdir sub
4202
4203   am_cv_CC_dependencies_compiler_type=none
4204   if test "$am_compiler_list" = ""; then
4205      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4206   fi
4207   am__universal=false
4208   case " $depcc " in #(
4209      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4210      esac
4211
4212   for depmode in $am_compiler_list; do
4213     # Setup a source with many dependencies, because some compilers
4214     # like to wrap large dependency lists on column 80 (with \), and
4215     # we should not choose a depcomp mode which is confused by this.
4216     #
4217     # We need to recreate these files for each test, as the compiler may
4218     # overwrite some of them when testing with obscure command lines.
4219     # This happens at least with the AIX C compiler.
4220     : > sub/conftest.c
4221     for i in 1 2 3 4 5 6; do
4222       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4223       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4224       # Solaris 8's {/usr,}/bin/sh.
4225       touch sub/conftst$i.h
4226     done
4227     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4228
4229     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4230     # mode.  It turns out that the SunPro C++ compiler does not properly
4231     # handle `-M -o', and we need to detect this.  Also, some Intel
4232     # versions had trouble with output in subdirs
4233     am__obj=sub/conftest.${OBJEXT-o}
4234     am__minus_obj="-o $am__obj"
4235     case $depmode in
4236     gcc)
4237       # This depmode causes a compiler race in universal mode.
4238       test "$am__universal" = false || continue
4239       ;;
4240     nosideeffect)
4241       # after this tag, mechanisms are not by side-effect, so they'll
4242       # only be used when explicitly requested
4243       if test "x$enable_dependency_tracking" = xyes; then
4244         continue
4245       else
4246         break
4247       fi
4248       ;;
4249     msvisualcpp | msvcmsys)
4250       # This compiler won't grok `-c -o', but also, the minuso test has
4251       # not run yet.  These depmodes are late enough in the game, and
4252       # so weak that their functioning should not be impacted.
4253       am__obj=conftest.${OBJEXT-o}
4254       am__minus_obj=
4255       ;;
4256     none) break ;;
4257     esac
4258     if depmode=$depmode \
4259        source=sub/conftest.c object=$am__obj \
4260        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4261        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4262          >/dev/null 2>conftest.err &&
4263        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4264        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4265        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4266        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4267       # icc doesn't choke on unknown options, it will just issue warnings
4268       # or remarks (even with -Werror).  So we grep stderr for any message
4269       # that says an option was ignored or not supported.
4270       # When given -MP, icc 7.0 and 7.1 complain thusly:
4271       #   icc: Command line warning: ignoring option '-M'; no argument required
4272       # The diagnosis changed in icc 8.0:
4273       #   icc: Command line remark: option '-MP' not supported
4274       if (grep 'ignoring option' conftest.err ||
4275           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4276         am_cv_CC_dependencies_compiler_type=$depmode
4277         break
4278       fi
4279     fi
4280   done
4281
4282   cd ..
4283   rm -rf conftest.dir
4284 else
4285   am_cv_CC_dependencies_compiler_type=none
4286 fi
4287
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4290 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4291 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4292
4293  if
4294   test "x$enable_dependency_tracking" != xno \
4295   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4296   am__fastdepCC_TRUE=
4297   am__fastdepCC_FALSE='#'
4298 else
4299   am__fastdepCC_TRUE='#'
4300   am__fastdepCC_FALSE=
4301 fi
4302
4303
4304 ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4313   CPP=
4314 fi
4315 if test -z "$CPP"; then
4316   if ${ac_cv_prog_CPP+:} false; then :
4317   $as_echo_n "(cached) " >&6
4318 else
4319       # Double quotes because CPP needs to be expanded
4320     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4321     do
4322       ac_preproc_ok=false
4323 for ac_c_preproc_warn_flag in '' yes
4324 do
4325   # Use a header file that comes with gcc, so configuring glibc
4326   # with a fresh cross-compiler works.
4327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328   # <limits.h> exists even on freestanding compilers.
4329   # On the NeXT, cc -E runs the code through the compiler's parser,
4330   # not just through cpp. "Syntax error" is here to catch this case.
4331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h.  */
4333 #ifdef __STDC__
4334 # include <limits.h>
4335 #else
4336 # include <assert.h>
4337 #endif
4338                      Syntax error
4339 _ACEOF
4340 if ac_fn_c_try_cpp "$LINENO"; then :
4341
4342 else
4343   # Broken: fails on valid input.
4344 continue
4345 fi
4346 rm -f conftest.err conftest.i conftest.$ac_ext
4347
4348   # OK, works on sane cases.  Now check whether nonexistent headers
4349   # can be detected and how.
4350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h.  */
4352 #include <ac_nonexistent.h>
4353 _ACEOF
4354 if ac_fn_c_try_cpp "$LINENO"; then :
4355   # Broken: success on invalid input.
4356 continue
4357 else
4358   # Passes both tests.
4359 ac_preproc_ok=:
4360 break
4361 fi
4362 rm -f conftest.err conftest.i conftest.$ac_ext
4363
4364 done
4365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4366 rm -f conftest.i conftest.err conftest.$ac_ext
4367 if $ac_preproc_ok; then :
4368   break
4369 fi
4370
4371     done
4372     ac_cv_prog_CPP=$CPP
4373
4374 fi
4375   CPP=$ac_cv_prog_CPP
4376 else
4377   ac_cv_prog_CPP=$CPP
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4380 $as_echo "$CPP" >&6; }
4381 ac_preproc_ok=false
4382 for ac_c_preproc_warn_flag in '' yes
4383 do
4384   # Use a header file that comes with gcc, so configuring glibc
4385   # with a fresh cross-compiler works.
4386   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4387   # <limits.h> exists even on freestanding compilers.
4388   # On the NeXT, cc -E runs the code through the compiler's parser,
4389   # not just through cpp. "Syntax error" is here to catch this case.
4390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392 #ifdef __STDC__
4393 # include <limits.h>
4394 #else
4395 # include <assert.h>
4396 #endif
4397                      Syntax error
4398 _ACEOF
4399 if ac_fn_c_try_cpp "$LINENO"; then :
4400
4401 else
4402   # Broken: fails on valid input.
4403 continue
4404 fi
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4406
4407   # OK, works on sane cases.  Now check whether nonexistent headers
4408   # can be detected and how.
4409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h.  */
4411 #include <ac_nonexistent.h>
4412 _ACEOF
4413 if ac_fn_c_try_cpp "$LINENO"; then :
4414   # Broken: success on invalid input.
4415 continue
4416 else
4417   # Passes both tests.
4418 ac_preproc_ok=:
4419 break
4420 fi
4421 rm -f conftest.err conftest.i conftest.$ac_ext
4422
4423 done
4424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4425 rm -f conftest.i conftest.err conftest.$ac_ext
4426 if $ac_preproc_ok; then :
4427
4428 else
4429   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4431 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4432 See \`config.log' for more details" "$LINENO" 5; }
4433 fi
4434
4435 ac_ext=c
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4443 $as_echo_n "checking whether ln -s works... " >&6; }
4444 LN_S=$as_ln_s
4445 if test "$LN_S" = "ln -s"; then
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4447 $as_echo "yes" >&6; }
4448 else
4449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4450 $as_echo "no, using $LN_S" >&6; }
4451 fi
4452
4453 # Check whether --enable-static was given.
4454 if test "${enable_static+set}" = set; then :
4455   enableval=$enable_static; p=${PACKAGE-default}
4456     case $enableval in
4457     yes) enable_static=yes ;;
4458     no) enable_static=no ;;
4459     *)
4460      enable_static=no
4461       # Look at the argument we got.  We use all the common list separators.
4462       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4463       for pkg in $enableval; do
4464         IFS="$lt_save_ifs"
4465         if test "X$pkg" = "X$p"; then
4466           enable_static=yes
4467         fi
4468       done
4469       IFS="$lt_save_ifs"
4470       ;;
4471     esac
4472 else
4473   enable_static=no
4474 fi
4475
4476
4477
4478
4479
4480 # Check whether --enable-shared was given.
4481 if test "${enable_shared+set}" = set; then :
4482   enableval=$enable_shared; p=${PACKAGE-default}
4483     case $enableval in
4484     yes) enable_shared=yes ;;
4485     no) enable_shared=no ;;
4486     *)
4487       enable_shared=no
4488       # Look at the argument we got.  We use all the common list separators.
4489       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4490       for pkg in $enableval; do
4491         IFS="$lt_save_ifs"
4492         if test "X$pkg" = "X$p"; then
4493           enable_shared=yes
4494         fi
4495       done
4496       IFS="$lt_save_ifs"
4497       ;;
4498     esac
4499 else
4500   enable_shared=yes
4501 fi
4502
4503
4504 # Check whether --enable-fast-install was given.
4505 if test "${enable_fast_install+set}" = set; then :
4506   enableval=$enable_fast_install; p=${PACKAGE-default}
4507     case $enableval in
4508     yes) enable_fast_install=yes ;;
4509     no) enable_fast_install=no ;;
4510     *)
4511       enable_fast_install=no
4512       # Look at the argument we got.  We use all the common list separators.
4513       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4514       for pkg in $enableval; do
4515         IFS="$lt_save_ifs"
4516         if test "X$pkg" = "X$p"; then
4517           enable_fast_install=yes
4518         fi
4519       done
4520       IFS="$lt_save_ifs"
4521       ;;
4522     esac
4523 else
4524   enable_fast_install=yes
4525 fi
4526
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4529 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4530 if ${lt_cv_path_SED+:} false; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   # Loop through the user's path and test for sed and gsed.
4534 # Then use that list of sed's as ones to test for truncation.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538   IFS=$as_save_IFS
4539   test -z "$as_dir" && as_dir=.
4540   for lt_ac_prog in sed gsed; do
4541     for ac_exec_ext in '' $ac_executable_extensions; do
4542       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4543         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4544       fi
4545     done
4546   done
4547 done
4548 lt_ac_max=0
4549 lt_ac_count=0
4550 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4551 # along with /bin/sed that truncates output.
4552 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4553   test ! -f $lt_ac_sed && continue
4554   cat /dev/null > conftest.in
4555   lt_ac_count=0
4556   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4557   # Check for GNU sed and select it if it is found.
4558   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4559     lt_cv_path_SED=$lt_ac_sed
4560     break
4561   fi
4562   while true; do
4563     cat conftest.in conftest.in >conftest.tmp
4564     mv conftest.tmp conftest.in
4565     cp conftest.in conftest.nl
4566     echo >>conftest.nl
4567     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4568     cmp -s conftest.out conftest.nl || break
4569     # 10000 chars as input seems more than enough
4570     test $lt_ac_count -gt 10 && break
4571     lt_ac_count=`expr $lt_ac_count + 1`
4572     if test $lt_ac_count -gt $lt_ac_max; then
4573       lt_ac_max=$lt_ac_count
4574       lt_cv_path_SED=$lt_ac_sed
4575     fi
4576   done
4577 done
4578
4579 fi
4580
4581 SED=$lt_cv_path_SED
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4583 $as_echo "$SED" >&6; }
4584
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4586 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4587 if ${ac_cv_path_GREP+:} false; then :
4588   $as_echo_n "(cached) " >&6
4589 else
4590   if test -z "$GREP"; then
4591   ac_path_GREP_found=false
4592   # Loop through the user's path and test for each of PROGNAME-LIST
4593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598     for ac_prog in grep ggrep; do
4599     for ac_exec_ext in '' $ac_executable_extensions; do
4600       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4601       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4602 # Check for GNU ac_path_GREP and select it if it is found.
4603   # Check for GNU $ac_path_GREP
4604 case `"$ac_path_GREP" --version 2>&1` in
4605 *GNU*)
4606   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4607 *)
4608   ac_count=0
4609   $as_echo_n 0123456789 >"conftest.in"
4610   while :
4611   do
4612     cat "conftest.in" "conftest.in" >"conftest.tmp"
4613     mv "conftest.tmp" "conftest.in"
4614     cp "conftest.in" "conftest.nl"
4615     $as_echo 'GREP' >> "conftest.nl"
4616     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618     as_fn_arith $ac_count + 1 && ac_count=$as_val
4619     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4620       # Best one so far, save it but keep looking for a better one
4621       ac_cv_path_GREP="$ac_path_GREP"
4622       ac_path_GREP_max=$ac_count
4623     fi
4624     # 10*(2^10) chars as input seems more than enough
4625     test $ac_count -gt 10 && break
4626   done
4627   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628 esac
4629
4630       $ac_path_GREP_found && break 3
4631     done
4632   done
4633   done
4634 IFS=$as_save_IFS
4635   if test -z "$ac_cv_path_GREP"; then
4636     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4637   fi
4638 else
4639   ac_cv_path_GREP=$GREP
4640 fi
4641
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4644 $as_echo "$ac_cv_path_GREP" >&6; }
4645  GREP="$ac_cv_path_GREP"
4646
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4649 $as_echo_n "checking for egrep... " >&6; }
4650 if ${ac_cv_path_EGREP+:} false; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4654    then ac_cv_path_EGREP="$GREP -E"
4655    else
4656      if test -z "$EGREP"; then
4657   ac_path_EGREP_found=false
4658   # Loop through the user's path and test for each of PROGNAME-LIST
4659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664     for ac_prog in egrep; do
4665     for ac_exec_ext in '' $ac_executable_extensions; do
4666       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4667       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4668 # Check for GNU ac_path_EGREP and select it if it is found.
4669   # Check for GNU $ac_path_EGREP
4670 case `"$ac_path_EGREP" --version 2>&1` in
4671 *GNU*)
4672   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4673 *)
4674   ac_count=0
4675   $as_echo_n 0123456789 >"conftest.in"
4676   while :
4677   do
4678     cat "conftest.in" "conftest.in" >"conftest.tmp"
4679     mv "conftest.tmp" "conftest.in"
4680     cp "conftest.in" "conftest.nl"
4681     $as_echo 'EGREP' >> "conftest.nl"
4682     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684     as_fn_arith $ac_count + 1 && ac_count=$as_val
4685     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4686       # Best one so far, save it but keep looking for a better one
4687       ac_cv_path_EGREP="$ac_path_EGREP"
4688       ac_path_EGREP_max=$ac_count
4689     fi
4690     # 10*(2^10) chars as input seems more than enough
4691     test $ac_count -gt 10 && break
4692   done
4693   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694 esac
4695
4696       $ac_path_EGREP_found && break 3
4697     done
4698   done
4699   done
4700 IFS=$as_save_IFS
4701   if test -z "$ac_cv_path_EGREP"; then
4702     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4703   fi
4704 else
4705   ac_cv_path_EGREP=$EGREP
4706 fi
4707
4708    fi
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4711 $as_echo "$ac_cv_path_EGREP" >&6; }
4712  EGREP="$ac_cv_path_EGREP"
4713
4714
4715
4716 # Check whether --with-gnu-ld was given.
4717 if test "${with_gnu_ld+set}" = set; then :
4718   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4719 else
4720   with_gnu_ld=no
4721 fi
4722
4723 ac_prog=ld
4724 if test "$GCC" = yes; then
4725   # Check if gcc -print-prog-name=ld gives a path.
4726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4727 $as_echo_n "checking for ld used by $CC... " >&6; }
4728   case $host in
4729   *-*-mingw*)
4730     # gcc leaves a trailing carriage return which upsets mingw
4731     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4732   *)
4733     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4734   esac
4735   case $ac_prog in
4736     # Accept absolute paths.
4737     [\\/]* | ?:[\\/]*)
4738       re_direlt='/[^/][^/]*/\.\./'
4739       # Canonicalize the pathname of ld
4740       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4741       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4742         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4743       done
4744       test -z "$LD" && LD="$ac_prog"
4745       ;;
4746   "")
4747     # If it fails, then pretend we aren't using GCC.
4748     ac_prog=ld
4749     ;;
4750   *)
4751     # If it is relative, then search for the first ld in PATH.
4752     with_gnu_ld=unknown
4753     ;;
4754   esac
4755 elif test "$with_gnu_ld" = yes; then
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4757 $as_echo_n "checking for GNU ld... " >&6; }
4758 else
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4760 $as_echo_n "checking for non-GNU ld... " >&6; }
4761 fi
4762 if ${lt_cv_path_LD+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   if test -z "$LD"; then
4766   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4767   for ac_dir in $PATH; do
4768     IFS="$lt_save_ifs"
4769     test -z "$ac_dir" && ac_dir=.
4770     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4771       lt_cv_path_LD="$ac_dir/$ac_prog"
4772       # Check to see if the program is GNU ld.  I'd rather use --version,
4773       # but apparently some variants of GNU ld only accept -v.
4774       # Break only if it was the GNU/non-GNU ld that we prefer.
4775       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4776       *GNU* | *'with BFD'*)
4777         test "$with_gnu_ld" != no && break
4778         ;;
4779       *)
4780         test "$with_gnu_ld" != yes && break
4781         ;;
4782       esac
4783     fi
4784   done
4785   IFS="$lt_save_ifs"
4786 else
4787   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4788 fi
4789 fi
4790
4791 LD="$lt_cv_path_LD"
4792 if test -n "$LD"; then
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4794 $as_echo "$LD" >&6; }
4795 else
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4801 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4802 if ${lt_cv_prog_gnu_ld+:} false; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4806 case `$LD -v 2>&1 </dev/null` in
4807 *GNU* | *'with BFD'*)
4808   lt_cv_prog_gnu_ld=yes
4809   ;;
4810 *)
4811   lt_cv_prog_gnu_ld=no
4812   ;;
4813 esac
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4816 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4817 with_gnu_ld=$lt_cv_prog_gnu_ld
4818
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4821 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4822 if ${lt_cv_ld_reload_flag+:} false; then :
4823   $as_echo_n "(cached) " >&6
4824 else
4825   lt_cv_ld_reload_flag='-r'
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4828 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4829 reload_flag=$lt_cv_ld_reload_flag
4830 case $reload_flag in
4831 "" | " "*) ;;
4832 *) reload_flag=" $reload_flag" ;;
4833 esac
4834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4835 case $host_os in
4836   darwin*)
4837     if test "$GCC" = yes; then
4838       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4839     else
4840       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4841     fi
4842     ;;
4843 esac
4844
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4846 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4847 if ${lt_cv_path_NM+:} false; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   if test -n "$NM"; then
4851   # Let the user override the test.
4852   lt_cv_path_NM="$NM"
4853 else
4854   lt_nm_to_check="${ac_tool_prefix}nm"
4855   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4856     lt_nm_to_check="$lt_nm_to_check nm"
4857   fi
4858   for lt_tmp_nm in $lt_nm_to_check; do
4859     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4860     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4861       IFS="$lt_save_ifs"
4862       test -z "$ac_dir" && ac_dir=.
4863       tmp_nm="$ac_dir/$lt_tmp_nm"
4864       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4865         # Check to see if the nm accepts a BSD-compat flag.
4866         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4867         #   nm: unknown option "B" ignored
4868         # Tru64's nm complains that /dev/null is an invalid object file
4869         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4870         */dev/null* | *'Invalid file or object type'*)
4871           lt_cv_path_NM="$tmp_nm -B"
4872           break
4873           ;;
4874         *)
4875           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4876           */dev/null*)
4877             lt_cv_path_NM="$tmp_nm -p"
4878             break
4879             ;;
4880           *)
4881             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4882             continue # so that we can try to find one that supports BSD flags
4883             ;;
4884           esac
4885           ;;
4886         esac
4887       fi
4888     done
4889     IFS="$lt_save_ifs"
4890   done
4891   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4892 fi
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4895 $as_echo "$lt_cv_path_NM" >&6; }
4896 NM="$lt_cv_path_NM"
4897
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4899 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4900 if ${lt_cv_deplibs_check_method+:} false; then :
4901   $as_echo_n "(cached) " >&6
4902 else
4903   lt_cv_file_magic_cmd='$MAGIC_CMD'
4904 lt_cv_file_magic_test_file=
4905 lt_cv_deplibs_check_method='unknown'
4906 # Need to set the preceding variable on all platforms that support
4907 # interlibrary dependencies.
4908 # 'none' -- dependencies not supported.
4909 # `unknown' -- same as none, but documents that we really don't know.
4910 # 'pass_all' -- all dependencies passed with no checks.
4911 # 'test_compile' -- check by making test program.
4912 # 'file_magic [[regex]]' -- check by looking for files in library path
4913 # which responds to the $file_magic_cmd with a given extended regex.
4914 # If you have `file' or equivalent on your system and you're not sure
4915 # whether `pass_all' will *always* work, you probably want this one.
4916
4917 case $host_os in
4918 aix4* | aix5*)
4919   lt_cv_deplibs_check_method=pass_all
4920   ;;
4921
4922 beos*)
4923   lt_cv_deplibs_check_method=pass_all
4924   ;;
4925
4926 bsdi[45]*)
4927   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4928   lt_cv_file_magic_cmd='/usr/bin/file -L'
4929   lt_cv_file_magic_test_file=/shlib/libc.so
4930   ;;
4931
4932 cygwin*)
4933   # func_win32_libid is a shell function defined in ltmain.sh
4934   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4935   lt_cv_file_magic_cmd='func_win32_libid'
4936   ;;
4937
4938 mingw* | pw32*)
4939   # Base MSYS/MinGW do not provide the 'file' command needed by
4940   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4941   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4942   lt_cv_file_magic_cmd='$OBJDUMP -f'
4943   ;;
4944
4945 darwin* | rhapsody*)
4946   lt_cv_deplibs_check_method=pass_all
4947   ;;
4948
4949 freebsd* | kfreebsd*-gnu | dragonfly*)
4950   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4951     case $host_cpu in
4952     i*86 )
4953       # Not sure whether the presence of OpenBSD here was a mistake.
4954       # Let's accept both of them until this is cleared up.
4955       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4956       lt_cv_file_magic_cmd=/usr/bin/file
4957       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4958       ;;
4959     esac
4960   else
4961     lt_cv_deplibs_check_method=pass_all
4962   fi
4963   ;;
4964
4965 gnu*)
4966   lt_cv_deplibs_check_method=pass_all
4967   ;;
4968
4969 hpux10.20* | hpux11*)
4970   lt_cv_file_magic_cmd=/usr/bin/file
4971   case $host_cpu in
4972   ia64*)
4973     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4974     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4975     ;;
4976   hppa*64*)
4977     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4978     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4979     ;;
4980   *)
4981     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4982     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4983     ;;
4984   esac
4985   ;;
4986
4987 interix3*)
4988   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4989   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4990   ;;
4991
4992 irix5* | irix6* | nonstopux*)
4993   case $LD in
4994   *-32|*"-32 ") libmagic=32-bit;;
4995   *-n32|*"-n32 ") libmagic=N32;;
4996   *-64|*"-64 ") libmagic=64-bit;;
4997   *) libmagic=never-match;;
4998   esac
4999   lt_cv_deplibs_check_method=pass_all
5000   ;;
5001
5002 # This must be Linux ELF.
5003 linux*)
5004   lt_cv_deplibs_check_method=pass_all
5005   ;;
5006
5007 netbsd*)
5008   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5009     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5010   else
5011     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5012   fi
5013   ;;
5014
5015 newos6*)
5016   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5017   lt_cv_file_magic_cmd=/usr/bin/file
5018   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5019   ;;
5020
5021 nto-qnx*)
5022   lt_cv_deplibs_check_method=unknown
5023   ;;
5024
5025 openbsd*)
5026   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5027     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5028   else
5029     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5030   fi
5031   ;;
5032
5033 osf3* | osf4* | osf5*)
5034   lt_cv_deplibs_check_method=pass_all
5035   ;;
5036
5037 solaris*)
5038   lt_cv_deplibs_check_method=pass_all
5039   ;;
5040
5041 sysv4 | sysv4.3*)
5042   case $host_vendor in
5043   motorola)
5044     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]'
5045     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5046     ;;
5047   ncr)
5048     lt_cv_deplibs_check_method=pass_all
5049     ;;
5050   sequent)
5051     lt_cv_file_magic_cmd='/bin/file'
5052     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5053     ;;
5054   sni)
5055     lt_cv_file_magic_cmd='/bin/file'
5056     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5057     lt_cv_file_magic_test_file=/lib/libc.so
5058     ;;
5059   siemens)
5060     lt_cv_deplibs_check_method=pass_all
5061     ;;
5062   pc)
5063     lt_cv_deplibs_check_method=pass_all
5064     ;;
5065   esac
5066   ;;
5067
5068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5069   lt_cv_deplibs_check_method=pass_all
5070   ;;
5071 esac
5072
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5075 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5076 file_magic_cmd=$lt_cv_file_magic_cmd
5077 deplibs_check_method=$lt_cv_deplibs_check_method
5078 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5079
5080
5081
5082
5083 # If no C compiler was specified, use CC.
5084 LTCC=${LTCC-"$CC"}
5085
5086 # If no C compiler flags were specified, use CFLAGS.
5087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5088
5089 # Allow CC to be a program name with arguments.
5090 compiler=$CC
5091
5092
5093 # Check whether --enable-libtool-lock was given.
5094 if test "${enable_libtool_lock+set}" = set; then :
5095   enableval=$enable_libtool_lock;
5096 fi
5097
5098 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5099
5100 # Some flags need to be propagated to the compiler or linker for good
5101 # libtool support.
5102 case $host in
5103 ia64-*-hpux*)
5104   # Find out which ABI we are using.
5105   echo 'int i;' > conftest.$ac_ext
5106   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5107   (eval $ac_compile) 2>&5
5108   ac_status=$?
5109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110   test $ac_status = 0; }; then
5111     case `/usr/bin/file conftest.$ac_objext` in
5112     *ELF-32*)
5113       HPUX_IA64_MODE="32"
5114       ;;
5115     *ELF-64*)
5116       HPUX_IA64_MODE="64"
5117       ;;
5118     esac
5119   fi
5120   rm -rf conftest*
5121   ;;
5122 *-*-irix6*)
5123   # Find out which ABI we are using.
5124   echo '#line 5124 "configure"' > conftest.$ac_ext
5125   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5126   (eval $ac_compile) 2>&5
5127   ac_status=$?
5128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129   test $ac_status = 0; }; then
5130    if test "$lt_cv_prog_gnu_ld" = yes; then
5131     case `/usr/bin/file conftest.$ac_objext` in
5132     *32-bit*)
5133       LD="${LD-ld} -melf32bsmip"
5134       ;;
5135     *N32*)
5136       LD="${LD-ld} -melf32bmipn32"
5137       ;;
5138     *64-bit*)
5139       LD="${LD-ld} -melf64bmip"
5140       ;;
5141     esac
5142    else
5143     case `/usr/bin/file conftest.$ac_objext` in
5144     *32-bit*)
5145       LD="${LD-ld} -32"
5146       ;;
5147     *N32*)
5148       LD="${LD-ld} -n32"
5149       ;;
5150     *64-bit*)
5151       LD="${LD-ld} -64"
5152       ;;
5153     esac
5154    fi
5155   fi
5156   rm -rf conftest*
5157   ;;
5158
5159 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5160   # Find out which ABI we are using.
5161   echo 'int i;' > conftest.$ac_ext
5162   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5163   (eval $ac_compile) 2>&5
5164   ac_status=$?
5165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166   test $ac_status = 0; }; then
5167     case `/usr/bin/file conftest.o` in
5168     *32-bit*)
5169       case $host in
5170         x86_64-*linux*)
5171           LD="${LD-ld} -m elf_i386"
5172           ;;
5173         ppc64-*linux*|powerpc64-*linux*)
5174           LD="${LD-ld} -m elf32ppclinux"
5175           ;;
5176         s390x-*linux*)
5177           LD="${LD-ld} -m elf_s390"
5178           ;;
5179         sparc64-*linux*)
5180           LD="${LD-ld} -m elf32_sparc"
5181           ;;
5182       esac
5183       ;;
5184     *64-bit*)
5185       case $host in
5186         x86_64-*linux*)
5187           LD="${LD-ld} -m elf_x86_64"
5188           ;;
5189         ppc*-*linux*|powerpc*-*linux*)
5190           LD="${LD-ld} -m elf64ppc"
5191           ;;
5192         s390*-*linux*)
5193           LD="${LD-ld} -m elf64_s390"
5194           ;;
5195         sparc*-*linux*)
5196           LD="${LD-ld} -m elf64_sparc"
5197           ;;
5198       esac
5199       ;;
5200     esac
5201   fi
5202   rm -rf conftest*
5203   ;;
5204
5205 *-*-sco3.2v5*)
5206   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5207   SAVE_CFLAGS="$CFLAGS"
5208   CFLAGS="$CFLAGS -belf"
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5210 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5211 if ${lt_cv_cc_needs_belf+:} false; then :
5212   $as_echo_n "(cached) " >&6
5213 else
5214   ac_ext=c
5215 ac_cpp='$CPP $CPPFLAGS'
5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5219
5220      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h.  */
5222
5223 int
5224 main ()
5225 {
5226
5227   ;
5228   return 0;
5229 }
5230 _ACEOF
5231 if ac_fn_c_try_link "$LINENO"; then :
5232   lt_cv_cc_needs_belf=yes
5233 else
5234   lt_cv_cc_needs_belf=no
5235 fi
5236 rm -f core conftest.err conftest.$ac_objext \
5237     conftest$ac_exeext conftest.$ac_ext
5238      ac_ext=c
5239 ac_cpp='$CPP $CPPFLAGS'
5240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5246 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5247   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5248     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5249     CFLAGS="$SAVE_CFLAGS"
5250   fi
5251   ;;
5252 sparc*-*solaris*)
5253   # Find out which ABI we are using.
5254   echo 'int i;' > conftest.$ac_ext
5255   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5256   (eval $ac_compile) 2>&5
5257   ac_status=$?
5258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259   test $ac_status = 0; }; then
5260     case `/usr/bin/file conftest.o` in
5261     *64-bit*)
5262       case $lt_cv_prog_gnu_ld in
5263       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5264       *)    LD="${LD-ld} -64" ;;
5265       esac
5266       ;;
5267     esac
5268   fi
5269   rm -rf conftest*
5270   ;;
5271
5272
5273 esac
5274
5275 need_locks="$enable_libtool_lock"
5276
5277
5278
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5280 $as_echo_n "checking for ANSI C header files... " >&6; }
5281 if ${ac_cv_header_stdc+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 #include <stdlib.h>
5287 #include <stdarg.h>
5288 #include <string.h>
5289 #include <float.h>
5290
5291 int
5292 main ()
5293 {
5294
5295   ;
5296   return 0;
5297 }
5298 _ACEOF
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300   ac_cv_header_stdc=yes
5301 else
5302   ac_cv_header_stdc=no
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305
5306 if test $ac_cv_header_stdc = yes; then
5307   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h.  */
5310 #include <string.h>
5311
5312 _ACEOF
5313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5314   $EGREP "memchr" >/dev/null 2>&1; then :
5315
5316 else
5317   ac_cv_header_stdc=no
5318 fi
5319 rm -f conftest*
5320
5321 fi
5322
5323 if test $ac_cv_header_stdc = yes; then
5324   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h.  */
5327 #include <stdlib.h>
5328
5329 _ACEOF
5330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331   $EGREP "free" >/dev/null 2>&1; then :
5332
5333 else
5334   ac_cv_header_stdc=no
5335 fi
5336 rm -f conftest*
5337
5338 fi
5339
5340 if test $ac_cv_header_stdc = yes; then
5341   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5342   if test "$cross_compiling" = yes; then :
5343   :
5344 else
5345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h.  */
5347 #include <ctype.h>
5348 #include <stdlib.h>
5349 #if ((' ' & 0x0FF) == 0x020)
5350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5352 #else
5353 # define ISLOWER(c) \
5354                    (('a' <= (c) && (c) <= 'i') \
5355                      || ('j' <= (c) && (c) <= 'r') \
5356                      || ('s' <= (c) && (c) <= 'z'))
5357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5358 #endif
5359
5360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5361 int
5362 main ()
5363 {
5364   int i;
5365   for (i = 0; i < 256; i++)
5366     if (XOR (islower (i), ISLOWER (i))
5367         || toupper (i) != TOUPPER (i))
5368       return 2;
5369   return 0;
5370 }
5371 _ACEOF
5372 if ac_fn_c_try_run "$LINENO"; then :
5373
5374 else
5375   ac_cv_header_stdc=no
5376 fi
5377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5378   conftest.$ac_objext conftest.beam conftest.$ac_ext
5379 fi
5380
5381 fi
5382 fi
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5384 $as_echo "$ac_cv_header_stdc" >&6; }
5385 if test $ac_cv_header_stdc = yes; then
5386
5387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5388
5389 fi
5390
5391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5393                   inttypes.h stdint.h unistd.h
5394 do :
5395   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5397 "
5398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5399   cat >>confdefs.h <<_ACEOF
5400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5401 _ACEOF
5402
5403 fi
5404
5405 done
5406
5407
5408 for ac_header in dlfcn.h
5409 do :
5410   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5411 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5412   cat >>confdefs.h <<_ACEOF
5413 #define HAVE_DLFCN_H 1
5414 _ACEOF
5415
5416 fi
5417
5418 done
5419
5420 ac_ext=cpp
5421 ac_cpp='$CXXCPP $CPPFLAGS'
5422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5425 if test -z "$CXX"; then
5426   if test -n "$CCC"; then
5427     CXX=$CCC
5428   else
5429     if test -n "$ac_tool_prefix"; then
5430   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5431   do
5432     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_CXX+:} false; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   if test -n "$CXX"; then
5440   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447     for ac_exec_ext in '' $ac_executable_extensions; do
5448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454   done
5455 IFS=$as_save_IFS
5456
5457 fi
5458 fi
5459 CXX=$ac_cv_prog_CXX
5460 if test -n "$CXX"; then
5461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5462 $as_echo "$CXX" >&6; }
5463 else
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5466 fi
5467
5468
5469     test -n "$CXX" && break
5470   done
5471 fi
5472 if test -z "$CXX"; then
5473   ac_ct_CXX=$CXX
5474   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5475 do
5476   # Extract the first word of "$ac_prog", so it can be a program name with args.
5477 set dummy $ac_prog; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   if test -n "$ac_ct_CXX"; then
5484   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489   IFS=$as_save_IFS
5490   test -z "$as_dir" && as_dir=.
5491     for ac_exec_ext in '' $ac_executable_extensions; do
5492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493     ac_cv_prog_ac_ct_CXX="$ac_prog"
5494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495     break 2
5496   fi
5497 done
5498   done
5499 IFS=$as_save_IFS
5500
5501 fi
5502 fi
5503 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5504 if test -n "$ac_ct_CXX"; then
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5506 $as_echo "$ac_ct_CXX" >&6; }
5507 else
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5510 fi
5511
5512
5513   test -n "$ac_ct_CXX" && break
5514 done
5515
5516   if test "x$ac_ct_CXX" = x; then
5517     CXX="g++"
5518   else
5519     case $cross_compiling:$ac_tool_warned in
5520 yes:)
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523 ac_tool_warned=yes ;;
5524 esac
5525     CXX=$ac_ct_CXX
5526   fi
5527 fi
5528
5529   fi
5530 fi
5531 # Provide some information about the compiler.
5532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5533 set X $ac_compile
5534 ac_compiler=$2
5535 for ac_option in --version -v -V -qversion; do
5536   { { ac_try="$ac_compiler $ac_option >&5"
5537 case "(($ac_try" in
5538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539   *) ac_try_echo=$ac_try;;
5540 esac
5541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5542 $as_echo "$ac_try_echo"; } >&5
5543   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5544   ac_status=$?
5545   if test -s conftest.err; then
5546     sed '10a\
5547 ... rest of stderr output deleted ...
5548          10q' conftest.err >conftest.er1
5549     cat conftest.er1 >&5
5550   fi
5551   rm -f conftest.er1 conftest.err
5552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5553   test $ac_status = 0; }
5554 done
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5557 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5558 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h.  */
5563
5564 int
5565 main ()
5566 {
5567 #ifndef __GNUC__
5568        choke me
5569 #endif
5570
5571   ;
5572   return 0;
5573 }
5574 _ACEOF
5575 if ac_fn_cxx_try_compile "$LINENO"; then :
5576   ac_compiler_gnu=yes
5577 else
5578   ac_compiler_gnu=no
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5582
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5585 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5586 if test $ac_compiler_gnu = yes; then
5587   GXX=yes
5588 else
5589   GXX=
5590 fi
5591 ac_test_CXXFLAGS=${CXXFLAGS+set}
5592 ac_save_CXXFLAGS=$CXXFLAGS
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5594 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5595 if ${ac_cv_prog_cxx_g+:} false; then :
5596   $as_echo_n "(cached) " >&6
5597 else
5598   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5599    ac_cxx_werror_flag=yes
5600    ac_cv_prog_cxx_g=no
5601    CXXFLAGS="-g"
5602    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h.  */
5604
5605 int
5606 main ()
5607 {
5608
5609   ;
5610   return 0;
5611 }
5612 _ACEOF
5613 if ac_fn_cxx_try_compile "$LINENO"; then :
5614   ac_cv_prog_cxx_g=yes
5615 else
5616   CXXFLAGS=""
5617       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h.  */
5619
5620 int
5621 main ()
5622 {
5623
5624   ;
5625   return 0;
5626 }
5627 _ACEOF
5628 if ac_fn_cxx_try_compile "$LINENO"; then :
5629
5630 else
5631   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5632          CXXFLAGS="-g"
5633          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h.  */
5635
5636 int
5637 main ()
5638 {
5639
5640   ;
5641   return 0;
5642 }
5643 _ACEOF
5644 if ac_fn_cxx_try_compile "$LINENO"; then :
5645   ac_cv_prog_cxx_g=yes
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5655 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5656 if test "$ac_test_CXXFLAGS" = set; then
5657   CXXFLAGS=$ac_save_CXXFLAGS
5658 elif test $ac_cv_prog_cxx_g = yes; then
5659   if test "$GXX" = yes; then
5660     CXXFLAGS="-g -O2"
5661   else
5662     CXXFLAGS="-g"
5663   fi
5664 else
5665   if test "$GXX" = yes; then
5666     CXXFLAGS="-O2"
5667   else
5668     CXXFLAGS=
5669   fi
5670 fi
5671 ac_ext=cpp
5672 ac_cpp='$CXXCPP $CPPFLAGS'
5673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5676
5677 depcc="$CXX"  am_compiler_list=
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5680 $as_echo_n "checking dependency style of $depcc... " >&6; }
5681 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5682   $as_echo_n "(cached) " >&6
5683 else
5684   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5685   # We make a subdir and do the tests there.  Otherwise we can end up
5686   # making bogus files that we don't know about and never remove.  For
5687   # instance it was reported that on HP-UX the gcc test will end up
5688   # making a dummy file named `D' -- because `-MD' means `put the output
5689   # in D'.
5690   mkdir conftest.dir
5691   # Copy depcomp to subdir because otherwise we won't find it if we're
5692   # using a relative directory.
5693   cp "$am_depcomp" conftest.dir
5694   cd conftest.dir
5695   # We will build objects and dependencies in a subdirectory because
5696   # it helps to detect inapplicable dependency modes.  For instance
5697   # both Tru64's cc and ICC support -MD to output dependencies as a
5698   # side effect of compilation, but ICC will put the dependencies in
5699   # the current directory while Tru64 will put them in the object
5700   # directory.
5701   mkdir sub
5702
5703   am_cv_CXX_dependencies_compiler_type=none
5704   if test "$am_compiler_list" = ""; then
5705      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5706   fi
5707   am__universal=false
5708   case " $depcc " in #(
5709      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5710      esac
5711
5712   for depmode in $am_compiler_list; do
5713     # Setup a source with many dependencies, because some compilers
5714     # like to wrap large dependency lists on column 80 (with \), and
5715     # we should not choose a depcomp mode which is confused by this.
5716     #
5717     # We need to recreate these files for each test, as the compiler may
5718     # overwrite some of them when testing with obscure command lines.
5719     # This happens at least with the AIX C compiler.
5720     : > sub/conftest.c
5721     for i in 1 2 3 4 5 6; do
5722       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5723       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5724       # Solaris 8's {/usr,}/bin/sh.
5725       touch sub/conftst$i.h
5726     done
5727     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5728
5729     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5730     # mode.  It turns out that the SunPro C++ compiler does not properly
5731     # handle `-M -o', and we need to detect this.  Also, some Intel
5732     # versions had trouble with output in subdirs
5733     am__obj=sub/conftest.${OBJEXT-o}
5734     am__minus_obj="-o $am__obj"
5735     case $depmode in
5736     gcc)
5737       # This depmode causes a compiler race in universal mode.
5738       test "$am__universal" = false || continue
5739       ;;
5740     nosideeffect)
5741       # after this tag, mechanisms are not by side-effect, so they'll
5742       # only be used when explicitly requested
5743       if test "x$enable_dependency_tracking" = xyes; then
5744         continue
5745       else
5746         break
5747       fi
5748       ;;
5749     msvisualcpp | msvcmsys)
5750       # This compiler won't grok `-c -o', but also, the minuso test has
5751       # not run yet.  These depmodes are late enough in the game, and
5752       # so weak that their functioning should not be impacted.
5753       am__obj=conftest.${OBJEXT-o}
5754       am__minus_obj=
5755       ;;
5756     none) break ;;
5757     esac
5758     if depmode=$depmode \
5759        source=sub/conftest.c object=$am__obj \
5760        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5761        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5762          >/dev/null 2>conftest.err &&
5763        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5764        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5765        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5766        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5767       # icc doesn't choke on unknown options, it will just issue warnings
5768       # or remarks (even with -Werror).  So we grep stderr for any message
5769       # that says an option was ignored or not supported.
5770       # When given -MP, icc 7.0 and 7.1 complain thusly:
5771       #   icc: Command line warning: ignoring option '-M'; no argument required
5772       # The diagnosis changed in icc 8.0:
5773       #   icc: Command line remark: option '-MP' not supported
5774       if (grep 'ignoring option' conftest.err ||
5775           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5776         am_cv_CXX_dependencies_compiler_type=$depmode
5777         break
5778       fi
5779     fi
5780   done
5781
5782   cd ..
5783   rm -rf conftest.dir
5784 else
5785   am_cv_CXX_dependencies_compiler_type=none
5786 fi
5787
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5790 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5791 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5792
5793  if
5794   test "x$enable_dependency_tracking" != xno \
5795   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5796   am__fastdepCXX_TRUE=
5797   am__fastdepCXX_FALSE='#'
5798 else
5799   am__fastdepCXX_TRUE='#'
5800   am__fastdepCXX_FALSE=
5801 fi
5802
5803
5804
5805
5806 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5807     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5808     (test "X$CXX" != "Xg++"))) ; then
5809   ac_ext=cpp
5810 ac_cpp='$CXXCPP $CPPFLAGS'
5811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5815 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5816 if test -z "$CXXCPP"; then
5817   if ${ac_cv_prog_CXXCPP+:} false; then :
5818   $as_echo_n "(cached) " >&6
5819 else
5820       # Double quotes because CXXCPP needs to be expanded
5821     for CXXCPP in "$CXX -E" "/lib/cpp"
5822     do
5823       ac_preproc_ok=false
5824 for ac_cxx_preproc_warn_flag in '' yes
5825 do
5826   # Use a header file that comes with gcc, so configuring glibc
5827   # with a fresh cross-compiler works.
5828   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5829   # <limits.h> exists even on freestanding compilers.
5830   # On the NeXT, cc -E runs the code through the compiler's parser,
5831   # not just through cpp. "Syntax error" is here to catch this case.
5832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h.  */
5834 #ifdef __STDC__
5835 # include <limits.h>
5836 #else
5837 # include <assert.h>
5838 #endif
5839                      Syntax error
5840 _ACEOF
5841 if ac_fn_cxx_try_cpp "$LINENO"; then :
5842
5843 else
5844   # Broken: fails on valid input.
5845 continue
5846 fi
5847 rm -f conftest.err conftest.i conftest.$ac_ext
5848
5849   # OK, works on sane cases.  Now check whether nonexistent headers
5850   # can be detected and how.
5851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h.  */
5853 #include <ac_nonexistent.h>
5854 _ACEOF
5855 if ac_fn_cxx_try_cpp "$LINENO"; then :
5856   # Broken: success on invalid input.
5857 continue
5858 else
5859   # Passes both tests.
5860 ac_preproc_ok=:
5861 break
5862 fi
5863 rm -f conftest.err conftest.i conftest.$ac_ext
5864
5865 done
5866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5867 rm -f conftest.i conftest.err conftest.$ac_ext
5868 if $ac_preproc_ok; then :
5869   break
5870 fi
5871
5872     done
5873     ac_cv_prog_CXXCPP=$CXXCPP
5874
5875 fi
5876   CXXCPP=$ac_cv_prog_CXXCPP
5877 else
5878   ac_cv_prog_CXXCPP=$CXXCPP
5879 fi
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5881 $as_echo "$CXXCPP" >&6; }
5882 ac_preproc_ok=false
5883 for ac_cxx_preproc_warn_flag in '' yes
5884 do
5885   # Use a header file that comes with gcc, so configuring glibc
5886   # with a fresh cross-compiler works.
5887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5888   # <limits.h> exists even on freestanding compilers.
5889   # On the NeXT, cc -E runs the code through the compiler's parser,
5890   # not just through cpp. "Syntax error" is here to catch this case.
5891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h.  */
5893 #ifdef __STDC__
5894 # include <limits.h>
5895 #else
5896 # include <assert.h>
5897 #endif
5898                      Syntax error
5899 _ACEOF
5900 if ac_fn_cxx_try_cpp "$LINENO"; then :
5901
5902 else
5903   # Broken: fails on valid input.
5904 continue
5905 fi
5906 rm -f conftest.err conftest.i conftest.$ac_ext
5907
5908   # OK, works on sane cases.  Now check whether nonexistent headers
5909   # can be detected and how.
5910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h.  */
5912 #include <ac_nonexistent.h>
5913 _ACEOF
5914 if ac_fn_cxx_try_cpp "$LINENO"; then :
5915   # Broken: success on invalid input.
5916 continue
5917 else
5918   # Passes both tests.
5919 ac_preproc_ok=:
5920 break
5921 fi
5922 rm -f conftest.err conftest.i conftest.$ac_ext
5923
5924 done
5925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5926 rm -f conftest.i conftest.err conftest.$ac_ext
5927 if $ac_preproc_ok; then :
5928
5929 else
5930   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5932 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5933 See \`config.log' for more details" "$LINENO" 5; }
5934 fi
5935
5936 ac_ext=cpp
5937 ac_cpp='$CXXCPP $CPPFLAGS'
5938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5941
5942 fi
5943
5944
5945 ac_ext=f
5946 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5947 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5949 if test -n "$ac_tool_prefix"; then
5950   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
5951   do
5952     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_F77+:} false; then :
5957   $as_echo_n "(cached) " >&6
5958 else
5959   if test -n "$F77"; then
5960   ac_cv_prog_F77="$F77" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967     for ac_exec_ext in '' $ac_executable_extensions; do
5968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5969     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974   done
5975 IFS=$as_save_IFS
5976
5977 fi
5978 fi
5979 F77=$ac_cv_prog_F77
5980 if test -n "$F77"; then
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5982 $as_echo "$F77" >&6; }
5983 else
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5986 fi
5987
5988
5989     test -n "$F77" && break
5990   done
5991 fi
5992 if test -z "$F77"; then
5993   ac_ct_F77=$F77
5994   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
5995 do
5996   # Extract the first word of "$ac_prog", so it can be a program name with args.
5997 set dummy $ac_prog; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6001   $as_echo_n "(cached) " >&6
6002 else
6003   if test -n "$ac_ct_F77"; then
6004   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009   IFS=$as_save_IFS
6010   test -z "$as_dir" && as_dir=.
6011     for ac_exec_ext in '' $ac_executable_extensions; do
6012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013     ac_cv_prog_ac_ct_F77="$ac_prog"
6014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015     break 2
6016   fi
6017 done
6018   done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6024 if test -n "$ac_ct_F77"; then
6025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6026 $as_echo "$ac_ct_F77" >&6; }
6027 else
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032
6033   test -n "$ac_ct_F77" && break
6034 done
6035
6036   if test "x$ac_ct_F77" = x; then
6037     F77=""
6038   else
6039     case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6044 esac
6045     F77=$ac_ct_F77
6046   fi
6047 fi
6048
6049
6050 # Provide some information about the compiler.
6051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6052 set X $ac_compile
6053 ac_compiler=$2
6054 for ac_option in --version -v -V -qversion; do
6055   { { ac_try="$ac_compiler $ac_option >&5"
6056 case "(($ac_try" in
6057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058   *) ac_try_echo=$ac_try;;
6059 esac
6060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6061 $as_echo "$ac_try_echo"; } >&5
6062   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6063   ac_status=$?
6064   if test -s conftest.err; then
6065     sed '10a\
6066 ... rest of stderr output deleted ...
6067          10q' conftest.err >conftest.er1
6068     cat conftest.er1 >&5
6069   fi
6070   rm -f conftest.er1 conftest.err
6071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072   test $ac_status = 0; }
6073 done
6074 rm -f a.out
6075
6076 # If we don't use `.F' as extension, the preprocessor is not run on the
6077 # input file.  (Note that this only needs to work for GNU compilers.)
6078 ac_save_ext=$ac_ext
6079 ac_ext=F
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6081 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6082 if ${ac_cv_f77_compiler_gnu+:} false; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   cat > conftest.$ac_ext <<_ACEOF
6086       program main
6087 #ifndef __GNUC__
6088        choke me
6089 #endif
6090
6091       end
6092 _ACEOF
6093 if ac_fn_f77_try_compile "$LINENO"; then :
6094   ac_compiler_gnu=yes
6095 else
6096   ac_compiler_gnu=no
6097 fi
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6100
6101 fi
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6103 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6104 ac_ext=$ac_save_ext
6105 ac_test_FFLAGS=${FFLAGS+set}
6106 ac_save_FFLAGS=$FFLAGS
6107 FFLAGS=
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6109 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6110 if ${ac_cv_prog_f77_g+:} false; then :
6111   $as_echo_n "(cached) " >&6
6112 else
6113   FFLAGS=-g
6114 cat > conftest.$ac_ext <<_ACEOF
6115       program main
6116
6117       end
6118 _ACEOF
6119 if ac_fn_f77_try_compile "$LINENO"; then :
6120   ac_cv_prog_f77_g=yes
6121 else
6122   ac_cv_prog_f77_g=no
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6128 $as_echo "$ac_cv_prog_f77_g" >&6; }
6129 if test "$ac_test_FFLAGS" = set; then
6130   FFLAGS=$ac_save_FFLAGS
6131 elif test $ac_cv_prog_f77_g = yes; then
6132   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6133     FFLAGS="-g -O2"
6134   else
6135     FFLAGS="-g"
6136   fi
6137 else
6138   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6139     FFLAGS="-O2"
6140   else
6141     FFLAGS=
6142   fi
6143 fi
6144
6145 if test $ac_compiler_gnu = yes; then
6146   G77=yes
6147 else
6148   G77=
6149 fi
6150 ac_ext=c
6151 ac_cpp='$CPP $CPPFLAGS'
6152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155
6156
6157
6158 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6159
6160 # find the maximum length of command line arguments
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6162 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6163 if ${lt_cv_sys_max_cmd_len+:} false; then :
6164   $as_echo_n "(cached) " >&6
6165 else
6166     i=0
6167   teststring="ABCD"
6168
6169   case $build_os in
6170   msdosdjgpp*)
6171     # On DJGPP, this test can blow up pretty badly due to problems in libc
6172     # (any single argument exceeding 2000 bytes causes a buffer overrun
6173     # during glob expansion).  Even if it were fixed, the result of this
6174     # check would be larger than it should be.
6175     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6176     ;;
6177
6178   gnu*)
6179     # Under GNU Hurd, this test is not required because there is
6180     # no limit to the length of command line arguments.
6181     # Libtool will interpret -1 as no limit whatsoever
6182     lt_cv_sys_max_cmd_len=-1;
6183     ;;
6184
6185   cygwin* | mingw*)
6186     # On Win9x/ME, this test blows up -- it succeeds, but takes
6187     # about 5 minutes as the teststring grows exponentially.
6188     # Worse, since 9x/ME are not pre-emptively multitasking,
6189     # you end up with a "frozen" computer, even though with patience
6190     # the test eventually succeeds (with a max line length of 256k).
6191     # Instead, let's just punt: use the minimum linelength reported by
6192     # all of the supported platforms: 8192 (on NT/2K/XP).
6193     lt_cv_sys_max_cmd_len=8192;
6194     ;;
6195
6196   amigaos*)
6197     # On AmigaOS with pdksh, this test takes hours, literally.
6198     # So we just punt and use a minimum line length of 8192.
6199     lt_cv_sys_max_cmd_len=8192;
6200     ;;
6201
6202   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6203     # This has been around since 386BSD, at least.  Likely further.
6204     if test -x /sbin/sysctl; then
6205       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6206     elif test -x /usr/sbin/sysctl; then
6207       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6208     else
6209       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6210     fi
6211     # And add a safety zone
6212     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6213     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6214     ;;
6215
6216   interix*)
6217     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6218     lt_cv_sys_max_cmd_len=196608
6219     ;;
6220
6221   osf*)
6222     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6223     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6224     # nice to cause kernel panics so lets avoid the loop below.
6225     # First set a reasonable default.
6226     lt_cv_sys_max_cmd_len=16384
6227     #
6228     if test -x /sbin/sysconfig; then
6229       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6230         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6231       esac
6232     fi
6233     ;;
6234   sco3.2v5*)
6235     lt_cv_sys_max_cmd_len=102400
6236     ;;
6237   sysv5* | sco5v6* | sysv4.2uw2*)
6238     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6239     if test -n "$kargmax"; then
6240       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6241     else
6242       lt_cv_sys_max_cmd_len=32768
6243     fi
6244     ;;
6245   *)
6246     # If test is not a shell built-in, we'll probably end up computing a
6247     # maximum length that is only half of the actual maximum length, but
6248     # we can't tell.
6249     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6250     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6251                = "XX$teststring") >/dev/null 2>&1 &&
6252             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6253             lt_cv_sys_max_cmd_len=$new_result &&
6254             test $i != 17 # 1/2 MB should be enough
6255     do
6256       i=`expr $i + 1`
6257       teststring=$teststring$teststring
6258     done
6259     teststring=
6260     # Add a significant safety factor because C++ compilers can tack on massive
6261     # amounts of additional arguments before passing them to the linker.
6262     # It appears as though 1/2 is a usable value.
6263     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6264     ;;
6265   esac
6266
6267 fi
6268
6269 if test -n $lt_cv_sys_max_cmd_len ; then
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6271 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6272 else
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6274 $as_echo "none" >&6; }
6275 fi
6276
6277
6278
6279
6280 # Check for command to grab the raw symbol name followed by C symbol from nm.
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6282 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6283 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6284   $as_echo_n "(cached) " >&6
6285 else
6286
6287 # These are sane defaults that work on at least a few old systems.
6288 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6289
6290 # Character class describing NM global symbol codes.
6291 symcode='[BCDEGRST]'
6292
6293 # Regexp to match symbols that can be accessed directly from C.
6294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6295
6296 # Transform an extracted symbol line into a proper C declaration
6297 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6298
6299 # Transform an extracted symbol line into symbol name and symbol address
6300 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6301
6302 # Define system-specific variables.
6303 case $host_os in
6304 aix*)
6305   symcode='[BCDT]'
6306   ;;
6307 cygwin* | mingw* | pw32*)
6308   symcode='[ABCDGISTW]'
6309   ;;
6310 hpux*) # Its linker distinguishes data from code symbols
6311   if test "$host_cpu" = ia64; then
6312     symcode='[ABCDEGRST]'
6313   fi
6314   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6315   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6316   ;;
6317 linux*)
6318   if test "$host_cpu" = ia64; then
6319     symcode='[ABCDGIRSTW]'
6320     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6321     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6322   fi
6323   ;;
6324 irix* | nonstopux*)
6325   symcode='[BCDEGRST]'
6326   ;;
6327 osf*)
6328   symcode='[BCDEGQRST]'
6329   ;;
6330 solaris*)
6331   symcode='[BDRT]'
6332   ;;
6333 sco3.2v5*)
6334   symcode='[DT]'
6335   ;;
6336 sysv4.2uw2*)
6337   symcode='[DT]'
6338   ;;
6339 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6340   symcode='[ABDT]'
6341   ;;
6342 sysv4)
6343   symcode='[DFNSTU]'
6344   ;;
6345 esac
6346
6347 # Handle CRLF in mingw tool chain
6348 opt_cr=
6349 case $build_os in
6350 mingw*)
6351   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6352   ;;
6353 esac
6354
6355 # If we're using GNU nm, then use its standard symbol codes.
6356 case `$NM -V 2>&1` in
6357 *GNU* | *'with BFD'*)
6358   symcode='[ABCDGIRSTW]' ;;
6359 esac
6360
6361 # Try without a prefix undercore, then with it.
6362 for ac_symprfx in "" "_"; do
6363
6364   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6365   symxfrm="\\1 $ac_symprfx\\2 \\2"
6366
6367   # Write the raw and C identifiers.
6368   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6369
6370   # Check to see that the pipe works correctly.
6371   pipe_works=no
6372
6373   rm -f conftest*
6374   cat > conftest.$ac_ext <<EOF
6375 #ifdef __cplusplus
6376 extern "C" {
6377 #endif
6378 char nm_test_var;
6379 void nm_test_func(){}
6380 #ifdef __cplusplus
6381 }
6382 #endif
6383 int main(){nm_test_var='a';nm_test_func();return(0);}
6384 EOF
6385
6386   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6387   (eval $ac_compile) 2>&5
6388   ac_status=$?
6389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6390   test $ac_status = 0; }; then
6391     # Now try to grab the symbols.
6392     nlist=conftest.nm
6393     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6394   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6395   ac_status=$?
6396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397   test $ac_status = 0; } && test -s "$nlist"; then
6398       # Try sorting and uniquifying the output.
6399       if sort "$nlist" | uniq > "$nlist"T; then
6400         mv -f "$nlist"T "$nlist"
6401       else
6402         rm -f "$nlist"T
6403       fi
6404
6405       # Make sure that we snagged all the symbols we need.
6406       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6407         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6408           cat <<EOF > conftest.$ac_ext
6409 #ifdef __cplusplus
6410 extern "C" {
6411 #endif
6412
6413 EOF
6414           # Now generate the symbol file.
6415           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6416
6417           cat <<EOF >> conftest.$ac_ext
6418 #if defined (__STDC__) && __STDC__
6419 # define lt_ptr_t void *
6420 #else
6421 # define lt_ptr_t char *
6422 # define const
6423 #endif
6424
6425 /* The mapping between symbol names and symbols. */
6426 const struct {
6427   const char *name;
6428   lt_ptr_t address;
6429 }
6430 lt_preloaded_symbols[] =
6431 {
6432 EOF
6433           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6434           cat <<\EOF >> conftest.$ac_ext
6435   {0, (lt_ptr_t) 0}
6436 };
6437
6438 #ifdef __cplusplus
6439 }
6440 #endif
6441 EOF
6442           # Now try linking the two files.
6443           mv conftest.$ac_objext conftstm.$ac_objext
6444           lt_save_LIBS="$LIBS"
6445           lt_save_CFLAGS="$CFLAGS"
6446           LIBS="conftstm.$ac_objext"
6447           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6448           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6449   (eval $ac_link) 2>&5
6450   ac_status=$?
6451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6453             pipe_works=yes
6454           fi
6455           LIBS="$lt_save_LIBS"
6456           CFLAGS="$lt_save_CFLAGS"
6457         else
6458           echo "cannot find nm_test_func in $nlist" >&5
6459         fi
6460       else
6461         echo "cannot find nm_test_var in $nlist" >&5
6462       fi
6463     else
6464       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6465     fi
6466   else
6467     echo "$progname: failed program was:" >&5
6468     cat conftest.$ac_ext >&5
6469   fi
6470   rm -f conftest* conftst*
6471
6472   # Do not use the global_symbol_pipe unless it works.
6473   if test "$pipe_works" = yes; then
6474     break
6475   else
6476     lt_cv_sys_global_symbol_pipe=
6477   fi
6478 done
6479
6480 fi
6481
6482 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6483   lt_cv_sys_global_symbol_to_cdecl=
6484 fi
6485 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6487 $as_echo "failed" >&6; }
6488 else
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6490 $as_echo "ok" >&6; }
6491 fi
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6494 $as_echo_n "checking for objdir... " >&6; }
6495 if ${lt_cv_objdir+:} false; then :
6496   $as_echo_n "(cached) " >&6
6497 else
6498   rm -f .libs 2>/dev/null
6499 mkdir .libs 2>/dev/null
6500 if test -d .libs; then
6501   lt_cv_objdir=.libs
6502 else
6503   # MS-DOS does not allow filenames that begin with a dot.
6504   lt_cv_objdir=_libs
6505 fi
6506 rmdir .libs 2>/dev/null
6507 fi
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6509 $as_echo "$lt_cv_objdir" >&6; }
6510 objdir=$lt_cv_objdir
6511
6512
6513
6514
6515
6516 case $host_os in
6517 aix3*)
6518   # AIX sometimes has problems with the GCC collect2 program.  For some
6519   # reason, if we set the COLLECT_NAMES environment variable, the problems
6520   # vanish in a puff of smoke.
6521   if test "X${COLLECT_NAMES+set}" != Xset; then
6522     COLLECT_NAMES=
6523     export COLLECT_NAMES
6524   fi
6525   ;;
6526 esac
6527
6528 # Sed substitution that helps us do robust quoting.  It backslashifies
6529 # metacharacters that are still active within double-quoted strings.
6530 Xsed='sed -e 1s/^X//'
6531 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6532
6533 # Same as above, but do not quote variable references.
6534 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6535
6536 # Sed substitution to delay expansion of an escaped shell variable in a
6537 # double_quote_subst'ed string.
6538 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6539
6540 # Sed substitution to avoid accidental globbing in evaled expressions
6541 no_glob_subst='s/\*/\\\*/g'
6542
6543 # Constants:
6544 rm="rm -f"
6545
6546 # Global variables:
6547 default_ofile=libtool
6548 can_build_shared=yes
6549
6550 # All known linkers require a `.a' archive for static linking (except MSVC,
6551 # which needs '.lib').
6552 libext=a
6553 ltmain="$ac_aux_dir/ltmain.sh"
6554 ofile="$default_ofile"
6555 with_gnu_ld="$lt_cv_prog_gnu_ld"
6556
6557 if test -n "$ac_tool_prefix"; then
6558   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6559 set dummy ${ac_tool_prefix}ar; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_AR+:} false; then :
6563   $as_echo_n "(cached) " >&6
6564 else
6565   if test -n "$AR"; then
6566   ac_cv_prog_AR="$AR" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571   IFS=$as_save_IFS
6572   test -z "$as_dir" && as_dir=.
6573     for ac_exec_ext in '' $ac_executable_extensions; do
6574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575     ac_cv_prog_AR="${ac_tool_prefix}ar"
6576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577     break 2
6578   fi
6579 done
6580   done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 AR=$ac_cv_prog_AR
6586 if test -n "$AR"; then
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6588 $as_echo "$AR" >&6; }
6589 else
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594
6595 fi
6596 if test -z "$ac_cv_prog_AR"; then
6597   ac_ct_AR=$AR
6598   # Extract the first word of "ar", so it can be a program name with args.
6599 set dummy ar; ac_word=$2
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6603   $as_echo_n "(cached) " >&6
6604 else
6605   if test -n "$ac_ct_AR"; then
6606   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611   IFS=$as_save_IFS
6612   test -z "$as_dir" && as_dir=.
6613     for ac_exec_ext in '' $ac_executable_extensions; do
6614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615     ac_cv_prog_ac_ct_AR="ar"
6616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617     break 2
6618   fi
6619 done
6620   done
6621 IFS=$as_save_IFS
6622
6623 fi
6624 fi
6625 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6626 if test -n "$ac_ct_AR"; then
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6628 $as_echo "$ac_ct_AR" >&6; }
6629 else
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6632 fi
6633
6634   if test "x$ac_ct_AR" = x; then
6635     AR="false"
6636   else
6637     case $cross_compiling:$ac_tool_warned in
6638 yes:)
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6641 ac_tool_warned=yes ;;
6642 esac
6643     AR=$ac_ct_AR
6644   fi
6645 else
6646   AR="$ac_cv_prog_AR"
6647 fi
6648
6649 if test -n "$ac_tool_prefix"; then
6650   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_RANLIB+:} false; then :
6655   $as_echo_n "(cached) " >&6
6656 else
6657   if test -n "$RANLIB"; then
6658   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665     for ac_exec_ext in '' $ac_executable_extensions; do
6666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672   done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 RANLIB=$ac_cv_prog_RANLIB
6678 if test -n "$RANLIB"; then
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6680 $as_echo "$RANLIB" >&6; }
6681 else
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6684 fi
6685
6686
6687 fi
6688 if test -z "$ac_cv_prog_RANLIB"; then
6689   ac_ct_RANLIB=$RANLIB
6690   # Extract the first word of "ranlib", so it can be a program name with args.
6691 set dummy ranlib; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6695   $as_echo_n "(cached) " >&6
6696 else
6697   if test -n "$ac_ct_RANLIB"; then
6698   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703   IFS=$as_save_IFS
6704   test -z "$as_dir" && as_dir=.
6705     for ac_exec_ext in '' $ac_executable_extensions; do
6706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707     ac_cv_prog_ac_ct_RANLIB="ranlib"
6708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709     break 2
6710   fi
6711 done
6712   done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6718 if test -n "$ac_ct_RANLIB"; then
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6720 $as_echo "$ac_ct_RANLIB" >&6; }
6721 else
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6724 fi
6725
6726   if test "x$ac_ct_RANLIB" = x; then
6727     RANLIB=":"
6728   else
6729     case $cross_compiling:$ac_tool_warned in
6730 yes:)
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6733 ac_tool_warned=yes ;;
6734 esac
6735     RANLIB=$ac_ct_RANLIB
6736   fi
6737 else
6738   RANLIB="$ac_cv_prog_RANLIB"
6739 fi
6740
6741 if test -n "$ac_tool_prefix"; then
6742   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}strip; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_STRIP+:} false; then :
6747   $as_echo_n "(cached) " >&6
6748 else
6749   if test -n "$STRIP"; then
6750   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757     for ac_exec_ext in '' $ac_executable_extensions; do
6758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6759     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764   done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 STRIP=$ac_cv_prog_STRIP
6770 if test -n "$STRIP"; then
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6772 $as_echo "$STRIP" >&6; }
6773 else
6774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6776 fi
6777
6778
6779 fi
6780 if test -z "$ac_cv_prog_STRIP"; then
6781   ac_ct_STRIP=$STRIP
6782   # Extract the first word of "strip", so it can be a program name with args.
6783 set dummy strip; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6787   $as_echo_n "(cached) " >&6
6788 else
6789   if test -n "$ac_ct_STRIP"; then
6790   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795   IFS=$as_save_IFS
6796   test -z "$as_dir" && as_dir=.
6797     for ac_exec_ext in '' $ac_executable_extensions; do
6798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799     ac_cv_prog_ac_ct_STRIP="strip"
6800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801     break 2
6802   fi
6803 done
6804   done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6810 if test -n "$ac_ct_STRIP"; then
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6812 $as_echo "$ac_ct_STRIP" >&6; }
6813 else
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6816 fi
6817
6818   if test "x$ac_ct_STRIP" = x; then
6819     STRIP=":"
6820   else
6821     case $cross_compiling:$ac_tool_warned in
6822 yes:)
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825 ac_tool_warned=yes ;;
6826 esac
6827     STRIP=$ac_ct_STRIP
6828   fi
6829 else
6830   STRIP="$ac_cv_prog_STRIP"
6831 fi
6832
6833
6834 old_CC="$CC"
6835 old_CFLAGS="$CFLAGS"
6836
6837 # Set sane defaults for various variables
6838 test -z "$AR" && AR=ar
6839 test -z "$AR_FLAGS" && AR_FLAGS=cru
6840 test -z "$AS" && AS=as
6841 test -z "$CC" && CC=cc
6842 test -z "$LTCC" && LTCC=$CC
6843 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6844 test -z "$DLLTOOL" && DLLTOOL=dlltool
6845 test -z "$LD" && LD=ld
6846 test -z "$LN_S" && LN_S="ln -s"
6847 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6848 test -z "$NM" && NM=nm
6849 test -z "$SED" && SED=sed
6850 test -z "$OBJDUMP" && OBJDUMP=objdump
6851 test -z "$RANLIB" && RANLIB=:
6852 test -z "$STRIP" && STRIP=:
6853 test -z "$ac_objext" && ac_objext=o
6854
6855 # Determine commands to create old-style static archives.
6856 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6857 old_postinstall_cmds='chmod 644 $oldlib'
6858 old_postuninstall_cmds=
6859
6860 if test -n "$RANLIB"; then
6861   case $host_os in
6862   openbsd*)
6863     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6864     ;;
6865   *)
6866     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6867     ;;
6868   esac
6869   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6870 fi
6871
6872 for cc_temp in $compiler""; do
6873   case $cc_temp in
6874     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6875     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6876     \-*) ;;
6877     *) break;;
6878   esac
6879 done
6880 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6881
6882
6883 # Only perform the check for file, if the check method requires it
6884 case $deplibs_check_method in
6885 file_magic*)
6886   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6888 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6889 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6890   $as_echo_n "(cached) " >&6
6891 else
6892   case $MAGIC_CMD in
6893 [\\/*] |  ?:[\\/]*)
6894   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6895   ;;
6896 *)
6897   lt_save_MAGIC_CMD="$MAGIC_CMD"
6898   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6899   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6900   for ac_dir in $ac_dummy; do
6901     IFS="$lt_save_ifs"
6902     test -z "$ac_dir" && ac_dir=.
6903     if test -f $ac_dir/${ac_tool_prefix}file; then
6904       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6905       if test -n "$file_magic_test_file"; then
6906         case $deplibs_check_method in
6907         "file_magic "*)
6908           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6909           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6910           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6911             $EGREP "$file_magic_regex" > /dev/null; then
6912             :
6913           else
6914             cat <<EOF 1>&2
6915
6916 *** Warning: the command libtool uses to detect shared libraries,
6917 *** $file_magic_cmd, produces output that libtool cannot recognize.
6918 *** The result is that libtool may fail to recognize shared libraries
6919 *** as such.  This will affect the creation of libtool libraries that
6920 *** depend on shared libraries, but programs linked with such libtool
6921 *** libraries will work regardless of this problem.  Nevertheless, you
6922 *** may want to report the problem to your system manager and/or to
6923 *** bug-libtool@gnu.org
6924
6925 EOF
6926           fi ;;
6927         esac
6928       fi
6929       break
6930     fi
6931   done
6932   IFS="$lt_save_ifs"
6933   MAGIC_CMD="$lt_save_MAGIC_CMD"
6934   ;;
6935 esac
6936 fi
6937
6938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6939 if test -n "$MAGIC_CMD"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6941 $as_echo "$MAGIC_CMD" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947 if test -z "$lt_cv_path_MAGIC_CMD"; then
6948   if test -n "$ac_tool_prefix"; then
6949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6950 $as_echo_n "checking for file... " >&6; }
6951 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6952   $as_echo_n "(cached) " >&6
6953 else
6954   case $MAGIC_CMD in
6955 [\\/*] |  ?:[\\/]*)
6956   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6957   ;;
6958 *)
6959   lt_save_MAGIC_CMD="$MAGIC_CMD"
6960   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6961   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6962   for ac_dir in $ac_dummy; do
6963     IFS="$lt_save_ifs"
6964     test -z "$ac_dir" && ac_dir=.
6965     if test -f $ac_dir/file; then
6966       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6967       if test -n "$file_magic_test_file"; then
6968         case $deplibs_check_method in
6969         "file_magic "*)
6970           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6971           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6972           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6973             $EGREP "$file_magic_regex" > /dev/null; then
6974             :
6975           else
6976             cat <<EOF 1>&2
6977
6978 *** Warning: the command libtool uses to detect shared libraries,
6979 *** $file_magic_cmd, produces output that libtool cannot recognize.
6980 *** The result is that libtool may fail to recognize shared libraries
6981 *** as such.  This will affect the creation of libtool libraries that
6982 *** depend on shared libraries, but programs linked with such libtool
6983 *** libraries will work regardless of this problem.  Nevertheless, you
6984 *** may want to report the problem to your system manager and/or to
6985 *** bug-libtool@gnu.org
6986
6987 EOF
6988           fi ;;
6989         esac
6990       fi
6991       break
6992     fi
6993   done
6994   IFS="$lt_save_ifs"
6995   MAGIC_CMD="$lt_save_MAGIC_CMD"
6996   ;;
6997 esac
6998 fi
6999
7000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7001 if test -n "$MAGIC_CMD"; then
7002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7003 $as_echo "$MAGIC_CMD" >&6; }
7004 else
7005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009   else
7010     MAGIC_CMD=:
7011   fi
7012 fi
7013
7014   fi
7015   ;;
7016 esac
7017
7018 enable_dlopen=yes
7019 enable_win32_dll=no
7020
7021 # Check whether --enable-libtool-lock was given.
7022 if test "${enable_libtool_lock+set}" = set; then :
7023   enableval=$enable_libtool_lock;
7024 fi
7025
7026 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7027
7028
7029 # Check whether --with-pic was given.
7030 if test "${with_pic+set}" = set; then :
7031   withval=$with_pic; pic_mode="$withval"
7032 else
7033   pic_mode=default
7034 fi
7035
7036 test -z "$pic_mode" && pic_mode=default
7037
7038 # Use C for the default configuration in the libtool script
7039 tagname=
7040 lt_save_CC="$CC"
7041 ac_ext=c
7042 ac_cpp='$CPP $CPPFLAGS'
7043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7046
7047
7048 # Source file extension for C test sources.
7049 ac_ext=c
7050
7051 # Object file extension for compiled C test sources.
7052 objext=o
7053 objext=$objext
7054
7055 # Code to be used in simple compile tests
7056 lt_simple_compile_test_code="int some_variable = 0;\n"
7057
7058 # Code to be used in simple link tests
7059 lt_simple_link_test_code='int main(){return(0);}\n'
7060
7061
7062 # If no C compiler was specified, use CC.
7063 LTCC=${LTCC-"$CC"}
7064
7065 # If no C compiler flags were specified, use CFLAGS.
7066 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7067
7068 # Allow CC to be a program name with arguments.
7069 compiler=$CC
7070
7071
7072 # save warnings/boilerplate of simple test code
7073 ac_outfile=conftest.$ac_objext
7074 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7075 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7076 _lt_compiler_boilerplate=`cat conftest.err`
7077 $rm conftest*
7078
7079 ac_outfile=conftest.$ac_objext
7080 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7081 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7082 _lt_linker_boilerplate=`cat conftest.err`
7083 $rm conftest*
7084
7085
7086
7087 lt_prog_compiler_no_builtin_flag=
7088
7089 if test "$GCC" = yes; then
7090   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7091
7092
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7094 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7095 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7096   $as_echo_n "(cached) " >&6
7097 else
7098   lt_cv_prog_compiler_rtti_exceptions=no
7099   ac_outfile=conftest.$ac_objext
7100    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7101    lt_compiler_flag="-fno-rtti -fno-exceptions"
7102    # Insert the option either (1) after the last *FLAGS variable, or
7103    # (2) before a word containing "conftest.", or (3) at the end.
7104    # Note that $ac_compile itself does not contain backslashes and begins
7105    # with a dollar sign (not a hyphen), so the echo should work correctly.
7106    # The option is referenced via a variable to avoid confusing sed.
7107    lt_compile=`echo "$ac_compile" | $SED \
7108    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7109    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7110    -e 's:$: $lt_compiler_flag:'`
7111    (eval echo "\"\$as_me:7111: $lt_compile\"" >&5)
7112    (eval "$lt_compile" 2>conftest.err)
7113    ac_status=$?
7114    cat conftest.err >&5
7115    echo "$as_me:7115: \$? = $ac_status" >&5
7116    if (exit $ac_status) && test -s "$ac_outfile"; then
7117      # The compiler can only warn and ignore the option if not recognized
7118      # So say no if there are warnings other than the usual output.
7119      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7120      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7121      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7122        lt_cv_prog_compiler_rtti_exceptions=yes
7123      fi
7124    fi
7125    $rm conftest*
7126
7127 fi
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7129 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7130
7131 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7132     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7133 else
7134     :
7135 fi
7136
7137 fi
7138
7139 lt_prog_compiler_wl=
7140 lt_prog_compiler_pic=
7141 lt_prog_compiler_static=
7142
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7144 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7145
7146   if test "$GCC" = yes; then
7147     lt_prog_compiler_wl='-Wl,'
7148     lt_prog_compiler_static='-static'
7149
7150     case $host_os in
7151       aix*)
7152       # All AIX code is PIC.
7153       if test "$host_cpu" = ia64; then
7154         # AIX 5 now supports IA64 processor
7155         lt_prog_compiler_static='-Bstatic'
7156       fi
7157       ;;
7158
7159     amigaos*)
7160       # FIXME: we need at least 68020 code to build shared libraries, but
7161       # adding the `-m68020' flag to GCC prevents building anything better,
7162       # like `-m68040'.
7163       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7164       ;;
7165
7166     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7167       # PIC is the default for these OSes.
7168       ;;
7169
7170     mingw* | pw32* | os2*)
7171       # This hack is so that the source file can tell whether it is being
7172       # built for inclusion in a dll (and should export symbols for example).
7173       lt_prog_compiler_pic='-DDLL_EXPORT'
7174       ;;
7175
7176     darwin* | rhapsody*)
7177       # PIC is the default on this platform
7178       # Common symbols not allowed in MH_DYLIB files
7179       lt_prog_compiler_pic='-fno-common'
7180       ;;
7181
7182     interix3*)
7183       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7184       # Instead, we relocate shared libraries at runtime.
7185       ;;
7186
7187     msdosdjgpp*)
7188       # Just because we use GCC doesn't mean we suddenly get shared libraries
7189       # on systems that don't support them.
7190       lt_prog_compiler_can_build_shared=no
7191       enable_shared=no
7192       ;;
7193
7194     sysv4*MP*)
7195       if test -d /usr/nec; then
7196         lt_prog_compiler_pic=-Kconform_pic
7197       fi
7198       ;;
7199
7200     hpux*)
7201       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7202       # not for PA HP-UX.
7203       case $host_cpu in
7204       hppa*64*|ia64*)
7205         # +Z the default
7206         ;;
7207       *)
7208         lt_prog_compiler_pic='-fPIC'
7209         ;;
7210       esac
7211       ;;
7212
7213     *)
7214       lt_prog_compiler_pic='-fPIC'
7215       ;;
7216     esac
7217   else
7218     # PORTME Check for flag to pass linker flags through the system compiler.
7219     case $host_os in
7220     aix*)
7221       lt_prog_compiler_wl='-Wl,'
7222       if test "$host_cpu" = ia64; then
7223         # AIX 5 now supports IA64 processor
7224         lt_prog_compiler_static='-Bstatic'
7225       else
7226         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7227       fi
7228       ;;
7229       darwin*)
7230         # PIC is the default on this platform
7231         # Common symbols not allowed in MH_DYLIB files
7232        case $cc_basename in
7233          xlc*)
7234          lt_prog_compiler_pic='-qnocommon'
7235          lt_prog_compiler_wl='-Wl,'
7236          ;;
7237        esac
7238        ;;
7239
7240     mingw* | pw32* | os2*)
7241       # This hack is so that the source file can tell whether it is being
7242       # built for inclusion in a dll (and should export symbols for example).
7243       lt_prog_compiler_pic='-DDLL_EXPORT'
7244       ;;
7245
7246     hpux9* | hpux10* | hpux11*)
7247       lt_prog_compiler_wl='-Wl,'
7248       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7249       # not for PA HP-UX.
7250       case $host_cpu in
7251       hppa*64*|ia64*)
7252         # +Z the default
7253         ;;
7254       *)
7255         lt_prog_compiler_pic='+Z'
7256         ;;
7257       esac
7258       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7259       lt_prog_compiler_static='${wl}-a ${wl}archive'
7260       ;;
7261
7262     irix5* | irix6* | nonstopux*)
7263       lt_prog_compiler_wl='-Wl,'
7264       # PIC (with -KPIC) is the default.
7265       lt_prog_compiler_static='-non_shared'
7266       ;;
7267
7268     newsos6)
7269       lt_prog_compiler_pic='-KPIC'
7270       lt_prog_compiler_static='-Bstatic'
7271       ;;
7272
7273     linux*)
7274       case $cc_basename in
7275       icc* | ecc*)
7276         lt_prog_compiler_wl='-Wl,'
7277         lt_prog_compiler_pic='-KPIC'
7278         lt_prog_compiler_static='-static'
7279         ;;
7280       pgcc* | pgf77* | pgf90* | pgf95*)
7281         # Portland Group compilers (*not* the Pentium gcc compiler,
7282         # which looks to be a dead project)
7283         lt_prog_compiler_wl='-Wl,'
7284         lt_prog_compiler_pic='-fpic'
7285         lt_prog_compiler_static='-Bstatic'
7286         ;;
7287       ccc*)
7288         lt_prog_compiler_wl='-Wl,'
7289         # All Alpha code is PIC.
7290         lt_prog_compiler_static='-non_shared'
7291         ;;
7292       esac
7293       ;;
7294
7295     osf3* | osf4* | osf5*)
7296       lt_prog_compiler_wl='-Wl,'
7297       # All OSF/1 code is PIC.
7298       lt_prog_compiler_static='-non_shared'
7299       ;;
7300
7301     solaris*)
7302       lt_prog_compiler_pic='-KPIC'
7303       lt_prog_compiler_static='-Bstatic'
7304       case $cc_basename in
7305       f77* | f90* | f95*)
7306         lt_prog_compiler_wl='-Qoption ld ';;
7307       *)
7308         lt_prog_compiler_wl='-Wl,';;
7309       esac
7310       ;;
7311
7312     sunos4*)
7313       lt_prog_compiler_wl='-Qoption ld '
7314       lt_prog_compiler_pic='-PIC'
7315       lt_prog_compiler_static='-Bstatic'
7316       ;;
7317
7318     sysv4 | sysv4.2uw2* | sysv4.3*)
7319       lt_prog_compiler_wl='-Wl,'
7320       lt_prog_compiler_pic='-KPIC'
7321       lt_prog_compiler_static='-Bstatic'
7322       ;;
7323
7324     sysv4*MP*)
7325       if test -d /usr/nec ;then
7326         lt_prog_compiler_pic='-Kconform_pic'
7327         lt_prog_compiler_static='-Bstatic'
7328       fi
7329       ;;
7330
7331     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7332       lt_prog_compiler_wl='-Wl,'
7333       lt_prog_compiler_pic='-KPIC'
7334       lt_prog_compiler_static='-Bstatic'
7335       ;;
7336
7337     unicos*)
7338       lt_prog_compiler_wl='-Wl,'
7339       lt_prog_compiler_can_build_shared=no
7340       ;;
7341
7342     uts4*)
7343       lt_prog_compiler_pic='-pic'
7344       lt_prog_compiler_static='-Bstatic'
7345       ;;
7346
7347     *)
7348       lt_prog_compiler_can_build_shared=no
7349       ;;
7350     esac
7351   fi
7352
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7354 $as_echo "$lt_prog_compiler_pic" >&6; }
7355
7356 #
7357 # Check to make sure the PIC flag actually works.
7358 #
7359 if test -n "$lt_prog_compiler_pic"; then
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7362 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7363 if ${lt_prog_compiler_pic_works+:} false; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   lt_prog_compiler_pic_works=no
7367   ac_outfile=conftest.$ac_objext
7368    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7369    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7370    # Insert the option either (1) after the last *FLAGS variable, or
7371    # (2) before a word containing "conftest.", or (3) at the end.
7372    # Note that $ac_compile itself does not contain backslashes and begins
7373    # with a dollar sign (not a hyphen), so the echo should work correctly.
7374    # The option is referenced via a variable to avoid confusing sed.
7375    lt_compile=`echo "$ac_compile" | $SED \
7376    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7377    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7378    -e 's:$: $lt_compiler_flag:'`
7379    (eval echo "\"\$as_me:7379: $lt_compile\"" >&5)
7380    (eval "$lt_compile" 2>conftest.err)
7381    ac_status=$?
7382    cat conftest.err >&5
7383    echo "$as_me:7383: \$? = $ac_status" >&5
7384    if (exit $ac_status) && test -s "$ac_outfile"; then
7385      # The compiler can only warn and ignore the option if not recognized
7386      # So say no if there are warnings other than the usual output.
7387      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7388      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7389      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7390        lt_prog_compiler_pic_works=yes
7391      fi
7392    fi
7393    $rm conftest*
7394
7395 fi
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7397 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7398
7399 if test x"$lt_prog_compiler_pic_works" = xyes; then
7400     case $lt_prog_compiler_pic in
7401      "" | " "*) ;;
7402      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7403      esac
7404 else
7405     lt_prog_compiler_pic=
7406      lt_prog_compiler_can_build_shared=no
7407 fi
7408
7409 fi
7410 case $host_os in
7411   # For platforms which do not support PIC, -DPIC is meaningless:
7412   *djgpp*)
7413     lt_prog_compiler_pic=
7414     ;;
7415   *)
7416     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7417     ;;
7418 esac
7419
7420 #
7421 # Check to make sure the static flag actually works.
7422 #
7423 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7425 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7426 if ${lt_prog_compiler_static_works+:} false; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   lt_prog_compiler_static_works=no
7430    save_LDFLAGS="$LDFLAGS"
7431    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7432    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7433    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7434      # The linker can only warn and ignore the option if not recognized
7435      # So say no if there are warnings
7436      if test -s conftest.err; then
7437        # Append any errors to the config.log.
7438        cat conftest.err 1>&5
7439        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7440        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7441        if diff conftest.exp conftest.er2 >/dev/null; then
7442          lt_prog_compiler_static_works=yes
7443        fi
7444      else
7445        lt_prog_compiler_static_works=yes
7446      fi
7447    fi
7448    $rm conftest*
7449    LDFLAGS="$save_LDFLAGS"
7450
7451 fi
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7453 $as_echo "$lt_prog_compiler_static_works" >&6; }
7454
7455 if test x"$lt_prog_compiler_static_works" = xyes; then
7456     :
7457 else
7458     lt_prog_compiler_static=
7459 fi
7460
7461
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7464 if ${lt_cv_prog_compiler_c_o+:} false; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   lt_cv_prog_compiler_c_o=no
7468    $rm -r conftest 2>/dev/null
7469    mkdir conftest
7470    cd conftest
7471    mkdir out
7472    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7473
7474    lt_compiler_flag="-o out/conftest2.$ac_objext"
7475    # Insert the option either (1) after the last *FLAGS variable, or
7476    # (2) before a word containing "conftest.", or (3) at the end.
7477    # Note that $ac_compile itself does not contain backslashes and begins
7478    # with a dollar sign (not a hyphen), so the echo should work correctly.
7479    lt_compile=`echo "$ac_compile" | $SED \
7480    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7481    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7482    -e 's:$: $lt_compiler_flag:'`
7483    (eval echo "\"\$as_me:7483: $lt_compile\"" >&5)
7484    (eval "$lt_compile" 2>out/conftest.err)
7485    ac_status=$?
7486    cat out/conftest.err >&5
7487    echo "$as_me:7487: \$? = $ac_status" >&5
7488    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7489    then
7490      # The compiler can only warn and ignore the option if not recognized
7491      # So say no if there are warnings
7492      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7493      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7494      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7495        lt_cv_prog_compiler_c_o=yes
7496      fi
7497    fi
7498    chmod u+w . 2>&5
7499    $rm conftest*
7500    # SGI C++ compiler will create directory out/ii_files/ for
7501    # template instantiation
7502    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7503    $rm out/* && rmdir out
7504    cd ..
7505    rmdir conftest
7506    $rm conftest*
7507
7508 fi
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7510 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7511
7512
7513 hard_links="nottested"
7514 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7515   # do not overwrite the value of need_locks provided by the user
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7517 $as_echo_n "checking if we can lock with hard links... " >&6; }
7518   hard_links=yes
7519   $rm conftest*
7520   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7521   touch conftest.a
7522   ln conftest.a conftest.b 2>&5 || hard_links=no
7523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7525 $as_echo "$hard_links" >&6; }
7526   if test "$hard_links" = no; then
7527     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7528 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7529     need_locks=warn
7530   fi
7531 else
7532   need_locks=no
7533 fi
7534
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7536 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7537
7538   runpath_var=
7539   allow_undefined_flag=
7540   enable_shared_with_static_runtimes=no
7541   archive_cmds=
7542   archive_expsym_cmds=
7543   old_archive_From_new_cmds=
7544   old_archive_from_expsyms_cmds=
7545   export_dynamic_flag_spec=
7546   whole_archive_flag_spec=
7547   thread_safe_flag_spec=
7548   hardcode_libdir_flag_spec=
7549   hardcode_libdir_flag_spec_ld=
7550   hardcode_libdir_separator=
7551   hardcode_direct=no
7552   hardcode_minus_L=no
7553   hardcode_shlibpath_var=unsupported
7554   link_all_deplibs=unknown
7555   hardcode_automatic=no
7556   module_cmds=
7557   module_expsym_cmds=
7558   always_export_symbols=no
7559   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7560   # include_expsyms should be a list of space-separated symbols to be *always*
7561   # included in the symbol list
7562   include_expsyms=
7563   # exclude_expsyms can be an extended regexp of symbols to exclude
7564   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7565   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7566   # as well as any symbol that contains `d'.
7567   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7568   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7569   # platforms (ab)use it in PIC code, but their linkers get confused if
7570   # the symbol is explicitly referenced.  Since portable code cannot
7571   # rely on this symbol name, it's probably fine to never include it in
7572   # preloaded symbol tables.
7573   extract_expsyms_cmds=
7574   # Just being paranoid about ensuring that cc_basename is set.
7575   for cc_temp in $compiler""; do
7576   case $cc_temp in
7577     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7578     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7579     \-*) ;;
7580     *) break;;
7581   esac
7582 done
7583 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7584
7585   case $host_os in
7586   cygwin* | mingw* | pw32*)
7587     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7588     # When not using gcc, we currently assume that we are using
7589     # Microsoft Visual C++.
7590     if test "$GCC" != yes; then
7591       with_gnu_ld=no
7592     fi
7593     ;;
7594   interix*)
7595     # we just hope/assume this is gcc and not c89 (= MSVC++)
7596     with_gnu_ld=yes
7597     ;;
7598   openbsd*)
7599     with_gnu_ld=no
7600     ;;
7601   esac
7602
7603   ld_shlibs=yes
7604   if test "$with_gnu_ld" = yes; then
7605     # If archive_cmds runs LD, not CC, wlarc should be empty
7606     wlarc='${wl}'
7607
7608     # Set some defaults for GNU ld with shared library support. These
7609     # are reset later if shared libraries are not supported. Putting them
7610     # here allows them to be overridden if necessary.
7611     runpath_var=LD_RUN_PATH
7612     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7613     export_dynamic_flag_spec='${wl}--export-dynamic'
7614     # ancient GNU ld didn't support --whole-archive et. al.
7615     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7616         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7617       else
7618         whole_archive_flag_spec=
7619     fi
7620     supports_anon_versioning=no
7621     case `$LD -v 2>/dev/null` in
7622       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7623       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7624       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7625       *\ 2.11.*) ;; # other 2.11 versions
7626       *) supports_anon_versioning=yes ;;
7627     esac
7628
7629     # See if GNU ld supports shared libraries.
7630     case $host_os in
7631     aix3* | aix4* | aix5*)
7632       # On AIX/PPC, the GNU linker is very broken
7633       if test "$host_cpu" != ia64; then
7634         ld_shlibs=no
7635         cat <<EOF 1>&2
7636
7637 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7638 *** to be unable to reliably create shared libraries on AIX.
7639 *** Therefore, libtool is disabling shared libraries support.  If you
7640 *** really care for shared libraries, you may want to modify your PATH
7641 *** so that a non-GNU linker is found, and then restart.
7642
7643 EOF
7644       fi
7645       ;;
7646
7647     amigaos*)
7648       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)'
7649       hardcode_libdir_flag_spec='-L$libdir'
7650       hardcode_minus_L=yes
7651
7652       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7653       # that the semantics of dynamic libraries on AmigaOS, at least up
7654       # to version 4, is to share data among multiple programs linked
7655       # with the same dynamic library.  Since this doesn't match the
7656       # behavior of shared libraries on other platforms, we can't use
7657       # them.
7658       ld_shlibs=no
7659       ;;
7660
7661     beos*)
7662       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7663         allow_undefined_flag=unsupported
7664         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7665         # support --undefined.  This deserves some investigation.  FIXME
7666         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7667       else
7668         ld_shlibs=no
7669       fi
7670       ;;
7671
7672     cygwin* | mingw* | pw32*)
7673       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7674       # as there is no search path for DLLs.
7675       hardcode_libdir_flag_spec='-L$libdir'
7676       allow_undefined_flag=unsupported
7677       always_export_symbols=no
7678       enable_shared_with_static_runtimes=yes
7679       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7680
7681       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7682         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7683         # If the export-symbols file already is a .def file (1st line
7684         # is EXPORTS), use it as is; otherwise, prepend...
7685         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7686           cp $export_symbols $output_objdir/$soname.def;
7687         else
7688           echo EXPORTS > $output_objdir/$soname.def;
7689           cat $export_symbols >> $output_objdir/$soname.def;
7690         fi~
7691         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7692       else
7693         ld_shlibs=no
7694       fi
7695       ;;
7696
7697     interix3*)
7698       hardcode_direct=no
7699       hardcode_shlibpath_var=no
7700       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7701       export_dynamic_flag_spec='${wl}-E'
7702       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7703       # Instead, shared libraries are loaded at an image base (0x10000000 by
7704       # default) and relocated if they conflict, which is a slow very memory
7705       # consuming and fragmenting process.  To avoid this, we pick a random,
7706       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7707       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7708       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7709       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'
7710       ;;
7711
7712     linux*)
7713       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7714         tmp_addflag=
7715         case $cc_basename,$host_cpu in
7716         pgcc*)                          # Portland Group C compiler
7717           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7718           tmp_addflag=' $pic_flag'
7719           ;;
7720         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7721           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7722           tmp_addflag=' $pic_flag -Mnomain' ;;
7723         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7724           tmp_addflag=' -i_dynamic' ;;
7725         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7726           tmp_addflag=' -i_dynamic -nofor_main' ;;
7727         ifc* | ifort*)                  # Intel Fortran compiler
7728           tmp_addflag=' -nofor_main' ;;
7729         esac
7730         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7731
7732         if test $supports_anon_versioning = yes; then
7733           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7734   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7735   $echo "local: *; };" >> $output_objdir/$libname.ver~
7736           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7737         fi
7738       else
7739         ld_shlibs=no
7740       fi
7741       ;;
7742
7743     netbsd*)
7744       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7745         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7746         wlarc=
7747       else
7748         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7749         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7750       fi
7751       ;;
7752
7753     solaris*)
7754       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7755         ld_shlibs=no
7756         cat <<EOF 1>&2
7757
7758 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7759 *** create shared libraries on Solaris systems.  Therefore, libtool
7760 *** is disabling shared libraries support.  We urge you to upgrade GNU
7761 *** binutils to release 2.9.1 or newer.  Another option is to modify
7762 *** your PATH or compiler configuration so that the native linker is
7763 *** used, and then restart.
7764
7765 EOF
7766       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7767         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7768         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7769       else
7770         ld_shlibs=no
7771       fi
7772       ;;
7773
7774     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7775       case `$LD -v 2>&1` in
7776         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7777         ld_shlibs=no
7778         cat <<_LT_EOF 1>&2
7779
7780 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7781 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7782 *** is disabling shared libraries support.  We urge you to upgrade GNU
7783 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7784 *** your PATH or compiler configuration so that the native linker is
7785 *** used, and then restart.
7786
7787 _LT_EOF
7788         ;;
7789         *)
7790           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7791             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7792             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7793             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7794           else
7795             ld_shlibs=no
7796           fi
7797         ;;
7798       esac
7799       ;;
7800
7801     sunos4*)
7802       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7803       wlarc=
7804       hardcode_direct=yes
7805       hardcode_shlibpath_var=no
7806       ;;
7807
7808     *)
7809       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7810         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7811         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7812       else
7813         ld_shlibs=no
7814       fi
7815       ;;
7816     esac
7817
7818     if test "$ld_shlibs" = no; then
7819       runpath_var=
7820       hardcode_libdir_flag_spec=
7821       export_dynamic_flag_spec=
7822       whole_archive_flag_spec=
7823     fi
7824   else
7825     # PORTME fill in a description of your system's linker (not GNU ld)
7826     case $host_os in
7827     aix3*)
7828       allow_undefined_flag=unsupported
7829       always_export_symbols=yes
7830       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'
7831       # Note: this linker hardcodes the directories in LIBPATH if there
7832       # are no directories specified by -L.
7833       hardcode_minus_L=yes
7834       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7835         # Neither direct hardcoding nor static linking is supported with a
7836         # broken collect2.
7837         hardcode_direct=unsupported
7838       fi
7839       ;;
7840
7841     aix4* | aix5*)
7842       if test "$host_cpu" = ia64; then
7843         # On IA64, the linker does run time linking by default, so we don't
7844         # have to do anything special.
7845         aix_use_runtimelinking=no
7846         exp_sym_flag='-Bexport'
7847         no_entry_flag=""
7848       else
7849         # If we're using GNU nm, then we don't want the "-C" option.
7850         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7851         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7852           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7853         else
7854           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'
7855         fi
7856         aix_use_runtimelinking=no
7857
7858         # Test if we are trying to use run time linking or normal
7859         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7860         # need to do runtime linking.
7861         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7862           for ld_flag in $LDFLAGS; do
7863           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7864             aix_use_runtimelinking=yes
7865             break
7866           fi
7867           done
7868           ;;
7869         esac
7870
7871         exp_sym_flag='-bexport'
7872         no_entry_flag='-bnoentry'
7873       fi
7874
7875       # When large executables or shared objects are built, AIX ld can
7876       # have problems creating the table of contents.  If linking a library
7877       # or program results in "error TOC overflow" add -mminimal-toc to
7878       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7879       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7880
7881       archive_cmds=''
7882       hardcode_direct=yes
7883       hardcode_libdir_separator=':'
7884       link_all_deplibs=yes
7885
7886       if test "$GCC" = yes; then
7887         case $host_os in aix4.[012]|aix4.[012].*)
7888         # We only want to do this on AIX 4.2 and lower, the check
7889         # below for broken collect2 doesn't work under 4.3+
7890           collect2name=`${CC} -print-prog-name=collect2`
7891           if test -f "$collect2name" && \
7892            strings "$collect2name" | grep resolve_lib_name >/dev/null
7893           then
7894           # We have reworked collect2
7895           hardcode_direct=yes
7896           else
7897           # We have old collect2
7898           hardcode_direct=unsupported
7899           # It fails to find uninstalled libraries when the uninstalled
7900           # path is not listed in the libpath.  Setting hardcode_minus_L
7901           # to unsupported forces relinking
7902           hardcode_minus_L=yes
7903           hardcode_libdir_flag_spec='-L$libdir'
7904           hardcode_libdir_separator=
7905           fi
7906           ;;
7907         esac
7908         shared_flag='-shared'
7909         if test "$aix_use_runtimelinking" = yes; then
7910           shared_flag="$shared_flag "'${wl}-G'
7911         fi
7912       else
7913         # not using gcc
7914         if test "$host_cpu" = ia64; then
7915         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7916         # chokes on -Wl,-G. The following line is correct:
7917           shared_flag='-G'
7918         else
7919           if test "$aix_use_runtimelinking" = yes; then
7920             shared_flag='${wl}-G'
7921           else
7922             shared_flag='${wl}-bM:SRE'
7923           fi
7924         fi
7925       fi
7926
7927       # It seems that -bexpall does not export symbols beginning with
7928       # underscore (_), so it is better to generate a list of symbols to export.
7929       always_export_symbols=yes
7930       if test "$aix_use_runtimelinking" = yes; then
7931         # Warning - without using the other runtime loading flags (-brtl),
7932         # -berok will link without error, but may produce a broken library.
7933         allow_undefined_flag='-berok'
7934        # Determine the default libpath from the value encoded in an empty executable.
7935        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h.  */
7937
7938 int
7939 main ()
7940 {
7941
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_link "$LINENO"; then :
7947
7948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7949 }'`
7950 # Check for a 64-bit object if we didn't find anything.
7951 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7952 }'`; fi
7953 fi
7954 rm -f core conftest.err conftest.$ac_objext \
7955     conftest$ac_exeext conftest.$ac_ext
7956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7957
7958        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7959         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7960        else
7961         if test "$host_cpu" = ia64; then
7962           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7963           allow_undefined_flag="-z nodefs"
7964           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"
7965         else
7966          # Determine the default libpath from the value encoded in an empty executable.
7967          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h.  */
7969
7970 int
7971 main ()
7972 {
7973
7974   ;
7975   return 0;
7976 }
7977 _ACEOF
7978 if ac_fn_c_try_link "$LINENO"; then :
7979
7980 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7981 }'`
7982 # Check for a 64-bit object if we didn't find anything.
7983 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7984 }'`; fi
7985 fi
7986 rm -f core conftest.err conftest.$ac_objext \
7987     conftest$ac_exeext conftest.$ac_ext
7988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7989
7990          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7991           # Warning - without using the other run time loading flags,
7992           # -berok will link without error, but may produce a broken library.
7993           no_undefined_flag=' ${wl}-bernotok'
7994           allow_undefined_flag=' ${wl}-berok'
7995           # Exported symbols can be pulled into shared objects from archives
7996           whole_archive_flag_spec='$convenience'
7997           archive_cmds_need_lc=yes
7998           # This is similar to how AIX traditionally builds its shared libraries.
7999           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'
8000         fi
8001       fi
8002       ;;
8003
8004     amigaos*)
8005       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)'
8006       hardcode_libdir_flag_spec='-L$libdir'
8007       hardcode_minus_L=yes
8008       # see comment about different semantics on the GNU ld section
8009       ld_shlibs=no
8010       ;;
8011
8012     bsdi[45]*)
8013       export_dynamic_flag_spec=-rdynamic
8014       ;;
8015
8016     cygwin* | mingw* | pw32*)
8017       # When not using gcc, we currently assume that we are using
8018       # Microsoft Visual C++.
8019       # hardcode_libdir_flag_spec is actually meaningless, as there is
8020       # no search path for DLLs.
8021       hardcode_libdir_flag_spec=' '
8022       allow_undefined_flag=unsupported
8023       # Tell ltmain to make .lib files, not .a files.
8024       libext=lib
8025       # Tell ltmain to make .dll files, not .so files.
8026       shrext_cmds=".dll"
8027       # FIXME: Setting linknames here is a bad hack.
8028       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8029       # The linker will automatically build a .lib file if we build a DLL.
8030       old_archive_From_new_cmds='true'
8031       # FIXME: Should let the user specify the lib program.
8032       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8033       fix_srcfile_path='`cygpath -w "$srcfile"`'
8034       enable_shared_with_static_runtimes=yes
8035       ;;
8036
8037     darwin* | rhapsody*)
8038       case $host_os in
8039         rhapsody* | darwin1.[012])
8040          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8041          ;;
8042        *) # Darwin 1.3 on
8043          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8044            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8045          else
8046            case ${MACOSX_DEPLOYMENT_TARGET} in
8047              10.[012])
8048                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8049                ;;
8050              10.*)
8051                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8052                ;;
8053            esac
8054          fi
8055          ;;
8056       esac
8057       archive_cmds_need_lc=no
8058       hardcode_direct=no
8059       hardcode_automatic=yes
8060       hardcode_shlibpath_var=unsupported
8061       whole_archive_flag_spec=''
8062       link_all_deplibs=yes
8063     if test "$GCC" = yes ; then
8064         output_verbose_link_cmd='echo'
8065         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8066       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8067       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8068       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8069       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8070     else
8071       case $cc_basename in
8072         xlc*)
8073          output_verbose_link_cmd='echo'
8074          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8075          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8076           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8077          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8078           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8079           ;;
8080        *)
8081          ld_shlibs=no
8082           ;;
8083       esac
8084     fi
8085       ;;
8086
8087     dgux*)
8088       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8089       hardcode_libdir_flag_spec='-L$libdir'
8090       hardcode_shlibpath_var=no
8091       ;;
8092
8093     freebsd1*)
8094       ld_shlibs=no
8095       ;;
8096
8097     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8098     # support.  Future versions do this automatically, but an explicit c++rt0.o
8099     # does not break anything, and helps significantly (at the cost of a little
8100     # extra space).
8101     freebsd2.2*)
8102       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8103       hardcode_libdir_flag_spec='-R$libdir'
8104       hardcode_direct=yes
8105       hardcode_shlibpath_var=no
8106       ;;
8107
8108     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8109     freebsd2*)
8110       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8111       hardcode_direct=yes
8112       hardcode_minus_L=yes
8113       hardcode_shlibpath_var=no
8114       ;;
8115
8116     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8117     freebsd* | kfreebsd*-gnu | dragonfly*)
8118       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8119       hardcode_libdir_flag_spec='-R$libdir'
8120       hardcode_direct=yes
8121       hardcode_shlibpath_var=no
8122       ;;
8123
8124     hpux9*)
8125       if test "$GCC" = yes; then
8126         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8127       else
8128         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'
8129       fi
8130       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8131       hardcode_libdir_separator=:
8132       hardcode_direct=yes
8133
8134       # hardcode_minus_L: Not really in the search PATH,
8135       # but as the default location of the library.
8136       hardcode_minus_L=yes
8137       export_dynamic_flag_spec='${wl}-E'
8138       ;;
8139
8140     hpux10*)
8141       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8142         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8143       else
8144         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8145       fi
8146       if test "$with_gnu_ld" = no; then
8147         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8148         hardcode_libdir_separator=:
8149
8150         hardcode_direct=yes
8151         export_dynamic_flag_spec='${wl}-E'
8152
8153         # hardcode_minus_L: Not really in the search PATH,
8154         # but as the default location of the library.
8155         hardcode_minus_L=yes
8156       fi
8157       ;;
8158
8159     hpux11*)
8160       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8161         case $host_cpu in
8162         hppa*64*)
8163           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8164           ;;
8165         ia64*)
8166           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8167           ;;
8168         *)
8169           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8170           ;;
8171         esac
8172       else
8173         case $host_cpu in
8174         hppa*64*)
8175           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8176           ;;
8177         ia64*)
8178           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8179           ;;
8180         *)
8181           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8182           ;;
8183         esac
8184       fi
8185       if test "$with_gnu_ld" = no; then
8186         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8187         hardcode_libdir_separator=:
8188
8189         case $host_cpu in
8190         hppa*64*|ia64*)
8191           hardcode_libdir_flag_spec_ld='+b $libdir'
8192           hardcode_direct=no
8193           hardcode_shlibpath_var=no
8194           ;;
8195         *)
8196           hardcode_direct=yes
8197           export_dynamic_flag_spec='${wl}-E'
8198
8199           # hardcode_minus_L: Not really in the search PATH,
8200           # but as the default location of the library.
8201           hardcode_minus_L=yes
8202           ;;
8203         esac
8204       fi
8205       ;;
8206
8207     irix5* | irix6* | nonstopux*)
8208       if test "$GCC" = yes; then
8209         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8210       else
8211         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8212         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8213       fi
8214       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8215       hardcode_libdir_separator=:
8216       link_all_deplibs=yes
8217       ;;
8218
8219     netbsd*)
8220       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8221         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8222       else
8223         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8224       fi
8225       hardcode_libdir_flag_spec='-R$libdir'
8226       hardcode_direct=yes
8227       hardcode_shlibpath_var=no
8228       ;;
8229
8230     newsos6)
8231       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8232       hardcode_direct=yes
8233       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8234       hardcode_libdir_separator=:
8235       hardcode_shlibpath_var=no
8236       ;;
8237
8238     openbsd*)
8239       hardcode_direct=yes
8240       hardcode_shlibpath_var=no
8241       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8242         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8243         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8244         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8245         export_dynamic_flag_spec='${wl}-E'
8246       else
8247        case $host_os in
8248          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8249            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8250            hardcode_libdir_flag_spec='-R$libdir'
8251            ;;
8252          *)
8253            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8254            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8255            ;;
8256        esac
8257       fi
8258       ;;
8259
8260     os2*)
8261       hardcode_libdir_flag_spec='-L$libdir'
8262       hardcode_minus_L=yes
8263       allow_undefined_flag=unsupported
8264       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'
8265       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8266       ;;
8267
8268     osf3*)
8269       if test "$GCC" = yes; then
8270         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8271         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8272       else
8273         allow_undefined_flag=' -expect_unresolved \*'
8274         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8275       fi
8276       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8277       hardcode_libdir_separator=:
8278       ;;
8279
8280     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8281       if test "$GCC" = yes; then
8282         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8283         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8284         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8285       else
8286         allow_undefined_flag=' -expect_unresolved \*'
8287         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8288         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8289         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8290
8291         # Both c and cxx compiler support -rpath directly
8292         hardcode_libdir_flag_spec='-rpath $libdir'
8293       fi
8294       hardcode_libdir_separator=:
8295       ;;
8296
8297     solaris*)
8298       no_undefined_flag=' -z text'
8299       if test "$GCC" = yes; then
8300         wlarc='${wl}'
8301         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8302         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8303           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8304       else
8305         wlarc=''
8306         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8307         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8308         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8309       fi
8310       hardcode_libdir_flag_spec='-R$libdir'
8311       hardcode_shlibpath_var=no
8312       case $host_os in
8313       solaris2.[0-5] | solaris2.[0-5].*) ;;
8314       *)
8315         # The compiler driver will combine linker options so we
8316         # cannot just pass the convience library names through
8317         # without $wl, iff we do not link with $LD.
8318         # Luckily, gcc supports the same syntax we need for Sun Studio.
8319         # Supported since Solaris 2.6 (maybe 2.5.1?)
8320         case $wlarc in
8321         '')
8322           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8323         *)
8324           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8325         esac ;;
8326       esac
8327       link_all_deplibs=yes
8328       ;;
8329
8330     sunos4*)
8331       if test "x$host_vendor" = xsequent; then
8332         # Use $CC to link under sequent, because it throws in some extra .o
8333         # files that make .init and .fini sections work.
8334         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8335       else
8336         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8337       fi
8338       hardcode_libdir_flag_spec='-L$libdir'
8339       hardcode_direct=yes
8340       hardcode_minus_L=yes
8341       hardcode_shlibpath_var=no
8342       ;;
8343
8344     sysv4)
8345       case $host_vendor in
8346         sni)
8347           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8348           hardcode_direct=yes # is this really true???
8349         ;;
8350         siemens)
8351           ## LD is ld it makes a PLAMLIB
8352           ## CC just makes a GrossModule.
8353           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8354           reload_cmds='$CC -r -o $output$reload_objs'
8355           hardcode_direct=no
8356         ;;
8357         motorola)
8358           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8360         ;;
8361       esac
8362       runpath_var='LD_RUN_PATH'
8363       hardcode_shlibpath_var=no
8364       ;;
8365
8366     sysv4.3*)
8367       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8368       hardcode_shlibpath_var=no
8369       export_dynamic_flag_spec='-Bexport'
8370       ;;
8371
8372     sysv4*MP*)
8373       if test -d /usr/nec; then
8374         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375         hardcode_shlibpath_var=no
8376         runpath_var=LD_RUN_PATH
8377         hardcode_runpath_var=yes
8378         ld_shlibs=yes
8379       fi
8380       ;;
8381
8382     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8383       no_undefined_flag='${wl}-z,text'
8384       archive_cmds_need_lc=no
8385       hardcode_shlibpath_var=no
8386       runpath_var='LD_RUN_PATH'
8387
8388       if test "$GCC" = yes; then
8389         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8390         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8391       else
8392         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8393         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8394       fi
8395       ;;
8396
8397     sysv5* | sco3.2v5* | sco5v6*)
8398       # Note: We can NOT use -z defs as we might desire, because we do not
8399       # link with -lc, and that would cause any symbols used from libc to
8400       # always be unresolved, which means just about no library would
8401       # ever link correctly.  If we're not using GNU ld we use -z text
8402       # though, which does catch some bad symbols but isn't as heavy-handed
8403       # as -z defs.
8404       no_undefined_flag='${wl}-z,text'
8405       allow_undefined_flag='${wl}-z,nodefs'
8406       archive_cmds_need_lc=no
8407       hardcode_shlibpath_var=no
8408       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8409       hardcode_libdir_separator=':'
8410       link_all_deplibs=yes
8411       export_dynamic_flag_spec='${wl}-Bexport'
8412       runpath_var='LD_RUN_PATH'
8413
8414       if test "$GCC" = yes; then
8415         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8416         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8417       else
8418         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8419         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8420       fi
8421       ;;
8422
8423     uts4*)
8424       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8425       hardcode_libdir_flag_spec='-L$libdir'
8426       hardcode_shlibpath_var=no
8427       ;;
8428
8429     *)
8430       ld_shlibs=no
8431       ;;
8432     esac
8433   fi
8434
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8436 $as_echo "$ld_shlibs" >&6; }
8437 test "$ld_shlibs" = no && can_build_shared=no
8438
8439 #
8440 # Do we need to explicitly link libc?
8441 #
8442 case "x$archive_cmds_need_lc" in
8443 x|xyes)
8444   # Assume -lc should be added
8445   archive_cmds_need_lc=yes
8446
8447   if test "$enable_shared" = yes && test "$GCC" = yes; then
8448     case $archive_cmds in
8449     *'~'*)
8450       # FIXME: we may have to deal with multi-command sequences.
8451       ;;
8452     '$CC '*)
8453       # Test whether the compiler implicitly links with -lc since on some
8454       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8455       # to ld, don't add -lc before -lgcc.
8456       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8457 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8458       $rm conftest*
8459       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8460
8461       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8462   (eval $ac_compile) 2>&5
8463   ac_status=$?
8464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8465   test $ac_status = 0; } 2>conftest.err; then
8466         soname=conftest
8467         lib=conftest
8468         libobjs=conftest.$ac_objext
8469         deplibs=
8470         wl=$lt_prog_compiler_wl
8471         pic_flag=$lt_prog_compiler_pic
8472         compiler_flags=-v
8473         linker_flags=-v
8474         verstring=
8475         output_objdir=.
8476         libname=conftest
8477         lt_save_allow_undefined_flag=$allow_undefined_flag
8478         allow_undefined_flag=
8479         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8480   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8481   ac_status=$?
8482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8483   test $ac_status = 0; }
8484         then
8485           archive_cmds_need_lc=no
8486         else
8487           archive_cmds_need_lc=yes
8488         fi
8489         allow_undefined_flag=$lt_save_allow_undefined_flag
8490       else
8491         cat conftest.err 1>&5
8492       fi
8493       $rm conftest*
8494       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8495 $as_echo "$archive_cmds_need_lc" >&6; }
8496       ;;
8497     esac
8498   fi
8499   ;;
8500 esac
8501
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8503 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8504 library_names_spec=
8505 libname_spec='lib$name'
8506 soname_spec=
8507 shrext_cmds=".so"
8508 postinstall_cmds=
8509 postuninstall_cmds=
8510 finish_cmds=
8511 finish_eval=
8512 shlibpath_var=
8513 shlibpath_overrides_runpath=unknown
8514 version_type=none
8515 dynamic_linker="$host_os ld.so"
8516 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8517 if test "$GCC" = yes; then
8518   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8519   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8520     # if the path contains ";" then we assume it to be the separator
8521     # otherwise default to the standard path separator (i.e. ":") - it is
8522     # assumed that no part of a normal pathname contains ";" but that should
8523     # okay in the real world where ";" in dirpaths is itself problematic.
8524     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8525   else
8526     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8527   fi
8528 else
8529   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8530 fi
8531 need_lib_prefix=unknown
8532 hardcode_into_libs=no
8533
8534 # when you set need_version to no, make sure it does not cause -set_version
8535 # flags to be left without arguments
8536 need_version=unknown
8537
8538 case $host_os in
8539 aix3*)
8540   version_type=linux
8541   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8542   shlibpath_var=LIBPATH
8543
8544   # AIX 3 has no versioning support, so we append a major version to the name.
8545   soname_spec='${libname}${release}${shared_ext}$major'
8546   ;;
8547
8548 aix4* | aix5*)
8549   version_type=linux
8550   need_lib_prefix=no
8551   need_version=no
8552   hardcode_into_libs=yes
8553   if test "$host_cpu" = ia64; then
8554     # AIX 5 supports IA64
8555     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8556     shlibpath_var=LD_LIBRARY_PATH
8557   else
8558     # With GCC up to 2.95.x, collect2 would create an import file
8559     # for dependence libraries.  The import file would start with
8560     # the line `#! .'.  This would cause the generated library to
8561     # depend on `.', always an invalid library.  This was fixed in
8562     # development snapshots of GCC prior to 3.0.
8563     case $host_os in
8564       aix4 | aix4.[01] | aix4.[01].*)
8565       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8566            echo ' yes '
8567            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8568         :
8569       else
8570         can_build_shared=no
8571       fi
8572       ;;
8573     esac
8574     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8575     # soname into executable. Probably we can add versioning support to
8576     # collect2, so additional links can be useful in future.
8577     if test "$aix_use_runtimelinking" = yes; then
8578       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8579       # instead of lib<name>.a to let people know that these are not
8580       # typical AIX shared libraries.
8581       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8582     else
8583       # We preserve .a as extension for shared libraries through AIX4.2
8584       # and later when we are not doing run time linking.
8585       library_names_spec='${libname}${release}.a $libname.a'
8586       soname_spec='${libname}${release}${shared_ext}$major'
8587     fi
8588     shlibpath_var=LIBPATH
8589   fi
8590   ;;
8591
8592 amigaos*)
8593   library_names_spec='$libname.ixlibrary $libname.a'
8594   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8595   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8596   ;;
8597
8598 beos*)
8599   library_names_spec='${libname}${shared_ext}'
8600   dynamic_linker="$host_os ld.so"
8601   shlibpath_var=LIBRARY_PATH
8602   ;;
8603
8604 bsdi[45]*)
8605   version_type=linux
8606   need_version=no
8607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608   soname_spec='${libname}${release}${shared_ext}$major'
8609   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8610   shlibpath_var=LD_LIBRARY_PATH
8611   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8612   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8613   # the default ld.so.conf also contains /usr/contrib/lib and
8614   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8615   # libtool to hard-code these into programs
8616   ;;
8617
8618 cygwin* | mingw* | pw32*)
8619   version_type=windows
8620   shrext_cmds=".dll"
8621   need_version=no
8622   need_lib_prefix=no
8623
8624   case $GCC,$host_os in
8625   yes,cygwin* | yes,mingw* | yes,pw32*)
8626     library_names_spec='$libname.dll.a'
8627     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8628     postinstall_cmds='base_file=`basename \${file}`~
8629       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8630       dldir=$destdir/`dirname \$dlpath`~
8631       test -d \$dldir || mkdir -p \$dldir~
8632       $install_prog $dir/$dlname \$dldir/$dlname~
8633       chmod a+x \$dldir/$dlname'
8634     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8635       dlpath=$dir/\$dldll~
8636        $rm \$dlpath'
8637     shlibpath_overrides_runpath=yes
8638
8639     case $host_os in
8640     cygwin*)
8641       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8642       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8643       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8644       ;;
8645     mingw*)
8646       # MinGW DLLs use traditional 'lib' prefix
8647       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8648       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8649       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8650         # It is most probably a Windows format PATH printed by
8651         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8652         # path with ; separators, and with drive letters. We can handle the
8653         # drive letters (cygwin fileutils understands them), so leave them,
8654         # especially as we might pass files found there to a mingw objdump,
8655         # which wouldn't understand a cygwinified path. Ahh.
8656         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8657       else
8658         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8659       fi
8660       ;;
8661     pw32*)
8662       # pw32 DLLs use 'pw' prefix rather than 'lib'
8663       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8664       ;;
8665     esac
8666     ;;
8667
8668   *)
8669     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8670     ;;
8671   esac
8672   dynamic_linker='Win32 ld.exe'
8673   # FIXME: first we should search . and the directory the executable is in
8674   shlibpath_var=PATH
8675   ;;
8676
8677 darwin* | rhapsody*)
8678   dynamic_linker="$host_os dyld"
8679   version_type=darwin
8680   need_lib_prefix=no
8681   need_version=no
8682   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8683   soname_spec='${libname}${release}${major}$shared_ext'
8684   shlibpath_overrides_runpath=yes
8685   shlibpath_var=DYLD_LIBRARY_PATH
8686   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8687   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8688   if test "$GCC" = yes; then
8689     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8690   else
8691     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8692   fi
8693   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8694   ;;
8695
8696 dgux*)
8697   version_type=linux
8698   need_lib_prefix=no
8699   need_version=no
8700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8701   soname_spec='${libname}${release}${shared_ext}$major'
8702   shlibpath_var=LD_LIBRARY_PATH
8703   ;;
8704
8705 freebsd1*)
8706   dynamic_linker=no
8707   ;;
8708
8709 kfreebsd*-gnu)
8710   version_type=linux
8711   need_lib_prefix=no
8712   need_version=no
8713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8714   soname_spec='${libname}${release}${shared_ext}$major'
8715   shlibpath_var=LD_LIBRARY_PATH
8716   shlibpath_overrides_runpath=no
8717   hardcode_into_libs=yes
8718   dynamic_linker='GNU ld.so'
8719   ;;
8720
8721 freebsd* | dragonfly*)
8722   # DragonFly does not have aout.  When/if they implement a new
8723   # versioning mechanism, adjust this.
8724   if test -x /usr/bin/objformat; then
8725     objformat=`/usr/bin/objformat`
8726   else
8727     case $host_os in
8728     freebsd[123]*) objformat=aout ;;
8729     *) objformat=elf ;;
8730     esac
8731   fi
8732   version_type=freebsd-$objformat
8733   case $version_type in
8734     freebsd-elf*)
8735       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8736       need_version=no
8737       need_lib_prefix=no
8738       ;;
8739     freebsd-*)
8740       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8741       need_version=yes
8742       ;;
8743   esac
8744   shlibpath_var=LD_LIBRARY_PATH
8745   case $host_os in
8746   freebsd2*)
8747     shlibpath_overrides_runpath=yes
8748     ;;
8749   freebsd3.[01]* | freebsdelf3.[01]*)
8750     shlibpath_overrides_runpath=yes
8751     hardcode_into_libs=yes
8752     ;;
8753   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8754   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8755     shlibpath_overrides_runpath=no
8756     hardcode_into_libs=yes
8757     ;;
8758   freebsd*) # from 4.6 on
8759     shlibpath_overrides_runpath=yes
8760     hardcode_into_libs=yes
8761     ;;
8762   esac
8763   ;;
8764
8765 gnu*)
8766   version_type=linux
8767   need_lib_prefix=no
8768   need_version=no
8769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8770   soname_spec='${libname}${release}${shared_ext}$major'
8771   shlibpath_var=LD_LIBRARY_PATH
8772   hardcode_into_libs=yes
8773   ;;
8774
8775 hpux9* | hpux10* | hpux11*)
8776   # Give a soname corresponding to the major version so that dld.sl refuses to
8777   # link against other versions.
8778   version_type=sunos
8779   need_lib_prefix=no
8780   need_version=no
8781   case $host_cpu in
8782   ia64*)
8783     shrext_cmds='.so'
8784     hardcode_into_libs=yes
8785     dynamic_linker="$host_os dld.so"
8786     shlibpath_var=LD_LIBRARY_PATH
8787     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8789     soname_spec='${libname}${release}${shared_ext}$major'
8790     if test "X$HPUX_IA64_MODE" = X32; then
8791       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8792     else
8793       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8794     fi
8795     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8796     ;;
8797    hppa*64*)
8798      shrext_cmds='.sl'
8799      hardcode_into_libs=yes
8800      dynamic_linker="$host_os dld.sl"
8801      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8802      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8803      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804      soname_spec='${libname}${release}${shared_ext}$major'
8805      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8806      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8807      ;;
8808    *)
8809     shrext_cmds='.sl'
8810     dynamic_linker="$host_os dld.sl"
8811     shlibpath_var=SHLIB_PATH
8812     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814     soname_spec='${libname}${release}${shared_ext}$major'
8815     ;;
8816   esac
8817   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8818   postinstall_cmds='chmod 555 $lib'
8819   ;;
8820
8821 interix3*)
8822   version_type=linux
8823   need_lib_prefix=no
8824   need_version=no
8825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8826   soname_spec='${libname}${release}${shared_ext}$major'
8827   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8828   shlibpath_var=LD_LIBRARY_PATH
8829   shlibpath_overrides_runpath=no
8830   hardcode_into_libs=yes
8831   ;;
8832
8833 irix5* | irix6* | nonstopux*)
8834   case $host_os in
8835     nonstopux*) version_type=nonstopux ;;
8836     *)
8837         if test "$lt_cv_prog_gnu_ld" = yes; then
8838                 version_type=linux
8839         else
8840                 version_type=irix
8841         fi ;;
8842   esac
8843   need_lib_prefix=no
8844   need_version=no
8845   soname_spec='${libname}${release}${shared_ext}$major'
8846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8847   case $host_os in
8848   irix5* | nonstopux*)
8849     libsuff= shlibsuff=
8850     ;;
8851   *)
8852     case $LD in # libtool.m4 will add one of these switches to LD
8853     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8854       libsuff= shlibsuff= libmagic=32-bit;;
8855     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8856       libsuff=32 shlibsuff=N32 libmagic=N32;;
8857     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8858       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8859     *) libsuff= shlibsuff= libmagic=never-match;;
8860     esac
8861     ;;
8862   esac
8863   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8864   shlibpath_overrides_runpath=no
8865   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8866   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8867   hardcode_into_libs=yes
8868   ;;
8869
8870 # No shared lib support for Linux oldld, aout, or coff.
8871 linux*oldld* | linux*aout* | linux*coff*)
8872   dynamic_linker=no
8873   ;;
8874
8875 # This must be Linux ELF.
8876 linux*)
8877   version_type=linux
8878   need_lib_prefix=no
8879   need_version=no
8880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881   soname_spec='${libname}${release}${shared_ext}$major'
8882   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8883   shlibpath_var=LD_LIBRARY_PATH
8884   shlibpath_overrides_runpath=no
8885   # This implies no fast_install, which is unacceptable.
8886   # Some rework will be needed to allow for fast_install
8887   # before this can be enabled.
8888   hardcode_into_libs=yes
8889
8890   # Append ld.so.conf contents to the search path
8891   if test -f /etc/ld.so.conf; then
8892     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8893     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8894   fi
8895
8896   # We used to test for /lib/ld.so.1 and disable shared libraries on
8897   # powerpc, because MkLinux only supported shared libraries with the
8898   # GNU dynamic linker.  Since this was broken with cross compilers,
8899   # most powerpc-linux boxes support dynamic linking these days and
8900   # people can always --disable-shared, the test was removed, and we
8901   # assume the GNU/Linux dynamic linker is in use.
8902   dynamic_linker='GNU/Linux ld.so'
8903   ;;
8904
8905 knetbsd*-gnu)
8906   version_type=linux
8907   need_lib_prefix=no
8908   need_version=no
8909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8910   soname_spec='${libname}${release}${shared_ext}$major'
8911   shlibpath_var=LD_LIBRARY_PATH
8912   shlibpath_overrides_runpath=no
8913   hardcode_into_libs=yes
8914   dynamic_linker='GNU ld.so'
8915   ;;
8916
8917 netbsd*)
8918   version_type=sunos
8919   need_lib_prefix=no
8920   need_version=no
8921   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8923     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8924     dynamic_linker='NetBSD (a.out) ld.so'
8925   else
8926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927     soname_spec='${libname}${release}${shared_ext}$major'
8928     dynamic_linker='NetBSD ld.elf_so'
8929   fi
8930   shlibpath_var=LD_LIBRARY_PATH
8931   shlibpath_overrides_runpath=yes
8932   hardcode_into_libs=yes
8933   ;;
8934
8935 newsos6)
8936   version_type=linux
8937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938   shlibpath_var=LD_LIBRARY_PATH
8939   shlibpath_overrides_runpath=yes
8940   ;;
8941
8942 nto-qnx*)
8943   version_type=linux
8944   need_lib_prefix=no
8945   need_version=no
8946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947   soname_spec='${libname}${release}${shared_ext}$major'
8948   shlibpath_var=LD_LIBRARY_PATH
8949   shlibpath_overrides_runpath=yes
8950   ;;
8951
8952 openbsd*)
8953   version_type=sunos
8954   sys_lib_dlsearch_path_spec="/usr/lib"
8955   need_lib_prefix=no
8956   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8957   case $host_os in
8958     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8959     *)                         need_version=no  ;;
8960   esac
8961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8962   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8963   shlibpath_var=LD_LIBRARY_PATH
8964   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8965     case $host_os in
8966       openbsd2.[89] | openbsd2.[89].*)
8967         shlibpath_overrides_runpath=no
8968         ;;
8969       *)
8970         shlibpath_overrides_runpath=yes
8971         ;;
8972       esac
8973   else
8974     shlibpath_overrides_runpath=yes
8975   fi
8976   ;;
8977
8978 os2*)
8979   libname_spec='$name'
8980   shrext_cmds=".dll"
8981   need_lib_prefix=no
8982   library_names_spec='$libname${shared_ext} $libname.a'
8983   dynamic_linker='OS/2 ld.exe'
8984   shlibpath_var=LIBPATH
8985   ;;
8986
8987 osf3* | osf4* | osf5*)
8988   version_type=osf
8989   need_lib_prefix=no
8990   need_version=no
8991   soname_spec='${libname}${release}${shared_ext}$major'
8992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993   shlibpath_var=LD_LIBRARY_PATH
8994   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8995   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8996   ;;
8997
8998 solaris*)
8999   version_type=linux
9000   need_lib_prefix=no
9001   need_version=no
9002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003   soname_spec='${libname}${release}${shared_ext}$major'
9004   shlibpath_var=LD_LIBRARY_PATH
9005   shlibpath_overrides_runpath=yes
9006   hardcode_into_libs=yes
9007   # ldd complains unless libraries are executable
9008   postinstall_cmds='chmod +x $lib'
9009   ;;
9010
9011 sunos4*)
9012   version_type=sunos
9013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9014   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9015   shlibpath_var=LD_LIBRARY_PATH
9016   shlibpath_overrides_runpath=yes
9017   if test "$with_gnu_ld" = yes; then
9018     need_lib_prefix=no
9019   fi
9020   need_version=yes
9021   ;;
9022
9023 sysv4 | sysv4.3*)
9024   version_type=linux
9025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026   soname_spec='${libname}${release}${shared_ext}$major'
9027   shlibpath_var=LD_LIBRARY_PATH
9028   case $host_vendor in
9029     sni)
9030       shlibpath_overrides_runpath=no
9031       need_lib_prefix=no
9032       export_dynamic_flag_spec='${wl}-Blargedynsym'
9033       runpath_var=LD_RUN_PATH
9034       ;;
9035     siemens)
9036       need_lib_prefix=no
9037       ;;
9038     motorola)
9039       need_lib_prefix=no
9040       need_version=no
9041       shlibpath_overrides_runpath=no
9042       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9043       ;;
9044   esac
9045   ;;
9046
9047 sysv4*MP*)
9048   if test -d /usr/nec ;then
9049     version_type=linux
9050     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9051     soname_spec='$libname${shared_ext}.$major'
9052     shlibpath_var=LD_LIBRARY_PATH
9053   fi
9054   ;;
9055
9056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9057   version_type=freebsd-elf
9058   need_lib_prefix=no
9059   need_version=no
9060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9061   soname_spec='${libname}${release}${shared_ext}$major'
9062   shlibpath_var=LD_LIBRARY_PATH
9063   hardcode_into_libs=yes
9064   if test "$with_gnu_ld" = yes; then
9065     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9066     shlibpath_overrides_runpath=no
9067   else
9068     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9069     shlibpath_overrides_runpath=yes
9070     case $host_os in
9071       sco3.2v5*)
9072         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9073         ;;
9074     esac
9075   fi
9076   sys_lib_dlsearch_path_spec='/usr/lib'
9077   ;;
9078
9079 uts4*)
9080   version_type=linux
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082   soname_spec='${libname}${release}${shared_ext}$major'
9083   shlibpath_var=LD_LIBRARY_PATH
9084   ;;
9085
9086 *)
9087   dynamic_linker=no
9088   ;;
9089 esac
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9091 $as_echo "$dynamic_linker" >&6; }
9092 test "$dynamic_linker" = no && can_build_shared=no
9093
9094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9095 if test "$GCC" = yes; then
9096   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9097 fi
9098
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9100 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9101 hardcode_action=
9102 if test -n "$hardcode_libdir_flag_spec" || \
9103    test -n "$runpath_var" || \
9104    test "X$hardcode_automatic" = "Xyes" ; then
9105
9106   # We can hardcode non-existant directories.
9107   if test "$hardcode_direct" != no &&
9108      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9109      # have to relink, otherwise we might link with an installed library
9110      # when we should be linking with a yet-to-be-installed one
9111      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9112      test "$hardcode_minus_L" != no; then
9113     # Linking always hardcodes the temporary library directory.
9114     hardcode_action=relink
9115   else
9116     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9117     hardcode_action=immediate
9118   fi
9119 else
9120   # We cannot hardcode anything, or else we can only hardcode existing
9121   # directories.
9122   hardcode_action=unsupported
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9125 $as_echo "$hardcode_action" >&6; }
9126
9127 if test "$hardcode_action" = relink; then
9128   # Fast installation is not supported
9129   enable_fast_install=no
9130 elif test "$shlibpath_overrides_runpath" = yes ||
9131      test "$enable_shared" = no; then
9132   # Fast installation is not necessary
9133   enable_fast_install=needless
9134 fi
9135
9136 striplib=
9137 old_striplib=
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9139 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9140 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9141   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9142   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9144 $as_echo "yes" >&6; }
9145 else
9146 # FIXME - insert some real tests, host_os isn't really good enough
9147   case $host_os in
9148    darwin*)
9149        if test -n "$STRIP" ; then
9150          striplib="$STRIP -x"
9151          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9152 $as_echo "yes" >&6; }
9153        else
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9156 fi
9157        ;;
9158    *)
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9161     ;;
9162   esac
9163 fi
9164
9165 if test "x$enable_dlopen" != xyes; then
9166   enable_dlopen=unknown
9167   enable_dlopen_self=unknown
9168   enable_dlopen_self_static=unknown
9169 else
9170   lt_cv_dlopen=no
9171   lt_cv_dlopen_libs=
9172
9173   case $host_os in
9174   beos*)
9175     lt_cv_dlopen="load_add_on"
9176     lt_cv_dlopen_libs=
9177     lt_cv_dlopen_self=yes
9178     ;;
9179
9180   mingw* | pw32*)
9181     lt_cv_dlopen="LoadLibrary"
9182     lt_cv_dlopen_libs=
9183    ;;
9184
9185   cygwin*)
9186     lt_cv_dlopen="dlopen"
9187     lt_cv_dlopen_libs=
9188    ;;
9189
9190   darwin*)
9191   # if libdl is installed we need to link against it
9192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9193 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9194 if ${ac_cv_lib_dl_dlopen+:} false; then :
9195   $as_echo_n "(cached) " >&6
9196 else
9197   ac_check_lib_save_LIBS=$LIBS
9198 LIBS="-ldl  $LIBS"
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h.  */
9201
9202 /* Override any GCC internal prototype to avoid an error.
9203    Use char because int might match the return type of a GCC
9204    builtin and then its argument prototype would still apply.  */
9205 #ifdef __cplusplus
9206 extern "C"
9207 #endif
9208 char dlopen ();
9209 int
9210 main ()
9211 {
9212 return dlopen ();
9213   ;
9214   return 0;
9215 }
9216 _ACEOF
9217 if ac_fn_c_try_link "$LINENO"; then :
9218   ac_cv_lib_dl_dlopen=yes
9219 else
9220   ac_cv_lib_dl_dlopen=no
9221 fi
9222 rm -f core conftest.err conftest.$ac_objext \
9223     conftest$ac_exeext conftest.$ac_ext
9224 LIBS=$ac_check_lib_save_LIBS
9225 fi
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9227 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9228 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9229   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9230 else
9231
9232     lt_cv_dlopen="dyld"
9233     lt_cv_dlopen_libs=
9234     lt_cv_dlopen_self=yes
9235
9236 fi
9237
9238    ;;
9239
9240   *)
9241     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9242 if test "x$ac_cv_func_shl_load" = xyes; then :
9243   lt_cv_dlopen="shl_load"
9244 else
9245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9246 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9247 if ${ac_cv_lib_dld_shl_load+:} false; then :
9248   $as_echo_n "(cached) " >&6
9249 else
9250   ac_check_lib_save_LIBS=$LIBS
9251 LIBS="-ldld  $LIBS"
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h.  */
9254
9255 /* Override any GCC internal prototype to avoid an error.
9256    Use char because int might match the return type of a GCC
9257    builtin and then its argument prototype would still apply.  */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 char shl_load ();
9262 int
9263 main ()
9264 {
9265 return shl_load ();
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 if ac_fn_c_try_link "$LINENO"; then :
9271   ac_cv_lib_dld_shl_load=yes
9272 else
9273   ac_cv_lib_dld_shl_load=no
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext \
9276     conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9278 fi
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9280 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9281 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9282   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9283 else
9284   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9285 if test "x$ac_cv_func_dlopen" = xyes; then :
9286   lt_cv_dlopen="dlopen"
9287 else
9288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9289 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9290 if ${ac_cv_lib_dl_dlopen+:} false; then :
9291   $as_echo_n "(cached) " >&6
9292 else
9293   ac_check_lib_save_LIBS=$LIBS
9294 LIBS="-ldl  $LIBS"
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h.  */
9297
9298 /* Override any GCC internal prototype to avoid an error.
9299    Use char because int might match the return type of a GCC
9300    builtin and then its argument prototype would still apply.  */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 char dlopen ();
9305 int
9306 main ()
9307 {
9308 return dlopen ();
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314   ac_cv_lib_dl_dlopen=yes
9315 else
9316   ac_cv_lib_dl_dlopen=no
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext \
9319     conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9321 fi
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9323 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9324 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9325   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9326 else
9327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9328 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9329 if ${ac_cv_lib_svld_dlopen+:} false; then :
9330   $as_echo_n "(cached) " >&6
9331 else
9332   ac_check_lib_save_LIBS=$LIBS
9333 LIBS="-lsvld  $LIBS"
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h.  */
9336
9337 /* Override any GCC internal prototype to avoid an error.
9338    Use char because int might match the return type of a GCC
9339    builtin and then its argument prototype would still apply.  */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 char dlopen ();
9344 int
9345 main ()
9346 {
9347 return dlopen ();
9348   ;
9349   return 0;
9350 }
9351 _ACEOF
9352 if ac_fn_c_try_link "$LINENO"; then :
9353   ac_cv_lib_svld_dlopen=yes
9354 else
9355   ac_cv_lib_svld_dlopen=no
9356 fi
9357 rm -f core conftest.err conftest.$ac_objext \
9358     conftest$ac_exeext conftest.$ac_ext
9359 LIBS=$ac_check_lib_save_LIBS
9360 fi
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9362 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9363 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9364   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9365 else
9366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9367 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9368 if ${ac_cv_lib_dld_dld_link+:} false; then :
9369   $as_echo_n "(cached) " >&6
9370 else
9371   ac_check_lib_save_LIBS=$LIBS
9372 LIBS="-ldld  $LIBS"
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h.  */
9375
9376 /* Override any GCC internal prototype to avoid an error.
9377    Use char because int might match the return type of a GCC
9378    builtin and then its argument prototype would still apply.  */
9379 #ifdef __cplusplus
9380 extern "C"
9381 #endif
9382 char dld_link ();
9383 int
9384 main ()
9385 {
9386 return dld_link ();
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 if ac_fn_c_try_link "$LINENO"; then :
9392   ac_cv_lib_dld_dld_link=yes
9393 else
9394   ac_cv_lib_dld_dld_link=no
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext \
9397     conftest$ac_exeext conftest.$ac_ext
9398 LIBS=$ac_check_lib_save_LIBS
9399 fi
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9401 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9402 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9403   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9404 fi
9405
9406
9407 fi
9408
9409
9410 fi
9411
9412
9413 fi
9414
9415
9416 fi
9417
9418
9419 fi
9420
9421     ;;
9422   esac
9423
9424   if test "x$lt_cv_dlopen" != xno; then
9425     enable_dlopen=yes
9426   else
9427     enable_dlopen=no
9428   fi
9429
9430   case $lt_cv_dlopen in
9431   dlopen)
9432     save_CPPFLAGS="$CPPFLAGS"
9433     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9434
9435     save_LDFLAGS="$LDFLAGS"
9436     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9437
9438     save_LIBS="$LIBS"
9439     LIBS="$lt_cv_dlopen_libs $LIBS"
9440
9441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9442 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9443 if ${lt_cv_dlopen_self+:} false; then :
9444   $as_echo_n "(cached) " >&6
9445 else
9446           if test "$cross_compiling" = yes; then :
9447   lt_cv_dlopen_self=cross
9448 else
9449   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9450   lt_status=$lt_dlunknown
9451   cat > conftest.$ac_ext <<EOF
9452 #line 9452 "configure"
9453 #include "confdefs.h"
9454
9455 #if HAVE_DLFCN_H
9456 #include <dlfcn.h>
9457 #endif
9458
9459 #include <stdio.h>
9460
9461 #ifdef RTLD_GLOBAL
9462 #  define LT_DLGLOBAL           RTLD_GLOBAL
9463 #else
9464 #  ifdef DL_GLOBAL
9465 #    define LT_DLGLOBAL         DL_GLOBAL
9466 #  else
9467 #    define LT_DLGLOBAL         0
9468 #  endif
9469 #endif
9470
9471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9472    find out it does not work in some platform. */
9473 #ifndef LT_DLLAZY_OR_NOW
9474 #  ifdef RTLD_LAZY
9475 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9476 #  else
9477 #    ifdef DL_LAZY
9478 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9479 #    else
9480 #      ifdef RTLD_NOW
9481 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9482 #      else
9483 #        ifdef DL_NOW
9484 #          define LT_DLLAZY_OR_NOW      DL_NOW
9485 #        else
9486 #          define LT_DLLAZY_OR_NOW      0
9487 #        endif
9488 #      endif
9489 #    endif
9490 #  endif
9491 #endif
9492
9493 #ifdef __cplusplus
9494 extern "C" void exit (int);
9495 #endif
9496
9497 void fnord() { int i=42;}
9498 int main ()
9499 {
9500   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9501   int status = $lt_dlunknown;
9502
9503   if (self)
9504     {
9505       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9506       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9507       /* dlclose (self); */
9508     }
9509   else
9510     puts (dlerror ());
9511
9512     exit (status);
9513 }
9514 EOF
9515   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9516   (eval $ac_link) 2>&5
9517   ac_status=$?
9518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9519   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9520     (./conftest; exit; ) >&5 2>/dev/null
9521     lt_status=$?
9522     case x$lt_status in
9523       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9524       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9525       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9526     esac
9527   else :
9528     # compilation failed
9529     lt_cv_dlopen_self=no
9530   fi
9531 fi
9532 rm -fr conftest*
9533
9534
9535 fi
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9537 $as_echo "$lt_cv_dlopen_self" >&6; }
9538
9539     if test "x$lt_cv_dlopen_self" = xyes; then
9540       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9541       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9542 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9543 if ${lt_cv_dlopen_self_static+:} false; then :
9544   $as_echo_n "(cached) " >&6
9545 else
9546           if test "$cross_compiling" = yes; then :
9547   lt_cv_dlopen_self_static=cross
9548 else
9549   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9550   lt_status=$lt_dlunknown
9551   cat > conftest.$ac_ext <<EOF
9552 #line 9552 "configure"
9553 #include "confdefs.h"
9554
9555 #if HAVE_DLFCN_H
9556 #include <dlfcn.h>
9557 #endif
9558
9559 #include <stdio.h>
9560
9561 #ifdef RTLD_GLOBAL
9562 #  define LT_DLGLOBAL           RTLD_GLOBAL
9563 #else
9564 #  ifdef DL_GLOBAL
9565 #    define LT_DLGLOBAL         DL_GLOBAL
9566 #  else
9567 #    define LT_DLGLOBAL         0
9568 #  endif
9569 #endif
9570
9571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9572    find out it does not work in some platform. */
9573 #ifndef LT_DLLAZY_OR_NOW
9574 #  ifdef RTLD_LAZY
9575 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9576 #  else
9577 #    ifdef DL_LAZY
9578 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9579 #    else
9580 #      ifdef RTLD_NOW
9581 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9582 #      else
9583 #        ifdef DL_NOW
9584 #          define LT_DLLAZY_OR_NOW      DL_NOW
9585 #        else
9586 #          define LT_DLLAZY_OR_NOW      0
9587 #        endif
9588 #      endif
9589 #    endif
9590 #  endif
9591 #endif
9592
9593 #ifdef __cplusplus
9594 extern "C" void exit (int);
9595 #endif
9596
9597 void fnord() { int i=42;}
9598 int main ()
9599 {
9600   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9601   int status = $lt_dlunknown;
9602
9603   if (self)
9604     {
9605       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9606       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9607       /* dlclose (self); */
9608     }
9609   else
9610     puts (dlerror ());
9611
9612     exit (status);
9613 }
9614 EOF
9615   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9616   (eval $ac_link) 2>&5
9617   ac_status=$?
9618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9619   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9620     (./conftest; exit; ) >&5 2>/dev/null
9621     lt_status=$?
9622     case x$lt_status in
9623       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9624       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9625       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9626     esac
9627   else :
9628     # compilation failed
9629     lt_cv_dlopen_self_static=no
9630   fi
9631 fi
9632 rm -fr conftest*
9633
9634
9635 fi
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9637 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9638     fi
9639
9640     CPPFLAGS="$save_CPPFLAGS"
9641     LDFLAGS="$save_LDFLAGS"
9642     LIBS="$save_LIBS"
9643     ;;
9644   esac
9645
9646   case $lt_cv_dlopen_self in
9647   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9648   *) enable_dlopen_self=unknown ;;
9649   esac
9650
9651   case $lt_cv_dlopen_self_static in
9652   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9653   *) enable_dlopen_self_static=unknown ;;
9654   esac
9655 fi
9656
9657
9658 # Report which library types will actually be built
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9660 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9662 $as_echo "$can_build_shared" >&6; }
9663
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9665 $as_echo_n "checking whether to build shared libraries... " >&6; }
9666 test "$can_build_shared" = "no" && enable_shared=no
9667
9668 # On AIX, shared libraries and static libraries use the same namespace, and
9669 # are all built from PIC.
9670 case $host_os in
9671 aix3*)
9672   test "$enable_shared" = yes && enable_static=no
9673   if test -n "$RANLIB"; then
9674     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9675     postinstall_cmds='$RANLIB $lib'
9676   fi
9677   ;;
9678
9679 aix4* | aix5*)
9680   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9681     test "$enable_shared" = yes && enable_static=no
9682   fi
9683     ;;
9684 esac
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9686 $as_echo "$enable_shared" >&6; }
9687
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9689 $as_echo_n "checking whether to build static libraries... " >&6; }
9690 # Make sure either enable_shared or enable_static is yes.
9691 test "$enable_shared" = yes || enable_static=yes
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9693 $as_echo "$enable_static" >&6; }
9694
9695 # The else clause should only fire when bootstrapping the
9696 # libtool distribution, otherwise you forgot to ship ltmain.sh
9697 # with your package, and you will get complaints that there are
9698 # no rules to generate ltmain.sh.
9699 if test -f "$ltmain"; then
9700   # See if we are running on zsh, and set the options which allow our commands through
9701   # without removal of \ escapes.
9702   if test -n "${ZSH_VERSION+set}" ; then
9703     setopt NO_GLOB_SUBST
9704   fi
9705   # Now quote all the things that may contain metacharacters while being
9706   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9707   # variables and quote the copies for generation of the libtool script.
9708   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9709     SED SHELL STRIP \
9710     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9711     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9712     deplibs_check_method reload_flag reload_cmds need_locks \
9713     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9714     lt_cv_sys_global_symbol_to_c_name_address \
9715     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9716     old_postinstall_cmds old_postuninstall_cmds \
9717     compiler \
9718     CC \
9719     LD \
9720     lt_prog_compiler_wl \
9721     lt_prog_compiler_pic \
9722     lt_prog_compiler_static \
9723     lt_prog_compiler_no_builtin_flag \
9724     export_dynamic_flag_spec \
9725     thread_safe_flag_spec \
9726     whole_archive_flag_spec \
9727     enable_shared_with_static_runtimes \
9728     old_archive_cmds \
9729     old_archive_from_new_cmds \
9730     predep_objects \
9731     postdep_objects \
9732     predeps \
9733     postdeps \
9734     compiler_lib_search_path \
9735     archive_cmds \
9736     archive_expsym_cmds \
9737     postinstall_cmds \
9738     postuninstall_cmds \
9739     old_archive_from_expsyms_cmds \
9740     allow_undefined_flag \
9741     no_undefined_flag \
9742     export_symbols_cmds \
9743     hardcode_libdir_flag_spec \
9744     hardcode_libdir_flag_spec_ld \
9745     hardcode_libdir_separator \
9746     hardcode_automatic \
9747     module_cmds \
9748     module_expsym_cmds \
9749     lt_cv_prog_compiler_c_o \
9750     exclude_expsyms \
9751     include_expsyms; do
9752
9753     case $var in
9754     old_archive_cmds | \
9755     old_archive_from_new_cmds | \
9756     archive_cmds | \
9757     archive_expsym_cmds | \
9758     module_cmds | \
9759     module_expsym_cmds | \
9760     old_archive_from_expsyms_cmds | \
9761     export_symbols_cmds | \
9762     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9763     postinstall_cmds | postuninstall_cmds | \
9764     old_postinstall_cmds | old_postuninstall_cmds | \
9765     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9766       # Double-quote double-evaled strings.
9767       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9768       ;;
9769     *)
9770       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9771       ;;
9772     esac
9773   done
9774
9775   case $lt_echo in
9776   *'\$0 --fallback-echo"')
9777     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9778     ;;
9779   esac
9780
9781 cfgfile="${ofile}T"
9782   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9783   $rm -f "$cfgfile"
9784   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9785 $as_echo "$as_me: creating $ofile" >&6;}
9786
9787   cat <<__EOF__ >> "$cfgfile"
9788 #! $SHELL
9789
9790 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9791 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9792 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9793 #
9794 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9795 # Free Software Foundation, Inc.
9796 #
9797 # This file is part of GNU Libtool:
9798 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9799 #
9800 # This program is free software; you can redistribute it and/or modify
9801 # it under the terms of the GNU General Public License as published by
9802 # the Free Software Foundation; either version 2 of the License, or
9803 # (at your option) any later version.
9804 #
9805 # This program is distributed in the hope that it will be useful, but
9806 # WITHOUT ANY WARRANTY; without even the implied warranty of
9807 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9808 # General Public License for more details.
9809 #
9810 # You should have received a copy of the GNU General Public License
9811 # along with this program; if not, write to the Free Software
9812 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9813 #
9814 # As a special exception to the GNU General Public License, if you
9815 # distribute this file as part of a program that contains a
9816 # configuration script generated by Autoconf, you may include it under
9817 # the same distribution terms that you use for the rest of that program.
9818
9819 # A sed program that does not truncate output.
9820 SED=$lt_SED
9821
9822 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9823 Xsed="$SED -e 1s/^X//"
9824
9825 # The HP-UX ksh and POSIX shell print the target directory to stdout
9826 # if CDPATH is set.
9827 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9828
9829 # The names of the tagged configurations supported by this script.
9830 available_tags=
9831
9832 # ### BEGIN LIBTOOL CONFIG
9833
9834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9835
9836 # Shell to use when invoking shell scripts.
9837 SHELL=$lt_SHELL
9838
9839 # Whether or not to build shared libraries.
9840 build_libtool_libs=$enable_shared
9841
9842 # Whether or not to build static libraries.
9843 build_old_libs=$enable_static
9844
9845 # Whether or not to add -lc for building shared libraries.
9846 build_libtool_need_lc=$archive_cmds_need_lc
9847
9848 # Whether or not to disallow shared libs when runtime libs are static
9849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9850
9851 # Whether or not to optimize for fast installation.
9852 fast_install=$enable_fast_install
9853
9854 # The host system.
9855 host_alias=$host_alias
9856 host=$host
9857 host_os=$host_os
9858
9859 # The build system.
9860 build_alias=$build_alias
9861 build=$build
9862 build_os=$build_os
9863
9864 # An echo program that does not interpret backslashes.
9865 echo=$lt_echo
9866
9867 # The archiver.
9868 AR=$lt_AR
9869 AR_FLAGS=$lt_AR_FLAGS
9870
9871 # A C compiler.
9872 LTCC=$lt_LTCC
9873
9874 # LTCC compiler flags.
9875 LTCFLAGS=$lt_LTCFLAGS
9876
9877 # A language-specific compiler.
9878 CC=$lt_compiler
9879
9880 # Is the compiler the GNU C compiler?
9881 with_gcc=$GCC
9882
9883 # An ERE matcher.
9884 EGREP=$lt_EGREP
9885
9886 # The linker used to build libraries.
9887 LD=$lt_LD
9888
9889 # Whether we need hard or soft links.
9890 LN_S=$lt_LN_S
9891
9892 # A BSD-compatible nm program.
9893 NM=$lt_NM
9894
9895 # A symbol stripping program
9896 STRIP=$lt_STRIP
9897
9898 # Used to examine libraries when file_magic_cmd begins "file"
9899 MAGIC_CMD=$MAGIC_CMD
9900
9901 # Used on cygwin: DLL creation program.
9902 DLLTOOL="$DLLTOOL"
9903
9904 # Used on cygwin: object dumper.
9905 OBJDUMP="$OBJDUMP"
9906
9907 # Used on cygwin: assembler.
9908 AS="$AS"
9909
9910 # The name of the directory that contains temporary libtool files.
9911 objdir=$objdir
9912
9913 # How to create reloadable object files.
9914 reload_flag=$lt_reload_flag
9915 reload_cmds=$lt_reload_cmds
9916
9917 # How to pass a linker flag through the compiler.
9918 wl=$lt_lt_prog_compiler_wl
9919
9920 # Object file suffix (normally "o").
9921 objext="$ac_objext"
9922
9923 # Old archive suffix (normally "a").
9924 libext="$libext"
9925
9926 # Shared library suffix (normally ".so").
9927 shrext_cmds='$shrext_cmds'
9928
9929 # Executable file suffix (normally "").
9930 exeext="$exeext"
9931
9932 # Additional compiler flags for building library objects.
9933 pic_flag=$lt_lt_prog_compiler_pic
9934 pic_mode=$pic_mode
9935
9936 # What is the maximum length of a command?
9937 max_cmd_len=$lt_cv_sys_max_cmd_len
9938
9939 # Does compiler simultaneously support -c and -o options?
9940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9941
9942 # Must we lock files when doing compilation?
9943 need_locks=$lt_need_locks
9944
9945 # Do we need the lib prefix for modules?
9946 need_lib_prefix=$need_lib_prefix
9947
9948 # Do we need a version for libraries?
9949 need_version=$need_version
9950
9951 # Whether dlopen is supported.
9952 dlopen_support=$enable_dlopen
9953
9954 # Whether dlopen of programs is supported.
9955 dlopen_self=$enable_dlopen_self
9956
9957 # Whether dlopen of statically linked programs is supported.
9958 dlopen_self_static=$enable_dlopen_self_static
9959
9960 # Compiler flag to prevent dynamic linking.
9961 link_static_flag=$lt_lt_prog_compiler_static
9962
9963 # Compiler flag to turn off builtin functions.
9964 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9965
9966 # Compiler flag to allow reflexive dlopens.
9967 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9968
9969 # Compiler flag to generate shared objects directly from archives.
9970 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9971
9972 # Compiler flag to generate thread-safe objects.
9973 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9974
9975 # Library versioning type.
9976 version_type=$version_type
9977
9978 # Format of library name prefix.
9979 libname_spec=$lt_libname_spec
9980
9981 # List of archive names.  First name is the real one, the rest are links.
9982 # The last name is the one that the linker finds with -lNAME.
9983 library_names_spec=$lt_library_names_spec
9984
9985 # The coded name of the library, if different from the real name.
9986 soname_spec=$lt_soname_spec
9987
9988 # Commands used to build and install an old-style archive.
9989 RANLIB=$lt_RANLIB
9990 old_archive_cmds=$lt_old_archive_cmds
9991 old_postinstall_cmds=$lt_old_postinstall_cmds
9992 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9993
9994 # Create an old-style archive from a shared archive.
9995 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9996
9997 # Create a temporary old-style archive to link instead of a shared archive.
9998 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9999
10000 # Commands used to build and install a shared archive.
10001 archive_cmds=$lt_archive_cmds
10002 archive_expsym_cmds=$lt_archive_expsym_cmds
10003 postinstall_cmds=$lt_postinstall_cmds
10004 postuninstall_cmds=$lt_postuninstall_cmds
10005
10006 # Commands used to build a loadable module (assumed same as above if empty)
10007 module_cmds=$lt_module_cmds
10008 module_expsym_cmds=$lt_module_expsym_cmds
10009
10010 # Commands to strip libraries.
10011 old_striplib=$lt_old_striplib
10012 striplib=$lt_striplib
10013
10014 # Dependencies to place before the objects being linked to create a
10015 # shared library.
10016 predep_objects=$lt_predep_objects
10017
10018 # Dependencies to place after the objects being linked to create a
10019 # shared library.
10020 postdep_objects=$lt_postdep_objects
10021
10022 # Dependencies to place before the objects being linked to create a
10023 # shared library.
10024 predeps=$lt_predeps
10025
10026 # Dependencies to place after the objects being linked to create a
10027 # shared library.
10028 postdeps=$lt_postdeps
10029
10030 # The library search path used internally by the compiler when linking
10031 # a shared library.
10032 compiler_lib_search_path=$lt_compiler_lib_search_path
10033
10034 # Method to check whether dependent libraries are shared objects.
10035 deplibs_check_method=$lt_deplibs_check_method
10036
10037 # Command to use when deplibs_check_method == file_magic.
10038 file_magic_cmd=$lt_file_magic_cmd
10039
10040 # Flag that allows shared libraries with undefined symbols to be built.
10041 allow_undefined_flag=$lt_allow_undefined_flag
10042
10043 # Flag that forces no undefined symbols.
10044 no_undefined_flag=$lt_no_undefined_flag
10045
10046 # Commands used to finish a libtool library installation in a directory.
10047 finish_cmds=$lt_finish_cmds
10048
10049 # Same as above, but a single script fragment to be evaled but not shown.
10050 finish_eval=$lt_finish_eval
10051
10052 # Take the output of nm and produce a listing of raw symbols and C names.
10053 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10054
10055 # Transform the output of nm in a proper C declaration
10056 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10057
10058 # Transform the output of nm in a C name address pair
10059 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10060
10061 # This is the shared library runtime path variable.
10062 runpath_var=$runpath_var
10063
10064 # This is the shared library path variable.
10065 shlibpath_var=$shlibpath_var
10066
10067 # Is shlibpath searched before the hard-coded library search path?
10068 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10069
10070 # How to hardcode a shared library path into an executable.
10071 hardcode_action=$hardcode_action
10072
10073 # Whether we should hardcode library paths into libraries.
10074 hardcode_into_libs=$hardcode_into_libs
10075
10076 # Flag to hardcode \$libdir into a binary during linking.
10077 # This must work even if \$libdir does not exist.
10078 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10079
10080 # If ld is used when linking, flag to hardcode \$libdir into
10081 # a binary during linking. This must work even if \$libdir does
10082 # not exist.
10083 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10084
10085 # Whether we need a single -rpath flag with a separated argument.
10086 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10087
10088 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10089 # resulting binary.
10090 hardcode_direct=$hardcode_direct
10091
10092 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10093 # resulting binary.
10094 hardcode_minus_L=$hardcode_minus_L
10095
10096 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10097 # the resulting binary.
10098 hardcode_shlibpath_var=$hardcode_shlibpath_var
10099
10100 # Set to yes if building a shared library automatically hardcodes DIR into the library
10101 # and all subsequent libraries and executables linked against it.
10102 hardcode_automatic=$hardcode_automatic
10103
10104 # Variables whose values should be saved in libtool wrapper scripts and
10105 # restored at relink time.
10106 variables_saved_for_relink="$variables_saved_for_relink"
10107
10108 # Whether libtool must link a program against all its dependency libraries.
10109 link_all_deplibs=$link_all_deplibs
10110
10111 # Compile-time system search path for libraries
10112 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10113
10114 # Run-time system search path for libraries
10115 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10116
10117 # Fix the shell variable \$srcfile for the compiler.
10118 fix_srcfile_path="$fix_srcfile_path"
10119
10120 # Set to yes if exported symbols are required.
10121 always_export_symbols=$always_export_symbols
10122
10123 # The commands to list exported symbols.
10124 export_symbols_cmds=$lt_export_symbols_cmds
10125
10126 # The commands to extract the exported symbol list from a shared archive.
10127 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10128
10129 # Symbols that should not be listed in the preloaded symbols.
10130 exclude_expsyms=$lt_exclude_expsyms
10131
10132 # Symbols that must always be exported.
10133 include_expsyms=$lt_include_expsyms
10134
10135 # ### END LIBTOOL CONFIG
10136
10137 __EOF__
10138
10139
10140   case $host_os in
10141   aix3*)
10142     cat <<\EOF >> "$cfgfile"
10143
10144 # AIX sometimes has problems with the GCC collect2 program.  For some
10145 # reason, if we set the COLLECT_NAMES environment variable, the problems
10146 # vanish in a puff of smoke.
10147 if test "X${COLLECT_NAMES+set}" != Xset; then
10148   COLLECT_NAMES=
10149   export COLLECT_NAMES
10150 fi
10151 EOF
10152     ;;
10153   esac
10154
10155   # We use sed instead of cat because bash on DJGPP gets confused if
10156   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10157   # text mode, it properly converts lines to CR/LF.  This bash problem
10158   # is reportedly fixed, but why not run on old versions too?
10159   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10160
10161   mv -f "$cfgfile" "$ofile" || \
10162     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10163   chmod +x "$ofile"
10164
10165 else
10166   # If there is no Makefile yet, we rely on a make rule to execute
10167   # `config.status --recheck' to rerun these tests and create the
10168   # libtool script then.
10169   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10170   if test -f "$ltmain_in"; then
10171     test -f Makefile && make "$ltmain"
10172   fi
10173 fi
10174
10175
10176 ac_ext=c
10177 ac_cpp='$CPP $CPPFLAGS'
10178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10181
10182 CC="$lt_save_CC"
10183
10184
10185 # Check whether --with-tags was given.
10186 if test "${with_tags+set}" = set; then :
10187   withval=$with_tags; tagnames="$withval"
10188 fi
10189
10190
10191 if test -f "$ltmain" && test -n "$tagnames"; then
10192   if test ! -f "${ofile}"; then
10193     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10194 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10195   fi
10196
10197   if test -z "$LTCC"; then
10198     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10199     if test -z "$LTCC"; then
10200       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10201 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10202     else
10203       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10204 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10205     fi
10206   fi
10207   if test -z "$LTCFLAGS"; then
10208     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10209   fi
10210
10211   # Extract list of available tagged configurations in $ofile.
10212   # Note that this assumes the entire list is on one line.
10213   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10214
10215   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10216   for tagname in $tagnames; do
10217     IFS="$lt_save_ifs"
10218     # Check whether tagname contains only valid characters
10219     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10220     "") ;;
10221     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10222         ;;
10223     esac
10224
10225     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10226     then
10227       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10228     fi
10229
10230     # Update the list of available tags.
10231     if test -n "$tagname"; then
10232       echo appending configuration tag \"$tagname\" to $ofile
10233
10234       case $tagname in
10235       CXX)
10236         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10237             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10238             (test "X$CXX" != "Xg++"))) ; then
10239           ac_ext=cpp
10240 ac_cpp='$CXXCPP $CPPFLAGS'
10241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10244
10245
10246
10247
10248 archive_cmds_need_lc_CXX=no
10249 allow_undefined_flag_CXX=
10250 always_export_symbols_CXX=no
10251 archive_expsym_cmds_CXX=
10252 export_dynamic_flag_spec_CXX=
10253 hardcode_direct_CXX=no
10254 hardcode_libdir_flag_spec_CXX=
10255 hardcode_libdir_flag_spec_ld_CXX=
10256 hardcode_libdir_separator_CXX=
10257 hardcode_minus_L_CXX=no
10258 hardcode_shlibpath_var_CXX=unsupported
10259 hardcode_automatic_CXX=no
10260 module_cmds_CXX=
10261 module_expsym_cmds_CXX=
10262 link_all_deplibs_CXX=unknown
10263 old_archive_cmds_CXX=$old_archive_cmds
10264 no_undefined_flag_CXX=
10265 whole_archive_flag_spec_CXX=
10266 enable_shared_with_static_runtimes_CXX=no
10267
10268 # Dependencies to place before and after the object being linked:
10269 predep_objects_CXX=
10270 postdep_objects_CXX=
10271 predeps_CXX=
10272 postdeps_CXX=
10273 compiler_lib_search_path_CXX=
10274
10275 # Source file extension for C++ test sources.
10276 ac_ext=cpp
10277
10278 # Object file extension for compiled C++ test sources.
10279 objext=o
10280 objext_CXX=$objext
10281
10282 # Code to be used in simple compile tests
10283 lt_simple_compile_test_code="int some_variable = 0;\n"
10284
10285 # Code to be used in simple link tests
10286 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10287
10288 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10289
10290 # If no C compiler was specified, use CC.
10291 LTCC=${LTCC-"$CC"}
10292
10293 # If no C compiler flags were specified, use CFLAGS.
10294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10295
10296 # Allow CC to be a program name with arguments.
10297 compiler=$CC
10298
10299
10300 # save warnings/boilerplate of simple test code
10301 ac_outfile=conftest.$ac_objext
10302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10304 _lt_compiler_boilerplate=`cat conftest.err`
10305 $rm conftest*
10306
10307 ac_outfile=conftest.$ac_objext
10308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10310 _lt_linker_boilerplate=`cat conftest.err`
10311 $rm conftest*
10312
10313
10314 # Allow CC to be a program name with arguments.
10315 lt_save_CC=$CC
10316 lt_save_LD=$LD
10317 lt_save_GCC=$GCC
10318 GCC=$GXX
10319 lt_save_with_gnu_ld=$with_gnu_ld
10320 lt_save_path_LD=$lt_cv_path_LD
10321 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10322   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10323 else
10324   $as_unset lt_cv_prog_gnu_ld
10325 fi
10326 if test -n "${lt_cv_path_LDCXX+set}"; then
10327   lt_cv_path_LD=$lt_cv_path_LDCXX
10328 else
10329   $as_unset lt_cv_path_LD
10330 fi
10331 test -z "${LDCXX+set}" || LD=$LDCXX
10332 CC=${CXX-"c++"}
10333 compiler=$CC
10334 compiler_CXX=$CC
10335 for cc_temp in $compiler""; do
10336   case $cc_temp in
10337     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10338     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10339     \-*) ;;
10340     *) break;;
10341   esac
10342 done
10343 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10344
10345
10346 # We don't want -fno-exception wen compiling C++ code, so set the
10347 # no_builtin_flag separately
10348 if test "$GXX" = yes; then
10349   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10350 else
10351   lt_prog_compiler_no_builtin_flag_CXX=
10352 fi
10353
10354 if test "$GXX" = yes; then
10355   # Set up default GNU C++ configuration
10356
10357
10358 # Check whether --with-gnu-ld was given.
10359 if test "${with_gnu_ld+set}" = set; then :
10360   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10361 else
10362   with_gnu_ld=no
10363 fi
10364
10365 ac_prog=ld
10366 if test "$GCC" = yes; then
10367   # Check if gcc -print-prog-name=ld gives a path.
10368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10369 $as_echo_n "checking for ld used by $CC... " >&6; }
10370   case $host in
10371   *-*-mingw*)
10372     # gcc leaves a trailing carriage return which upsets mingw
10373     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10374   *)
10375     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10376   esac
10377   case $ac_prog in
10378     # Accept absolute paths.
10379     [\\/]* | ?:[\\/]*)
10380       re_direlt='/[^/][^/]*/\.\./'
10381       # Canonicalize the pathname of ld
10382       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10383       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10384         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10385       done
10386       test -z "$LD" && LD="$ac_prog"
10387       ;;
10388   "")
10389     # If it fails, then pretend we aren't using GCC.
10390     ac_prog=ld
10391     ;;
10392   *)
10393     # If it is relative, then search for the first ld in PATH.
10394     with_gnu_ld=unknown
10395     ;;
10396   esac
10397 elif test "$with_gnu_ld" = yes; then
10398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10399 $as_echo_n "checking for GNU ld... " >&6; }
10400 else
10401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10402 $as_echo_n "checking for non-GNU ld... " >&6; }
10403 fi
10404 if ${lt_cv_path_LD+:} false; then :
10405   $as_echo_n "(cached) " >&6
10406 else
10407   if test -z "$LD"; then
10408   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10409   for ac_dir in $PATH; do
10410     IFS="$lt_save_ifs"
10411     test -z "$ac_dir" && ac_dir=.
10412     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10413       lt_cv_path_LD="$ac_dir/$ac_prog"
10414       # Check to see if the program is GNU ld.  I'd rather use --version,
10415       # but apparently some variants of GNU ld only accept -v.
10416       # Break only if it was the GNU/non-GNU ld that we prefer.
10417       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10418       *GNU* | *'with BFD'*)
10419         test "$with_gnu_ld" != no && break
10420         ;;
10421       *)
10422         test "$with_gnu_ld" != yes && break
10423         ;;
10424       esac
10425     fi
10426   done
10427   IFS="$lt_save_ifs"
10428 else
10429   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10430 fi
10431 fi
10432
10433 LD="$lt_cv_path_LD"
10434 if test -n "$LD"; then
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10436 $as_echo "$LD" >&6; }
10437 else
10438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; }
10440 fi
10441 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10443 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10444 if ${lt_cv_prog_gnu_ld+:} false; then :
10445   $as_echo_n "(cached) " >&6
10446 else
10447   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10448 case `$LD -v 2>&1 </dev/null` in
10449 *GNU* | *'with BFD'*)
10450   lt_cv_prog_gnu_ld=yes
10451   ;;
10452 *)
10453   lt_cv_prog_gnu_ld=no
10454   ;;
10455 esac
10456 fi
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10458 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10459 with_gnu_ld=$lt_cv_prog_gnu_ld
10460
10461
10462
10463   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10464   # archiving commands below assume that GNU ld is being used.
10465   if test "$with_gnu_ld" = yes; then
10466     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10467     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10468
10469     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10470     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10471
10472     # If archive_cmds runs LD, not CC, wlarc should be empty
10473     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10474     #     investigate it a little bit more. (MM)
10475     wlarc='${wl}'
10476
10477     # ancient GNU ld didn't support --whole-archive et. al.
10478     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10479         grep 'no-whole-archive' > /dev/null; then
10480       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10481     else
10482       whole_archive_flag_spec_CXX=
10483     fi
10484   else
10485     with_gnu_ld=no
10486     wlarc=
10487
10488     # A generic and very simple default shared library creation
10489     # command for GNU C++ for the case where it uses the native
10490     # linker, instead of GNU ld.  If possible, this setting should
10491     # overridden to take advantage of the native linker features on
10492     # the platform it is being used on.
10493     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10494   fi
10495
10496   # Commands to make compiler produce verbose output that lists
10497   # what "hidden" libraries, object files and flags are used when
10498   # linking a shared library.
10499   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10500
10501 else
10502   GXX=no
10503   with_gnu_ld=no
10504   wlarc=
10505 fi
10506
10507 # PORTME: fill in a description of your system's C++ link characteristics
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10509 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10510 ld_shlibs_CXX=yes
10511 case $host_os in
10512   aix3*)
10513     # FIXME: insert proper C++ library support
10514     ld_shlibs_CXX=no
10515     ;;
10516   aix4* | aix5*)
10517     if test "$host_cpu" = ia64; then
10518       # On IA64, the linker does run time linking by default, so we don't
10519       # have to do anything special.
10520       aix_use_runtimelinking=no
10521       exp_sym_flag='-Bexport'
10522       no_entry_flag=""
10523     else
10524       aix_use_runtimelinking=no
10525
10526       # Test if we are trying to use run time linking or normal
10527       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10528       # need to do runtime linking.
10529       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10530         for ld_flag in $LDFLAGS; do
10531           case $ld_flag in
10532           *-brtl*)
10533             aix_use_runtimelinking=yes
10534             break
10535             ;;
10536           esac
10537         done
10538         ;;
10539       esac
10540
10541       exp_sym_flag='-bexport'
10542       no_entry_flag='-bnoentry'
10543     fi
10544
10545     # When large executables or shared objects are built, AIX ld can
10546     # have problems creating the table of contents.  If linking a library
10547     # or program results in "error TOC overflow" add -mminimal-toc to
10548     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10549     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10550
10551     archive_cmds_CXX=''
10552     hardcode_direct_CXX=yes
10553     hardcode_libdir_separator_CXX=':'
10554     link_all_deplibs_CXX=yes
10555
10556     if test "$GXX" = yes; then
10557       case $host_os in aix4.[012]|aix4.[012].*)
10558       # We only want to do this on AIX 4.2 and lower, the check
10559       # below for broken collect2 doesn't work under 4.3+
10560         collect2name=`${CC} -print-prog-name=collect2`
10561         if test -f "$collect2name" && \
10562            strings "$collect2name" | grep resolve_lib_name >/dev/null
10563         then
10564           # We have reworked collect2
10565           hardcode_direct_CXX=yes
10566         else
10567           # We have old collect2
10568           hardcode_direct_CXX=unsupported
10569           # It fails to find uninstalled libraries when the uninstalled
10570           # path is not listed in the libpath.  Setting hardcode_minus_L
10571           # to unsupported forces relinking
10572           hardcode_minus_L_CXX=yes
10573           hardcode_libdir_flag_spec_CXX='-L$libdir'
10574           hardcode_libdir_separator_CXX=
10575         fi
10576         ;;
10577       esac
10578       shared_flag='-shared'
10579       if test "$aix_use_runtimelinking" = yes; then
10580         shared_flag="$shared_flag "'${wl}-G'
10581       fi
10582     else
10583       # not using gcc
10584       if test "$host_cpu" = ia64; then
10585         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10586         # chokes on -Wl,-G. The following line is correct:
10587         shared_flag='-G'
10588       else
10589         if test "$aix_use_runtimelinking" = yes; then
10590           shared_flag='${wl}-G'
10591         else
10592           shared_flag='${wl}-bM:SRE'
10593         fi
10594       fi
10595     fi
10596
10597     # It seems that -bexpall does not export symbols beginning with
10598     # underscore (_), so it is better to generate a list of symbols to export.
10599     always_export_symbols_CXX=yes
10600     if test "$aix_use_runtimelinking" = yes; then
10601       # Warning - without using the other runtime loading flags (-brtl),
10602       # -berok will link without error, but may produce a broken library.
10603       allow_undefined_flag_CXX='-berok'
10604       # Determine the default libpath from the value encoded in an empty executable.
10605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h.  */
10607
10608 int
10609 main ()
10610 {
10611
10612   ;
10613   return 0;
10614 }
10615 _ACEOF
10616 if ac_fn_cxx_try_link "$LINENO"; then :
10617
10618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10619 }'`
10620 # Check for a 64-bit object if we didn't find anything.
10621 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10622 }'`; fi
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext \
10625     conftest$ac_exeext conftest.$ac_ext
10626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10627
10628       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10629
10630       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10631      else
10632       if test "$host_cpu" = ia64; then
10633         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10634         allow_undefined_flag_CXX="-z nodefs"
10635         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10636       else
10637         # Determine the default libpath from the value encoded in an empty executable.
10638         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h.  */
10640
10641 int
10642 main ()
10643 {
10644
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 if ac_fn_cxx_try_link "$LINENO"; then :
10650
10651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10652 }'`
10653 # Check for a 64-bit object if we didn't find anything.
10654 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10655 }'`; fi
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext \
10658     conftest$ac_exeext conftest.$ac_ext
10659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10660
10661         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10662         # Warning - without using the other run time loading flags,
10663         # -berok will link without error, but may produce a broken library.
10664         no_undefined_flag_CXX=' ${wl}-bernotok'
10665         allow_undefined_flag_CXX=' ${wl}-berok'
10666         # Exported symbols can be pulled into shared objects from archives
10667         whole_archive_flag_spec_CXX='$convenience'
10668         archive_cmds_need_lc_CXX=yes
10669         # This is similar to how AIX traditionally builds its shared libraries.
10670         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10671       fi
10672     fi
10673     ;;
10674
10675   beos*)
10676     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10677       allow_undefined_flag_CXX=unsupported
10678       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10679       # support --undefined.  This deserves some investigation.  FIXME
10680       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10681     else
10682       ld_shlibs_CXX=no
10683     fi
10684     ;;
10685
10686   chorus*)
10687     case $cc_basename in
10688       *)
10689         # FIXME: insert proper C++ library support
10690         ld_shlibs_CXX=no
10691         ;;
10692     esac
10693     ;;
10694
10695   cygwin* | mingw* | pw32*)
10696     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10697     # as there is no search path for DLLs.
10698     hardcode_libdir_flag_spec_CXX='-L$libdir'
10699     allow_undefined_flag_CXX=unsupported
10700     always_export_symbols_CXX=no
10701     enable_shared_with_static_runtimes_CXX=yes
10702
10703     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10704       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10705       # If the export-symbols file already is a .def file (1st line
10706       # is EXPORTS), use it as is; otherwise, prepend...
10707       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10708         cp $export_symbols $output_objdir/$soname.def;
10709       else
10710         echo EXPORTS > $output_objdir/$soname.def;
10711         cat $export_symbols >> $output_objdir/$soname.def;
10712       fi~
10713       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10714     else
10715       ld_shlibs_CXX=no
10716     fi
10717   ;;
10718       darwin* | rhapsody*)
10719         case $host_os in
10720         rhapsody* | darwin1.[012])
10721          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10722          ;;
10723        *) # Darwin 1.3 on
10724          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10725            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10726          else
10727            case ${MACOSX_DEPLOYMENT_TARGET} in
10728              10.[012])
10729                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10730                ;;
10731              10.*)
10732                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10733                ;;
10734            esac
10735          fi
10736          ;;
10737         esac
10738       archive_cmds_need_lc_CXX=no
10739       hardcode_direct_CXX=no
10740       hardcode_automatic_CXX=yes
10741       hardcode_shlibpath_var_CXX=unsupported
10742       whole_archive_flag_spec_CXX=''
10743       link_all_deplibs_CXX=yes
10744
10745     if test "$GXX" = yes ; then
10746       lt_int_apple_cc_single_mod=no
10747       output_verbose_link_cmd='echo'
10748       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10749        lt_int_apple_cc_single_mod=yes
10750       fi
10751       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10752        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10753       else
10754           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10755         fi
10756         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10757         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10758           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10759             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10760           else
10761             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10762           fi
10763             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10764       else
10765       case $cc_basename in
10766         xlc*)
10767          output_verbose_link_cmd='echo'
10768           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10769           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10770           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10771           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10772           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10773           ;;
10774        *)
10775          ld_shlibs_CXX=no
10776           ;;
10777       esac
10778       fi
10779         ;;
10780
10781   dgux*)
10782     case $cc_basename in
10783       ec++*)
10784         # FIXME: insert proper C++ library support
10785         ld_shlibs_CXX=no
10786         ;;
10787       ghcx*)
10788         # Green Hills C++ Compiler
10789         # FIXME: insert proper C++ library support
10790         ld_shlibs_CXX=no
10791         ;;
10792       *)
10793         # FIXME: insert proper C++ library support
10794         ld_shlibs_CXX=no
10795         ;;
10796     esac
10797     ;;
10798   freebsd[12]*)
10799     # C++ shared libraries reported to be fairly broken before switch to ELF
10800     ld_shlibs_CXX=no
10801     ;;
10802   freebsd-elf*)
10803     archive_cmds_need_lc_CXX=no
10804     ;;
10805   freebsd* | kfreebsd*-gnu | dragonfly*)
10806     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10807     # conventions
10808     ld_shlibs_CXX=yes
10809     ;;
10810   gnu*)
10811     ;;
10812   hpux9*)
10813     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10814     hardcode_libdir_separator_CXX=:
10815     export_dynamic_flag_spec_CXX='${wl}-E'
10816     hardcode_direct_CXX=yes
10817     hardcode_minus_L_CXX=yes # Not in the search PATH,
10818                                 # but as the default
10819                                 # location of the library.
10820
10821     case $cc_basename in
10822     CC*)
10823       # FIXME: insert proper C++ library support
10824       ld_shlibs_CXX=no
10825       ;;
10826     aCC*)
10827       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10828       # Commands to make compiler produce verbose output that lists
10829       # what "hidden" libraries, object files and flags are used when
10830       # linking a shared library.
10831       #
10832       # There doesn't appear to be a way to prevent this compiler from
10833       # explicitly linking system object files so we need to strip them
10834       # from the output so that they don't get included in the library
10835       # dependencies.
10836       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10837       ;;
10838     *)
10839       if test "$GXX" = yes; then
10840         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10841       else
10842         # FIXME: insert proper C++ library support
10843         ld_shlibs_CXX=no
10844       fi
10845       ;;
10846     esac
10847     ;;
10848   hpux10*|hpux11*)
10849     if test $with_gnu_ld = no; then
10850       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10851       hardcode_libdir_separator_CXX=:
10852
10853       case $host_cpu in
10854       hppa*64*|ia64*)
10855         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10856         ;;
10857       *)
10858         export_dynamic_flag_spec_CXX='${wl}-E'
10859         ;;
10860       esac
10861     fi
10862     case $host_cpu in
10863     hppa*64*|ia64*)
10864       hardcode_direct_CXX=no
10865       hardcode_shlibpath_var_CXX=no
10866       ;;
10867     *)
10868       hardcode_direct_CXX=yes
10869       hardcode_minus_L_CXX=yes # Not in the search PATH,
10870                                               # but as the default
10871                                               # location of the library.
10872       ;;
10873     esac
10874
10875     case $cc_basename in
10876       CC*)
10877         # FIXME: insert proper C++ library support
10878         ld_shlibs_CXX=no
10879         ;;
10880       aCC*)
10881         case $host_cpu in
10882         hppa*64*)
10883           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10884           ;;
10885         ia64*)
10886           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10887           ;;
10888         *)
10889           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10890           ;;
10891         esac
10892         # Commands to make compiler produce verbose output that lists
10893         # what "hidden" libraries, object files and flags are used when
10894         # linking a shared library.
10895         #
10896         # There doesn't appear to be a way to prevent this compiler from
10897         # explicitly linking system object files so we need to strip them
10898         # from the output so that they don't get included in the library
10899         # dependencies.
10900         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10901         ;;
10902       *)
10903         if test "$GXX" = yes; then
10904           if test $with_gnu_ld = no; then
10905             case $host_cpu in
10906             hppa*64*)
10907               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10908               ;;
10909             ia64*)
10910               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10911               ;;
10912             *)
10913               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10914               ;;
10915             esac
10916           fi
10917         else
10918           # FIXME: insert proper C++ library support
10919           ld_shlibs_CXX=no
10920         fi
10921         ;;
10922     esac
10923     ;;
10924   interix3*)
10925     hardcode_direct_CXX=no
10926     hardcode_shlibpath_var_CXX=no
10927     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10928     export_dynamic_flag_spec_CXX='${wl}-E'
10929     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10930     # Instead, shared libraries are loaded at an image base (0x10000000 by
10931     # default) and relocated if they conflict, which is a slow very memory
10932     # consuming and fragmenting process.  To avoid this, we pick a random,
10933     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10934     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10935     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10936     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10937     ;;
10938   irix5* | irix6*)
10939     case $cc_basename in
10940       CC*)
10941         # SGI C++
10942         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10943
10944         # Archives containing C++ object files must be created using
10945         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10946         # necessary to make sure instantiated templates are included
10947         # in the archive.
10948         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10949         ;;
10950       *)
10951         if test "$GXX" = yes; then
10952           if test "$with_gnu_ld" = no; then
10953             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10954           else
10955             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10956           fi
10957         fi
10958         link_all_deplibs_CXX=yes
10959         ;;
10960     esac
10961     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10962     hardcode_libdir_separator_CXX=:
10963     ;;
10964   linux*)
10965     case $cc_basename in
10966       KCC*)
10967         # Kuck and Associates, Inc. (KAI) C++ Compiler
10968
10969         # KCC will only create a shared library if the output file
10970         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10971         # to its proper name (with version) after linking.
10972         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10973         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10974         # Commands to make compiler produce verbose output that lists
10975         # what "hidden" libraries, object files and flags are used when
10976         # linking a shared library.
10977         #
10978         # There doesn't appear to be a way to prevent this compiler from
10979         # explicitly linking system object files so we need to strip them
10980         # from the output so that they don't get included in the library
10981         # dependencies.
10982         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10983
10984         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10985         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10986
10987         # Archives containing C++ object files must be created using
10988         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10989         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10990         ;;
10991       icpc*)
10992         # Intel C++
10993         with_gnu_ld=yes
10994         # version 8.0 and above of icpc choke on multiply defined symbols
10995         # if we add $predep_objects and $postdep_objects, however 7.1 and
10996         # earlier do not add the objects themselves.
10997         case `$CC -V 2>&1` in
10998         *"Version 7."*)
10999           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11000           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11001           ;;
11002         *)  # Version 8.0 or newer
11003           tmp_idyn=
11004           case $host_cpu in
11005             ia64*) tmp_idyn=' -i_dynamic';;
11006           esac
11007           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11008           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11009           ;;
11010         esac
11011         archive_cmds_need_lc_CXX=no
11012         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11013         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11014         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11015         ;;
11016       pgCC*)
11017         # Portland Group C++ compiler
11018         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11019         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11020
11021         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11022         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11023         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11024         ;;
11025       cxx*)
11026         # Compaq C++
11027         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11028         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11029
11030         runpath_var=LD_RUN_PATH
11031         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11032         hardcode_libdir_separator_CXX=:
11033
11034         # Commands to make compiler produce verbose output that lists
11035         # what "hidden" libraries, object files and flags are used when
11036         # linking a shared library.
11037         #
11038         # There doesn't appear to be a way to prevent this compiler from
11039         # explicitly linking system object files so we need to strip them
11040         # from the output so that they don't get included in the library
11041         # dependencies.
11042         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11043         ;;
11044     esac
11045     ;;
11046   lynxos*)
11047     # FIXME: insert proper C++ library support
11048     ld_shlibs_CXX=no
11049     ;;
11050   m88k*)
11051     # FIXME: insert proper C++ library support
11052     ld_shlibs_CXX=no
11053     ;;
11054   mvs*)
11055     case $cc_basename in
11056       cxx*)
11057         # FIXME: insert proper C++ library support
11058         ld_shlibs_CXX=no
11059         ;;
11060       *)
11061         # FIXME: insert proper C++ library support
11062         ld_shlibs_CXX=no
11063         ;;
11064     esac
11065     ;;
11066   netbsd*)
11067     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11068       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11069       wlarc=
11070       hardcode_libdir_flag_spec_CXX='-R$libdir'
11071       hardcode_direct_CXX=yes
11072       hardcode_shlibpath_var_CXX=no
11073     fi
11074     # Workaround some broken pre-1.5 toolchains
11075     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11076     ;;
11077   openbsd2*)
11078     # C++ shared libraries are fairly broken
11079     ld_shlibs_CXX=no
11080     ;;
11081   openbsd*)
11082     hardcode_direct_CXX=yes
11083     hardcode_shlibpath_var_CXX=no
11084     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11085     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11086     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11087       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11088       export_dynamic_flag_spec_CXX='${wl}-E'
11089       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11090     fi
11091     output_verbose_link_cmd='echo'
11092     ;;
11093   osf3*)
11094     case $cc_basename in
11095       KCC*)
11096         # Kuck and Associates, Inc. (KAI) C++ Compiler
11097
11098         # KCC will only create a shared library if the output file
11099         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11100         # to its proper name (with version) after linking.
11101         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11102
11103         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11104         hardcode_libdir_separator_CXX=:
11105
11106         # Archives containing C++ object files must be created using
11107         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11108         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11109
11110         ;;
11111       RCC*)
11112         # Rational C++ 2.4.1
11113         # FIXME: insert proper C++ library support
11114         ld_shlibs_CXX=no
11115         ;;
11116       cxx*)
11117         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11118         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11119
11120         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11121         hardcode_libdir_separator_CXX=:
11122
11123         # Commands to make compiler produce verbose output that lists
11124         # what "hidden" libraries, object files and flags are used when
11125         # linking a shared library.
11126         #
11127         # There doesn't appear to be a way to prevent this compiler from
11128         # explicitly linking system object files so we need to strip them
11129         # from the output so that they don't get included in the library
11130         # dependencies.
11131         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11132         ;;
11133       *)
11134         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11135           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11136           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11137
11138           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11139           hardcode_libdir_separator_CXX=:
11140
11141           # Commands to make compiler produce verbose output that lists
11142           # what "hidden" libraries, object files and flags are used when
11143           # linking a shared library.
11144           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11145
11146         else
11147           # FIXME: insert proper C++ library support
11148           ld_shlibs_CXX=no
11149         fi
11150         ;;
11151     esac
11152     ;;
11153   osf4* | osf5*)
11154     case $cc_basename in
11155       KCC*)
11156         # Kuck and Associates, Inc. (KAI) C++ Compiler
11157
11158         # KCC will only create a shared library if the output file
11159         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11160         # to its proper name (with version) after linking.
11161         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11162
11163         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11164         hardcode_libdir_separator_CXX=:
11165
11166         # Archives containing C++ object files must be created using
11167         # the KAI C++ compiler.
11168         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11169         ;;
11170       RCC*)
11171         # Rational C++ 2.4.1
11172         # FIXME: insert proper C++ library support
11173         ld_shlibs_CXX=no
11174         ;;
11175       cxx*)
11176         allow_undefined_flag_CXX=' -expect_unresolved \*'
11177         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11178         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11179           echo "-hidden">> $lib.exp~
11180           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11181           $rm $lib.exp'
11182
11183         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11184         hardcode_libdir_separator_CXX=:
11185
11186         # Commands to make compiler produce verbose output that lists
11187         # what "hidden" libraries, object files and flags are used when
11188         # linking a shared library.
11189         #
11190         # There doesn't appear to be a way to prevent this compiler from
11191         # explicitly linking system object files so we need to strip them
11192         # from the output so that they don't get included in the library
11193         # dependencies.
11194         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11195         ;;
11196       *)
11197         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11198           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11199          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11200
11201           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11202           hardcode_libdir_separator_CXX=:
11203
11204           # Commands to make compiler produce verbose output that lists
11205           # what "hidden" libraries, object files and flags are used when
11206           # linking a shared library.
11207           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11208
11209         else
11210           # FIXME: insert proper C++ library support
11211           ld_shlibs_CXX=no
11212         fi
11213         ;;
11214     esac
11215     ;;
11216   psos*)
11217     # FIXME: insert proper C++ library support
11218     ld_shlibs_CXX=no
11219     ;;
11220   sunos4*)
11221     case $cc_basename in
11222       CC*)
11223         # Sun C++ 4.x
11224         # FIXME: insert proper C++ library support
11225         ld_shlibs_CXX=no
11226         ;;
11227       lcc*)
11228         # Lucid
11229         # FIXME: insert proper C++ library support
11230         ld_shlibs_CXX=no
11231         ;;
11232       *)
11233         # FIXME: insert proper C++ library support
11234         ld_shlibs_CXX=no
11235         ;;
11236     esac
11237     ;;
11238   solaris*)
11239     case $cc_basename in
11240       CC*)
11241         # Sun C++ 4.2, 5.x and Centerline C++
11242         archive_cmds_need_lc_CXX=yes
11243         no_undefined_flag_CXX=' -zdefs'
11244         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11245         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11246         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11247
11248         hardcode_libdir_flag_spec_CXX='-R$libdir'
11249         hardcode_shlibpath_var_CXX=no
11250         case $host_os in
11251           solaris2.[0-5] | solaris2.[0-5].*) ;;
11252           *)
11253             # The C++ compiler is used as linker so we must use $wl
11254             # flag to pass the commands to the underlying system
11255             # linker. We must also pass each convience library through
11256             # to the system linker between allextract/defaultextract.
11257             # The C++ compiler will combine linker options so we
11258             # cannot just pass the convience library names through
11259             # without $wl.
11260             # Supported since Solaris 2.6 (maybe 2.5.1?)
11261             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11262             ;;
11263         esac
11264         link_all_deplibs_CXX=yes
11265
11266         output_verbose_link_cmd='echo'
11267
11268         # Archives containing C++ object files must be created using
11269         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11270         # necessary to make sure instantiated templates are included
11271         # in the archive.
11272         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11273         ;;
11274       gcx*)
11275         # Green Hills C++ Compiler
11276         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11277
11278         # The C++ compiler must be used to create the archive.
11279         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11280         ;;
11281       *)
11282         # GNU C++ compiler with Solaris linker
11283         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11284           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11285           if $CC --version | grep -v '^2\.7' > /dev/null; then
11286             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11287             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11288                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11289
11290             # Commands to make compiler produce verbose output that lists
11291             # what "hidden" libraries, object files and flags are used when
11292             # linking a shared library.
11293             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11294           else
11295             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11296             # platform.
11297             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11298             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11299                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11300
11301             # Commands to make compiler produce verbose output that lists
11302             # what "hidden" libraries, object files and flags are used when
11303             # linking a shared library.
11304             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11305           fi
11306
11307           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11308         fi
11309         ;;
11310     esac
11311     ;;
11312   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11313     no_undefined_flag_CXX='${wl}-z,text'
11314     archive_cmds_need_lc_CXX=no
11315     hardcode_shlibpath_var_CXX=no
11316     runpath_var='LD_RUN_PATH'
11317
11318     case $cc_basename in
11319       CC*)
11320         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11321         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11322         ;;
11323       *)
11324         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11325         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11326         ;;
11327     esac
11328     ;;
11329   sysv5* | sco3.2v5* | sco5v6*)
11330     # Note: We can NOT use -z defs as we might desire, because we do not
11331     # link with -lc, and that would cause any symbols used from libc to
11332     # always be unresolved, which means just about no library would
11333     # ever link correctly.  If we're not using GNU ld we use -z text
11334     # though, which does catch some bad symbols but isn't as heavy-handed
11335     # as -z defs.
11336     # For security reasons, it is highly recommended that you always
11337     # use absolute paths for naming shared libraries, and exclude the
11338     # DT_RUNPATH tag from executables and libraries.  But doing so
11339     # requires that you compile everything twice, which is a pain.
11340     # So that behaviour is only enabled if SCOABSPATH is set to a
11341     # non-empty value in the environment.  Most likely only useful for
11342     # creating official distributions of packages.
11343     # This is a hack until libtool officially supports absolute path
11344     # names for shared libraries.
11345     no_undefined_flag_CXX='${wl}-z,text'
11346     allow_undefined_flag_CXX='${wl}-z,nodefs'
11347     archive_cmds_need_lc_CXX=no
11348     hardcode_shlibpath_var_CXX=no
11349     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11350     hardcode_libdir_separator_CXX=':'
11351     link_all_deplibs_CXX=yes
11352     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11353     runpath_var='LD_RUN_PATH'
11354
11355     case $cc_basename in
11356       CC*)
11357         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11358         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11359         ;;
11360       *)
11361         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11362         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11363         ;;
11364     esac
11365     ;;
11366   tandem*)
11367     case $cc_basename in
11368       NCC*)
11369         # NonStop-UX NCC 3.20
11370         # FIXME: insert proper C++ library support
11371         ld_shlibs_CXX=no
11372         ;;
11373       *)
11374         # FIXME: insert proper C++ library support
11375         ld_shlibs_CXX=no
11376         ;;
11377     esac
11378     ;;
11379   vxworks*)
11380     # FIXME: insert proper C++ library support
11381     ld_shlibs_CXX=no
11382     ;;
11383   *)
11384     # FIXME: insert proper C++ library support
11385     ld_shlibs_CXX=no
11386     ;;
11387 esac
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11389 $as_echo "$ld_shlibs_CXX" >&6; }
11390 test "$ld_shlibs_CXX" = no && can_build_shared=no
11391
11392 GCC_CXX="$GXX"
11393 LD_CXX="$LD"
11394
11395
11396 cat > conftest.$ac_ext <<EOF
11397 class Foo
11398 {
11399 public:
11400   Foo (void) { a = 0; }
11401 private:
11402   int a;
11403 };
11404 EOF
11405
11406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11407   (eval $ac_compile) 2>&5
11408   ac_status=$?
11409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11410   test $ac_status = 0; }; then
11411   # Parse the compiler output and extract the necessary
11412   # objects, libraries and library flags.
11413
11414   # Sentinel used to keep track of whether or not we are before
11415   # the conftest object file.
11416   pre_test_object_deps_done=no
11417
11418   # The `*' in the case matches for architectures that use `case' in
11419   # $output_verbose_cmd can trigger glob expansion during the loop
11420   # eval without this substitution.
11421   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11422
11423   for p in `eval $output_verbose_link_cmd`; do
11424     case $p in
11425
11426     -L* | -R* | -l*)
11427        # Some compilers place space between "-{L,R}" and the path.
11428        # Remove the space.
11429        if test $p = "-L" \
11430           || test $p = "-R"; then
11431          prev=$p
11432          continue
11433        else
11434          prev=
11435        fi
11436
11437        if test "$pre_test_object_deps_done" = no; then
11438          case $p in
11439          -L* | -R*)
11440            # Internal compiler library paths should come after those
11441            # provided the user.  The postdeps already come after the
11442            # user supplied libs so there is no need to process them.
11443            if test -z "$compiler_lib_search_path_CXX"; then
11444              compiler_lib_search_path_CXX="${prev}${p}"
11445            else
11446              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11447            fi
11448            ;;
11449          # The "-l" case would never come before the object being
11450          # linked, so don't bother handling this case.
11451          esac
11452        else
11453          if test -z "$postdeps_CXX"; then
11454            postdeps_CXX="${prev}${p}"
11455          else
11456            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11457          fi
11458        fi
11459        ;;
11460
11461     *.$objext)
11462        # This assumes that the test object file only shows up
11463        # once in the compiler output.
11464        if test "$p" = "conftest.$objext"; then
11465          pre_test_object_deps_done=yes
11466          continue
11467        fi
11468
11469        if test "$pre_test_object_deps_done" = no; then
11470          if test -z "$predep_objects_CXX"; then
11471            predep_objects_CXX="$p"
11472          else
11473            predep_objects_CXX="$predep_objects_CXX $p"
11474          fi
11475        else
11476          if test -z "$postdep_objects_CXX"; then
11477            postdep_objects_CXX="$p"
11478          else
11479            postdep_objects_CXX="$postdep_objects_CXX $p"
11480          fi
11481        fi
11482        ;;
11483
11484     *) ;; # Ignore the rest.
11485
11486     esac
11487   done
11488
11489   # Clean up.
11490   rm -f a.out a.exe
11491 else
11492   echo "libtool.m4: error: problem compiling CXX test program"
11493 fi
11494
11495 $rm -f confest.$objext
11496
11497 # PORTME: override above test on systems where it is broken
11498 case $host_os in
11499 interix3*)
11500   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11501   # hack all around it, let's just trust "g++" to DTRT.
11502   predep_objects_CXX=
11503   postdep_objects_CXX=
11504   postdeps_CXX=
11505   ;;
11506
11507 solaris*)
11508   case $cc_basename in
11509   CC*)
11510     # Adding this requires a known-good setup of shared libraries for
11511     # Sun compiler versions before 5.6, else PIC objects from an old
11512     # archive will be linked into the output, leading to subtle bugs.
11513     postdeps_CXX='-lCstd -lCrun'
11514     ;;
11515   esac
11516   ;;
11517 esac
11518
11519
11520 case " $postdeps_CXX " in
11521 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11522 esac
11523
11524 lt_prog_compiler_wl_CXX=
11525 lt_prog_compiler_pic_CXX=
11526 lt_prog_compiler_static_CXX=
11527
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11529 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11530
11531   # C++ specific cases for pic, static, wl, etc.
11532   if test "$GXX" = yes; then
11533     lt_prog_compiler_wl_CXX='-Wl,'
11534     lt_prog_compiler_static_CXX='-static'
11535
11536     case $host_os in
11537     aix*)
11538       # All AIX code is PIC.
11539       if test "$host_cpu" = ia64; then
11540         # AIX 5 now supports IA64 processor
11541         lt_prog_compiler_static_CXX='-Bstatic'
11542       fi
11543       ;;
11544     amigaos*)
11545       # FIXME: we need at least 68020 code to build shared libraries, but
11546       # adding the `-m68020' flag to GCC prevents building anything better,
11547       # like `-m68040'.
11548       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11549       ;;
11550     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11551       # PIC is the default for these OSes.
11552       ;;
11553     mingw* | os2* | pw32*)
11554       # This hack is so that the source file can tell whether it is being
11555       # built for inclusion in a dll (and should export symbols for example).
11556       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11557       ;;
11558     darwin* | rhapsody*)
11559       # PIC is the default on this platform
11560       # Common symbols not allowed in MH_DYLIB files
11561       lt_prog_compiler_pic_CXX='-fno-common'
11562       ;;
11563     *djgpp*)
11564       # DJGPP does not support shared libraries at all
11565       lt_prog_compiler_pic_CXX=
11566       ;;
11567     interix3*)
11568       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11569       # Instead, we relocate shared libraries at runtime.
11570       ;;
11571     sysv4*MP*)
11572       if test -d /usr/nec; then
11573         lt_prog_compiler_pic_CXX=-Kconform_pic
11574       fi
11575       ;;
11576     hpux*)
11577       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11578       # not for PA HP-UX.
11579       case $host_cpu in
11580       hppa*64*|ia64*)
11581         ;;
11582       *)
11583         lt_prog_compiler_pic_CXX='-fPIC'
11584         ;;
11585       esac
11586       ;;
11587     *)
11588       lt_prog_compiler_pic_CXX='-fPIC'
11589       ;;
11590     esac
11591   else
11592     case $host_os in
11593       aix4* | aix5*)
11594         # All AIX code is PIC.
11595         if test "$host_cpu" = ia64; then
11596           # AIX 5 now supports IA64 processor
11597           lt_prog_compiler_static_CXX='-Bstatic'
11598         else
11599           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11600         fi
11601         ;;
11602       chorus*)
11603         case $cc_basename in
11604         cxch68*)
11605           # Green Hills C++ Compiler
11606           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11607           ;;
11608         esac
11609         ;;
11610        darwin*)
11611          # PIC is the default on this platform
11612          # Common symbols not allowed in MH_DYLIB files
11613          case $cc_basename in
11614            xlc*)
11615            lt_prog_compiler_pic_CXX='-qnocommon'
11616            lt_prog_compiler_wl_CXX='-Wl,'
11617            ;;
11618          esac
11619        ;;
11620       dgux*)
11621         case $cc_basename in
11622           ec++*)
11623             lt_prog_compiler_pic_CXX='-KPIC'
11624             ;;
11625           ghcx*)
11626             # Green Hills C++ Compiler
11627             lt_prog_compiler_pic_CXX='-pic'
11628             ;;
11629           *)
11630             ;;
11631         esac
11632         ;;
11633       freebsd* | kfreebsd*-gnu | dragonfly*)
11634         # FreeBSD uses GNU C++
11635         ;;
11636       hpux9* | hpux10* | hpux11*)
11637         case $cc_basename in
11638           CC*)
11639             lt_prog_compiler_wl_CXX='-Wl,'
11640             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11641             if test "$host_cpu" != ia64; then
11642               lt_prog_compiler_pic_CXX='+Z'
11643             fi
11644             ;;
11645           aCC*)
11646             lt_prog_compiler_wl_CXX='-Wl,'
11647             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11648             case $host_cpu in
11649             hppa*64*|ia64*)
11650               # +Z the default
11651               ;;
11652             *)
11653               lt_prog_compiler_pic_CXX='+Z'
11654               ;;
11655             esac
11656             ;;
11657           *)
11658             ;;
11659         esac
11660         ;;
11661       interix*)
11662         # This is c89, which is MS Visual C++ (no shared libs)
11663         # Anyone wants to do a port?
11664         ;;
11665       irix5* | irix6* | nonstopux*)
11666         case $cc_basename in
11667           CC*)
11668             lt_prog_compiler_wl_CXX='-Wl,'
11669             lt_prog_compiler_static_CXX='-non_shared'
11670             # CC pic flag -KPIC is the default.
11671             ;;
11672           *)
11673             ;;
11674         esac
11675         ;;
11676       linux*)
11677         case $cc_basename in
11678           KCC*)
11679             # KAI C++ Compiler
11680             lt_prog_compiler_wl_CXX='--backend -Wl,'
11681             lt_prog_compiler_pic_CXX='-fPIC'
11682             ;;
11683           icpc* | ecpc*)
11684             # Intel C++
11685             lt_prog_compiler_wl_CXX='-Wl,'
11686             lt_prog_compiler_pic_CXX='-KPIC'
11687             lt_prog_compiler_static_CXX='-static'
11688             ;;
11689           pgCC*)
11690             # Portland Group C++ compiler.
11691             lt_prog_compiler_wl_CXX='-Wl,'
11692             lt_prog_compiler_pic_CXX='-fpic'
11693             lt_prog_compiler_static_CXX='-Bstatic'
11694             ;;
11695           cxx*)
11696             # Compaq C++
11697             # Make sure the PIC flag is empty.  It appears that all Alpha
11698             # Linux and Compaq Tru64 Unix objects are PIC.
11699             lt_prog_compiler_pic_CXX=
11700             lt_prog_compiler_static_CXX='-non_shared'
11701             ;;
11702           *)
11703             ;;
11704         esac
11705         ;;
11706       lynxos*)
11707         ;;
11708       m88k*)
11709         ;;
11710       mvs*)
11711         case $cc_basename in
11712           cxx*)
11713             lt_prog_compiler_pic_CXX='-W c,exportall'
11714             ;;
11715           *)
11716             ;;
11717         esac
11718         ;;
11719       netbsd*)
11720         ;;
11721       osf3* | osf4* | osf5*)
11722         case $cc_basename in
11723           KCC*)
11724             lt_prog_compiler_wl_CXX='--backend -Wl,'
11725             ;;
11726           RCC*)
11727             # Rational C++ 2.4.1
11728             lt_prog_compiler_pic_CXX='-pic'
11729             ;;
11730           cxx*)
11731             # Digital/Compaq C++
11732             lt_prog_compiler_wl_CXX='-Wl,'
11733             # Make sure the PIC flag is empty.  It appears that all Alpha
11734             # Linux and Compaq Tru64 Unix objects are PIC.
11735             lt_prog_compiler_pic_CXX=
11736             lt_prog_compiler_static_CXX='-non_shared'
11737             ;;
11738           *)
11739             ;;
11740         esac
11741         ;;
11742       psos*)
11743         ;;
11744       solaris*)
11745         case $cc_basename in
11746           CC*)
11747             # Sun C++ 4.2, 5.x and Centerline C++
11748             lt_prog_compiler_pic_CXX='-KPIC'
11749             lt_prog_compiler_static_CXX='-Bstatic'
11750             lt_prog_compiler_wl_CXX='-Qoption ld '
11751             ;;
11752           gcx*)
11753             # Green Hills C++ Compiler
11754             lt_prog_compiler_pic_CXX='-PIC'
11755             ;;
11756           *)
11757             ;;
11758         esac
11759         ;;
11760       sunos4*)
11761         case $cc_basename in
11762           CC*)
11763             # Sun C++ 4.x
11764             lt_prog_compiler_pic_CXX='-pic'
11765             lt_prog_compiler_static_CXX='-Bstatic'
11766             ;;
11767           lcc*)
11768             # Lucid
11769             lt_prog_compiler_pic_CXX='-pic'
11770             ;;
11771           *)
11772             ;;
11773         esac
11774         ;;
11775       tandem*)
11776         case $cc_basename in
11777           NCC*)
11778             # NonStop-UX NCC 3.20
11779             lt_prog_compiler_pic_CXX='-KPIC'
11780             ;;
11781           *)
11782             ;;
11783         esac
11784         ;;
11785       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11786         case $cc_basename in
11787           CC*)
11788             lt_prog_compiler_wl_CXX='-Wl,'
11789             lt_prog_compiler_pic_CXX='-KPIC'
11790             lt_prog_compiler_static_CXX='-Bstatic'
11791             ;;
11792         esac
11793         ;;
11794       vxworks*)
11795         ;;
11796       *)
11797         lt_prog_compiler_can_build_shared_CXX=no
11798         ;;
11799     esac
11800   fi
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11803 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11804
11805 #
11806 # Check to make sure the PIC flag actually works.
11807 #
11808 if test -n "$lt_prog_compiler_pic_CXX"; then
11809
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11811 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11812 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
11813   $as_echo_n "(cached) " >&6
11814 else
11815   lt_prog_compiler_pic_works_CXX=no
11816   ac_outfile=conftest.$ac_objext
11817    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11818    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11819    # Insert the option either (1) after the last *FLAGS variable, or
11820    # (2) before a word containing "conftest.", or (3) at the end.
11821    # Note that $ac_compile itself does not contain backslashes and begins
11822    # with a dollar sign (not a hyphen), so the echo should work correctly.
11823    # The option is referenced via a variable to avoid confusing sed.
11824    lt_compile=`echo "$ac_compile" | $SED \
11825    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11826    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11827    -e 's:$: $lt_compiler_flag:'`
11828    (eval echo "\"\$as_me:11828: $lt_compile\"" >&5)
11829    (eval "$lt_compile" 2>conftest.err)
11830    ac_status=$?
11831    cat conftest.err >&5
11832    echo "$as_me:11832: \$? = $ac_status" >&5
11833    if (exit $ac_status) && test -s "$ac_outfile"; then
11834      # The compiler can only warn and ignore the option if not recognized
11835      # So say no if there are warnings other than the usual output.
11836      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11837      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11838      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11839        lt_prog_compiler_pic_works_CXX=yes
11840      fi
11841    fi
11842    $rm conftest*
11843
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11846 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11847
11848 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11849     case $lt_prog_compiler_pic_CXX in
11850      "" | " "*) ;;
11851      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11852      esac
11853 else
11854     lt_prog_compiler_pic_CXX=
11855      lt_prog_compiler_can_build_shared_CXX=no
11856 fi
11857
11858 fi
11859 case $host_os in
11860   # For platforms which do not support PIC, -DPIC is meaningless:
11861   *djgpp*)
11862     lt_prog_compiler_pic_CXX=
11863     ;;
11864   *)
11865     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11866     ;;
11867 esac
11868
11869 #
11870 # Check to make sure the static flag actually works.
11871 #
11872 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11874 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11875 if ${lt_prog_compiler_static_works_CXX+:} false; then :
11876   $as_echo_n "(cached) " >&6
11877 else
11878   lt_prog_compiler_static_works_CXX=no
11879    save_LDFLAGS="$LDFLAGS"
11880    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11881    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11882    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11883      # The linker can only warn and ignore the option if not recognized
11884      # So say no if there are warnings
11885      if test -s conftest.err; then
11886        # Append any errors to the config.log.
11887        cat conftest.err 1>&5
11888        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11889        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11890        if diff conftest.exp conftest.er2 >/dev/null; then
11891          lt_prog_compiler_static_works_CXX=yes
11892        fi
11893      else
11894        lt_prog_compiler_static_works_CXX=yes
11895      fi
11896    fi
11897    $rm conftest*
11898    LDFLAGS="$save_LDFLAGS"
11899
11900 fi
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
11902 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
11903
11904 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11905     :
11906 else
11907     lt_prog_compiler_static_CXX=
11908 fi
11909
11910
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11912 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11913 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
11914   $as_echo_n "(cached) " >&6
11915 else
11916   lt_cv_prog_compiler_c_o_CXX=no
11917    $rm -r conftest 2>/dev/null
11918    mkdir conftest
11919    cd conftest
11920    mkdir out
11921    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11922
11923    lt_compiler_flag="-o out/conftest2.$ac_objext"
11924    # Insert the option either (1) after the last *FLAGS variable, or
11925    # (2) before a word containing "conftest.", or (3) at the end.
11926    # Note that $ac_compile itself does not contain backslashes and begins
11927    # with a dollar sign (not a hyphen), so the echo should work correctly.
11928    lt_compile=`echo "$ac_compile" | $SED \
11929    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11930    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11931    -e 's:$: $lt_compiler_flag:'`
11932    (eval echo "\"\$as_me:11932: $lt_compile\"" >&5)
11933    (eval "$lt_compile" 2>out/conftest.err)
11934    ac_status=$?
11935    cat out/conftest.err >&5
11936    echo "$as_me:11936: \$? = $ac_status" >&5
11937    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11938    then
11939      # The compiler can only warn and ignore the option if not recognized
11940      # So say no if there are warnings
11941      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11942      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11943      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11944        lt_cv_prog_compiler_c_o_CXX=yes
11945      fi
11946    fi
11947    chmod u+w . 2>&5
11948    $rm conftest*
11949    # SGI C++ compiler will create directory out/ii_files/ for
11950    # template instantiation
11951    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11952    $rm out/* && rmdir out
11953    cd ..
11954    rmdir conftest
11955    $rm conftest*
11956
11957 fi
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11959 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11960
11961
11962 hard_links="nottested"
11963 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11964   # do not overwrite the value of need_locks provided by the user
11965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11966 $as_echo_n "checking if we can lock with hard links... " >&6; }
11967   hard_links=yes
11968   $rm conftest*
11969   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11970   touch conftest.a
11971   ln conftest.a conftest.b 2>&5 || hard_links=no
11972   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11974 $as_echo "$hard_links" >&6; }
11975   if test "$hard_links" = no; then
11976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11977 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11978     need_locks=warn
11979   fi
11980 else
11981   need_locks=no
11982 fi
11983
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11985 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11986
11987   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11988   case $host_os in
11989   aix4* | aix5*)
11990     # If we're using GNU nm, then we don't want the "-C" option.
11991     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11992     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11993       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11994     else
11995       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11996     fi
11997     ;;
11998   pw32*)
11999     export_symbols_cmds_CXX="$ltdll_cmds"
12000   ;;
12001   cygwin* | mingw*)
12002     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12003   ;;
12004   *)
12005     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12006   ;;
12007   esac
12008
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12010 $as_echo "$ld_shlibs_CXX" >&6; }
12011 test "$ld_shlibs_CXX" = no && can_build_shared=no
12012
12013 #
12014 # Do we need to explicitly link libc?
12015 #
12016 case "x$archive_cmds_need_lc_CXX" in
12017 x|xyes)
12018   # Assume -lc should be added
12019   archive_cmds_need_lc_CXX=yes
12020
12021   if test "$enable_shared" = yes && test "$GCC" = yes; then
12022     case $archive_cmds_CXX in
12023     *'~'*)
12024       # FIXME: we may have to deal with multi-command sequences.
12025       ;;
12026     '$CC '*)
12027       # Test whether the compiler implicitly links with -lc since on some
12028       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12029       # to ld, don't add -lc before -lgcc.
12030       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12031 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12032       $rm conftest*
12033       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12034
12035       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12036   (eval $ac_compile) 2>&5
12037   ac_status=$?
12038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12039   test $ac_status = 0; } 2>conftest.err; then
12040         soname=conftest
12041         lib=conftest
12042         libobjs=conftest.$ac_objext
12043         deplibs=
12044         wl=$lt_prog_compiler_wl_CXX
12045         pic_flag=$lt_prog_compiler_pic_CXX
12046         compiler_flags=-v
12047         linker_flags=-v
12048         verstring=
12049         output_objdir=.
12050         libname=conftest
12051         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12052         allow_undefined_flag_CXX=
12053         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12054   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12055   ac_status=$?
12056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12057   test $ac_status = 0; }
12058         then
12059           archive_cmds_need_lc_CXX=no
12060         else
12061           archive_cmds_need_lc_CXX=yes
12062         fi
12063         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12064       else
12065         cat conftest.err 1>&5
12066       fi
12067       $rm conftest*
12068       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12069 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12070       ;;
12071     esac
12072   fi
12073   ;;
12074 esac
12075
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12077 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12078 library_names_spec=
12079 libname_spec='lib$name'
12080 soname_spec=
12081 shrext_cmds=".so"
12082 postinstall_cmds=
12083 postuninstall_cmds=
12084 finish_cmds=
12085 finish_eval=
12086 shlibpath_var=
12087 shlibpath_overrides_runpath=unknown
12088 version_type=none
12089 dynamic_linker="$host_os ld.so"
12090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12091 if test "$GCC" = yes; then
12092   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12093   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12094     # if the path contains ";" then we assume it to be the separator
12095     # otherwise default to the standard path separator (i.e. ":") - it is
12096     # assumed that no part of a normal pathname contains ";" but that should
12097     # okay in the real world where ";" in dirpaths is itself problematic.
12098     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12099   else
12100     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12101   fi
12102 else
12103   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12104 fi
12105 need_lib_prefix=unknown
12106 hardcode_into_libs=no
12107
12108 # when you set need_version to no, make sure it does not cause -set_version
12109 # flags to be left without arguments
12110 need_version=unknown
12111
12112 case $host_os in
12113 aix3*)
12114   version_type=linux
12115   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12116   shlibpath_var=LIBPATH
12117
12118   # AIX 3 has no versioning support, so we append a major version to the name.
12119   soname_spec='${libname}${release}${shared_ext}$major'
12120   ;;
12121
12122 aix4* | aix5*)
12123   version_type=linux
12124   need_lib_prefix=no
12125   need_version=no
12126   hardcode_into_libs=yes
12127   if test "$host_cpu" = ia64; then
12128     # AIX 5 supports IA64
12129     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12130     shlibpath_var=LD_LIBRARY_PATH
12131   else
12132     # With GCC up to 2.95.x, collect2 would create an import file
12133     # for dependence libraries.  The import file would start with
12134     # the line `#! .'.  This would cause the generated library to
12135     # depend on `.', always an invalid library.  This was fixed in
12136     # development snapshots of GCC prior to 3.0.
12137     case $host_os in
12138       aix4 | aix4.[01] | aix4.[01].*)
12139       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12140            echo ' yes '
12141            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12142         :
12143       else
12144         can_build_shared=no
12145       fi
12146       ;;
12147     esac
12148     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12149     # soname into executable. Probably we can add versioning support to
12150     # collect2, so additional links can be useful in future.
12151     if test "$aix_use_runtimelinking" = yes; then
12152       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12153       # instead of lib<name>.a to let people know that these are not
12154       # typical AIX shared libraries.
12155       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12156     else
12157       # We preserve .a as extension for shared libraries through AIX4.2
12158       # and later when we are not doing run time linking.
12159       library_names_spec='${libname}${release}.a $libname.a'
12160       soname_spec='${libname}${release}${shared_ext}$major'
12161     fi
12162     shlibpath_var=LIBPATH
12163   fi
12164   ;;
12165
12166 amigaos*)
12167   library_names_spec='$libname.ixlibrary $libname.a'
12168   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12169   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12170   ;;
12171
12172 beos*)
12173   library_names_spec='${libname}${shared_ext}'
12174   dynamic_linker="$host_os ld.so"
12175   shlibpath_var=LIBRARY_PATH
12176   ;;
12177
12178 bsdi[45]*)
12179   version_type=linux
12180   need_version=no
12181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12182   soname_spec='${libname}${release}${shared_ext}$major'
12183   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12184   shlibpath_var=LD_LIBRARY_PATH
12185   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12186   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12187   # the default ld.so.conf also contains /usr/contrib/lib and
12188   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12189   # libtool to hard-code these into programs
12190   ;;
12191
12192 cygwin* | mingw* | pw32*)
12193   version_type=windows
12194   shrext_cmds=".dll"
12195   need_version=no
12196   need_lib_prefix=no
12197
12198   case $GCC,$host_os in
12199   yes,cygwin* | yes,mingw* | yes,pw32*)
12200     library_names_spec='$libname.dll.a'
12201     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12202     postinstall_cmds='base_file=`basename \${file}`~
12203       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12204       dldir=$destdir/`dirname \$dlpath`~
12205       test -d \$dldir || mkdir -p \$dldir~
12206       $install_prog $dir/$dlname \$dldir/$dlname~
12207       chmod a+x \$dldir/$dlname'
12208     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12209       dlpath=$dir/\$dldll~
12210        $rm \$dlpath'
12211     shlibpath_overrides_runpath=yes
12212
12213     case $host_os in
12214     cygwin*)
12215       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12216       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12217       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12218       ;;
12219     mingw*)
12220       # MinGW DLLs use traditional 'lib' prefix
12221       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12222       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12223       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12224         # It is most probably a Windows format PATH printed by
12225         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12226         # path with ; separators, and with drive letters. We can handle the
12227         # drive letters (cygwin fileutils understands them), so leave them,
12228         # especially as we might pass files found there to a mingw objdump,
12229         # which wouldn't understand a cygwinified path. Ahh.
12230         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12231       else
12232         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12233       fi
12234       ;;
12235     pw32*)
12236       # pw32 DLLs use 'pw' prefix rather than 'lib'
12237       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12238       ;;
12239     esac
12240     ;;
12241
12242   *)
12243     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12244     ;;
12245   esac
12246   dynamic_linker='Win32 ld.exe'
12247   # FIXME: first we should search . and the directory the executable is in
12248   shlibpath_var=PATH
12249   ;;
12250
12251 darwin* | rhapsody*)
12252   dynamic_linker="$host_os dyld"
12253   version_type=darwin
12254   need_lib_prefix=no
12255   need_version=no
12256   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12257   soname_spec='${libname}${release}${major}$shared_ext'
12258   shlibpath_overrides_runpath=yes
12259   shlibpath_var=DYLD_LIBRARY_PATH
12260   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12261   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12262   if test "$GCC" = yes; then
12263     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12264   else
12265     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12266   fi
12267   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12268   ;;
12269
12270 dgux*)
12271   version_type=linux
12272   need_lib_prefix=no
12273   need_version=no
12274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12275   soname_spec='${libname}${release}${shared_ext}$major'
12276   shlibpath_var=LD_LIBRARY_PATH
12277   ;;
12278
12279 freebsd1*)
12280   dynamic_linker=no
12281   ;;
12282
12283 kfreebsd*-gnu)
12284   version_type=linux
12285   need_lib_prefix=no
12286   need_version=no
12287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12288   soname_spec='${libname}${release}${shared_ext}$major'
12289   shlibpath_var=LD_LIBRARY_PATH
12290   shlibpath_overrides_runpath=no
12291   hardcode_into_libs=yes
12292   dynamic_linker='GNU ld.so'
12293   ;;
12294
12295 freebsd* | dragonfly*)
12296   # DragonFly does not have aout.  When/if they implement a new
12297   # versioning mechanism, adjust this.
12298   if test -x /usr/bin/objformat; then
12299     objformat=`/usr/bin/objformat`
12300   else
12301     case $host_os in
12302     freebsd[123]*) objformat=aout ;;
12303     *) objformat=elf ;;
12304     esac
12305   fi
12306   version_type=freebsd-$objformat
12307   case $version_type in
12308     freebsd-elf*)
12309       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12310       need_version=no
12311       need_lib_prefix=no
12312       ;;
12313     freebsd-*)
12314       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12315       need_version=yes
12316       ;;
12317   esac
12318   shlibpath_var=LD_LIBRARY_PATH
12319   case $host_os in
12320   freebsd2*)
12321     shlibpath_overrides_runpath=yes
12322     ;;
12323   freebsd3.[01]* | freebsdelf3.[01]*)
12324     shlibpath_overrides_runpath=yes
12325     hardcode_into_libs=yes
12326     ;;
12327   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12328   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12329     shlibpath_overrides_runpath=no
12330     hardcode_into_libs=yes
12331     ;;
12332   freebsd*) # from 4.6 on
12333     shlibpath_overrides_runpath=yes
12334     hardcode_into_libs=yes
12335     ;;
12336   esac
12337   ;;
12338
12339 gnu*)
12340   version_type=linux
12341   need_lib_prefix=no
12342   need_version=no
12343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12344   soname_spec='${libname}${release}${shared_ext}$major'
12345   shlibpath_var=LD_LIBRARY_PATH
12346   hardcode_into_libs=yes
12347   ;;
12348
12349 hpux9* | hpux10* | hpux11*)
12350   # Give a soname corresponding to the major version so that dld.sl refuses to
12351   # link against other versions.
12352   version_type=sunos
12353   need_lib_prefix=no
12354   need_version=no
12355   case $host_cpu in
12356   ia64*)
12357     shrext_cmds='.so'
12358     hardcode_into_libs=yes
12359     dynamic_linker="$host_os dld.so"
12360     shlibpath_var=LD_LIBRARY_PATH
12361     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363     soname_spec='${libname}${release}${shared_ext}$major'
12364     if test "X$HPUX_IA64_MODE" = X32; then
12365       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12366     else
12367       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12368     fi
12369     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12370     ;;
12371    hppa*64*)
12372      shrext_cmds='.sl'
12373      hardcode_into_libs=yes
12374      dynamic_linker="$host_os dld.sl"
12375      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12376      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12377      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378      soname_spec='${libname}${release}${shared_ext}$major'
12379      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12380      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12381      ;;
12382    *)
12383     shrext_cmds='.sl'
12384     dynamic_linker="$host_os dld.sl"
12385     shlibpath_var=SHLIB_PATH
12386     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12387     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12388     soname_spec='${libname}${release}${shared_ext}$major'
12389     ;;
12390   esac
12391   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12392   postinstall_cmds='chmod 555 $lib'
12393   ;;
12394
12395 interix3*)
12396   version_type=linux
12397   need_lib_prefix=no
12398   need_version=no
12399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12400   soname_spec='${libname}${release}${shared_ext}$major'
12401   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12402   shlibpath_var=LD_LIBRARY_PATH
12403   shlibpath_overrides_runpath=no
12404   hardcode_into_libs=yes
12405   ;;
12406
12407 irix5* | irix6* | nonstopux*)
12408   case $host_os in
12409     nonstopux*) version_type=nonstopux ;;
12410     *)
12411         if test "$lt_cv_prog_gnu_ld" = yes; then
12412                 version_type=linux
12413         else
12414                 version_type=irix
12415         fi ;;
12416   esac
12417   need_lib_prefix=no
12418   need_version=no
12419   soname_spec='${libname}${release}${shared_ext}$major'
12420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12421   case $host_os in
12422   irix5* | nonstopux*)
12423     libsuff= shlibsuff=
12424     ;;
12425   *)
12426     case $LD in # libtool.m4 will add one of these switches to LD
12427     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12428       libsuff= shlibsuff= libmagic=32-bit;;
12429     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12430       libsuff=32 shlibsuff=N32 libmagic=N32;;
12431     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12432       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12433     *) libsuff= shlibsuff= libmagic=never-match;;
12434     esac
12435     ;;
12436   esac
12437   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12438   shlibpath_overrides_runpath=no
12439   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12440   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12441   hardcode_into_libs=yes
12442   ;;
12443
12444 # No shared lib support for Linux oldld, aout, or coff.
12445 linux*oldld* | linux*aout* | linux*coff*)
12446   dynamic_linker=no
12447   ;;
12448
12449 # This must be Linux ELF.
12450 linux*)
12451   version_type=linux
12452   need_lib_prefix=no
12453   need_version=no
12454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12455   soname_spec='${libname}${release}${shared_ext}$major'
12456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12457   shlibpath_var=LD_LIBRARY_PATH
12458   shlibpath_overrides_runpath=no
12459   # This implies no fast_install, which is unacceptable.
12460   # Some rework will be needed to allow for fast_install
12461   # before this can be enabled.
12462   hardcode_into_libs=yes
12463
12464   # Append ld.so.conf contents to the search path
12465   if test -f /etc/ld.so.conf; then
12466     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12467     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12468   fi
12469
12470   # We used to test for /lib/ld.so.1 and disable shared libraries on
12471   # powerpc, because MkLinux only supported shared libraries with the
12472   # GNU dynamic linker.  Since this was broken with cross compilers,
12473   # most powerpc-linux boxes support dynamic linking these days and
12474   # people can always --disable-shared, the test was removed, and we
12475   # assume the GNU/Linux dynamic linker is in use.
12476   dynamic_linker='GNU/Linux ld.so'
12477   ;;
12478
12479 knetbsd*-gnu)
12480   version_type=linux
12481   need_lib_prefix=no
12482   need_version=no
12483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12484   soname_spec='${libname}${release}${shared_ext}$major'
12485   shlibpath_var=LD_LIBRARY_PATH
12486   shlibpath_overrides_runpath=no
12487   hardcode_into_libs=yes
12488   dynamic_linker='GNU ld.so'
12489   ;;
12490
12491 netbsd*)
12492   version_type=sunos
12493   need_lib_prefix=no
12494   need_version=no
12495   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12497     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12498     dynamic_linker='NetBSD (a.out) ld.so'
12499   else
12500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12501     soname_spec='${libname}${release}${shared_ext}$major'
12502     dynamic_linker='NetBSD ld.elf_so'
12503   fi
12504   shlibpath_var=LD_LIBRARY_PATH
12505   shlibpath_overrides_runpath=yes
12506   hardcode_into_libs=yes
12507   ;;
12508
12509 newsos6)
12510   version_type=linux
12511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512   shlibpath_var=LD_LIBRARY_PATH
12513   shlibpath_overrides_runpath=yes
12514   ;;
12515
12516 nto-qnx*)
12517   version_type=linux
12518   need_lib_prefix=no
12519   need_version=no
12520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12521   soname_spec='${libname}${release}${shared_ext}$major'
12522   shlibpath_var=LD_LIBRARY_PATH
12523   shlibpath_overrides_runpath=yes
12524   ;;
12525
12526 openbsd*)
12527   version_type=sunos
12528   sys_lib_dlsearch_path_spec="/usr/lib"
12529   need_lib_prefix=no
12530   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12531   case $host_os in
12532     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12533     *)                         need_version=no  ;;
12534   esac
12535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12537   shlibpath_var=LD_LIBRARY_PATH
12538   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12539     case $host_os in
12540       openbsd2.[89] | openbsd2.[89].*)
12541         shlibpath_overrides_runpath=no
12542         ;;
12543       *)
12544         shlibpath_overrides_runpath=yes
12545         ;;
12546       esac
12547   else
12548     shlibpath_overrides_runpath=yes
12549   fi
12550   ;;
12551
12552 os2*)
12553   libname_spec='$name'
12554   shrext_cmds=".dll"
12555   need_lib_prefix=no
12556   library_names_spec='$libname${shared_ext} $libname.a'
12557   dynamic_linker='OS/2 ld.exe'
12558   shlibpath_var=LIBPATH
12559   ;;
12560
12561 osf3* | osf4* | osf5*)
12562   version_type=osf
12563   need_lib_prefix=no
12564   need_version=no
12565   soname_spec='${libname}${release}${shared_ext}$major'
12566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12567   shlibpath_var=LD_LIBRARY_PATH
12568   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12569   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12570   ;;
12571
12572 solaris*)
12573   version_type=linux
12574   need_lib_prefix=no
12575   need_version=no
12576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12577   soname_spec='${libname}${release}${shared_ext}$major'
12578   shlibpath_var=LD_LIBRARY_PATH
12579   shlibpath_overrides_runpath=yes
12580   hardcode_into_libs=yes
12581   # ldd complains unless libraries are executable
12582   postinstall_cmds='chmod +x $lib'
12583   ;;
12584
12585 sunos4*)
12586   version_type=sunos
12587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12588   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12589   shlibpath_var=LD_LIBRARY_PATH
12590   shlibpath_overrides_runpath=yes
12591   if test "$with_gnu_ld" = yes; then
12592     need_lib_prefix=no
12593   fi
12594   need_version=yes
12595   ;;
12596
12597 sysv4 | sysv4.3*)
12598   version_type=linux
12599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12600   soname_spec='${libname}${release}${shared_ext}$major'
12601   shlibpath_var=LD_LIBRARY_PATH
12602   case $host_vendor in
12603     sni)
12604       shlibpath_overrides_runpath=no
12605       need_lib_prefix=no
12606       export_dynamic_flag_spec='${wl}-Blargedynsym'
12607       runpath_var=LD_RUN_PATH
12608       ;;
12609     siemens)
12610       need_lib_prefix=no
12611       ;;
12612     motorola)
12613       need_lib_prefix=no
12614       need_version=no
12615       shlibpath_overrides_runpath=no
12616       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12617       ;;
12618   esac
12619   ;;
12620
12621 sysv4*MP*)
12622   if test -d /usr/nec ;then
12623     version_type=linux
12624     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12625     soname_spec='$libname${shared_ext}.$major'
12626     shlibpath_var=LD_LIBRARY_PATH
12627   fi
12628   ;;
12629
12630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12631   version_type=freebsd-elf
12632   need_lib_prefix=no
12633   need_version=no
12634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12635   soname_spec='${libname}${release}${shared_ext}$major'
12636   shlibpath_var=LD_LIBRARY_PATH
12637   hardcode_into_libs=yes
12638   if test "$with_gnu_ld" = yes; then
12639     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12640     shlibpath_overrides_runpath=no
12641   else
12642     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12643     shlibpath_overrides_runpath=yes
12644     case $host_os in
12645       sco3.2v5*)
12646         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12647         ;;
12648     esac
12649   fi
12650   sys_lib_dlsearch_path_spec='/usr/lib'
12651   ;;
12652
12653 uts4*)
12654   version_type=linux
12655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656   soname_spec='${libname}${release}${shared_ext}$major'
12657   shlibpath_var=LD_LIBRARY_PATH
12658   ;;
12659
12660 *)
12661   dynamic_linker=no
12662   ;;
12663 esac
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12665 $as_echo "$dynamic_linker" >&6; }
12666 test "$dynamic_linker" = no && can_build_shared=no
12667
12668 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12669 if test "$GCC" = yes; then
12670   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12671 fi
12672
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12674 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12675 hardcode_action_CXX=
12676 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12677    test -n "$runpath_var_CXX" || \
12678    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12679
12680   # We can hardcode non-existant directories.
12681   if test "$hardcode_direct_CXX" != no &&
12682      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12683      # have to relink, otherwise we might link with an installed library
12684      # when we should be linking with a yet-to-be-installed one
12685      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12686      test "$hardcode_minus_L_CXX" != no; then
12687     # Linking always hardcodes the temporary library directory.
12688     hardcode_action_CXX=relink
12689   else
12690     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12691     hardcode_action_CXX=immediate
12692   fi
12693 else
12694   # We cannot hardcode anything, or else we can only hardcode existing
12695   # directories.
12696   hardcode_action_CXX=unsupported
12697 fi
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12699 $as_echo "$hardcode_action_CXX" >&6; }
12700
12701 if test "$hardcode_action_CXX" = relink; then
12702   # Fast installation is not supported
12703   enable_fast_install=no
12704 elif test "$shlibpath_overrides_runpath" = yes ||
12705      test "$enable_shared" = no; then
12706   # Fast installation is not necessary
12707   enable_fast_install=needless
12708 fi
12709
12710
12711 # The else clause should only fire when bootstrapping the
12712 # libtool distribution, otherwise you forgot to ship ltmain.sh
12713 # with your package, and you will get complaints that there are
12714 # no rules to generate ltmain.sh.
12715 if test -f "$ltmain"; then
12716   # See if we are running on zsh, and set the options which allow our commands through
12717   # without removal of \ escapes.
12718   if test -n "${ZSH_VERSION+set}" ; then
12719     setopt NO_GLOB_SUBST
12720   fi
12721   # Now quote all the things that may contain metacharacters while being
12722   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12723   # variables and quote the copies for generation of the libtool script.
12724   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12725     SED SHELL STRIP \
12726     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12727     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12728     deplibs_check_method reload_flag reload_cmds need_locks \
12729     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12730     lt_cv_sys_global_symbol_to_c_name_address \
12731     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12732     old_postinstall_cmds old_postuninstall_cmds \
12733     compiler_CXX \
12734     CC_CXX \
12735     LD_CXX \
12736     lt_prog_compiler_wl_CXX \
12737     lt_prog_compiler_pic_CXX \
12738     lt_prog_compiler_static_CXX \
12739     lt_prog_compiler_no_builtin_flag_CXX \
12740     export_dynamic_flag_spec_CXX \
12741     thread_safe_flag_spec_CXX \
12742     whole_archive_flag_spec_CXX \
12743     enable_shared_with_static_runtimes_CXX \
12744     old_archive_cmds_CXX \
12745     old_archive_from_new_cmds_CXX \
12746     predep_objects_CXX \
12747     postdep_objects_CXX \
12748     predeps_CXX \
12749     postdeps_CXX \
12750     compiler_lib_search_path_CXX \
12751     archive_cmds_CXX \
12752     archive_expsym_cmds_CXX \
12753     postinstall_cmds_CXX \
12754     postuninstall_cmds_CXX \
12755     old_archive_from_expsyms_cmds_CXX \
12756     allow_undefined_flag_CXX \
12757     no_undefined_flag_CXX \
12758     export_symbols_cmds_CXX \
12759     hardcode_libdir_flag_spec_CXX \
12760     hardcode_libdir_flag_spec_ld_CXX \
12761     hardcode_libdir_separator_CXX \
12762     hardcode_automatic_CXX \
12763     module_cmds_CXX \
12764     module_expsym_cmds_CXX \
12765     lt_cv_prog_compiler_c_o_CXX \
12766     exclude_expsyms_CXX \
12767     include_expsyms_CXX; do
12768
12769     case $var in
12770     old_archive_cmds_CXX | \
12771     old_archive_from_new_cmds_CXX | \
12772     archive_cmds_CXX | \
12773     archive_expsym_cmds_CXX | \
12774     module_cmds_CXX | \
12775     module_expsym_cmds_CXX | \
12776     old_archive_from_expsyms_cmds_CXX | \
12777     export_symbols_cmds_CXX | \
12778     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12779     postinstall_cmds | postuninstall_cmds | \
12780     old_postinstall_cmds | old_postuninstall_cmds | \
12781     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12782       # Double-quote double-evaled strings.
12783       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12784       ;;
12785     *)
12786       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12787       ;;
12788     esac
12789   done
12790
12791   case $lt_echo in
12792   *'\$0 --fallback-echo"')
12793     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12794     ;;
12795   esac
12796
12797 cfgfile="$ofile"
12798
12799   cat <<__EOF__ >> "$cfgfile"
12800 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12801
12802 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12803
12804 # Shell to use when invoking shell scripts.
12805 SHELL=$lt_SHELL
12806
12807 # Whether or not to build shared libraries.
12808 build_libtool_libs=$enable_shared
12809
12810 # Whether or not to build static libraries.
12811 build_old_libs=$enable_static
12812
12813 # Whether or not to add -lc for building shared libraries.
12814 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12815
12816 # Whether or not to disallow shared libs when runtime libs are static
12817 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12818
12819 # Whether or not to optimize for fast installation.
12820 fast_install=$enable_fast_install
12821
12822 # The host system.
12823 host_alias=$host_alias
12824 host=$host
12825 host_os=$host_os
12826
12827 # The build system.
12828 build_alias=$build_alias
12829 build=$build
12830 build_os=$build_os
12831
12832 # An echo program that does not interpret backslashes.
12833 echo=$lt_echo
12834
12835 # The archiver.
12836 AR=$lt_AR
12837 AR_FLAGS=$lt_AR_FLAGS
12838
12839 # A C compiler.
12840 LTCC=$lt_LTCC
12841
12842 # LTCC compiler flags.
12843 LTCFLAGS=$lt_LTCFLAGS
12844
12845 # A language-specific compiler.
12846 CC=$lt_compiler_CXX
12847
12848 # Is the compiler the GNU C compiler?
12849 with_gcc=$GCC_CXX
12850
12851 # An ERE matcher.
12852 EGREP=$lt_EGREP
12853
12854 # The linker used to build libraries.
12855 LD=$lt_LD_CXX
12856
12857 # Whether we need hard or soft links.
12858 LN_S=$lt_LN_S
12859
12860 # A BSD-compatible nm program.
12861 NM=$lt_NM
12862
12863 # A symbol stripping program
12864 STRIP=$lt_STRIP
12865
12866 # Used to examine libraries when file_magic_cmd begins "file"
12867 MAGIC_CMD=$MAGIC_CMD
12868
12869 # Used on cygwin: DLL creation program.
12870 DLLTOOL="$DLLTOOL"
12871
12872 # Used on cygwin: object dumper.
12873 OBJDUMP="$OBJDUMP"
12874
12875 # Used on cygwin: assembler.
12876 AS="$AS"
12877
12878 # The name of the directory that contains temporary libtool files.
12879 objdir=$objdir
12880
12881 # How to create reloadable object files.
12882 reload_flag=$lt_reload_flag
12883 reload_cmds=$lt_reload_cmds
12884
12885 # How to pass a linker flag through the compiler.
12886 wl=$lt_lt_prog_compiler_wl_CXX
12887
12888 # Object file suffix (normally "o").
12889 objext="$ac_objext"
12890
12891 # Old archive suffix (normally "a").
12892 libext="$libext"
12893
12894 # Shared library suffix (normally ".so").
12895 shrext_cmds='$shrext_cmds'
12896
12897 # Executable file suffix (normally "").
12898 exeext="$exeext"
12899
12900 # Additional compiler flags for building library objects.
12901 pic_flag=$lt_lt_prog_compiler_pic_CXX
12902 pic_mode=$pic_mode
12903
12904 # What is the maximum length of a command?
12905 max_cmd_len=$lt_cv_sys_max_cmd_len
12906
12907 # Does compiler simultaneously support -c and -o options?
12908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12909
12910 # Must we lock files when doing compilation?
12911 need_locks=$lt_need_locks
12912
12913 # Do we need the lib prefix for modules?
12914 need_lib_prefix=$need_lib_prefix
12915
12916 # Do we need a version for libraries?
12917 need_version=$need_version
12918
12919 # Whether dlopen is supported.
12920 dlopen_support=$enable_dlopen
12921
12922 # Whether dlopen of programs is supported.
12923 dlopen_self=$enable_dlopen_self
12924
12925 # Whether dlopen of statically linked programs is supported.
12926 dlopen_self_static=$enable_dlopen_self_static
12927
12928 # Compiler flag to prevent dynamic linking.
12929 link_static_flag=$lt_lt_prog_compiler_static_CXX
12930
12931 # Compiler flag to turn off builtin functions.
12932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12933
12934 # Compiler flag to allow reflexive dlopens.
12935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12936
12937 # Compiler flag to generate shared objects directly from archives.
12938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12939
12940 # Compiler flag to generate thread-safe objects.
12941 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12942
12943 # Library versioning type.
12944 version_type=$version_type
12945
12946 # Format of library name prefix.
12947 libname_spec=$lt_libname_spec
12948
12949 # List of archive names.  First name is the real one, the rest are links.
12950 # The last name is the one that the linker finds with -lNAME.
12951 library_names_spec=$lt_library_names_spec
12952
12953 # The coded name of the library, if different from the real name.
12954 soname_spec=$lt_soname_spec
12955
12956 # Commands used to build and install an old-style archive.
12957 RANLIB=$lt_RANLIB
12958 old_archive_cmds=$lt_old_archive_cmds_CXX
12959 old_postinstall_cmds=$lt_old_postinstall_cmds
12960 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12961
12962 # Create an old-style archive from a shared archive.
12963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12964
12965 # Create a temporary old-style archive to link instead of a shared archive.
12966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12967
12968 # Commands used to build and install a shared archive.
12969 archive_cmds=$lt_archive_cmds_CXX
12970 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12971 postinstall_cmds=$lt_postinstall_cmds
12972 postuninstall_cmds=$lt_postuninstall_cmds
12973
12974 # Commands used to build a loadable module (assumed same as above if empty)
12975 module_cmds=$lt_module_cmds_CXX
12976 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12977
12978 # Commands to strip libraries.
12979 old_striplib=$lt_old_striplib
12980 striplib=$lt_striplib
12981
12982 # Dependencies to place before the objects being linked to create a
12983 # shared library.
12984 predep_objects=$lt_predep_objects_CXX
12985
12986 # Dependencies to place after the objects being linked to create a
12987 # shared library.
12988 postdep_objects=$lt_postdep_objects_CXX
12989
12990 # Dependencies to place before the objects being linked to create a
12991 # shared library.
12992 predeps=$lt_predeps_CXX
12993
12994 # Dependencies to place after the objects being linked to create a
12995 # shared library.
12996 postdeps=$lt_postdeps_CXX
12997
12998 # The library search path used internally by the compiler when linking
12999 # a shared library.
13000 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13001
13002 # Method to check whether dependent libraries are shared objects.
13003 deplibs_check_method=$lt_deplibs_check_method
13004
13005 # Command to use when deplibs_check_method == file_magic.
13006 file_magic_cmd=$lt_file_magic_cmd
13007
13008 # Flag that allows shared libraries with undefined symbols to be built.
13009 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13010
13011 # Flag that forces no undefined symbols.
13012 no_undefined_flag=$lt_no_undefined_flag_CXX
13013
13014 # Commands used to finish a libtool library installation in a directory.
13015 finish_cmds=$lt_finish_cmds
13016
13017 # Same as above, but a single script fragment to be evaled but not shown.
13018 finish_eval=$lt_finish_eval
13019
13020 # Take the output of nm and produce a listing of raw symbols and C names.
13021 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13022
13023 # Transform the output of nm in a proper C declaration
13024 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13025
13026 # Transform the output of nm in a C name address pair
13027 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13028
13029 # This is the shared library runtime path variable.
13030 runpath_var=$runpath_var
13031
13032 # This is the shared library path variable.
13033 shlibpath_var=$shlibpath_var
13034
13035 # Is shlibpath searched before the hard-coded library search path?
13036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13037
13038 # How to hardcode a shared library path into an executable.
13039 hardcode_action=$hardcode_action_CXX
13040
13041 # Whether we should hardcode library paths into libraries.
13042 hardcode_into_libs=$hardcode_into_libs
13043
13044 # Flag to hardcode \$libdir into a binary during linking.
13045 # This must work even if \$libdir does not exist.
13046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13047
13048 # If ld is used when linking, flag to hardcode \$libdir into
13049 # a binary during linking. This must work even if \$libdir does
13050 # not exist.
13051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13052
13053 # Whether we need a single -rpath flag with a separated argument.
13054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13055
13056 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13057 # resulting binary.
13058 hardcode_direct=$hardcode_direct_CXX
13059
13060 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13061 # resulting binary.
13062 hardcode_minus_L=$hardcode_minus_L_CXX
13063
13064 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13065 # the resulting binary.
13066 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13067
13068 # Set to yes if building a shared library automatically hardcodes DIR into the library
13069 # and all subsequent libraries and executables linked against it.
13070 hardcode_automatic=$hardcode_automatic_CXX
13071
13072 # Variables whose values should be saved in libtool wrapper scripts and
13073 # restored at relink time.
13074 variables_saved_for_relink="$variables_saved_for_relink"
13075
13076 # Whether libtool must link a program against all its dependency libraries.
13077 link_all_deplibs=$link_all_deplibs_CXX
13078
13079 # Compile-time system search path for libraries
13080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13081
13082 # Run-time system search path for libraries
13083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13084
13085 # Fix the shell variable \$srcfile for the compiler.
13086 fix_srcfile_path="$fix_srcfile_path_CXX"
13087
13088 # Set to yes if exported symbols are required.
13089 always_export_symbols=$always_export_symbols_CXX
13090
13091 # The commands to list exported symbols.
13092 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13093
13094 # The commands to extract the exported symbol list from a shared archive.
13095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13096
13097 # Symbols that should not be listed in the preloaded symbols.
13098 exclude_expsyms=$lt_exclude_expsyms_CXX
13099
13100 # Symbols that must always be exported.
13101 include_expsyms=$lt_include_expsyms_CXX
13102
13103 # ### END LIBTOOL TAG CONFIG: $tagname
13104
13105 __EOF__
13106
13107
13108 else
13109   # If there is no Makefile yet, we rely on a make rule to execute
13110   # `config.status --recheck' to rerun these tests and create the
13111   # libtool script then.
13112   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13113   if test -f "$ltmain_in"; then
13114     test -f Makefile && make "$ltmain"
13115   fi
13116 fi
13117
13118
13119 ac_ext=c
13120 ac_cpp='$CPP $CPPFLAGS'
13121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13124
13125 CC=$lt_save_CC
13126 LDCXX=$LD
13127 LD=$lt_save_LD
13128 GCC=$lt_save_GCC
13129 with_gnu_ldcxx=$with_gnu_ld
13130 with_gnu_ld=$lt_save_with_gnu_ld
13131 lt_cv_path_LDCXX=$lt_cv_path_LD
13132 lt_cv_path_LD=$lt_save_path_LD
13133 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13134 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13135
13136         else
13137           tagname=""
13138         fi
13139         ;;
13140
13141       F77)
13142         if test -n "$F77" && test "X$F77" != "Xno"; then
13143
13144 ac_ext=f
13145 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13146 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13147 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13148
13149
13150 archive_cmds_need_lc_F77=no
13151 allow_undefined_flag_F77=
13152 always_export_symbols_F77=no
13153 archive_expsym_cmds_F77=
13154 export_dynamic_flag_spec_F77=
13155 hardcode_direct_F77=no
13156 hardcode_libdir_flag_spec_F77=
13157 hardcode_libdir_flag_spec_ld_F77=
13158 hardcode_libdir_separator_F77=
13159 hardcode_minus_L_F77=no
13160 hardcode_automatic_F77=no
13161 module_cmds_F77=
13162 module_expsym_cmds_F77=
13163 link_all_deplibs_F77=unknown
13164 old_archive_cmds_F77=$old_archive_cmds
13165 no_undefined_flag_F77=
13166 whole_archive_flag_spec_F77=
13167 enable_shared_with_static_runtimes_F77=no
13168
13169 # Source file extension for f77 test sources.
13170 ac_ext=f
13171
13172 # Object file extension for compiled f77 test sources.
13173 objext=o
13174 objext_F77=$objext
13175
13176 # Code to be used in simple compile tests
13177 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13178
13179 # Code to be used in simple link tests
13180 lt_simple_link_test_code="      program t\n      end\n"
13181
13182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13183
13184 # If no C compiler was specified, use CC.
13185 LTCC=${LTCC-"$CC"}
13186
13187 # If no C compiler flags were specified, use CFLAGS.
13188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13189
13190 # Allow CC to be a program name with arguments.
13191 compiler=$CC
13192
13193
13194 # save warnings/boilerplate of simple test code
13195 ac_outfile=conftest.$ac_objext
13196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13198 _lt_compiler_boilerplate=`cat conftest.err`
13199 $rm conftest*
13200
13201 ac_outfile=conftest.$ac_objext
13202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13204 _lt_linker_boilerplate=`cat conftest.err`
13205 $rm conftest*
13206
13207
13208 # Allow CC to be a program name with arguments.
13209 lt_save_CC="$CC"
13210 CC=${F77-"f77"}
13211 compiler=$CC
13212 compiler_F77=$CC
13213 for cc_temp in $compiler""; do
13214   case $cc_temp in
13215     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13216     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13217     \-*) ;;
13218     *) break;;
13219   esac
13220 done
13221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13222
13223
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13225 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13227 $as_echo "$can_build_shared" >&6; }
13228
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13230 $as_echo_n "checking whether to build shared libraries... " >&6; }
13231 test "$can_build_shared" = "no" && enable_shared=no
13232
13233 # On AIX, shared libraries and static libraries use the same namespace, and
13234 # are all built from PIC.
13235 case $host_os in
13236 aix3*)
13237   test "$enable_shared" = yes && enable_static=no
13238   if test -n "$RANLIB"; then
13239     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13240     postinstall_cmds='$RANLIB $lib'
13241   fi
13242   ;;
13243 aix4* | aix5*)
13244   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13245     test "$enable_shared" = yes && enable_static=no
13246   fi
13247   ;;
13248 esac
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13250 $as_echo "$enable_shared" >&6; }
13251
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13253 $as_echo_n "checking whether to build static libraries... " >&6; }
13254 # Make sure either enable_shared or enable_static is yes.
13255 test "$enable_shared" = yes || enable_static=yes
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13257 $as_echo "$enable_static" >&6; }
13258
13259 GCC_F77="$G77"
13260 LD_F77="$LD"
13261
13262 lt_prog_compiler_wl_F77=
13263 lt_prog_compiler_pic_F77=
13264 lt_prog_compiler_static_F77=
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13267 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13268
13269   if test "$GCC" = yes; then
13270     lt_prog_compiler_wl_F77='-Wl,'
13271     lt_prog_compiler_static_F77='-static'
13272
13273     case $host_os in
13274       aix*)
13275       # All AIX code is PIC.
13276       if test "$host_cpu" = ia64; then
13277         # AIX 5 now supports IA64 processor
13278         lt_prog_compiler_static_F77='-Bstatic'
13279       fi
13280       ;;
13281
13282     amigaos*)
13283       # FIXME: we need at least 68020 code to build shared libraries, but
13284       # adding the `-m68020' flag to GCC prevents building anything better,
13285       # like `-m68040'.
13286       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13287       ;;
13288
13289     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13290       # PIC is the default for these OSes.
13291       ;;
13292
13293     mingw* | pw32* | os2*)
13294       # This hack is so that the source file can tell whether it is being
13295       # built for inclusion in a dll (and should export symbols for example).
13296       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13297       ;;
13298
13299     darwin* | rhapsody*)
13300       # PIC is the default on this platform
13301       # Common symbols not allowed in MH_DYLIB files
13302       lt_prog_compiler_pic_F77='-fno-common'
13303       ;;
13304
13305     interix3*)
13306       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13307       # Instead, we relocate shared libraries at runtime.
13308       ;;
13309
13310     msdosdjgpp*)
13311       # Just because we use GCC doesn't mean we suddenly get shared libraries
13312       # on systems that don't support them.
13313       lt_prog_compiler_can_build_shared_F77=no
13314       enable_shared=no
13315       ;;
13316
13317     sysv4*MP*)
13318       if test -d /usr/nec; then
13319         lt_prog_compiler_pic_F77=-Kconform_pic
13320       fi
13321       ;;
13322
13323     hpux*)
13324       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13325       # not for PA HP-UX.
13326       case $host_cpu in
13327       hppa*64*|ia64*)
13328         # +Z the default
13329         ;;
13330       *)
13331         lt_prog_compiler_pic_F77='-fPIC'
13332         ;;
13333       esac
13334       ;;
13335
13336     *)
13337       lt_prog_compiler_pic_F77='-fPIC'
13338       ;;
13339     esac
13340   else
13341     # PORTME Check for flag to pass linker flags through the system compiler.
13342     case $host_os in
13343     aix*)
13344       lt_prog_compiler_wl_F77='-Wl,'
13345       if test "$host_cpu" = ia64; then
13346         # AIX 5 now supports IA64 processor
13347         lt_prog_compiler_static_F77='-Bstatic'
13348       else
13349         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13350       fi
13351       ;;
13352       darwin*)
13353         # PIC is the default on this platform
13354         # Common symbols not allowed in MH_DYLIB files
13355        case $cc_basename in
13356          xlc*)
13357          lt_prog_compiler_pic_F77='-qnocommon'
13358          lt_prog_compiler_wl_F77='-Wl,'
13359          ;;
13360        esac
13361        ;;
13362
13363     mingw* | pw32* | os2*)
13364       # This hack is so that the source file can tell whether it is being
13365       # built for inclusion in a dll (and should export symbols for example).
13366       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13367       ;;
13368
13369     hpux9* | hpux10* | hpux11*)
13370       lt_prog_compiler_wl_F77='-Wl,'
13371       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13372       # not for PA HP-UX.
13373       case $host_cpu in
13374       hppa*64*|ia64*)
13375         # +Z the default
13376         ;;
13377       *)
13378         lt_prog_compiler_pic_F77='+Z'
13379         ;;
13380       esac
13381       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13382       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13383       ;;
13384
13385     irix5* | irix6* | nonstopux*)
13386       lt_prog_compiler_wl_F77='-Wl,'
13387       # PIC (with -KPIC) is the default.
13388       lt_prog_compiler_static_F77='-non_shared'
13389       ;;
13390
13391     newsos6)
13392       lt_prog_compiler_pic_F77='-KPIC'
13393       lt_prog_compiler_static_F77='-Bstatic'
13394       ;;
13395
13396     linux*)
13397       case $cc_basename in
13398       icc* | ecc*)
13399         lt_prog_compiler_wl_F77='-Wl,'
13400         lt_prog_compiler_pic_F77='-KPIC'
13401         lt_prog_compiler_static_F77='-static'
13402         ;;
13403       pgcc* | pgf77* | pgf90* | pgf95*)
13404         # Portland Group compilers (*not* the Pentium gcc compiler,
13405         # which looks to be a dead project)
13406         lt_prog_compiler_wl_F77='-Wl,'
13407         lt_prog_compiler_pic_F77='-fpic'
13408         lt_prog_compiler_static_F77='-Bstatic'
13409         ;;
13410       ccc*)
13411         lt_prog_compiler_wl_F77='-Wl,'
13412         # All Alpha code is PIC.
13413         lt_prog_compiler_static_F77='-non_shared'
13414         ;;
13415       esac
13416       ;;
13417
13418     osf3* | osf4* | osf5*)
13419       lt_prog_compiler_wl_F77='-Wl,'
13420       # All OSF/1 code is PIC.
13421       lt_prog_compiler_static_F77='-non_shared'
13422       ;;
13423
13424     solaris*)
13425       lt_prog_compiler_pic_F77='-KPIC'
13426       lt_prog_compiler_static_F77='-Bstatic'
13427       case $cc_basename in
13428       f77* | f90* | f95*)
13429         lt_prog_compiler_wl_F77='-Qoption ld ';;
13430       *)
13431         lt_prog_compiler_wl_F77='-Wl,';;
13432       esac
13433       ;;
13434
13435     sunos4*)
13436       lt_prog_compiler_wl_F77='-Qoption ld '
13437       lt_prog_compiler_pic_F77='-PIC'
13438       lt_prog_compiler_static_F77='-Bstatic'
13439       ;;
13440
13441     sysv4 | sysv4.2uw2* | sysv4.3*)
13442       lt_prog_compiler_wl_F77='-Wl,'
13443       lt_prog_compiler_pic_F77='-KPIC'
13444       lt_prog_compiler_static_F77='-Bstatic'
13445       ;;
13446
13447     sysv4*MP*)
13448       if test -d /usr/nec ;then
13449         lt_prog_compiler_pic_F77='-Kconform_pic'
13450         lt_prog_compiler_static_F77='-Bstatic'
13451       fi
13452       ;;
13453
13454     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13455       lt_prog_compiler_wl_F77='-Wl,'
13456       lt_prog_compiler_pic_F77='-KPIC'
13457       lt_prog_compiler_static_F77='-Bstatic'
13458       ;;
13459
13460     unicos*)
13461       lt_prog_compiler_wl_F77='-Wl,'
13462       lt_prog_compiler_can_build_shared_F77=no
13463       ;;
13464
13465     uts4*)
13466       lt_prog_compiler_pic_F77='-pic'
13467       lt_prog_compiler_static_F77='-Bstatic'
13468       ;;
13469
13470     *)
13471       lt_prog_compiler_can_build_shared_F77=no
13472       ;;
13473     esac
13474   fi
13475
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13477 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13478
13479 #
13480 # Check to make sure the PIC flag actually works.
13481 #
13482 if test -n "$lt_prog_compiler_pic_F77"; then
13483
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13485 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13486 if ${lt_prog_compiler_pic_works_F77+:} false; then :
13487   $as_echo_n "(cached) " >&6
13488 else
13489   lt_prog_compiler_pic_works_F77=no
13490   ac_outfile=conftest.$ac_objext
13491    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13492    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13493    # Insert the option either (1) after the last *FLAGS variable, or
13494    # (2) before a word containing "conftest.", or (3) at the end.
13495    # Note that $ac_compile itself does not contain backslashes and begins
13496    # with a dollar sign (not a hyphen), so the echo should work correctly.
13497    # The option is referenced via a variable to avoid confusing sed.
13498    lt_compile=`echo "$ac_compile" | $SED \
13499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13501    -e 's:$: $lt_compiler_flag:'`
13502    (eval echo "\"\$as_me:13502: $lt_compile\"" >&5)
13503    (eval "$lt_compile" 2>conftest.err)
13504    ac_status=$?
13505    cat conftest.err >&5
13506    echo "$as_me:13506: \$? = $ac_status" >&5
13507    if (exit $ac_status) && test -s "$ac_outfile"; then
13508      # The compiler can only warn and ignore the option if not recognized
13509      # So say no if there are warnings other than the usual output.
13510      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13511      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13512      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13513        lt_prog_compiler_pic_works_F77=yes
13514      fi
13515    fi
13516    $rm conftest*
13517
13518 fi
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13520 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13521
13522 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13523     case $lt_prog_compiler_pic_F77 in
13524      "" | " "*) ;;
13525      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13526      esac
13527 else
13528     lt_prog_compiler_pic_F77=
13529      lt_prog_compiler_can_build_shared_F77=no
13530 fi
13531
13532 fi
13533 case $host_os in
13534   # For platforms which do not support PIC, -DPIC is meaningless:
13535   *djgpp*)
13536     lt_prog_compiler_pic_F77=
13537     ;;
13538   *)
13539     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13540     ;;
13541 esac
13542
13543 #
13544 # Check to make sure the static flag actually works.
13545 #
13546 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13548 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13549 if ${lt_prog_compiler_static_works_F77+:} false; then :
13550   $as_echo_n "(cached) " >&6
13551 else
13552   lt_prog_compiler_static_works_F77=no
13553    save_LDFLAGS="$LDFLAGS"
13554    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13555    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13556    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13557      # The linker can only warn and ignore the option if not recognized
13558      # So say no if there are warnings
13559      if test -s conftest.err; then
13560        # Append any errors to the config.log.
13561        cat conftest.err 1>&5
13562        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13563        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13564        if diff conftest.exp conftest.er2 >/dev/null; then
13565          lt_prog_compiler_static_works_F77=yes
13566        fi
13567      else
13568        lt_prog_compiler_static_works_F77=yes
13569      fi
13570    fi
13571    $rm conftest*
13572    LDFLAGS="$save_LDFLAGS"
13573
13574 fi
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
13576 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
13577
13578 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13579     :
13580 else
13581     lt_prog_compiler_static_F77=
13582 fi
13583
13584
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13586 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13587 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13588   $as_echo_n "(cached) " >&6
13589 else
13590   lt_cv_prog_compiler_c_o_F77=no
13591    $rm -r conftest 2>/dev/null
13592    mkdir conftest
13593    cd conftest
13594    mkdir out
13595    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13596
13597    lt_compiler_flag="-o out/conftest2.$ac_objext"
13598    # Insert the option either (1) after the last *FLAGS variable, or
13599    # (2) before a word containing "conftest.", or (3) at the end.
13600    # Note that $ac_compile itself does not contain backslashes and begins
13601    # with a dollar sign (not a hyphen), so the echo should work correctly.
13602    lt_compile=`echo "$ac_compile" | $SED \
13603    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13604    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13605    -e 's:$: $lt_compiler_flag:'`
13606    (eval echo "\"\$as_me:13606: $lt_compile\"" >&5)
13607    (eval "$lt_compile" 2>out/conftest.err)
13608    ac_status=$?
13609    cat out/conftest.err >&5
13610    echo "$as_me:13610: \$? = $ac_status" >&5
13611    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13612    then
13613      # The compiler can only warn and ignore the option if not recognized
13614      # So say no if there are warnings
13615      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13616      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13617      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13618        lt_cv_prog_compiler_c_o_F77=yes
13619      fi
13620    fi
13621    chmod u+w . 2>&5
13622    $rm conftest*
13623    # SGI C++ compiler will create directory out/ii_files/ for
13624    # template instantiation
13625    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13626    $rm out/* && rmdir out
13627    cd ..
13628    rmdir conftest
13629    $rm conftest*
13630
13631 fi
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13633 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13634
13635
13636 hard_links="nottested"
13637 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13638   # do not overwrite the value of need_locks provided by the user
13639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13640 $as_echo_n "checking if we can lock with hard links... " >&6; }
13641   hard_links=yes
13642   $rm conftest*
13643   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13644   touch conftest.a
13645   ln conftest.a conftest.b 2>&5 || hard_links=no
13646   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13648 $as_echo "$hard_links" >&6; }
13649   if test "$hard_links" = no; then
13650     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13651 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13652     need_locks=warn
13653   fi
13654 else
13655   need_locks=no
13656 fi
13657
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13659 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13660
13661   runpath_var=
13662   allow_undefined_flag_F77=
13663   enable_shared_with_static_runtimes_F77=no
13664   archive_cmds_F77=
13665   archive_expsym_cmds_F77=
13666   old_archive_From_new_cmds_F77=
13667   old_archive_from_expsyms_cmds_F77=
13668   export_dynamic_flag_spec_F77=
13669   whole_archive_flag_spec_F77=
13670   thread_safe_flag_spec_F77=
13671   hardcode_libdir_flag_spec_F77=
13672   hardcode_libdir_flag_spec_ld_F77=
13673   hardcode_libdir_separator_F77=
13674   hardcode_direct_F77=no
13675   hardcode_minus_L_F77=no
13676   hardcode_shlibpath_var_F77=unsupported
13677   link_all_deplibs_F77=unknown
13678   hardcode_automatic_F77=no
13679   module_cmds_F77=
13680   module_expsym_cmds_F77=
13681   always_export_symbols_F77=no
13682   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13683   # include_expsyms should be a list of space-separated symbols to be *always*
13684   # included in the symbol list
13685   include_expsyms_F77=
13686   # exclude_expsyms can be an extended regexp of symbols to exclude
13687   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13688   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13689   # as well as any symbol that contains `d'.
13690   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13691   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13692   # platforms (ab)use it in PIC code, but their linkers get confused if
13693   # the symbol is explicitly referenced.  Since portable code cannot
13694   # rely on this symbol name, it's probably fine to never include it in
13695   # preloaded symbol tables.
13696   extract_expsyms_cmds=
13697   # Just being paranoid about ensuring that cc_basename is set.
13698   for cc_temp in $compiler""; do
13699   case $cc_temp in
13700     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13701     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13702     \-*) ;;
13703     *) break;;
13704   esac
13705 done
13706 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13707
13708   case $host_os in
13709   cygwin* | mingw* | pw32*)
13710     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13711     # When not using gcc, we currently assume that we are using
13712     # Microsoft Visual C++.
13713     if test "$GCC" != yes; then
13714       with_gnu_ld=no
13715     fi
13716     ;;
13717   interix*)
13718     # we just hope/assume this is gcc and not c89 (= MSVC++)
13719     with_gnu_ld=yes
13720     ;;
13721   openbsd*)
13722     with_gnu_ld=no
13723     ;;
13724   esac
13725
13726   ld_shlibs_F77=yes
13727   if test "$with_gnu_ld" = yes; then
13728     # If archive_cmds runs LD, not CC, wlarc should be empty
13729     wlarc='${wl}'
13730
13731     # Set some defaults for GNU ld with shared library support. These
13732     # are reset later if shared libraries are not supported. Putting them
13733     # here allows them to be overridden if necessary.
13734     runpath_var=LD_RUN_PATH
13735     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13736     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13737     # ancient GNU ld didn't support --whole-archive et. al.
13738     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13739         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13740       else
13741         whole_archive_flag_spec_F77=
13742     fi
13743     supports_anon_versioning=no
13744     case `$LD -v 2>/dev/null` in
13745       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13746       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13747       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13748       *\ 2.11.*) ;; # other 2.11 versions
13749       *) supports_anon_versioning=yes ;;
13750     esac
13751
13752     # See if GNU ld supports shared libraries.
13753     case $host_os in
13754     aix3* | aix4* | aix5*)
13755       # On AIX/PPC, the GNU linker is very broken
13756       if test "$host_cpu" != ia64; then
13757         ld_shlibs_F77=no
13758         cat <<EOF 1>&2
13759
13760 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13761 *** to be unable to reliably create shared libraries on AIX.
13762 *** Therefore, libtool is disabling shared libraries support.  If you
13763 *** really care for shared libraries, you may want to modify your PATH
13764 *** so that a non-GNU linker is found, and then restart.
13765
13766 EOF
13767       fi
13768       ;;
13769
13770     amigaos*)
13771       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)'
13772       hardcode_libdir_flag_spec_F77='-L$libdir'
13773       hardcode_minus_L_F77=yes
13774
13775       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13776       # that the semantics of dynamic libraries on AmigaOS, at least up
13777       # to version 4, is to share data among multiple programs linked
13778       # with the same dynamic library.  Since this doesn't match the
13779       # behavior of shared libraries on other platforms, we can't use
13780       # them.
13781       ld_shlibs_F77=no
13782       ;;
13783
13784     beos*)
13785       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13786         allow_undefined_flag_F77=unsupported
13787         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13788         # support --undefined.  This deserves some investigation.  FIXME
13789         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13790       else
13791         ld_shlibs_F77=no
13792       fi
13793       ;;
13794
13795     cygwin* | mingw* | pw32*)
13796       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13797       # as there is no search path for DLLs.
13798       hardcode_libdir_flag_spec_F77='-L$libdir'
13799       allow_undefined_flag_F77=unsupported
13800       always_export_symbols_F77=no
13801       enable_shared_with_static_runtimes_F77=yes
13802       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13803
13804       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13805         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13806         # If the export-symbols file already is a .def file (1st line
13807         # is EXPORTS), use it as is; otherwise, prepend...
13808         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13809           cp $export_symbols $output_objdir/$soname.def;
13810         else
13811           echo EXPORTS > $output_objdir/$soname.def;
13812           cat $export_symbols >> $output_objdir/$soname.def;
13813         fi~
13814         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13815       else
13816         ld_shlibs_F77=no
13817       fi
13818       ;;
13819
13820     interix3*)
13821       hardcode_direct_F77=no
13822       hardcode_shlibpath_var_F77=no
13823       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13824       export_dynamic_flag_spec_F77='${wl}-E'
13825       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13826       # Instead, shared libraries are loaded at an image base (0x10000000 by
13827       # default) and relocated if they conflict, which is a slow very memory
13828       # consuming and fragmenting process.  To avoid this, we pick a random,
13829       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13830       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13831       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'
13832       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'
13833       ;;
13834
13835     linux*)
13836       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13837         tmp_addflag=
13838         case $cc_basename,$host_cpu in
13839         pgcc*)                          # Portland Group C compiler
13840           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13841           tmp_addflag=' $pic_flag'
13842           ;;
13843         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13844           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13845           tmp_addflag=' $pic_flag -Mnomain' ;;
13846         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13847           tmp_addflag=' -i_dynamic' ;;
13848         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13849           tmp_addflag=' -i_dynamic -nofor_main' ;;
13850         ifc* | ifort*)                  # Intel Fortran compiler
13851           tmp_addflag=' -nofor_main' ;;
13852         esac
13853         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13854
13855         if test $supports_anon_versioning = yes; then
13856           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13857   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13858   $echo "local: *; };" >> $output_objdir/$libname.ver~
13859           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13860         fi
13861       else
13862         ld_shlibs_F77=no
13863       fi
13864       ;;
13865
13866     netbsd*)
13867       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13868         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13869         wlarc=
13870       else
13871         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13872         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13873       fi
13874       ;;
13875
13876     solaris*)
13877       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13878         ld_shlibs_F77=no
13879         cat <<EOF 1>&2
13880
13881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13882 *** create shared libraries on Solaris systems.  Therefore, libtool
13883 *** is disabling shared libraries support.  We urge you to upgrade GNU
13884 *** binutils to release 2.9.1 or newer.  Another option is to modify
13885 *** your PATH or compiler configuration so that the native linker is
13886 *** used, and then restart.
13887
13888 EOF
13889       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13890         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13891         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13892       else
13893         ld_shlibs_F77=no
13894       fi
13895       ;;
13896
13897     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13898       case `$LD -v 2>&1` in
13899         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13900         ld_shlibs_F77=no
13901         cat <<_LT_EOF 1>&2
13902
13903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13904 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13905 *** is disabling shared libraries support.  We urge you to upgrade GNU
13906 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13907 *** your PATH or compiler configuration so that the native linker is
13908 *** used, and then restart.
13909
13910 _LT_EOF
13911         ;;
13912         *)
13913           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13914             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13915             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13916             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13917           else
13918             ld_shlibs_F77=no
13919           fi
13920         ;;
13921       esac
13922       ;;
13923
13924     sunos4*)
13925       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13926       wlarc=
13927       hardcode_direct_F77=yes
13928       hardcode_shlibpath_var_F77=no
13929       ;;
13930
13931     *)
13932       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13933         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13934         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13935       else
13936         ld_shlibs_F77=no
13937       fi
13938       ;;
13939     esac
13940
13941     if test "$ld_shlibs_F77" = no; then
13942       runpath_var=
13943       hardcode_libdir_flag_spec_F77=
13944       export_dynamic_flag_spec_F77=
13945       whole_archive_flag_spec_F77=
13946     fi
13947   else
13948     # PORTME fill in a description of your system's linker (not GNU ld)
13949     case $host_os in
13950     aix3*)
13951       allow_undefined_flag_F77=unsupported
13952       always_export_symbols_F77=yes
13953       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'
13954       # Note: this linker hardcodes the directories in LIBPATH if there
13955       # are no directories specified by -L.
13956       hardcode_minus_L_F77=yes
13957       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13958         # Neither direct hardcoding nor static linking is supported with a
13959         # broken collect2.
13960         hardcode_direct_F77=unsupported
13961       fi
13962       ;;
13963
13964     aix4* | aix5*)
13965       if test "$host_cpu" = ia64; then
13966         # On IA64, the linker does run time linking by default, so we don't
13967         # have to do anything special.
13968         aix_use_runtimelinking=no
13969         exp_sym_flag='-Bexport'
13970         no_entry_flag=""
13971       else
13972         # If we're using GNU nm, then we don't want the "-C" option.
13973         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13974         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13975           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13976         else
13977           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'
13978         fi
13979         aix_use_runtimelinking=no
13980
13981         # Test if we are trying to use run time linking or normal
13982         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13983         # need to do runtime linking.
13984         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13985           for ld_flag in $LDFLAGS; do
13986           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13987             aix_use_runtimelinking=yes
13988             break
13989           fi
13990           done
13991           ;;
13992         esac
13993
13994         exp_sym_flag='-bexport'
13995         no_entry_flag='-bnoentry'
13996       fi
13997
13998       # When large executables or shared objects are built, AIX ld can
13999       # have problems creating the table of contents.  If linking a library
14000       # or program results in "error TOC overflow" add -mminimal-toc to
14001       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14002       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14003
14004       archive_cmds_F77=''
14005       hardcode_direct_F77=yes
14006       hardcode_libdir_separator_F77=':'
14007       link_all_deplibs_F77=yes
14008
14009       if test "$GCC" = yes; then
14010         case $host_os in aix4.[012]|aix4.[012].*)
14011         # We only want to do this on AIX 4.2 and lower, the check
14012         # below for broken collect2 doesn't work under 4.3+
14013           collect2name=`${CC} -print-prog-name=collect2`
14014           if test -f "$collect2name" && \
14015            strings "$collect2name" | grep resolve_lib_name >/dev/null
14016           then
14017           # We have reworked collect2
14018           hardcode_direct_F77=yes
14019           else
14020           # We have old collect2
14021           hardcode_direct_F77=unsupported
14022           # It fails to find uninstalled libraries when the uninstalled
14023           # path is not listed in the libpath.  Setting hardcode_minus_L
14024           # to unsupported forces relinking
14025           hardcode_minus_L_F77=yes
14026           hardcode_libdir_flag_spec_F77='-L$libdir'
14027           hardcode_libdir_separator_F77=
14028           fi
14029           ;;
14030         esac
14031         shared_flag='-shared'
14032         if test "$aix_use_runtimelinking" = yes; then
14033           shared_flag="$shared_flag "'${wl}-G'
14034         fi
14035       else
14036         # not using gcc
14037         if test "$host_cpu" = ia64; then
14038         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14039         # chokes on -Wl,-G. The following line is correct:
14040           shared_flag='-G'
14041         else
14042           if test "$aix_use_runtimelinking" = yes; then
14043             shared_flag='${wl}-G'
14044           else
14045             shared_flag='${wl}-bM:SRE'
14046           fi
14047         fi
14048       fi
14049
14050       # It seems that -bexpall does not export symbols beginning with
14051       # underscore (_), so it is better to generate a list of symbols to export.
14052       always_export_symbols_F77=yes
14053       if test "$aix_use_runtimelinking" = yes; then
14054         # Warning - without using the other runtime loading flags (-brtl),
14055         # -berok will link without error, but may produce a broken library.
14056         allow_undefined_flag_F77='-berok'
14057        # Determine the default libpath from the value encoded in an empty executable.
14058        cat > conftest.$ac_ext <<_ACEOF
14059       program main
14060
14061       end
14062 _ACEOF
14063 if ac_fn_f77_try_link "$LINENO"; then :
14064
14065 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14066 }'`
14067 # Check for a 64-bit object if we didn't find anything.
14068 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14069 }'`; fi
14070 fi
14071 rm -f core conftest.err conftest.$ac_objext \
14072     conftest$ac_exeext conftest.$ac_ext
14073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14074
14075        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14076         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14077        else
14078         if test "$host_cpu" = ia64; then
14079           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14080           allow_undefined_flag_F77="-z nodefs"
14081           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"
14082         else
14083          # Determine the default libpath from the value encoded in an empty executable.
14084          cat > conftest.$ac_ext <<_ACEOF
14085       program main
14086
14087       end
14088 _ACEOF
14089 if ac_fn_f77_try_link "$LINENO"; then :
14090
14091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14092 }'`
14093 # Check for a 64-bit object if we didn't find anything.
14094 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14095 }'`; fi
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext \
14098     conftest$ac_exeext conftest.$ac_ext
14099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14100
14101          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14102           # Warning - without using the other run time loading flags,
14103           # -berok will link without error, but may produce a broken library.
14104           no_undefined_flag_F77=' ${wl}-bernotok'
14105           allow_undefined_flag_F77=' ${wl}-berok'
14106           # Exported symbols can be pulled into shared objects from archives
14107           whole_archive_flag_spec_F77='$convenience'
14108           archive_cmds_need_lc_F77=yes
14109           # This is similar to how AIX traditionally builds its shared libraries.
14110           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'
14111         fi
14112       fi
14113       ;;
14114
14115     amigaos*)
14116       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)'
14117       hardcode_libdir_flag_spec_F77='-L$libdir'
14118       hardcode_minus_L_F77=yes
14119       # see comment about different semantics on the GNU ld section
14120       ld_shlibs_F77=no
14121       ;;
14122
14123     bsdi[45]*)
14124       export_dynamic_flag_spec_F77=-rdynamic
14125       ;;
14126
14127     cygwin* | mingw* | pw32*)
14128       # When not using gcc, we currently assume that we are using
14129       # Microsoft Visual C++.
14130       # hardcode_libdir_flag_spec is actually meaningless, as there is
14131       # no search path for DLLs.
14132       hardcode_libdir_flag_spec_F77=' '
14133       allow_undefined_flag_F77=unsupported
14134       # Tell ltmain to make .lib files, not .a files.
14135       libext=lib
14136       # Tell ltmain to make .dll files, not .so files.
14137       shrext_cmds=".dll"
14138       # FIXME: Setting linknames here is a bad hack.
14139       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14140       # The linker will automatically build a .lib file if we build a DLL.
14141       old_archive_From_new_cmds_F77='true'
14142       # FIXME: Should let the user specify the lib program.
14143       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14144       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14145       enable_shared_with_static_runtimes_F77=yes
14146       ;;
14147
14148     darwin* | rhapsody*)
14149       case $host_os in
14150         rhapsody* | darwin1.[012])
14151          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14152          ;;
14153        *) # Darwin 1.3 on
14154          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14155            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14156          else
14157            case ${MACOSX_DEPLOYMENT_TARGET} in
14158              10.[012])
14159                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14160                ;;
14161              10.*)
14162                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14163                ;;
14164            esac
14165          fi
14166          ;;
14167       esac
14168       archive_cmds_need_lc_F77=no
14169       hardcode_direct_F77=no
14170       hardcode_automatic_F77=yes
14171       hardcode_shlibpath_var_F77=unsupported
14172       whole_archive_flag_spec_F77=''
14173       link_all_deplibs_F77=yes
14174     if test "$GCC" = yes ; then
14175         output_verbose_link_cmd='echo'
14176         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14177       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14178       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14179       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14180       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14181     else
14182       case $cc_basename in
14183         xlc*)
14184          output_verbose_link_cmd='echo'
14185          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14186          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14187           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14188          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14189           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14190           ;;
14191        *)
14192          ld_shlibs_F77=no
14193           ;;
14194       esac
14195     fi
14196       ;;
14197
14198     dgux*)
14199       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14200       hardcode_libdir_flag_spec_F77='-L$libdir'
14201       hardcode_shlibpath_var_F77=no
14202       ;;
14203
14204     freebsd1*)
14205       ld_shlibs_F77=no
14206       ;;
14207
14208     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14209     # support.  Future versions do this automatically, but an explicit c++rt0.o
14210     # does not break anything, and helps significantly (at the cost of a little
14211     # extra space).
14212     freebsd2.2*)
14213       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14214       hardcode_libdir_flag_spec_F77='-R$libdir'
14215       hardcode_direct_F77=yes
14216       hardcode_shlibpath_var_F77=no
14217       ;;
14218
14219     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14220     freebsd2*)
14221       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14222       hardcode_direct_F77=yes
14223       hardcode_minus_L_F77=yes
14224       hardcode_shlibpath_var_F77=no
14225       ;;
14226
14227     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14228     freebsd* | kfreebsd*-gnu | dragonfly*)
14229       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14230       hardcode_libdir_flag_spec_F77='-R$libdir'
14231       hardcode_direct_F77=yes
14232       hardcode_shlibpath_var_F77=no
14233       ;;
14234
14235     hpux9*)
14236       if test "$GCC" = yes; then
14237         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14238       else
14239         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'
14240       fi
14241       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14242       hardcode_libdir_separator_F77=:
14243       hardcode_direct_F77=yes
14244
14245       # hardcode_minus_L: Not really in the search PATH,
14246       # but as the default location of the library.
14247       hardcode_minus_L_F77=yes
14248       export_dynamic_flag_spec_F77='${wl}-E'
14249       ;;
14250
14251     hpux10*)
14252       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14253         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14254       else
14255         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14256       fi
14257       if test "$with_gnu_ld" = no; then
14258         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14259         hardcode_libdir_separator_F77=:
14260
14261         hardcode_direct_F77=yes
14262         export_dynamic_flag_spec_F77='${wl}-E'
14263
14264         # hardcode_minus_L: Not really in the search PATH,
14265         # but as the default location of the library.
14266         hardcode_minus_L_F77=yes
14267       fi
14268       ;;
14269
14270     hpux11*)
14271       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14272         case $host_cpu in
14273         hppa*64*)
14274           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14275           ;;
14276         ia64*)
14277           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14278           ;;
14279         *)
14280           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14281           ;;
14282         esac
14283       else
14284         case $host_cpu in
14285         hppa*64*)
14286           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14287           ;;
14288         ia64*)
14289           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14290           ;;
14291         *)
14292           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14293           ;;
14294         esac
14295       fi
14296       if test "$with_gnu_ld" = no; then
14297         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14298         hardcode_libdir_separator_F77=:
14299
14300         case $host_cpu in
14301         hppa*64*|ia64*)
14302           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14303           hardcode_direct_F77=no
14304           hardcode_shlibpath_var_F77=no
14305           ;;
14306         *)
14307           hardcode_direct_F77=yes
14308           export_dynamic_flag_spec_F77='${wl}-E'
14309
14310           # hardcode_minus_L: Not really in the search PATH,
14311           # but as the default location of the library.
14312           hardcode_minus_L_F77=yes
14313           ;;
14314         esac
14315       fi
14316       ;;
14317
14318     irix5* | irix6* | nonstopux*)
14319       if test "$GCC" = yes; then
14320         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14321       else
14322         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14323         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14324       fi
14325       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14326       hardcode_libdir_separator_F77=:
14327       link_all_deplibs_F77=yes
14328       ;;
14329
14330     netbsd*)
14331       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14332         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14333       else
14334         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14335       fi
14336       hardcode_libdir_flag_spec_F77='-R$libdir'
14337       hardcode_direct_F77=yes
14338       hardcode_shlibpath_var_F77=no
14339       ;;
14340
14341     newsos6)
14342       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14343       hardcode_direct_F77=yes
14344       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14345       hardcode_libdir_separator_F77=:
14346       hardcode_shlibpath_var_F77=no
14347       ;;
14348
14349     openbsd*)
14350       hardcode_direct_F77=yes
14351       hardcode_shlibpath_var_F77=no
14352       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14353         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14354         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14355         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14356         export_dynamic_flag_spec_F77='${wl}-E'
14357       else
14358        case $host_os in
14359          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14360            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14361            hardcode_libdir_flag_spec_F77='-R$libdir'
14362            ;;
14363          *)
14364            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14365            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14366            ;;
14367        esac
14368       fi
14369       ;;
14370
14371     os2*)
14372       hardcode_libdir_flag_spec_F77='-L$libdir'
14373       hardcode_minus_L_F77=yes
14374       allow_undefined_flag_F77=unsupported
14375       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'
14376       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14377       ;;
14378
14379     osf3*)
14380       if test "$GCC" = yes; then
14381         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14382         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14383       else
14384         allow_undefined_flag_F77=' -expect_unresolved \*'
14385         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14386       fi
14387       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14388       hardcode_libdir_separator_F77=:
14389       ;;
14390
14391     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14392       if test "$GCC" = yes; then
14393         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14394         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14395         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14396       else
14397         allow_undefined_flag_F77=' -expect_unresolved \*'
14398         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14399         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14400         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14401
14402         # Both c and cxx compiler support -rpath directly
14403         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14404       fi
14405       hardcode_libdir_separator_F77=:
14406       ;;
14407
14408     solaris*)
14409       no_undefined_flag_F77=' -z text'
14410       if test "$GCC" = yes; then
14411         wlarc='${wl}'
14412         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14413         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14414           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14415       else
14416         wlarc=''
14417         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14418         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14419         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14420       fi
14421       hardcode_libdir_flag_spec_F77='-R$libdir'
14422       hardcode_shlibpath_var_F77=no
14423       case $host_os in
14424       solaris2.[0-5] | solaris2.[0-5].*) ;;
14425       *)
14426         # The compiler driver will combine linker options so we
14427         # cannot just pass the convience library names through
14428         # without $wl, iff we do not link with $LD.
14429         # Luckily, gcc supports the same syntax we need for Sun Studio.
14430         # Supported since Solaris 2.6 (maybe 2.5.1?)
14431         case $wlarc in
14432         '')
14433           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14434         *)
14435           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14436         esac ;;
14437       esac
14438       link_all_deplibs_F77=yes
14439       ;;
14440
14441     sunos4*)
14442       if test "x$host_vendor" = xsequent; then
14443         # Use $CC to link under sequent, because it throws in some extra .o
14444         # files that make .init and .fini sections work.
14445         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14446       else
14447         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14448       fi
14449       hardcode_libdir_flag_spec_F77='-L$libdir'
14450       hardcode_direct_F77=yes
14451       hardcode_minus_L_F77=yes
14452       hardcode_shlibpath_var_F77=no
14453       ;;
14454
14455     sysv4)
14456       case $host_vendor in
14457         sni)
14458           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14459           hardcode_direct_F77=yes # is this really true???
14460         ;;
14461         siemens)
14462           ## LD is ld it makes a PLAMLIB
14463           ## CC just makes a GrossModule.
14464           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14465           reload_cmds_F77='$CC -r -o $output$reload_objs'
14466           hardcode_direct_F77=no
14467         ;;
14468         motorola)
14469           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14470           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14471         ;;
14472       esac
14473       runpath_var='LD_RUN_PATH'
14474       hardcode_shlibpath_var_F77=no
14475       ;;
14476
14477     sysv4.3*)
14478       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14479       hardcode_shlibpath_var_F77=no
14480       export_dynamic_flag_spec_F77='-Bexport'
14481       ;;
14482
14483     sysv4*MP*)
14484       if test -d /usr/nec; then
14485         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14486         hardcode_shlibpath_var_F77=no
14487         runpath_var=LD_RUN_PATH
14488         hardcode_runpath_var=yes
14489         ld_shlibs_F77=yes
14490       fi
14491       ;;
14492
14493     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14494       no_undefined_flag_F77='${wl}-z,text'
14495       archive_cmds_need_lc_F77=no
14496       hardcode_shlibpath_var_F77=no
14497       runpath_var='LD_RUN_PATH'
14498
14499       if test "$GCC" = yes; then
14500         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14501         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14502       else
14503         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14504         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14505       fi
14506       ;;
14507
14508     sysv5* | sco3.2v5* | sco5v6*)
14509       # Note: We can NOT use -z defs as we might desire, because we do not
14510       # link with -lc, and that would cause any symbols used from libc to
14511       # always be unresolved, which means just about no library would
14512       # ever link correctly.  If we're not using GNU ld we use -z text
14513       # though, which does catch some bad symbols but isn't as heavy-handed
14514       # as -z defs.
14515       no_undefined_flag_F77='${wl}-z,text'
14516       allow_undefined_flag_F77='${wl}-z,nodefs'
14517       archive_cmds_need_lc_F77=no
14518       hardcode_shlibpath_var_F77=no
14519       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14520       hardcode_libdir_separator_F77=':'
14521       link_all_deplibs_F77=yes
14522       export_dynamic_flag_spec_F77='${wl}-Bexport'
14523       runpath_var='LD_RUN_PATH'
14524
14525       if test "$GCC" = yes; then
14526         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14527         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14528       else
14529         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14530         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14531       fi
14532       ;;
14533
14534     uts4*)
14535       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14536       hardcode_libdir_flag_spec_F77='-L$libdir'
14537       hardcode_shlibpath_var_F77=no
14538       ;;
14539
14540     *)
14541       ld_shlibs_F77=no
14542       ;;
14543     esac
14544   fi
14545
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14547 $as_echo "$ld_shlibs_F77" >&6; }
14548 test "$ld_shlibs_F77" = no && can_build_shared=no
14549
14550 #
14551 # Do we need to explicitly link libc?
14552 #
14553 case "x$archive_cmds_need_lc_F77" in
14554 x|xyes)
14555   # Assume -lc should be added
14556   archive_cmds_need_lc_F77=yes
14557
14558   if test "$enable_shared" = yes && test "$GCC" = yes; then
14559     case $archive_cmds_F77 in
14560     *'~'*)
14561       # FIXME: we may have to deal with multi-command sequences.
14562       ;;
14563     '$CC '*)
14564       # Test whether the compiler implicitly links with -lc since on some
14565       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14566       # to ld, don't add -lc before -lgcc.
14567       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14568 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14569       $rm conftest*
14570       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14571
14572       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14573   (eval $ac_compile) 2>&5
14574   ac_status=$?
14575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14576   test $ac_status = 0; } 2>conftest.err; then
14577         soname=conftest
14578         lib=conftest
14579         libobjs=conftest.$ac_objext
14580         deplibs=
14581         wl=$lt_prog_compiler_wl_F77
14582         pic_flag=$lt_prog_compiler_pic_F77
14583         compiler_flags=-v
14584         linker_flags=-v
14585         verstring=
14586         output_objdir=.
14587         libname=conftest
14588         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14589         allow_undefined_flag_F77=
14590         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14591   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14592   ac_status=$?
14593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14594   test $ac_status = 0; }
14595         then
14596           archive_cmds_need_lc_F77=no
14597         else
14598           archive_cmds_need_lc_F77=yes
14599         fi
14600         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14601       else
14602         cat conftest.err 1>&5
14603       fi
14604       $rm conftest*
14605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14606 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14607       ;;
14608     esac
14609   fi
14610   ;;
14611 esac
14612
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14614 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14615 library_names_spec=
14616 libname_spec='lib$name'
14617 soname_spec=
14618 shrext_cmds=".so"
14619 postinstall_cmds=
14620 postuninstall_cmds=
14621 finish_cmds=
14622 finish_eval=
14623 shlibpath_var=
14624 shlibpath_overrides_runpath=unknown
14625 version_type=none
14626 dynamic_linker="$host_os ld.so"
14627 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14628 if test "$GCC" = yes; then
14629   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14630   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14631     # if the path contains ";" then we assume it to be the separator
14632     # otherwise default to the standard path separator (i.e. ":") - it is
14633     # assumed that no part of a normal pathname contains ";" but that should
14634     # okay in the real world where ";" in dirpaths is itself problematic.
14635     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14636   else
14637     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14638   fi
14639 else
14640   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14641 fi
14642 need_lib_prefix=unknown
14643 hardcode_into_libs=no
14644
14645 # when you set need_version to no, make sure it does not cause -set_version
14646 # flags to be left without arguments
14647 need_version=unknown
14648
14649 case $host_os in
14650 aix3*)
14651   version_type=linux
14652   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14653   shlibpath_var=LIBPATH
14654
14655   # AIX 3 has no versioning support, so we append a major version to the name.
14656   soname_spec='${libname}${release}${shared_ext}$major'
14657   ;;
14658
14659 aix4* | aix5*)
14660   version_type=linux
14661   need_lib_prefix=no
14662   need_version=no
14663   hardcode_into_libs=yes
14664   if test "$host_cpu" = ia64; then
14665     # AIX 5 supports IA64
14666     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14667     shlibpath_var=LD_LIBRARY_PATH
14668   else
14669     # With GCC up to 2.95.x, collect2 would create an import file
14670     # for dependence libraries.  The import file would start with
14671     # the line `#! .'.  This would cause the generated library to
14672     # depend on `.', always an invalid library.  This was fixed in
14673     # development snapshots of GCC prior to 3.0.
14674     case $host_os in
14675       aix4 | aix4.[01] | aix4.[01].*)
14676       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14677            echo ' yes '
14678            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14679         :
14680       else
14681         can_build_shared=no
14682       fi
14683       ;;
14684     esac
14685     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14686     # soname into executable. Probably we can add versioning support to
14687     # collect2, so additional links can be useful in future.
14688     if test "$aix_use_runtimelinking" = yes; then
14689       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14690       # instead of lib<name>.a to let people know that these are not
14691       # typical AIX shared libraries.
14692       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693     else
14694       # We preserve .a as extension for shared libraries through AIX4.2
14695       # and later when we are not doing run time linking.
14696       library_names_spec='${libname}${release}.a $libname.a'
14697       soname_spec='${libname}${release}${shared_ext}$major'
14698     fi
14699     shlibpath_var=LIBPATH
14700   fi
14701   ;;
14702
14703 amigaos*)
14704   library_names_spec='$libname.ixlibrary $libname.a'
14705   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14706   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14707   ;;
14708
14709 beos*)
14710   library_names_spec='${libname}${shared_ext}'
14711   dynamic_linker="$host_os ld.so"
14712   shlibpath_var=LIBRARY_PATH
14713   ;;
14714
14715 bsdi[45]*)
14716   version_type=linux
14717   need_version=no
14718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719   soname_spec='${libname}${release}${shared_ext}$major'
14720   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14721   shlibpath_var=LD_LIBRARY_PATH
14722   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14723   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14724   # the default ld.so.conf also contains /usr/contrib/lib and
14725   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14726   # libtool to hard-code these into programs
14727   ;;
14728
14729 cygwin* | mingw* | pw32*)
14730   version_type=windows
14731   shrext_cmds=".dll"
14732   need_version=no
14733   need_lib_prefix=no
14734
14735   case $GCC,$host_os in
14736   yes,cygwin* | yes,mingw* | yes,pw32*)
14737     library_names_spec='$libname.dll.a'
14738     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14739     postinstall_cmds='base_file=`basename \${file}`~
14740       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14741       dldir=$destdir/`dirname \$dlpath`~
14742       test -d \$dldir || mkdir -p \$dldir~
14743       $install_prog $dir/$dlname \$dldir/$dlname~
14744       chmod a+x \$dldir/$dlname'
14745     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14746       dlpath=$dir/\$dldll~
14747        $rm \$dlpath'
14748     shlibpath_overrides_runpath=yes
14749
14750     case $host_os in
14751     cygwin*)
14752       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14753       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14754       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14755       ;;
14756     mingw*)
14757       # MinGW DLLs use traditional 'lib' prefix
14758       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14759       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14760       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14761         # It is most probably a Windows format PATH printed by
14762         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14763         # path with ; separators, and with drive letters. We can handle the
14764         # drive letters (cygwin fileutils understands them), so leave them,
14765         # especially as we might pass files found there to a mingw objdump,
14766         # which wouldn't understand a cygwinified path. Ahh.
14767         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14768       else
14769         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14770       fi
14771       ;;
14772     pw32*)
14773       # pw32 DLLs use 'pw' prefix rather than 'lib'
14774       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14775       ;;
14776     esac
14777     ;;
14778
14779   *)
14780     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14781     ;;
14782   esac
14783   dynamic_linker='Win32 ld.exe'
14784   # FIXME: first we should search . and the directory the executable is in
14785   shlibpath_var=PATH
14786   ;;
14787
14788 darwin* | rhapsody*)
14789   dynamic_linker="$host_os dyld"
14790   version_type=darwin
14791   need_lib_prefix=no
14792   need_version=no
14793   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14794   soname_spec='${libname}${release}${major}$shared_ext'
14795   shlibpath_overrides_runpath=yes
14796   shlibpath_var=DYLD_LIBRARY_PATH
14797   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14798   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14799   if test "$GCC" = yes; then
14800     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14801   else
14802     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14803   fi
14804   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14805   ;;
14806
14807 dgux*)
14808   version_type=linux
14809   need_lib_prefix=no
14810   need_version=no
14811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14812   soname_spec='${libname}${release}${shared_ext}$major'
14813   shlibpath_var=LD_LIBRARY_PATH
14814   ;;
14815
14816 freebsd1*)
14817   dynamic_linker=no
14818   ;;
14819
14820 kfreebsd*-gnu)
14821   version_type=linux
14822   need_lib_prefix=no
14823   need_version=no
14824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14825   soname_spec='${libname}${release}${shared_ext}$major'
14826   shlibpath_var=LD_LIBRARY_PATH
14827   shlibpath_overrides_runpath=no
14828   hardcode_into_libs=yes
14829   dynamic_linker='GNU ld.so'
14830   ;;
14831
14832 freebsd* | dragonfly*)
14833   # DragonFly does not have aout.  When/if they implement a new
14834   # versioning mechanism, adjust this.
14835   if test -x /usr/bin/objformat; then
14836     objformat=`/usr/bin/objformat`
14837   else
14838     case $host_os in
14839     freebsd[123]*) objformat=aout ;;
14840     *) objformat=elf ;;
14841     esac
14842   fi
14843   version_type=freebsd-$objformat
14844   case $version_type in
14845     freebsd-elf*)
14846       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14847       need_version=no
14848       need_lib_prefix=no
14849       ;;
14850     freebsd-*)
14851       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14852       need_version=yes
14853       ;;
14854   esac
14855   shlibpath_var=LD_LIBRARY_PATH
14856   case $host_os in
14857   freebsd2*)
14858     shlibpath_overrides_runpath=yes
14859     ;;
14860   freebsd3.[01]* | freebsdelf3.[01]*)
14861     shlibpath_overrides_runpath=yes
14862     hardcode_into_libs=yes
14863     ;;
14864   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14865   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14866     shlibpath_overrides_runpath=no
14867     hardcode_into_libs=yes
14868     ;;
14869   freebsd*) # from 4.6 on
14870     shlibpath_overrides_runpath=yes
14871     hardcode_into_libs=yes
14872     ;;
14873   esac
14874   ;;
14875
14876 gnu*)
14877   version_type=linux
14878   need_lib_prefix=no
14879   need_version=no
14880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14881   soname_spec='${libname}${release}${shared_ext}$major'
14882   shlibpath_var=LD_LIBRARY_PATH
14883   hardcode_into_libs=yes
14884   ;;
14885
14886 hpux9* | hpux10* | hpux11*)
14887   # Give a soname corresponding to the major version so that dld.sl refuses to
14888   # link against other versions.
14889   version_type=sunos
14890   need_lib_prefix=no
14891   need_version=no
14892   case $host_cpu in
14893   ia64*)
14894     shrext_cmds='.so'
14895     hardcode_into_libs=yes
14896     dynamic_linker="$host_os dld.so"
14897     shlibpath_var=LD_LIBRARY_PATH
14898     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900     soname_spec='${libname}${release}${shared_ext}$major'
14901     if test "X$HPUX_IA64_MODE" = X32; then
14902       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14903     else
14904       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14905     fi
14906     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14907     ;;
14908    hppa*64*)
14909      shrext_cmds='.sl'
14910      hardcode_into_libs=yes
14911      dynamic_linker="$host_os dld.sl"
14912      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14913      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14914      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915      soname_spec='${libname}${release}${shared_ext}$major'
14916      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14917      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14918      ;;
14919    *)
14920     shrext_cmds='.sl'
14921     dynamic_linker="$host_os dld.sl"
14922     shlibpath_var=SHLIB_PATH
14923     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925     soname_spec='${libname}${release}${shared_ext}$major'
14926     ;;
14927   esac
14928   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14929   postinstall_cmds='chmod 555 $lib'
14930   ;;
14931
14932 interix3*)
14933   version_type=linux
14934   need_lib_prefix=no
14935   need_version=no
14936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14937   soname_spec='${libname}${release}${shared_ext}$major'
14938   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14939   shlibpath_var=LD_LIBRARY_PATH
14940   shlibpath_overrides_runpath=no
14941   hardcode_into_libs=yes
14942   ;;
14943
14944 irix5* | irix6* | nonstopux*)
14945   case $host_os in
14946     nonstopux*) version_type=nonstopux ;;
14947     *)
14948         if test "$lt_cv_prog_gnu_ld" = yes; then
14949                 version_type=linux
14950         else
14951                 version_type=irix
14952         fi ;;
14953   esac
14954   need_lib_prefix=no
14955   need_version=no
14956   soname_spec='${libname}${release}${shared_ext}$major'
14957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14958   case $host_os in
14959   irix5* | nonstopux*)
14960     libsuff= shlibsuff=
14961     ;;
14962   *)
14963     case $LD in # libtool.m4 will add one of these switches to LD
14964     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14965       libsuff= shlibsuff= libmagic=32-bit;;
14966     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14967       libsuff=32 shlibsuff=N32 libmagic=N32;;
14968     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14969       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14970     *) libsuff= shlibsuff= libmagic=never-match;;
14971     esac
14972     ;;
14973   esac
14974   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14975   shlibpath_overrides_runpath=no
14976   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14977   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14978   hardcode_into_libs=yes
14979   ;;
14980
14981 # No shared lib support for Linux oldld, aout, or coff.
14982 linux*oldld* | linux*aout* | linux*coff*)
14983   dynamic_linker=no
14984   ;;
14985
14986 # This must be Linux ELF.
14987 linux*)
14988   version_type=linux
14989   need_lib_prefix=no
14990   need_version=no
14991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14992   soname_spec='${libname}${release}${shared_ext}$major'
14993   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14994   shlibpath_var=LD_LIBRARY_PATH
14995   shlibpath_overrides_runpath=no
14996   # This implies no fast_install, which is unacceptable.
14997   # Some rework will be needed to allow for fast_install
14998   # before this can be enabled.
14999   hardcode_into_libs=yes
15000
15001   # Append ld.so.conf contents to the search path
15002   if test -f /etc/ld.so.conf; then
15003     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15004     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15005   fi
15006
15007   # We used to test for /lib/ld.so.1 and disable shared libraries on
15008   # powerpc, because MkLinux only supported shared libraries with the
15009   # GNU dynamic linker.  Since this was broken with cross compilers,
15010   # most powerpc-linux boxes support dynamic linking these days and
15011   # people can always --disable-shared, the test was removed, and we
15012   # assume the GNU/Linux dynamic linker is in use.
15013   dynamic_linker='GNU/Linux ld.so'
15014   ;;
15015
15016 knetbsd*-gnu)
15017   version_type=linux
15018   need_lib_prefix=no
15019   need_version=no
15020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15021   soname_spec='${libname}${release}${shared_ext}$major'
15022   shlibpath_var=LD_LIBRARY_PATH
15023   shlibpath_overrides_runpath=no
15024   hardcode_into_libs=yes
15025   dynamic_linker='GNU ld.so'
15026   ;;
15027
15028 netbsd*)
15029   version_type=sunos
15030   need_lib_prefix=no
15031   need_version=no
15032   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15034     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15035     dynamic_linker='NetBSD (a.out) ld.so'
15036   else
15037     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15038     soname_spec='${libname}${release}${shared_ext}$major'
15039     dynamic_linker='NetBSD ld.elf_so'
15040   fi
15041   shlibpath_var=LD_LIBRARY_PATH
15042   shlibpath_overrides_runpath=yes
15043   hardcode_into_libs=yes
15044   ;;
15045
15046 newsos6)
15047   version_type=linux
15048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049   shlibpath_var=LD_LIBRARY_PATH
15050   shlibpath_overrides_runpath=yes
15051   ;;
15052
15053 nto-qnx*)
15054   version_type=linux
15055   need_lib_prefix=no
15056   need_version=no
15057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15058   soname_spec='${libname}${release}${shared_ext}$major'
15059   shlibpath_var=LD_LIBRARY_PATH
15060   shlibpath_overrides_runpath=yes
15061   ;;
15062
15063 openbsd*)
15064   version_type=sunos
15065   sys_lib_dlsearch_path_spec="/usr/lib"
15066   need_lib_prefix=no
15067   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15068   case $host_os in
15069     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15070     *)                         need_version=no  ;;
15071   esac
15072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15073   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15074   shlibpath_var=LD_LIBRARY_PATH
15075   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15076     case $host_os in
15077       openbsd2.[89] | openbsd2.[89].*)
15078         shlibpath_overrides_runpath=no
15079         ;;
15080       *)
15081         shlibpath_overrides_runpath=yes
15082         ;;
15083       esac
15084   else
15085     shlibpath_overrides_runpath=yes
15086   fi
15087   ;;
15088
15089 os2*)
15090   libname_spec='$name'
15091   shrext_cmds=".dll"
15092   need_lib_prefix=no
15093   library_names_spec='$libname${shared_ext} $libname.a'
15094   dynamic_linker='OS/2 ld.exe'
15095   shlibpath_var=LIBPATH
15096   ;;
15097
15098 osf3* | osf4* | osf5*)
15099   version_type=osf
15100   need_lib_prefix=no
15101   need_version=no
15102   soname_spec='${libname}${release}${shared_ext}$major'
15103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104   shlibpath_var=LD_LIBRARY_PATH
15105   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15106   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15107   ;;
15108
15109 solaris*)
15110   version_type=linux
15111   need_lib_prefix=no
15112   need_version=no
15113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114   soname_spec='${libname}${release}${shared_ext}$major'
15115   shlibpath_var=LD_LIBRARY_PATH
15116   shlibpath_overrides_runpath=yes
15117   hardcode_into_libs=yes
15118   # ldd complains unless libraries are executable
15119   postinstall_cmds='chmod +x $lib'
15120   ;;
15121
15122 sunos4*)
15123   version_type=sunos
15124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15125   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15126   shlibpath_var=LD_LIBRARY_PATH
15127   shlibpath_overrides_runpath=yes
15128   if test "$with_gnu_ld" = yes; then
15129     need_lib_prefix=no
15130   fi
15131   need_version=yes
15132   ;;
15133
15134 sysv4 | sysv4.3*)
15135   version_type=linux
15136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15137   soname_spec='${libname}${release}${shared_ext}$major'
15138   shlibpath_var=LD_LIBRARY_PATH
15139   case $host_vendor in
15140     sni)
15141       shlibpath_overrides_runpath=no
15142       need_lib_prefix=no
15143       export_dynamic_flag_spec='${wl}-Blargedynsym'
15144       runpath_var=LD_RUN_PATH
15145       ;;
15146     siemens)
15147       need_lib_prefix=no
15148       ;;
15149     motorola)
15150       need_lib_prefix=no
15151       need_version=no
15152       shlibpath_overrides_runpath=no
15153       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15154       ;;
15155   esac
15156   ;;
15157
15158 sysv4*MP*)
15159   if test -d /usr/nec ;then
15160     version_type=linux
15161     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15162     soname_spec='$libname${shared_ext}.$major'
15163     shlibpath_var=LD_LIBRARY_PATH
15164   fi
15165   ;;
15166
15167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15168   version_type=freebsd-elf
15169   need_lib_prefix=no
15170   need_version=no
15171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15172   soname_spec='${libname}${release}${shared_ext}$major'
15173   shlibpath_var=LD_LIBRARY_PATH
15174   hardcode_into_libs=yes
15175   if test "$with_gnu_ld" = yes; then
15176     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15177     shlibpath_overrides_runpath=no
15178   else
15179     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15180     shlibpath_overrides_runpath=yes
15181     case $host_os in
15182       sco3.2v5*)
15183         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15184         ;;
15185     esac
15186   fi
15187   sys_lib_dlsearch_path_spec='/usr/lib'
15188   ;;
15189
15190 uts4*)
15191   version_type=linux
15192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193   soname_spec='${libname}${release}${shared_ext}$major'
15194   shlibpath_var=LD_LIBRARY_PATH
15195   ;;
15196
15197 *)
15198   dynamic_linker=no
15199   ;;
15200 esac
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15202 $as_echo "$dynamic_linker" >&6; }
15203 test "$dynamic_linker" = no && can_build_shared=no
15204
15205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15206 if test "$GCC" = yes; then
15207   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15208 fi
15209
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15211 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15212 hardcode_action_F77=
15213 if test -n "$hardcode_libdir_flag_spec_F77" || \
15214    test -n "$runpath_var_F77" || \
15215    test "X$hardcode_automatic_F77" = "Xyes" ; then
15216
15217   # We can hardcode non-existant directories.
15218   if test "$hardcode_direct_F77" != no &&
15219      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15220      # have to relink, otherwise we might link with an installed library
15221      # when we should be linking with a yet-to-be-installed one
15222      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15223      test "$hardcode_minus_L_F77" != no; then
15224     # Linking always hardcodes the temporary library directory.
15225     hardcode_action_F77=relink
15226   else
15227     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15228     hardcode_action_F77=immediate
15229   fi
15230 else
15231   # We cannot hardcode anything, or else we can only hardcode existing
15232   # directories.
15233   hardcode_action_F77=unsupported
15234 fi
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15236 $as_echo "$hardcode_action_F77" >&6; }
15237
15238 if test "$hardcode_action_F77" = relink; then
15239   # Fast installation is not supported
15240   enable_fast_install=no
15241 elif test "$shlibpath_overrides_runpath" = yes ||
15242      test "$enable_shared" = no; then
15243   # Fast installation is not necessary
15244   enable_fast_install=needless
15245 fi
15246
15247
15248 # The else clause should only fire when bootstrapping the
15249 # libtool distribution, otherwise you forgot to ship ltmain.sh
15250 # with your package, and you will get complaints that there are
15251 # no rules to generate ltmain.sh.
15252 if test -f "$ltmain"; then
15253   # See if we are running on zsh, and set the options which allow our commands through
15254   # without removal of \ escapes.
15255   if test -n "${ZSH_VERSION+set}" ; then
15256     setopt NO_GLOB_SUBST
15257   fi
15258   # Now quote all the things that may contain metacharacters while being
15259   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15260   # variables and quote the copies for generation of the libtool script.
15261   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15262     SED SHELL STRIP \
15263     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15264     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15265     deplibs_check_method reload_flag reload_cmds need_locks \
15266     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15267     lt_cv_sys_global_symbol_to_c_name_address \
15268     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15269     old_postinstall_cmds old_postuninstall_cmds \
15270     compiler_F77 \
15271     CC_F77 \
15272     LD_F77 \
15273     lt_prog_compiler_wl_F77 \
15274     lt_prog_compiler_pic_F77 \
15275     lt_prog_compiler_static_F77 \
15276     lt_prog_compiler_no_builtin_flag_F77 \
15277     export_dynamic_flag_spec_F77 \
15278     thread_safe_flag_spec_F77 \
15279     whole_archive_flag_spec_F77 \
15280     enable_shared_with_static_runtimes_F77 \
15281     old_archive_cmds_F77 \
15282     old_archive_from_new_cmds_F77 \
15283     predep_objects_F77 \
15284     postdep_objects_F77 \
15285     predeps_F77 \
15286     postdeps_F77 \
15287     compiler_lib_search_path_F77 \
15288     archive_cmds_F77 \
15289     archive_expsym_cmds_F77 \
15290     postinstall_cmds_F77 \
15291     postuninstall_cmds_F77 \
15292     old_archive_from_expsyms_cmds_F77 \
15293     allow_undefined_flag_F77 \
15294     no_undefined_flag_F77 \
15295     export_symbols_cmds_F77 \
15296     hardcode_libdir_flag_spec_F77 \
15297     hardcode_libdir_flag_spec_ld_F77 \
15298     hardcode_libdir_separator_F77 \
15299     hardcode_automatic_F77 \
15300     module_cmds_F77 \
15301     module_expsym_cmds_F77 \
15302     lt_cv_prog_compiler_c_o_F77 \
15303     exclude_expsyms_F77 \
15304     include_expsyms_F77; do
15305
15306     case $var in
15307     old_archive_cmds_F77 | \
15308     old_archive_from_new_cmds_F77 | \
15309     archive_cmds_F77 | \
15310     archive_expsym_cmds_F77 | \
15311     module_cmds_F77 | \
15312     module_expsym_cmds_F77 | \
15313     old_archive_from_expsyms_cmds_F77 | \
15314     export_symbols_cmds_F77 | \
15315     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15316     postinstall_cmds | postuninstall_cmds | \
15317     old_postinstall_cmds | old_postuninstall_cmds | \
15318     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15319       # Double-quote double-evaled strings.
15320       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15321       ;;
15322     *)
15323       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15324       ;;
15325     esac
15326   done
15327
15328   case $lt_echo in
15329   *'\$0 --fallback-echo"')
15330     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15331     ;;
15332   esac
15333
15334 cfgfile="$ofile"
15335
15336   cat <<__EOF__ >> "$cfgfile"
15337 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15338
15339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15340
15341 # Shell to use when invoking shell scripts.
15342 SHELL=$lt_SHELL
15343
15344 # Whether or not to build shared libraries.
15345 build_libtool_libs=$enable_shared
15346
15347 # Whether or not to build static libraries.
15348 build_old_libs=$enable_static
15349
15350 # Whether or not to add -lc for building shared libraries.
15351 build_libtool_need_lc=$archive_cmds_need_lc_F77
15352
15353 # Whether or not to disallow shared libs when runtime libs are static
15354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15355
15356 # Whether or not to optimize for fast installation.
15357 fast_install=$enable_fast_install
15358
15359 # The host system.
15360 host_alias=$host_alias
15361 host=$host
15362 host_os=$host_os
15363
15364 # The build system.
15365 build_alias=$build_alias
15366 build=$build
15367 build_os=$build_os
15368
15369 # An echo program that does not interpret backslashes.
15370 echo=$lt_echo
15371
15372 # The archiver.
15373 AR=$lt_AR
15374 AR_FLAGS=$lt_AR_FLAGS
15375
15376 # A C compiler.
15377 LTCC=$lt_LTCC
15378
15379 # LTCC compiler flags.
15380 LTCFLAGS=$lt_LTCFLAGS
15381
15382 # A language-specific compiler.
15383 CC=$lt_compiler_F77
15384
15385 # Is the compiler the GNU C compiler?
15386 with_gcc=$GCC_F77
15387
15388 # An ERE matcher.
15389 EGREP=$lt_EGREP
15390
15391 # The linker used to build libraries.
15392 LD=$lt_LD_F77
15393
15394 # Whether we need hard or soft links.
15395 LN_S=$lt_LN_S
15396
15397 # A BSD-compatible nm program.
15398 NM=$lt_NM
15399
15400 # A symbol stripping program
15401 STRIP=$lt_STRIP
15402
15403 # Used to examine libraries when file_magic_cmd begins "file"
15404 MAGIC_CMD=$MAGIC_CMD
15405
15406 # Used on cygwin: DLL creation program.
15407 DLLTOOL="$DLLTOOL"
15408
15409 # Used on cygwin: object dumper.
15410 OBJDUMP="$OBJDUMP"
15411
15412 # Used on cygwin: assembler.
15413 AS="$AS"
15414
15415 # The name of the directory that contains temporary libtool files.
15416 objdir=$objdir
15417
15418 # How to create reloadable object files.
15419 reload_flag=$lt_reload_flag
15420 reload_cmds=$lt_reload_cmds
15421
15422 # How to pass a linker flag through the compiler.
15423 wl=$lt_lt_prog_compiler_wl_F77
15424
15425 # Object file suffix (normally "o").
15426 objext="$ac_objext"
15427
15428 # Old archive suffix (normally "a").
15429 libext="$libext"
15430
15431 # Shared library suffix (normally ".so").
15432 shrext_cmds='$shrext_cmds'
15433
15434 # Executable file suffix (normally "").
15435 exeext="$exeext"
15436
15437 # Additional compiler flags for building library objects.
15438 pic_flag=$lt_lt_prog_compiler_pic_F77
15439 pic_mode=$pic_mode
15440
15441 # What is the maximum length of a command?
15442 max_cmd_len=$lt_cv_sys_max_cmd_len
15443
15444 # Does compiler simultaneously support -c and -o options?
15445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15446
15447 # Must we lock files when doing compilation?
15448 need_locks=$lt_need_locks
15449
15450 # Do we need the lib prefix for modules?
15451 need_lib_prefix=$need_lib_prefix
15452
15453 # Do we need a version for libraries?
15454 need_version=$need_version
15455
15456 # Whether dlopen is supported.
15457 dlopen_support=$enable_dlopen
15458
15459 # Whether dlopen of programs is supported.
15460 dlopen_self=$enable_dlopen_self
15461
15462 # Whether dlopen of statically linked programs is supported.
15463 dlopen_self_static=$enable_dlopen_self_static
15464
15465 # Compiler flag to prevent dynamic linking.
15466 link_static_flag=$lt_lt_prog_compiler_static_F77
15467
15468 # Compiler flag to turn off builtin functions.
15469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15470
15471 # Compiler flag to allow reflexive dlopens.
15472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15473
15474 # Compiler flag to generate shared objects directly from archives.
15475 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15476
15477 # Compiler flag to generate thread-safe objects.
15478 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15479
15480 # Library versioning type.
15481 version_type=$version_type
15482
15483 # Format of library name prefix.
15484 libname_spec=$lt_libname_spec
15485
15486 # List of archive names.  First name is the real one, the rest are links.
15487 # The last name is the one that the linker finds with -lNAME.
15488 library_names_spec=$lt_library_names_spec
15489
15490 # The coded name of the library, if different from the real name.
15491 soname_spec=$lt_soname_spec
15492
15493 # Commands used to build and install an old-style archive.
15494 RANLIB=$lt_RANLIB
15495 old_archive_cmds=$lt_old_archive_cmds_F77
15496 old_postinstall_cmds=$lt_old_postinstall_cmds
15497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15498
15499 # Create an old-style archive from a shared archive.
15500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15501
15502 # Create a temporary old-style archive to link instead of a shared archive.
15503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15504
15505 # Commands used to build and install a shared archive.
15506 archive_cmds=$lt_archive_cmds_F77
15507 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15508 postinstall_cmds=$lt_postinstall_cmds
15509 postuninstall_cmds=$lt_postuninstall_cmds
15510
15511 # Commands used to build a loadable module (assumed same as above if empty)
15512 module_cmds=$lt_module_cmds_F77
15513 module_expsym_cmds=$lt_module_expsym_cmds_F77
15514
15515 # Commands to strip libraries.
15516 old_striplib=$lt_old_striplib
15517 striplib=$lt_striplib
15518
15519 # Dependencies to place before the objects being linked to create a
15520 # shared library.
15521 predep_objects=$lt_predep_objects_F77
15522
15523 # Dependencies to place after the objects being linked to create a
15524 # shared library.
15525 postdep_objects=$lt_postdep_objects_F77
15526
15527 # Dependencies to place before the objects being linked to create a
15528 # shared library.
15529 predeps=$lt_predeps_F77
15530
15531 # Dependencies to place after the objects being linked to create a
15532 # shared library.
15533 postdeps=$lt_postdeps_F77
15534
15535 # The library search path used internally by the compiler when linking
15536 # a shared library.
15537 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15538
15539 # Method to check whether dependent libraries are shared objects.
15540 deplibs_check_method=$lt_deplibs_check_method
15541
15542 # Command to use when deplibs_check_method == file_magic.
15543 file_magic_cmd=$lt_file_magic_cmd
15544
15545 # Flag that allows shared libraries with undefined symbols to be built.
15546 allow_undefined_flag=$lt_allow_undefined_flag_F77
15547
15548 # Flag that forces no undefined symbols.
15549 no_undefined_flag=$lt_no_undefined_flag_F77
15550
15551 # Commands used to finish a libtool library installation in a directory.
15552 finish_cmds=$lt_finish_cmds
15553
15554 # Same as above, but a single script fragment to be evaled but not shown.
15555 finish_eval=$lt_finish_eval
15556
15557 # Take the output of nm and produce a listing of raw symbols and C names.
15558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15559
15560 # Transform the output of nm in a proper C declaration
15561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15562
15563 # Transform the output of nm in a C name address pair
15564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15565
15566 # This is the shared library runtime path variable.
15567 runpath_var=$runpath_var
15568
15569 # This is the shared library path variable.
15570 shlibpath_var=$shlibpath_var
15571
15572 # Is shlibpath searched before the hard-coded library search path?
15573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15574
15575 # How to hardcode a shared library path into an executable.
15576 hardcode_action=$hardcode_action_F77
15577
15578 # Whether we should hardcode library paths into libraries.
15579 hardcode_into_libs=$hardcode_into_libs
15580
15581 # Flag to hardcode \$libdir into a binary during linking.
15582 # This must work even if \$libdir does not exist.
15583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15584
15585 # If ld is used when linking, flag to hardcode \$libdir into
15586 # a binary during linking. This must work even if \$libdir does
15587 # not exist.
15588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15589
15590 # Whether we need a single -rpath flag with a separated argument.
15591 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15592
15593 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15594 # resulting binary.
15595 hardcode_direct=$hardcode_direct_F77
15596
15597 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15598 # resulting binary.
15599 hardcode_minus_L=$hardcode_minus_L_F77
15600
15601 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15602 # the resulting binary.
15603 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15604
15605 # Set to yes if building a shared library automatically hardcodes DIR into the library
15606 # and all subsequent libraries and executables linked against it.
15607 hardcode_automatic=$hardcode_automatic_F77
15608
15609 # Variables whose values should be saved in libtool wrapper scripts and
15610 # restored at relink time.
15611 variables_saved_for_relink="$variables_saved_for_relink"
15612
15613 # Whether libtool must link a program against all its dependency libraries.
15614 link_all_deplibs=$link_all_deplibs_F77
15615
15616 # Compile-time system search path for libraries
15617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15618
15619 # Run-time system search path for libraries
15620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15621
15622 # Fix the shell variable \$srcfile for the compiler.
15623 fix_srcfile_path="$fix_srcfile_path_F77"
15624
15625 # Set to yes if exported symbols are required.
15626 always_export_symbols=$always_export_symbols_F77
15627
15628 # The commands to list exported symbols.
15629 export_symbols_cmds=$lt_export_symbols_cmds_F77
15630
15631 # The commands to extract the exported symbol list from a shared archive.
15632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15633
15634 # Symbols that should not be listed in the preloaded symbols.
15635 exclude_expsyms=$lt_exclude_expsyms_F77
15636
15637 # Symbols that must always be exported.
15638 include_expsyms=$lt_include_expsyms_F77
15639
15640 # ### END LIBTOOL TAG CONFIG: $tagname
15641
15642 __EOF__
15643
15644
15645 else
15646   # If there is no Makefile yet, we rely on a make rule to execute
15647   # `config.status --recheck' to rerun these tests and create the
15648   # libtool script then.
15649   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15650   if test -f "$ltmain_in"; then
15651     test -f Makefile && make "$ltmain"
15652   fi
15653 fi
15654
15655
15656 ac_ext=c
15657 ac_cpp='$CPP $CPPFLAGS'
15658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15661
15662 CC="$lt_save_CC"
15663
15664         else
15665           tagname=""
15666         fi
15667         ;;
15668
15669       GCJ)
15670         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15671
15672
15673 # Source file extension for Java test sources.
15674 ac_ext=java
15675
15676 # Object file extension for compiled Java test sources.
15677 objext=o
15678 objext_GCJ=$objext
15679
15680 # Code to be used in simple compile tests
15681 lt_simple_compile_test_code="class foo {}\n"
15682
15683 # Code to be used in simple link tests
15684 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15685
15686 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15687
15688 # If no C compiler was specified, use CC.
15689 LTCC=${LTCC-"$CC"}
15690
15691 # If no C compiler flags were specified, use CFLAGS.
15692 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15693
15694 # Allow CC to be a program name with arguments.
15695 compiler=$CC
15696
15697
15698 # save warnings/boilerplate of simple test code
15699 ac_outfile=conftest.$ac_objext
15700 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15701 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15702 _lt_compiler_boilerplate=`cat conftest.err`
15703 $rm conftest*
15704
15705 ac_outfile=conftest.$ac_objext
15706 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15707 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15708 _lt_linker_boilerplate=`cat conftest.err`
15709 $rm conftest*
15710
15711
15712 # Allow CC to be a program name with arguments.
15713 lt_save_CC="$CC"
15714 CC=${GCJ-"gcj"}
15715 compiler=$CC
15716 compiler_GCJ=$CC
15717 for cc_temp in $compiler""; do
15718   case $cc_temp in
15719     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15720     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15721     \-*) ;;
15722     *) break;;
15723   esac
15724 done
15725 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15726
15727
15728 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15729 archive_cmds_need_lc_GCJ=no
15730
15731 old_archive_cmds_GCJ=$old_archive_cmds
15732
15733
15734 lt_prog_compiler_no_builtin_flag_GCJ=
15735
15736 if test "$GCC" = yes; then
15737   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15738
15739
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15741 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15742 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15743   $as_echo_n "(cached) " >&6
15744 else
15745   lt_cv_prog_compiler_rtti_exceptions=no
15746   ac_outfile=conftest.$ac_objext
15747    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15748    lt_compiler_flag="-fno-rtti -fno-exceptions"
15749    # Insert the option either (1) after the last *FLAGS variable, or
15750    # (2) before a word containing "conftest.", or (3) at the end.
15751    # Note that $ac_compile itself does not contain backslashes and begins
15752    # with a dollar sign (not a hyphen), so the echo should work correctly.
15753    # The option is referenced via a variable to avoid confusing sed.
15754    lt_compile=`echo "$ac_compile" | $SED \
15755    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15756    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15757    -e 's:$: $lt_compiler_flag:'`
15758    (eval echo "\"\$as_me:15758: $lt_compile\"" >&5)
15759    (eval "$lt_compile" 2>conftest.err)
15760    ac_status=$?
15761    cat conftest.err >&5
15762    echo "$as_me:15762: \$? = $ac_status" >&5
15763    if (exit $ac_status) && test -s "$ac_outfile"; then
15764      # The compiler can only warn and ignore the option if not recognized
15765      # So say no if there are warnings other than the usual output.
15766      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15767      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15768      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15769        lt_cv_prog_compiler_rtti_exceptions=yes
15770      fi
15771    fi
15772    $rm conftest*
15773
15774 fi
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15776 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15777
15778 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15779     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15780 else
15781     :
15782 fi
15783
15784 fi
15785
15786 lt_prog_compiler_wl_GCJ=
15787 lt_prog_compiler_pic_GCJ=
15788 lt_prog_compiler_static_GCJ=
15789
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15791 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15792
15793   if test "$GCC" = yes; then
15794     lt_prog_compiler_wl_GCJ='-Wl,'
15795     lt_prog_compiler_static_GCJ='-static'
15796
15797     case $host_os in
15798       aix*)
15799       # All AIX code is PIC.
15800       if test "$host_cpu" = ia64; then
15801         # AIX 5 now supports IA64 processor
15802         lt_prog_compiler_static_GCJ='-Bstatic'
15803       fi
15804       ;;
15805
15806     amigaos*)
15807       # FIXME: we need at least 68020 code to build shared libraries, but
15808       # adding the `-m68020' flag to GCC prevents building anything better,
15809       # like `-m68040'.
15810       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15811       ;;
15812
15813     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15814       # PIC is the default for these OSes.
15815       ;;
15816
15817     mingw* | pw32* | os2*)
15818       # This hack is so that the source file can tell whether it is being
15819       # built for inclusion in a dll (and should export symbols for example).
15820       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15821       ;;
15822
15823     darwin* | rhapsody*)
15824       # PIC is the default on this platform
15825       # Common symbols not allowed in MH_DYLIB files
15826       lt_prog_compiler_pic_GCJ='-fno-common'
15827       ;;
15828
15829     interix3*)
15830       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15831       # Instead, we relocate shared libraries at runtime.
15832       ;;
15833
15834     msdosdjgpp*)
15835       # Just because we use GCC doesn't mean we suddenly get shared libraries
15836       # on systems that don't support them.
15837       lt_prog_compiler_can_build_shared_GCJ=no
15838       enable_shared=no
15839       ;;
15840
15841     sysv4*MP*)
15842       if test -d /usr/nec; then
15843         lt_prog_compiler_pic_GCJ=-Kconform_pic
15844       fi
15845       ;;
15846
15847     hpux*)
15848       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15849       # not for PA HP-UX.
15850       case $host_cpu in
15851       hppa*64*|ia64*)
15852         # +Z the default
15853         ;;
15854       *)
15855         lt_prog_compiler_pic_GCJ='-fPIC'
15856         ;;
15857       esac
15858       ;;
15859
15860     *)
15861       lt_prog_compiler_pic_GCJ='-fPIC'
15862       ;;
15863     esac
15864   else
15865     # PORTME Check for flag to pass linker flags through the system compiler.
15866     case $host_os in
15867     aix*)
15868       lt_prog_compiler_wl_GCJ='-Wl,'
15869       if test "$host_cpu" = ia64; then
15870         # AIX 5 now supports IA64 processor
15871         lt_prog_compiler_static_GCJ='-Bstatic'
15872       else
15873         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15874       fi
15875       ;;
15876       darwin*)
15877         # PIC is the default on this platform
15878         # Common symbols not allowed in MH_DYLIB files
15879        case $cc_basename in
15880          xlc*)
15881          lt_prog_compiler_pic_GCJ='-qnocommon'
15882          lt_prog_compiler_wl_GCJ='-Wl,'
15883          ;;
15884        esac
15885        ;;
15886
15887     mingw* | pw32* | os2*)
15888       # This hack is so that the source file can tell whether it is being
15889       # built for inclusion in a dll (and should export symbols for example).
15890       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15891       ;;
15892
15893     hpux9* | hpux10* | hpux11*)
15894       lt_prog_compiler_wl_GCJ='-Wl,'
15895       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15896       # not for PA HP-UX.
15897       case $host_cpu in
15898       hppa*64*|ia64*)
15899         # +Z the default
15900         ;;
15901       *)
15902         lt_prog_compiler_pic_GCJ='+Z'
15903         ;;
15904       esac
15905       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15906       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15907       ;;
15908
15909     irix5* | irix6* | nonstopux*)
15910       lt_prog_compiler_wl_GCJ='-Wl,'
15911       # PIC (with -KPIC) is the default.
15912       lt_prog_compiler_static_GCJ='-non_shared'
15913       ;;
15914
15915     newsos6)
15916       lt_prog_compiler_pic_GCJ='-KPIC'
15917       lt_prog_compiler_static_GCJ='-Bstatic'
15918       ;;
15919
15920     linux*)
15921       case $cc_basename in
15922       icc* | ecc*)
15923         lt_prog_compiler_wl_GCJ='-Wl,'
15924         lt_prog_compiler_pic_GCJ='-KPIC'
15925         lt_prog_compiler_static_GCJ='-static'
15926         ;;
15927       pgcc* | pgf77* | pgf90* | pgf95*)
15928         # Portland Group compilers (*not* the Pentium gcc compiler,
15929         # which looks to be a dead project)
15930         lt_prog_compiler_wl_GCJ='-Wl,'
15931         lt_prog_compiler_pic_GCJ='-fpic'
15932         lt_prog_compiler_static_GCJ='-Bstatic'
15933         ;;
15934       ccc*)
15935         lt_prog_compiler_wl_GCJ='-Wl,'
15936         # All Alpha code is PIC.
15937         lt_prog_compiler_static_GCJ='-non_shared'
15938         ;;
15939       esac
15940       ;;
15941
15942     osf3* | osf4* | osf5*)
15943       lt_prog_compiler_wl_GCJ='-Wl,'
15944       # All OSF/1 code is PIC.
15945       lt_prog_compiler_static_GCJ='-non_shared'
15946       ;;
15947
15948     solaris*)
15949       lt_prog_compiler_pic_GCJ='-KPIC'
15950       lt_prog_compiler_static_GCJ='-Bstatic'
15951       case $cc_basename in
15952       f77* | f90* | f95*)
15953         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15954       *)
15955         lt_prog_compiler_wl_GCJ='-Wl,';;
15956       esac
15957       ;;
15958
15959     sunos4*)
15960       lt_prog_compiler_wl_GCJ='-Qoption ld '
15961       lt_prog_compiler_pic_GCJ='-PIC'
15962       lt_prog_compiler_static_GCJ='-Bstatic'
15963       ;;
15964
15965     sysv4 | sysv4.2uw2* | sysv4.3*)
15966       lt_prog_compiler_wl_GCJ='-Wl,'
15967       lt_prog_compiler_pic_GCJ='-KPIC'
15968       lt_prog_compiler_static_GCJ='-Bstatic'
15969       ;;
15970
15971     sysv4*MP*)
15972       if test -d /usr/nec ;then
15973         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15974         lt_prog_compiler_static_GCJ='-Bstatic'
15975       fi
15976       ;;
15977
15978     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15979       lt_prog_compiler_wl_GCJ='-Wl,'
15980       lt_prog_compiler_pic_GCJ='-KPIC'
15981       lt_prog_compiler_static_GCJ='-Bstatic'
15982       ;;
15983
15984     unicos*)
15985       lt_prog_compiler_wl_GCJ='-Wl,'
15986       lt_prog_compiler_can_build_shared_GCJ=no
15987       ;;
15988
15989     uts4*)
15990       lt_prog_compiler_pic_GCJ='-pic'
15991       lt_prog_compiler_static_GCJ='-Bstatic'
15992       ;;
15993
15994     *)
15995       lt_prog_compiler_can_build_shared_GCJ=no
15996       ;;
15997     esac
15998   fi
15999
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16001 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16002
16003 #
16004 # Check to make sure the PIC flag actually works.
16005 #
16006 if test -n "$lt_prog_compiler_pic_GCJ"; then
16007
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16009 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16010 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16011   $as_echo_n "(cached) " >&6
16012 else
16013   lt_prog_compiler_pic_works_GCJ=no
16014   ac_outfile=conftest.$ac_objext
16015    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16016    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16017    # Insert the option either (1) after the last *FLAGS variable, or
16018    # (2) before a word containing "conftest.", or (3) at the end.
16019    # Note that $ac_compile itself does not contain backslashes and begins
16020    # with a dollar sign (not a hyphen), so the echo should work correctly.
16021    # The option is referenced via a variable to avoid confusing sed.
16022    lt_compile=`echo "$ac_compile" | $SED \
16023    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16024    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16025    -e 's:$: $lt_compiler_flag:'`
16026    (eval echo "\"\$as_me:16026: $lt_compile\"" >&5)
16027    (eval "$lt_compile" 2>conftest.err)
16028    ac_status=$?
16029    cat conftest.err >&5
16030    echo "$as_me:16030: \$? = $ac_status" >&5
16031    if (exit $ac_status) && test -s "$ac_outfile"; then
16032      # The compiler can only warn and ignore the option if not recognized
16033      # So say no if there are warnings other than the usual output.
16034      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16035      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16036      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16037        lt_prog_compiler_pic_works_GCJ=yes
16038      fi
16039    fi
16040    $rm conftest*
16041
16042 fi
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16044 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16045
16046 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16047     case $lt_prog_compiler_pic_GCJ in
16048      "" | " "*) ;;
16049      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16050      esac
16051 else
16052     lt_prog_compiler_pic_GCJ=
16053      lt_prog_compiler_can_build_shared_GCJ=no
16054 fi
16055
16056 fi
16057 case $host_os in
16058   # For platforms which do not support PIC, -DPIC is meaningless:
16059   *djgpp*)
16060     lt_prog_compiler_pic_GCJ=
16061     ;;
16062   *)
16063     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16064     ;;
16065 esac
16066
16067 #
16068 # Check to make sure the static flag actually works.
16069 #
16070 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16072 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16073 if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16074   $as_echo_n "(cached) " >&6
16075 else
16076   lt_prog_compiler_static_works_GCJ=no
16077    save_LDFLAGS="$LDFLAGS"
16078    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16079    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16080    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16081      # The linker can only warn and ignore the option if not recognized
16082      # So say no if there are warnings
16083      if test -s conftest.err; then
16084        # Append any errors to the config.log.
16085        cat conftest.err 1>&5
16086        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16087        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16088        if diff conftest.exp conftest.er2 >/dev/null; then
16089          lt_prog_compiler_static_works_GCJ=yes
16090        fi
16091      else
16092        lt_prog_compiler_static_works_GCJ=yes
16093      fi
16094    fi
16095    $rm conftest*
16096    LDFLAGS="$save_LDFLAGS"
16097
16098 fi
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16100 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16101
16102 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16103     :
16104 else
16105     lt_prog_compiler_static_GCJ=
16106 fi
16107
16108
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16110 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16111 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16112   $as_echo_n "(cached) " >&6
16113 else
16114   lt_cv_prog_compiler_c_o_GCJ=no
16115    $rm -r conftest 2>/dev/null
16116    mkdir conftest
16117    cd conftest
16118    mkdir out
16119    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16120
16121    lt_compiler_flag="-o out/conftest2.$ac_objext"
16122    # Insert the option either (1) after the last *FLAGS variable, or
16123    # (2) before a word containing "conftest.", or (3) at the end.
16124    # Note that $ac_compile itself does not contain backslashes and begins
16125    # with a dollar sign (not a hyphen), so the echo should work correctly.
16126    lt_compile=`echo "$ac_compile" | $SED \
16127    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16128    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16129    -e 's:$: $lt_compiler_flag:'`
16130    (eval echo "\"\$as_me:16130: $lt_compile\"" >&5)
16131    (eval "$lt_compile" 2>out/conftest.err)
16132    ac_status=$?
16133    cat out/conftest.err >&5
16134    echo "$as_me:16134: \$? = $ac_status" >&5
16135    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16136    then
16137      # The compiler can only warn and ignore the option if not recognized
16138      # So say no if there are warnings
16139      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16140      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16141      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16142        lt_cv_prog_compiler_c_o_GCJ=yes
16143      fi
16144    fi
16145    chmod u+w . 2>&5
16146    $rm conftest*
16147    # SGI C++ compiler will create directory out/ii_files/ for
16148    # template instantiation
16149    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16150    $rm out/* && rmdir out
16151    cd ..
16152    rmdir conftest
16153    $rm conftest*
16154
16155 fi
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16157 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16158
16159
16160 hard_links="nottested"
16161 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16162   # do not overwrite the value of need_locks provided by the user
16163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16164 $as_echo_n "checking if we can lock with hard links... " >&6; }
16165   hard_links=yes
16166   $rm conftest*
16167   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16168   touch conftest.a
16169   ln conftest.a conftest.b 2>&5 || hard_links=no
16170   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16172 $as_echo "$hard_links" >&6; }
16173   if test "$hard_links" = no; then
16174     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16175 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16176     need_locks=warn
16177   fi
16178 else
16179   need_locks=no
16180 fi
16181
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16183 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16184
16185   runpath_var=
16186   allow_undefined_flag_GCJ=
16187   enable_shared_with_static_runtimes_GCJ=no
16188   archive_cmds_GCJ=
16189   archive_expsym_cmds_GCJ=
16190   old_archive_From_new_cmds_GCJ=
16191   old_archive_from_expsyms_cmds_GCJ=
16192   export_dynamic_flag_spec_GCJ=
16193   whole_archive_flag_spec_GCJ=
16194   thread_safe_flag_spec_GCJ=
16195   hardcode_libdir_flag_spec_GCJ=
16196   hardcode_libdir_flag_spec_ld_GCJ=
16197   hardcode_libdir_separator_GCJ=
16198   hardcode_direct_GCJ=no
16199   hardcode_minus_L_GCJ=no
16200   hardcode_shlibpath_var_GCJ=unsupported
16201   link_all_deplibs_GCJ=unknown
16202   hardcode_automatic_GCJ=no
16203   module_cmds_GCJ=
16204   module_expsym_cmds_GCJ=
16205   always_export_symbols_GCJ=no
16206   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16207   # include_expsyms should be a list of space-separated symbols to be *always*
16208   # included in the symbol list
16209   include_expsyms_GCJ=
16210   # exclude_expsyms can be an extended regexp of symbols to exclude
16211   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16212   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16213   # as well as any symbol that contains `d'.
16214   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16215   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16216   # platforms (ab)use it in PIC code, but their linkers get confused if
16217   # the symbol is explicitly referenced.  Since portable code cannot
16218   # rely on this symbol name, it's probably fine to never include it in
16219   # preloaded symbol tables.
16220   extract_expsyms_cmds=
16221   # Just being paranoid about ensuring that cc_basename is set.
16222   for cc_temp in $compiler""; do
16223   case $cc_temp in
16224     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16225     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16226     \-*) ;;
16227     *) break;;
16228   esac
16229 done
16230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16231
16232   case $host_os in
16233   cygwin* | mingw* | pw32*)
16234     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16235     # When not using gcc, we currently assume that we are using
16236     # Microsoft Visual C++.
16237     if test "$GCC" != yes; then
16238       with_gnu_ld=no
16239     fi
16240     ;;
16241   interix*)
16242     # we just hope/assume this is gcc and not c89 (= MSVC++)
16243     with_gnu_ld=yes
16244     ;;
16245   openbsd*)
16246     with_gnu_ld=no
16247     ;;
16248   esac
16249
16250   ld_shlibs_GCJ=yes
16251   if test "$with_gnu_ld" = yes; then
16252     # If archive_cmds runs LD, not CC, wlarc should be empty
16253     wlarc='${wl}'
16254
16255     # Set some defaults for GNU ld with shared library support. These
16256     # are reset later if shared libraries are not supported. Putting them
16257     # here allows them to be overridden if necessary.
16258     runpath_var=LD_RUN_PATH
16259     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16260     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16261     # ancient GNU ld didn't support --whole-archive et. al.
16262     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16263         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16264       else
16265         whole_archive_flag_spec_GCJ=
16266     fi
16267     supports_anon_versioning=no
16268     case `$LD -v 2>/dev/null` in
16269       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16270       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16271       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16272       *\ 2.11.*) ;; # other 2.11 versions
16273       *) supports_anon_versioning=yes ;;
16274     esac
16275
16276     # See if GNU ld supports shared libraries.
16277     case $host_os in
16278     aix3* | aix4* | aix5*)
16279       # On AIX/PPC, the GNU linker is very broken
16280       if test "$host_cpu" != ia64; then
16281         ld_shlibs_GCJ=no
16282         cat <<EOF 1>&2
16283
16284 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16285 *** to be unable to reliably create shared libraries on AIX.
16286 *** Therefore, libtool is disabling shared libraries support.  If you
16287 *** really care for shared libraries, you may want to modify your PATH
16288 *** so that a non-GNU linker is found, and then restart.
16289
16290 EOF
16291       fi
16292       ;;
16293
16294     amigaos*)
16295       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16296       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16297       hardcode_minus_L_GCJ=yes
16298
16299       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16300       # that the semantics of dynamic libraries on AmigaOS, at least up
16301       # to version 4, is to share data among multiple programs linked
16302       # with the same dynamic library.  Since this doesn't match the
16303       # behavior of shared libraries on other platforms, we can't use
16304       # them.
16305       ld_shlibs_GCJ=no
16306       ;;
16307
16308     beos*)
16309       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16310         allow_undefined_flag_GCJ=unsupported
16311         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16312         # support --undefined.  This deserves some investigation.  FIXME
16313         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16314       else
16315         ld_shlibs_GCJ=no
16316       fi
16317       ;;
16318
16319     cygwin* | mingw* | pw32*)
16320       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16321       # as there is no search path for DLLs.
16322       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323       allow_undefined_flag_GCJ=unsupported
16324       always_export_symbols_GCJ=no
16325       enable_shared_with_static_runtimes_GCJ=yes
16326       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16327
16328       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16329         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16330         # If the export-symbols file already is a .def file (1st line
16331         # is EXPORTS), use it as is; otherwise, prepend...
16332         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16333           cp $export_symbols $output_objdir/$soname.def;
16334         else
16335           echo EXPORTS > $output_objdir/$soname.def;
16336           cat $export_symbols >> $output_objdir/$soname.def;
16337         fi~
16338         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16339       else
16340         ld_shlibs_GCJ=no
16341       fi
16342       ;;
16343
16344     interix3*)
16345       hardcode_direct_GCJ=no
16346       hardcode_shlibpath_var_GCJ=no
16347       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16348       export_dynamic_flag_spec_GCJ='${wl}-E'
16349       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16350       # Instead, shared libraries are loaded at an image base (0x10000000 by
16351       # default) and relocated if they conflict, which is a slow very memory
16352       # consuming and fragmenting process.  To avoid this, we pick a random,
16353       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16354       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16355       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16356       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16357       ;;
16358
16359     linux*)
16360       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16361         tmp_addflag=
16362         case $cc_basename,$host_cpu in
16363         pgcc*)                          # Portland Group C compiler
16364           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16365           tmp_addflag=' $pic_flag'
16366           ;;
16367         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16368           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16369           tmp_addflag=' $pic_flag -Mnomain' ;;
16370         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16371           tmp_addflag=' -i_dynamic' ;;
16372         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16373           tmp_addflag=' -i_dynamic -nofor_main' ;;
16374         ifc* | ifort*)                  # Intel Fortran compiler
16375           tmp_addflag=' -nofor_main' ;;
16376         esac
16377         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16378
16379         if test $supports_anon_versioning = yes; then
16380           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16381   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16382   $echo "local: *; };" >> $output_objdir/$libname.ver~
16383           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16384         fi
16385       else
16386         ld_shlibs_GCJ=no
16387       fi
16388       ;;
16389
16390     netbsd*)
16391       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16392         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16393         wlarc=
16394       else
16395         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16396         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16397       fi
16398       ;;
16399
16400     solaris*)
16401       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16402         ld_shlibs_GCJ=no
16403         cat <<EOF 1>&2
16404
16405 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16406 *** create shared libraries on Solaris systems.  Therefore, libtool
16407 *** is disabling shared libraries support.  We urge you to upgrade GNU
16408 *** binutils to release 2.9.1 or newer.  Another option is to modify
16409 *** your PATH or compiler configuration so that the native linker is
16410 *** used, and then restart.
16411
16412 EOF
16413       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16414         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16415         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16416       else
16417         ld_shlibs_GCJ=no
16418       fi
16419       ;;
16420
16421     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16422       case `$LD -v 2>&1` in
16423         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16424         ld_shlibs_GCJ=no
16425         cat <<_LT_EOF 1>&2
16426
16427 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16428 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16429 *** is disabling shared libraries support.  We urge you to upgrade GNU
16430 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16431 *** your PATH or compiler configuration so that the native linker is
16432 *** used, and then restart.
16433
16434 _LT_EOF
16435         ;;
16436         *)
16437           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16438             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16439             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16440             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16441           else
16442             ld_shlibs_GCJ=no
16443           fi
16444         ;;
16445       esac
16446       ;;
16447
16448     sunos4*)
16449       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16450       wlarc=
16451       hardcode_direct_GCJ=yes
16452       hardcode_shlibpath_var_GCJ=no
16453       ;;
16454
16455     *)
16456       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16457         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16458         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16459       else
16460         ld_shlibs_GCJ=no
16461       fi
16462       ;;
16463     esac
16464
16465     if test "$ld_shlibs_GCJ" = no; then
16466       runpath_var=
16467       hardcode_libdir_flag_spec_GCJ=
16468       export_dynamic_flag_spec_GCJ=
16469       whole_archive_flag_spec_GCJ=
16470     fi
16471   else
16472     # PORTME fill in a description of your system's linker (not GNU ld)
16473     case $host_os in
16474     aix3*)
16475       allow_undefined_flag_GCJ=unsupported
16476       always_export_symbols_GCJ=yes
16477       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16478       # Note: this linker hardcodes the directories in LIBPATH if there
16479       # are no directories specified by -L.
16480       hardcode_minus_L_GCJ=yes
16481       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16482         # Neither direct hardcoding nor static linking is supported with a
16483         # broken collect2.
16484         hardcode_direct_GCJ=unsupported
16485       fi
16486       ;;
16487
16488     aix4* | aix5*)
16489       if test "$host_cpu" = ia64; then
16490         # On IA64, the linker does run time linking by default, so we don't
16491         # have to do anything special.
16492         aix_use_runtimelinking=no
16493         exp_sym_flag='-Bexport'
16494         no_entry_flag=""
16495       else
16496         # If we're using GNU nm, then we don't want the "-C" option.
16497         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16498         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16499           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16500         else
16501           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16502         fi
16503         aix_use_runtimelinking=no
16504
16505         # Test if we are trying to use run time linking or normal
16506         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16507         # need to do runtime linking.
16508         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16509           for ld_flag in $LDFLAGS; do
16510           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16511             aix_use_runtimelinking=yes
16512             break
16513           fi
16514           done
16515           ;;
16516         esac
16517
16518         exp_sym_flag='-bexport'
16519         no_entry_flag='-bnoentry'
16520       fi
16521
16522       # When large executables or shared objects are built, AIX ld can
16523       # have problems creating the table of contents.  If linking a library
16524       # or program results in "error TOC overflow" add -mminimal-toc to
16525       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16526       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16527
16528       archive_cmds_GCJ=''
16529       hardcode_direct_GCJ=yes
16530       hardcode_libdir_separator_GCJ=':'
16531       link_all_deplibs_GCJ=yes
16532
16533       if test "$GCC" = yes; then
16534         case $host_os in aix4.[012]|aix4.[012].*)
16535         # We only want to do this on AIX 4.2 and lower, the check
16536         # below for broken collect2 doesn't work under 4.3+
16537           collect2name=`${CC} -print-prog-name=collect2`
16538           if test -f "$collect2name" && \
16539            strings "$collect2name" | grep resolve_lib_name >/dev/null
16540           then
16541           # We have reworked collect2
16542           hardcode_direct_GCJ=yes
16543           else
16544           # We have old collect2
16545           hardcode_direct_GCJ=unsupported
16546           # It fails to find uninstalled libraries when the uninstalled
16547           # path is not listed in the libpath.  Setting hardcode_minus_L
16548           # to unsupported forces relinking
16549           hardcode_minus_L_GCJ=yes
16550           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16551           hardcode_libdir_separator_GCJ=
16552           fi
16553           ;;
16554         esac
16555         shared_flag='-shared'
16556         if test "$aix_use_runtimelinking" = yes; then
16557           shared_flag="$shared_flag "'${wl}-G'
16558         fi
16559       else
16560         # not using gcc
16561         if test "$host_cpu" = ia64; then
16562         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16563         # chokes on -Wl,-G. The following line is correct:
16564           shared_flag='-G'
16565         else
16566           if test "$aix_use_runtimelinking" = yes; then
16567             shared_flag='${wl}-G'
16568           else
16569             shared_flag='${wl}-bM:SRE'
16570           fi
16571         fi
16572       fi
16573
16574       # It seems that -bexpall does not export symbols beginning with
16575       # underscore (_), so it is better to generate a list of symbols to export.
16576       always_export_symbols_GCJ=yes
16577       if test "$aix_use_runtimelinking" = yes; then
16578         # Warning - without using the other runtime loading flags (-brtl),
16579         # -berok will link without error, but may produce a broken library.
16580         allow_undefined_flag_GCJ='-berok'
16581        # Determine the default libpath from the value encoded in an empty executable.
16582        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h.  */
16584
16585 int
16586 main ()
16587 {
16588
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 if ac_fn_c_try_link "$LINENO"; then :
16594
16595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16596 }'`
16597 # Check for a 64-bit object if we didn't find anything.
16598 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16599 }'`; fi
16600 fi
16601 rm -f core conftest.err conftest.$ac_objext \
16602     conftest$ac_exeext conftest.$ac_ext
16603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16604
16605        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16606         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16607        else
16608         if test "$host_cpu" = ia64; then
16609           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16610           allow_undefined_flag_GCJ="-z nodefs"
16611           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16612         else
16613          # Determine the default libpath from the value encoded in an empty executable.
16614          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h.  */
16616
16617 int
16618 main ()
16619 {
16620
16621   ;
16622   return 0;
16623 }
16624 _ACEOF
16625 if ac_fn_c_try_link "$LINENO"; then :
16626
16627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16628 }'`
16629 # Check for a 64-bit object if we didn't find anything.
16630 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16631 }'`; fi
16632 fi
16633 rm -f core conftest.err conftest.$ac_objext \
16634     conftest$ac_exeext conftest.$ac_ext
16635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16636
16637          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16638           # Warning - without using the other run time loading flags,
16639           # -berok will link without error, but may produce a broken library.
16640           no_undefined_flag_GCJ=' ${wl}-bernotok'
16641           allow_undefined_flag_GCJ=' ${wl}-berok'
16642           # Exported symbols can be pulled into shared objects from archives
16643           whole_archive_flag_spec_GCJ='$convenience'
16644           archive_cmds_need_lc_GCJ=yes
16645           # This is similar to how AIX traditionally builds its shared libraries.
16646           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16647         fi
16648       fi
16649       ;;
16650
16651     amigaos*)
16652       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16653       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16654       hardcode_minus_L_GCJ=yes
16655       # see comment about different semantics on the GNU ld section
16656       ld_shlibs_GCJ=no
16657       ;;
16658
16659     bsdi[45]*)
16660       export_dynamic_flag_spec_GCJ=-rdynamic
16661       ;;
16662
16663     cygwin* | mingw* | pw32*)
16664       # When not using gcc, we currently assume that we are using
16665       # Microsoft Visual C++.
16666       # hardcode_libdir_flag_spec is actually meaningless, as there is
16667       # no search path for DLLs.
16668       hardcode_libdir_flag_spec_GCJ=' '
16669       allow_undefined_flag_GCJ=unsupported
16670       # Tell ltmain to make .lib files, not .a files.
16671       libext=lib
16672       # Tell ltmain to make .dll files, not .so files.
16673       shrext_cmds=".dll"
16674       # FIXME: Setting linknames here is a bad hack.
16675       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16676       # The linker will automatically build a .lib file if we build a DLL.
16677       old_archive_From_new_cmds_GCJ='true'
16678       # FIXME: Should let the user specify the lib program.
16679       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16680       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16681       enable_shared_with_static_runtimes_GCJ=yes
16682       ;;
16683
16684     darwin* | rhapsody*)
16685       case $host_os in
16686         rhapsody* | darwin1.[012])
16687          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16688          ;;
16689        *) # Darwin 1.3 on
16690          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16691            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16692          else
16693            case ${MACOSX_DEPLOYMENT_TARGET} in
16694              10.[012])
16695                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16696                ;;
16697              10.*)
16698                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16699                ;;
16700            esac
16701          fi
16702          ;;
16703       esac
16704       archive_cmds_need_lc_GCJ=no
16705       hardcode_direct_GCJ=no
16706       hardcode_automatic_GCJ=yes
16707       hardcode_shlibpath_var_GCJ=unsupported
16708       whole_archive_flag_spec_GCJ=''
16709       link_all_deplibs_GCJ=yes
16710     if test "$GCC" = yes ; then
16711         output_verbose_link_cmd='echo'
16712         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16713       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16714       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16715       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16716       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16717     else
16718       case $cc_basename in
16719         xlc*)
16720          output_verbose_link_cmd='echo'
16721          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16722          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16723           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16724          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16725           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16726           ;;
16727        *)
16728          ld_shlibs_GCJ=no
16729           ;;
16730       esac
16731     fi
16732       ;;
16733
16734     dgux*)
16735       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16736       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16737       hardcode_shlibpath_var_GCJ=no
16738       ;;
16739
16740     freebsd1*)
16741       ld_shlibs_GCJ=no
16742       ;;
16743
16744     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16745     # support.  Future versions do this automatically, but an explicit c++rt0.o
16746     # does not break anything, and helps significantly (at the cost of a little
16747     # extra space).
16748     freebsd2.2*)
16749       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16750       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16751       hardcode_direct_GCJ=yes
16752       hardcode_shlibpath_var_GCJ=no
16753       ;;
16754
16755     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16756     freebsd2*)
16757       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16758       hardcode_direct_GCJ=yes
16759       hardcode_minus_L_GCJ=yes
16760       hardcode_shlibpath_var_GCJ=no
16761       ;;
16762
16763     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16764     freebsd* | kfreebsd*-gnu | dragonfly*)
16765       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16766       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16767       hardcode_direct_GCJ=yes
16768       hardcode_shlibpath_var_GCJ=no
16769       ;;
16770
16771     hpux9*)
16772       if test "$GCC" = yes; then
16773         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16774       else
16775         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16776       fi
16777       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16778       hardcode_libdir_separator_GCJ=:
16779       hardcode_direct_GCJ=yes
16780
16781       # hardcode_minus_L: Not really in the search PATH,
16782       # but as the default location of the library.
16783       hardcode_minus_L_GCJ=yes
16784       export_dynamic_flag_spec_GCJ='${wl}-E'
16785       ;;
16786
16787     hpux10*)
16788       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16789         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16790       else
16791         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16792       fi
16793       if test "$with_gnu_ld" = no; then
16794         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16795         hardcode_libdir_separator_GCJ=:
16796
16797         hardcode_direct_GCJ=yes
16798         export_dynamic_flag_spec_GCJ='${wl}-E'
16799
16800         # hardcode_minus_L: Not really in the search PATH,
16801         # but as the default location of the library.
16802         hardcode_minus_L_GCJ=yes
16803       fi
16804       ;;
16805
16806     hpux11*)
16807       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16808         case $host_cpu in
16809         hppa*64*)
16810           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16811           ;;
16812         ia64*)
16813           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16814           ;;
16815         *)
16816           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16817           ;;
16818         esac
16819       else
16820         case $host_cpu in
16821         hppa*64*)
16822           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16823           ;;
16824         ia64*)
16825           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16826           ;;
16827         *)
16828           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16829           ;;
16830         esac
16831       fi
16832       if test "$with_gnu_ld" = no; then
16833         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16834         hardcode_libdir_separator_GCJ=:
16835
16836         case $host_cpu in
16837         hppa*64*|ia64*)
16838           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16839           hardcode_direct_GCJ=no
16840           hardcode_shlibpath_var_GCJ=no
16841           ;;
16842         *)
16843           hardcode_direct_GCJ=yes
16844           export_dynamic_flag_spec_GCJ='${wl}-E'
16845
16846           # hardcode_minus_L: Not really in the search PATH,
16847           # but as the default location of the library.
16848           hardcode_minus_L_GCJ=yes
16849           ;;
16850         esac
16851       fi
16852       ;;
16853
16854     irix5* | irix6* | nonstopux*)
16855       if test "$GCC" = yes; then
16856         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16857       else
16858         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16859         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16860       fi
16861       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16862       hardcode_libdir_separator_GCJ=:
16863       link_all_deplibs_GCJ=yes
16864       ;;
16865
16866     netbsd*)
16867       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16868         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16869       else
16870         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16871       fi
16872       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16873       hardcode_direct_GCJ=yes
16874       hardcode_shlibpath_var_GCJ=no
16875       ;;
16876
16877     newsos6)
16878       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16879       hardcode_direct_GCJ=yes
16880       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16881       hardcode_libdir_separator_GCJ=:
16882       hardcode_shlibpath_var_GCJ=no
16883       ;;
16884
16885     openbsd*)
16886       hardcode_direct_GCJ=yes
16887       hardcode_shlibpath_var_GCJ=no
16888       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16889         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16890         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16891         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16892         export_dynamic_flag_spec_GCJ='${wl}-E'
16893       else
16894        case $host_os in
16895          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16896            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16897            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16898            ;;
16899          *)
16900            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16901            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16902            ;;
16903        esac
16904       fi
16905       ;;
16906
16907     os2*)
16908       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16909       hardcode_minus_L_GCJ=yes
16910       allow_undefined_flag_GCJ=unsupported
16911       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16912       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16913       ;;
16914
16915     osf3*)
16916       if test "$GCC" = yes; then
16917         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16918         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16919       else
16920         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16921         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16922       fi
16923       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16924       hardcode_libdir_separator_GCJ=:
16925       ;;
16926
16927     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16928       if test "$GCC" = yes; then
16929         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16930         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16931         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16932       else
16933         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16934         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16935         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16936         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16937
16938         # Both c and cxx compiler support -rpath directly
16939         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16940       fi
16941       hardcode_libdir_separator_GCJ=:
16942       ;;
16943
16944     solaris*)
16945       no_undefined_flag_GCJ=' -z text'
16946       if test "$GCC" = yes; then
16947         wlarc='${wl}'
16948         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16949         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16950           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16951       else
16952         wlarc=''
16953         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16954         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16955         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16956       fi
16957       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16958       hardcode_shlibpath_var_GCJ=no
16959       case $host_os in
16960       solaris2.[0-5] | solaris2.[0-5].*) ;;
16961       *)
16962         # The compiler driver will combine linker options so we
16963         # cannot just pass the convience library names through
16964         # without $wl, iff we do not link with $LD.
16965         # Luckily, gcc supports the same syntax we need for Sun Studio.
16966         # Supported since Solaris 2.6 (maybe 2.5.1?)
16967         case $wlarc in
16968         '')
16969           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16970         *)
16971           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16972         esac ;;
16973       esac
16974       link_all_deplibs_GCJ=yes
16975       ;;
16976
16977     sunos4*)
16978       if test "x$host_vendor" = xsequent; then
16979         # Use $CC to link under sequent, because it throws in some extra .o
16980         # files that make .init and .fini sections work.
16981         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16982       else
16983         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16984       fi
16985       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16986       hardcode_direct_GCJ=yes
16987       hardcode_minus_L_GCJ=yes
16988       hardcode_shlibpath_var_GCJ=no
16989       ;;
16990
16991     sysv4)
16992       case $host_vendor in
16993         sni)
16994           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16995           hardcode_direct_GCJ=yes # is this really true???
16996         ;;
16997         siemens)
16998           ## LD is ld it makes a PLAMLIB
16999           ## CC just makes a GrossModule.
17000           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17001           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17002           hardcode_direct_GCJ=no
17003         ;;
17004         motorola)
17005           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17007         ;;
17008       esac
17009       runpath_var='LD_RUN_PATH'
17010       hardcode_shlibpath_var_GCJ=no
17011       ;;
17012
17013     sysv4.3*)
17014       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015       hardcode_shlibpath_var_GCJ=no
17016       export_dynamic_flag_spec_GCJ='-Bexport'
17017       ;;
17018
17019     sysv4*MP*)
17020       if test -d /usr/nec; then
17021         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17022         hardcode_shlibpath_var_GCJ=no
17023         runpath_var=LD_RUN_PATH
17024         hardcode_runpath_var=yes
17025         ld_shlibs_GCJ=yes
17026       fi
17027       ;;
17028
17029     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17030       no_undefined_flag_GCJ='${wl}-z,text'
17031       archive_cmds_need_lc_GCJ=no
17032       hardcode_shlibpath_var_GCJ=no
17033       runpath_var='LD_RUN_PATH'
17034
17035       if test "$GCC" = yes; then
17036         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17037         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17038       else
17039         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17040         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17041       fi
17042       ;;
17043
17044     sysv5* | sco3.2v5* | sco5v6*)
17045       # Note: We can NOT use -z defs as we might desire, because we do not
17046       # link with -lc, and that would cause any symbols used from libc to
17047       # always be unresolved, which means just about no library would
17048       # ever link correctly.  If we're not using GNU ld we use -z text
17049       # though, which does catch some bad symbols but isn't as heavy-handed
17050       # as -z defs.
17051       no_undefined_flag_GCJ='${wl}-z,text'
17052       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17053       archive_cmds_need_lc_GCJ=no
17054       hardcode_shlibpath_var_GCJ=no
17055       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17056       hardcode_libdir_separator_GCJ=':'
17057       link_all_deplibs_GCJ=yes
17058       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17059       runpath_var='LD_RUN_PATH'
17060
17061       if test "$GCC" = yes; then
17062         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17063         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17064       else
17065         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17066         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17067       fi
17068       ;;
17069
17070     uts4*)
17071       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17072       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17073       hardcode_shlibpath_var_GCJ=no
17074       ;;
17075
17076     *)
17077       ld_shlibs_GCJ=no
17078       ;;
17079     esac
17080   fi
17081
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17083 $as_echo "$ld_shlibs_GCJ" >&6; }
17084 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17085
17086 #
17087 # Do we need to explicitly link libc?
17088 #
17089 case "x$archive_cmds_need_lc_GCJ" in
17090 x|xyes)
17091   # Assume -lc should be added
17092   archive_cmds_need_lc_GCJ=yes
17093
17094   if test "$enable_shared" = yes && test "$GCC" = yes; then
17095     case $archive_cmds_GCJ in
17096     *'~'*)
17097       # FIXME: we may have to deal with multi-command sequences.
17098       ;;
17099     '$CC '*)
17100       # Test whether the compiler implicitly links with -lc since on some
17101       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17102       # to ld, don't add -lc before -lgcc.
17103       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17104 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17105       $rm conftest*
17106       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17107
17108       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17109   (eval $ac_compile) 2>&5
17110   ac_status=$?
17111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17112   test $ac_status = 0; } 2>conftest.err; then
17113         soname=conftest
17114         lib=conftest
17115         libobjs=conftest.$ac_objext
17116         deplibs=
17117         wl=$lt_prog_compiler_wl_GCJ
17118         pic_flag=$lt_prog_compiler_pic_GCJ
17119         compiler_flags=-v
17120         linker_flags=-v
17121         verstring=
17122         output_objdir=.
17123         libname=conftest
17124         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17125         allow_undefined_flag_GCJ=
17126         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17127   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17128   ac_status=$?
17129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17130   test $ac_status = 0; }
17131         then
17132           archive_cmds_need_lc_GCJ=no
17133         else
17134           archive_cmds_need_lc_GCJ=yes
17135         fi
17136         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17137       else
17138         cat conftest.err 1>&5
17139       fi
17140       $rm conftest*
17141       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17142 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17143       ;;
17144     esac
17145   fi
17146   ;;
17147 esac
17148
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17150 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17151 library_names_spec=
17152 libname_spec='lib$name'
17153 soname_spec=
17154 shrext_cmds=".so"
17155 postinstall_cmds=
17156 postuninstall_cmds=
17157 finish_cmds=
17158 finish_eval=
17159 shlibpath_var=
17160 shlibpath_overrides_runpath=unknown
17161 version_type=none
17162 dynamic_linker="$host_os ld.so"
17163 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17164 if test "$GCC" = yes; then
17165   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17166   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17167     # if the path contains ";" then we assume it to be the separator
17168     # otherwise default to the standard path separator (i.e. ":") - it is
17169     # assumed that no part of a normal pathname contains ";" but that should
17170     # okay in the real world where ";" in dirpaths is itself problematic.
17171     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17172   else
17173     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17174   fi
17175 else
17176   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17177 fi
17178 need_lib_prefix=unknown
17179 hardcode_into_libs=no
17180
17181 # when you set need_version to no, make sure it does not cause -set_version
17182 # flags to be left without arguments
17183 need_version=unknown
17184
17185 case $host_os in
17186 aix3*)
17187   version_type=linux
17188   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17189   shlibpath_var=LIBPATH
17190
17191   # AIX 3 has no versioning support, so we append a major version to the name.
17192   soname_spec='${libname}${release}${shared_ext}$major'
17193   ;;
17194
17195 aix4* | aix5*)
17196   version_type=linux
17197   need_lib_prefix=no
17198   need_version=no
17199   hardcode_into_libs=yes
17200   if test "$host_cpu" = ia64; then
17201     # AIX 5 supports IA64
17202     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17203     shlibpath_var=LD_LIBRARY_PATH
17204   else
17205     # With GCC up to 2.95.x, collect2 would create an import file
17206     # for dependence libraries.  The import file would start with
17207     # the line `#! .'.  This would cause the generated library to
17208     # depend on `.', always an invalid library.  This was fixed in
17209     # development snapshots of GCC prior to 3.0.
17210     case $host_os in
17211       aix4 | aix4.[01] | aix4.[01].*)
17212       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17213            echo ' yes '
17214            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17215         :
17216       else
17217         can_build_shared=no
17218       fi
17219       ;;
17220     esac
17221     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17222     # soname into executable. Probably we can add versioning support to
17223     # collect2, so additional links can be useful in future.
17224     if test "$aix_use_runtimelinking" = yes; then
17225       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17226       # instead of lib<name>.a to let people know that these are not
17227       # typical AIX shared libraries.
17228       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229     else
17230       # We preserve .a as extension for shared libraries through AIX4.2
17231       # and later when we are not doing run time linking.
17232       library_names_spec='${libname}${release}.a $libname.a'
17233       soname_spec='${libname}${release}${shared_ext}$major'
17234     fi
17235     shlibpath_var=LIBPATH
17236   fi
17237   ;;
17238
17239 amigaos*)
17240   library_names_spec='$libname.ixlibrary $libname.a'
17241   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17242   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17243   ;;
17244
17245 beos*)
17246   library_names_spec='${libname}${shared_ext}'
17247   dynamic_linker="$host_os ld.so"
17248   shlibpath_var=LIBRARY_PATH
17249   ;;
17250
17251 bsdi[45]*)
17252   version_type=linux
17253   need_version=no
17254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255   soname_spec='${libname}${release}${shared_ext}$major'
17256   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17257   shlibpath_var=LD_LIBRARY_PATH
17258   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17259   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17260   # the default ld.so.conf also contains /usr/contrib/lib and
17261   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17262   # libtool to hard-code these into programs
17263   ;;
17264
17265 cygwin* | mingw* | pw32*)
17266   version_type=windows
17267   shrext_cmds=".dll"
17268   need_version=no
17269   need_lib_prefix=no
17270
17271   case $GCC,$host_os in
17272   yes,cygwin* | yes,mingw* | yes,pw32*)
17273     library_names_spec='$libname.dll.a'
17274     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17275     postinstall_cmds='base_file=`basename \${file}`~
17276       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17277       dldir=$destdir/`dirname \$dlpath`~
17278       test -d \$dldir || mkdir -p \$dldir~
17279       $install_prog $dir/$dlname \$dldir/$dlname~
17280       chmod a+x \$dldir/$dlname'
17281     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17282       dlpath=$dir/\$dldll~
17283        $rm \$dlpath'
17284     shlibpath_overrides_runpath=yes
17285
17286     case $host_os in
17287     cygwin*)
17288       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17289       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17290       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17291       ;;
17292     mingw*)
17293       # MinGW DLLs use traditional 'lib' prefix
17294       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17295       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17296       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17297         # It is most probably a Windows format PATH printed by
17298         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17299         # path with ; separators, and with drive letters. We can handle the
17300         # drive letters (cygwin fileutils understands them), so leave them,
17301         # especially as we might pass files found there to a mingw objdump,
17302         # which wouldn't understand a cygwinified path. Ahh.
17303         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17304       else
17305         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17306       fi
17307       ;;
17308     pw32*)
17309       # pw32 DLLs use 'pw' prefix rather than 'lib'
17310       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17311       ;;
17312     esac
17313     ;;
17314
17315   *)
17316     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17317     ;;
17318   esac
17319   dynamic_linker='Win32 ld.exe'
17320   # FIXME: first we should search . and the directory the executable is in
17321   shlibpath_var=PATH
17322   ;;
17323
17324 darwin* | rhapsody*)
17325   dynamic_linker="$host_os dyld"
17326   version_type=darwin
17327   need_lib_prefix=no
17328   need_version=no
17329   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17330   soname_spec='${libname}${release}${major}$shared_ext'
17331   shlibpath_overrides_runpath=yes
17332   shlibpath_var=DYLD_LIBRARY_PATH
17333   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17334   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17335   if test "$GCC" = yes; then
17336     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17337   else
17338     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17339   fi
17340   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17341   ;;
17342
17343 dgux*)
17344   version_type=linux
17345   need_lib_prefix=no
17346   need_version=no
17347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17348   soname_spec='${libname}${release}${shared_ext}$major'
17349   shlibpath_var=LD_LIBRARY_PATH
17350   ;;
17351
17352 freebsd1*)
17353   dynamic_linker=no
17354   ;;
17355
17356 kfreebsd*-gnu)
17357   version_type=linux
17358   need_lib_prefix=no
17359   need_version=no
17360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17361   soname_spec='${libname}${release}${shared_ext}$major'
17362   shlibpath_var=LD_LIBRARY_PATH
17363   shlibpath_overrides_runpath=no
17364   hardcode_into_libs=yes
17365   dynamic_linker='GNU ld.so'
17366   ;;
17367
17368 freebsd* | dragonfly*)
17369   # DragonFly does not have aout.  When/if they implement a new
17370   # versioning mechanism, adjust this.
17371   if test -x /usr/bin/objformat; then
17372     objformat=`/usr/bin/objformat`
17373   else
17374     case $host_os in
17375     freebsd[123]*) objformat=aout ;;
17376     *) objformat=elf ;;
17377     esac
17378   fi
17379   version_type=freebsd-$objformat
17380   case $version_type in
17381     freebsd-elf*)
17382       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17383       need_version=no
17384       need_lib_prefix=no
17385       ;;
17386     freebsd-*)
17387       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17388       need_version=yes
17389       ;;
17390   esac
17391   shlibpath_var=LD_LIBRARY_PATH
17392   case $host_os in
17393   freebsd2*)
17394     shlibpath_overrides_runpath=yes
17395     ;;
17396   freebsd3.[01]* | freebsdelf3.[01]*)
17397     shlibpath_overrides_runpath=yes
17398     hardcode_into_libs=yes
17399     ;;
17400   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17401   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17402     shlibpath_overrides_runpath=no
17403     hardcode_into_libs=yes
17404     ;;
17405   freebsd*) # from 4.6 on
17406     shlibpath_overrides_runpath=yes
17407     hardcode_into_libs=yes
17408     ;;
17409   esac
17410   ;;
17411
17412 gnu*)
17413   version_type=linux
17414   need_lib_prefix=no
17415   need_version=no
17416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17417   soname_spec='${libname}${release}${shared_ext}$major'
17418   shlibpath_var=LD_LIBRARY_PATH
17419   hardcode_into_libs=yes
17420   ;;
17421
17422 hpux9* | hpux10* | hpux11*)
17423   # Give a soname corresponding to the major version so that dld.sl refuses to
17424   # link against other versions.
17425   version_type=sunos
17426   need_lib_prefix=no
17427   need_version=no
17428   case $host_cpu in
17429   ia64*)
17430     shrext_cmds='.so'
17431     hardcode_into_libs=yes
17432     dynamic_linker="$host_os dld.so"
17433     shlibpath_var=LD_LIBRARY_PATH
17434     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436     soname_spec='${libname}${release}${shared_ext}$major'
17437     if test "X$HPUX_IA64_MODE" = X32; then
17438       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17439     else
17440       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17441     fi
17442     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17443     ;;
17444    hppa*64*)
17445      shrext_cmds='.sl'
17446      hardcode_into_libs=yes
17447      dynamic_linker="$host_os dld.sl"
17448      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17449      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17450      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451      soname_spec='${libname}${release}${shared_ext}$major'
17452      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17453      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17454      ;;
17455    *)
17456     shrext_cmds='.sl'
17457     dynamic_linker="$host_os dld.sl"
17458     shlibpath_var=SHLIB_PATH
17459     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461     soname_spec='${libname}${release}${shared_ext}$major'
17462     ;;
17463   esac
17464   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17465   postinstall_cmds='chmod 555 $lib'
17466   ;;
17467
17468 interix3*)
17469   version_type=linux
17470   need_lib_prefix=no
17471   need_version=no
17472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17473   soname_spec='${libname}${release}${shared_ext}$major'
17474   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17475   shlibpath_var=LD_LIBRARY_PATH
17476   shlibpath_overrides_runpath=no
17477   hardcode_into_libs=yes
17478   ;;
17479
17480 irix5* | irix6* | nonstopux*)
17481   case $host_os in
17482     nonstopux*) version_type=nonstopux ;;
17483     *)
17484         if test "$lt_cv_prog_gnu_ld" = yes; then
17485                 version_type=linux
17486         else
17487                 version_type=irix
17488         fi ;;
17489   esac
17490   need_lib_prefix=no
17491   need_version=no
17492   soname_spec='${libname}${release}${shared_ext}$major'
17493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17494   case $host_os in
17495   irix5* | nonstopux*)
17496     libsuff= shlibsuff=
17497     ;;
17498   *)
17499     case $LD in # libtool.m4 will add one of these switches to LD
17500     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17501       libsuff= shlibsuff= libmagic=32-bit;;
17502     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17503       libsuff=32 shlibsuff=N32 libmagic=N32;;
17504     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17505       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17506     *) libsuff= shlibsuff= libmagic=never-match;;
17507     esac
17508     ;;
17509   esac
17510   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17511   shlibpath_overrides_runpath=no
17512   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17513   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17514   hardcode_into_libs=yes
17515   ;;
17516
17517 # No shared lib support for Linux oldld, aout, or coff.
17518 linux*oldld* | linux*aout* | linux*coff*)
17519   dynamic_linker=no
17520   ;;
17521
17522 # This must be Linux ELF.
17523 linux*)
17524   version_type=linux
17525   need_lib_prefix=no
17526   need_version=no
17527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528   soname_spec='${libname}${release}${shared_ext}$major'
17529   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17530   shlibpath_var=LD_LIBRARY_PATH
17531   shlibpath_overrides_runpath=no
17532   # This implies no fast_install, which is unacceptable.
17533   # Some rework will be needed to allow for fast_install
17534   # before this can be enabled.
17535   hardcode_into_libs=yes
17536
17537   # Append ld.so.conf contents to the search path
17538   if test -f /etc/ld.so.conf; then
17539     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17540     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17541   fi
17542
17543   # We used to test for /lib/ld.so.1 and disable shared libraries on
17544   # powerpc, because MkLinux only supported shared libraries with the
17545   # GNU dynamic linker.  Since this was broken with cross compilers,
17546   # most powerpc-linux boxes support dynamic linking these days and
17547   # people can always --disable-shared, the test was removed, and we
17548   # assume the GNU/Linux dynamic linker is in use.
17549   dynamic_linker='GNU/Linux ld.so'
17550   ;;
17551
17552 knetbsd*-gnu)
17553   version_type=linux
17554   need_lib_prefix=no
17555   need_version=no
17556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17557   soname_spec='${libname}${release}${shared_ext}$major'
17558   shlibpath_var=LD_LIBRARY_PATH
17559   shlibpath_overrides_runpath=no
17560   hardcode_into_libs=yes
17561   dynamic_linker='GNU ld.so'
17562   ;;
17563
17564 netbsd*)
17565   version_type=sunos
17566   need_lib_prefix=no
17567   need_version=no
17568   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17570     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17571     dynamic_linker='NetBSD (a.out) ld.so'
17572   else
17573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17574     soname_spec='${libname}${release}${shared_ext}$major'
17575     dynamic_linker='NetBSD ld.elf_so'
17576   fi
17577   shlibpath_var=LD_LIBRARY_PATH
17578   shlibpath_overrides_runpath=yes
17579   hardcode_into_libs=yes
17580   ;;
17581
17582 newsos6)
17583   version_type=linux
17584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17585   shlibpath_var=LD_LIBRARY_PATH
17586   shlibpath_overrides_runpath=yes
17587   ;;
17588
17589 nto-qnx*)
17590   version_type=linux
17591   need_lib_prefix=no
17592   need_version=no
17593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594   soname_spec='${libname}${release}${shared_ext}$major'
17595   shlibpath_var=LD_LIBRARY_PATH
17596   shlibpath_overrides_runpath=yes
17597   ;;
17598
17599 openbsd*)
17600   version_type=sunos
17601   sys_lib_dlsearch_path_spec="/usr/lib"
17602   need_lib_prefix=no
17603   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17604   case $host_os in
17605     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17606     *)                         need_version=no  ;;
17607   esac
17608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17609   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17610   shlibpath_var=LD_LIBRARY_PATH
17611   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17612     case $host_os in
17613       openbsd2.[89] | openbsd2.[89].*)
17614         shlibpath_overrides_runpath=no
17615         ;;
17616       *)
17617         shlibpath_overrides_runpath=yes
17618         ;;
17619       esac
17620   else
17621     shlibpath_overrides_runpath=yes
17622   fi
17623   ;;
17624
17625 os2*)
17626   libname_spec='$name'
17627   shrext_cmds=".dll"
17628   need_lib_prefix=no
17629   library_names_spec='$libname${shared_ext} $libname.a'
17630   dynamic_linker='OS/2 ld.exe'
17631   shlibpath_var=LIBPATH
17632   ;;
17633
17634 osf3* | osf4* | osf5*)
17635   version_type=osf
17636   need_lib_prefix=no
17637   need_version=no
17638   soname_spec='${libname}${release}${shared_ext}$major'
17639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640   shlibpath_var=LD_LIBRARY_PATH
17641   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17642   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17643   ;;
17644
17645 solaris*)
17646   version_type=linux
17647   need_lib_prefix=no
17648   need_version=no
17649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17650   soname_spec='${libname}${release}${shared_ext}$major'
17651   shlibpath_var=LD_LIBRARY_PATH
17652   shlibpath_overrides_runpath=yes
17653   hardcode_into_libs=yes
17654   # ldd complains unless libraries are executable
17655   postinstall_cmds='chmod +x $lib'
17656   ;;
17657
17658 sunos4*)
17659   version_type=sunos
17660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17661   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17662   shlibpath_var=LD_LIBRARY_PATH
17663   shlibpath_overrides_runpath=yes
17664   if test "$with_gnu_ld" = yes; then
17665     need_lib_prefix=no
17666   fi
17667   need_version=yes
17668   ;;
17669
17670 sysv4 | sysv4.3*)
17671   version_type=linux
17672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673   soname_spec='${libname}${release}${shared_ext}$major'
17674   shlibpath_var=LD_LIBRARY_PATH
17675   case $host_vendor in
17676     sni)
17677       shlibpath_overrides_runpath=no
17678       need_lib_prefix=no
17679       export_dynamic_flag_spec='${wl}-Blargedynsym'
17680       runpath_var=LD_RUN_PATH
17681       ;;
17682     siemens)
17683       need_lib_prefix=no
17684       ;;
17685     motorola)
17686       need_lib_prefix=no
17687       need_version=no
17688       shlibpath_overrides_runpath=no
17689       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17690       ;;
17691   esac
17692   ;;
17693
17694 sysv4*MP*)
17695   if test -d /usr/nec ;then
17696     version_type=linux
17697     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17698     soname_spec='$libname${shared_ext}.$major'
17699     shlibpath_var=LD_LIBRARY_PATH
17700   fi
17701   ;;
17702
17703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17704   version_type=freebsd-elf
17705   need_lib_prefix=no
17706   need_version=no
17707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17708   soname_spec='${libname}${release}${shared_ext}$major'
17709   shlibpath_var=LD_LIBRARY_PATH
17710   hardcode_into_libs=yes
17711   if test "$with_gnu_ld" = yes; then
17712     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17713     shlibpath_overrides_runpath=no
17714   else
17715     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17716     shlibpath_overrides_runpath=yes
17717     case $host_os in
17718       sco3.2v5*)
17719         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17720         ;;
17721     esac
17722   fi
17723   sys_lib_dlsearch_path_spec='/usr/lib'
17724   ;;
17725
17726 uts4*)
17727   version_type=linux
17728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729   soname_spec='${libname}${release}${shared_ext}$major'
17730   shlibpath_var=LD_LIBRARY_PATH
17731   ;;
17732
17733 *)
17734   dynamic_linker=no
17735   ;;
17736 esac
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17738 $as_echo "$dynamic_linker" >&6; }
17739 test "$dynamic_linker" = no && can_build_shared=no
17740
17741 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17742 if test "$GCC" = yes; then
17743   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17744 fi
17745
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17747 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17748 hardcode_action_GCJ=
17749 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17750    test -n "$runpath_var_GCJ" || \
17751    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17752
17753   # We can hardcode non-existant directories.
17754   if test "$hardcode_direct_GCJ" != no &&
17755      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17756      # have to relink, otherwise we might link with an installed library
17757      # when we should be linking with a yet-to-be-installed one
17758      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17759      test "$hardcode_minus_L_GCJ" != no; then
17760     # Linking always hardcodes the temporary library directory.
17761     hardcode_action_GCJ=relink
17762   else
17763     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17764     hardcode_action_GCJ=immediate
17765   fi
17766 else
17767   # We cannot hardcode anything, or else we can only hardcode existing
17768   # directories.
17769   hardcode_action_GCJ=unsupported
17770 fi
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17772 $as_echo "$hardcode_action_GCJ" >&6; }
17773
17774 if test "$hardcode_action_GCJ" = relink; then
17775   # Fast installation is not supported
17776   enable_fast_install=no
17777 elif test "$shlibpath_overrides_runpath" = yes ||
17778      test "$enable_shared" = no; then
17779   # Fast installation is not necessary
17780   enable_fast_install=needless
17781 fi
17782
17783
17784 # The else clause should only fire when bootstrapping the
17785 # libtool distribution, otherwise you forgot to ship ltmain.sh
17786 # with your package, and you will get complaints that there are
17787 # no rules to generate ltmain.sh.
17788 if test -f "$ltmain"; then
17789   # See if we are running on zsh, and set the options which allow our commands through
17790   # without removal of \ escapes.
17791   if test -n "${ZSH_VERSION+set}" ; then
17792     setopt NO_GLOB_SUBST
17793   fi
17794   # Now quote all the things that may contain metacharacters while being
17795   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17796   # variables and quote the copies for generation of the libtool script.
17797   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17798     SED SHELL STRIP \
17799     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17800     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17801     deplibs_check_method reload_flag reload_cmds need_locks \
17802     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17803     lt_cv_sys_global_symbol_to_c_name_address \
17804     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17805     old_postinstall_cmds old_postuninstall_cmds \
17806     compiler_GCJ \
17807     CC_GCJ \
17808     LD_GCJ \
17809     lt_prog_compiler_wl_GCJ \
17810     lt_prog_compiler_pic_GCJ \
17811     lt_prog_compiler_static_GCJ \
17812     lt_prog_compiler_no_builtin_flag_GCJ \
17813     export_dynamic_flag_spec_GCJ \
17814     thread_safe_flag_spec_GCJ \
17815     whole_archive_flag_spec_GCJ \
17816     enable_shared_with_static_runtimes_GCJ \
17817     old_archive_cmds_GCJ \
17818     old_archive_from_new_cmds_GCJ \
17819     predep_objects_GCJ \
17820     postdep_objects_GCJ \
17821     predeps_GCJ \
17822     postdeps_GCJ \
17823     compiler_lib_search_path_GCJ \
17824     archive_cmds_GCJ \
17825     archive_expsym_cmds_GCJ \
17826     postinstall_cmds_GCJ \
17827     postuninstall_cmds_GCJ \
17828     old_archive_from_expsyms_cmds_GCJ \
17829     allow_undefined_flag_GCJ \
17830     no_undefined_flag_GCJ \
17831     export_symbols_cmds_GCJ \
17832     hardcode_libdir_flag_spec_GCJ \
17833     hardcode_libdir_flag_spec_ld_GCJ \
17834     hardcode_libdir_separator_GCJ \
17835     hardcode_automatic_GCJ \
17836     module_cmds_GCJ \
17837     module_expsym_cmds_GCJ \
17838     lt_cv_prog_compiler_c_o_GCJ \
17839     exclude_expsyms_GCJ \
17840     include_expsyms_GCJ; do
17841
17842     case $var in
17843     old_archive_cmds_GCJ | \
17844     old_archive_from_new_cmds_GCJ | \
17845     archive_cmds_GCJ | \
17846     archive_expsym_cmds_GCJ | \
17847     module_cmds_GCJ | \
17848     module_expsym_cmds_GCJ | \
17849     old_archive_from_expsyms_cmds_GCJ | \
17850     export_symbols_cmds_GCJ | \
17851     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17852     postinstall_cmds | postuninstall_cmds | \
17853     old_postinstall_cmds | old_postuninstall_cmds | \
17854     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17855       # Double-quote double-evaled strings.
17856       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17857       ;;
17858     *)
17859       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17860       ;;
17861     esac
17862   done
17863
17864   case $lt_echo in
17865   *'\$0 --fallback-echo"')
17866     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17867     ;;
17868   esac
17869
17870 cfgfile="$ofile"
17871
17872   cat <<__EOF__ >> "$cfgfile"
17873 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17874
17875 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17876
17877 # Shell to use when invoking shell scripts.
17878 SHELL=$lt_SHELL
17879
17880 # Whether or not to build shared libraries.
17881 build_libtool_libs=$enable_shared
17882
17883 # Whether or not to build static libraries.
17884 build_old_libs=$enable_static
17885
17886 # Whether or not to add -lc for building shared libraries.
17887 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17888
17889 # Whether or not to disallow shared libs when runtime libs are static
17890 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17891
17892 # Whether or not to optimize for fast installation.
17893 fast_install=$enable_fast_install
17894
17895 # The host system.
17896 host_alias=$host_alias
17897 host=$host
17898 host_os=$host_os
17899
17900 # The build system.
17901 build_alias=$build_alias
17902 build=$build
17903 build_os=$build_os
17904
17905 # An echo program that does not interpret backslashes.
17906 echo=$lt_echo
17907
17908 # The archiver.
17909 AR=$lt_AR
17910 AR_FLAGS=$lt_AR_FLAGS
17911
17912 # A C compiler.
17913 LTCC=$lt_LTCC
17914
17915 # LTCC compiler flags.
17916 LTCFLAGS=$lt_LTCFLAGS
17917
17918 # A language-specific compiler.
17919 CC=$lt_compiler_GCJ
17920
17921 # Is the compiler the GNU C compiler?
17922 with_gcc=$GCC_GCJ
17923
17924 # An ERE matcher.
17925 EGREP=$lt_EGREP
17926
17927 # The linker used to build libraries.
17928 LD=$lt_LD_GCJ
17929
17930 # Whether we need hard or soft links.
17931 LN_S=$lt_LN_S
17932
17933 # A BSD-compatible nm program.
17934 NM=$lt_NM
17935
17936 # A symbol stripping program
17937 STRIP=$lt_STRIP
17938
17939 # Used to examine libraries when file_magic_cmd begins "file"
17940 MAGIC_CMD=$MAGIC_CMD
17941
17942 # Used on cygwin: DLL creation program.
17943 DLLTOOL="$DLLTOOL"
17944
17945 # Used on cygwin: object dumper.
17946 OBJDUMP="$OBJDUMP"
17947
17948 # Used on cygwin: assembler.
17949 AS="$AS"
17950
17951 # The name of the directory that contains temporary libtool files.
17952 objdir=$objdir
17953
17954 # How to create reloadable object files.
17955 reload_flag=$lt_reload_flag
17956 reload_cmds=$lt_reload_cmds
17957
17958 # How to pass a linker flag through the compiler.
17959 wl=$lt_lt_prog_compiler_wl_GCJ
17960
17961 # Object file suffix (normally "o").
17962 objext="$ac_objext"
17963
17964 # Old archive suffix (normally "a").
17965 libext="$libext"
17966
17967 # Shared library suffix (normally ".so").
17968 shrext_cmds='$shrext_cmds'
17969
17970 # Executable file suffix (normally "").
17971 exeext="$exeext"
17972
17973 # Additional compiler flags for building library objects.
17974 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17975 pic_mode=$pic_mode
17976
17977 # What is the maximum length of a command?
17978 max_cmd_len=$lt_cv_sys_max_cmd_len
17979
17980 # Does compiler simultaneously support -c and -o options?
17981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17982
17983 # Must we lock files when doing compilation?
17984 need_locks=$lt_need_locks
17985
17986 # Do we need the lib prefix for modules?
17987 need_lib_prefix=$need_lib_prefix
17988
17989 # Do we need a version for libraries?
17990 need_version=$need_version
17991
17992 # Whether dlopen is supported.
17993 dlopen_support=$enable_dlopen
17994
17995 # Whether dlopen of programs is supported.
17996 dlopen_self=$enable_dlopen_self
17997
17998 # Whether dlopen of statically linked programs is supported.
17999 dlopen_self_static=$enable_dlopen_self_static
18000
18001 # Compiler flag to prevent dynamic linking.
18002 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18003
18004 # Compiler flag to turn off builtin functions.
18005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18006
18007 # Compiler flag to allow reflexive dlopens.
18008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18009
18010 # Compiler flag to generate shared objects directly from archives.
18011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18012
18013 # Compiler flag to generate thread-safe objects.
18014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18015
18016 # Library versioning type.
18017 version_type=$version_type
18018
18019 # Format of library name prefix.
18020 libname_spec=$lt_libname_spec
18021
18022 # List of archive names.  First name is the real one, the rest are links.
18023 # The last name is the one that the linker finds with -lNAME.
18024 library_names_spec=$lt_library_names_spec
18025
18026 # The coded name of the library, if different from the real name.
18027 soname_spec=$lt_soname_spec
18028
18029 # Commands used to build and install an old-style archive.
18030 RANLIB=$lt_RANLIB
18031 old_archive_cmds=$lt_old_archive_cmds_GCJ
18032 old_postinstall_cmds=$lt_old_postinstall_cmds
18033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18034
18035 # Create an old-style archive from a shared archive.
18036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18037
18038 # Create a temporary old-style archive to link instead of a shared archive.
18039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18040
18041 # Commands used to build and install a shared archive.
18042 archive_cmds=$lt_archive_cmds_GCJ
18043 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18044 postinstall_cmds=$lt_postinstall_cmds
18045 postuninstall_cmds=$lt_postuninstall_cmds
18046
18047 # Commands used to build a loadable module (assumed same as above if empty)
18048 module_cmds=$lt_module_cmds_GCJ
18049 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18050
18051 # Commands to strip libraries.
18052 old_striplib=$lt_old_striplib
18053 striplib=$lt_striplib
18054
18055 # Dependencies to place before the objects being linked to create a
18056 # shared library.
18057 predep_objects=$lt_predep_objects_GCJ
18058
18059 # Dependencies to place after the objects being linked to create a
18060 # shared library.
18061 postdep_objects=$lt_postdep_objects_GCJ
18062
18063 # Dependencies to place before the objects being linked to create a
18064 # shared library.
18065 predeps=$lt_predeps_GCJ
18066
18067 # Dependencies to place after the objects being linked to create a
18068 # shared library.
18069 postdeps=$lt_postdeps_GCJ
18070
18071 # The library search path used internally by the compiler when linking
18072 # a shared library.
18073 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18074
18075 # Method to check whether dependent libraries are shared objects.
18076 deplibs_check_method=$lt_deplibs_check_method
18077
18078 # Command to use when deplibs_check_method == file_magic.
18079 file_magic_cmd=$lt_file_magic_cmd
18080
18081 # Flag that allows shared libraries with undefined symbols to be built.
18082 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18083
18084 # Flag that forces no undefined symbols.
18085 no_undefined_flag=$lt_no_undefined_flag_GCJ
18086
18087 # Commands used to finish a libtool library installation in a directory.
18088 finish_cmds=$lt_finish_cmds
18089
18090 # Same as above, but a single script fragment to be evaled but not shown.
18091 finish_eval=$lt_finish_eval
18092
18093 # Take the output of nm and produce a listing of raw symbols and C names.
18094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18095
18096 # Transform the output of nm in a proper C declaration
18097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18098
18099 # Transform the output of nm in a C name address pair
18100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18101
18102 # This is the shared library runtime path variable.
18103 runpath_var=$runpath_var
18104
18105 # This is the shared library path variable.
18106 shlibpath_var=$shlibpath_var
18107
18108 # Is shlibpath searched before the hard-coded library search path?
18109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18110
18111 # How to hardcode a shared library path into an executable.
18112 hardcode_action=$hardcode_action_GCJ
18113
18114 # Whether we should hardcode library paths into libraries.
18115 hardcode_into_libs=$hardcode_into_libs
18116
18117 # Flag to hardcode \$libdir into a binary during linking.
18118 # This must work even if \$libdir does not exist.
18119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18120
18121 # If ld is used when linking, flag to hardcode \$libdir into
18122 # a binary during linking. This must work even if \$libdir does
18123 # not exist.
18124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18125
18126 # Whether we need a single -rpath flag with a separated argument.
18127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18128
18129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18130 # resulting binary.
18131 hardcode_direct=$hardcode_direct_GCJ
18132
18133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18134 # resulting binary.
18135 hardcode_minus_L=$hardcode_minus_L_GCJ
18136
18137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18138 # the resulting binary.
18139 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18140
18141 # Set to yes if building a shared library automatically hardcodes DIR into the library
18142 # and all subsequent libraries and executables linked against it.
18143 hardcode_automatic=$hardcode_automatic_GCJ
18144
18145 # Variables whose values should be saved in libtool wrapper scripts and
18146 # restored at relink time.
18147 variables_saved_for_relink="$variables_saved_for_relink"
18148
18149 # Whether libtool must link a program against all its dependency libraries.
18150 link_all_deplibs=$link_all_deplibs_GCJ
18151
18152 # Compile-time system search path for libraries
18153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18154
18155 # Run-time system search path for libraries
18156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18157
18158 # Fix the shell variable \$srcfile for the compiler.
18159 fix_srcfile_path="$fix_srcfile_path_GCJ"
18160
18161 # Set to yes if exported symbols are required.
18162 always_export_symbols=$always_export_symbols_GCJ
18163
18164 # The commands to list exported symbols.
18165 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18166
18167 # The commands to extract the exported symbol list from a shared archive.
18168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18169
18170 # Symbols that should not be listed in the preloaded symbols.
18171 exclude_expsyms=$lt_exclude_expsyms_GCJ
18172
18173 # Symbols that must always be exported.
18174 include_expsyms=$lt_include_expsyms_GCJ
18175
18176 # ### END LIBTOOL TAG CONFIG: $tagname
18177
18178 __EOF__
18179
18180
18181 else
18182   # If there is no Makefile yet, we rely on a make rule to execute
18183   # `config.status --recheck' to rerun these tests and create the
18184   # libtool script then.
18185   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18186   if test -f "$ltmain_in"; then
18187     test -f Makefile && make "$ltmain"
18188   fi
18189 fi
18190
18191
18192 ac_ext=c
18193 ac_cpp='$CPP $CPPFLAGS'
18194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18197
18198 CC="$lt_save_CC"
18199
18200         else
18201           tagname=""
18202         fi
18203         ;;
18204
18205       RC)
18206
18207
18208 # Source file extension for RC test sources.
18209 ac_ext=rc
18210
18211 # Object file extension for compiled RC test sources.
18212 objext=o
18213 objext_RC=$objext
18214
18215 # Code to be used in simple compile tests
18216 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18217
18218 # Code to be used in simple link tests
18219 lt_simple_link_test_code="$lt_simple_compile_test_code"
18220
18221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18222
18223 # If no C compiler was specified, use CC.
18224 LTCC=${LTCC-"$CC"}
18225
18226 # If no C compiler flags were specified, use CFLAGS.
18227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18228
18229 # Allow CC to be a program name with arguments.
18230 compiler=$CC
18231
18232
18233 # save warnings/boilerplate of simple test code
18234 ac_outfile=conftest.$ac_objext
18235 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18237 _lt_compiler_boilerplate=`cat conftest.err`
18238 $rm conftest*
18239
18240 ac_outfile=conftest.$ac_objext
18241 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18243 _lt_linker_boilerplate=`cat conftest.err`
18244 $rm conftest*
18245
18246
18247 # Allow CC to be a program name with arguments.
18248 lt_save_CC="$CC"
18249 CC=${RC-"windres"}
18250 compiler=$CC
18251 compiler_RC=$CC
18252 for cc_temp in $compiler""; do
18253   case $cc_temp in
18254     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18255     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18256     \-*) ;;
18257     *) break;;
18258   esac
18259 done
18260 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18261
18262 lt_cv_prog_compiler_c_o_RC=yes
18263
18264 # The else clause should only fire when bootstrapping the
18265 # libtool distribution, otherwise you forgot to ship ltmain.sh
18266 # with your package, and you will get complaints that there are
18267 # no rules to generate ltmain.sh.
18268 if test -f "$ltmain"; then
18269   # See if we are running on zsh, and set the options which allow our commands through
18270   # without removal of \ escapes.
18271   if test -n "${ZSH_VERSION+set}" ; then
18272     setopt NO_GLOB_SUBST
18273   fi
18274   # Now quote all the things that may contain metacharacters while being
18275   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18276   # variables and quote the copies for generation of the libtool script.
18277   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18278     SED SHELL STRIP \
18279     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18280     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18281     deplibs_check_method reload_flag reload_cmds need_locks \
18282     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18283     lt_cv_sys_global_symbol_to_c_name_address \
18284     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18285     old_postinstall_cmds old_postuninstall_cmds \
18286     compiler_RC \
18287     CC_RC \
18288     LD_RC \
18289     lt_prog_compiler_wl_RC \
18290     lt_prog_compiler_pic_RC \
18291     lt_prog_compiler_static_RC \
18292     lt_prog_compiler_no_builtin_flag_RC \
18293     export_dynamic_flag_spec_RC \
18294     thread_safe_flag_spec_RC \
18295     whole_archive_flag_spec_RC \
18296     enable_shared_with_static_runtimes_RC \
18297     old_archive_cmds_RC \
18298     old_archive_from_new_cmds_RC \
18299     predep_objects_RC \
18300     postdep_objects_RC \
18301     predeps_RC \
18302     postdeps_RC \
18303     compiler_lib_search_path_RC \
18304     archive_cmds_RC \
18305     archive_expsym_cmds_RC \
18306     postinstall_cmds_RC \
18307     postuninstall_cmds_RC \
18308     old_archive_from_expsyms_cmds_RC \
18309     allow_undefined_flag_RC \
18310     no_undefined_flag_RC \
18311     export_symbols_cmds_RC \
18312     hardcode_libdir_flag_spec_RC \
18313     hardcode_libdir_flag_spec_ld_RC \
18314     hardcode_libdir_separator_RC \
18315     hardcode_automatic_RC \
18316     module_cmds_RC \
18317     module_expsym_cmds_RC \
18318     lt_cv_prog_compiler_c_o_RC \
18319     exclude_expsyms_RC \
18320     include_expsyms_RC; do
18321
18322     case $var in
18323     old_archive_cmds_RC | \
18324     old_archive_from_new_cmds_RC | \
18325     archive_cmds_RC | \
18326     archive_expsym_cmds_RC | \
18327     module_cmds_RC | \
18328     module_expsym_cmds_RC | \
18329     old_archive_from_expsyms_cmds_RC | \
18330     export_symbols_cmds_RC | \
18331     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18332     postinstall_cmds | postuninstall_cmds | \
18333     old_postinstall_cmds | old_postuninstall_cmds | \
18334     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18335       # Double-quote double-evaled strings.
18336       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18337       ;;
18338     *)
18339       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18340       ;;
18341     esac
18342   done
18343
18344   case $lt_echo in
18345   *'\$0 --fallback-echo"')
18346     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18347     ;;
18348   esac
18349
18350 cfgfile="$ofile"
18351
18352   cat <<__EOF__ >> "$cfgfile"
18353 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18354
18355 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18356
18357 # Shell to use when invoking shell scripts.
18358 SHELL=$lt_SHELL
18359
18360 # Whether or not to build shared libraries.
18361 build_libtool_libs=$enable_shared
18362
18363 # Whether or not to build static libraries.
18364 build_old_libs=$enable_static
18365
18366 # Whether or not to add -lc for building shared libraries.
18367 build_libtool_need_lc=$archive_cmds_need_lc_RC
18368
18369 # Whether or not to disallow shared libs when runtime libs are static
18370 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18371
18372 # Whether or not to optimize for fast installation.
18373 fast_install=$enable_fast_install
18374
18375 # The host system.
18376 host_alias=$host_alias
18377 host=$host
18378 host_os=$host_os
18379
18380 # The build system.
18381 build_alias=$build_alias
18382 build=$build
18383 build_os=$build_os
18384
18385 # An echo program that does not interpret backslashes.
18386 echo=$lt_echo
18387
18388 # The archiver.
18389 AR=$lt_AR
18390 AR_FLAGS=$lt_AR_FLAGS
18391
18392 # A C compiler.
18393 LTCC=$lt_LTCC
18394
18395 # LTCC compiler flags.
18396 LTCFLAGS=$lt_LTCFLAGS
18397
18398 # A language-specific compiler.
18399 CC=$lt_compiler_RC
18400
18401 # Is the compiler the GNU C compiler?
18402 with_gcc=$GCC_RC
18403
18404 # An ERE matcher.
18405 EGREP=$lt_EGREP
18406
18407 # The linker used to build libraries.
18408 LD=$lt_LD_RC
18409
18410 # Whether we need hard or soft links.
18411 LN_S=$lt_LN_S
18412
18413 # A BSD-compatible nm program.
18414 NM=$lt_NM
18415
18416 # A symbol stripping program
18417 STRIP=$lt_STRIP
18418
18419 # Used to examine libraries when file_magic_cmd begins "file"
18420 MAGIC_CMD=$MAGIC_CMD
18421
18422 # Used on cygwin: DLL creation program.
18423 DLLTOOL="$DLLTOOL"
18424
18425 # Used on cygwin: object dumper.
18426 OBJDUMP="$OBJDUMP"
18427
18428 # Used on cygwin: assembler.
18429 AS="$AS"
18430
18431 # The name of the directory that contains temporary libtool files.
18432 objdir=$objdir
18433
18434 # How to create reloadable object files.
18435 reload_flag=$lt_reload_flag
18436 reload_cmds=$lt_reload_cmds
18437
18438 # How to pass a linker flag through the compiler.
18439 wl=$lt_lt_prog_compiler_wl_RC
18440
18441 # Object file suffix (normally "o").
18442 objext="$ac_objext"
18443
18444 # Old archive suffix (normally "a").
18445 libext="$libext"
18446
18447 # Shared library suffix (normally ".so").
18448 shrext_cmds='$shrext_cmds'
18449
18450 # Executable file suffix (normally "").
18451 exeext="$exeext"
18452
18453 # Additional compiler flags for building library objects.
18454 pic_flag=$lt_lt_prog_compiler_pic_RC
18455 pic_mode=$pic_mode
18456
18457 # What is the maximum length of a command?
18458 max_cmd_len=$lt_cv_sys_max_cmd_len
18459
18460 # Does compiler simultaneously support -c and -o options?
18461 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18462
18463 # Must we lock files when doing compilation?
18464 need_locks=$lt_need_locks
18465
18466 # Do we need the lib prefix for modules?
18467 need_lib_prefix=$need_lib_prefix
18468
18469 # Do we need a version for libraries?
18470 need_version=$need_version
18471
18472 # Whether dlopen is supported.
18473 dlopen_support=$enable_dlopen
18474
18475 # Whether dlopen of programs is supported.
18476 dlopen_self=$enable_dlopen_self
18477
18478 # Whether dlopen of statically linked programs is supported.
18479 dlopen_self_static=$enable_dlopen_self_static
18480
18481 # Compiler flag to prevent dynamic linking.
18482 link_static_flag=$lt_lt_prog_compiler_static_RC
18483
18484 # Compiler flag to turn off builtin functions.
18485 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18486
18487 # Compiler flag to allow reflexive dlopens.
18488 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18489
18490 # Compiler flag to generate shared objects directly from archives.
18491 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18492
18493 # Compiler flag to generate thread-safe objects.
18494 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18495
18496 # Library versioning type.
18497 version_type=$version_type
18498
18499 # Format of library name prefix.
18500 libname_spec=$lt_libname_spec
18501
18502 # List of archive names.  First name is the real one, the rest are links.
18503 # The last name is the one that the linker finds with -lNAME.
18504 library_names_spec=$lt_library_names_spec
18505
18506 # The coded name of the library, if different from the real name.
18507 soname_spec=$lt_soname_spec
18508
18509 # Commands used to build and install an old-style archive.
18510 RANLIB=$lt_RANLIB
18511 old_archive_cmds=$lt_old_archive_cmds_RC
18512 old_postinstall_cmds=$lt_old_postinstall_cmds
18513 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18514
18515 # Create an old-style archive from a shared archive.
18516 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18517
18518 # Create a temporary old-style archive to link instead of a shared archive.
18519 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18520
18521 # Commands used to build and install a shared archive.
18522 archive_cmds=$lt_archive_cmds_RC
18523 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18524 postinstall_cmds=$lt_postinstall_cmds
18525 postuninstall_cmds=$lt_postuninstall_cmds
18526
18527 # Commands used to build a loadable module (assumed same as above if empty)
18528 module_cmds=$lt_module_cmds_RC
18529 module_expsym_cmds=$lt_module_expsym_cmds_RC
18530
18531 # Commands to strip libraries.
18532 old_striplib=$lt_old_striplib
18533 striplib=$lt_striplib
18534
18535 # Dependencies to place before the objects being linked to create a
18536 # shared library.
18537 predep_objects=$lt_predep_objects_RC
18538
18539 # Dependencies to place after the objects being linked to create a
18540 # shared library.
18541 postdep_objects=$lt_postdep_objects_RC
18542
18543 # Dependencies to place before the objects being linked to create a
18544 # shared library.
18545 predeps=$lt_predeps_RC
18546
18547 # Dependencies to place after the objects being linked to create a
18548 # shared library.
18549 postdeps=$lt_postdeps_RC
18550
18551 # The library search path used internally by the compiler when linking
18552 # a shared library.
18553 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18554
18555 # Method to check whether dependent libraries are shared objects.
18556 deplibs_check_method=$lt_deplibs_check_method
18557
18558 # Command to use when deplibs_check_method == file_magic.
18559 file_magic_cmd=$lt_file_magic_cmd
18560
18561 # Flag that allows shared libraries with undefined symbols to be built.
18562 allow_undefined_flag=$lt_allow_undefined_flag_RC
18563
18564 # Flag that forces no undefined symbols.
18565 no_undefined_flag=$lt_no_undefined_flag_RC
18566
18567 # Commands used to finish a libtool library installation in a directory.
18568 finish_cmds=$lt_finish_cmds
18569
18570 # Same as above, but a single script fragment to be evaled but not shown.
18571 finish_eval=$lt_finish_eval
18572
18573 # Take the output of nm and produce a listing of raw symbols and C names.
18574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18575
18576 # Transform the output of nm in a proper C declaration
18577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18578
18579 # Transform the output of nm in a C name address pair
18580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18581
18582 # This is the shared library runtime path variable.
18583 runpath_var=$runpath_var
18584
18585 # This is the shared library path variable.
18586 shlibpath_var=$shlibpath_var
18587
18588 # Is shlibpath searched before the hard-coded library search path?
18589 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18590
18591 # How to hardcode a shared library path into an executable.
18592 hardcode_action=$hardcode_action_RC
18593
18594 # Whether we should hardcode library paths into libraries.
18595 hardcode_into_libs=$hardcode_into_libs
18596
18597 # Flag to hardcode \$libdir into a binary during linking.
18598 # This must work even if \$libdir does not exist.
18599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18600
18601 # If ld is used when linking, flag to hardcode \$libdir into
18602 # a binary during linking. This must work even if \$libdir does
18603 # not exist.
18604 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18605
18606 # Whether we need a single -rpath flag with a separated argument.
18607 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18608
18609 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18610 # resulting binary.
18611 hardcode_direct=$hardcode_direct_RC
18612
18613 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18614 # resulting binary.
18615 hardcode_minus_L=$hardcode_minus_L_RC
18616
18617 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18618 # the resulting binary.
18619 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18620
18621 # Set to yes if building a shared library automatically hardcodes DIR into the library
18622 # and all subsequent libraries and executables linked against it.
18623 hardcode_automatic=$hardcode_automatic_RC
18624
18625 # Variables whose values should be saved in libtool wrapper scripts and
18626 # restored at relink time.
18627 variables_saved_for_relink="$variables_saved_for_relink"
18628
18629 # Whether libtool must link a program against all its dependency libraries.
18630 link_all_deplibs=$link_all_deplibs_RC
18631
18632 # Compile-time system search path for libraries
18633 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18634
18635 # Run-time system search path for libraries
18636 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18637
18638 # Fix the shell variable \$srcfile for the compiler.
18639 fix_srcfile_path="$fix_srcfile_path_RC"
18640
18641 # Set to yes if exported symbols are required.
18642 always_export_symbols=$always_export_symbols_RC
18643
18644 # The commands to list exported symbols.
18645 export_symbols_cmds=$lt_export_symbols_cmds_RC
18646
18647 # The commands to extract the exported symbol list from a shared archive.
18648 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18649
18650 # Symbols that should not be listed in the preloaded symbols.
18651 exclude_expsyms=$lt_exclude_expsyms_RC
18652
18653 # Symbols that must always be exported.
18654 include_expsyms=$lt_include_expsyms_RC
18655
18656 # ### END LIBTOOL TAG CONFIG: $tagname
18657
18658 __EOF__
18659
18660
18661 else
18662   # If there is no Makefile yet, we rely on a make rule to execute
18663   # `config.status --recheck' to rerun these tests and create the
18664   # libtool script then.
18665   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18666   if test -f "$ltmain_in"; then
18667     test -f Makefile && make "$ltmain"
18668   fi
18669 fi
18670
18671
18672 ac_ext=c
18673 ac_cpp='$CPP $CPPFLAGS'
18674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18677
18678 CC="$lt_save_CC"
18679
18680         ;;
18681
18682       *)
18683         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18684         ;;
18685       esac
18686
18687       # Append the new tag name to the list of available tags.
18688       if test -n "$tagname" ; then
18689       available_tags="$available_tags $tagname"
18690     fi
18691     fi
18692   done
18693   IFS="$lt_save_ifs"
18694
18695   # Now substitute the updated list of available tags.
18696   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18697     mv "${ofile}T" "$ofile"
18698     chmod +x "$ofile"
18699   else
18700     rm -f "${ofile}T"
18701     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18702   fi
18703 fi
18704
18705
18706
18707 # This can be used to rebuild libtool when needed
18708 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18709
18710 # Always use our own libtool.
18711 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18712
18713 # Prevent multiple expansion
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735 CC_NOUNDEFINED
18736
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18738 $as_echo_n "checking for ANSI C header files... " >&6; }
18739 if ${ac_cv_header_stdc+:} false; then :
18740   $as_echo_n "(cached) " >&6
18741 else
18742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18743 /* end confdefs.h.  */
18744 #include <stdlib.h>
18745 #include <stdarg.h>
18746 #include <string.h>
18747 #include <float.h>
18748
18749 int
18750 main ()
18751 {
18752
18753   ;
18754   return 0;
18755 }
18756 _ACEOF
18757 if ac_fn_c_try_compile "$LINENO"; then :
18758   ac_cv_header_stdc=yes
18759 else
18760   ac_cv_header_stdc=no
18761 fi
18762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18763
18764 if test $ac_cv_header_stdc = yes; then
18765   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h.  */
18768 #include <string.h>
18769
18770 _ACEOF
18771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18772   $EGREP "memchr" >/dev/null 2>&1; then :
18773
18774 else
18775   ac_cv_header_stdc=no
18776 fi
18777 rm -f conftest*
18778
18779 fi
18780
18781 if test $ac_cv_header_stdc = yes; then
18782   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h.  */
18785 #include <stdlib.h>
18786
18787 _ACEOF
18788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18789   $EGREP "free" >/dev/null 2>&1; then :
18790
18791 else
18792   ac_cv_header_stdc=no
18793 fi
18794 rm -f conftest*
18795
18796 fi
18797
18798 if test $ac_cv_header_stdc = yes; then
18799   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18800   if test "$cross_compiling" = yes; then :
18801   :
18802 else
18803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h.  */
18805 #include <ctype.h>
18806 #include <stdlib.h>
18807 #if ((' ' & 0x0FF) == 0x020)
18808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18810 #else
18811 # define ISLOWER(c) \
18812                    (('a' <= (c) && (c) <= 'i') \
18813                      || ('j' <= (c) && (c) <= 'r') \
18814                      || ('s' <= (c) && (c) <= 'z'))
18815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18816 #endif
18817
18818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18819 int
18820 main ()
18821 {
18822   int i;
18823   for (i = 0; i < 256; i++)
18824     if (XOR (islower (i), ISLOWER (i))
18825         || toupper (i) != TOUPPER (i))
18826       return 2;
18827   return 0;
18828 }
18829 _ACEOF
18830 if ac_fn_c_try_run "$LINENO"; then :
18831
18832 else
18833   ac_cv_header_stdc=no
18834 fi
18835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18836   conftest.$ac_objext conftest.beam conftest.$ac_ext
18837 fi
18838
18839 fi
18840 fi
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18842 $as_echo "$ac_cv_header_stdc" >&6; }
18843 if test $ac_cv_header_stdc = yes; then
18844
18845 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18846
18847 fi
18848
18849 ac_config_headers="$ac_config_headers include/config.h"
18850
18851
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18853 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18854 if ${ac_cv_c_const+:} false; then :
18855   $as_echo_n "(cached) " >&6
18856 else
18857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h.  */
18859
18860 int
18861 main ()
18862 {
18863 /* FIXME: Include the comments suggested by Paul. */
18864 #ifndef __cplusplus
18865   /* Ultrix mips cc rejects this.  */
18866   typedef int charset[2];
18867   const charset cs;
18868   /* SunOS 4.1.1 cc rejects this.  */
18869   char const *const *pcpcc;
18870   char **ppc;
18871   /* NEC SVR4.0.2 mips cc rejects this.  */
18872   struct point {int x, y;};
18873   static struct point const zero = {0,0};
18874   /* AIX XL C 1.02.0.0 rejects this.
18875      It does not let you subtract one const X* pointer from another in
18876      an arm of an if-expression whose if-part is not a constant
18877      expression */
18878   const char *g = "string";
18879   pcpcc = &g + (g ? g-g : 0);
18880   /* HPUX 7.0 cc rejects these. */
18881   ++pcpcc;
18882   ppc = (char**) pcpcc;
18883   pcpcc = (char const *const *) ppc;
18884   { /* SCO 3.2v4 cc rejects this.  */
18885     char *t;
18886     char const *s = 0 ? (char *) 0 : (char const *) 0;
18887
18888     *t++ = 0;
18889     if (s) return 0;
18890   }
18891   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18892     int x[] = {25, 17};
18893     const int *foo = &x[0];
18894     ++foo;
18895   }
18896   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18897     typedef const int *iptr;
18898     iptr p = 0;
18899     ++p;
18900   }
18901   { /* AIX XL C 1.02.0.0 rejects this saying
18902        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18903     struct s { int j; const int *ap[3]; };
18904     struct s *b; b->j = 5;
18905   }
18906   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18907     const int foo = 10;
18908     if (!foo) return 0;
18909   }
18910   return !cs[0] && !zero.x;
18911 #endif
18912
18913   ;
18914   return 0;
18915 }
18916 _ACEOF
18917 if ac_fn_c_try_compile "$LINENO"; then :
18918   ac_cv_c_const=yes
18919 else
18920   ac_cv_c_const=no
18921 fi
18922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18923 fi
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18925 $as_echo "$ac_cv_c_const" >&6; }
18926 if test $ac_cv_c_const = no; then
18927
18928 $as_echo "#define const /**/" >>confdefs.h
18929
18930 fi
18931
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18933 $as_echo_n "checking for inline... " >&6; }
18934 if ${ac_cv_c_inline+:} false; then :
18935   $as_echo_n "(cached) " >&6
18936 else
18937   ac_cv_c_inline=no
18938 for ac_kw in inline __inline__ __inline; do
18939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18940 /* end confdefs.h.  */
18941 #ifndef __cplusplus
18942 typedef int foo_t;
18943 static $ac_kw foo_t static_foo () {return 0; }
18944 $ac_kw foo_t foo () {return 0; }
18945 #endif
18946
18947 _ACEOF
18948 if ac_fn_c_try_compile "$LINENO"; then :
18949   ac_cv_c_inline=$ac_kw
18950 fi
18951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952   test "$ac_cv_c_inline" != no && break
18953 done
18954
18955 fi
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18957 $as_echo "$ac_cv_c_inline" >&6; }
18958
18959 case $ac_cv_c_inline in
18960   inline | yes) ;;
18961   *)
18962     case $ac_cv_c_inline in
18963       no) ac_val=;;
18964       *) ac_val=$ac_cv_c_inline;;
18965     esac
18966     cat >>confdefs.h <<_ACEOF
18967 #ifndef __cplusplus
18968 #define inline $ac_val
18969 #endif
18970 _ACEOF
18971     ;;
18972 esac
18973
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18975 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18976 if ${ac_cv_header_time+:} false; then :
18977   $as_echo_n "(cached) " >&6
18978 else
18979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980 /* end confdefs.h.  */
18981 #include <sys/types.h>
18982 #include <sys/time.h>
18983 #include <time.h>
18984
18985 int
18986 main ()
18987 {
18988 if ((struct tm *) 0)
18989 return 0;
18990   ;
18991   return 0;
18992 }
18993 _ACEOF
18994 if ac_fn_c_try_compile "$LINENO"; then :
18995   ac_cv_header_time=yes
18996 else
18997   ac_cv_header_time=no
18998 fi
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 fi
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19002 $as_echo "$ac_cv_header_time" >&6; }
19003 if test $ac_cv_header_time = yes; then
19004
19005 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19006
19007 fi
19008
19009
19010 if test $ac_cv_c_compiler_gnu = yes; then
19011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19012 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19013 if ${ac_cv_prog_gcc_traditional+:} false; then :
19014   $as_echo_n "(cached) " >&6
19015 else
19016     ac_pattern="Autoconf.*'x'"
19017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h.  */
19019 #include <sgtty.h>
19020 Autoconf TIOCGETP
19021 _ACEOF
19022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19023   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19024   ac_cv_prog_gcc_traditional=yes
19025 else
19026   ac_cv_prog_gcc_traditional=no
19027 fi
19028 rm -f conftest*
19029
19030
19031   if test $ac_cv_prog_gcc_traditional = no; then
19032     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033 /* end confdefs.h.  */
19034 #include <termio.h>
19035 Autoconf TCGETA
19036 _ACEOF
19037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19038   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19039   ac_cv_prog_gcc_traditional=yes
19040 fi
19041 rm -f conftest*
19042
19043   fi
19044 fi
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
19046 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19047   if test $ac_cv_prog_gcc_traditional = yes; then
19048     CC="$CC -traditional"
19049   fi
19050 fi
19051
19052 ac_fn_c_check_func "$LINENO" "hsearch_r" "ac_cv_func_hsearch_r"
19053 if test "x$ac_cv_func_hsearch_r" = xyes; then :
19054   HAVE_HSEARCH_R=yes
19055 fi
19056
19057  if test "x$HAVE_HSEARCH_R" != xyes; then
19058   ALSA_HSEARCH_R_TRUE=
19059   ALSA_HSEARCH_R_FALSE='#'
19060 else
19061   ALSA_HSEARCH_R_TRUE='#'
19062   ALSA_HSEARCH_R_FALSE=
19063 fi
19064
19065 for ac_func in uselocale
19066 do :
19067   ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
19068 if test "x$ac_cv_func_uselocale" = xyes; then :
19069   cat >>confdefs.h <<_ACEOF
19070 #define HAVE_USELOCALE 1
19071 _ACEOF
19072
19073 fi
19074 done
19075
19076
19077
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library version" >&5
19079 $as_echo_n "checking for library version... " >&6; }
19080 SND_LIB_VERSION=$VERSION
19081 echo $VERSION > $srcdir/version
19082
19083 cat >>confdefs.h <<_ACEOF
19084 #define VERSION "$SND_LIB_VERSION"
19085 _ACEOF
19086
19087
19088 SND_LIB_MAJOR=`echo $VERSION | cut -d . -f 1`
19089
19090 SND_LIB_MINOR=`echo $VERSION | cut -d . -f 2`
19091
19092 SND_LIB_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\(.*\)$/\1/g'`
19093
19094 SND_LIB_EXTRASTR=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\([[:alpha:]]*\)\([[:digit:]]*\)\(.*\)$/\2/g'`
19095 SND_LIB_EXTRAVER=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\([[:alpha:]]*\)\([[:digit:]]*\)\(.*\)$/\3/g'`
19096 case "$SND_LIB_EXTRASTR" in
19097   pre)   SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 00000` ;;
19098   alpha) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 10000` ;;
19099   beta)  SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 20000` ;;
19100   rc)    SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 100000` ;;
19101   *)     SND_LIB_EXTRAVER=1000000 ;;
19102 esac
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: major $SND_LIB_MAJOR minor $SND_LIB_MINOR subminor $SND_LIB_SUBMINOR extrastr $SND_LIB_EXTRASTR extraver $SND_LIB_EXTRAVER" >&5
19104 $as_echo "major $SND_LIB_MAJOR minor $SND_LIB_MINOR subminor $SND_LIB_SUBMINOR extrastr $SND_LIB_EXTRASTR extraver $SND_LIB_EXTRAVER" >&6; }
19105
19106
19107
19108
19109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19110
19111
19112 # Check whether --with-configdir was given.
19113 if test "${with_configdir+set}" = set; then :
19114   withval=$with_configdir; confdir="$withval"
19115 else
19116   confdir=""
19117 fi
19118
19119 if test -z "$confdir"; then
19120     eval dir="$datadir"
19121     case "$dir" in
19122     /*) ;;
19123     *) dir="$prefix/share"
19124     esac
19125     confdir="$dir/alsa"
19126 fi
19127 ALSA_CONFIG_DIR="$confdir"
19128
19129 cat >>confdefs.h <<_ACEOF
19130 #define ALSA_CONFIG_DIR "$confdir"
19131 _ACEOF
19132
19133
19134
19135 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
19136
19137
19138 # Check whether --with-plugindir was given.
19139 if test "${with_plugindir+set}" = set; then :
19140   withval=$with_plugindir; plugindir="$withval"
19141 else
19142   plugindir=""
19143 fi
19144
19145 if test -z "$plugindir"; then
19146     eval dir="$libdir"
19147     case "$dir" in
19148     /*) ;;
19149     *) dir="$dir"
19150     esac
19151     plugindir="$dir/$PACKAGE"
19152 fi
19153
19154 cat >>confdefs.h <<_ACEOF
19155 #define ALSA_PLUGIN_DIR "$plugindir"
19156 _ACEOF
19157
19158 ALSA_PLUGIN_DIR="$plugindir"
19159
19160
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for versioned symbols" >&5
19162 $as_echo_n "checking for versioned symbols... " >&6; }
19163
19164 # Check whether --with-versioned was given.
19165 if test "${with_versioned+set}" = set; then :
19166   withval=$with_versioned; versioned="$withval"
19167 else
19168   versioned="yes"
19169 fi
19170
19171 if test "$versioned" = "yes"; then
19172   # it seems that GNU ld versions since 2.10 are not broken
19173   xres=`grep '^VERSION=' ${srcdir}/ltmain.sh | cut -d = -f 2 | cut -d \" -f 2`
19174   major=`echo $xres | cut -d . -f 1`
19175   minor=`echo $xres | cut -d . -f 2`
19176   pass=0
19177   if test $major -eq 1 && test $minor -gt 3; then
19178     pass=1
19179   else
19180     if test $major -gt 1; then
19181       pass=1
19182     fi
19183   fi
19184   if test $pass -eq 1; then
19185
19186 $as_echo "#define VERSIONED_SYMBOLS /**/" >>confdefs.h
19187
19188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19189 $as_echo "yes" >&6; }
19190   else
19191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken libtool - use libtool v1.4+; no versions" >&5
19192 $as_echo "broken libtool - use libtool v1.4+; no versions" >&6; }
19193   fi
19194 else
19195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19196 $as_echo "no" >&6; }
19197 fi
19198  if test x$versioned = xyes; then
19199   VERSIONED_SYMBOLS_TRUE=
19200   VERSIONED_SYMBOLS_FALSE='#'
19201 else
19202   VERSIONED_SYMBOLS_TRUE='#'
19203   VERSIONED_SYMBOLS_FALSE=
19204 fi
19205
19206
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbolic-functions" >&5
19208 $as_echo_n "checking for symbolic-functions... " >&6; }
19209 # Check whether --enable-symbolic-functions was given.
19210 if test "${enable_symbolic_functions+set}" = set; then :
19211   enableval=$enable_symbolic_functions; symfuncs="$enableval"
19212 else
19213   symfuncs="no"
19214 fi
19215
19216 if test "$symfuncs" = "yes"; then
19217   if ld --help | grep -q -- '-Bsymbolic-functions'; then
19218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19219 $as_echo "yes" >&6; }
19220   else
19221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported by ld" >&5
19222 $as_echo "not supported by ld" >&6; }
19223     symfuncs="no"
19224   fi
19225 else
19226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227 $as_echo "no" >&6; }
19228 fi
19229  if test x"$symfuncs" = xyes; then
19230   SYMBOLIC_FUNCTIONS_TRUE=
19231   SYMBOLIC_FUNCTIONS_FALSE='#'
19232 else
19233   SYMBOLIC_FUNCTIONS_TRUE='#'
19234   SYMBOLIC_FUNCTIONS_FALSE=
19235 fi
19236
19237
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom symbol prefixes" >&5
19239 $as_echo_n "checking for custom symbol prefixes... " >&6; }
19240 SYMBOL_PREFIX=` \
19241         echo "PREFIX=__USER_LABEL_PREFIX__" \
19242                 | ${CPP-${CC-gcc} -E} - 2>&1 \
19243                 | ${EGREP-grep} "^PREFIX=" \
19244                 | ${SED-sed} "s:^PREFIX=::"`
19245
19246 cat >>confdefs.h <<_ACEOF
19247 #define __SYMBOL_PREFIX "$SYMBOL_PREFIX"
19248 _ACEOF
19249
19250
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
19252 $as_echo "$SYMBOL_PREFIX" >&6; }
19253
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug" >&5
19255 $as_echo_n "checking for debug... " >&6; }
19256
19257 # Check whether --with-debug was given.
19258 if test "${with_debug+set}" = set; then :
19259   withval=$with_debug; debug="$withval"
19260 else
19261   debug="yes"
19262 fi
19263
19264 if test "$debug" = "yes"; then
19265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19266 $as_echo "yes" >&6; }
19267 else
19268
19269 $as_echo "#define NDEBUG /**/" >>confdefs.h
19270
19271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19272 $as_echo "no" >&6; }
19273 fi
19274
19275 if test "$debug" = "yes"; then
19276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug assert" >&5
19277 $as_echo_n "checking for debug assert... " >&6; }
19278   # Check whether --enable-debug-assert was given.
19279 if test "${enable_debug_assert+set}" = set; then :
19280   enableval=$enable_debug_assert; debug_assert="$enableval"
19281 else
19282   debug_assert="no"
19283 fi
19284
19285   if test "$debug_assert" = "yes"; then
19286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19287 $as_echo "yes" >&6; }
19288
19289 $as_echo "#define ALSA_DEBUG_ASSERT /**/" >>confdefs.h
19290
19291   else
19292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19293 $as_echo "no" >&6; }
19294   fi
19295 fi
19296
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tmpdir" >&5
19298 $as_echo_n "checking for tmpdir... " >&6; }
19299
19300 # Check whether --with-tmpdir was given.
19301 if test "${with_tmpdir+set}" = set; then :
19302   withval=$with_tmpdir; tmpdir="$withval"
19303 else
19304   tmpdir="/tmp"
19305 fi
19306
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmpdir" >&5
19308 $as_echo "$tmpdir" >&6; }
19309
19310 cat >>confdefs.h <<_ACEOF
19311 #define TMPDIR "$tmpdir"
19312 _ACEOF
19313
19314
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for softfloat" >&5
19316 $as_echo_n "checking for softfloat... " >&6; }
19317
19318 # Check whether --with-softfloat was given.
19319 if test "${with_softfloat+set}" = set; then :
19320   withval=$with_softfloat; case "$withval" in
19321         y|yes) softfloat=yes ;;
19322         *) softfloat=no ;;
19323    esac
19324 fi
19325
19326 if test "$softfloat" = "yes" ; then
19327
19328 $as_echo "#define HAVE_SOFT_FLOAT \"1\"" >>confdefs.h
19329
19330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19331 $as_echo "yes" >&6; }
19332 else
19333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19334 $as_echo "no" >&6; }
19335 fi
19336
19337 ALSA_DEPLIBS=""
19338 if test "$softfloat" != "yes"; then
19339   ALSA_DEPLIBS="-lm"
19340 fi
19341
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl" >&5
19343 $as_echo_n "checking for libdl... " >&6; }
19344
19345 # Check whether --with-libdl was given.
19346 if test "${with_libdl+set}" = set; then :
19347   withval=$with_libdl;  have_libdl="$withval"
19348 else
19349    have_libdl="yes"
19350 fi
19351
19352 if test "$have_libdl" = "yes"; then
19353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
19354 $as_echo_n "checking for dlsym in -ldl... " >&6; }
19355 if ${ac_cv_lib_dl_dlsym+:} false; then :
19356   $as_echo_n "(cached) " >&6
19357 else
19358   ac_check_lib_save_LIBS=$LIBS
19359 LIBS="-ldl  $LIBS"
19360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361 /* end confdefs.h.  */
19362
19363 /* Override any GCC internal prototype to avoid an error.
19364    Use char because int might match the return type of a GCC
19365    builtin and then its argument prototype would still apply.  */
19366 #ifdef __cplusplus
19367 extern "C"
19368 #endif
19369 char dlsym ();
19370 int
19371 main ()
19372 {
19373 return dlsym ();
19374   ;
19375   return 0;
19376 }
19377 _ACEOF
19378 if ac_fn_c_try_link "$LINENO"; then :
19379   ac_cv_lib_dl_dlsym=yes
19380 else
19381   ac_cv_lib_dl_dlsym=no
19382 fi
19383 rm -f core conftest.err conftest.$ac_objext \
19384     conftest$ac_exeext conftest.$ac_ext
19385 LIBS=$ac_check_lib_save_LIBS
19386 fi
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
19388 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
19389 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
19390   HAVE_LIBDL="yes"
19391 fi
19392
19393   if test "$HAVE_LIBDL" = "yes" ; then
19394     ALSA_DEPLIBS="$ALSA_DEPLIBS -ldl"
19395
19396 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19397
19398   fi
19399 else
19400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19401 $as_echo "no" >&6; }
19402 fi
19403  if test "$HAVE_LIBDL"="yes"; then
19404   BUILD_MODULES_TRUE=
19405   BUILD_MODULES_FALSE='#'
19406 else
19407   BUILD_MODULES_TRUE='#'
19408   BUILD_MODULES_FALSE=
19409 fi
19410
19411
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread" >&5
19413 $as_echo_n "checking for pthread... " >&6; }
19414
19415 # Check whether --with-pthread was given.
19416 if test "${with_pthread+set}" = set; then :
19417   withval=$with_pthread;  have_pthread="$withval"
19418 else
19419    have_pthread="yes"
19420 fi
19421
19422 if test "$have_pthread" = "yes"; then
19423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
19424 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
19425 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
19426   $as_echo_n "(cached) " >&6
19427 else
19428   ac_check_lib_save_LIBS=$LIBS
19429 LIBS="-lpthread  $LIBS"
19430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431 /* end confdefs.h.  */
19432
19433 /* Override any GCC internal prototype to avoid an error.
19434    Use char because int might match the return type of a GCC
19435    builtin and then its argument prototype would still apply.  */
19436 #ifdef __cplusplus
19437 extern "C"
19438 #endif
19439 char pthread_join ();
19440 int
19441 main ()
19442 {
19443 return pthread_join ();
19444   ;
19445   return 0;
19446 }
19447 _ACEOF
19448 if ac_fn_c_try_link "$LINENO"; then :
19449   ac_cv_lib_pthread_pthread_join=yes
19450 else
19451   ac_cv_lib_pthread_pthread_join=no
19452 fi
19453 rm -f core conftest.err conftest.$ac_objext \
19454     conftest$ac_exeext conftest.$ac_ext
19455 LIBS=$ac_check_lib_save_LIBS
19456 fi
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
19458 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
19459 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
19460   HAVE_LIBPTHREAD="yes"
19461 fi
19462
19463   if test "$HAVE_LIBPTHREAD" = "yes"; then
19464     ALSA_DEPLIBS="$ALSA_DEPLIBS -lpthread"
19465
19466 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
19467
19468   fi
19469 else
19470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 $as_echo "no" >&6; }
19472 fi
19473
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
19475 $as_echo_n "checking for librt... " >&6; }
19476
19477 # Check whether --with-librt was given.
19478 if test "${with_librt+set}" = set; then :
19479   withval=$with_librt;  have_librt="$withval"
19480 else
19481    have_librt="yes"
19482 fi
19483
19484 if test "$have_librt" = "yes"; then
19485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
19486 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
19487 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
19488   $as_echo_n "(cached) " >&6
19489 else
19490   ac_check_lib_save_LIBS=$LIBS
19491 LIBS="-lrt  $LIBS"
19492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h.  */
19494
19495 /* Override any GCC internal prototype to avoid an error.
19496    Use char because int might match the return type of a GCC
19497    builtin and then its argument prototype would still apply.  */
19498 #ifdef __cplusplus
19499 extern "C"
19500 #endif
19501 char clock_gettime ();
19502 int
19503 main ()
19504 {
19505 return clock_gettime ();
19506   ;
19507   return 0;
19508 }
19509 _ACEOF
19510 if ac_fn_c_try_link "$LINENO"; then :
19511   ac_cv_lib_rt_clock_gettime=yes
19512 else
19513   ac_cv_lib_rt_clock_gettime=no
19514 fi
19515 rm -f core conftest.err conftest.$ac_objext \
19516     conftest$ac_exeext conftest.$ac_ext
19517 LIBS=$ac_check_lib_save_LIBS
19518 fi
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
19520 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
19521 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
19522   HAVE_LIBRT="yes"
19523 fi
19524
19525   if test "$HAVE_LIBRT" = "yes" ; then
19526     ALSA_DEPLIBS="$ALSA_DEPLIBS -lrt"
19527
19528 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
19529
19530
19531 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19532
19533   fi
19534 else
19535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536 $as_echo "no" >&6; }
19537 fi
19538
19539
19540
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for architecture" >&5
19542 $as_echo_n "checking for architecture... " >&6; }
19543 case "$host" in
19544 i?86*)
19545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86" >&5
19546 $as_echo "x86" >&6; }
19547   ;;
19548 x86_64*)
19549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86" >&5
19550 $as_echo "x86" >&6; }
19551   ;;
19552 alpha*)
19553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: alpha" >&5
19554 $as_echo "alpha" >&6; }
19555   ;;
19556 powerpc*|ppc*)
19557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ppc" >&5
19558 $as_echo "ppc" >&6; }
19559   CPPFLAGS="$CPPFLAGS -D__ppc__"
19560   ;;
19561 ia64*)
19562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ia64" >&5
19563 $as_echo "ia64" >&6; }
19564   CPPFLAGS="$CPPFLAGS -D__ia64__"
19565   ;;
19566 mips*)
19567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: mips" >&5
19568 $as_echo "mips" >&6; }
19569   CPPFLAGS="$CPPFLAGS -D__mips__"
19570   ;;
19571 arm*)
19572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arm" >&5
19573 $as_echo "arm" >&6; }
19574   CPPFLAGS="$CPPFLAGS -D__arm__"
19575   ;;
19576 *)
19577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
19578 $as_echo "$host_cpu" >&6; }
19579   echo "No atomic operations supported.."
19580   ;;
19581 esac
19582
19583 for ac_header in wordexp.h
19584 do :
19585   ac_fn_c_check_header_mongrel "$LINENO" "wordexp.h" "ac_cv_header_wordexp_h" "$ac_includes_default"
19586 if test "x$ac_cv_header_wordexp_h" = xyes; then :
19587   cat >>confdefs.h <<_ACEOF
19588 #define HAVE_WORDEXP_H 1
19589 _ACEOF
19590
19591 fi
19592
19593 done
19594
19595
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resmgr support" >&5
19597 $as_echo_n "checking for resmgr support... " >&6; }
19598 # Check whether --enable-resmgr was given.
19599 if test "${enable_resmgr+set}" = set; then :
19600   enableval=$enable_resmgr; resmgr="$enableval"
19601 else
19602   resmgr="no"
19603 fi
19604
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $resmgr" >&5
19606 $as_echo "$resmgr" >&6; }
19607 if test "$resmgr" = "yes"; then
19608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsm_open_device in -lresmgr" >&5
19609 $as_echo_n "checking for rsm_open_device in -lresmgr... " >&6; }
19610 if ${ac_cv_lib_resmgr_rsm_open_device+:} false; then :
19611   $as_echo_n "(cached) " >&6
19612 else
19613   ac_check_lib_save_LIBS=$LIBS
19614 LIBS="-lresmgr  $LIBS"
19615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616 /* end confdefs.h.  */
19617
19618 /* Override any GCC internal prototype to avoid an error.
19619    Use char because int might match the return type of a GCC
19620    builtin and then its argument prototype would still apply.  */
19621 #ifdef __cplusplus
19622 extern "C"
19623 #endif
19624 char rsm_open_device ();
19625 int
19626 main ()
19627 {
19628 return rsm_open_device ();
19629   ;
19630   return 0;
19631 }
19632 _ACEOF
19633 if ac_fn_c_try_link "$LINENO"; then :
19634   ac_cv_lib_resmgr_rsm_open_device=yes
19635 else
19636   ac_cv_lib_resmgr_rsm_open_device=no
19637 fi
19638 rm -f core conftest.err conftest.$ac_objext \
19639     conftest$ac_exeext conftest.$ac_ext
19640 LIBS=$ac_check_lib_save_LIBS
19641 fi
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resmgr_rsm_open_device" >&5
19643 $as_echo "$ac_cv_lib_resmgr_rsm_open_device" >&6; }
19644 if test "x$ac_cv_lib_resmgr_rsm_open_device" = xyes; then :
19645   cat >>confdefs.h <<_ACEOF
19646 #define HAVE_LIBRESMGR 1
19647 _ACEOF
19648
19649   LIBS="-lresmgr $LIBS"
19650
19651 else
19652   as_fn_error $? "Cannot find libresmgr" "$LINENO" 5
19653 fi
19654
19655
19656 $as_echo "#define SUPPORT_RESMGR \"1\"" >>confdefs.h
19657
19658 fi
19659
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aload* support" >&5
19661 $as_echo_n "checking for aload* support... " >&6; }
19662 # Check whether --enable-aload was given.
19663 if test "${enable_aload+set}" = set; then :
19664   enableval=$enable_aload; aload="$enableval"
19665 else
19666   aload="yes"
19667 fi
19668
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aload" >&5
19670 $as_echo "$aload" >&6; }
19671 if test "$aload" = "yes"; then
19672
19673 $as_echo "#define SUPPORT_ALOAD \"1\"" >>confdefs.h
19674
19675 fi
19676
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA device file directory" >&5
19678 $as_echo_n "checking for ALSA device file directory... " >&6; }
19679
19680 # Check whether --with-alsa-devdir was given.
19681 if test "${with_alsa_devdir+set}" = set; then :
19682   withval=$with_alsa_devdir; alsa_dev_dir="$withval"
19683 else
19684   alsa_dev_dir="/dev/snd"
19685 fi
19686
19687 if echo "$alsa_dev_dir" | grep -v '/$' > /dev/null; then
19688   alsa_dev_dir="$alsa_dev_dir/"
19689 fi
19690
19691 cat >>confdefs.h <<_ACEOF
19692 #define ALSA_DEVICE_DIRECTORY "$alsa_dev_dir"
19693 _ACEOF
19694
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alsa_dev_dir" >&5
19696 $as_echo "$alsa_dev_dir" >&6; }
19697
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aload* device file directory" >&5
19699 $as_echo_n "checking for aload* device file directory... " >&6; }
19700
19701 # Check whether --with-aload-devdir was given.
19702 if test "${with_aload_devdir+set}" = set; then :
19703   withval=$with_aload_devdir; aload_dev_dir="$withval"
19704 else
19705   aload_dev_dir="/dev"
19706 fi
19707
19708 if echo "$aload_dev_dir" | grep -v '/$' > /dev/null; then
19709   aload_dev_dir="$aload_dev_dir/"
19710 fi
19711
19712 cat >>confdefs.h <<_ACEOF
19713 #define ALOAD_DEVICE_DIRECTORY "$aload_dev_dir"
19714 _ACEOF
19715
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aload_dev_dir" >&5
19717 $as_echo "$aload_dev_dir" >&6; }
19718
19719 # Check whether --enable-mixer was given.
19720 if test "${enable_mixer+set}" = set; then :
19721   enableval=$enable_mixer; build_mixer="$enableval"
19722 else
19723   build_mixer="yes"
19724 fi
19725
19726 # Check whether --enable-pcm was given.
19727 if test "${enable_pcm+set}" = set; then :
19728   enableval=$enable_pcm; build_pcm="$enableval"
19729 else
19730   build_pcm="yes"
19731 fi
19732
19733 # Check whether --enable-rawmidi was given.
19734 if test "${enable_rawmidi+set}" = set; then :
19735   enableval=$enable_rawmidi; build_rawmidi="$enableval"
19736 else
19737   build_rawmidi="yes"
19738 fi
19739
19740 # Check whether --enable-hwdep was given.
19741 if test "${enable_hwdep+set}" = set; then :
19742   enableval=$enable_hwdep; build_hwdep="$enableval"
19743 else
19744   build_hwdep="yes"
19745 fi
19746
19747 # Check whether --enable-seq was given.
19748 if test "${enable_seq+set}" = set; then :
19749   enableval=$enable_seq; build_seq="$enableval"
19750 else
19751   build_seq="yes"
19752 fi
19753
19754 # Check whether --enable-ucm was given.
19755 if test "${enable_ucm+set}" = set; then :
19756   enableval=$enable_ucm; build_ucm="$enableval"
19757 else
19758   build_ucm="yes"
19759 fi
19760
19761 # Check whether --enable-alisp was given.
19762 if test "${enable_alisp+set}" = set; then :
19763   enableval=$enable_alisp; build_alisp="$enableval"
19764 else
19765   build_alisp="yes"
19766 fi
19767
19768 test "$softfloat" = "yes" && build_alisp="no"
19769 # Check whether --enable-old-symbols was given.
19770 if test "${enable_old_symbols+set}" = set; then :
19771   enableval=$enable_old_symbols; keep_old_symbols="$enableval"
19772 else
19773   keep_old_symbols="yes"
19774 fi
19775
19776  if test x$keep_old_symbols = xyes; then
19777   KEEP_OLD_SYMBOLS_TRUE=
19778   KEEP_OLD_SYMBOLS_FALSE='#'
19779 else
19780   KEEP_OLD_SYMBOLS_TRUE='#'
19781   KEEP_OLD_SYMBOLS_FALSE=
19782 fi
19783
19784
19785 # Check whether --enable-python was given.
19786 if test "${enable_python+set}" = set; then :
19787   enableval=$enable_python; build_python="$enableval"
19788 else
19789   build_python="yes"
19790 fi
19791
19792 PYTHON_LIBS=""
19793 PYTHON_INCLUDES=""
19794 if test "$build_python" = "yes"; then
19795
19796 # Check whether --with-pythonlibs was given.
19797 if test "${with_pythonlibs+set}" = set; then :
19798   withval=$with_pythonlibs; pythonlibs="$withval"
19799 else
19800   pythonlibs=`python-config --libs`
19801 fi
19802
19803
19804 # Check whether --with-pythonincludes was given.
19805 if test "${with_pythonincludes+set}" = set; then :
19806   withval=$with_pythonincludes; pythonincludes="$withval"
19807 else
19808   pythonincludes=`python-config --includes`
19809 fi
19810
19811   if test -z "$pythonlibs"; then
19812     echo "Unable to determine python libraries! Probably python-config is not"
19813     echo "available on this system. Please, use --with-pythonlibs and"
19814     echo "--with-pythonincludes options. Python components are disabled in this build."
19815     build_python="no"
19816   else
19817     PYTHON_LIBS="$pythonlibs"
19818     PYTHON_INCLUDES="$pythonincludes"
19819   fi
19820 fi
19821
19822
19823
19824  if test x$build_mixer = xyes; then
19825   BUILD_MIXER_TRUE=
19826   BUILD_MIXER_FALSE='#'
19827 else
19828   BUILD_MIXER_TRUE='#'
19829   BUILD_MIXER_FALSE=
19830 fi
19831
19832  if test x$build_pcm = xyes; then
19833   BUILD_PCM_TRUE=
19834   BUILD_PCM_FALSE='#'
19835 else
19836   BUILD_PCM_TRUE='#'
19837   BUILD_PCM_FALSE=
19838 fi
19839
19840  if test x$build_rawmidi = xyes; then
19841   BUILD_RAWMIDI_TRUE=
19842   BUILD_RAWMIDI_FALSE='#'
19843 else
19844   BUILD_RAWMIDI_TRUE='#'
19845   BUILD_RAWMIDI_FALSE=
19846 fi
19847
19848  if test x$build_hwdep = xyes; then
19849   BUILD_HWDEP_TRUE=
19850   BUILD_HWDEP_FALSE='#'
19851 else
19852   BUILD_HWDEP_TRUE='#'
19853   BUILD_HWDEP_FALSE=
19854 fi
19855
19856  if test x$build_seq = xyes; then
19857   BUILD_SEQ_TRUE=
19858   BUILD_SEQ_FALSE='#'
19859 else
19860   BUILD_SEQ_TRUE='#'
19861   BUILD_SEQ_FALSE=
19862 fi
19863
19864  if test x$build_ucm = xyes; then
19865   BUILD_UCM_TRUE=
19866   BUILD_UCM_FALSE='#'
19867 else
19868   BUILD_UCM_TRUE='#'
19869   BUILD_UCM_FALSE=
19870 fi
19871
19872  if test x$build_alisp = xyes; then
19873   BUILD_ALISP_TRUE=
19874   BUILD_ALISP_FALSE='#'
19875 else
19876   BUILD_ALISP_TRUE='#'
19877   BUILD_ALISP_FALSE=
19878 fi
19879
19880  if test x$build_python = xyes; then
19881   BUILD_PYTHON_TRUE=
19882   BUILD_PYTHON_FALSE='#'
19883 else
19884   BUILD_PYTHON_TRUE='#'
19885   BUILD_PYTHON_FALSE=
19886 fi
19887
19888
19889 if test "$build_mixer" = "yes"; then
19890
19891 $as_echo "#define BUILD_MIXER \"1\"" >>confdefs.h
19892
19893 fi
19894 if test "$build_pcm" = "yes"; then
19895
19896 $as_echo "#define BUILD_PCM \"1\"" >>confdefs.h
19897
19898 fi
19899 if test "$build_rawmidi" = "yes"; then
19900
19901 $as_echo "#define BUILD_RAWMIDI \"1\"" >>confdefs.h
19902
19903 fi
19904 if test "$build_hwdep" = "yes"; then
19905
19906 $as_echo "#define BUILD_HWDEP \"1\"" >>confdefs.h
19907
19908 fi
19909 if test "$build_seq" = "yes"; then
19910
19911 $as_echo "#define BUILD_SEQ \"1\"" >>confdefs.h
19912
19913 fi
19914 if test "$build_ucm" = "yes"; then
19915
19916 $as_echo "#define BUILD_UCM \"1\"" >>confdefs.h
19917
19918 fi
19919
19920
19921 if test "$build_pcm" = "yes"; then
19922
19923 # Check whether --with-pcm-plugins was given.
19924 if test "${with_pcm_plugins+set}" = set; then :
19925   withval=$with_pcm_plugins; pcm_plugins="$withval"
19926 else
19927   pcm_plugins="all"
19928 fi
19929
19930 else
19931 pcm_plugins=""
19932 fi
19933
19934 PCM_PLUGIN_LIST="copy linear route mulaw alaw adpcm rate plug multi shm file null empty share meter hooks lfloat ladspa dmix dshare dsnoop asym iec958 softvol extplug ioplug mmap_emul"
19935
19936 build_pcm_plugin="no"
19937 for t in $PCM_PLUGIN_LIST; do
19938   eval build_pcm_$t="no"
19939 done
19940
19941 pcm_plugins=`echo $pcm_plugins | sed 's/,/ /g'`
19942 for p in $pcm_plugins; do
19943   for t in $PCM_PLUGIN_LIST; do
19944     if test "$p" = "$t" -o "$p" = "all"; then
19945       eval build_pcm_$t="yes"
19946       build_pcm_plugin="yes"
19947     fi
19948   done
19949 done
19950
19951 if test "$build_pcm_plug" = "yes"; then
19952   build_pcm_linear="yes"
19953   build_pcm_copy="yes"
19954 fi
19955
19956 if test "$build_pcm_ioplug" = "yes"; then
19957   build_pcm_extplug="yes"
19958 fi
19959
19960 if test "$HAVE_LIBDL" != "yes"; then
19961   build_pcm_meter="no"
19962   build_pcm_ladspa="no"
19963   build_pcm_pcm_ioplug="no"
19964   build_pcm_pcm_extplug="no"
19965 fi
19966
19967 if test "$HAVE_LIBPTHREAD" != "yes"; then
19968   build_pcm_share="no"
19969 fi
19970
19971 if test "$softfloat" = "yes"; then
19972   build_pcm_lfloat="no"
19973   build_pcm_ladspa="no"
19974 fi
19975
19976  if test x$build_pcm_plugin = xyes; then
19977   BUILD_PCM_PLUGIN_TRUE=
19978   BUILD_PCM_PLUGIN_FALSE='#'
19979 else
19980   BUILD_PCM_PLUGIN_TRUE='#'
19981   BUILD_PCM_PLUGIN_FALSE=
19982 fi
19983
19984  if test x$build_pcm_copy = xyes; then
19985   BUILD_PCM_PLUGIN_COPY_TRUE=
19986   BUILD_PCM_PLUGIN_COPY_FALSE='#'
19987 else
19988   BUILD_PCM_PLUGIN_COPY_TRUE='#'
19989   BUILD_PCM_PLUGIN_COPY_FALSE=
19990 fi
19991
19992  if test x$build_pcm_linear = xyes; then
19993   BUILD_PCM_PLUGIN_LINEAR_TRUE=
19994   BUILD_PCM_PLUGIN_LINEAR_FALSE='#'
19995 else
19996   BUILD_PCM_PLUGIN_LINEAR_TRUE='#'
19997   BUILD_PCM_PLUGIN_LINEAR_FALSE=
19998 fi
19999
20000  if test x$build_pcm_route = xyes; then
20001   BUILD_PCM_PLUGIN_ROUTE_TRUE=
20002   BUILD_PCM_PLUGIN_ROUTE_FALSE='#'
20003 else
20004   BUILD_PCM_PLUGIN_ROUTE_TRUE='#'
20005   BUILD_PCM_PLUGIN_ROUTE_FALSE=
20006 fi
20007
20008  if test x$build_pcm_mulaw = xyes; then
20009   BUILD_PCM_PLUGIN_MULAW_TRUE=
20010   BUILD_PCM_PLUGIN_MULAW_FALSE='#'
20011 else
20012   BUILD_PCM_PLUGIN_MULAW_TRUE='#'
20013   BUILD_PCM_PLUGIN_MULAW_FALSE=
20014 fi
20015
20016  if test x$build_pcm_alaw = xyes; then
20017   BUILD_PCM_PLUGIN_ALAW_TRUE=
20018   BUILD_PCM_PLUGIN_ALAW_FALSE='#'
20019 else
20020   BUILD_PCM_PLUGIN_ALAW_TRUE='#'
20021   BUILD_PCM_PLUGIN_ALAW_FALSE=
20022 fi
20023
20024  if test x$build_pcm_adpcm = xyes; then
20025   BUILD_PCM_PLUGIN_ADPCM_TRUE=
20026   BUILD_PCM_PLUGIN_ADPCM_FALSE='#'
20027 else
20028   BUILD_PCM_PLUGIN_ADPCM_TRUE='#'
20029   BUILD_PCM_PLUGIN_ADPCM_FALSE=
20030 fi
20031
20032  if test x$build_pcm_rate = xyes; then
20033   BUILD_PCM_PLUGIN_RATE_TRUE=
20034   BUILD_PCM_PLUGIN_RATE_FALSE='#'
20035 else
20036   BUILD_PCM_PLUGIN_RATE_TRUE='#'
20037   BUILD_PCM_PLUGIN_RATE_FALSE=
20038 fi
20039
20040  if test x$build_pcm_plug = xyes; then
20041   BUILD_PCM_PLUGIN_PLUG_TRUE=
20042   BUILD_PCM_PLUGIN_PLUG_FALSE='#'
20043 else
20044   BUILD_PCM_PLUGIN_PLUG_TRUE='#'
20045   BUILD_PCM_PLUGIN_PLUG_FALSE=
20046 fi
20047
20048  if test x$build_pcm_multi = xyes; then
20049   BUILD_PCM_PLUGIN_MULTI_TRUE=
20050   BUILD_PCM_PLUGIN_MULTI_FALSE='#'
20051 else
20052   BUILD_PCM_PLUGIN_MULTI_TRUE='#'
20053   BUILD_PCM_PLUGIN_MULTI_FALSE=
20054 fi
20055
20056  if test x$build_pcm_shm = xyes; then
20057   BUILD_PCM_PLUGIN_SHM_TRUE=
20058   BUILD_PCM_PLUGIN_SHM_FALSE='#'
20059 else
20060   BUILD_PCM_PLUGIN_SHM_TRUE='#'
20061   BUILD_PCM_PLUGIN_SHM_FALSE=
20062 fi
20063
20064  if test x$build_pcm_file = xyes; then
20065   BUILD_PCM_PLUGIN_FILE_TRUE=
20066   BUILD_PCM_PLUGIN_FILE_FALSE='#'
20067 else
20068   BUILD_PCM_PLUGIN_FILE_TRUE='#'
20069   BUILD_PCM_PLUGIN_FILE_FALSE=
20070 fi
20071
20072  if test x$build_pcm_null = xyes; then
20073   BUILD_PCM_PLUGIN_NULL_TRUE=
20074   BUILD_PCM_PLUGIN_NULL_FALSE='#'
20075 else
20076   BUILD_PCM_PLUGIN_NULL_TRUE='#'
20077   BUILD_PCM_PLUGIN_NULL_FALSE=
20078 fi
20079
20080  if test x$build_pcm_empty = xyes; then
20081   BUILD_PCM_PLUGIN_EMPTY_TRUE=
20082   BUILD_PCM_PLUGIN_EMPTY_FALSE='#'
20083 else
20084   BUILD_PCM_PLUGIN_EMPTY_TRUE='#'
20085   BUILD_PCM_PLUGIN_EMPTY_FALSE=
20086 fi
20087
20088  if test x$build_pcm_share = xyes; then
20089   BUILD_PCM_PLUGIN_SHARE_TRUE=
20090   BUILD_PCM_PLUGIN_SHARE_FALSE='#'
20091 else
20092   BUILD_PCM_PLUGIN_SHARE_TRUE='#'
20093   BUILD_PCM_PLUGIN_SHARE_FALSE=
20094 fi
20095
20096  if test x$build_pcm_meter = xyes; then
20097   BUILD_PCM_PLUGIN_METER_TRUE=
20098   BUILD_PCM_PLUGIN_METER_FALSE='#'
20099 else
20100   BUILD_PCM_PLUGIN_METER_TRUE='#'
20101   BUILD_PCM_PLUGIN_METER_FALSE=
20102 fi
20103
20104  if test x$build_pcm_hooks = xyes; then
20105   BUILD_PCM_PLUGIN_HOOKS_TRUE=
20106   BUILD_PCM_PLUGIN_HOOKS_FALSE='#'
20107 else
20108   BUILD_PCM_PLUGIN_HOOKS_TRUE='#'
20109   BUILD_PCM_PLUGIN_HOOKS_FALSE=
20110 fi
20111
20112  if test x$build_pcm_lfloat = xyes; then
20113   BUILD_PCM_PLUGIN_LFLOAT_TRUE=
20114   BUILD_PCM_PLUGIN_LFLOAT_FALSE='#'
20115 else
20116   BUILD_PCM_PLUGIN_LFLOAT_TRUE='#'
20117   BUILD_PCM_PLUGIN_LFLOAT_FALSE=
20118 fi
20119
20120  if test x$build_pcm_ladspa = xyes; then
20121   BUILD_PCM_PLUGIN_LADSPA_TRUE=
20122   BUILD_PCM_PLUGIN_LADSPA_FALSE='#'
20123 else
20124   BUILD_PCM_PLUGIN_LADSPA_TRUE='#'
20125   BUILD_PCM_PLUGIN_LADSPA_FALSE=
20126 fi
20127
20128  if test x$build_pcm_dmix = xyes; then
20129   BUILD_PCM_PLUGIN_DMIX_TRUE=
20130   BUILD_PCM_PLUGIN_DMIX_FALSE='#'
20131 else
20132   BUILD_PCM_PLUGIN_DMIX_TRUE='#'
20133   BUILD_PCM_PLUGIN_DMIX_FALSE=
20134 fi
20135
20136  if test x$build_pcm_dshare = xyes; then
20137   BUILD_PCM_PLUGIN_DSHARE_TRUE=
20138   BUILD_PCM_PLUGIN_DSHARE_FALSE='#'
20139 else
20140   BUILD_PCM_PLUGIN_DSHARE_TRUE='#'
20141   BUILD_PCM_PLUGIN_DSHARE_FALSE=
20142 fi
20143
20144  if test x$build_pcm_dsnoop = xyes; then
20145   BUILD_PCM_PLUGIN_DSNOOP_TRUE=
20146   BUILD_PCM_PLUGIN_DSNOOP_FALSE='#'
20147 else
20148   BUILD_PCM_PLUGIN_DSNOOP_TRUE='#'
20149   BUILD_PCM_PLUGIN_DSNOOP_FALSE=
20150 fi
20151
20152  if test x$build_pcm_asym = xyes; then
20153   BUILD_PCM_PLUGIN_ASYM_TRUE=
20154   BUILD_PCM_PLUGIN_ASYM_FALSE='#'
20155 else
20156   BUILD_PCM_PLUGIN_ASYM_TRUE='#'
20157   BUILD_PCM_PLUGIN_ASYM_FALSE=
20158 fi
20159
20160  if test x$build_pcm_iec958 = xyes; then
20161   BUILD_PCM_PLUGIN_IEC958_TRUE=
20162   BUILD_PCM_PLUGIN_IEC958_FALSE='#'
20163 else
20164   BUILD_PCM_PLUGIN_IEC958_TRUE='#'
20165   BUILD_PCM_PLUGIN_IEC958_FALSE=
20166 fi
20167
20168  if test x$build_pcm_softvol = xyes; then
20169   BUILD_PCM_PLUGIN_SOFTVOL_TRUE=
20170   BUILD_PCM_PLUGIN_SOFTVOL_FALSE='#'
20171 else
20172   BUILD_PCM_PLUGIN_SOFTVOL_TRUE='#'
20173   BUILD_PCM_PLUGIN_SOFTVOL_FALSE=
20174 fi
20175
20176  if test x$build_pcm_extplug = xyes; then
20177   BUILD_PCM_PLUGIN_EXTPLUG_TRUE=
20178   BUILD_PCM_PLUGIN_EXTPLUG_FALSE='#'
20179 else
20180   BUILD_PCM_PLUGIN_EXTPLUG_TRUE='#'
20181   BUILD_PCM_PLUGIN_EXTPLUG_FALSE=
20182 fi
20183
20184  if test x$build_pcm_ioplug = xyes; then
20185   BUILD_PCM_PLUGIN_IOPLUG_TRUE=
20186   BUILD_PCM_PLUGIN_IOPLUG_FALSE='#'
20187 else
20188   BUILD_PCM_PLUGIN_IOPLUG_TRUE='#'
20189   BUILD_PCM_PLUGIN_IOPLUG_FALSE=
20190 fi
20191
20192  if test x$build_pcm_mmap_emul = xyes; then
20193   BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE=
20194   BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE='#'
20195 else
20196   BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE='#'
20197   BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE=
20198 fi
20199
20200
20201 if test "$build_pcm_rate" = "yes"; then
20202
20203 $as_echo "#define BUILD_PCM_PLUGIN_RATE \"1\"" >>confdefs.h
20204
20205 fi
20206 if test "$build_pcm_route" = "yes"; then
20207
20208 $as_echo "#define BUILD_PCM_PLUGIN_ROUTE \"1\"" >>confdefs.h
20209
20210 fi
20211 if test "$build_pcm_lfloat" = "yes"; then
20212
20213 $as_echo "#define BUILD_PCM_PLUGIN_LFLOAT \"1\"" >>confdefs.h
20214
20215 fi
20216 if test "$build_pcm_adpcm" = "yes"; then
20217
20218 $as_echo "#define BUILD_PCM_PLUGIN_ADPCM \"1\"" >>confdefs.h
20219
20220 fi
20221 if test "$build_pcm_mulaw" = "yes"; then
20222
20223 $as_echo "#define BUILD_PCM_PLUGIN_MULAW \"1\"" >>confdefs.h
20224
20225 fi
20226 if test "$build_pcm_alaw" = "yes"; then
20227
20228 $as_echo "#define BUILD_PCM_PLUGIN_ALAW \"1\"" >>confdefs.h
20229
20230 fi
20231 if test "$build_pcm_mmap_emul" = "yes"; then
20232
20233 $as_echo "#define BUILD_PCM_PLUGIN_MMAP_EMUL \"1\"" >>confdefs.h
20234
20235 fi
20236
20237
20238 rm -f "$srcdir"/src/pcm/pcm_symbols_list.c
20239 touch "$srcdir"/src/pcm/pcm_symbols_list.c
20240 for t in $PCM_PLUGIN_LIST; do
20241   if eval test \$build_pcm_$t = yes; then
20242     echo \&_snd_module_pcm_$t, >> "$srcdir"/src/pcm/pcm_symbols_list.c
20243   fi
20244 done
20245
20246
20247
20248 # Check whether --with-ctl-plugins was given.
20249 if test "${with_ctl_plugins+set}" = set; then :
20250   withval=$with_ctl_plugins; ctl_plugins="$withval"
20251 else
20252   ctl_plugins="all"
20253 fi
20254
20255
20256 CTL_PLUGIN_LIST="shm ext"
20257
20258 build_ctl_plugin="no"
20259 for t in $CTL_PLUGIN_LIST; do
20260   eval build_ctl_$t="no"
20261 done
20262
20263 ctl_plugins=`echo $ctl_plugins | sed 's/,/ /g'`
20264 for p in $ctl_plugins; do
20265   for t in $CTL_PLUGIN_LIST; do
20266     if test "$p" = "$t" -o "$p" = "all"; then
20267       eval build_ctl_$t="yes"
20268       build_ctl_plugin="yes"
20269     fi
20270   done
20271 done
20272
20273  if test x$build_ctl_plugin = xyes; then
20274   BUILD_CTL_PLUGIN_TRUE=
20275   BUILD_CTL_PLUGIN_FALSE='#'
20276 else
20277   BUILD_CTL_PLUGIN_TRUE='#'
20278   BUILD_CTL_PLUGIN_FALSE=
20279 fi
20280
20281  if test x$build_ctl_shm = xyes; then
20282   BUILD_CTL_PLUGIN_SHM_TRUE=
20283   BUILD_CTL_PLUGIN_SHM_FALSE='#'
20284 else
20285   BUILD_CTL_PLUGIN_SHM_TRUE='#'
20286   BUILD_CTL_PLUGIN_SHM_FALSE=
20287 fi
20288
20289  if test x$build_ctl_ext = xyes; then
20290   BUILD_CTL_PLUGIN_EXT_TRUE=
20291   BUILD_CTL_PLUGIN_EXT_FALSE='#'
20292 else
20293   BUILD_CTL_PLUGIN_EXT_TRUE='#'
20294   BUILD_CTL_PLUGIN_EXT_FALSE=
20295 fi
20296
20297
20298 rm -f "$srcdir"/src/control/ctl_symbols_list.c
20299 touch "$srcdir"/src/control/ctl_symbols_list.c
20300 for t in $CTL_PLUGIN_LIST; do
20301   if eval test \$build_ctl_$t = yes; then
20302     echo \&_snd_module_control_$t, >> "$srcdir"/src/control/ctl_symbols_list.c
20303   fi
20304 done
20305
20306 if test ! -L "$srcdir"/include/alsa ; then
20307   echo "Making a symlink include/alsa"
20308   rm -f "$srcdir"/include/alsa
20309   ln -sf . "$srcdir"/include/alsa
20310 fi
20311
20312 ac_config_files="$ac_config_files Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg include/Makefile include/sound/Makefile src/Versions src/Makefile src/control/Makefile src/mixer/Makefile src/pcm/Makefile src/pcm/scopes/Makefile src/rawmidi/Makefile src/timer/Makefile src/hwdep/Makefile src/seq/Makefile src/ucm/Makefile src/compat/Makefile src/alisp/Makefile src/conf/Makefile src/conf/cards/Makefile src/conf/pcm/Makefile modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile alsalisp/Makefile aserver/Makefile test/Makefile test/lsb/Makefile utils/Makefile utils/alsa-lib.spec utils/alsa.pc"
20313
20314 cat >confcache <<\_ACEOF
20315 # This file is a shell script that caches the results of configure
20316 # tests run on this system so they can be shared between configure
20317 # scripts and configure runs, see configure's option --config-cache.
20318 # It is not useful on other systems.  If it contains results you don't
20319 # want to keep, you may remove or edit it.
20320 #
20321 # config.status only pays attention to the cache file if you give it
20322 # the --recheck option to rerun configure.
20323 #
20324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20326 # following values.
20327
20328 _ACEOF
20329
20330 # The following way of writing the cache mishandles newlines in values,
20331 # but we know of no workaround that is simple, portable, and efficient.
20332 # So, we kill variables containing newlines.
20333 # Ultrix sh set writes to stderr and can't be redirected directly,
20334 # and sets the high bit in the cache file unless we assign to the vars.
20335 (
20336   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20337     eval ac_val=\$$ac_var
20338     case $ac_val in #(
20339     *${as_nl}*)
20340       case $ac_var in #(
20341       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20342 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20343       esac
20344       case $ac_var in #(
20345       _ | IFS | as_nl) ;; #(
20346       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20347       *) { eval $ac_var=; unset $ac_var;} ;;
20348       esac ;;
20349     esac
20350   done
20351
20352   (set) 2>&1 |
20353     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20354     *${as_nl}ac_space=\ *)
20355       # `set' does not quote correctly, so add quotes: double-quote
20356       # substitution turns \\\\ into \\, and sed turns \\ into \.
20357       sed -n \
20358         "s/'/'\\\\''/g;
20359           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20360       ;; #(
20361     *)
20362       # `set' quotes correctly as required by POSIX, so do not add quotes.
20363       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20364       ;;
20365     esac |
20366     sort
20367 ) |
20368   sed '
20369      /^ac_cv_env_/b end
20370      t clear
20371      :clear
20372      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20373      t end
20374      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20375      :end' >>confcache
20376 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20377   if test -w "$cache_file"; then
20378     if test "x$cache_file" != "x/dev/null"; then
20379       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20380 $as_echo "$as_me: updating cache $cache_file" >&6;}
20381       if test ! -f "$cache_file" || test -h "$cache_file"; then
20382         cat confcache >"$cache_file"
20383       else
20384         case $cache_file in #(
20385         */* | ?:*)
20386           mv -f confcache "$cache_file"$$ &&
20387           mv -f "$cache_file"$$ "$cache_file" ;; #(
20388         *)
20389           mv -f confcache "$cache_file" ;;
20390         esac
20391       fi
20392     fi
20393   else
20394     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20395 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20396   fi
20397 fi
20398 rm -f confcache
20399
20400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20401 # Let make expand exec_prefix.
20402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20403
20404 DEFS=-DHAVE_CONFIG_H
20405
20406 ac_libobjs=
20407 ac_ltlibobjs=
20408 U=
20409 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20410   # 1. Remove the extension, and $U if already installed.
20411   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20412   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20413   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20414   #    will be set to the directory where LIBOBJS objects are built.
20415   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20416   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20417 done
20418 LIBOBJS=$ac_libobjs
20419
20420 LTLIBOBJS=$ac_ltlibobjs
20421
20422
20423  if test -n "$EXEEXT"; then
20424   am__EXEEXT_TRUE=
20425   am__EXEEXT_FALSE='#'
20426 else
20427   am__EXEEXT_TRUE='#'
20428   am__EXEEXT_FALSE=
20429 fi
20430
20431 if test -z "${INSTALL_M4_TRUE}" && test -z "${INSTALL_M4_FALSE}"; then
20432   as_fn_error $? "conditional \"INSTALL_M4\" was never defined.
20433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20434 fi
20435 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20436   as_fn_error $? "conditional \"AMDEP\" was never defined.
20437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20438 fi
20439 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20440   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20442 fi
20443 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20444   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20446 fi
20447 if test -z "${ALSA_HSEARCH_R_TRUE}" && test -z "${ALSA_HSEARCH_R_FALSE}"; then
20448   as_fn_error $? "conditional \"ALSA_HSEARCH_R\" was never defined.
20449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20450 fi
20451 if test -z "${VERSIONED_SYMBOLS_TRUE}" && test -z "${VERSIONED_SYMBOLS_FALSE}"; then
20452   as_fn_error $? "conditional \"VERSIONED_SYMBOLS\" was never defined.
20453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20454 fi
20455 if test -z "${SYMBOLIC_FUNCTIONS_TRUE}" && test -z "${SYMBOLIC_FUNCTIONS_FALSE}"; then
20456   as_fn_error $? "conditional \"SYMBOLIC_FUNCTIONS\" was never defined.
20457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20458 fi
20459 if test -z "${BUILD_MODULES_TRUE}" && test -z "${BUILD_MODULES_FALSE}"; then
20460   as_fn_error $? "conditional \"BUILD_MODULES\" was never defined.
20461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20462 fi
20463 if test -z "${KEEP_OLD_SYMBOLS_TRUE}" && test -z "${KEEP_OLD_SYMBOLS_FALSE}"; then
20464   as_fn_error $? "conditional \"KEEP_OLD_SYMBOLS\" was never defined.
20465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20466 fi
20467 if test -z "${BUILD_MIXER_TRUE}" && test -z "${BUILD_MIXER_FALSE}"; then
20468   as_fn_error $? "conditional \"BUILD_MIXER\" was never defined.
20469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20470 fi
20471 if test -z "${BUILD_PCM_TRUE}" && test -z "${BUILD_PCM_FALSE}"; then
20472   as_fn_error $? "conditional \"BUILD_PCM\" was never defined.
20473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20474 fi
20475 if test -z "${BUILD_RAWMIDI_TRUE}" && test -z "${BUILD_RAWMIDI_FALSE}"; then
20476   as_fn_error $? "conditional \"BUILD_RAWMIDI\" was never defined.
20477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20478 fi
20479 if test -z "${BUILD_HWDEP_TRUE}" && test -z "${BUILD_HWDEP_FALSE}"; then
20480   as_fn_error $? "conditional \"BUILD_HWDEP\" was never defined.
20481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20482 fi
20483 if test -z "${BUILD_SEQ_TRUE}" && test -z "${BUILD_SEQ_FALSE}"; then
20484   as_fn_error $? "conditional \"BUILD_SEQ\" was never defined.
20485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20486 fi
20487 if test -z "${BUILD_UCM_TRUE}" && test -z "${BUILD_UCM_FALSE}"; then
20488   as_fn_error $? "conditional \"BUILD_UCM\" was never defined.
20489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20490 fi
20491 if test -z "${BUILD_ALISP_TRUE}" && test -z "${BUILD_ALISP_FALSE}"; then
20492   as_fn_error $? "conditional \"BUILD_ALISP\" was never defined.
20493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20494 fi
20495 if test -z "${BUILD_PYTHON_TRUE}" && test -z "${BUILD_PYTHON_FALSE}"; then
20496   as_fn_error $? "conditional \"BUILD_PYTHON\" was never defined.
20497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20498 fi
20499 if test -z "${BUILD_PCM_PLUGIN_TRUE}" && test -z "${BUILD_PCM_PLUGIN_FALSE}"; then
20500   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN\" was never defined.
20501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20502 fi
20503 if test -z "${BUILD_PCM_PLUGIN_COPY_TRUE}" && test -z "${BUILD_PCM_PLUGIN_COPY_FALSE}"; then
20504   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_COPY\" was never defined.
20505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20506 fi
20507 if test -z "${BUILD_PCM_PLUGIN_LINEAR_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LINEAR_FALSE}"; then
20508   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LINEAR\" was never defined.
20509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20510 fi
20511 if test -z "${BUILD_PCM_PLUGIN_ROUTE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ROUTE_FALSE}"; then
20512   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ROUTE\" was never defined.
20513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20514 fi
20515 if test -z "${BUILD_PCM_PLUGIN_MULAW_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MULAW_FALSE}"; then
20516   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MULAW\" was never defined.
20517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20518 fi
20519 if test -z "${BUILD_PCM_PLUGIN_ALAW_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ALAW_FALSE}"; then
20520   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ALAW\" was never defined.
20521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20522 fi
20523 if test -z "${BUILD_PCM_PLUGIN_ADPCM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ADPCM_FALSE}"; then
20524   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ADPCM\" was never defined.
20525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20526 fi
20527 if test -z "${BUILD_PCM_PLUGIN_RATE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_RATE_FALSE}"; then
20528   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_RATE\" was never defined.
20529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20530 fi
20531 if test -z "${BUILD_PCM_PLUGIN_PLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_PLUG_FALSE}"; then
20532   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_PLUG\" was never defined.
20533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20534 fi
20535 if test -z "${BUILD_PCM_PLUGIN_MULTI_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MULTI_FALSE}"; then
20536   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MULTI\" was never defined.
20537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20538 fi
20539 if test -z "${BUILD_PCM_PLUGIN_SHM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SHM_FALSE}"; then
20540   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SHM\" was never defined.
20541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20542 fi
20543 if test -z "${BUILD_PCM_PLUGIN_FILE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_FILE_FALSE}"; then
20544   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_FILE\" was never defined.
20545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20546 fi
20547 if test -z "${BUILD_PCM_PLUGIN_NULL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_NULL_FALSE}"; then
20548   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_NULL\" was never defined.
20549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20550 fi
20551 if test -z "${BUILD_PCM_PLUGIN_EMPTY_TRUE}" && test -z "${BUILD_PCM_PLUGIN_EMPTY_FALSE}"; then
20552   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_EMPTY\" was never defined.
20553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20554 fi
20555 if test -z "${BUILD_PCM_PLUGIN_SHARE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SHARE_FALSE}"; then
20556   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SHARE\" was never defined.
20557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20558 fi
20559 if test -z "${BUILD_PCM_PLUGIN_METER_TRUE}" && test -z "${BUILD_PCM_PLUGIN_METER_FALSE}"; then
20560   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_METER\" was never defined.
20561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20562 fi
20563 if test -z "${BUILD_PCM_PLUGIN_HOOKS_TRUE}" && test -z "${BUILD_PCM_PLUGIN_HOOKS_FALSE}"; then
20564   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_HOOKS\" was never defined.
20565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20566 fi
20567 if test -z "${BUILD_PCM_PLUGIN_LFLOAT_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LFLOAT_FALSE}"; then
20568   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LFLOAT\" was never defined.
20569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20570 fi
20571 if test -z "${BUILD_PCM_PLUGIN_LADSPA_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LADSPA_FALSE}"; then
20572   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LADSPA\" was never defined.
20573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20574 fi
20575 if test -z "${BUILD_PCM_PLUGIN_DMIX_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DMIX_FALSE}"; then
20576   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DMIX\" was never defined.
20577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20578 fi
20579 if test -z "${BUILD_PCM_PLUGIN_DSHARE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DSHARE_FALSE}"; then
20580   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DSHARE\" was never defined.
20581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20582 fi
20583 if test -z "${BUILD_PCM_PLUGIN_DSNOOP_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DSNOOP_FALSE}"; then
20584   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DSNOOP\" was never defined.
20585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20586 fi
20587 if test -z "${BUILD_PCM_PLUGIN_ASYM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ASYM_FALSE}"; then
20588   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ASYM\" was never defined.
20589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20590 fi
20591 if test -z "${BUILD_PCM_PLUGIN_IEC958_TRUE}" && test -z "${BUILD_PCM_PLUGIN_IEC958_FALSE}"; then
20592   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_IEC958\" was never defined.
20593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20594 fi
20595 if test -z "${BUILD_PCM_PLUGIN_SOFTVOL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SOFTVOL_FALSE}"; then
20596   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SOFTVOL\" was never defined.
20597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20598 fi
20599 if test -z "${BUILD_PCM_PLUGIN_EXTPLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_EXTPLUG_FALSE}"; then
20600   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_EXTPLUG\" was never defined.
20601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20602 fi
20603 if test -z "${BUILD_PCM_PLUGIN_IOPLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_IOPLUG_FALSE}"; then
20604   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_IOPLUG\" was never defined.
20605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20606 fi
20607 if test -z "${BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE}"; then
20608   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MMAP_EMUL\" was never defined.
20609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20610 fi
20611 if test -z "${BUILD_CTL_PLUGIN_TRUE}" && test -z "${BUILD_CTL_PLUGIN_FALSE}"; then
20612   as_fn_error $? "conditional \"BUILD_CTL_PLUGIN\" was never defined.
20613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20614 fi
20615 if test -z "${BUILD_CTL_PLUGIN_SHM_TRUE}" && test -z "${BUILD_CTL_PLUGIN_SHM_FALSE}"; then
20616   as_fn_error $? "conditional \"BUILD_CTL_PLUGIN_SHM\" was never defined.
20617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20618 fi
20619 if test -z "${BUILD_CTL_PLUGIN_EXT_TRUE}" && test -z "${BUILD_CTL_PLUGIN_EXT_FALSE}"; then
20620   as_fn_error $? "conditional \"BUILD_CTL_PLUGIN_EXT\" was never defined.
20621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20622 fi
20623
20624 : "${CONFIG_STATUS=./config.status}"
20625 ac_write_fail=0
20626 ac_clean_files_save=$ac_clean_files
20627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20629 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20630 as_write_fail=0
20631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20632 #! $SHELL
20633 # Generated by $as_me.
20634 # Run this file to recreate the current configuration.
20635 # Compiler output produced by configure, useful for debugging
20636 # configure, is in config.log if it exists.
20637
20638 debug=false
20639 ac_cs_recheck=false
20640 ac_cs_silent=false
20641
20642 SHELL=\${CONFIG_SHELL-$SHELL}
20643 export SHELL
20644 _ASEOF
20645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20646 ## -------------------- ##
20647 ## M4sh Initialization. ##
20648 ## -------------------- ##
20649
20650 # Be more Bourne compatible
20651 DUALCASE=1; export DUALCASE # for MKS sh
20652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20653   emulate sh
20654   NULLCMD=:
20655   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20656   # is contrary to our usage.  Disable this feature.
20657   alias -g '${1+"$@"}'='"$@"'
20658   setopt NO_GLOB_SUBST
20659 else
20660   case `(set -o) 2>/dev/null` in #(
20661   *posix*) :
20662     set -o posix ;; #(
20663   *) :
20664      ;;
20665 esac
20666 fi
20667
20668
20669 as_nl='
20670 '
20671 export as_nl
20672 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20673 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20676 # Prefer a ksh shell builtin over an external printf program on Solaris,
20677 # but without wasting forks for bash or zsh.
20678 if test -z "$BASH_VERSION$ZSH_VERSION" \
20679     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20680   as_echo='print -r --'
20681   as_echo_n='print -rn --'
20682 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20683   as_echo='printf %s\n'
20684   as_echo_n='printf %s'
20685 else
20686   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20687     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20688     as_echo_n='/usr/ucb/echo -n'
20689   else
20690     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20691     as_echo_n_body='eval
20692       arg=$1;
20693       case $arg in #(
20694       *"$as_nl"*)
20695         expr "X$arg" : "X\\(.*\\)$as_nl";
20696         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20697       esac;
20698       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20699     '
20700     export as_echo_n_body
20701     as_echo_n='sh -c $as_echo_n_body as_echo'
20702   fi
20703   export as_echo_body
20704   as_echo='sh -c $as_echo_body as_echo'
20705 fi
20706
20707 # The user is always right.
20708 if test "${PATH_SEPARATOR+set}" != set; then
20709   PATH_SEPARATOR=:
20710   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20711     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20712       PATH_SEPARATOR=';'
20713   }
20714 fi
20715
20716
20717 # IFS
20718 # We need space, tab and new line, in precisely that order.  Quoting is
20719 # there to prevent editors from complaining about space-tab.
20720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20721 # splitting by setting IFS to empty value.)
20722 IFS=" ""        $as_nl"
20723
20724 # Find who we are.  Look in the path if we contain no directory separator.
20725 as_myself=
20726 case $0 in #((
20727   *[\\/]* ) as_myself=$0 ;;
20728   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20729 for as_dir in $PATH
20730 do
20731   IFS=$as_save_IFS
20732   test -z "$as_dir" && as_dir=.
20733     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20734   done
20735 IFS=$as_save_IFS
20736
20737      ;;
20738 esac
20739 # We did not find ourselves, most probably we were run as `sh COMMAND'
20740 # in which case we are not to be found in the path.
20741 if test "x$as_myself" = x; then
20742   as_myself=$0
20743 fi
20744 if test ! -f "$as_myself"; then
20745   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20746   exit 1
20747 fi
20748
20749 # Unset variables that we do not need and which cause bugs (e.g. in
20750 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20751 # suppresses any "Segmentation fault" message there.  '((' could
20752 # trigger a bug in pdksh 5.2.14.
20753 for as_var in BASH_ENV ENV MAIL MAILPATH
20754 do eval test x\${$as_var+set} = xset \
20755   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20756 done
20757 PS1='$ '
20758 PS2='> '
20759 PS4='+ '
20760
20761 # NLS nuisances.
20762 LC_ALL=C
20763 export LC_ALL
20764 LANGUAGE=C
20765 export LANGUAGE
20766
20767 # CDPATH.
20768 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20769
20770
20771 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20772 # ----------------------------------------
20773 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20774 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20775 # script with STATUS, using 1 if that was 0.
20776 as_fn_error ()
20777 {
20778   as_status=$1; test $as_status -eq 0 && as_status=1
20779   if test "$4"; then
20780     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20781     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20782   fi
20783   $as_echo "$as_me: error: $2" >&2
20784   as_fn_exit $as_status
20785 } # as_fn_error
20786
20787
20788 # as_fn_set_status STATUS
20789 # -----------------------
20790 # Set $? to STATUS, without forking.
20791 as_fn_set_status ()
20792 {
20793   return $1
20794 } # as_fn_set_status
20795
20796 # as_fn_exit STATUS
20797 # -----------------
20798 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20799 as_fn_exit ()
20800 {
20801   set +e
20802   as_fn_set_status $1
20803   exit $1
20804 } # as_fn_exit
20805
20806 # as_fn_unset VAR
20807 # ---------------
20808 # Portably unset VAR.
20809 as_fn_unset ()
20810 {
20811   { eval $1=; unset $1;}
20812 }
20813 as_unset=as_fn_unset
20814 # as_fn_append VAR VALUE
20815 # ----------------------
20816 # Append the text in VALUE to the end of the definition contained in VAR. Take
20817 # advantage of any shell optimizations that allow amortized linear growth over
20818 # repeated appends, instead of the typical quadratic growth present in naive
20819 # implementations.
20820 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20821   eval 'as_fn_append ()
20822   {
20823     eval $1+=\$2
20824   }'
20825 else
20826   as_fn_append ()
20827   {
20828     eval $1=\$$1\$2
20829   }
20830 fi # as_fn_append
20831
20832 # as_fn_arith ARG...
20833 # ------------------
20834 # Perform arithmetic evaluation on the ARGs, and store the result in the
20835 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20836 # must be portable across $(()) and expr.
20837 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20838   eval 'as_fn_arith ()
20839   {
20840     as_val=$(( $* ))
20841   }'
20842 else
20843   as_fn_arith ()
20844   {
20845     as_val=`expr "$@" || test $? -eq 1`
20846   }
20847 fi # as_fn_arith
20848
20849
20850 if expr a : '\(a\)' >/dev/null 2>&1 &&
20851    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20852   as_expr=expr
20853 else
20854   as_expr=false
20855 fi
20856
20857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20858   as_basename=basename
20859 else
20860   as_basename=false
20861 fi
20862
20863 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20864   as_dirname=dirname
20865 else
20866   as_dirname=false
20867 fi
20868
20869 as_me=`$as_basename -- "$0" ||
20870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20871          X"$0" : 'X\(//\)$' \| \
20872          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20873 $as_echo X/"$0" |
20874     sed '/^.*\/\([^/][^/]*\)\/*$/{
20875             s//\1/
20876             q
20877           }
20878           /^X\/\(\/\/\)$/{
20879             s//\1/
20880             q
20881           }
20882           /^X\/\(\/\).*/{
20883             s//\1/
20884             q
20885           }
20886           s/.*/./; q'`
20887
20888 # Avoid depending upon Character Ranges.
20889 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20890 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20891 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20892 as_cr_digits='0123456789'
20893 as_cr_alnum=$as_cr_Letters$as_cr_digits
20894
20895 ECHO_C= ECHO_N= ECHO_T=
20896 case `echo -n x` in #(((((
20897 -n*)
20898   case `echo 'xy\c'` in
20899   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20900   xy)  ECHO_C='\c';;
20901   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20902        ECHO_T=' ';;
20903   esac;;
20904 *)
20905   ECHO_N='-n';;
20906 esac
20907
20908 rm -f conf$$ conf$$.exe conf$$.file
20909 if test -d conf$$.dir; then
20910   rm -f conf$$.dir/conf$$.file
20911 else
20912   rm -f conf$$.dir
20913   mkdir conf$$.dir 2>/dev/null
20914 fi
20915 if (echo >conf$$.file) 2>/dev/null; then
20916   if ln -s conf$$.file conf$$ 2>/dev/null; then
20917     as_ln_s='ln -s'
20918     # ... but there are two gotchas:
20919     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20920     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20921     # In both cases, we have to default to `cp -p'.
20922     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20923       as_ln_s='cp -p'
20924   elif ln conf$$.file conf$$ 2>/dev/null; then
20925     as_ln_s=ln
20926   else
20927     as_ln_s='cp -p'
20928   fi
20929 else
20930   as_ln_s='cp -p'
20931 fi
20932 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20933 rmdir conf$$.dir 2>/dev/null
20934
20935
20936 # as_fn_mkdir_p
20937 # -------------
20938 # Create "$as_dir" as a directory, including parents if necessary.
20939 as_fn_mkdir_p ()
20940 {
20941
20942   case $as_dir in #(
20943   -*) as_dir=./$as_dir;;
20944   esac
20945   test -d "$as_dir" || eval $as_mkdir_p || {
20946     as_dirs=
20947     while :; do
20948       case $as_dir in #(
20949       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20950       *) as_qdir=$as_dir;;
20951       esac
20952       as_dirs="'$as_qdir' $as_dirs"
20953       as_dir=`$as_dirname -- "$as_dir" ||
20954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20955          X"$as_dir" : 'X\(//\)[^/]' \| \
20956          X"$as_dir" : 'X\(//\)$' \| \
20957          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20958 $as_echo X"$as_dir" |
20959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20960             s//\1/
20961             q
20962           }
20963           /^X\(\/\/\)[^/].*/{
20964             s//\1/
20965             q
20966           }
20967           /^X\(\/\/\)$/{
20968             s//\1/
20969             q
20970           }
20971           /^X\(\/\).*/{
20972             s//\1/
20973             q
20974           }
20975           s/.*/./; q'`
20976       test -d "$as_dir" && break
20977     done
20978     test -z "$as_dirs" || eval "mkdir $as_dirs"
20979   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20980
20981
20982 } # as_fn_mkdir_p
20983 if mkdir -p . 2>/dev/null; then
20984   as_mkdir_p='mkdir -p "$as_dir"'
20985 else
20986   test -d ./-p && rmdir ./-p
20987   as_mkdir_p=false
20988 fi
20989
20990 if test -x / >/dev/null 2>&1; then
20991   as_test_x='test -x'
20992 else
20993   if ls -dL / >/dev/null 2>&1; then
20994     as_ls_L_option=L
20995   else
20996     as_ls_L_option=
20997   fi
20998   as_test_x='
20999     eval sh -c '\''
21000       if test -d "$1"; then
21001         test -d "$1/.";
21002       else
21003         case $1 in #(
21004         -*)set "./$1";;
21005         esac;
21006         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21007         ???[sx]*):;;*)false;;esac;fi
21008     '\'' sh
21009   '
21010 fi
21011 as_executable_p=$as_test_x
21012
21013 # Sed expression to map a string onto a valid CPP name.
21014 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21015
21016 # Sed expression to map a string onto a valid variable name.
21017 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21018
21019
21020 exec 6>&1
21021 ## ----------------------------------- ##
21022 ## Main body of $CONFIG_STATUS script. ##
21023 ## ----------------------------------- ##
21024 _ASEOF
21025 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21026
21027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21028 # Save the log message, to keep $0 and so on meaningful, and to
21029 # report actual input values of CONFIG_FILES etc. instead of their
21030 # values after options handling.
21031 ac_log="
21032 This file was extended by $as_me, which was
21033 generated by GNU Autoconf 2.68.  Invocation command line was
21034
21035   CONFIG_FILES    = $CONFIG_FILES
21036   CONFIG_HEADERS  = $CONFIG_HEADERS
21037   CONFIG_LINKS    = $CONFIG_LINKS
21038   CONFIG_COMMANDS = $CONFIG_COMMANDS
21039   $ $0 $@
21040
21041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21042 "
21043
21044 _ACEOF
21045
21046 case $ac_config_files in *"
21047 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21048 esac
21049
21050 case $ac_config_headers in *"
21051 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21052 esac
21053
21054
21055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21056 # Files that config.status was made for.
21057 config_files="$ac_config_files"
21058 config_headers="$ac_config_headers"
21059 config_commands="$ac_config_commands"
21060
21061 _ACEOF
21062
21063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21064 ac_cs_usage="\
21065 \`$as_me' instantiates files and other configuration actions
21066 from templates according to the current configuration.  Unless the files
21067 and actions are specified as TAGs, all are instantiated by default.
21068
21069 Usage: $0 [OPTION]... [TAG]...
21070
21071   -h, --help       print this help, then exit
21072   -V, --version    print version number and configuration settings, then exit
21073       --config     print configuration, then exit
21074   -q, --quiet, --silent
21075                    do not print progress messages
21076   -d, --debug      don't remove temporary files
21077       --recheck    update $as_me by reconfiguring in the same conditions
21078       --file=FILE[:TEMPLATE]
21079                    instantiate the configuration file FILE
21080       --header=FILE[:TEMPLATE]
21081                    instantiate the configuration header FILE
21082
21083 Configuration files:
21084 $config_files
21085
21086 Configuration headers:
21087 $config_headers
21088
21089 Configuration commands:
21090 $config_commands
21091
21092 Report bugs to the package provider."
21093
21094 _ACEOF
21095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21096 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21097 ac_cs_version="\\
21098 config.status
21099 configured by $0, generated by GNU Autoconf 2.68,
21100   with options \\"\$ac_cs_config\\"
21101
21102 Copyright (C) 2010 Free Software Foundation, Inc.
21103 This config.status script is free software; the Free Software Foundation
21104 gives unlimited permission to copy, distribute and modify it."
21105
21106 ac_pwd='$ac_pwd'
21107 srcdir='$srcdir'
21108 INSTALL='$INSTALL'
21109 MKDIR_P='$MKDIR_P'
21110 AWK='$AWK'
21111 test -n "\$AWK" || AWK=awk
21112 _ACEOF
21113
21114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21115 # The default lists apply if the user does not specify any file.
21116 ac_need_defaults=:
21117 while test $# != 0
21118 do
21119   case $1 in
21120   --*=?*)
21121     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21122     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21123     ac_shift=:
21124     ;;
21125   --*=)
21126     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21127     ac_optarg=
21128     ac_shift=:
21129     ;;
21130   *)
21131     ac_option=$1
21132     ac_optarg=$2
21133     ac_shift=shift
21134     ;;
21135   esac
21136
21137   case $ac_option in
21138   # Handling of the options.
21139   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21140     ac_cs_recheck=: ;;
21141   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21142     $as_echo "$ac_cs_version"; exit ;;
21143   --config | --confi | --conf | --con | --co | --c )
21144     $as_echo "$ac_cs_config"; exit ;;
21145   --debug | --debu | --deb | --de | --d | -d )
21146     debug=: ;;
21147   --file | --fil | --fi | --f )
21148     $ac_shift
21149     case $ac_optarg in
21150     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21151     '') as_fn_error $? "missing file argument" ;;
21152     esac
21153     as_fn_append CONFIG_FILES " '$ac_optarg'"
21154     ac_need_defaults=false;;
21155   --header | --heade | --head | --hea )
21156     $ac_shift
21157     case $ac_optarg in
21158     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21159     esac
21160     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21161     ac_need_defaults=false;;
21162   --he | --h)
21163     # Conflict between --help and --header
21164     as_fn_error $? "ambiguous option: \`$1'
21165 Try \`$0 --help' for more information.";;
21166   --help | --hel | -h )
21167     $as_echo "$ac_cs_usage"; exit ;;
21168   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21169   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21170     ac_cs_silent=: ;;
21171
21172   # This is an error.
21173   -*) as_fn_error $? "unrecognized option: \`$1'
21174 Try \`$0 --help' for more information." ;;
21175
21176   *) as_fn_append ac_config_targets " $1"
21177      ac_need_defaults=false ;;
21178
21179   esac
21180   shift
21181 done
21182
21183 ac_configure_extra_args=
21184
21185 if $ac_cs_silent; then
21186   exec 6>/dev/null
21187   ac_configure_extra_args="$ac_configure_extra_args --silent"
21188 fi
21189
21190 _ACEOF
21191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21192 if \$ac_cs_recheck; then
21193   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21194   shift
21195   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21196   CONFIG_SHELL='$SHELL'
21197   export CONFIG_SHELL
21198   exec "\$@"
21199 fi
21200
21201 _ACEOF
21202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21203 exec 5>>config.log
21204 {
21205   echo
21206   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21207 ## Running $as_me. ##
21208 _ASBOX
21209   $as_echo "$ac_log"
21210 } >&5
21211
21212 _ACEOF
21213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21214 #
21215 # INIT-COMMANDS
21216 #
21217 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21218
21219 _ACEOF
21220
21221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21222
21223 # Handling of arguments.
21224 for ac_config_target in $ac_config_targets
21225 do
21226   case $ac_config_target in
21227     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21228     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21229     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21230     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21231     "doc/pictures/Makefile") CONFIG_FILES="$CONFIG_FILES doc/pictures/Makefile" ;;
21232     "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
21233     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21234     "include/sound/Makefile") CONFIG_FILES="$CONFIG_FILES include/sound/Makefile" ;;
21235     "src/Versions") CONFIG_FILES="$CONFIG_FILES src/Versions" ;;
21236     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21237     "src/control/Makefile") CONFIG_FILES="$CONFIG_FILES src/control/Makefile" ;;
21238     "src/mixer/Makefile") CONFIG_FILES="$CONFIG_FILES src/mixer/Makefile" ;;
21239     "src/pcm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pcm/Makefile" ;;
21240     "src/pcm/scopes/Makefile") CONFIG_FILES="$CONFIG_FILES src/pcm/scopes/Makefile" ;;
21241     "src/rawmidi/Makefile") CONFIG_FILES="$CONFIG_FILES src/rawmidi/Makefile" ;;
21242     "src/timer/Makefile") CONFIG_FILES="$CONFIG_FILES src/timer/Makefile" ;;
21243     "src/hwdep/Makefile") CONFIG_FILES="$CONFIG_FILES src/hwdep/Makefile" ;;
21244     "src/seq/Makefile") CONFIG_FILES="$CONFIG_FILES src/seq/Makefile" ;;
21245     "src/ucm/Makefile") CONFIG_FILES="$CONFIG_FILES src/ucm/Makefile" ;;
21246     "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
21247     "src/alisp/Makefile") CONFIG_FILES="$CONFIG_FILES src/alisp/Makefile" ;;
21248     "src/conf/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/Makefile" ;;
21249     "src/conf/cards/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/cards/Makefile" ;;
21250     "src/conf/pcm/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/pcm/Makefile" ;;
21251     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
21252     "modules/mixer/Makefile") CONFIG_FILES="$CONFIG_FILES modules/mixer/Makefile" ;;
21253     "modules/mixer/simple/Makefile") CONFIG_FILES="$CONFIG_FILES modules/mixer/simple/Makefile" ;;
21254     "alsalisp/Makefile") CONFIG_FILES="$CONFIG_FILES alsalisp/Makefile" ;;
21255     "aserver/Makefile") CONFIG_FILES="$CONFIG_FILES aserver/Makefile" ;;
21256     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21257     "test/lsb/Makefile") CONFIG_FILES="$CONFIG_FILES test/lsb/Makefile" ;;
21258     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21259     "utils/alsa-lib.spec") CONFIG_FILES="$CONFIG_FILES utils/alsa-lib.spec" ;;
21260     "utils/alsa.pc") CONFIG_FILES="$CONFIG_FILES utils/alsa.pc" ;;
21261
21262   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21263   esac
21264 done
21265
21266
21267 # If the user did not use the arguments to specify the items to instantiate,
21268 # then the envvar interface is used.  Set only those that are not.
21269 # We use the long form for the default assignment because of an extremely
21270 # bizarre bug on SunOS 4.1.3.
21271 if $ac_need_defaults; then
21272   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21273   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21274   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21275 fi
21276
21277 # Have a temporary directory for convenience.  Make it in the build tree
21278 # simply because there is no reason against having it here, and in addition,
21279 # creating and moving files from /tmp can sometimes cause problems.
21280 # Hook for its removal unless debugging.
21281 # Note that there is a small window in which the directory will not be cleaned:
21282 # after its creation but before its name has been assigned to `$tmp'.
21283 $debug ||
21284 {
21285   tmp= ac_tmp=
21286   trap 'exit_status=$?
21287   : "${ac_tmp:=$tmp}"
21288   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21289 ' 0
21290   trap 'as_fn_exit 1' 1 2 13 15
21291 }
21292 # Create a (secure) tmp directory for tmp files.
21293
21294 {
21295   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21296   test -d "$tmp"
21297 }  ||
21298 {
21299   tmp=./conf$$-$RANDOM
21300   (umask 077 && mkdir "$tmp")
21301 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21302 ac_tmp=$tmp
21303
21304 # Set up the scripts for CONFIG_FILES section.
21305 # No need to generate them if there are no CONFIG_FILES.
21306 # This happens for instance with `./config.status config.h'.
21307 if test -n "$CONFIG_FILES"; then
21308
21309
21310 ac_cr=`echo X | tr X '\015'`
21311 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21312 # But we know of no other shell where ac_cr would be empty at this
21313 # point, so we can use a bashism as a fallback.
21314 if test "x$ac_cr" = x; then
21315   eval ac_cr=\$\'\\r\'
21316 fi
21317 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21318 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21319   ac_cs_awk_cr='\\r'
21320 else
21321   ac_cs_awk_cr=$ac_cr
21322 fi
21323
21324 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21325 _ACEOF
21326
21327
21328 {
21329   echo "cat >conf$$subs.awk <<_ACEOF" &&
21330   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21331   echo "_ACEOF"
21332 } >conf$$subs.sh ||
21333   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21334 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21335 ac_delim='%!_!# '
21336 for ac_last_try in false false false false false :; do
21337   . ./conf$$subs.sh ||
21338     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21339
21340   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21341   if test $ac_delim_n = $ac_delim_num; then
21342     break
21343   elif $ac_last_try; then
21344     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21345   else
21346     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21347   fi
21348 done
21349 rm -f conf$$subs.sh
21350
21351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21352 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21353 _ACEOF
21354 sed -n '
21355 h
21356 s/^/S["/; s/!.*/"]=/
21357 p
21358 g
21359 s/^[^!]*!//
21360 :repl
21361 t repl
21362 s/'"$ac_delim"'$//
21363 t delim
21364 :nl
21365 h
21366 s/\(.\{148\}\)..*/\1/
21367 t more1
21368 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21369 p
21370 n
21371 b repl
21372 :more1
21373 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21374 p
21375 g
21376 s/.\{148\}//
21377 t nl
21378 :delim
21379 h
21380 s/\(.\{148\}\)..*/\1/
21381 t more2
21382 s/["\\]/\\&/g; s/^/"/; s/$/"/
21383 p
21384 b
21385 :more2
21386 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21387 p
21388 g
21389 s/.\{148\}//
21390 t delim
21391 ' <conf$$subs.awk | sed '
21392 /^[^""]/{
21393   N
21394   s/\n//
21395 }
21396 ' >>$CONFIG_STATUS || ac_write_fail=1
21397 rm -f conf$$subs.awk
21398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21399 _ACAWK
21400 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21401   for (key in S) S_is_set[key] = 1
21402   FS = "\a"
21403
21404 }
21405 {
21406   line = $ 0
21407   nfields = split(line, field, "@")
21408   substed = 0
21409   len = length(field[1])
21410   for (i = 2; i < nfields; i++) {
21411     key = field[i]
21412     keylen = length(key)
21413     if (S_is_set[key]) {
21414       value = S[key]
21415       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21416       len += length(value) + length(field[++i])
21417       substed = 1
21418     } else
21419       len += 1 + keylen
21420   }
21421
21422   print line
21423 }
21424
21425 _ACAWK
21426 _ACEOF
21427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21428 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21429   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21430 else
21431   cat
21432 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21433   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21434 _ACEOF
21435
21436 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21437 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21438 # trailing colons and then remove the whole line if VPATH becomes empty
21439 # (actually we leave an empty line to preserve line numbers).
21440 if test "x$srcdir" = x.; then
21441   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21442 h
21443 s///
21444 s/^/:/
21445 s/[      ]*$/:/
21446 s/:\$(srcdir):/:/g
21447 s/:\${srcdir}:/:/g
21448 s/:@srcdir@:/:/g
21449 s/^:*//
21450 s/:*$//
21451 x
21452 s/\(=[   ]*\).*/\1/
21453 G
21454 s/\n//
21455 s/^[^=]*=[       ]*$//
21456 }'
21457 fi
21458
21459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21460 fi # test -n "$CONFIG_FILES"
21461
21462 # Set up the scripts for CONFIG_HEADERS section.
21463 # No need to generate them if there are no CONFIG_HEADERS.
21464 # This happens for instance with `./config.status Makefile'.
21465 if test -n "$CONFIG_HEADERS"; then
21466 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21467 BEGIN {
21468 _ACEOF
21469
21470 # Transform confdefs.h into an awk script `defines.awk', embedded as
21471 # here-document in config.status, that substitutes the proper values into
21472 # config.h.in to produce config.h.
21473
21474 # Create a delimiter string that does not exist in confdefs.h, to ease
21475 # handling of long lines.
21476 ac_delim='%!_!# '
21477 for ac_last_try in false false :; do
21478   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21479   if test -z "$ac_tt"; then
21480     break
21481   elif $ac_last_try; then
21482     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21483   else
21484     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21485   fi
21486 done
21487
21488 # For the awk script, D is an array of macro values keyed by name,
21489 # likewise P contains macro parameters if any.  Preserve backslash
21490 # newline sequences.
21491
21492 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21493 sed -n '
21494 s/.\{148\}/&'"$ac_delim"'/g
21495 t rset
21496 :rset
21497 s/^[     ]*#[    ]*define[       ][      ]*/ /
21498 t def
21499 d
21500 :def
21501 s/\\$//
21502 t bsnl
21503 s/["\\]/\\&/g
21504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21505 D["\1"]=" \3"/p
21506 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21507 d
21508 :bsnl
21509 s/["\\]/\\&/g
21510 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21511 D["\1"]=" \3\\\\\\n"\\/p
21512 t cont
21513 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21514 t cont
21515 d
21516 :cont
21517 n
21518 s/.\{148\}/&'"$ac_delim"'/g
21519 t clear
21520 :clear
21521 s/\\$//
21522 t bsnlc
21523 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21524 d
21525 :bsnlc
21526 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21527 b cont
21528 ' <confdefs.h | sed '
21529 s/'"$ac_delim"'/"\\\
21530 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21531
21532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21533   for (key in D) D_is_set[key] = 1
21534   FS = "\a"
21535 }
21536 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21537   line = \$ 0
21538   split(line, arg, " ")
21539   if (arg[1] == "#") {
21540     defundef = arg[2]
21541     mac1 = arg[3]
21542   } else {
21543     defundef = substr(arg[1], 2)
21544     mac1 = arg[2]
21545   }
21546   split(mac1, mac2, "(") #)
21547   macro = mac2[1]
21548   prefix = substr(line, 1, index(line, defundef) - 1)
21549   if (D_is_set[macro]) {
21550     # Preserve the white space surrounding the "#".
21551     print prefix "define", macro P[macro] D[macro]
21552     next
21553   } else {
21554     # Replace #undef with comments.  This is necessary, for example,
21555     # in the case of _POSIX_SOURCE, which is predefined and required
21556     # on some systems where configure will not decide to define it.
21557     if (defundef == "undef") {
21558       print "/*", prefix defundef, macro, "*/"
21559       next
21560     }
21561   }
21562 }
21563 { print }
21564 _ACAWK
21565 _ACEOF
21566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21567   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21568 fi # test -n "$CONFIG_HEADERS"
21569
21570
21571 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21572 shift
21573 for ac_tag
21574 do
21575   case $ac_tag in
21576   :[FHLC]) ac_mode=$ac_tag; continue;;
21577   esac
21578   case $ac_mode$ac_tag in
21579   :[FHL]*:*);;
21580   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21581   :[FH]-) ac_tag=-:-;;
21582   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21583   esac
21584   ac_save_IFS=$IFS
21585   IFS=:
21586   set x $ac_tag
21587   IFS=$ac_save_IFS
21588   shift
21589   ac_file=$1
21590   shift
21591
21592   case $ac_mode in
21593   :L) ac_source=$1;;
21594   :[FH])
21595     ac_file_inputs=
21596     for ac_f
21597     do
21598       case $ac_f in
21599       -) ac_f="$ac_tmp/stdin";;
21600       *) # Look for the file first in the build tree, then in the source tree
21601          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21602          # because $ac_f cannot contain `:'.
21603          test -f "$ac_f" ||
21604            case $ac_f in
21605            [\\/$]*) false;;
21606            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21607            esac ||
21608            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21609       esac
21610       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21611       as_fn_append ac_file_inputs " '$ac_f'"
21612     done
21613
21614     # Let's still pretend it is `configure' which instantiates (i.e., don't
21615     # use $as_me), people would be surprised to read:
21616     #    /* config.h.  Generated by config.status.  */
21617     configure_input='Generated from '`
21618           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21619         `' by configure.'
21620     if test x"$ac_file" != x-; then
21621       configure_input="$ac_file.  $configure_input"
21622       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21623 $as_echo "$as_me: creating $ac_file" >&6;}
21624     fi
21625     # Neutralize special characters interpreted by sed in replacement strings.
21626     case $configure_input in #(
21627     *\&* | *\|* | *\\* )
21628        ac_sed_conf_input=`$as_echo "$configure_input" |
21629        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21630     *) ac_sed_conf_input=$configure_input;;
21631     esac
21632
21633     case $ac_tag in
21634     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21635       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21636     esac
21637     ;;
21638   esac
21639
21640   ac_dir=`$as_dirname -- "$ac_file" ||
21641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21642          X"$ac_file" : 'X\(//\)[^/]' \| \
21643          X"$ac_file" : 'X\(//\)$' \| \
21644          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21645 $as_echo X"$ac_file" |
21646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21647             s//\1/
21648             q
21649           }
21650           /^X\(\/\/\)[^/].*/{
21651             s//\1/
21652             q
21653           }
21654           /^X\(\/\/\)$/{
21655             s//\1/
21656             q
21657           }
21658           /^X\(\/\).*/{
21659             s//\1/
21660             q
21661           }
21662           s/.*/./; q'`
21663   as_dir="$ac_dir"; as_fn_mkdir_p
21664   ac_builddir=.
21665
21666 case "$ac_dir" in
21667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21668 *)
21669   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21670   # A ".." for each directory in $ac_dir_suffix.
21671   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21672   case $ac_top_builddir_sub in
21673   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21674   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21675   esac ;;
21676 esac
21677 ac_abs_top_builddir=$ac_pwd
21678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21679 # for backward compatibility:
21680 ac_top_builddir=$ac_top_build_prefix
21681
21682 case $srcdir in
21683   .)  # We are building in place.
21684     ac_srcdir=.
21685     ac_top_srcdir=$ac_top_builddir_sub
21686     ac_abs_top_srcdir=$ac_pwd ;;
21687   [\\/]* | ?:[\\/]* )  # Absolute name.
21688     ac_srcdir=$srcdir$ac_dir_suffix;
21689     ac_top_srcdir=$srcdir
21690     ac_abs_top_srcdir=$srcdir ;;
21691   *) # Relative name.
21692     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21693     ac_top_srcdir=$ac_top_build_prefix$srcdir
21694     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21695 esac
21696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21697
21698
21699   case $ac_mode in
21700   :F)
21701   #
21702   # CONFIG_FILE
21703   #
21704
21705   case $INSTALL in
21706   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21707   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21708   esac
21709   ac_MKDIR_P=$MKDIR_P
21710   case $MKDIR_P in
21711   [\\/$]* | ?:[\\/]* ) ;;
21712   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21713   esac
21714 _ACEOF
21715
21716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21717 # If the template does not know about datarootdir, expand it.
21718 # FIXME: This hack should be removed a few years after 2.60.
21719 ac_datarootdir_hack=; ac_datarootdir_seen=
21720 ac_sed_dataroot='
21721 /datarootdir/ {
21722   p
21723   q
21724 }
21725 /@datadir@/p
21726 /@docdir@/p
21727 /@infodir@/p
21728 /@localedir@/p
21729 /@mandir@/p'
21730 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21731 *datarootdir*) ac_datarootdir_seen=yes;;
21732 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21733   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21734 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21735 _ACEOF
21736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21737   ac_datarootdir_hack='
21738   s&@datadir@&$datadir&g
21739   s&@docdir@&$docdir&g
21740   s&@infodir@&$infodir&g
21741   s&@localedir@&$localedir&g
21742   s&@mandir@&$mandir&g
21743   s&\\\${datarootdir}&$datarootdir&g' ;;
21744 esac
21745 _ACEOF
21746
21747 # Neutralize VPATH when `$srcdir' = `.'.
21748 # Shell code in configure.ac might set extrasub.
21749 # FIXME: do we really want to maintain this feature?
21750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21751 ac_sed_extra="$ac_vpsub
21752 $extrasub
21753 _ACEOF
21754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21755 :t
21756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21757 s|@configure_input@|$ac_sed_conf_input|;t t
21758 s&@top_builddir@&$ac_top_builddir_sub&;t t
21759 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21760 s&@srcdir@&$ac_srcdir&;t t
21761 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21762 s&@top_srcdir@&$ac_top_srcdir&;t t
21763 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21764 s&@builddir@&$ac_builddir&;t t
21765 s&@abs_builddir@&$ac_abs_builddir&;t t
21766 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21767 s&@INSTALL@&$ac_INSTALL&;t t
21768 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21769 $ac_datarootdir_hack
21770 "
21771 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21772   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21773
21774 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21775   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21776   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21777       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21778   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21779 which seems to be undefined.  Please make sure it is defined" >&5
21780 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21781 which seems to be undefined.  Please make sure it is defined" >&2;}
21782
21783   rm -f "$ac_tmp/stdin"
21784   case $ac_file in
21785   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21786   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21787   esac \
21788   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21789  ;;
21790   :H)
21791   #
21792   # CONFIG_HEADER
21793   #
21794   if test x"$ac_file" != x-; then
21795     {
21796       $as_echo "/* $configure_input  */" \
21797       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21798     } >"$ac_tmp/config.h" \
21799       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21800     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21801       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21802 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21803     else
21804       rm -f "$ac_file"
21805       mv "$ac_tmp/config.h" "$ac_file" \
21806         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21807     fi
21808   else
21809     $as_echo "/* $configure_input  */" \
21810       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21811       || as_fn_error $? "could not create -" "$LINENO" 5
21812   fi
21813 # Compute "$ac_file"'s index in $config_headers.
21814 _am_arg="$ac_file"
21815 _am_stamp_count=1
21816 for _am_header in $config_headers :; do
21817   case $_am_header in
21818     $_am_arg | $_am_arg:* )
21819       break ;;
21820     * )
21821       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21822   esac
21823 done
21824 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21825 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21826          X"$_am_arg" : 'X\(//\)[^/]' \| \
21827          X"$_am_arg" : 'X\(//\)$' \| \
21828          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21829 $as_echo X"$_am_arg" |
21830     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21831             s//\1/
21832             q
21833           }
21834           /^X\(\/\/\)[^/].*/{
21835             s//\1/
21836             q
21837           }
21838           /^X\(\/\/\)$/{
21839             s//\1/
21840             q
21841           }
21842           /^X\(\/\).*/{
21843             s//\1/
21844             q
21845           }
21846           s/.*/./; q'`/stamp-h$_am_stamp_count
21847  ;;
21848
21849   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21850 $as_echo "$as_me: executing $ac_file commands" >&6;}
21851  ;;
21852   esac
21853
21854
21855   case $ac_file$ac_mode in
21856     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21857   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21858   # are listed without --file.  Let's play safe and only enable the eval
21859   # if we detect the quoting.
21860   case $CONFIG_FILES in
21861   *\'*) eval set x "$CONFIG_FILES" ;;
21862   *)   set x $CONFIG_FILES ;;
21863   esac
21864   shift
21865   for mf
21866   do
21867     # Strip MF so we end up with the name of the file.
21868     mf=`echo "$mf" | sed -e 's/:.*$//'`
21869     # Check whether this is an Automake generated Makefile or not.
21870     # We used to match only the files named `Makefile.in', but
21871     # some people rename them; so instead we look at the file content.
21872     # Grep'ing the first line is not enough: some people post-process
21873     # each Makefile.in and add a new line on top of each file to say so.
21874     # Grep'ing the whole file is not good either: AIX grep has a line
21875     # limit of 2048, but all sed's we know have understand at least 4000.
21876     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21877       dirpart=`$as_dirname -- "$mf" ||
21878 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21879          X"$mf" : 'X\(//\)[^/]' \| \
21880          X"$mf" : 'X\(//\)$' \| \
21881          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21882 $as_echo X"$mf" |
21883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21884             s//\1/
21885             q
21886           }
21887           /^X\(\/\/\)[^/].*/{
21888             s//\1/
21889             q
21890           }
21891           /^X\(\/\/\)$/{
21892             s//\1/
21893             q
21894           }
21895           /^X\(\/\).*/{
21896             s//\1/
21897             q
21898           }
21899           s/.*/./; q'`
21900     else
21901       continue
21902     fi
21903     # Extract the definition of DEPDIR, am__include, and am__quote
21904     # from the Makefile without running `make'.
21905     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21906     test -z "$DEPDIR" && continue
21907     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21908     test -z "am__include" && continue
21909     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21910     # When using ansi2knr, U may be empty or an underscore; expand it
21911     U=`sed -n 's/^U = //p' < "$mf"`
21912     # Find all dependency output files, they are included files with
21913     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21914     # simplest approach to changing $(DEPDIR) to its actual value in the
21915     # expansion.
21916     for file in `sed -n "
21917       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21918          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21919       # Make sure the directory exists.
21920       test -f "$dirpart/$file" && continue
21921       fdir=`$as_dirname -- "$file" ||
21922 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21923          X"$file" : 'X\(//\)[^/]' \| \
21924          X"$file" : 'X\(//\)$' \| \
21925          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21926 $as_echo X"$file" |
21927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21928             s//\1/
21929             q
21930           }
21931           /^X\(\/\/\)[^/].*/{
21932             s//\1/
21933             q
21934           }
21935           /^X\(\/\/\)$/{
21936             s//\1/
21937             q
21938           }
21939           /^X\(\/\).*/{
21940             s//\1/
21941             q
21942           }
21943           s/.*/./; q'`
21944       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21945       # echo "creating $dirpart/$file"
21946       echo '# dummy' > "$dirpart/$file"
21947     done
21948   done
21949 }
21950  ;;
21951
21952   esac
21953 done # for ac_tag
21954
21955
21956 as_fn_exit 0
21957 _ACEOF
21958 ac_clean_files=$ac_clean_files_save
21959
21960 test $ac_write_fail = 0 ||
21961   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21962
21963
21964 # configure is writing to config.log, and then calls config.status.
21965 # config.status does its own redirection, appending to config.log.
21966 # Unfortunately, on DOS this fails, as config.log is still kept open
21967 # by configure, so config.status won't be able to write to it; its
21968 # output is simply discarded.  So we exec the FD to /dev/null,
21969 # effectively closing config.log, so it can be properly (re)opened and
21970 # appended to by config.status.  When coming back to configure, we
21971 # need to make the FD available again.
21972 if test "$no_create" != yes; then
21973   ac_cs_success=:
21974   ac_config_status_args=
21975   test "$silent" = yes &&
21976     ac_config_status_args="$ac_config_status_args --quiet"
21977   exec 5>/dev/null
21978   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21979   exec 5>>config.log
21980   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21981   # would make configure fail if this is the last instruction.
21982   $ac_cs_success || as_fn_exit 1
21983 fi
21984 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21985   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21986 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21987 fi
21988
21989
21990 echo "Creating asoundlib.h..."
21991 cp "$srcdir"/include/asoundlib-head.h include/asoundlib.h
21992 test "$build_pcm" = "yes" && echo "#include <alsa/pcm.h>" >> include/asoundlib.h
21993 test "$build_rawmidi" = "yes" && echo "#include <alsa/rawmidi.h>" >> include/asoundlib.h
21994 test "$build_pcm" = "yes" && echo "#include <alsa/timer.h>" >> include/asoundlib.h
21995 test "$build_hwdep" = "yes" && echo "#include <alsa/hwdep.h>" >> include/asoundlib.h
21996 echo "#include <alsa/control.h>" >> include/asoundlib.h
21997 test "$build_mixer" = "yes" && echo "#include <alsa/mixer.h>" >> include/asoundlib.h
21998 test "$build_seq" = "yes" && echo "#include <alsa/seq_event.h>" >> include/asoundlib.h
21999 test "$build_seq" = "yes" && echo "#include <alsa/seq.h>" >> include/asoundlib.h
22000 test "$build_seq" = "yes" && echo "#include <alsa/seqmid.h>" >> include/asoundlib.h
22001 test "$build_seq" = "yes" && echo "#include <alsa/seq_midi_event.h>" >> include/asoundlib.h
22002 cat "$srcdir"/include/asoundlib-tail.h >> include/asoundlib.h
22003